DWC connection problems
-
@Haggan90 Everything you did in this thread https://forum.duet3d.com/topic/13393/can-t-connect-to-dwc makes it look like it's a problem with your network. But lets start this thread with all the information we need. Connect to the Duet via USB, and using YAT, please post:
- Response to M122 (shows firmware version, wifi firmware version, connection information etc)
- As suggested by @bearer in the other thread, send
M20
andM20 P"/www"
to the Duet, which will list the files on the SD card in the gcode directory (not necessary, but good to see if it works) and the www directory (to check you've got the web server files). eg the response from mine is:
M20 P"/www" GCode files: "css","._css","js","._js","favicon.ico.gz","._favicon.ico.gz","reprap.htm.gz","._reprap.htm.gz","language.xml.gz","._language.xml.gz","fonts","._fonts","html404.htm","._html404.htm","dwc.json","index.html.gz"
- Describe how your WiFi is set up (router make and model, whether you connect directly to it or use range extenders)
- Check the router's configuration that it does not 'quarantine' WiFi connections from the network, both for the Duet and your PC (if it's connected by WiFi)
Ian
-
@droftarts said in DWC connection problems:
@Haggan90 Everything you did in this thread https://forum.duet3d.com/topic/13393/can-t-connect-to-dwc makes it look like it's a problem with your network. But lets start this thread with all the information we need. Connect to the Duet via USB, and using YAT, please post:
- Response to M122 (shows firmware version, wifi firmware version, connection information etc)
- As suggested by @bearer in the other thread, send
M20
andM20 P"/www"
to the Duet, which will list the files on the SD card in the gcode directory (not necessary, but good to see if it works) and the www directory (to check you've got the web server files). eg the response from mine is:
M20 P"/www" GCode files: "css","._css","js","._js","favicon.ico.gz","._favicon.ico.gz","reprap.htm.gz","._reprap.htm.gz","language.xml.gz","._language.xml.gz","fonts","._fonts","html404.htm","._html404.htm","dwc.json","index.html.gz"
- Describe how your WiFi is set up (router make and model, whether you connect directly to it or use range extenders)
- Check the router's configuration that it does not 'quarantine' WiFi connections from the network, both for the Duet and your PC (if it's connected by WiFi)
Ian
Hi Ian!
Ok, let's see.
m552 WiFi module is connected to access point AF-House, IP address 192.168.1.189<LF>ok<LF>
M122 === Diagnostics ===<LF>RepRapFirmware for Duet 2 WiFi/Ethernet version 2.05.1 running on Duet WiFi 1.02 or later + DueX2<LF>Board ID: 08DGM-956GU-DJMSJ-6JTDD-3S86L-1APHG<LF>Used output buffers: 1 of 24 (1 max)<LF>=== RTOS ===<LF>Static ram: 25712<LF>Dynamic ram: 93580 of which 0 recycled<LF>Exception stack ram used: 296<LF>Never used ram: 11484<LF>Tasks: NETWORK(ready,1448) HEAT(blocked,1232) DUEX(suspended,160) MAIN(running,3824) IDLE(ready,160)<LF>Owned mutexes:<LF>=== Platform ===<LF>Last reset 00:02:48 ago, cause: power up<LF>Last software reset at 2019-12-24 12:18, reason: User, spinning module GCodes, available RAM 11144 bytes (slot 2)<LF>Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d<LF>Error status: 0<LF>Free file entries: 10<LF>SD card 0 detected, interface speed: 20.0MBytes/sec<LF>SD card longest block write time: 0.0ms, max retries 0<LF>MCU temperature: min 17.9, current 24.6, max 24.7<LF>Supply voltage: min 0.0, current 1.6, max 1.7, under voltage events: 0, over voltage events: 0, power good: no<LF>Driver 0: ok, SG min/max not available<LF>Driver 1: ok, SG min/max not available<LF>Driver 2: ok, SG min/max not available<LF>Driver 3: ok, SG min/max not available<LF>Driver 4: ok, SG min/max not available<LF>Driver 5: ok, SG min/max not available<LF>Driver 6: ok, SG min/max not available<LF>Date/time: 1970-01-01 00:00:00<LF>Cache data hit count 646899273<LF>Slowest loop: 1.08ms; fastest: 0.05ms<LF>I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0<LF>=== Move ===<LF>Hiccups: 0, FreeDm: 160, MinFreeDm: 159, MaxWait: 64ms<LF>Bed compensation in use: none, comp offset 0.000<LF>=== DDARing ===<LF>Scheduled moves: 1, completed moves: 1, StepErrors: 0, LaErrors: 0, Underruns: 0, 0<LF>=== Heat ===<LF>Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1<LF>=== GCodes ===<LF>Segments left: 0<LF>Stack records: 2 allocated, 0 in use<LF>Movement lock held by null<LF>http is idle in state(s) 0<LF>telnet is idle in state(s) 0<LF>file is idle in state(s) 0<LF>serial is ready with "M122" in state(s) 0<LF>aux is idle in state(s) 0<LF>daemon is idle in state(s) 0<LF>queue is idle in state(s) 0<LF>autopause is idle in state(s) 0<LF>Code queue is empty.<LF>=== Network ===<LF>Slowest loop: 15.38ms; fastest: 0.00ms<LF>Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)<LF>HTTP sessions: 0 of 8<LF>- WiFi -<LF>Network state is running<LF>WiFi module is connected to access point <LF>Failed messages: pending 0, notready 0, noresp 0<LF>WiFi firmware version 1.23<LF>WiFi MAC address 5c:cf:7f:76:64:2c<LF>WiFi Vcc 3.40, reset reason Turned on by main processor<LF>WiFi flash size 4194304, free heap 26024<LF>WiFi IP address 192.168.1.189<LF>WiFi signal strength -61dBm, reconnections 0, sleep mode modem<LF>Socket states: 0 0 0 0 0 0 0 0<LF>ok<LF>
M20 P"/WWW" Begin file list<LF>html404.htm<LF>language.xml.gz<LF>reprap.htm.gz<LF>css<LF>fonts<LF>js<LF>favicon.ico<LF>index.html<LF>img<LF>index.html.gz<LF>favicon.ico.gz<LF>End file list<LF>ok<LF>
I use a Asus RT-AC66U router, I connect directly to it's 2.4G network without any range extenders.
How do I check that? If I check the "client list" in the router I can't find the Duet there.. -
And now miraculously, I can connect to it again... But this is very annoying >.<
-
Aaarrgh! Please setup YAT to use <LF> as the end of line character. Go to "Terminal" Menu -> "Settings" -> "Text Settings" -> "EOL sequence:" set to <LF>. Then output will be more readable!
Anyway, edited highlights from the M122 command:
=== Diagnostics === RepRapFirmware for Duet 2 WiFi/Ethernet version 2.05.1 running on Duet WiFi 1.02 or later + DueX2 Board ID: 08DGM-956GU-DJMSJ-6JTDD-3S86L-1APHG Used output buffers: 1 of 24 (1 max) SD card 0 detected, interface speed: 20.0MBytes/sec === Network === Slowest loop: 15.38ms; fastest: 0.00ms Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0) HTTP sessions: 0 of 8 - WiFi - Network state is running WiFi module is connected to access point Failed messages: pending 0, notready 0, noresp 0 WiFi firmware version 1.23 WiFi MAC address 5c:cf:7f:76:64:2c WiFi Vcc 3.40, reset reason Turned on by main processor WiFi flash size 4194304, free heap 26024 WiFi IP address 192.168.1.189 WiFi signal strength -61dBm, reconnections 0, sleep mode modem Socket states: 0 0 0 0 0 0 0 0
Mostly looks fine: hasn't used up output buffers or HTTP session (though hasn't been on for very long), SD card appears to be working (and file list is read, looks correct), WiFi happy, though signal strength at -61dBm is tenuous, though it's not reporting any disconnections. From https://duet3d.dozuki.com/Wiki/WiFi_disconnections_and_AJAX_timeout_errors
Values in the range -30 to -50 are good, -50 to -60 is OK, -60 to -70 is marginal. Anything below -70 is weak and likely be unreliable.
Keep an eye on these settings if you have further disconnections.
Have a look at your router. You're going to have to investigate this yourself, but I'd start by making sure the firmware was up to date. What firmware version is it running? Latest seems to be 3.0.0.4.382.51641 2019/11/05. See https://www.asus.com/uk/Networking/RTAC66U/HelpDesk_BIOS/
That the Duet is accessible, I'd think the setup was okay, but perhaps the Duet keeps dropping out and the router is reassigning a new IP address. You could try setting a static IP address by updating the stored SSID and password with command M587 https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M587_Add_WiFi_host_network_to_remembered_list_or_list_remembered_networks
M552 S0 ; set network module to idle M587 S"AF-House" P"[your_wifi_password]" I192.168.1.189 M552 S1 ; turn wifi back on
Otherwise, what's the environment like? Close neighbours with WiFi may be drowning out the 2.4GHz signal. Strong radio signals (I have a baby monitor that kills my WiFi) can also cause disconnections. There's probably a whole host of other factors. The page I linked earlier https://duet3d.dozuki.com/Wiki/WiFi_disconnections_and_AJAX_timeout_errors also has lots of suggestions.
Let me know if any of that helps!
Ian
-
@Haggan90 said in DWC connection problems:
I use a Asus RT-AC66U router, I connect directly to it's 2.4G network without any range extenders.
How do I check that? If I check the "client list" in the router I can't find the Duet there..
maybe run just
M587
to see which networks you have stored and are connected to? -
@droftarts Thanks alot for an amazing reply!
I will try and set a static IP and somehow boost the wifi signal. -
@Haggan90 As @bearer suggests, do you have other networks registered on the Duet? Send M587 to see them. Best to have only one network, then it won't try to connect to anything else. You can delete all saved SSIDs by sending (via USB and YAT is easiest):
M552 S0 ; set network module to idle M588 S"*"
Then just add the one you want, as my earlier post.
Edit: I'd still check/update the router firmware first.
Ian
-
@Haggan90 said in DWC connection problems:
If I check the "client list" in the router I can't find the Duet there..
just realized some routers only show dhcp clients; others are able to also show associated wifi clients - if you're using a static IP that may explain it
nownot showing up -
I am new to Duet. Have a Duet 2 WIFI
Started working on everything - getting hooked up.
Started with YAT getting WIFI and then the DWC running.
Used DWC to update firmware and config file. All good.The I was loving the Web Based Configurtator tool, generated customer configuration updates and installed them and now I have no DWC WIFI connectivity!
Using YAT IP is good looking at my router there is a connection
m122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 2.05.1 running on Duet WiFi 1.02 or later
Board ID: 08DGM-9T6BU-FG3SJ-6JKFG-3SD6K-KVXVF
Used output buffers: 1 of 24 (10 max)
=== RTOS ===
Static ram: 25712
Dynamic ram: 92880 of which 120 recycled
Exception stack ram used: 312
Never used ram: 12048
Tasks: NETWORK(ready,676) HEAT(blocked,912) MAIN(running,3752) IDLE(ready,160)
Owned mutexes:
=== Platform ===
Last reset 01:26:31 ago, cause: software
Last software reset details not available
Error status: 0
Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest block write time: 0.0ms, max retries 0
MCU temperature: min 23.5, current 23.9, max 24.0
Supply voltage: min 1.6, current 1.7, max 1.8, under voltage events: 0, over voltage events: 0, power good: no
Driver 0: ok, SG min/max not available
Driver 1: ok, SG min/max not available
Driver 2: ok, SG min/max not available
Driver 3: ok, SG min/max not available
Driver 4: ok, SG min/max not available
Date/time: 2020-03-21 11:56:40
Cache data hit count 4294967295
Slowest loop: 1.08ms; fastest: 0.05ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Move ===
Hiccups: 0, FreeDm: 160, MinFreeDm: 160, MaxWait: 0ms
Bed compensation in use: none, comp offset 0.000
=== DDARing ===
Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
=== Heat ===
Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
Heater 1 is on, I-accum = 0.0
=== GCodes ===
Segments left: 0
Stack records: 1 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 ===
Slowest loop: 202.11ms; fastest: 0.08ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
HTTP sessions: 0 of 8- WiFi -
Network state is running
WiFi module is connected to access point
Failed messages: pending 0, notready 0, noresp 6
WiFi firmware version 1.23
WiFi MAC address ec:fa:bc:25:37:ce
WiFi Vcc 3.42, reset reason Turned on by main processor
WiFi flash size 4194304, free heap 26016
WiFi IP address 192.168.1.111
WiFi signal strength -56dBm, reconnections 0, sleep mode modem
Socket states: 0 0 0 0 0 0 0 0
ok
Users\Daves PC WC>ping 192.168.1.111
Pinging 192.168.1.111 with 32 bytes of data:
Reply from 192.168.1.111: bytes=32 time=40ms TTL=255
Reply from 192.168.1.111: bytes=32 time=25ms TTL=255
Reply from 192.168.1.111: bytes=32 time=70ms TTL=255
Reply from 192.168.1.111: bytes=32 time=91ms TTL=255Ping statistics for 192.168.1.111:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 25ms, Maximum = 91ms, Average = 56msC:\Users\Daves PC WC>
BUT NO DWC - no how, no way
- WiFi -
-
@Dave-O Probably best to start your own thread. But off the cuff I would check your SD card for a /www folder to ensure that you have the DWC files in there.