Connection issues between 6HC and Pi 3B
-
This post is deleted! -
Seems to be working now, I obviously can't nail it down completely but I switched to a Pi 4B instead of the 3B and reimaged the same microSD with DuetPi-lite. I used the exact same wpa_supplicant file I previously made and I can now access it via Duet3.local
Making some progress in the config but still can't seem to get the toolboard talking which is a little frustrating. Just the constant red flashing indicator light. I have held both button 1 and 2 down from before I power it on until its fully booted but as soon as I release them it begins flashing again with no comms.
Learning to write the firmware is pretty fun!
-
@alastair1 what sequence of lights is the toolboard flashing?
Do you have a copy of the toolboard firmware in the /firmware directory?
-
Just continous, which matches with the no CAN communication error code.
Firmware is in firmware directory and is visible by DWC.
Wiring wise, I have a RJ11 cable up to the tool distribution board which is receiving 24v power and then a 4 pin cable to the toolboard. Distribution board is mounted above the extruder, so will move obviously but because minimising mass isn't critical seemed like a good way to do the wiring especially as my current requirements for the hotend are more than that toolboard can supply etc so need a SSR anyway.
I have the two jumpers removed from port 1 that it is wired to.
-
Is the red light on the toolboard flashing in time with the one on the main board? If so, it may be working OK.
Try sending M122 B121? The board address will have been reset to its default by the two button reset.
If it's not working I'd double-check all the wiring.
Do you have the termination jumper installed on the tool board next to CAN_OUT, and the CAN cable to CAN_IN ?
If it's a generic RJ11 cable, check it is wired identically at both ends - some reverse the wire sequence end to end.
Is it using the same power supply as the main board? If not, the grounds (PSU -) must be linked between the different power sources.
-
Yep it was a CAN wiring issue, thanks for that! it now flashes in time with the mainboard and is receiving packets when M122 is run. Unfortunately I am yet to be able to make the Toolboard actually drive anything or receive sensor inputs. Fans etc, heaters, thermistor etc. isn't working or reporting any value at all. May well be a configuration issue though and I have attached the current config as downloaded from DWCconfig.g
Additionally with homing I am having a lot of trouble getting the axis to move more than the say 5mm back off distance that is set, it simply just moves 5mm and stops each time, irrespective of the switch or not.
Currently I have my limit switches wired NO between the IN and GND of the respective IO ports.
Fun times and a lot of learning
-
I don't see anything obvious, but I am still learning the fine details of Duet configs myself...
Try adding this at the top of the file, between the general and drives sections?
; CAN Bus boot wait G4 S2 ;wait for expansion boards to start
-
Posting your config.g again to make it easy to read without downloading by using the </> formatting ; Configuration file for Duet 3 (firmware version 3.3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.3.5 on Mon Oct 25 2021 21:55:29 GMT+1100 (Australian Eastern Daylight Time) ; General preferences M575 P1 S1 B57600 ; enable support for PanelDue G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Duet 3" ; set printer name ; Drives M569 P0.0 S1 ; physical drive 0.0 goes forwards M569 P0.1 S1 ; physical drive 0.1 goes forwards M569 P0.2 S1 M569 P0.3 S1 ; physical drive 0.0 goes forwards M569 P0.4 S1 ; physical drive 0.1 goes forwards M569 P0.5 S1 ; physical drive 0.2 goes forwards M569 P121.0 S1 ; physical drive 121.0 goes forwards M584 X0.0 Y0.1 Z0.2:0.3:0.4:0.5 E121.0 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X44.44 Y44.44 Z640.00 E420.00 ; set steps per mm M566 X900.00 Y900.00 Z60.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min) M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2) M906 X2000 Y2000 Z2000 E1000 I50 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X500 Y1600 Z200 S0 ; set axis maxima ; Endstops M574 X2 S1 P"io1.in" ; configure switch-type (e.g. microswitch) endstop for high end on X via pin io1.in M574 Y1 S1 P"io2.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io2.in M574 Z2 S1 P"io3.in" ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin io3.in ; Z-Probe M558 P0 H5 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed M557 X15:215 Y15:195 S20 ; define mesh grid ; Heaters M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0 M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M308 S1 P"121.temp0" Y"thermistor" B4725 C7.06e-8 ; configure sensor 1 as thermistor on pin 121.temp0 M950 H1 C"121.out0" T1 ; create nozzle heater output on 121.out0 and map it to sensor 1 M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H1 S230 ; set temperature limit for heater 1 to 230C M302 S-300 R-300 ; Fans ; Tools M563 P0 S"extruder" D0 H1 F0 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Custom settings are not defined
what happens when you run M98 P"0/sys/config.g"
-
@t3p3tony said in Connection issues between 6HC and Pi 3B:
M98 P"0/sys/config.g"
M98 P"0/sys/config.g"
Error: M584: Board 121 received unknown msg type 6042
Error: M350: Board 121 received unknown msg type 6042
Error: M92: Board 121 received unknown msg type 6042
Error: M906: Board 121 received unknown msg type 6043
Error: M308: Board 121 received unknown msg type 6031
Error: M950: Pin 121.out0 is not free
Error: M307: Heater 1 not found
Error: M143: Heater 1 does not existHeater 1 is the bed and is direct from the duet, so don't worry about that.
-
@alastair1 please send M115 B121
-
@t3p3tony said in Connection issues between 6HC and Pi 3B:
M115 B121
Thanks Tony! You are my saviour, it was actually running 3.1. I didn't realise I needed to run a M997 to get the firmware to update. Now its 3.3 and is extruding Super satisfying to see the 1.2mm noodle.
-
@alastair1 with everything working in a steady state then future stable->stable upgrades should upgrade all the expansion boards as well.