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

    Disconnected when M291

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    23
    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.
    • dc42undefined
      dc42 administrators
      last edited by dc42

      Please put the .pcap file on Dropbox or another file sharing site and post the link to it here. Alternatively, look for the http 200 OK response where Wireshark reports that the response format is JSON but instead of letting you expand the json object is reports "Line based text data". That will be the faulty response. So right click on that, select copy as text to get the full data, and paste that here.

      Having a different SSID name in M552 and M587 should just result in failure to connect to your router. The SSID is not passed to DWC so I don't think that is triggering the problem.

      btw the M307 command in config.g will override any M307 command for the same heater in config-override.g that was obtained from turning the heater. We normally put the M501 command near the end of config,g so that it overrides values in config.g as the name suggests.

      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
      • JuLundefined
        JuL
        last edited by

        Let me know if this is what you want:

        [truncated]{"status":"P","coords":{"axesHomed":[1,1,1],"xyz":[-50.000,220.000,10.000],"machine":[-50.000,220.000,10.000],"extr":[0.0]},"speeds":{"requested":0.0,"top":0.0},"currentTool":0,"output":{"beepDuration":10,"beepFrequency":50"ms

        dc42undefined 1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @JuL
          last edited by

          @jul, that's the truncated version, which is too short. If you right click on it you should get a number of options including "Copy... Bytes as printable text". Choose that one, then paste it in your post.

          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
          • JuLundefined
            JuL
            last edited by

            Like this?

            {"status":"P","coords":{"axesHomed":[1,1,1],"xyz":[-50.000,220.000,10.000],"machine":[-50.000,220.000,10.000],"extr":[0.0]},"speeds":{"requested":0.0,"top":0.0},"currentTool":0,"output":{"beepDuration":10,"beepFrequency":50"msgBox":{"msg":"Ok pour continuer","title":"Mettre la laque","mode":3,"seq":2,"timeout":0.0,"controls":0}},"params":{"atxPower":0,"fanPercent":[0,80,70,0,0,0,0,0,0],"speedFactor":100.0,"extrFactors":[100.0],"babystep":0.000},"seq":14,"sensors":{"probeValue":37,"fanRPM":0},"temps":{"bed":{"current":49.4,"active":60.0,"state":2,"heater":0},"current":[49.4,38.1,2000.0,2000.0,2000.0,2000.0,2000.0,2000.0],"state":[2,2,0,0,0,0,0,0],"tools":{"active":[[0.0]],"standby":[[0.0]]},"extra":[{"name":"MCU","temp":31.9}]},"time":7022.0,"currentLayer":0,"currentLayerTime":0.0,"extrRaw":[0.0],"fractionPrinted":0.1,"filePosition":6834,"firstLayerDuration":0.0,"firstLayerHeight":0.20,"printDuration":147.8,"warmUpDuration":82.4,"timesLeft":{"file":43658.1,"filament":0.0,"layer":0.0}}

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators
              last edited by dc42

              @jul said in Disconnected when M291:

              {"status":"P","coords":{"axesHomed":[1,1,1],"xyz":[-50.000,220.000,10.000],"machine":[-50.000,220.000,10.000],"extr":[0.0]},"speeds":{"requested":0.0,"top":0.0},"currentTool":0,"output":{"beepDuration":10,"beepFrequency":50"msgBox":{"msg":"Ok pour continuer","title":"Mettre la laque","mode":3,"seq":2,"timeout":0.0,"controls":0}},"params":{"atxPower":0,"fanPercent":[0,80,70,0,0,0,0,0,0],"speedFactor":100.0,"extrFactors":[100.0],"babystep":0.000},"seq":14,"sensors":{"probeValue":37,"fanRPM":0},"temps":{"bed":{"current":49.4,"active":60.0,"state":2,"heater":0},"current":[49.4,38.1,2000.0,2000.0,2000.0,2000.0,2000.0,2000.0],"state":[2,2,0,0,0,0,0,0],"tools":{"active":[[0.0]],"standby":[[0.0]]},"extra":[{"name":"MCU","temp":31.9}]},"time":7022.0,"currentLayer":0,"currentLayerTime":0.0,"extrRaw":[0.0],"fractionPrinted":0.1,"filePosition":6834,"firstLayerDuration":0.0,"firstLayerHeight":0.20,"printDuration":147.8,"warmUpDuration":82.4,"timesLeft":{"file":43658.1,"filament":0.0,"layer":0.0}}

              In theory that's what I need, however there is no error at column 188 in that line. So either:

              1. The line you copied isn't the one with the error. Did it say "Line based text data" or similar?

              2. The error no longer occurs at column 188. Did you upgrade the firmware? if so the column number may have changed. Please check the DWC error message again.

              EDIT: I just spotted an error at column 224. Investigating.

              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
              • JuLundefined
                JuL
                last edited by

                1. Yes it say "Line based...". I have another but just with '/n /n' so i didn't think was relevant.
                2. I didn't upgrade since T3P3Tony ask to go with non Beta version. Also, I don't have any error message since this upgrade, I can just see there is deconnection on the gcode console
                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators
                  last edited by dc42

                  Please can you test whether the new firmware binary at https://www.dropbox.com/s/fyvibzm0zl92hiy/Duet2CombinedFirmware.bin?dl=0 solves the problem. Caution: this is a beta, so babysit 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
                  • JuLundefined
                    JuL
                    last edited by

                    I'll try it ASAP, I hope Sunday

                    1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators
                      last edited by

                      OK, that's probably too late for me to do anything else if the fix doesn't work, because a release deadline is approaching.

                      The bug I found occurs if there are both a beep and a message box pending at the same time. The M291 command causes the message box to be pending. I guess you have another GCode command nearby to generate a beep.

                      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
                      • JuLundefined
                        JuL
                        last edited by

                        I've got a bip command at my start script, but I can try without it tomorrow for my next urgent print
                        Here attached my actual starting script

                        ; #### START SCRIPT ####
                        G28; home all axes
                        G0 X-50 Y220 Z10 F6000 ; go to x-50 y220
                        M190 S50 ; heat bed for start bed leveling
                        G29 ; Bed Leveling
                        G0 X-50 Y220 Z10 F6000 ; go to x-50 y220
                        M300 S10 P5 ; bip
                        M140 S60
                        M291 P"Ok pour continuer" R"Mettre la laque" S3 ; Pause
                        G0 X3 Y3 F6000 ; Go to front
                        G0 Z0 ; Drop to bed
                        M104 S190 ; wait until extruder
                        M190 S60
                        M109 S190 ; wait until extruder
                        G92 E0 ; zero the extruded length
                        G0 Z0.2 ; Go work altitude
                        G1 Y40 E20 F500 ; Extrude 20mm of filament in a 4cm line
                        G0 Y100 F6000 ;
                        G92 E0
                        G1 E-0.5000 F3600
                        G1 Z0.200 F1800

                        1 Reply Last reply Reply Quote 0
                        • JuLundefined
                          JuL
                          last edited by

                          I just tried to launch an already made gcode without the BIP command (remove by hand)
                          TADA !!! No more disconnection

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