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

RepRapFirmware 3.01-RC6 released

Scheduled Pinned Locked Moved
Beta Firmware
27
165
12.2k
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
    ChrisP
    last edited by ChrisP 4 Mar 2020, 21:34 3 Apr 2020, 21:31

    I'd also be interested to see what (if any) errors you have in the log for the DCS service:

    sudo journalctl -u duetcontrolserver.service

    Because I get a massive log full of this repeating. So I guress it's to do with my laser filament monitor in this case.

    Apr 03 22:20:52 starttex DuetControlServer[359]: [error] Failed to merge JSON: {"key":"","flags":"d99fn","result":{"boards":[{"mcuTemp":{"current":47.2},"v12":{"current":11.3},"vIn":{"current":12.0}}],"fans":[{"actualValue":0,"requestedValue":1.00,"rpm":0},{"actualValue":0,"requestedValue":0,"rpm":-1}],"heat":{"heaters":[{"active":50.0,"current":20.5,"standby":0,"state":"standby"},{"active":200.0,"current":23.0,"standby":0,"state":"off"}]},"inputs":[{"feedRate":50.0,"lineNumber":0,"state":"idle"},{"feedRate":50.0,"lineNumber":0,"state":"idle"},{"feedRate":50.0,"lineNumber":0,"state":"idle"},{"feedRate":50.0,"lineNumber":0,"state":"idle"},{"feedRate":50.0,"lineNumber":2450,"state":"idle"},{"feedRate":50.0,"lineNumber":0,"state":"idle"},{"feedRate":50.0,"lineNumber":0,"state":"idle"},{"feedRate":50.0,"lineNumber":0,"state":"idle"},{"feedRate":50.0,"lineNumber":0,"state":"idle"},{"feedRate":50.0,"lineNumber":0,"state":"idle"},{"feedRate":50.0,"lineNumber":0,"state":"idle"}],"job":{"build":null,"duration":null,"filePosition":0,"layerTime":null,"timesLeft":{"filament":null,"file":null,"layer":null}},"move":{"axes":[{"homed":false,"machinePosition":0,"userPosition":0},{"homed":false,"machinePosition":0,"userPosition":0},{"homed":false,"machinePosition":0,"userPosition":0}],"currentMove":{"acceleration":0,"deceleration":0,"requestedSpeed":0,"topSpeed":0},"extruders":[{"position":0,"rawPosition":0}],"speedFactor":1.0},"sensors":{"analog":[{"lastReading":20.5},{"lastReading":23.0}],"endstops":[{"triggered":false},{"triggered":false},{"triggered":true}],"filamentMonitors":[{"filamentPresent":null}],"inputs":[{"value":null},{"value":true}],"probes":[{"value":[1000]}]},"seqs":{"boards":0,"directories":0,"fans":4,"heat":7,"inputs":1,"job":0,"move":13,"network":3,"reply":0,"sensors":2,"spindles":0,"state":0,"tools":5,"volumes":0},"spindles":[{"current":0},{"current":0}],"state":{"atxPower":null,"currentTool":-1,"laserPwm":null,"nextTool":-1,"previousTool":-1,"status":"idle","upTime":779},"tools":[{"active":[200.0],"standby":[0],"state":"off"}]}}
    Apr 03 22:20:52 starttex DuetControlServer[359]: System.Text.Json.JsonException: Failed to deserialize property [FilamentMonitor].FilamentPresent (type Boolean) from JSON null
    Apr 03 22:20:52 starttex DuetControlServer[359]: ---> System.Text.Json.JsonException: The JSON value could not be converted to System.Boolean. Path: $ | LineNumber: 0 | BytePositionInLine: 4.
    Apr 03 22:20:52 starttex DuetControlServer[359]: ---> System.InvalidOperationException: Cannot get the value of a token type 'Null' as a boolean.
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.Utf8JsonReader.GetBoolean()
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.Serialization.Converters.JsonConverterBoolean.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.JsonPropertyInfoNotNullable`4.OnRead(ReadStack& state, Utf8JsonReader& reader)
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.JsonPropertyInfo.Read(JsonTokenType tokenType, ReadStack& state, Utf8JsonReader& reader)
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.JsonSerializer.HandleNull(Utf8JsonReader& reader, ReadStack& state)
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& readStack)
    Apr 03 22:20:52 starttex DuetControlServer[359]: --- End of inner exception stack trace ---
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& readStack, Utf8JsonReader& reader, Exception ex)
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& readStack)
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.JsonSerializer.ReadCore(Type returnType, JsonSerializerOptions options, Utf8JsonReader& reader)
    Apr 03 22:20:52 starttex DuetControlServer[359]: at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options)
    Apr 03 22:20:52 starttex DuetControlServer[359]: at DuetAPI.Machine.ModelObject.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties) in /home/christian/duet/DuetSoftwareFramework/src/DuetAPI/Machine/Base/ModelObject.cs:line 282
    Apr 03 22:20:52 starttex DuetControlServer[359]: --- End of inner exception stack trace ---
    Apr 03 22:20:52 starttex DuetControlServer[359]: at DuetAPI.Machine.ModelObject.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties) in /home/christian/duet/DuetSoftwareFramework/src/DuetAPI/Machine/Base/ModelObject.cs:line 287
    Apr 03 22:20:52 starttex DuetControlServer[359]: at DuetAPI.Machine.ModelCollectionHelper.UpdateFromJson(IList list, Type itemType, JsonElement jsonElement, Boolean ignoreSbcProperties) in /home/christian/duet/DuetSoftwareFramework/src/DuetAPI/Machine/Base/ModelCollection.cs:line 227
    Apr 03 22:20:52 starttex DuetControlServer[359]: at DuetAPI.Machine.ModelObject.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties) in /home/christian/duet/DuetSoftwareFramework/src/DuetAPI/Machine/Base/ModelObject.cs:line 264
    Apr 03 22:20:52 starttex DuetControlServer[359]: at DuetAPI.Machine.ModelObject.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties) in /home/christian/duet/DuetSoftwareFramework/src/DuetAPI/Machine/Base/ModelObject.cs:line 248
    Apr 03 22:20:52 starttex DuetControlServer[359]: at DuetAPI.Machine.MachineModel.UpdateFromFirmwareModel(String key, JsonElement jsonElement) in /home/christian/duet/DuetSoftwareFramework/src/DuetAPI/Machine/MachineModel.cs:line 134
    Apr 03 22:20:52 starttex DuetControlServer[359]: at DuetControlServer.Model.Updater.Run() in /home/christian/duet/DuetSoftwareFramework/src/DuetControlServer/Model/Updater.cs:line 140

    Edit: and sure enough, commenting out my filament monitor in the config.g and everything (except for the filament monitor) is working again. Think this is one for @chrishamm .

    1 Reply Last reply Reply Quote 0
    • undefined
      chas2706
      last edited by 3 Apr 2020, 22:23

      @ChrisP said in RepRapFirmware 3.01-RC6 released:

      Did power cycling fix that issue for you? It did for me. MInd you, even when that works, the printer is still unusable

      How can you say that power cycling fixed it for you if the printer is still unusable?

      undefined 1 Reply Last reply 3 Apr 2020, 22:26 Reply Quote 0
      • undefined
        ChrisP @chas2706
        last edited by 3 Apr 2020, 22:26

        @chas2706
        Because power cycling fixed that issue (ie. the drive mounted and read file and config etc), but after rebooting it hit a different bug (mentioned in my post above) that still rendered the printer unusable at that point.

        1 Reply Last reply Reply Quote 0
        • undefined
          chas2706
          last edited by 3 Apr 2020, 22:35

          Ok that's an improvement but for me power cycling, resetting or re-installing made no difference.
          I've had to revert to RRF3.01RC3 but now running on the wrong version of DWC because there is no indication anywhere how we SBC users can download a specific version of DWC.

          ? undefined 2 Replies Last reply 3 Apr 2020, 22:41 Reply Quote 0
          • undefined
            chas2706
            last edited by 3 Apr 2020, 22:38

            This has learnt me a big lesson. Always, always, always make a current back up before you download a "new release"! My latest back up was from a few previous releases.

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User @chas2706
              last edited by A Former User 4 Sept 2020, 11:58 3 Apr 2020, 22:41

              edit: NOPE, that was not a good idea.

              maybe this works better, specifying all the packages to fulfill dependencies for duetsoftwareframework=1.2.5.0

              grep duet3d -r /etc/apt | grep unstable && sudo apt install duetcontrolserver=1.2.5.0 duetsd=1.0.5 duettools=1.2.5.0 duetwebserver=1.2.3.1 duetwebcontrol=2.0.7-1 reprapfirmware=1.2.5.0-1 duetruntime=1.2.5.0 duetsoftwareframework=1.2.5.0 || echo Please swtich to unstable list.

              edit changed to fail if not on unstable list.

              Also according to chrishamm switching to instead of adding the unstable list may be the way to go

              #comment out stable list
              sudo sed -i '/ stable/s/^/#/g' /etc/apt/sources.list.d/duet3d.list
              #add unstable list
              echo "deb https://pkg.duet3d.com/ unstable armv7" | sudo tee /etc/apt/sources.list.d/duet3d-unstable.list
              
              1 Reply Last reply Reply Quote 1
              • undefined
                ChrisP @chas2706
                last edited by ChrisP 4 Mar 2020, 22:46 3 Apr 2020, 22:46

                @chas2706 said in RepRapFirmware 3.01-RC6 released:

                Ok that's an improvement but for me power cycling, resetting or re-installing made no difference.
                I've had to revert to RRF3.01RC3 but now running on the wrong version of DWC because there is no indication anywhere how we SBC users can download a specific version of DWC.

                As @bearer pointa out, rolling back isn't tricky. Tbh, theres a reason that it's a beta firmware, so it should be obvious that backups are wise when trying a new "upgrade".

                I'd still be interested to know the output of you logs for the DCS service.

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by 3 Apr 2020, 22:47

                  the start of the log is probably more relevant than the end of it.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    chas2706
                    last edited by 3 Apr 2020, 22:53

                    @ChrisP said in RepRapFirmware 3.01-RC6 released:

                    As @bearer pointa out, rolling back isn't tricky. Tbh, theres a reason that it's a beta firmware, so it should be obvious that backups are wise when trying a new "upgrade".

                    I understand the meaning of beta firmware but if you have Duet3 with SBC and dare to "upgrade" there is no guarantee that if upon failure an older backup will work.
                    I now have this problem running RRF3.01.RC3 from a backup:

                    Shit.png

                    So now I will be spending numerous hours starting afresh!

                    ? undefined 3 Replies Last reply 3 Apr 2020, 22:55 Reply Quote 0
                    • ?
                      A Former User @chas2706
                      last edited by 3 Apr 2020, 22:55

                      @chas2706 said in RepRapFirmware 3.01-RC6 released:

                      there is no guarantee that if upon failure an older backup will work.

                      that would imply your backup isn't covering your needs. simply shutting down the pi and cloning or imaging the SD card would take care of all but the RRF firmware on the Duet which can be flashed after restoring an old SD card. (caveat if they changed the iap binary)

                      1 Reply Last reply Reply Quote 1
                      • undefined
                        ChrisP @chas2706
                        last edited by 3 Apr 2020, 23:00

                        @chas2706
                        You really shouldn't need to start afresh. Even if you do, as long as you have a copy of the sys & macros folders it should take longer to burn a new raspbian image than it does to get that fresh Linux install to a working printer. I can't remember it taking more than about 15 mins following the guide on the wiki.

                        You'll be back up and running in no time 👍

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          droftarts administrators @Marco Bona
                          last edited by 3 Apr 2020, 23:14

                          @Marco-Bona said in RepRapFirmware 3.01-RC6 released:

                          1_ I continue to have the problem with the correct visualization of the Layers (yesterday @droftarts said it would be solved with the new build)

                          Strange, because this is mentioned specifically in the notes;

                          Bug fixes:
                          When printing a file, the first layer time was reported incorrectly, and when the print completed the total print time reported was incorrect

                          Have you updated the firmware AND the DWC?

                          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 4 Apr 2020, 08:37 Reply Quote 0
                          • ?
                            A Former User @chas2706
                            last edited by 3 Apr 2020, 23:17

                            @chas2706 said in RepRapFirmware 3.01-RC6 released:

                            So now I will be spending numerous hours starting afresh!

                            see my edited post https://forum.duet3d.com/post/143326

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              Danal
                              last edited by Danal 4 Mar 2020, 23:43 3 Apr 2020, 23:41

                              @chas2706 said in RepRapFirmware 3.01-RC6 released:

                              because there is no indication anywhere how we SBC users can download a specific version of DWC.

                              apt allows specification of a version after the thing you are installing.
                              sudo apt install duetsoftwareframework=1.2.4.0

                              This, plus a few more commands below, gives you total control over the duet installation on the Pi. You can force it into a good (or bad!) state.

                              You may want to do 'uninstall' in certain circumstances, or use the --reinstall flag (which forces a complete install even if apt thinks that version is already installed) Examples:
                              sudo apt uninstall duetsoftwareframework
                              sudo apt install duetsoftwareframework --reinstall

                              You can list all available versions via:

                              sudo apt list -a duetsoftwareframework
                              Listing... Done
                              duetsoftwareframework/unstable,now 1.3.0 armhf [installed]
                              duetsoftwareframework/unstable 1.2.5.0 armhf
                              duetsoftwareframework/unstable,stable 1.2.4.0 armhf
                              duetsoftwareframework/unstable 1.2.3.1 armhf
                              duetsoftwareframework/unstable,stable 1.2.3.0 armhf
                              duetsoftwareframework/unstable,stable 1.2.2.1 armhf
                              duetsoftwareframework/unstable 1.2.2.0 armhf
                              duetsoftwareframework/unstable 1.2.1.0 armhf
                              duetsoftwareframework/unstable 1.2.0.0 armhf
                              duetsoftwareframework/unstable,stable 1.1.0.5 armhf
                              duetsoftwareframework/unstable 1.1.0.4 armhf
                              duetsoftwareframework/unstable 1.1.0.3 armhf
                              duetsoftwareframework/unstable 1.1.0.2 armhf
                              duetsoftwareframework/unstable 1.1.0.1 armhf
                              duetsoftwareframework/unstable 1.1.0.0 armhf
                              duetsoftwareframework/unstable,stable 1.0.4.1 armhf
                              duetsoftwareframework/unstable 1.0.4.0 armhf
                              duetsoftwareframework/unstable 1.0.3.5 armhf
                              duetsoftwareframework/unstable 1.0.3.3 armhf
                              duetsoftwareframework/unstable 1.0.3.2 armhf
                              duetsoftwareframework/stable 1.0.3.1 armhf

                              Generally, when doing a simple install, apt will deal properly with dependencies. During uninstalls and reinstalls in often does not. You can list all dependencies via:

                              apt-cache depends duetsoftwareframework
                              duetsoftwareframework
                              Depends: duetcontrolserver
                              Depends: duetsd
                              Depends: duettools
                              Depends: duetwebserver
                              Depends: duetwebcontrol
                              Depends: reprapfirmware
                              Depends: reprapfirmware

                              Delta / Kossel printer fanatic

                              ? 1 Reply Last reply 3 Apr 2020, 23:43 Reply Quote 0
                              • ?
                                A Former User @Danal
                                last edited by 3 Apr 2020, 23:43

                                @Danal said in RepRapFirmware 3.01-RC6 released:

                                Generally, when doing a simple install, apt will deal properly with dependencies. During uninstalls and reinstalls in often does not. You can list all dependencies via:

                                not when downgrading dsf it seems

                                pi@raspberrypi:~ $ sudo apt install duetsoftwareframework=1.2.4.0
                                Reading package lists... Done
                                Building dependency tree
                                Reading state information... Done
                                Some packages could not be installed. This may mean that you have
                                requested an impossible situation or if you are using the unstable
                                distribution that some required packages have not yet been created
                                or been moved out of Incoming.
                                The following information may help to resolve the situation:
                                
                                The following packages have unmet dependencies:
                                 duetsoftwareframework : Depends: duetcontrolserver (= 1.2.4.0) but 1.3.0 is to be installed
                                                         Depends: duettools (= 1.2.4.0) but 1.3.0 is to be installed
                                                         Depends: reprapfirmware (<= 1.2.4.0-999) but 1.3.0-2 is to be installed
                                E: Unable to correct problems, you have held broken packages.
                                pi@raspberrypi:~ $
                                
                                

                                thus my post detailing all the verions..

                                undefined 1 Reply Last reply 3 Apr 2020, 23:45 Reply Quote 0
                                • undefined
                                  Danal @A Former User
                                  last edited by 3 Apr 2020, 23:45

                                  Agreed, during anything but a simple install, it often does not.

                                  That's why I showed the commands that list dependencies and versions.

                                  Delta / Kossel printer fanatic

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    chas2706
                                    last edited by 3 Apr 2020, 23:48

                                    @bearer said in RepRapFirmware 3.01-RC6 released:

                                    edit: NOPE, that was not a good idea.
                                    maybe this works better, specifying all the packages to fulfill dependencies for duetsoftwareframework=1.2.5.0

                                    Thanks for the suggestion but here's what I got:

                                    pi@Duet3:~ $ sudo apt install duetcontrolserver=1.2.5.0 duetsd=1.0.5 duettools=1.2.5.0 duetwebserver=1.2.3.1 duetwebcontrol=2.0.7-1 reprapfirmware=1.2.5.0-1 duetruntime=1.2.5.0 duetsoftwareframework=1.2.5.0
                                    Reading package lists... Done
                                    Building dependency tree
                                    Reading state information... Done
                                    E: Version '1.2.5.0' for 'duetcontrolserver' was not found
                                    E: Version '1.2.5.0' for 'duettools' was not found
                                    E: Version '1.2.3.1' for 'duetwebserver' was not found
                                    E: Version '2.0.7-1' for 'duetwebcontrol' was not found
                                    E: Version '1.2.5.0-1' for 'reprapfirmware' was not found
                                    E: Version '1.2.5.0' for 'duetruntime' was not found
                                    E: Version '1.2.5.0' for 'duetsoftwareframework' was not found
                                    pi@Duet3:~ $

                                    For me there are a number of issues.
                                    After you have installed a beta version and run into difficulties, re-installing a back up can create a number of issues.
                                    Firstly you don't know which specific version of RRF your back up was on unless you were smart enough to include the version number in the backup name (all versions are named " Duet3Firmware_MB6HC.bin")!. So by default your back up will fail because your board is flashed with the latest version.
                                    Secondly, your version of DWC will be the wrong version and for SBC users apparently, this is just tough luck.
                                    Summing it up, a backup will only work if you never upgraded in the first place!

                                    ? 1 Reply Last reply 4 Apr 2020, 00:21 Reply Quote 0
                                    • undefined
                                      Danal
                                      last edited by 3 Apr 2020, 23:55

                                      When running a Pi, there is more to a backup than the binary file loaded into the Duet board (and/or the contents of sys and macros). A lot more.

                                      A backup of the entire SD in the Pi will always work to execute a recovery. After booting from such a full SD card backup, it is necessary to load firmware into the board. That backup of the entire SD card, by definition, has the firmware .bin files that were loaded sometime in the past. No name problems, no downloads, "just works". If the backup is of the entire card.

                                      Maybe this should all be on a dozuki somewhere... and I'd be happy to write it up.

                                      (P.S. For anybody that doesn't know, I have no association with Duet the company. I am just a vocal user)

                                      Delta / Kossel printer fanatic

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        chas2706
                                        last edited by 4 Apr 2020, 00:06

                                        @Danal said in RepRapFirmware 3.01-RC6 released:

                                        When running a Pi, there is more to a backup than the binary file loaded into the Duet board (and/or the contents of sys and macros). A lot more.
                                        A backup of the entire SD in the Pi will always work to execute a recovery. After booting from such a full SD card backup, it is necessary to load firmware into the board. That backup of the entire SD card, by definition, has the firmware .bin files that were loaded sometime in the past. No name problems, no downloads, "just works". If the backup is of the entire card.
                                        Maybe this should all be on a dozuki somewhere... and I'd be happy to write it up.
                                        (P.S. For anybody that doesn't know, I have no association with Duet the company. I am just a vocal user)

                                        The backup was of the entire card and I initially realised that there were problems because the firmware on the board was of the new build so I grabbed a copy of Duet3Firmware_MB6HC.bin found in /opt/dsf/sd/sys i.e "Duet3Firmware_MB6HC.bin" and flashed it to the board but still have the above mentioned issues.

                                        undefined 1 Reply Last reply 4 Apr 2020, 00:21 Reply Quote 0
                                        • undefined
                                          chas2706
                                          last edited by 4 Apr 2020, 00:08

                                          If a full backup of the entire SD "always works" how come the DWC does not downgrade to the correct version?

                                          undefined 1 Reply Last reply 4 Apr 2020, 00:15 Reply Quote 0
                                          70 out of 165
                                          • First post
                                            70/165
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA