Cannot connect to WiFi - Incorrect password
-
Hello,
I have recently changed my access point and am no longer able to get the Duet 2 to connect to the network.
WiFi reported error: Wrong password while trying to connect to Fake SSID
I have performed;
M552 S0 M588 S"*" M587 S"F'A'K'E SSID" P"M'E'M'P'H'''S'F'A'K'E'P'A'S'S'W'O'R'D" M552 S1
- I am currently on FW 2.05.1.
- I am using YAT to communicate on the COM port.
- I have managed to get the board on the network with a similar SSID & password combination before.
- I have disabled 5GHz on the AP, although this makes no change.
- My password has lowercase and a aphostrophe in it. I have escaped these characters in M587
- Later on I removed the aphostrophe from the password - no change
- I can confirm the Duet can connect to an open network.
- I have put a dummy SSID in slot one as it was mentioned that the flash on the WiFi wears if written to too many times. I don't beleve this is an issue for me as M587 has never been in my config.g but worth mentioning. - no change
- I have applied M587 through a macro to get around password input - no change
I would post my M122 here but it gets flagged as spam.
Any advice will be very much appreciated, I'm a bit at a loss what to do here on out.
~ Memph
-
@memph when using YAT you don't need to use the ` in front of letters you want to be lowercase. Just type them normally.
Clear the saved passwords with
M588 S"*"
before sending another password -
@jay_s_uk Yeah, I've tried every combination.
P"M'E'M'P'H'''S'F'A'K'E'P'A'S'S'W'O'R'D" P"Memph''sfakepassword" P"Memph'sfakepassword"
Doesn't change anything, which is why I tried using macros to try to avoid the problem altogether.
-
The ESP32 wifi modules are used in wifi controlled light bulbs and power switches, as well as the Duet boards. I have found through experimentation that they have some real limitations on the SSID and passwords they can use. Pick a simple 6 or 8 character password using letters and digits only. No spaces, no commas, no quotes, no apostrophes, no symbols. The same goes for the network SSID. Keep it simple.
https://drmrehorst.blogspot.com/2020/10/a-few-tips-for-using-wifi-light-bulbs.html
-
@mrehorstdmd I appreciate your help and I'm sorry for what will be a very anticlimatic conclusion.
The board wasn't lying when it reported a bad password, because it was a bad password - I had misremembered a single character in it. One of those days I guess.
But for anyone in the future who may find this post I can confirm that;
- Capitals, lowercase and spaces in the SSID work, apostrophes will also probably work if you escape them
- Same goes for the passwords, and it can take 25 character length
I'm sorry for wasting everyones time.