CONSTANT AJAX disconnect errors
-
Thanks. Can you confirm that you set the idle current to 100% before the motors went into idle hold? I'm not sure whether using M906 to adjust the idle current affects motors that have already been switched to idle.
-
Ive installed the new firmware.
confused by this statement :- Duet WiFi user can use either DuetWiFiServer 1.20beta2 (which disables WiFi module sleep) or 1.20alpha1 (which uses the default "modem sleep" mode)
My M122 has the following, but I'm using 1.20beta2, where above states modem sleep is only available with 1.20alpha1
WiFi signal strength -47dBm, reconnections 0, sleep mode modem
-
Thanks. Can you confirm that you set the idle current to 100% before the motors went into idle hold? I'm not sure whether using M906 to adjust the idle current affects motors that have already been switched to idle.
I can't confirm that. I used M906 I100 to set it to 100. I could do the test again with the idles set to 100 in the config.g before starting a print.
I did a little temp testing by setting my bed heat to 100C, closing up all panels in the base of the machine (rostock max v2) and also setting the hot end to 200C with it about .5mm above the bed. I wanted to get the base of the machine as warm as possible. It sat like that for over an hour with no issue, and the MCU temp never exceeded 35C.
Also, I updated to the latest firmwares and afterwards I was homing the machine again, and again, back to back to back, and on the probably 4th or 5th time, it disconnected and would not reconnect via the browser. I plugged in the USB and connected to pronterface to run M122. here are the results:
[c]>>> M122
SENDING:M122
=== Diagnostics ===
Used output buffers: 1 of 32 (14 max)
=== Platform ===
RepRapFirmware for Duet WiFi version 1.20beta2 running on Duet WiFi 1.0
Board ID: 08DDM-9FAM2-LW4SD-6JTF0-3S86N-TLWZX
Static ram used: 15136
Dynamic ram used: 96560
Recycled dynamic ram: 2992
Stack ram used: 4000 current, 4808 maximum
Never used ram: 11576
Last reset 00:04:50 ago, cause: software
Last software reset reason: User, spinning module GCodes, available RAM 11496 bytes (slot 3)
Software reset code 0x0003, HFSR 0x00000000, CFSR 0x00000000, ICSR 0x00400000, BFAR 0xe000ed38, SP 0xffffffff
Error status: 0
[ERROR] Error status: 0Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest block write time: 41.9ms
MCU temperature: min 32.4, current 32.6, max 36.5
Supply voltage: min 12.0, current 12.1, max 12.2, under voltage events: 0, over voltage events: 0
Driver 0: stalled standstill
Driver 1: stalled standstill
Driver 2: stalled standstill
Driver 3: standstill
Driver 4: standstill
Date/time: 2017-10-25 22:00:43
Slowest main loop (seconds): 2.390603; fastest: 0.000032
=== Move ===
MaxReps: 3, StepErrors: 0, FreeDm: 240, MinFreeDm 234, MaxWait: 3783856217ms, Underruns: 0, 0
Scheduled moves: 30, completed moves: 30
Bed compensation in use: none
Bed probe heights: 0.000 0.000 0.000 0.000 0.000
=== Heat ===
Bed heater = 0, chamber heater = -1
Heater 0 is on, I-accum = 0.0
=== GCodes ===
Segments left: 0
Stack records: 2 allocated, 0 in use
Movement lock held by null
http is idle in state(s) 0
telnet is idle in state(s) 0
file is idle in state(s) 0
serial is ready with "M122" in state(s) 0
aux is idle in state(s) 0
daemon is idle in state(s) 0
queue is idle in state(s) 0
autopause is idle in state(s) 0
Code queue is empty.
Network state is running
WiFi module is connected to access point
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.20beta2
WiFi MAC address 5c:cf:7f:ef:51:6f
WiFi Vcc 3.10, reset reason Turned on by main processor
WiFi flash size 4194304, free heap 39160
WiFi IP address 10.0.1.158
WiFi signal strength -52dBm, reconnections 0, sleep mode modem
HTTP sessions: 1 of 8
Socket states: 0 0 0 0 0 0 0 0
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)[/c] -
got it reconnected, and it disconnected before i could home it even once.
ran through M552 S-1/S1 and it connected again, immediate disconnect again. It did this pattern 3 times. on the third time it stayed connected for about 45 seconds and then disconnected.
Here is the M122 from IMMEDIATELY after the last disconnect.
[c]>>> M122
SENDING:M122
=== Diagnostics ===
Used output buffers: 1 of 32 (14 max)
=== Platform ===
RepRapFirmware for Duet WiFi version 1.20beta2 running on Duet WiFi 1.0
Board ID: 08DDM-9FAM2-LW4SD-6JTF0-3S86N-TLWZX
Static ram used: 15136
Dynamic ram used: 96560
Recycled dynamic ram: 2992
Stack ram used: 4000 current, 5172 maximum
Never used ram: 11212
Last reset 00:13:49 ago, cause: software
Last software reset reason: User, spinning module GCodes, available RAM 11496 bytes (slot 3)
Software reset code 0x0003, HFSR 0x00000000, CFSR 0x00000000, ICSR 0x00400000, BFAR 0xe000ed38, SP 0xffffffff
Error status: 0
[ERROR] Error status: 0Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest block write time: 0.0ms
MCU temperature: min 30.9, current 31.2, max 31.5
Supply voltage: min 12.0, current 12.1, max 12.2, under voltage events: 0, over voltage events: 0
Driver 0: stalled standstill
Driver 1: stalled standstill
Driver 2: stalled standstill
Driver 3: standstill
Driver 4: standstill
Date/time: 2017-10-25 22:09:42
Slowest main loop (seconds): 0.006131; fastest: 0.000098
=== Move ===
MaxReps: 0, StepErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
Scheduled moves: 107, completed moves: 107
Bed compensation in use: none
Bed probe heights: 0.000 0.000 0.000 0.000 0.000
=== Heat ===
Bed heater = 0, chamber heater = -1
Heater 0 is on, I-accum = 0.0
=== GCodes ===
Segments left: 0
Stack records: 2 allocated, 0 in use
Movement lock held by null
http is idle in state(s) 0
telnet is idle in state(s) 0
file is idle in state(s) 0
serial is ready with "M122" in state(s) 0
aux is idle in state(s) 0
daemon is idle in state(s) 0
queue is idle in state(s) 0
autopause is idle in state(s) 0
Code queue is empty.
Network state is running
WiFi module is connected to access point
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.20beta2
WiFi MAC address 5c:cf:7f:ef:51:6f
WiFi Vcc 3.10, reset reason Turned on by main processor
WiFi flash size 4194304, free heap 38240
WiFi IP address 10.0.1.158
WiFi signal strength -50dBm, reconnections 0, sleep mode modem
HTTP sessions: 1 of 8
Socket states: 0 0 0 0 0 0 0 0
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)[/c]EDIT: all of that occurred with the front panel off the romax, and a small fan blowing directly on the wifi module.
-
A video….
-
Keegan, thanks for your patience. We've decided to swap your board to see if that fixes the problem. Please email the following to info at duet3d dot com:
1. Board PCB revision (1.0, 1.01 or 1.02)
2. Board serial number (on the sticker on top of the microcontroller)
3. Your mailing addresss -
Keegan, thanks for your patience. We've decided to swap your board to see if that fixes the problem. Please email the following to info at duet3d dot com:
1. Board PCB revision (1.0, 1.01 or 1.02)
2. Board serial number (on the sticker on top of the microcontroller)
3. Your mailing addresssThank You David. Email sent.
-
Hey David,
Just wanted to check to make sure you received me email?
Thanks!
-
Emails to that address don't come to me, but I do know that it was received.
-
Will be interested to see if it goes away with the new board he receives.
My wifi disconnection issues which seem identical to KeeganB’s are present on both boards I have.
I’ll see if I can downgrade my one system back to 18 firmware to see if issues go away this weekend. -
Thanks David,
I got the emails from Roland.
Jarery,
It'll be kind of rough if the new board doesn't resolve the issue, as I am running out of ideas. Yesterday via USB power, and no power from the printer's PSU, the duet stayed connected sitting idle for over 14hrs! Next I powered the printer up, and homed it to energize the steppers, it stayed for about 3 hours like that. Still being connected, i went ahead and started running G32's with everything still cold. Still connected about an hour later, i preheated everything and started a print. It stayed connected for about 30 mins after that and then disconnected. About 30 mins later I was able to reconnect via DWC without using USB to restart the wifi card. It stayed connected after that for over 6 hours to finish the print and was still connected when I left this morning.
That was a wild series of events, given the night before it was disconnecting like you see if the video I posted. I haven't figured out how to trigger the disconnects.
-
i hate to join this thread but i started to see Ajax disconnects in the recent versions. today i'm getting just disconnects within minutes. switching printer on (heat bed+heat hotted) end disconnect. the board is alive via usb and can be pinged. i attach the m122 logs
M122
SENDING:M122
=== Diagnostics ===
Used output buffers: 1 of 32 (20 max)
=== Platform ===
RepRapFirmware for Duet WiFi version 1.19 running on Duet WiFi 1.0
Board ID: 08DAM-999TL-MQ4S4-6J1FG-3S06T-T5H3Z
Static ram used: 21176
Dynamic ram used: 96064
Recycled dynamic ram: 1544
Stack ram used: 4008 current, 4840 maximum
Never used ram: 7448
Last reset 00:03:38 ago, cause: power up
Last software reset reason: User, spinning module GCodes, available RAM 7448 bytes (slot 0)
Software reset code 0x0003, HFSR 0x00000000, CFSR 0x00000000, ICSR 0x00400000, BFAR 0xe000ed38, SP 0xffffffff
Error status: 0
[ERROR] Error status: 0Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest block write time: 0.0ms
MCU temperature: min 14.3, current 18.9, max 19.5
Supply voltage: min 16.2, current 18.7, max 19.1, under voltage events: 0, over voltage events: 0
Driver 0: stalled standstill
Driver 1: stalled standstill
Driver 2: stalled standstill
Driver 3: standstill
Driver 4: standstill
Date/time: 2017-10-27 19:28:11
Slowest main loop (seconds): 0.015995; fastest: 0.000034
=== Move ===
MaxReps: 3, StepErrors: 0, FreeDm: 240, MinFreeDm 234, MaxWait: 717ms, Underruns: 0, 0
Scheduled moves: 5, completed moves: 5
Bed compensation in use: none
Bed probe heights: 0.000 0.000 0.000 0.000 0.000
=== Heat ===
Bed heater = 0, chamber heater = -1
Heater 0 is on, I-accum = 0.1
Heater 1 is on, I-accum = 0.1
=== GCodes ===
Segments left: 0
Stack records: 2 allocated, 0 in use
Movement lock held by null
http is idle in state(s) 0
telnet is idle in state(s) 0
file is idle in state(s) 0
serial is ready with "M122" in state(s) 0
aux is idle in state(s) 0
daemon is idle in state(s) 0
queue is idle in state(s) 0
autopause is idle in state(s) 0
Code queue is empty.
Network state is running
WiFi module is connected to access point
WiFi firmware version 1.19
WiFi MAC address 5c:cf:7f:2b:e7:ae
WiFi Vcc 3.12, reset reason Turned on by main processor
WiFi flash size 4194304, free heap 40232
WiFi IP address 192.168.178.36
WiFi signal strength -50dBm
HTTP sessions: 1 of 8
Socket states: 0 0 0 0 0 0 0 0
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)M122
SENDING:M122
=== Diagnostics ===
Used output buffers: 1 of 32 (24 max)
=== Platform ===
RepRapFirmware for Duet WiFi version 1.19 running on Duet WiFi 1.0
Board ID: 08DAM-999TL-MQ4S4-6J1FG-3S06T-T5H3Z
Static ram used: 21176
Dynamic ram used: 96128
Recycled dynamic ram: 1480
Stack ram used: 4008 current, 6156 maximum
Never used ram: 6132
Last reset 00:02:27 ago, cause: software
Last software reset reason: User, spinning module GCodes, available RAM 7208 bytes (slot 1)
Software reset code 0x0003, HFSR 0x00000000, CFSR 0x00000000, ICSR 0x00400000, BFAR 0xe000ed38, SP 0xffffffff
Error status: 0
[ERROR] Error status: 0Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest block write time: 456.1ms
MCU temperature: min 18.5, current 19.4, max 21.2
Supply voltage: min 18.0, current 18.5, max 19.2, under voltage events: 0, over voltage events: 0
Driver 0: stalled standstill
Driver 1: stalled standstill
Driver 2: stalled standstill
Driver 3: standstill
Driver 4: standstill
Date/time: 2017-10-27 19:33:47
Slowest main loop (seconds): 0.457424; fastest: 0.000035
=== Move ===
MaxReps: 0, StepErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
Scheduled moves: 0, completed moves: 0
Bed compensation in use: none
Bed probe heights: 0.000 0.000 0.000 0.000 0.000
=== Heat ===
Bed heater = 0, chamber heater = -1
Heater 0 is on, I-accum = 0.2
Heater 1 is on, I-accum = 0.1
=== GCodes ===
Segments left: 0
Stack records: 2 allocated, 0 in use
Movement lock held by null
http is idle in state(s) 0
telnet is idle in state(s) 0
file is idle in state(s) 0
serial is ready with "M122" in state(s) 0
aux is idle in state(s) 0
daemon is idle in state(s) 0
queue is idle in state(s) 0
autopause is idle in state(s) 0
Code queue is empty.
Network state is running
WiFi module is connected to access point
WiFi firmware version 1.19
WiFi MAC address 5c:cf:7f:2b:e7:ae
WiFi Vcc 3.12, reset reason Turned on by main processor
WiFi flash size 4194304, free heap 39352
WiFi IP address 192.168.178.36
WiFi signal strength -51dBm
HTTP sessions: 1 of 8
Socket states: 0 0 0 0 0 0 0 0
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) -
the server is still in the network and http seems to be there but a request instantly dies
Uwes-MBP-3:Edge uwe$ nmap 192.168.178.36
Starting Nmap 7.40 ( https://nmap.org ) at 2017-10-27 19:52 CEST
Nmap scan report for duet.fritz.box (192.168.178.36)
Host is up (0.056s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
80/tcp open httpNmap done: 1 IP address (1 host up) scanned in 1.31 seconds
Uwes-MBP-3:Edge uwe$ nmap 192.168.178.36Starting Nmap 7.40 ( https://nmap.org ) at 2017-10-27 19:52 CEST
Nmap scan report for duet.fritz.box (192.168.178.36)
Host is up (0.047s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
80/tcp open httpNmap done: 1 IP address (1 host up) scanned in 2.66 seconds
Uwes-MBP-3:Edge uwe$ wget 192.168.178.36
–2017-10-27 19:53:04-- http://192.168.178.36/
Connecting to 192.168.178.36:80… connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying. -
new board is in, updating firmwares and connecting to wifi now. fingers crossed
[7:39]
updated and connected. now we wait[7:42]
Well, about an hour of work to swap the boards, and it only took 2mins and 2seconds for it to disconnect.[7:43]
I am going to go eat some pizza and walk away from this for a minute. -
Damn!!!
-
-
Jarery,
Any luck going back to 1.18?
-
Keegan, sorry i've been busy changing careers in the last week and have not had a chance yet.
Hopefully later this week I can downgrade my other printer. -
As the replacement board didn't fix the problem, that suggests that it is something about the environment of your Duet that is triggering the problem.
Can you post a few photos of your printer, to show how you have the Duet mounted and any cables that are in the vicinity of the WiFi module?
-
David,
I will try to get some pictures tonight. Ill warn in advance, that the wiring is pretty sloppy right now. I didn't give it much care when swapping the board because I wanted to get it in there as quickly as possible to test it. My next idea was to maybe just disconnect everything I could from the board except for power and try testing it that way.
Comparing to a Ultibots DV300s that comes with the duet, the main difference I could see is that my PSU (meanwell) is in the base of the Rostock with the Duet, where it is external for the DV300s. Could the PSU cause issue?
On the idea of the PSU too, is there any benefit in turning up the voltage potentiometer?