Code 4 error



  • 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>Failed to change WiFi mode (code -4)<LF>

    my printer jammed, so i took the nozzle off while it was running, cleared the nozzle and put it back on, then it reported a nozzle fault and now it wont connect to wifi anymore this is the first actual error message it has given me otherwise it was just saying

    WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>

    im coming from printrbot so this a steep curve. any help would be appreciated.



  • @pearceind I found a thread about your error message and the reason was a wrong Wifi module version. Please check the versions with M115

    thread link: https://forum.duet3d.com/topic/8035/new-board-but-no-working-wifi/6



  • (Wifi version is at the bottom of M122)

    Either the communication with, or firmware in the wifi seems buggered; I'd reset the module, clear the Wifi network list and re-add your network, if it still fails try re-flashing the fimware with M997 S1 assuming there is a wifi binary in /sys/ on the SD card.

    Ref this post https://forum.duet3d.com/post/139882 for macros to achieve the reset, clearing and adding of your network details.



  • @JoergS5 that did not work

    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<LF>ok<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>

    tried the same steps and still failed while trying to connect to Pearce wifi module is idle



  • @bearer i ran the M122 code and this is what is spit out

    === Diagnostics ===<LF>RepRapFirmware for Duet 2 WiFi/Ethernet version 2.02(RTOS) running on Duet WiFi 1.02 or later<LF>Board ID: 08DGM-917NK-F2MS4-7JTD2-3SJ6P-TYU0G<LF>Used output buffers: 1 of 20 (1 max)<LF>=== RTOS ===<LF>Static ram: 25524<LF>Dynamic ram: 98536 of which 0 recycled<LF>Exception stack ram used: 312<LF>Never used ram: 6700<LF>Tasks: NETWORK(ready,1240) HEAT(blocked,1232) MAIN(running,3644) IDLE(ready,200)<LF>Owned mutexes:<LF>=== Platform ===<LF>Last reset 02:02:09 ago, cause: power up<LF>Last software reset at 2020-07-17 22:19, reason: User, spinning module GCodes, available RAM 6392 bytes (slot 1)<LF>Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d<LF>Error status: 0<LF>Free file entries: 10<LF>SD card 0 detected, interface speed: 20.0MBytes/sec<LF>SD card longest block write time: 0.0ms, max retries 0<LF>MCU temperature: min 16.2, current 21.7, max 22.2<LF>Supply voltage: min 24.1, current 24.2, max 24.5, under voltage events: 0, over voltage events: 0, p[Warning: Maximal number of bytes per line exceeded! Check the EOL (end-of-line) settings or increase the limit in the advanced terminal settings.]



  • @pearceind said in Code 4 error:

    [Warning: Maximal number of bytes per line exceeded! Check the EOL (end-of-line) settings or increase the limit in the advanced terminal settings.]

    please change the line endings of your terminal to LF and try again. It should be a pretty long multiline output.

    edit: but i presume clearing the jam doesn't involve changing the firmware version; and i'd skip to the reset, clear and adding of wifi details before attempting to re-flash the wifi firmware.



  • @bearer said in Code 4 error:

    @pearceind said in Code 4 error:

    [Warning: Maximal number of bytes per line exceeded! Check the EOL (end-of-line) settings or increase the limit in the advanced terminal settings.]

    please change the line endings of your terminal to LF and try again. It should be a pretty long multiline output.

    edit: but i presume clearing the jam doesn't involve changing the firmware version; and i'd skip to the reset, clear and adding of wifi details before attempting to re-flash the wifi firmware.

    how does one do this?



  • got it, Spammed the code out of anger and it worked

    M122
    === Diagnostics ===<LF>RepRapFirmware for Duet 2 WiFi/Ethernet version 2.02(RTOS) running on Duet WiFi 1.02 or later<LF>Board ID: 08DGM-917NK-F2MS4-7JTD2-3SJ6P-TYU0G<LF>Used output buffers: 1 of 20 (1 max)<LF>=== RTOS ===<LF>Static ram: 25524<LF>Dynamic ram: 98536 of which 0 recycled<LF>Exception stack ram used: 312<LF>Never used ram: 6700<LF>Tasks: NETWORK(ready,1240) HEAT(blocked,1232) MAIN(running,3644) IDLE(ready,200)<LF>Owned mutexes:<LF>=== Platform ===<LF>Last reset 02:02:09 ago, cause: power up<LF>Last software reset at 2020-07-17 22:19, reason: User, spinning module GCodes, available RAM 6392 bytes (slot 1)<LF>Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d<LF>Error status: 0<LF>Free file entries: 10<LF>SD card 0 detected, interface speed: 20.0MBytes/sec<LF>SD card longest block write time: 0.0ms, max retries 0<LF>MCU temperature: min 16.2, current 21.7, max 22.2<LF>Supply voltage: min 24.1, current 24.2, max 24.5, under voltage events: 0, over voltage events: 0, p[Warning: Maximal number of bytes per line exceeded! Check the EOL (end-of-line) settings or increase the limit in the advanced terminal settings.]
    M291
    ok<LF>
    M291 R
    ok<LF>WiFi reported error: Wrong password while trying to connect to Pearce<LF>WiFi module is idle<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>
    M587 S"Pearce" P"Homebase1"
    ok<LF>WiFi reported error: Failed while trying to connect to Pearce<LF>WiFi module is idle<LF>
    M587 S"Pearce" P"Homebase1!"
    M587: Failed to add SSID to remembered list<LF>ok<LF>
    M587 S"Pearce" P"Homebase1!"
    M587: Failed to add SSID to remembered list<LF>ok<LF>WiFi module is connected to access point Pearce, IP address 10.0.0.64<LF>
    M587 S"Pearce" P"Homebase1!"
    ok<LF>
    M587 S"Pearce" P"Homebase1!"
    ok<LF>



  • @pearceind said in Code 4 error:

    M587: Failed to add SSID to remembered list

    the thread https://forum.duet3d.com/topic/9807/failed-to-add-ssid-to-remember-list is very similar, I would try dc42's steps to solve it.



  • @pearceind said in Code 4 error:

    got it, Spammed the code out of anger and it worked

    while it does say its connected I'd still visit https://duet3d.dozuki.com/Guide/1.)+Getting+Connected+to+your+Duet/7#s6 to setup the terminal to increase readability for future endavours.


Log in to reply