Cannot connect to wifi
-
Hi! Yep, here it is (I have my actual SSID and password in place of "SSID" and "password"):
M552 S-1 ; turn off wifi
G4 S2 ; wait for wifi state to change
M552 S0 ; turn on wifi in idle mode
G4 S2 ; wait for wifi state to change
M588 S"*" ; if necessary, delete all existing saved SSIDs
G4 S2 ; wait for wifi state to change
M587 S"SSID" P"password" ; add new SSID
G4 S2 ; wait for wifi state to change
M552 S1 ; enable networkingI ran M587 again and it is saying
READ: LAB IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0Also it is now saying this:
READ: Error: WiFi module reported: Didn't find access point while trying to connect to LABI created the SSID called LAB specifically to only run on 2.4 GHz, so I'm sure it's not trying to connect to 5 GHz
-
Can you follow this guide to setting up the Duet wifi module in access point mode? This will eliminate your wireless network from the equation entirely so we can verify the duet wifi hardware is working.
https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m589-configure-access-point-parameters
This will create a network on the Duet that you will connect your wifi device (phone or computer) to and access the web interface that way. If this works, we know that the wifi module is in fact working.
-
@Phaedrux It worked! I was able to control the printer using DWC. Does that indicate that the issue could be my wifi? Is there anything else you know of that I could check?
-
Well it shows that the Duet hardware is good, so that's a start.
I think we should take the error message you're getting at face value.
READ: Error: WiFi module reported: Didn't find access point while trying to connect to LAB
So either the details of the SSID were incorrectly entered, or the SSID isn't actually 2.4ghz.
-
Not helpful for your case - and while it was RepRapFirmware, it wasn't Duet hardware (was a Troodon 2 for work), I could not for the life of me get the printer to connect to a WiFi network. Would have to check the specific router/switch, but it was a newer dual band Netgear device. I set the printer up in access point mode, and haven't had an issue since.
I tried everything I could think of on the Netgear switch - simple access point name and password, disabled all security, disabled the 5ghz band, yet still no luck. Would be interesting to give it another shot at some point.
-
READ: WiFi firmware version 1.27
From your last M122, you're using a version of the WiFi firmware that should work, and is shipped with RRF 3.4.6, but we have updated it to use the latest SDK (software development kit) from Expressif. This may be more compatible with more modern routers. If you would like to try it, upload the "DuetWiFiServer.bin" (NOT any of the ones with '_32' in their name) from https://github.com/Duet3D/WiFiSocketServerRTOS/releases/tag/2.1beta7 to your Duet in DWC. When it flashes the firmware, you will lose connection, and you will need to connect via USB and setup your WiFi again with M587, or in access point mode with M589.
Ian
-
Thanks so much for this! I'm definitely getting fewer error messages now. It still won't connect to my wifi though; I am now getting this message:
READ: Error: WiFi module reported: Authentication failed
-
@z_big How is the WiFi setup on your router? As a standard WPA2-PSK? It sounds like it may be set up for WiFi Enterprise Authentication, if you are getting an 'Authorisation failed' message. This version of the Duet WiFi Server added support for that, see the extra X, E, A, U, P and Q parameters for M587: https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m587-add-wifi-host-network-to-remembered-list-or-list-remembered-networks
Ian
-
Thanks for all your continued help! I really appreciate it. Yep, it is set to the standard WPA2-PSK; I triple-checked it. Could encryption type have anything to do with it? I see options for either TKIP or AES. I don't really know what they mean, but at this point I'm just trying anything that might work haha.
@Phaedrux
That's what it seemed like to me too; that's why I created a special guest network that only runs on 2.4 GHz and has a simple password that is impossible to mess up -
@z_big WPA2-PSK is the default for Duet, so that should work. AES is the more normal encryption, and again, that should work. A couple of things... what version is your Duet 2 WiFi? Does it have an external antenna, or is the antenna part of the board? How far is the router from the Duet?
For Duet 2 WiFi with built in antennas, using Channel 1 can be a problem. If possible, use a higher channel on the router, usually 6 or 11. This is mentioned on this page, which may have some other tips: https://docs.duet3d.com/en/User_manual/Troubleshooting/WiFi_troubleshooting
Cordless phones and microwave ovens can cause big problems for WiFi too.Ian
-
@droftarts The duet has its antenna as part of the board. The router is probably 15 feet away, but on the floor above (so diagonally from the printer).
I tried switching it to both channel 6 and channel 11, but I am still getting the "Authentication failed" error.
My cordless phone is pretty close, so I tried unplugging it, but still nothing.
I also tried adjusting the antennae on my router; it improved my RSSI from -56 dBm to -51 dBm. That didn't seem to help either. But maybe that is still not strong enough? -
@droftarts Is there anything else I should try?
-
@z_big I would try changing the router password to something really simple, at least to test connection. Something with no special characters, just upper case and numbers. Are you still using the serial terminal in Simplify3D still to send the commands? Can you also screen shot the Router setup (obfuscate the SSID and password as necessary), maybe there's something in there?
Please also send M122 to the Duet and post the response, if possible.
Ian
-
This post is deleted! -
This post is deleted!