Wifi Connectivity issue



  • I am having issues with my duet board connecting to wifi router. Over past several day I have tried several things but the issue keeps recurring to the points that I am frustrated with the board.

    Tried to recycle power, use on-board reset button, set specific channels on the router, moving the router just next to the board, Telnet to the board and update the wifi firmware

    Few of things that I noticed:

    1. after flashing the wifi the board most likely connects.
    2. In between the power cycles the wifi connects when the on-board wifi LED blinks and then turns solid. Mostly, the blue wifi led glows directly without blinking and in such cases the board is never connected to the router.

    Pls advice.


  • administrators

    1. Which main and wifi firmware versions are you using? Version 1.21 is recommended. The upgrade process from firmware 1.19 or later is straightforward, but from 1.18 or earlier it is more complicated.

    2. See https://duet3d.dozuki.com/Wiki/WiFi_disconnections_and_AJAX_timeout_errors.



  • I had upgraded to Firmware 1.21, however not sure if the wifi issues started prior to the upgrade or after....

    =========::details from web interface:===========
    Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
    Firmware Electronics: Duet WiFi 1.02 or later
    Firmware Version: 1.21 (2018-03-21)
    WiFi Server Version: 1.21
    Web Interface Version: 1.21

    ==========================

    Few other points: once the wifi is connected I do not have any issues with disconnections / timeouts. the web interface responds for whole duration of print, even after 12+ hours

    Is there any reason for the wifi led on the board to glow solid blue directly before blinking a few times, after powering on


  • administrators

    I don't know why the blue LED would glow solid blue after turn on. Next time it happens, please send M122 via USB to get a diagnostic report. The "Wifi reset reason" may give us a clue.

    Are you using the internal 5V regulator to provide the 5V power, or are you providing 5V power by other means?



  • Today I had another round of issue with the wifi connectivity. As suggested, here are the M122 dumps

    M122<CR>
    === Diagnostics ===
    Used output buffers: 1 of 32 (1 max)
    === Platform ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 1.21 running on Duet WiFi 1.02 or later
    Board ID: 08DDM-9FAM2-LW4S4-6JTDA-3S86K-KMSVX
    Static ram used: 16152
    Dynamic ram used: 100448
    Recycled dynamic ram: 2184
    Stack ram used: 3576 current, 4528 maximum
    Never used ram: 7760
    Last reset 00:01:13 ago, cause: power up
    Last software reset time unknown, reason: User, spinning module GCodes, available RAM 7760 bytes (slot 0)
    Software reset code 0x0003 HFSR 0x00000000, CFSR 0x00000000, ICSR 0x0441f000, BFAR 0xe000ed38, SP 0xffffffff
    Error status: 0
    Free file entries: 10
    SD card 0 detected, interface speed: 20.0MBytes/sec
    SD card longest block write time: 0.0ms
    MCU temperature: min 47.3, current 49.3, max 49.4
    Supply voltage: min 23.9, current 24.0, max 24.1, under voltage events: 0, over voltage events: 0
    Driver 0: standstill, SG min/max not available
    Driver 1: standstill, SG min/max not available
    Driver 2: standstill, SG min/max not available
    Driver 3: standstill, SG min/max not available
    Driver 4: standstill, SG min/max not available
    Date/time: 1970-01-01 00:00:00
    Slowest main loop (seconds): 0.000214; fastest: 0.000049
    === Move ===
    MaxReps: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
    Scheduled moves: 0, completed moves: 0
    Bed compensation in use: none
    Bed probe heights: 0.000 0.000 0.000 0.000 0.000
    === Heat ===
    Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -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 ===
    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
      === Expansion ===
      ok

    M122<CR>
    === Diagnostics ===
    Used output buffers: 1 of 32 (1 max)
    === Platform ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 1.21 running on Duet WiFi 1.02 or later
    Board ID: 08DDM-9FAM2-LW4S4-6JTDA-3S86K-KMSVX
    Static ram used: 16152
    Dynamic ram used: 100448
    Recycled dynamic ram: 2184
    Stack ram used: 3576 current, 4528 maximum
    Never used ram: 7760
    Last reset 00:00:30 ago, cause: power up
    Last software reset time unknown, reason: User, spinning module GCodes, available RAM 7760 bytes (slot 0)
    Software reset code 0x0003 HFSR 0x00000000, CFSR 0x00000000, ICSR 0x0441f000, BFAR 0xe000ed38, SP 0xffffffff
    Error status: 0
    Free file entries: 10
    SD card 0 detected, interface speed: 20.0MBytes/sec
    SD card longest block write time: 0.0ms
    MCU temperature: min 46.5, current 49.3, max 49.4
    Supply voltage: min 23.8, current 24.0, max 24.1, under voltage events: 0, over voltage events: 0
    Driver 0: standstill, SG min/max not available
    Driver 1: standstill, SG min/max not available
    Driver 2: standstill, SG min/max not available
    Driver 3: standstill, SG min/max not available
    Driver 4: standstill, SG min/max not available
    Date/time: 1970-01-01 00:00:00
    Slowest main loop (seconds): 0.000212; fastest: 0.000049
    === Move ===
    MaxReps: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
    Scheduled moves: 0, completed moves: 0
    Bed compensation in use: none
    Bed probe heights: 0.000 0.000 0.000 0.000 0.000
    === Heat ===
    Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -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 ===
    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
      === Expansion ===
      ok
      RepRapFirmware for Duet 2 WiFi/Ethernet Version 1.21 dated 2018-03-21

    Executing config.g...Kinematics is CoreXY with axis factors X:1.000 Y:1.000 Z:1.000
    Error: M587: Failed to add SSID to remembered list
    HTTP is enabled on port 80
    FTP is disabled
    TELNET is enabled on port 23

    Done!
    RepRapFirmware for Duet 2 WiFi/Ethe
    M552 S0
    ok

    M122
    === Diagnostics ===
    Used output buffers: 1 of 32 (1 max)
    === Platform ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 1.21 running on Duet WiFi 1.02 or later
    Board ID: 08DDM-9FAM2-LW4S4-6JTDA-3S86K-KMSVX
    Static ram used: 16152
    Dynamic ram used: 100448
    Recycled dynamic ram: 2184
    Stack ram used: 3576 current, 4476 maximum
    Never used ram: 7812
    Last reset 00:01:09 ago, cause: power up
    Last software reset time unknown, reason: User, spinning module GCodes, available RAM 7760 bytes (slot 0)
    Software reset code 0x0003 HFSR 0x00000000, CFSR 0x00000000, ICSR 0x0441f000, BFAR 0xe000ed38, SP 0xffffffff
    Error status: 0
    Free file entries: 10
    SD card 0 detected, interface speed: 20.0MBytes/sec
    SD card longest block write time: 0.0ms
    MCU temperature: min 46.6, current 50.5, max 50.8
    Supply voltage: min 0.4, current 0.5, max 0.7, under voltage events: 0, over voltage events: 0
    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
    Slowest main loop (seconds): 0.000188; fastest: 0.000044
    === Move ===
    MaxReps: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
    Scheduled moves: 0, completed moves: 0
    Bed compensation in use: none
    Bed probe heights: 0.000 0.000 0.000 0.000 0.000
    === Heat ===
    Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -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 ===
    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
      === Expansion ===
      ok
      M552 S1
      Turn off the current WiFi mode before selecting a new one
      ok
      M552 S0
      ok

    M122
    === Diagnostics ===
    Used output buffers: 1 of 32 (9 max)
    === Platform ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 1.21 running on Duet WiFi 1.02 or later
    Board ID: 08DDM-9FAM2-LW4S4-6JTDA-3S86K-KMSVX
    Static ram used: 16152
    Dynamic ram used: 100448
    Recycled dynamic ram: 2184
    Stack ram used: 3576 current, 4548 maximum
    Never used ram: 7740
    Last reset 00:02:41 ago, cause: power up
    Last software reset time unknown, reason: User, spinning module GCodes, available RAM 7760 bytes (slot 0)
    Software reset code 0x0003 HFSR 0x00000000, CFSR 0x00000000, ICSR 0x0441f000, BFAR 0xe000ed38, SP 0xffffffff
    Error status: 0
    Free file entries: 10
    SD card 0 detected, interface speed: 20.0MBytes/sec
    SD card longest block write time: 0.0ms
    MCU temperature: min 50.5, current 51.3, max 51.5
    Supply voltage: min 0.4, current 0.5, max 0.5, under voltage events: 0, over voltage events: 0
    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
    Slowest main loop (seconds): 0.003174; fastest: 0.000044
    === Move ===
    MaxReps: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
    Scheduled moves: 0, completed moves: 0
    Bed compensation in use: none
    Bed probe heights: 0.000 0.000 0.000 0.000 0.000
    === Heat ===
    Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -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 ===
    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
      === Expansion ===
      ok
      RepRapFirmware for Duet 2 WiFi/Ethernet Version 1.21 dated 2018-03-21

    Executing config.g...Kinematics is CoreXY with axis factors X:1.000 Y:1.000 Z:1.000
    Error: M587: Failed to add SSID to remembered list
    HTTP is enabled on port 80
    FTP is disabled
    TELNET is enabled on port 23

    Done!
    RepRapFirmware for Duet 2 WiFi/Ethe


  • administrators

    The wifi module has failed to respond to the startup command. One reason may be that you have a M587 command in config.g. Please remove that command.



  • Yes you are right, I have M587 in config.g

    ; Network
    M550 PMy_Printer ; Set machine name
    M552 S1 ; Enable network
    M587 S"########" P"######" ; Configure access point. You can delete this line once connected
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S1 ; Enable Telnet



  • Removed M587 command but still continue to face issues...pls advice


  • administrators

    If M122 always reports that the network state is Starting when you are having this problem and you run M122, and you are definitely running version 1.21 of both main and WiFi firmware, then I think the WiFi module is faulty. In which case, ask the supplier of your Duet to replace it.



  • Finally, had the wifi module replaced on Duet board and everything is a charm again. Thanks for the pointing out.


Locked
 

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