Duet not connecting via Ethernet
-
Hi,
One of my MB6HCs is no longer connecting to the internet over ethernet.
I have 3 Duet MB6HCs, each running a large plotter machine. For connectivity, each board is connected to an Ethernet switcher which is then connected to a Wifi range extender. This setup has worked great for a couple months but one of my Duets no longer connects to the internet.
The machine appears to still think it's connected as entering M552 returns this response:
Ethernet is enabled, configured IP address: 0.0.0.0, actual IP address: 192.168.1.119
But going to the IP address listed either returns ERR_CONNECTION_TIMED_OUT on my browser or the web interface will work properly for around 2 minutes before disconnecting and never reconnecting.
If I enter M122, I get this:
=== Diagnostics === RepRapFirmware for Duet 3 MB6HC version 3.5.4 (2024-11-24 10:47:10) running on Duet 3 MB6HC v1.02 or 1.02a (standalone mode) Board ID: 08DJM-9P63L-DJ3S0-7JKDJ-3SN6M-TSMZA Used output buffers: 1 of 40 (1 max) === RTOS === Static ram: 155464 Dynamic ram: 120244 of which 0 recycled Never used RAM 69948, free system stack 138 words Tasks: NETWORK(1,ready,41.1%,182) ETHERNET(5,nWait 7,0.0%,434) HEAT(3,nWait 6,0.0%,353) Move(4,nWait 6,0.1%,238) CanReceiv(6,nWait 1,0.0%,939) CanSender(5,nWait 7,0.0%,334) CanClock(7,delaying,0.0%,336) TMC(4,nWait 6,9.3%,55) MAIN(1,running,49.3%,444) IDLE(0,ready,0.1%,29), total 100.0% Owned mutexes: USB(MAIN) === Platform === Last reset 00:05:53 ago, cause: power up Last software reset at 2024-08-13 14:56, reason: StuckInSpinLoop, Gcodes spinning, available RAM 99788, slot 1 Software reset code 0x4083 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0044a80f BFAR 0x00000000 SP 0x2041b448 Task NETW Freestk 4294962872 ok Stack: 00000000 20419a88 10000000 e000e000 fffffffb 0048a213 004897cc 61000000 004897bd 00000000 ffffffff 00000000 002f64bd 00000000 2041911c ffffffff 2041f90c 20424900 0048988f 20419228 2041b51c 00000074 00486f97 204190d8 004068e7 204190d8 00446b37 Error status: 0x00 MCU temperature: min 28.7, current 36.2, max 36.6 Supply voltage: min 26.2, current 26.3, max 26.4, under voltage events: 0, over voltage events: 0, power good: yes 12V rail voltage: min 12.1, current 12.2, max 12.5, under voltage events: 0 Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0 Events: 0 queued, 0 completed Driver 0: ok, SG min 0, mspos 600, reads 46812, writes 23 timeouts 0 Driver 1: ok, SG min 0, mspos 184, reads 46812, writes 23 timeouts 0 Driver 2: ok, SG min 0, mspos 328, reads 46812, writes 23 timeouts 0 Driver 3: standstill, SG min 0, mspos 120, reads 46812, writes 23 timeouts 0 Driver 4: standstill, SG min 0, mspos 952, reads 46812, writes 23 timeouts 0 Driver 5: standstill, SG min n/a, mspos 8, reads 46825, writes 11 timeouts 0 Date/time: 1970-01-01 00:00:00 Slowest loop: 273.00ms; fastest: 0.07ms === Storage === Free file entries: 19 SD card 0 detected, interface speed: 25.0MBytes/sec SD card longest read time 2.4ms, write time 0.0ms, max retries 0 === Move === DMs created 125, segments created 14, maxWait 98266ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00 next step interrupt due in 94 ticks, disabled Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0 === DDARing 0 === Scheduled moves 529, completed 469, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state 3 === DDARing 1 === Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === Heat === Bed heaters -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0 === GCodes === Movement locks held by null, null HTTP is idle in state(s) 0 Telnet is idle in state(s) 0 File is doing "G1 X1042.056 Y373.756" in state(s) 0 USB is ready with "m122" in state(s) 0 Aux is idle in state(s) 0 Trigger is idle in state(s) 0 Queue is idle in state(s) 0 LCD is idle in state(s) 0 SBC is idle in state(s) 0 Daemon is idle in state(s) 0 Aux2 is idle in state(s) 0 Autopause is idle in state(s) 0 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 Q0 segments left 1, axes/extruders owned 0x000000f Code queue 0 is empty Q1 segments left 0, axes/extruders owned 0x0000000 Code queue 1 is empty === CAN === Messages queued 1768, received 0, lost 0, errs 1711181, boc 0 Longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 50 (min 50), ts 1768/0/0 Tx timeouts 0,0,1767,0,0,0 last cancelled message type 30 dest 127 === Network === Slowest loop: 1.44ms; fastest: 0.03ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0) HTTP sessions: 0 of 8 = Ethernet = Interface state: active Error counts: 14 0 4437 1 0 0 Socket states: 2 2 2 2 2 0 0 0 === WiFi === Interface state: disabled Module is disabled Failed messages: pending 0, notrdy 0, noresp 0 Socket states: 0 0 0 0 0 0 0 0 === Multicast handler === Responder is inactive, messages received 0, responses 0 ok
My config.g is:
; Configuration file for Duet 3 MB 6HC (firmware version 3.3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.3.16 on Thu Nov 02 2023 15:57:08 GMT-0400 (Eastern Daylight Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Machine" ; set printer name ; Wait a moment for the CAN expansion boards to start ;G4 S1 ; Network M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet M552 I1 S0 ; start WiFi module M552 I1 S1 ; connect WiFi module ; Drives M569 P0.0 S1 D2 ; X1 axis - physical drimve 0.0 goes forwards M569 P0.1 S0 D2 ; X2 axis - physical drive 0.1 goes backwards M569 P0.2 S1 D2 ; Y axis - physical drive 0.2 goes forwards M569 P0.3 S1 D2 ; Z axis - physical drive 0.3 goes forwards M569 P0.4 S0 D2 ; U axis - physical drive 0.4 goes forwards ;M569 P0.5 S1 D2 ; A axis - physical drive 0.4 goes forwards M584 X0.0:0.1 Y0.2 Z0.3 U0.4 ;A0.5 ; set drive mapping M350 X16:16 Y16 Z16 U16 ;A16 ; configure microstepping with interpolation M92 X40.00:40.00 Y40.00 Z53.33 U15.9 ;A53.33 ; set steps per mm M566 X900.00:900.00 Y900.00 Z60.00 U900.00 ;A120 ; set maximum instantaneous speed changes (mm/min) M203 X6000.00:6000.00 Y6000.00 Z6000.00 U6000.00 ;A3600 ; set maximum speeds (mm/min) M201 X500.00:500.00 Y500.00 Z500.00 U500.00 ;A250 ; set accelerations (mm/s^2) M906 X1000:1000 Y1000 I70 ; set motor currents (mA) and motor idle factor in per cent M906 Z2000 U1000 I70 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Extruders ; M584 E0.5 ; set extruder mapping ; M350 E16 I1 ; configure microstepping with interpolation ; M906 E1000 ; set extruder driver currents ; M92 E400 ; configure steps per mm ; M566 E120 ; set maximum instantaneous speed changes (mm/min) ; M203 E3600 ; set maximum speeds (mm/min) ; M201 E250 ; set accelerations (mm/s^2) ; Axis Limits M208 X0 Y0 Z0 U0 S1 ; set axis minima M208 X1800 Y1760 Z155.5 U200 S0 ; set axis maxima ; Endstops M574 X1 S1 P"io0.in+io1.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io0.in M574 Y1 S1 P"io2.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io1.in M574 Z2 S1 P"io3.in" ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin io3.in M574 U1 S1 P"io4.in" ; configure switch-type (e.g. microswitch) endstop for low end on U via pin io4.in ;M574 A1 S1 P"io5.in" ; configure switch-type (e.g. microswitch) endstop for low end on A via pin io5.in ;M950 J1 C"io5.in" ; configure switch-type (e.g. microswitch) endstop for Extruder ;M581 P1 S0 R0 T2 ; retract extruder - trigger1.gcode ; Z-Probe M950 S0 C"io7.out" ; Sets an output pin for Z-Probe M558 P9 C"io7.in" H15 F120 T6000 ; Sets an input pin for Z-Probe G31 X0 Y0 Z10 P25 M557 X0:1400 Y0:1000 S200 ; define mesh grid ; Heaters ; Fans M950 F1 C"out7" ; create fan #1 M106 P1 S0.5 L0 X1 B0.1 ; configure fan #1 M950 F2 C"out8" ; create fan #2 M106 P2 S0.5 L0 X1 B0.1 ; configure fan #2 M950 F3 C"out9" ; create fan #3 M106 P3 S0.5 L0 X1 B0.1 ; configure fan #3 ; Tools ;M563 P0 S"Tool 0" D0 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 ;M563 P1 S"Pastel" D0 F0 ; define Tool 1 ;G10 P1 X0 Y0 Z0 ; set tool 1 axis offsets ;G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C ; Custom settings are not defined
I've already attempted to fix this by:
-
Updating the firmware
-
Restarting the machine
-
Swapping the Ethernet cable
-
Swapping the port on the Switcher
Nothing has worked at the moment. The other two Duet boards still connect to the internet just fine.
Does anybody have any idea what could possibly be wrong?
-
-
@big_plotter_man said in Duet not connecting via Ethernet:
M552 I1 S0 ; start WiFi module
M552 I1 S1 ; connect WiFi modulecan you try without these 2 lines in your config?
-
Hi, this appears to have fixed the issue, thanks.