CONSTANT AJAX disconnect errors
-
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?
-
I had this problem too. It only went away once I used Firefox developers edition to access the printer. I know there's a lot of hate for Safari, but I like it. It just can't access the duet properly.
-
I had this problem too. It only went away once I used Firefox developers edition to access the printer. I know there's a lot of hate for Safari, but I like it. It just can't access the duet properly.
Thanks, I will test this tonight too. So far I've tried Safari and Chrome.
-
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?
I have my PSU under the bed with the Duet too. The bed is AC mains powered, so it's quite a small PSU. The edge of the Duet with the external connectors is between two of the 2020 base extrusions, so that the WiFi antenna protrudes outside them. See https://www.thingiverse.com/thing:965396.
-
David,
Thanks for that link. Those pictures are a nice reference. My PSU is no closer than that to my duet board. I noticed that you have flex cable around all of your stepper wiring. Does this help with EMI at all, or is it just to clean up the wiring? -
I today tested latest firmware 1.20beta4+WifiServer1.20beta2, unfortunately the test ended with an Ajax error when I started printing a real file.
But, to start at the beginning, I first simply let autocalibration run for quite a while (30++ minutes) and all was fine.
Then I edited a gcode file stored on the printer, saved it and started printing the file.
Shortly after that I saw the Ajax Disconnect Error message.RSSI Values and Noise Floor are very good, Powersave is disabled (see flags, no PS in flags) and the WiFi Card is still associated and answering fine to sta_info but the TCP-Stack is dead, cannot ping the Duet
in network 2897 seconds
flags 0x1e03a: WME N_CAP AMPDU AMSDU
per antenna average rssi of rx data frames: -39 -43 -45 0
per antenna noise floor: -95 -96 -95 0What I see in sta_info is that after the error happend I have rx decrypt errors and one tx error, before the error decrypt failures were 0:
tx failures: 1
rx decrypt succeeds: 30153
rx decrypt failures: 144Not sure if this means anything, at least it looks suspicious.
I have now rebooted the board and have directly started the print job, right now it runs for 30 minutes, decrypt errors are still 0 and tx failures are also 0.
Michael
-
@David: Could it help when I provide remote debugging for you? I could set up a pc with windows on it that is also connected to duet's usb
-
KeeganB, stepper motor wires should ideally be twin twisted pair, with one pair used per phase, to minimise EMI. But like most people, I just use ordinary 4 core cable, in which the cores slowly twist around each other along the length of the cable.
-
I have two printers, different builds, both exhibit the same disconnects.
One is a metal delta from a kickstarter where I added a duet and it is mounted on the back upright, the other is based of dc42's large kosel build except i mounted my motors and duet on top and power supply underneath.here is the Kossel with duet and motors on the top of printer
And here is second printer, with duet mounted off the back, no motor wiring anywhere near the wifi module
-
A major difference with my delta is that I have the wifi antenna poking outside the machine through the lower extrusions, well away from stepper motors cables, the PSU and other sources of interference, and partially shielded from stepper motors cables etc. by the extrusions. I've never had it any other way, so I don't know how significant this is.
-
I can unscrew my board and mount it standing up on end, or at farthest from the motors this weekend. The end panel of my housing is also removable for access to the usb and sd card, i'll remove it also
-
I let the printer run over night, no disconnect and the print job ran through without an issue.
What I saw this morning is that the wires of one stepper motor were running close to the wifi antenna, I will do a test tonight with stepper motor wires disconnected. tx failures are still 0 and also no decrypt errors reported by the router.
-
Well, last night went horribly for me.
The first night I put the replacement board in was Monday night. I didn't have much free time, so I took an hour and swapped out the boards. Two minutes after getting the firmwares updated and the duet connected to my network, it disconnected. In frustration I turned it off and walked away for the day.
Last night I went back to it to work on more troubleshooting. The disconnects immediately came back. I wanted to test the voltage at the main power inputs to make sure that when the board was under load, the PSU was supplying enough power. With the board powered on and the steppers OFF, I was getting 12.1 volts. Next, it measured 11.92V with the bed and hot end preheating and the stepper motors engaged. The third test I wanted to try was to check the voltage while the steppers were moving. Running an autocal was the easiest way to do this. This was the first time running an autocal or anything that would move the steppers since the "new" board was installed. It probed the first 2 points and then halfway to the third the stepper(s) started making a horrible grinding sound and skipping. I killed the power immediately. Upon powering back up it homed fine. G32 again, and the same thing, in the same area. again, killed power, rebooted and it homed fine. Further testing shows that after a reboot, it can move around X amount of mm, and then it will have issues. For example, I am able to drop it straight down 100mm and it is nice and smooth. When i click home from there, it makes it about 50mm back up before the grinding starts. Once the grinding starts, it grinds no matter how small the movement.
I THINK that it is specifically the Z stepper that is experience the issue.
I checked my stepper wires and connections to the board, they are were good and tight.
I went back to 16x micro stepping instead of 32x.
I stared longingly into the middle distance for a while.
I verified that the endstops are all connected well and functioning properly.David, is it possible that this board you had sent to me is bad? It didn't look like a brand new board when I received it, so I am guessing it was a warranty repair or something?
So now, on top of having to solve the disconnects, I have to solve this mystery stepper nonsense too.