New Duet 2 Wifi Not Working



  • Hi I just got my Duet 2 Wifi with external antenna 🙂 .
    I have been through the https://duet3d.dozuki.com/Guide/1.)+Getting+Connected+to+your+Duet/7 documentaion and installed all the drivers and followed the steps carefully.

    I cannot get the wifi to work at all, this is what I get in YAT.

    M115
    FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.02(RTOS) ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2018-12-24b1
    ok
    M552 S0
    ok
    M587 S"ASUS" P" ** 23password23 ** " (Please note there is not a space between the asterisk symbols, quotes and password
    ok
    M552 S1
    ok
    WiFi reported error: no known networks found
    WiFi module is idle
    WiFi reported error: no known networks found
    WiFi module is idle
    WiFi reported error: no known networks found
    WiFi module is idle
    WiFi reported error: no known networks found
    WiFi module is idle
    M552 S0
    ok

    I double checked that I was connecting to the 2.4Ghz side of the Wifi and that I had the correct password and SSID and also added my other Wifi network just to be sure but it will not connect to either.

    Am I missing something ???

    Any help with this would be very much appreciated.



  • What's the output if you run M587?



  • @oliof
    M587
    M587: Failed to retrieve network list
    ok
    M587 S"ASUS" P" ** 23Password23 ** "
    M587: Failed to add SSID to remembered list

    Ok I am officially lost now as I could have swore that when I run this last time it came back with (ok)



  • You can try

    M552 S-1
    M552 S0
    M587 S"SSID" P"password"
    M552 S1

    This resets the wifi module, then puts it in idle mode where you can tell it to add a WiFi and password to it's list of networks to try and connect, and then enables the wifi again.

    If that fails, run M122 and post the output about wifi.



  • M587: Failed to add SSID to remembered list

    Is this stored on SD card or inside ESP8266?



  • That's stored in the ESP



  • nope not working either
    M552 S-1
    ok
    M552 S0
    ok
    WiFi module started
    M587 S"ASUS" P" ** 23password23 ** "
    ok
    M552 S1
    ok
    WiFi reported error: no known networks found
    WiFi module is idle

    I don't understand why it won't connect to the network it is about 3 feet away from the router and has the external antenna connected.



  • What does a plain M587 return?



  • @oliof

    M587
    M587: Failed to retrieve network list
    ok



  • ahh now it is showing
    Remembered networks:
    TNCAP2FCC19 IP=192.168.1.14 GW=0.0.0.0 NM=0.0.0.0
    ASUS IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0
    VM2973955 IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0
    ok

    not sure where the TNCAP2FCC19 IP=192.168.1.14 GW=0.0.0.0 NM=0.0.0.0 came from



  • OK, so the M587 S... P... didn't complete.

    Do you have quote marks, semicolons, or spaces in your WiFi password? They might mess things up.

    Also, I remember now that with YAT you have to set the line ending to LF, maybe that'll help.



  • yes I have double * at the start and end of my wifi password e.g ** 23password** but no spaces. I have got the YAT settings set to LF as the Getting Connected to your Duet webpage tells you to do.

    The only thing I haven't done is updated any of the firmware.

    I literally unpacked the Duet2Wifi controller out of the box.
    connected it to my pc via the supplied USB cable.
    Installed the Drivers, YAT and did the text settings and set the line ending to LF.
    Continued to follow the Getting connected to your Duet guide all the way till I couldn't get it to connect to my wifi.

    The SD Card that came with the Duet2Wifi I take is pre setup as it has all the folders in there and I copied over my reprap config files to the /sys folder.


  • administrators

    I suggest you run this from YAT:

    M552 S-1
    M552 S0
    wait until you get "WiFi module is idle"
    M588 S"*"
    that deletes the remembered list
    M587 S"ASUS" P"<your password>"
    M587
    check that the output from that command has just ASUS in the remembered list
    M552 S1
    and see whether it connects.

    Is the SSID of your network definitely just ASUS ? Is it transmitting on 2.4GHz? Many routers use different SSIDs for 2.4GHz and 5GHz.



  • @dc42

    M552 S-1
    WiFi module stopped
    ok
    M552 S0
    ok
    WiFi module started
    M588 S"*"
    ok
    M587 S"ASUS" P" ** 23password23 **"
    ok
    M587
    Remembered networks:
    ASUS IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0
    ok
    M552 S1
    ok
    WiFi reported error: no known networks found
    WiFi module is idle
    WiFi reported error: no known networks found
    WiFi module is idle
    WiFi reported error: no known networks found
    WiFi module is idle

    My 2.4Ghz Wifi is definitely called ASUS as I setup the router and the 5Ghz side is called ASUS_5G lol simple I know but it works and the SSID is hidden so would that make a difference ?



  • You say "no spaces" but your posts here do have spaces after the stars.



  • @nophead yes I had to put them in as it changes it from looking like P" ** 23password23 **" to P"23password23"


  • administrators

    The "No known networks found" message means it couldn't find a 2.4GHz network with SSID ASUS that is not hidden.

    If you have configured your router to hide the SSID, you should be able to connect by sending M552 S1 P"ASUS" instead of just M552 S1.

    It could be that the WiFi signal is too weak. I suggest you use your smartphone to scan for wifi networks in the vicinity of the Duet. Check that is reports the network ASUS, that it says the frequency is 2.4GHz, and that it has a good signal strength.

    Is the Duet on the bench, or fitted into a printer?



  • @dc42

    M552 S1 P"ASUS"
    ok
    WiFi module is connected to access point ASUS, IP address 192.168.254.43

    Thank you all so much for your help and Thank you dc42 for working out what it was I will gladly buy you a beer if you are ever in my area.

    Just a quick side question would you recommend that I update all the firmwares to the latest version or run on the current ones that I have.

    FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.02(RTOS) ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2018-12-24b1



  • You can update to the latest set of firmwares by uploading this zip file as is to the settings page.

    https://github.com/dc42/RepRapFirmware/releases/download/2.03/Duet2Firmware-2.03.zip



  • @phaedrux Thanks very much 👍 ☺


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.