Cant connect to new Wifi network
-
Hi,
I recently moved and tried to connect to my new network.
I changed the M587 command on the SD card to my new network specs and used YAT to figure out the new IP adress.
However the only thing that happens is that the blue LED on the wifi module blinks and then i get a timeout message.-my new network works normally, no wifi issues what so ever.
-I can still turn the wifi module on and off with M552 but it just times out.
-I haven't changed anything about the printer
-I tried the M122 over YAT as well the reset reason is "turned on by main processor"
-I also changed the modem channel to 6 but nothing changed there as well.
-I tried delteting the old remembered networks but it said "error deleting remembered network"The only little thing that changed is that my previous password only had numbers and now i have letters in there as well, but that shouldnt matter i think.
Is there anything obvious that I missed? I never had an issue before and this printer has seen at least 5 different networks.
Cheers
-
If your new network is 5GHz network, then you cant use it, duet wifi doesnt support 5GHz as far as i know.
-
@aidar right, but the network is still good ol' 2,4ghz
also i just read here https://forum.duet3d.com/topic/6481/network-problem/9?_=1589731882865that the M587 command isnt recognized inside config.g
when i give the command over YAT i get the "ok" but then then with M587 only only shows up in 3rd place of the remembered networks.
-
@sungod3k said in Cant connect to new Wifi network:
but then then with M587 only only shows up in 3rd place of the remembered networks.
3rd place is in itself not a problem, but not sure what happens if you have 3 conflicting entries with samme ssid and different keys for instance.
to clear old settings and try again, from YAT
M552 S-1 M552 S0 M588 S"*" M587 S"yourssid" P"yourpass" M552 S1
-
turn off the network, set your parameters for the wifi session. and then turn back on the network. also don't leave the m587 enabled in your config.g. once the esp8266 is programmed, it will remember the ssid/password and goto that network upon bootup
-
I deleted all remembered SSIDs and the correct one is now correctly remembered by M587
I took the M587 P... S... completely out of the config.gI also tried with pronterface and apostrophies in front of every lowercase letter.
But when I start the network i still get the same timeout.
-
@sungod3k said in Cant connect to new Wifi network:
But when I start the network i still get the same timeout.
What timeout? Please give the exact message you get eventually after you send M552 S1.
-
M552 S-1 WiFi module stopped<LF>ok<LF> M552 S0 ok<LF>WiFi module started<LF> M587 S"ssid" P"'pw" ok<LF> M552 S1 ok<LF>WiFi reported error: Timed out while trying to connect to SSID<LF>WiFi module is idle<LF>WiFi module is idle<LF>WiFi reported error: network scan failed<LF>WiFi module is idle<LF>WiFi reported error: network scan failed<LF>WiFi module is idle<LF>WiFi reported error: network scan failed<LF>
-
@sungod3k please change your line ending settings in YAT so it displays a new line instead of <LF> makes for much easier reading.
then maybe try
@bearer said in [WiFi reported error: Failed while trying to connect]
then power down, remove the SD card and power it back up without the SD card. connect to usb/YAT and run
M111 P14 S1 ;to enable wifi debug M552 S-1 ;to disable the wifi module M552 S0 ;to disable networking/idle wifi G4 S1 ;wait a second M552 S1 ;to enable networking
(don't need to type
;
and what comes after, but its safe to copy/paste as is)if there are a lot of other 2.4gz wifi networks in the area maybe consider
@bearer said in WiFi reported error: Failed while trying to connect:
try running a wifi scanning app to see which channel is least congested and switch to that?
if it still fails to connect, you could try to set the Duet up as an access point to see if it works at all. that might indicate compatibility issues with your router.
-
@sungod3k said in Cant connect to new Wifi network:
Timed out while trying to connect to SSID
It looks as though the Duet can see the access point, but the access point didn't respond to the Duet's request to connect. This could be due to the WiFi signal strength being too low, or the access point configuration.
-
I placed the router 1m away from the printer and changed channels multiple times, which didnt change anything.
I havent called my ISP though maybe they have an idea.In the meantime I resurrected Octoprint, which works from the start and shows up directly in my router.
Maybe its time now to upgrade to RRF 3 and see if that works.
-
@sungod3k said in Cant connect to new Wifi network:
Maybe its time now to upgrade to RRF 3 and see if that works.
I'd wager that to make no difference as the Wifi firmware stays the same unfortunately, so unless you want to do the upgrade for some of the other benefits anyways I wouldn't prioritize that tbh. Did you try running the Duet as an accesspoint to see if you can connect to it across the same distance as it fails to connect to the router? Might help narrow it down to a signal quality issue vs wifi compatability issue.
-
Routers often have log files where you can check whether there is an error message of the Duet trying to connect.
A different approach is to setup the smartphone for Wifi tethering and simulate the different settings of the router and test Duet connection (ipv4/6, encryption method, password, ssid, channel etc.) There exist good apps on the smartphone for Wifi analysis, so analyzing will be easier than on the router. -
I just tested my phones hotspot and it works on the first try.
I went through all my router settings which arent many, but now I know where to look.
Thanks for the good ideas all!
Update: My router only support IPv4 upon request, so far i have been dual stack, never thought that this could be a problem.
Well my ISP ensures me that that should fix it by tmr. -
@sungod3k said in Cant connect to new Wifi network:
I just tested my phones hotspot and it works on the first try.
I went through all my router settings which arent many, but now I know where to look.
Thanks for the good ideas all!
Update: My router only support IPv4 upon request, so far i have been dual stack, never thought that this could be a problem.
Well my ISP ensures me that that should fix it by tmr.<winster >
I am also having similar difficulties with wifi connection. this is my first time using a forum board so if i am doing any thing incorrectly i would appreciate positive criticism. first off I am building a two trees Sapphire pro xy core printer with several modifications. it has Mosquito hot end, BLtouch to go in when working again, 200x200 mm HotBed (24 volt) and it is controlled by DUET3D wifi card with a paneldue for indication. have repierserver running as well as YAT. i believe i may need a temperature daughter board to complete installation for the masquito thermocouple, but not sure on that.IThe Yat response is as follows"
RepRapFirmware for Duet 2 WiFi/Ethernet Version 2.03 dated 2019-06-13b2<LF><LF>Executing config.g...Error: Bad command: FOR TESTING ONLY! USE https://configurator.reprapfirmware.org/ to generate configuration files for your printer!<LF>WiFi module is disabled<LF>Warning: Heater 0 appears to be over-powered. If left on at full poweWiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known n[Warning: Maximal number of bytes per line exceeded! Check the EOL (end-of-line) settings or increase the limit in the advanced terminal settings.]M587 S"xxxxxx-5G" P"xxxxxxxxxx" M587: Failed to add SSID to remembered list<LF>ok<LF>Error retrieving WiFi status message: bad reply format version<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no kn[Warning: Maximal number of bytes per line exceeded! Check the EOL (end-of-line) settings or increase the limit in the advanced terminal settings.] M587 S"xxxxxx" P"xxxxxxxxx" M587: Failed to add SSID to remembered list<LF>ok<LF>Error retrieving WiFi status message: bad reply format version<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no known networks found<LF>WiFi module is idle<LF>WiFi reported error: no kn[Warning: Maximal number of bytes per line exceeded! Check the EOL (end-of-line) settings or increase the limit in the advanced terminal settings.] M552 S-1 M551 S0 M558 S"*" M587 S"xxxxxx" P"xxxxxxxxx" M582 S1 WiFi module stopped<LF>ok<LF>ok<LF>ok<LF>M587: Failed to add SSID to remembered list<LF>ok<LF>M582: Missing T parameter<LF>ok<LF>"
so as you can see it is not recognizing ssid in remembering
-
Just to finish this adventure off.
It works now, because i managed to use my original modem in bridgemode with a new router. The printer works now with the new router as before.