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

Bad command & Missing characters in Gcode since firmware upgrade

Scheduled Pinned Locked Moved Unsolved
General Discussion
13
43
2.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.
  • undefined
    norbs12
    last edited by 5 Oct 2019, 07:58

    @dc42 quick question, I noticed that M38 doesn't seem to return the exact sha1 even when files are the same. Is this just a bug or am I misunderstanding something.

    (using "shasum <filename>" on a Mac)
    a03e3b0b03697fccb2997d3e33140801713830c0
    -vs-
    (M38 on Duet)
    a03e3b0b3697fccb2997d3e33140801713830c0
    
    

    There is an extra '0' using 'shasum' near the beginning of the checksum. I ran the m38 command twice just to make sure it was not a fluke.

    Just to make sure I ran a diff and it found no differences.

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 5 Oct 2019, 11:10

      Thanks for pointing this out. It's a bug, zeros are sometimes omitted. The SHA1 function was contributed code which I didn't check thoroughly. Will be fixed in next release.

      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

      undefined 1 Reply Last reply 6 Oct 2019, 15:48 Reply Quote 0
      • undefined
        norbs12 @dc42
        last edited by norbs12 10 Jun 2019, 15:53 6 Oct 2019, 15:48

        @dc42 said in Bad command & Missing characters in Gcode since firmware upgrade:
        OK I got to testing a different ethernet board. Same issues unfortunately. I was thinking of trying out the secondardy SD card slot on my paneldue. I would have to wire it up, do you think it's worth the effort?

        Also is there a way to slow down the communication between the network card and the processor in maybe some test firmware? I'd try this myself if I knew how... Was thinking just cut the speed in half just to see if it fixes anything, then if it works make this somehow accessible through a custom gcode command and allow tuning of it (if that's even possible).

        Thanks for pointing this out. It's a bug, zeros are sometimes omitted. The SHA1 function was contributed code which I didn't check thoroughly. Will be fixed in next release.

        No worries, it's close enough to get a good idea if it's the same file. Was just using 'grep' to speed up verifying if it matched and it didn't show up but looked like it should have, which is the only reason I noticed it.

        undefined 1 Reply Last reply 6 Oct 2019, 20:11 Reply Quote 0
        • undefined
          T3P3Tony administrators @norbs12
          last edited by 6 Oct 2019, 20:11

          @T3P3Tony said in Bad command & Missing characters in Gcode since firmware upgrade:

          @norbs12 can you confirm this only occurs if you are uploading while printing, this is what @HBM-3D found.

          @norbs12 is this only an issue if you upload a file while it is printing? That appeared tto be what @HBM-3D reported

          www.duet3d.com

          undefined 1 Reply Last reply 6 Oct 2019, 21:02 Reply Quote 0
          • undefined
            norbs12 @T3P3Tony
            last edited by 6 Oct 2019, 21:02

            @T3P3Tony It does seem to be only while printing though I have not had a chance to confirm that it's not related to temperature of the board. Meaning I have not tried uploading immediately after a long print.

            undefined 1 Reply Last reply 6 Oct 2019, 21:45 Reply Quote 0
            • undefined
              T3P3Tony administrators @norbs12
              last edited by 6 Oct 2019, 21:45

              @norbs12 ahh ok, if its only during a print thats still an issue but less of an issue!

              www.duet3d.com

              1 Reply Last reply Reply Quote 0
              • undefined
                Vinculum
                last edited by 7 Oct 2019, 07:45

                I tried it right after week-long prints and no issue. Only while the printer is running while uploading I get this situation. Uploading when idle never gives issues.

                1 Reply Last reply Reply Quote 0
                • undefined
                  chrishamm administrators
                  last edited by 7 Oct 2019, 08:54

                  @HBM-3D Maybe a trivial question but was there a deviation of the file sizes between your original and the uploaded file (in plain bytes)?

                  Duet software engineer

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    kmhudgins
                    last edited by 19 Dec 2019, 01:45

                    Hi,
                    I am starting to have the same issue with bad commands. Was this problem every resolved?

                    undefined 1 Reply Last reply 19 Dec 2019, 04:08 Reply Quote 0
                    • undefined
                      norbs12 @kmhudgins
                      last edited by 19 Dec 2019, 04:08

                      @kmhudgins said in Bad command & Missing characters in Gcode since firmware upgrade:

                      Hi,
                      I am starting to have the same issue with bad commands. Was this problem every resolved?

                      I ended up just avoiding uploading during a print that seems to have solved the issue for one board. I still have another board somewhere that it happens to all the time no matter if I'm printing or not that I gave up on.

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        droftarts administrators
                        last edited by 19 Dec 2019, 14:18

                        Optional CRC checking when uploading was added with RRF 2.04 and DWC 2.0.4, but otherwise there has been little progress on this, as far as I am aware.

                        @kmhudgins What firmware are you using? Are you uploading while the printer is printing?

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                        undefined 1 Reply Last reply 20 Dec 2019, 01:41 Reply Quote 0
                        • undefined
                          BlueDust @droftarts
                          last edited by 20 Dec 2019, 01:41

                          @droftarts

                          I assume the CRC checking is enabled by default. How do you enable/disable them?
                          Can you have the Duet2 log the pass CRC codes confirming it is good, and not just the failed ones?

                          2019-11-04 21:06:28 Error: Uploaded file CRC is different (65e13ff3 vs. expected bcc41d9a)
                          2019-11-04 21:07:27 Error: Uploaded file CRC is different (9401d30a vs. expected bcc41d9a)
                          2019-11-04 21:08:17 Error: Uploaded file CRC is different (d7835b84 vs. expected bcc41d9a)
                          

                          A month or so ago, I remember having trouble uploading files with a pop up saying that the CRC failed.
                          I don't remember what I did to correct it, but just thought it was my slicer having issues. Happy to know this is actually a "thing" and it wasn't just me.

                          Fun, that 3 letter word with "u" in the middle.

                          undefined 1 Reply Last reply 20 Dec 2019, 17:55 Reply Quote 0
                          • undefined
                            dc42 administrators @BlueDust
                            last edited by 20 Dec 2019, 17:55

                            @BlueDust said in Bad command & Missing characters in Gcode since firmware upgrade:

                            I assume the CRC checking is enabled by default. How do you enable/disable them?

                            It's at the bottom left of the Settings/Machine Specific page of DWC 2.04.

                            If the CRC errors only occur if you upload while printing, then maybe we need to reduce the SPI transfer speed to the Ethernet module if you upload while a print is active, or else adjust the bus priorities.

                            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

                            undefined 1 Reply Last reply 20 Dec 2019, 18:36 Reply Quote 0
                            • undefined
                              norbs12 @dc42
                              last edited by 20 Dec 2019, 18:36

                              @dc42 said in Bad command & Missing characters in Gcode since firmware upgrade:

                              @BlueDust said in Bad command & Missing characters in Gcode since firmware upgrade:

                              I assume the CRC checking is enabled by default. How do you enable/disable them?

                              It's at the bottom left of the Settings/Machine Specific page of DWC 2.04.

                              If the CRC errors only occur if you upload while printing, then maybe we need to reduce the SPI transfer speed to the Ethernet module if you upload while a print is active, or else adjust the bus priorities.

                              Would be possible to somehow make the SPI speed user configurable? I've got two boards, one that I just stopped using because of this and another that only works as long as I'm not printing. Would be awesome to recover the other board and use it for something.

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