Wifi not working on duetwifi



  • I have some problems with my duet2wifi.
    For some time now the wifi has been unreliable when i turn on the printer. It would connect most times, but about 1 in 10 times it dont, and i had to restart it or connect it to a pc to manually get it to connect.

    The printer worked fine yesterday, but today it woldent connect even what i tried. I`ve spent most of the day trying firmware updates, and installing evertything from scratch.

    It seems like i cant get the wifi module to idle, or even to update the fimware.

    m115
    FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.05.1 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2020-02-09b1
    ok
    m997 s1
    Trying to connect at 230400 baud: failed
    Trying to connect at 115200 baud: failed
    Trying to connect at 74880 baud: failed
    Trying to connect at 9600 baud: failed
    Error: Installation failed due to comm write error
    ok
    m552 S0
    ok
    m552
    WiFi module is being started
    ok
    m587
    M587: Failed to retrieve network list
    ok
    m122
    === Diagnostics ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 2.05.1 running on Duet WiFi 1.02 or later
    Board ID: 08DGM-917NK-F23T0-6JTD8-3SJ6N-TZ84G
    Used output buffers: 1 of 24 (1 max)
    === RTOS ===
    Static ram: 25712
    Dynamic ram: 93200 of which 356 recycled
    Exception stack ram used: 256
    Never used ram: 11548
    Tasks: NETWORK(ready,1884) HEAT(blocked,1232) MAIN(running,3824) IDLE(ready,160)
    Owned mutexes:
    === Platform ===
    Last reset 00:17:00 ago, cause: power up
    Last software reset at 2020-05-05 21:56, reason: User, spinning module GCodes, available RAM 5956 bytes (slot 0)
    Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
    Error status: 0
    Free file entries: 10
    SD card 0 detected, interface speed: 20.0MBytes/sec
    SD card longest block write time: 0.0ms, max retries 0
    MCU temperature: min 26.2, current 30.1, max 30.2
    Supply voltage: min 0.1, current 0.5, max 0.8, under voltage events: 0, over voltage events: 0, power good: no
    Driver 0: ok, SG min/max not available
    Driver 1: ok, SG min/max not available
    Driver 2: ok, SG min/max not available
    Driver 3: ok, SG min/max not available
    Driver 4: ok, SG min/max not available
    Date/time: 1970-01-01 00:00:00
    Cache data hit count 1631780863
    Slowest loop: 0.18ms; fastest: 0.05ms
    I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
    === Move ===
    Hiccups: 0, FreeDm: 160, MinFreeDm: 160, MaxWait: 0ms
    Bed compensation in use: none, comp offset 0.000
    === DDARing ===
    Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
    === Heat ===
    Bed heaters = 0 -1 -1 -1, chamberHeaters = 2 -1
    === GCodes ===
    Segments left: 0
    Stack records: 1 allocated, 0 in use
    Movement lock held by null
    http is idle in state(s) 0
    telnet is idle in state(s) 0
    file is idle in state(s) 0
    serial is ready with "m122" in state(s) 0
    aux is idle in state(s) 0
    daemon is idle in state(s) 0
    queue is idle in state(s) 0
    autopause is idle in state(s) 0
    Code queue is empty.
    === Network ===
    Slowest loop: 0.18ms; 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 starting
      WiFi module is disabled
      Failed messages: pending 0, notready 0, noresp 0
      Socket states: 0 0 0 0 0 0 0 0
      ok

    Any suggestions what the problem could be?



  • @steinrune said in Wifi not working on duetwifi:

    Error: Installation failed due to comm write error

    sounds like a bad wifi module.

    even if you can't update it it should still run its current firmware, which it doesn't seem to be doing.

    long shot but could try starting the Duet without the SD card, wait, insert SD card and run M21 M552 S-1 M552 S0 M997 S1 over serial after it has started to try flashing it without being affected by any config on the card.

    There is also the possibility to enable some debug info using M111 P14 S1 but doubt you'll get any adittional info from that given the current state.



  • Thanks for the suggestion, but sadly it didn’t make any difference.

    The WiFi module is a ESP-12S.
    I have a ESP-12F on a Wemos D1 just lying around. Could I just pop that in without any issues with the software?



  • @steinrune said in Wifi not working on duetwifi:

    Could I just pop that in without any issues with the software?

    absolutely-ish. run M997 S1 after the procedure to flash the new module, is only the 12S and 07S that is used by Duet3d but it has to do with certifications - on your own you can use any ESP with the same footprint and the 12F just has a few extra pins on the end.



  • It worked!
    Thanks for the help 🙂



  • Bare hyggelig!


Log in to reply