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

    Duet 3 losing connection whilst printing

    Scheduled Pinned Locked Moved Unsolved
    Beta Firmware
    5
    34
    1.8k
    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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by

      Can you post the results of M122 so we can see your firmware version?

      Are you using the SD card that came with the Duet3 for the Pi? You may want to try with a fresh DuetPi image from here: https://duet3d.dozuki.com/Wiki/SBC_Setup_for_Duet_3#Section_Step_1_Flash_the_image_file

      Powering the pi3 from the Duet should be possible, but will depend on what other USB peripherals you are using with the Pi. When in doubt power the Duet and Pi separately.

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • camcamnzundefined
        camcamnz
        last edited by Phaedrux

        Hi @Phaedrux,
        Yes I am using that SD Card, but I already re-flashed it because i noticed it came with the lite version, and I am thinking of adding a touchscreen to the pi later (or a paneldue, havent decided yet)
        Powering the pi off the duet works fine in all scenarios, I have just noticed that I get the disconnection messages far more often when powered that way.
        I don't have anything else connected to my pi, literally just the duet (And currently USB power)

        M122

        === Diagnostics ===
        RepRapFirmware for Duet 3 MB6HC version 3.2-RC2 running on Duet 3 MB6HC v1.01 or later (SBC mode)
        Board ID: 08DJM-956BA-NA3TN-6J1FL-3SN6N-998YU
        Used output buffers: 3 of 40 (11 max)
        === RTOS ===
        Static ram: 149788
        Dynamic ram: 63216 of which 24 recycled
        Never used RAM 145804, free system stack 200 words
        Tasks: Linux(ready,75) HEAT(blocked,296) CanReceiv(blocked,927) CanSender(blocked,371) CanClock(blocked,356) TMC(blocked,53) MAIN(running,1217) IDLE(ready,19)
        Owned mutexes: HTTP(MAIN)
        === Platform ===
        Last reset 00:02:05 ago, cause: power up
        Last software reset details not available
        Error status: 0x00
        Aux0 errors 0,0,0
        Aux1 errors 0,0,0
        MCU temperature: min 24.0, current 36.6, max 36.6
        Supply voltage: min 24.0, current 24.1, max 24.1, under voltage events: 0, over voltage events: 0, power good: yes
        12V rail voltage: min 12.1, current 12.2, max 12.2, under voltage events: 0
        Driver 0: position 0, standstill, reads 52891, writes 14 timeouts 0, SG min/max 0/0
        Driver 1: position 0, standstill, reads 52893, writes 14 timeouts 0, SG min/max 0/0
        Driver 2: position 0, standstill, reads 52893, writes 14 timeouts 0, SG min/max 0/0
        Driver 3: position 0, standstill, reads 52893, writes 14 timeouts 0, SG min/max 0/0
        Driver 4: position 0, standstill, reads 52893, writes 14 timeouts 0, SG min/max 0/0
        Driver 5: position 0, standstill, reads 52893, writes 14 timeouts 0, SG min/max 0/0
        Date/time: 2020-12-31 13:29:39
        Slowest loop: 0.45ms; fastest: 0.05ms
        === Storage ===
        Free file entries: 10
        SD card 0 not detected, interface speed: 37.5MBytes/sec
        SD card longest read time 0.0ms, write time 0.0ms, max retries 0
        === Move ===
        DMs created 125, maxWait 0ms, bed compensation in use: none, comp offset 0.000
        === MainDDARing ===
        Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
        === AuxDDARing ===
        Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
        === Heat ===
        Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
        Heater 1 is on, I-accum = 0.0
        === GCodes ===
        Segments left: 0
        Movement lock held by null
        HTTP* is doing "M122" in state(s) 0
        Telnet is idle in state(s) 0
        File is idle in state(s) 0
        USB is idle in state(s) 0
        Aux is idle in state(s) 0
        Trigger* is idle in state(s) 0
        Queue is idle in state(s) 0
        LCD is idle in state(s) 0
        SBC is idle in state(s) 0
        Daemon is idle in state(s) 0
        Aux2 is idle in state(s) 0
        Autopause is idle in state(s) 0
        Code queue is empty.
        === Filament sensors ===
        Extruder 0 sensor: ok
        === CAN ===
        Messages queued 428, send timeouts 1056, received 0, lost 0, longest wait 0ms for reply type 0, free buffers 48
        === SBC interface ===
        State: 4, failed transfers: 0
        Last transfer: 3ms ago
        RX/TX seq numbers: 3891/3891
        SPI underruns 0, overruns 0
        Number of disconnects: 0, IAP RAM available 0x2c8a8
        Buffer RX/TX: 0/0-0
        === Duet Control Server ===
        Duet Control Server v3.2.0-rc2
        Code buffer space: 4096
        Configured SPI speed: 8000000 Hz
        Full transfers per second: 0.03
        Maximum length of RX/TX data transfers: 3668/836
        
        Phaedruxundefined 1 Reply Last reply Reply Quote 0
        • camcamnzundefined
          camcamnz
          last edited by

          Hi All, Any suggestions?

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator @camcamnz
            last edited by

            @camcamnz said in Duet 3 losing connection whilst printing:

            RepRapFirmware for Duet 3 MB6HC version 3.2-RC2 running on Duet 3 MB6HC v1.01 or later (SBC mode)

            Please try updating to 3.2 final release now that it's out. Did you try a fresh DuetPi installation and update?

            @camcamnz said in Duet 3 losing connection whilst printing:

            Powering the pi off the duet works fine in all scenarios, I have just noticed that I get the disconnection messages far more often when powered that way.

            That's contradictory. If you're getting disconnected more often, it's not working fine in all scenarios, now is it?

            Z-Bot CoreXY Build | Thingiverse Profile

            camcamnzundefined 1 Reply Last reply Reply Quote 0
            • camcamnzundefined
              camcamnz @Phaedrux
              last edited by

              @Phaedrux I just tried a fresh re-image and updating to the latest version, and still have the same issue.

              @Phaedrux said in Duet 3 losing connection whilst printing:

              That's contradictory. If you're getting disconnected more often, it's not working fine in all scenarios, now is it?

              I meant in all other scenarios, other than when the bed heater is on

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                Can you try running the Duet 3 in standalone mode to take the Pi and DSF out of the equation so we can confirm that the board itself is working ok.

                https://duet3d.dozuki.com/Wiki/Getting_Started_With_Duet_3#Section_Running_in_standalone_mode

                Z-Bot CoreXY Build | Thingiverse Profile

                camcamnzundefined 1 Reply Last reply Reply Quote 0
                • camcamnzundefined
                  camcamnz @Phaedrux
                  last edited by

                  @Phaedrux
                  I have it running in standalone.
                  I am getting a lot of errors, but now they are HTTP timeouts.
                  Besides the errors however, all seems to be working properly so far, I got through PID autotune and some other commands successfully (ie heating the bed a few times).
                  I am going to figure out how to re-mount the duet to try to see if I can get something printed successfully

                  883eda0a-1422-4103-84cb-87f5436d3f54-image.png

                  1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator
                    last edited by

                    Are you using the same SD card from the Pi in the Duet, or a fresh SD card?

                    Z-Bot CoreXY Build | Thingiverse Profile

                    camcamnzundefined 2 Replies Last reply Reply Quote 0
                    • camcamnzundefined
                      camcamnz @Phaedrux
                      last edited by

                      @Phaedrux Same SD Card, and same config files (just copied to the correct location and added the M552 command)

                      Phaedruxundefined 1 Reply Last reply Reply Quote 0
                      • camcamnzundefined
                        camcamnz @Phaedrux
                        last edited by

                        @Phaedrux A further update, I have successfully finished a small print, so seems to be working well in standalone mode (apart from the HTTP errors)

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          Can you post an M122 from standalone mode?
                          I assume you got fresh files from the 3.2 release to populate the SD card?

                          Would you also be able to try running a ping command on the Duet IP address for a while and seeing if there are any dropped responses?

                          I'm surprised the network drops have followed to the standalone Duet.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          camcamnzundefined 2 Replies Last reply Reply Quote 0
                          • camcamnzundefined
                            camcamnz @Phaedrux
                            last edited by

                            @Phaedrux actually, the timeouts have stopped.
                            I did 2 test prints, the first took an hour, and I had 51 timeouts, the seconds took 90 minutes and I had none.
                            I have had it running now again for 30 minutes and also none (no drops on the ping either.

                            When I re-imaged the sd card on the 9th, it seems that the image i downloaded already had the 3.2 release, and I didnt do any further changes to it apart from the config files.

                            === Diagnostics ===
                            RepRapFirmware for Duet 3 MB6HC version 3.2 running on Duet 3 MB6HC v1.01 or later (standalone mode)
                            Board ID: 08DJM-956BA-NA3TN-6J1FL-3SN6N-998YU
                            Used output buffers: 3 of 40 (23 max)
                            === RTOS ===
                            Static ram: 149788
                            Dynamic ram: 93540 of which 64 recycled
                            Never used RAM 115440, free system stack 124 words
                            Tasks: NETWORK(ready,199) ETHERNET(blocked,85) HEAT(blocked,296) CanReceiv(blocked,927) CanSender(blocked,344) CanClock(blocked,349) TMC(blocked,19) MAIN(running,1119) IDLE(ready,19)
                            Owned mutexes:
                            === Platform ===
                            Last reset 00:33:49 ago, cause: power up
                            Last software reset at 2021-01-09 12:49, reason: User, GCodes spinning, available RAM 147848, slot 0
                            Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00400000 BFAR 0x00000000 SP 0x00000000 Task Linu Freestk 0 n/a
                            Error status: 0x00
                            Aux0 errors 0,0,0
                            Aux1 errors 0,0,0
                            MCU temperature: min 44.6, current 45.4, max 45.5
                            Supply voltage: min 23.9, current 24.0, max 24.0, under voltage events: 0, over voltage events: 0, power good: yes
                            12V rail voltage: min 12.1, current 12.1, max 12.2, under voltage events: 0
                            Driver 0: position 27120, standstill, reads 13736, writes 2 timeouts 0, SG min/max not available
                            Driver 1: position 26800, standstill, reads 13736, writes 2 timeouts 0, SG min/max not available
                            Driver 2: position 6040, standstill, reads 13736, writes 2 timeouts 0, SG min/max not available
                            Driver 3: position 0, standstill, reads 13737, writes 2 timeouts 0, SG min/max not available
                            Driver 4: position 0, standstill, reads 13738, writes 0 timeouts 0, SG min/max not available
                            Driver 5: position 0, standstill, reads 13738, writes 0 timeouts 0, SG min/max not available
                            Date/time: 2021-01-12 20:56:38
                            Slowest loop: 4.79ms; fastest: 0.06ms
                            === Storage ===
                            Free file entries: 10
                            SD card 0 detected, interface speed: 25.0MBytes/sec
                            SD card longest read time 2.3ms, write time 0.0ms, max retries 0
                            === Move ===
                            DMs created 125, maxWait 0ms, bed compensation in use: mesh, comp offset 0.000
                            === MainDDARing ===
                            Scheduled moves 822, completed moves 822, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                            === AuxDDARing ===
                            Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                            === Heat ===
                            Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
                            Heater 1 is on, I-accum = 0.0
                            === GCodes ===
                            Segments left: 0
                            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
                            USB is idle in state(s) 0
                            Aux is idle in state(s) 0
                            Trigger is idle in state(s) 0
                            Queue is idle in state(s) 0
                            LCD is idle in state(s) 0
                            SBC is idle in state(s) 0
                            Daemon is idle in state(s) 0
                            Aux2 is idle in state(s) 0
                            Autopause is idle in state(s) 0
                            Code queue is empty.
                            === Network ===
                            Slowest loop: 2.72ms; fastest: 0.02ms
                            Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
                            HTTP sessions: 1 of 8

                            • Ethernet -
                              State: active
                              Error counts: 0 0 1 0 0
                              Socket states: 5 2 2 2 2 0 0 0
                              === Filament sensors ===
                              Extruder 0 sensor: ok
                              === CAN ===
                              Messages queued 3007, send timeouts 6765, received 0, lost 0, longest wait 0ms for reply type 0, free buffers 48
                            1 Reply Last reply Reply Quote 0
                            • camcamnzundefined
                              camcamnz @Phaedrux
                              last edited by

                              @Phaedrux I am seeing the http drops again today.
                              Ping is not showing anything, I am continuously getting <1ms over the time, no delays or drops when the HTTP drops occur

                              1 Reply Last reply Reply Quote 0
                              • Phaedruxundefined
                                Phaedrux Moderator @camcamnz
                                last edited by

                                @camcamnz said in Duet 3 losing connection whilst printing:

                                Same SD Card,

                                Can you try with a fresh SD card?

                                Z-Bot CoreXY Build | Thingiverse Profile

                                camcamnzundefined 1 Reply Last reply Reply Quote 0
                                • camcamnzundefined
                                  camcamnz @Phaedrux
                                  last edited by

                                  @Phaedrux I tried with the SD card that came with the Pi (That i had been using previously), and I get exactly the same result

                                  1 Reply Last reply Reply Quote 0
                                  • Thoma308undefined
                                    Thoma308
                                    last edited by

                                    I have exactly the same problem and have tried everything with SD card, new image etc.

                                    Does anyone else have any ideas what this could be?

                                    1 Reply Last reply Reply Quote 0
                                    • Thoma308undefined
                                      Thoma308
                                      last edited by

                                      I have come a little closer to solving the problem:
                                      Keyboard, mouse, HDMI, USB touchscreen cable all unplugged from the Raspberry Pi 4.
                                      Raspberry Pi 4 has its own power supply
                                      Remote access to the Pi via AnyDesk
                                      Don't click anything in the web GUI while printing

                                      -> Lost connection problem is gone

                                      If you click around in the Web GUI (while printing) the problem comes back immediately
                                      Seems to be a problem when the Pi is busy with something else while printing

                                      Phaedruxundefined 1 Reply Last reply Reply Quote 0
                                      • Phaedruxundefined
                                        Phaedrux Moderator @Thoma308
                                        last edited by

                                        @Thoma308 said in Duet 3 losing connection whilst printing:

                                        If you click around in the Web GUI (while printing) the problem comes back immediately
                                        Seems to be a problem when the Pi is busy with something else while printing

                                        What speed class is your SD card?

                                        Z-Bot CoreXY Build | Thingiverse Profile

                                        1 Reply Last reply Reply Quote 0
                                        • Thoma308undefined
                                          Thoma308
                                          last edited by

                                          @Phaedrux said in Duet 3 losing connection whilst printing:

                                          n the Web GUI (while printing) the problem comes back immediately
                                          Seems to be a problem when the Pi is busy with something else while printing

                                          A1 SanDisk Ultra UHS-I Speed UP TO 98 MB/s 653X 16GB

                                          1 Reply Last reply Reply Quote 0
                                          • Thoma308undefined
                                            Thoma308
                                            last edited by

                                            @Thoma308 said in Duet 3 losing connection whilst printing:

                                            click around in the Web GUI (while printing) the problem comes back immediately
                                            Seems to be a problem when the Pi is busy with something else while printing

                                            I have now done another test:
                                            Raspberry PI without LAN and without WLAN (offline).
                                            I got the Lost connection message 2 times in about 2 hours - but without aborting the print ...
                                            still funny the whole thing

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