Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    DuetWiFi resets often requiring manual WiFi restart (M552 S1)

    Scheduled Pinned Locked Moved
    Firmware installation
    3
    6
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JohnOCFIIundefined
      JohnOCFII
      last edited by

      I've noticed a changed behavior with 1.201RC2. Often, after a reload of the firmware due to either changing config.g or pressing the Emergency stop button, WiFi networking will not automatically restart. I have to connect via USB and issue M552 S1. Once I do that, it comes up fine and continues to work until the next reload.

      Here is M122 output from the USB session from before restarting networking. Also attached is my config.g

      Thanks,

      John

      [[language]]
      === Diagnostics ===
      Used output buffers: 1 of 32 (1 max)
      === Platform ===
      RepRapFirmware for Duet WiFi version 1.20.1RC2 running on Duet WiFi 1.0
      Board ID: 08DAM-999TL-MQ4S8-6JKDJ-3SJ6K-16BVW
      Static ram used: 15448
      Dynamic ram used: 98976
      Recycled dynamic ram: 264
      Stack ram used: 3584 current, 4512 maximum
      Never used ram: 11872
      Last reset 00:10:13 ago, cause: software
      Last software reset at 2018-02-11 11:59, reason: User, spinning module GCodes, available RAM 11944 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 30.8, current 31.7, max 32.0
      Supply voltage: min 12.3, current 12.4, max 12.5, 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
      Cache data hit count 942032155
      Slowest main loop (seconds): 0.058267; fastest: 0.000041
      === 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
      Heater 1 is on, I-accum = 0.0
      === 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 state is running
      WiFi module is idle
      Failed messages: pending 0, notready 0, noresp 0
      WiFi firmware version 1.20+1
      WiFi MAC address a0:20:a6:16:eb:66
      WiFi Vcc 3.38, reset reason Hardware watchdog
      WiFi flash size 4194304, free heap 21552
      HTTP sessions: 0 of 8
      Socket states:  0 0 0 0 0 0 0 0
      Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)
      ok
      ok
      ok
      Wifi module is connected to access point Aloha, IP address 192.168.62.118
      
      
      [[language]]
      ; Configuration file for Duet WiFi (firmware version 1.20 or newer) - Edited 11 Feb 2018 - osh
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool on Tue Jan 02 2018 16:25:12 GMT-0600 (CST)
      
      ; General preferences
      M111 S0                                            ; Debugging off
      G21                                                ; Work in millimetres
      G90                                                ; Send absolute coordinates...
      M83                                                ; ...but relative extruder moves
      M555 P2                                            ; Set firmware compatibility to look like Marlin
      M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Configure automatic saving on power loss
      
      ;*** The homed height is deliberately set too high in the following - you will adjust it during calibration.
      ; Set delta radius, diagonal rod length, printable radius and homed height
      M665 R87.370 L215.15 B85.0 H222.850 X-0.447 Y-0.460 Z0.00               
      ; M665 R105.6 L215.0 B85 H250                      ; default M665 form T3P3 Kossel Mini
      
      M666 X0.07 Y0.25 Z-0.32                            ; Put your endstop adjustments here, or let auto calibration find them
      
      M208 Z-0.1 S1                                      ; Set minimum Z
      
      ; Endstops
      M574 X2 Y2 Z2 S1                                   ; Set active high endstops
      
      M558 P1 H8 F120 T2400                             ; Set Z probe type to unmodulated and the dive height + speeds
      ;                                                  ; Tip: A larger trigger height in G31 moves you CLOSER to the bed
      G31 P500 X0 Y-11 Z0.20                             ; Set Z probe trigger value, offset and trigger height
      ; G31 P500 X0 Y-11 Z0.245                          ; Starting Point Feb 4 2018
      M557 R75 S20                                       ; Define mesh grid
      
      ; Drives
      M569 P0 S1                                         ; Drive 0 goes forwards
      M569 P1 S1                                         ; Drive 1 goes forwards
      M569 P2 S1                                         ; Drive 2 goes forwards
      M569 P3 S1                                         ; Drive 3 goes forwards
      M350 X16 Y16 Z16 E16 I0                            ; Configure microstepping without interpolation
      M92 X80 Y80 Z80 E404                               ; Set steps per mm - osh - carried from Titan setup 1/2/2018
      M566 X1200 Y1200 Z1200 E1200                       ; Set maximum instantaneous speed changes (mm/min)
      M203 X18000 Y18000 Z18000 E1200                    ; Set maximum speeds (mm/min)
      M201 X1000 Y1000 Z1000 E1000                       ; Set accelerations (mm/s^2)
      M906 X1000 Y1000 Z1000 E800 I40                    ; Set motor currents (mA) and motor idle factor in per cent
      M84 S30                                            ; Set idle timeout
      
      ; Heaters
      M305 P0 T100000 B3950 C0 R4700                     ; Set thermistor + ADC parameters for heater 0
      M143 H0 S120                                       ; Set temperature limit for heater 0 to 120C
      M305 P1 T100000 B4388 C0 R4700                     ; Set thermistor + ADC parameters for heater 1
      M143 H1 S280                                       ; Set temperature limit for heater 1 to 280C
      
      ; Tools
      M563 P0 D0 H1                                      ; Define tool 0
      G10 P0 X0 Y0 Z0                                    ; Set tool 0 axis offsets
      G10 P0 R0 S0                                       ; Set initial tool 0 active and standby temperatures to 0C
      
      ; Network
      M550 PCharlotte3D                                  ; Set machine name
      M552 S1                                            ; Enable network
      M586 P0 S1                                         ; Enable HTTP
      M586 P1 S0                                         ; Disable FTP
      M586 P2 S0                                         ; Disable Telnet
      
      ; Fans
      M106 P0 S0 I0 F500 H-1                             ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
      M106 P1 S1 I0 F500 H1 T45                          ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
      M106 P2 S1 I0 F500 H1 T45                          ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on
      
      ; Custom settings are not configured
      ; Including line below from old config - but commented out for now 1/2/2018
      ; M579 X1.005 Y0.998 ; adjust based on 100mm XY square - 5/28/2017 - osh
      
      ; Miscellaneous
      T0                                                 ; Select first tool
      
      
      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        Firmware 1.20.1RC2 was replaced by 1.21RC1. There is a new DuetWiFiServer 1.21RC1 to go with it.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • JohnOCFIIundefined
          JohnOCFII
          last edited by

          @dc42:

          Firmware 1.20.1RC2 was replaced by 1.21RC1. There is a new DuetWiFiServer 1.21RC1 to go with it.

          I'll upgrade and see if the behavior changes.

          Thanks,

          John

          1 Reply Last reply Reply Quote 0
          • cobrettiundefined
            cobretti
            last edited by

            I am seeing the same after updating to 1.21RC1 from 1.18 last night. Sometimes it takes a few retries before it connects.
            [c]
            Connecting…
            serial: M105
            Printer is now online.
            serial: M105
            serial: M105

            M122
            SENDING:M122
            serial: M122
            === Diagnostics ===
            Used output buffers: 1 of 32 (1 max)
            === Platform ===
            RepRapFirmware for Duet WiFi version 1.21RC1 running on Duet WiFi 1.0 or 1.01
            Board ID: 08DAM-999TL-MQ4S8-6J1FJ-3SJ6L-16BHW
            Static ram used: 15448
            Dynamic ram used: 99736
            Recycled dyWiFi:
            namic ram: 3600
            Stack ram used: 3568 current, 4520 maximuWiFi: xmit: 0
            m
            Never used ram: 7768
            Last reset 00:13:04 ago, cause: software
            Last software reset at 2018-02-12 00:16, reason: User, spinning module GCodes, available RAM 7808 bytes (slot 1)
            Software reset code 0xWiFi: recv: 0
            0003 HFSR 0x00000000, CFSR 0x00000000, ICSR 0x0441f000, BFAR 0xe000ed38, SP 0xffffffff
            Error WiFi: fw: 0
            [ERROR] Error WiFi: fw: 0

            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 31.9, current 32.4WiFi: drop: 0
            , max 33.1
            Supply voltage: min 13.8, current 14.0, max 14.1, under voltage events: 0, over voltage events: 0
            Driver 0: standstill, WiFi: chkerr: 0
            SG min/max not available
            Driver 1: standstill, SG min/max not available
            Driver 2: standstill, SG min/max not available
            DriverWiFi: lenerr: 0
            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.001301; fasteWiFi: memerr: 0
            st: 0.000042
            === Move ===
            MaxReps: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm 240,WiFi: rterr: 0
            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, chamberHWiFi: proterr: 0
            eaters = -1 -1
            Heater 1 is on, I-accum = 0.0
            === GCodes ===
            WiFi: opterr: 0
            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(WiFi: err: 0
            s) 0
            daemon is idle in state(WiFi: cachehit: 0
            s) 0
            queue is idle in state(s) 0
            autopause is idle in state(s) 0
            Code queue is empty.
            === Network ===
            Network state is running
            WiFi module is idle
            Failed messages: pending 0, notready 0, noresp 0
            WiFi firmware version 1.21RC1
            WiFi MAC address 5c:cf:7f:2c:2WiFi:
            4:9e
            WiFi Vcc 3.42, reset reason Turned on by main processor
            WiFi flash size 4194304, free heap 20240
            HTTP sessions: 0 of 8
            Socket states: 0 0 0 0 0 0 0 0
            Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)
            WiFi: xmit: 0
            WiFi: recv: 9
            WiFi: fw: 0
            WiFi: drop: 112
            WiFi: chkerr: 0
            WiFi: lenerr: 0
            WiFi: memerr: 0
            WiFi: rterr: 0
            WiFi: proterr: 112
            WiFi: opterr: 0
            WiFi: err: 0
            WiFi: cachehit: 0
            WiFi:
            WiFi: xmit: 21
            WiFi: recv: 114
            WiFi: fw: 0
            WiFi: drop: 38
            WiFi: chkerr: 0
            WiFi: lenerr: 0
            WiFi: memerr: 0
            WiFi: rterr: 0
            WiFi: proterr: 0
            WiFi: opterr: 0
            WiFi: err: 0
            WiFi: cachehit: 0
            WiFi:
            WiFi: xmit: 4
            WiFi: recv: 0
            WiFi: drop: 0
            WiFi: chkerr: 0
            WiFi: lenerr: 0
            WiFi: memerr: 0
            WiFi: proterr: 0
            WiFi: rx_v1: 0
            WiFi: rx_group: 0
            WiFi: rx_general: 0
            WiFi: rx_report: 0
            WiFi: tx_join: 2
            WiFi: tx_leave: 0
            WiFi: tx_report: 2
            WiFi:
            WiFi: xmit: 0
            WiFi: recv: 0
            WiFi: fw: 0

            M552 s1
            SENDING:M552 s1
            serial: M552 s1
            WiFi: mode : sta(5c:cf:7f:2c:24:9e)
            WiFi: add if0
            WiFi: scandone
            WiFi: ../src/SocketServer.cpp(353): found network SUPERNET
            WiFi: sleep enable,type: 2
            serial: M105
            WiFi: scandone
            WiFi: state: 0 -> 2 (b0)
            WiFi: state: 2 -> 3 (0)
            WiFi: state: 3 -> 0 (4)
            WiFi: reconnect
            serial: M105
            WiFi: scandone
            WiFi: state: 0 -> 2 (b0)
            WiFi: state: 2 -> 3 (0)
            WiFi: state: 3 -> 0 (4)
            WiFi: reconnect
            serial: M105
            WiFi: scandone
            WiFi: state: 0 -> 2 (b0)
            WiFi: state: 2 -> 0 (2)
            WiFi: reconnect
            serial: M105
            WiFi: scandone
            WiFi: state: 0 -> 2 (b0)
            WiFi: state: 2 -> 0 (2)
            WiFi: reconnect
            serial: M105
            WiFi: scandone
            WiFi: state: 0 -> 2 (b0)
            WiFi: state: 2 -> 3 (0)
            WiFi: state: 3 -> 5 (10)
            WiFi: add 0
            WiFi: aid 8
            WiFi: cnt
            WiFi:
            WiFi: connected with SUPERNET, channel 6
            WiFi: dhcp client start…
            serial: M105
            serial: M105
            serial: M105
            WiFi: pm open,type:2 0
            serial: M105
            serial: M105
            serial: M105
            WiFi: ip:10.25.29.45,mask:255.255.255.0,gw:10.25.29.125
            Wifi module is connected to access point SUPERNET, IP address 10.25.29.45
            [/c]

            thanks Ed

            1 Reply Last reply Reply Quote 0
            • JohnOCFIIundefined
              JohnOCFII
              last edited by

              @JohnOCFII:

              I've noticed a changed behavior with 1.201RC2. Often, after a reload of the firmware due to either changing config.g or pressing the Emergency stop button, WiFi networking will not automatically restart.

              I upgraded to the new firmware and WiFi firmware.

              I did a successful one hour print, followed by 2 emergency stops and 2 config.g change/reloads. The WiFi restarted automatically as expected.

              Thanks!

              John

              1 Reply Last reply Reply Quote 0
              • cobrettiundefined
                cobretti
                last edited by

                After seeing your reply I decided to reload the wifi firmware only and that seems to have done the trick. Tried a few restarts and all good. Thanks!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA