I am erasing duet but which firmware can I use?



  • Hi, i am really frustrated, I have a duet 2 wifi and evidently I messed up the firmware, I 've tried installing 2.0 version, 1.9, and other but I can't enter the web control.

    So the question is do i have to Install 1.9 and the updating (with is giving me hard time connecting to my wifi Rep Rap Firmware is 1.19, Duet Wifi Firm 1.0) or can I just install 2.05 after erasing the board?

    Thanks in advance

    J


  • Moderator

    Upgrading from an older firmware can be quite a challenge. Part of the problem usually arises from missing certain iap files that may be required by different firmware versions. If you wanted to do it manually and the board is currently still responding and loading either the DWC or over USB and YAT, you can do the upgrade dance from 1.19 to 1.21 to 2.0 to 2.05. It get easier after 2.0 because the major releases have a single zip file that you can upload over DWC that updates all the files needed.

    But If you're intent on completely starting from a blank slate you can use bossa to flash the firmware of your choice from a PC over USB.

    https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware#Section_Fallback_procedure_Num_3

    You'll also need to ensure that you you have a compatible wifiserver bin file on the SD card to update afterwards. And you will likely also need to manually update the DWC files.

    The config.g and homeall will also need some updates if you're coming from 1.19. I suggest using the web configurator to generate a new set of files compatible with 2.0.

    Avoid RRF3 for the time being.



  • @jcv1977 said in I am erasing duet but which firmware can I use?:

    can I just install 2.05 after erasing the board?

    Not that you don't need to erase the board, you can just use a second SD card and use the original as a backup, just in case.



  • @Phaedrux said in I am erasing duet but which firmware can I use?:

    https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware#Section_Fallback_procedure_Num_3

    Thanks for helping. I did try the fallback 3 but again I can't log in to web control page. I have installed Firmware 2.05.1 and wifi 1.02. I get all the config files from rep rap config tool.

    When use M552 S1 it shows:

    WiFi module is connected to access point MYSSID, IP address 192.168.1.191 but when I use that IP on my browser nothing happens.

    What else can I try?


  • Moderator

    Do you have the DWC files in the /www folder on the SD card?

    Can you ping that IP address successfully?

    What happens when you try to go to the IP?


  • administrators

    @jcv1977 said in I am erasing duet but which firmware can I use?:

    Thanks for helping. I did try the fallback 3 but again I can't log in to web control page. I have installed Firmware 2.05.1 and wifi 1.02.

    Did you mean WiFi firmware 1.23 ?



  • @Phaedrux Yep i have follow the tutorial so i have replaced www files for the recommended ones. Actually i can't ping that ip, it funny i entered my router page and there seems to be a problem, the router detects the mac address of the duet correctly but it keeps assigning a another fixed ip. The strange part is that if i try my duet to use dhcp so that its assigned the routers fixed ip address it just don't get any ip at all. Then, i've tried to delete the fixed address from my router, but it persist. WTF?? So i am guessing thats why the web control is not working. I will reset my router so stay tunned! lol


  • Moderator

    Hmm, routers can be persnickity sometimes. Best to leave the Duet as DHCP and let the router assign one. Hopefully you can get them to coorperate.



  • @dc42 I did installed that version, but when i use M115 it shows 1.02.


  • administrators

    @jcv1977 said in I am erasing duet but which firmware can I use?:

    @dc42 I did installed that version, but when i use M115 it shows 1.02.

    I think 1.02 is the Duet hardware revision, not the WiFi firmware revision. To check the WiFi firmware revision, send M122 and look for it in the WiFi section of the response.



  • @dc42

    You were right! But it still can't get any dhcp address and i get:
    WiFi reported error: Timed out while trying to connect to MYWIFI

    Code queue is empty.
    === Network ===
    Slowest loop: 1.25ms; 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 changing mode
    WiFi module is trying to connect
    Failed messages: pending 0, notready 0, noresp 0
    WiFi firmware version 1.23
    WiFi MAC address b4:e6:2d:52:ff:37
    WiFi Vcc 3.30, reset reason Turned on by main processor
    WiFi flash size 4194304, free heap 27480
    Socket states: 0 0 0 0 0 0 0 0
    ok
    
    


  • @jcv1977 said in I am erasing duet but which firmware can I use?:

    WiFi reported error: Timed out while trying to connect to MYWIFI

    how is the signal strength? (proably need to measure with app on phone).
    which type of encryption is in use?
    (and its not a vodaphone router is it?)



  • @bearer I don't think its a signal issue i am literally near the router and the signal is excellent. I use WPA2 Personal and AES encryption. Nope its an Atlantic broadband router, but those are really tight i can't even turn off dhcp jst to test with other router. So i may habe to try another one.



  • @jcv1977 said in I am erasing duet but which firmware can I use?:

    WPA2 Personal and AES encryption

    should work, any special characters in the key? how did you add the network; ponterface tends to mess up keys f.ex.

    So i may habe to try another one.

    if you're not aware, you can also configure the duet to be an access point if that helps you out temporarily. (read the to use as AP notes)
    https://duet3d.dozuki.com/Wiki/Gcode#Section_M589_Configure_access_point_parameters


  • administrators

    @bearer said in I am erasing duet but which firmware can I use?:

    @jcv1977 said in I am erasing duet but which firmware can I use?:

    WiFi reported error: Timed out while trying to connect to MYWIFI

    how is the signal strength? (proably need to measure with app on phone).
    which type of encryption is in use?
    (and its not a vodaphone router is it?)

    Is the SSID of your access point exactly MYWIFI all in uppercase? SSIDs are case sensitive.



  • wouldn't a wrong ssid result in "no known networks found" and not a timeout?


  • administrators

    @bearer said in I am erasing duet but which firmware can I use?:

    wouldn't a wrong ssid result in "no known networks found" and not a timeout?

    Yes, it should.

    @jcv1977 , if you send M587 without parameters via USB, what is the response?



  • @bearer No special characters i just kept it easy not to add possible issues. Yes i tried the AP but with another firmware, it just connected but nothing happened i will try it with the current one.



  • @dc42 Its not the ssid i did all my homework after asking here 😉
    After M587 i get:

    MYWIFI IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0

    Might be a bad wifi module?



  • @bearer Well there is some progress! Using AP mode works fine now and i can finally see the web control page. But it can't seem to connect to my router nor having an ip assigned even if i set at the freaking router a static one.

    Using macros or manually (using M587 S"MYWIFI" P"MYPASSWORD" I192.168.1.128 the blue light of the esp8266 gets blue, but i can't ping to that IP and i can't get to web control page nothing is displayed. Also in my router 192.168.1.128 is not shown at all and the duet appears with a fixed ip 192.169.1.9 but it can't be ping at and it is not browseable.

    I 've already reset to factory setting the router but i dont understand why that fixed IP is still there?????



  • @jcv1977 said in I am erasing duet but which firmware can I use?:

    (using M587 S"...

    lets turn on wifi debugging and see if it gives you any more info (doubt it, but worth a try)

    send M111 S1 P14 to the duet before M552 S1

    you could also perhaps try adding the mac address manually for each IP one at the time?

    arp -s 192.168.1.128  b4-e6-2d-52-ff-37 
    ping 192.168.1.128
    arp -d 192.168.1.128
    

    then try

    arp -s 192.169.1.9  b4-e6-2d-52-ff-37 
    ping 192.169.1.9
    arp -d 192.169.1.9
    


  • hang on; is that a typo or the actual address?
    192.168.1.128 vs 192.169.1.9

    if a typo, un-typo my commands above, if not a typo run route print on the computer.



  • It was a typo, could not delete ips manually. And the debugging returned:

    Debugging enabled for modules: WiFi(14)
    Debugging disabled for modules: Platform(0) Network(1) Webserver(2) GCodes(3) Move(4) Heat(5) DDA(6) Roland(7) Scanner(8) PrintMonitor(9) Storage(10) PortControl(11) DuetExpansion(12) FilamentSensors(13) Display(15)
    ok
    ok
    ok
    WiFi: mode : sta(b4:e6:2d:52:ff:37)
    WiFi: add if0
    WiFi: wifi evt: 8
    WiFi: scandone
    WiFi: ../src/SocketServer.cpp(353): found network DIRECT-0c-HP M29 LaserJet
    WiFi: ../src/SocketServer.cpp(353): found network NETGEAR64
    WiFi: ../src/SocketServer.cpp(353): found network ATTBCVg3dS
    WiFi: ../src/SocketServer.cpp(353): found network ATTevrXIVS
    WiFi: ../src/SocketServer.cpp(353): found network MYWIFI
    WiFi: ../src/SocketServer.cpp(353): found network 8831B2
    WiFi: ../src/SocketServer.cpp(353): found network NY Giants 2.4
    WiFi: ../src/SocketServer.cpp(353): found network AC4F3D
    WiFi: ../src/SocketServer.cpp(353): found network VIZIOCastDisplay0071
    WiFi: ../src/SocketServer.cpp(353): found network NETGEAR76
    WiFi: ../src/SocketServer.cpp(353): found network NETGEAR50
    WiFi: ../src/SocketServer.cpp(353): found network DIRECT-C5-HP OfficeJet 3830
    WiFi: ../src/SocketServer.cpp(353): found network Area 51
    WiFi: ../src/SocketServer.cpp(353): found network Torresnunez
    WiFi: ../src/SocketServer.cpp(353): found network Bchehade24
    WiFi: ../src/SocketServer.cpp(353): found network NETGEAR78
    WiFi: ../src/SocketServer.cpp(353): found network belkin.fac
    WiFi: ../src/SocketServer.cpp(353): found network belkin.fac.guests
    WiFi: ../src/SocketServer.cpp(353): found network ARLO_VMB_1570254913
    WiFi: sleep enable,type: 2
    WiFi: STUB: dhcp_stop
    WiFi: scandone
    WiFi: state: 0 -> 2 (b0)
    WiFi: state: 2 -> 3 (0)
    WiFi: state: 3 -> 5 (10)
    WiFi: add 0
    WiFi: aid 2
    WiFi: cnt 
    WiFi: 
    WiFi: connected with MYWIFI, channel 6
    WiFi module is connected to access point MYWIFI, IP address 192.168.0.128
    WiFi: ip:192.168.0.128,mask:0.0.0.0,gw:0.0.0.0
    WiFi: ip:192.168.0.128,mask:0.0.0.0,gw:0.0.0.0
    WiFi: wifi evt: 0
    WiFi: wifi evt: 3
    WiFi: pm open,type:2 0
    

    It has to be something between the wifi module and the freaking router they just don't like each other.

    I changed the ip also to check but still nothing.



  • @jcv1977 said in I am erasing duet but which firmware can I use?:

    could not delete ips manually

    ? permissions or wrong command? might need to run as admin.

    @jcv1977 said in I am erasing duet but which firmware can I use?:

    And the debugging returned:

    thats probably food for @dc42 he knows more about RRF than i do about networks ^^



  • @jcv1977 said in I am erasing duet but which firmware can I use?:

    M587 S"MYWIFI" P"MYPASSWORD" I192.168.1.128

    it be interesting to see the debug for that without I192.168.1.128 (i.e. let the duet (try to?) obtain the dhcp lease) and while you're at that, do run route print from the computer just so we can confirm its all on the up and up.


Log in to reply