Wifi module keeps disconnecting
-
@kirk001 said in Wifi module keeps disconnecting:
Disconnections occur when idle. I haven't been able to print. I can't stay connected more than 10 seconds.
That's worse than I've ever heard happen before. Please can you connect a PC running e.g. YAT or Pronterface to the Duet, and send M111 S1 P13 (if using YAT, set the end-of-line sequence to "LF only"). This will enable WiFi debugging. When DWC connects, you will see a few lines of debug. When you get a disconnection, there may be some more debug messages - please post them here.
And have no password at the moment (it was really tedious to have to enter a password 5 times in one minute because it kept disconnecting every 10 seconds.)
The latest DWC (1.21.1) remembers the password when it reconnects.
-
Something odd just happened. I logged into my Duet from 2 different computers. On one, I connected directly to the IP address, and on the other, I connected to my "duet.local" address. The one connected directly to the IP address has stayed connected for over an hour now while the "duet.local" connection has disconnected 20+ times. I haven't tried printing yet. but this is the longest I've been able to stay connected.
-
@kirk001 said in Wifi module keeps disconnecting:
Something odd just happened. I logged into my Duet from 2 different computers. On one, I connected directly to the IP address, and on the other, I connected to my "duet.local" address. The one connected directly to the IP address has stayed connected for over an hour now while the "duet.local" connection has disconnected 20+ times. I haven't tried printing yet. but this is the longest I've been able to stay connected.
Interesting! Were you previously always using "duet.local" to connect?
If you are able to capture a Wireshark trace showing the network traffic on the PC at the time it disconnects, that may also help us diagnose the problem.
-
Yes "Duet" was the name I put in the config.g file and "Duet.local" was the address I've been using.
I'm downloading Wireshark now.
-
I was able to do a Wireshark capture (I hope I did it correctly.) I saved it to a file (1.7Mb). Should I upload it here or e-mail it to you?
-
@kirk001 said in Wifi module keeps disconnecting:
I was able to do a Wireshark capture (I hope I did it correctly.) I saved it to a file (1.7Mb). Should I upload it here or e-mail it to you?
Please post it on Dropbox or another file sharing site, and post the link here, if you are happy that it doesn't contain confidential information.
-
-
Thanks, that's on my list to look at soon.
-
@kirk001 said in Wifi module keeps disconnecting:
https://www.dropbox.com/s/rgbvi0l4k5xb25u/Duet Stream.pcapng?dl=0
I tried to download that file but it looks like you deleted it. Do you still have it?
-
Hello
I have Wifi Problem since 1.20
if wifi AP reboots, DuetWifi never reconnect
all Clients reconnects fine - Duet nope
need to Power off (or go via USB and restart network)I using Unifi wifi AP Mesh - works great
when need to update, reprovisioning, scan frequencies something likes this,
wifi disconnects short time
checked settings - all fineno Problem with other clients (10-20)
DuetWifi no reconnect after wifi disconnect/signal lostreset wifi, delete wifis ...no
checkt with 1.20, 1.21 nope
no I'm using wifiServer 1.19.2 - that works fine !
with unifi I can push wifi reconnect for spezial client or can block clients
so I can test reconnection of DuetWifinow I'm using this kombination:
Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
Firmware Electronics: Duet WiFi 1.02 or later
Firmware Version: 2.0(RTOS) (2018-06-05b3)
WiFi Server Version: 1.19.2 <-------
Web Interface Version: 1.21.1no wifi Problems any more
stable and faster
and the AP shows the hostname of duetwifi againconnection Data from AP:
99% (-52 dBm) 72.2 Mbps 54 Mbpsgood, stable upload speed (100MB gcode)
Uploading File(s), 46% Complete (762.1 KiB/s)m122:
=== Network ===
Slowest loop: 222.84ms; fastest: 0.01ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
HTTP sessions: 1 of 8- WiFi -
Network state is running
WiFi module is connected to access point
Failed messages: pending 3, notready 0, noresp 0
WiFi firmware version 1.19.2
WiFi MAC address 60:01:94:31:48:f2
WiFi Vcc 3.08, reset reason Turned on by main processor
WiFi flash size 4194304, free heap 38968
WiFi IP address 192.168.2.220
WiFi signal strength -50dBm, reconnections 0, sleep mode unknown
Socket states: 0 0 0 0 0 0 0 0
so with WifiServer 1.19.2 wifi disconnects eg. reconnect Problems are gone
Greetings from HH
Ingo (Knaudler) - WiFi -
-
@Knaudler, thanks for your feedback. My best guess is that the change in the ESP8266 SDK to fix the KRACK WPA2 vulnerability was incompatible with your router. I heard a rumour that this fix was incompatible with some routers.
There is an even newer version of the SDK available now, so I will update DuetWiFiServer to use it in the next few days, then you can test whether it works for you.
-
thanks
maybe I can double check with Fritzbox 7490 (Labor)
if this can help
FritzBox is most use Router in germany -
same with Fritzbox 7490 (last beta - only 20mhz, no pmf)
after wlan off ... 30sek wlan on
no reconnect of wifiServer 1.21
with 1.19.2 ok