Constant 'connection interrupted'
-
@Foden said in Constant 'connection interrupted':
Can you turn the DuetWifi into a DuetEthernet?
Yes I believe so. Instead of soldering on a replacement module you could install the socket for the ethernet module.
-
Hmm, OK that's an option then, except for the hole I'd have to put in my case Oh well
Thanks again Phaedrux
-
I don't want to steal this thread but I'm suddenly having similar problems. I just updated firmware from version 2.something to 3.1.1. At the same time switched from AP mode to client mode. With old firmware and AP mode, it never had a problem. Now I get disconnects about once every minute, almost as if something that's supposed to be doing something every minute to keep the connection alive isn't working. Here's a short portion of the console output:
11/15/2020, 6:45:57 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:46:11 AM: Connection established
11/15/2020, 6:47:18 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:47:25 AM: Connection established
11/15/2020, 6:48:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:48:34 AM: Connection established
11/15/2020, 6:49:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:49:46 AM: Connection established
11/15/2020, 6:50:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:50:58 AM: Connection established
11/15/2020, 6:52:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:52:10 AM: Connection established
11/15/2020, 6:53:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:53:22 AM: Connection established
11/15/2020, 6:54:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:54:34 AM: Connection established
11/15/2020, 6:55:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:55:46 AM: Connection established
11/15/2020, 6:56:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:56:58 AM: Connection established
11/15/2020, 6:58:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:58:10 AM: Connection established
11/15/2020, 6:59:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 6:59:22 AM: Connection established
11/15/2020, 7:00:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:00:34 AM: Connection established
11/15/2020, 7:01:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:01:46 AM: Connection established
11/15/2020, 7:02:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:02:58 AM: Connection established
11/15/2020, 7:04:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:04:10 AM: Connection established
11/15/2020, 7:05:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:05:22 AM: Connection established
11/15/2020, 7:06:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:06:34 AM: Connection established
11/15/2020, 7:07:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:07:46 AM: Connection established
11/15/2020, 7:08:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:08:58 AM: Connection established
11/15/2020, 7:10:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:10:10 AM: Connection established
11/15/2020, 7:11:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:11:22 AM: Connection established
11/15/2020, 7:12:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:12:34 AM: Connection established
11/15/2020, 7:13:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:13:46 AM: Connection established
11/15/2020, 7:14:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:14:58 AM: Connection established
11/15/2020, 7:16:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:16:10 AM: Connection established
11/15/2020, 7:17:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:17:22 AM: Connection established
11/15/2020, 7:18:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:18:34 AM: Connection established
11/15/2020, 7:19:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:19:46 AM: Connection established
11/15/2020, 7:20:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:20:58 AM: Connection established
11/15/2020, 7:22:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:22:10 AM: Connection established
11/15/2020, 7:23:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:23:22 AM: Connection established
11/15/2020, 7:24:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:24:34 AM: Connection established
11/15/2020, 7:25:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:25:46 AM: Connection established
11/15/2020, 7:26:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:26:58 AM: Connection established
11/15/2020, 7:28:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
11/15/2020, 7:28:10 AM: Connection establishedI have a Duet wifi with external antenna so there's no LED on the wifi module.
M122 gives this:
11/15/2020, 9:06:33 PM m122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 3.1.1 running on Duet WiFi 1.02 or later
Board ID: 08DGM-917DA-G4MSJ-6JTF2-3SD6J-KTNHA
Used output buffers: 3 of 24 (19 max)
=== RTOS ===
Static ram: 27980
Dynamic ram: 92564 of which 932 recycled
Exception stack ram used: 552
Never used ram: 9044
Tasks: NETWORK(ready,388) HEAT(blocked,1456) MAIN(running,2120) IDLE(ready,80)
Owned mutexes: WiFi(NETWORK)
=== Platform ===
Last reset 07:09:20 ago, cause: software
Last software reset at 2020-11-15 13:57, reason: User, spinning module GCodes, available RAM 9044 bytes (slot 3)
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task MAIN
Error status: 0
MCU temperature: min 36.9, current 37.5, max 39.5
Supply voltage: min 24.1, current 24.3, max 24.6, under voltage events: 0, over voltage events: 0, power good: yes
Driver 0: standstill, SG min/max not available
Driver 1: standstill, SG min/max not available
Driver 2: standstill, SG min/max not available
Driver 3: standstill, SG min/max not available
Driver 4: standstill, SG min/max not available
Date/time: 2020-11-15 21:06:30
Cache data hit count 4294967295
Slowest loop: 208.16ms; fastest: 0.13ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest read time 2.3ms, write time 0.0ms, max retries 0
=== Move ===
Hiccups: 0(0), FreeDm: 169, MinFreeDm: 127, MaxWait: 442190ms
Bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves: 3341, completed moves: 3341, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: -1
=== AuxDDARing ===
Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: -1
=== Heat ===
Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
=== GCodes ===
Segments left: 0
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
USB is idle 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
Daemon is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty.
=== Network ===
Slowest loop: 201.58ms; fastest: 0.09ms
Responder states: HTTP(2) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 1 of 8- WiFi -
Network state is active
WiFi module is connected to access point
Failed messages: pending 0, notready 0, noresp 1
WiFi firmware version 1.23
WiFi MAC address ec:fa:bc:01:df:36
WiFi Vcc 3.35, reset reason Unknown
WiFi flash size 4194304, free heap 18256
WiFi IP address 192.168.0.254
WiFi signal strength -58dBm, reconnections 0, sleep mode modem
Socket states: 0 0 0 0 0 0 0 0
- WiFi -
-
@mrehorstdmd said in Constant 'connection interrupted':
WiFi Vcc 3.35, reset reason Unknown
Interesting, I see you also get the 'WiFi Vcc 3.35, reset reason Unknown' issueI hadn't used the AP mode until I ran the test I mentioned above, had zero issue with the Duet for years until now
Have you checked that the AJAX retires is set to at least 3?
-
@Foden Thanks, but where would I check/set that?
-
From the main page go to Settings and it's on that page - I think - just booting mine up to check
-
Nope, I was wrong, see attached pic
Machine-specific / then its under communication
-
@mrehorstdmd First I would try reflashing the wifi module.
https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/DuetWiFiServer.bin
Place that bin file in the sys folder of the SD card and then send M997 S1 over USB terminal or paneldue console. Should get a progress report of the flashing process.
Having these macros can make wifi trouble shooting a bit easier too.
Are you trying to use AP mode or client mode now?
-
Also double-check your sd card does not have issues (check it on PC, laptop, Mac etc)
-
Thanks all. I'll get a look at it again tonight and report my findings.
-
I'm running (or trying to) in client mode. I put the DuetWiFiServer.bin file on the SD card and ran M997 S1 via Yat and USB and it tells me that the file is not found.
Now M122 says the wifi module is disabled. I try M552 S1 and it says Wifi module is stopped.
The card seems to be OK- it works fine in windows and seems to work OK in the Duet board, except for it reporting that it can't find the DuetWiFiServer.bin file.
I rebooted the board with M999 then ran M552 and it says wifi module is being started.
M552 S-1 says wifi module is stopped
M552 S1 says "ok"
M552 says wifi module is being started- it never seems to finish, and there's no wifi connection happening. -
@mrehorstdmd That's odd. The bin file is for sure in the /sys folder? Maybe redownload it and give it another shot.
If you send M997 S0:1 it should try to do both.
When going from 2.x to 3.1.1 you went through 3.0 along the way?
-
@Phaedrux yes, I installed 3.0 first then 3.1.1.
-
@mrehorstdmd I have had similar problem with the wifi module after updating from 3.0 to 3.1.1 but reflashing the module was able to get it working and I've seen similar reports and reflashing worked there too. So I'm hopeful that if we can get it to reflash the wifi server firmware it'll start working again.
-
@Phaedrux I'll try a different SD card...
-
@mrehorstdmd aybe it's the SD card- I tried to back it up to a folder in Windows and it gets 69% done then the speed drops to zero and it sits there. If the Duet board is having trouble reading it maybe the read times out and that's why it reports that it doesn't find the DuetWiFiServer.bin file.
-
@mrehorstdmd Sounds plausible to me. If you can't copy all the files off the card hopefully you can get the configs at least.
Doing a full format of the card might rescue it if there is enough spare over provisioning to replace any dead cells.
-
@Phaedrux OK, new card and wifi updated with the M997 command. Wifi is back up, now we'll see if it stays connected...
It's been a few minutes and no dropouts. I think it's good!
Thanks for the help!
-
@mrehorstdmd Any time!
-
@Phaedrux Well, it stayed connected for 6 minutes, then went back to 1 minute disconnect and reconnect intervals.