Random disconnects DuetWifi 3.01 RC12
-
@mike5490 said in Random disconnects DuetWifi 3.01 RC12:
After updating to the official 3.1.1 it seems to disconnect less randomly and seems to occur most often after an endstop is triggered while homing.
Are any of the endstop switches connected to the DueX5?
-
@mike5490 can you post your current config.g, preferably in you reply as text using the code tags? (I can’t read attached files on my phone!) Are you using a fixed IP address (possible IP address clash)? Have you tried connecting to the DWC using a different device (phone/tablet/PC)?
Isn
-
@dc42
Yes the y-axis endstop is connected to the duex5. Both the x-axis endstop and probe are connected to the duet.@droftarts
This is my config file:; Executed by the firmware on start-up
; Last updated June 8/2020; General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Cube Printer" ; set printer name
M669 K1 ; select CoreXY mode; Network
M551 P"mike17670" ; set password
M552 S1 ; enable networking
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet; Drives
M584 X9 Y5 Z6:7:8 E3:4 ; Drive mapping, x=drive9, y=drive5, z=drive6+7+8, e=drive3+4
M569 P9 S0 ; physical drive 9 goes forwards
M569 P5 S0 ; physical drive 5 goes forwards
M569 P6 S0 ; physical drive 6 goes forwards (front right z motor)
M569 P7 S0 ; physical drive 7 goes forwards (rear right z motor)
M569 P8 S0 ; physical drive 8 goes forwards (center left z motor)
M569 P3 S1 ; physical drive 3 goes forwards
M569 P4 S1 ; physical drive 4 goes forwards
M350 X16 Y16 Z8 E16:16 I0 ; 1/16 microstepping for all motors, and enable microstepping interpolation up to 1/256
M92 X80.00 Y80.00 Z400.00:400.00:400.00 E420.00:420.00 ; set steps per mm
M566 X900.00 Y900.00 Z12.00:12.00:12.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180.00:180.00:180.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00:20.00:20.00 E250.00:250.00 ; set accelerations (mm/s^2)
M906 X800 Y800 Z1400:1400:1400 E800:800 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z0 S1 ; set minimums for each axis
M208 X400 Y400 Z400 S0 ; set maximums for each axis
M671 X335:335:-35 Y10.5:340.5:175.5 S1 ; set leadscrew locations for auto bed leveling and max correction in mm (front right, rear right, center left leadscrews); Endstops
M574 X2 S1 P"!e1stop" ; set x endstp location at max of axis, active low endstop, mapped to e1stop on duet wifi
M574 Y2 P"nul" ; free up y endstop
M574 Y2 S1 P"!duex.e6stop" ; set y endstop location at max of axis, active low endstop, mapped to e6stop on duex5
M574 Z1 S2 ; set z axis enstop at min of axis and controlled by probe; Z-Probe
M558 P1 C"zprobe.in" H5 F120 T6000 ; set Z probe type to unmodulated/smart IR probe, connected to zprobe, dive height, feed rate, and travel speed between points
G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, XY offset and trigger height
M557 X15:215 Y15:195 S20 ; mesh grid, XY max/min values, and probe point spacing; Heaters
M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 R4700 ; define thermistor 0, set to bedtemp pins, thermistor type, and thermistor constants (bed thermistor)
M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06E-8 R4700 ; define thermistor 1, set to e0temp pins, thermistor type, and thermistor constants (extruder 0 thermistor)
M308 S2 P"e1temp" Y"thermistor" T100000 B4725 C7.06E-8 R4700 ; define thermistor 2, set to e1temp pins, thermistor type, and thermistor constants (extruder 1 thermistor)
M950 H0 C"bedheat" T0 ; define heater 0, set to bedheat pins, assign temperature sensor 0 to it (bed heater)
M950 H1 C"e0heat" T1 ; define heater 1, set to e0heat pins, assign temperature sensor 1 to it (extruder 0 heater)
M950 H2 C"e1heat" T2 ; define heater 2, set to e1heat pins, assign temperature sensor 2 to it (extruder 1 heater)
M140 H0 ; assign heater 0 as the bed heater
M307 H0 A208.8 C572.6 D1.0 V24.4 B0 S1.00 ; set PID calibration constants for heater 0 calibrated at 100 deg C, disable bang-bang mode for heater 0, set pwm limit to 1.00
M307 H1 A567.6 C228.7 D4.5 V24.4 ; set PID calibration constants for heater 1 calibrated at 250 deg C
M307 H2 A555.1 C244.4 D5.0 V24.4 ; set PID calibration constants for heater 2 calibrated at 250 deg C
M143 H0 S120 ; set temperature limit for heater 0 to 120 dec C
M143 H1 S280 ; set temperature limit for heater 1 to 280 deg C
M143 H2 S280 ; set temperature limit for heater 2 to 280 deg C; Fans
M106 P0 S0 I0 F500 H-1 ; set fan number, fan speed, normal mode, PWM frequency, thermostatic mode off
M106 P1 S1 I0 F500 H1:2 T45 ; set fan number, fan speed, normal mode, PWM frequenct, thermostatic mode on for heaters 1 and 2; Tools
M563 P0 D0 H1 F0 ; define tool 0, extruder drive, heater, and fan
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 D1 H2 F0 ; define tool 1, extruder drive, heater, and fan
G10 P1 X18 Y0 Z0 ; set tool 1 axis offsets
G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C
M572 D0:1 S0 ; pressure advance for tools 0 and 1, amount of pressure advance (in seconds) -
@droftarts
I have tried both a fixed ip address and one assigned by the router and it hasn't helped.
I have tried connecting on my desktop (windows 10), macbook pro, ipad, and iphone and the same problem happens on all these devices -
@mike5490 said in Random disconnects DuetWifi 3.01 RC12:
As the disconnections seem to be happening when endstops are triggered, and particularly because you are using plug in connections (very tidy, but each pin is not insulated from others on those connectors, by the look of it), trace the endstop wiring very closely from board to endstop, through those connectors, and check there's no wire strands shorting out on another pin. Do disconnections happen on both X and Y endstop activation?
Other possibilities:
What endstops are you using? I can see you have 3 wires going to each endstop connection. If you're using bare microswitches, you only need to wire two wires. The third may be causing interference on endstop activation.
Check you have no wiring running alongside, or parallel to, the ribbon cable connecting the Duet and Duex. Ribbon cable is unshielded, so can pick up interference, causing false triggering or interrupted signalling. Your probe wires are close
Maybe extend the endstop cables and connect them to the Duet, and see if the problem disappears?
I know in your first post you said you have tried a different SD card, but did you try a different SD card when you swapped the boards, or are you using the same one? I'd try using a freshly formatted card, using the official SD card formatting tool. For SD card specification see https://duet3d.dozuki.com/Wiki/SD_Card#Section_Specification and the section after for formatting. There's also a section on testing write speed on that page.
I can't see anything obviously wrong with your config.g. Note that in M92, M566, M203, M201 and M906, only Extruder axes can have extra parameters (because each is an extra axis); other axes can have only one parameter, so replace all the 'Z[nnn]:[nnn]:[nnn]' with 'Z[nnn]' in these gcodes. The firmware should just ignore the extra parameters, but in older firmwares it caused problems.
M350 X16 Y16 Z8 E16:16 I0 ; 1/16 microstepping for all motors, and enable microstepping interpolation up to 1/256
M92 X80.00 Y80.00 Z400.00:400.00:400.00 E420.00:420.00 ; set steps per mm
M566 X900.00 Y900.00 Z12.00:12.00:12.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180.00:180.00:180.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00:20.00:20.00 E250.00:250.00 ; set accelerations (mm/s^2)
M906 X800 Y800 Z1400:1400:1400 E800:800 I30 ; set motor currents (mA) and motor idle factor in per centThat's all I can think of at the moment!
Ian
-
@droftarts
I'll double check the connectors for any shorts tonight.
Yes the disconnects happen on both the x and y axis endstops, it doesn't seem to happen more often on one or the other.These are the endstops I'm using. I had them wired in the same way on the previous version of my printer and didn't have any issues.
Currently I'm using the new SD card that came with the new board. I'll try a freshly formatted one too.
-
Did you have the endstops wired like this? https://duet3d.dozuki.com/Wiki/Connecting_endstop_switches#Section_Makerbot_Mechanical_Endstop_v1_Num_2
-
One possibility is that the Y endstop wires are picking up noise when it is triggered (assuming it is a normally-closed switch) and that is causing an excessive rate of interrupts from the DueX5 to the Duet. In which case, one of the following may resolve it:
- connecting it to an endstop input on the main board instead
- using shielded cable for that endstop
- adding a pullup resistor between that endstop input and +3.3V (between 1K and 10K)
- adding a small capacitor (e.g. 1nF) between that endstop input and ground
-
After extending and moving the y-axis endstop connector from the duex to the duet I haven't had any more disconnects and everything seems to be working correctly.
Thank you so much.
-
@Phaedrux I get a lot of these disconnects using Vivaldi to run DWC and far fewer disconnects when using Google Chrome.
Vivaldi allows the user to reload tabs at user specified intervals but this doesn't seem to help.
Vivaldi is based on Chrome but has it's own settings for tab hibernation. Sadly it cannot be turned off. People would like control over this but so far there is none.
I should search for a browser that doesn't hibernate tabs and just use it for running DWC.
-
@gbartsch You can run a web page as a chrome app. That might give you more of what you want.
First you can turn off tab sleep
Go to chrome://discards/ (open as a URL).
Find the tab of interest.
Look at the "Auto Discardable" column, click "Toggle" to disable it.then you can make it appears as an app window rather than just a tab.
Add a shortcut to a website as an app
For Windows, Linux, and Chromebook users, you can add a shortcut to a website on the internet as an app in Chrome.Open Chrome.
Navigate to the website you want to add as an app.
At the top right, click MoreMore.
Click More Tools.
Click Create shortcut.
Enter a name for the shortcut and click Create. -
@Phaedrux Thank you! I've done this and will test it for a while.