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

    M291 S4+ commands not working on RRF 3.5beta2

    Scheduled Pinned Locked Moved Solved
    Gcode meta commands
    3
    7
    325
    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.
    • SanderLPFRGundefined
      SanderLPFRG
      last edited by

      Hi all,
      I cannot get the M291 commands to execute well with types S4 and above. Can anyone help me figure this out? or might this be a bug?

      Software versions;
      Board: Duet 3 MB6HC (SBC mode)
      DSF Version: 3.4.5
      Firmware: RepRapFirmware for Duet 3 MB6HC 3.5beta2 (2023-02-08)

      Expected behaviour;
      Sent via console;
      M291 S4 K{"1","2","3"} P"prompt message test"
      Response;
      Message displayed on HDMI monitor with 3 options "1", "2" and "3", which can be used as variables.

      Actual behaviour;
      Sent via console;
      M291 S4 K{"1","2","3"} P"prompt message test"
      Response;
      Message displayed on HDMI monitor with 1 option, "ok" (same message as S2 type message)

      Why is this happening and what can I do to fix the issue?

      T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators @SanderLPFRG
        last edited by

        @SanderLPFRG said in M291 S4+ commands not working on RRF 3.5beta2:

        DSF Version: 3.4.5

        you need to keep DSF and RRF versions in sync, to do that use apt to manage your DSF and RRF versions.

        as 3.5 is still in beta you will need to switch to the unstable package feed:
        https://docs.duet3d.com/en/User_manual/Machine_configuration/DSF_RPi#switch-to-unstable-packages

        www.duet3d.com

        SanderLPFRGundefined 1 Reply Last reply Reply Quote 0
        • SanderLPFRGundefined
          SanderLPFRG @T3P3Tony
          last edited by

          @T3P3Tony Ahh ohkee! thanks for the reply.

          How do I get the files for DSF version 3.5 (beta2)? and how do I update it? same way as rrf?

          Sorry I'm newish to this stuff.

          T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
          • T3P3Tonyundefined
            T3P3Tony administrators @SanderLPFRG
            last edited by

            @SanderLPFRG use apt to upgrade your DSF install after switching to the unstable branch. For future betas apt will upgrade DSF and RRF. Once 3.5stable is out you can switch back from the unstable to stable branch.

            www.duet3d.com

            SanderLPFRGundefined 1 Reply Last reply Reply Quote 0
            • SanderLPFRGundefined
              SanderLPFRG @T3P3Tony
              last edited by

              @T3P3Tony Thanks, i understand and tried switching and updating. However, I am getting errors I do not fully understand.

              Terminal communication;
              pi@duet3:~ $ sudo rm -f /etc/apt/sources.list.d/duet3d.list
              pi@duet3:~ $ sudo bash -c "echo 'deb https://pkg.duet3d.com/ unstable armv7' > /etc/apt/sources.list.d/duet3d-unstable.list"
              pi@duet3:~ $ sudo apt update
              Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
              Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
              Ign:3 https://pkg.duet3d.com stable InRelease
              Ign:4 https://pkg.duet3d.com unstable InRelease
              Err:5 https://pkg.duet3d.com stable Release
              Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 134.209.94.168 443]
              Err:6 https://pkg.duet3d.com unstable Release
              Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 134.209.94.168 443]
              Reading package lists... Done
              N: Ignoring file 'duet3d-stable.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
              N: Ignoring file 'duet3d-unstable.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
              N: Ignoring file 'duet3d-unstable.list^' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
              E: The repository 'https://pkg.duet3d.com stable Release' no longer has a Release file.
              N: Updating from such a repository can't be done securely, and is therefore disabled by default.
              N: See apt-secure(8) manpage for repository creation and user configuration details.
              E: The repository 'https://pkg.duet3d.com unstable Release' does not have a Release file.
              N: Updating from such a repository can't be done securely, and is therefore disabled by default.
              N: See apt-secure(8) manpage for repository creation and user configuration details.
              E: Release file for http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease is not valid yet (invalid for another 28d 19h 6min 16s). Updates for this repository will not be applied.
              E: Release file for http://archive.raspberrypi.org/debian/dists/buster/InRelease is not valid yet (invalid for another 22d 3h 34min 58s). Updates for this repository will not be applied.

              What can I do?

              chrishammundefined 1 Reply Last reply Reply Quote 0
              • chrishammundefined
                chrishamm administrators @SanderLPFRG
                last edited by

                @SanderLPFRG said in M291 S4+ commands not working on RRF 3.5beta2:

                Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 134.209.94.168 443]

                You still have the stable feed configured somewhere. Run sudo rm -f /etc/apt/sources.list.d/duet3d* and ls /etc/apt/sources.list.d to ensure no more duet3d lists are present. Then send

                sudo bash -c "echo 'deb https://pkg.duet3d.com/ unstable armv7' > /etc/apt/sources.list.d/duet3d-unstable.list"
                sudo apt update
                

                Also make sure that your RPi has a valid internet connection and that the datetime is set correctly (should be set automatically once an internet connection is present). If it isn't updated, see here on how to set it manually.

                Duet software engineer

                SanderLPFRGundefined 1 Reply Last reply Reply Quote 0
                • SanderLPFRGundefined
                  SanderLPFRG @chrishamm
                  last edited by

                  @chrishamm It works!!

                  It both updated correctly, and now the M291 functions correctly.
                  Massive thanks Chris and Tony.

                  I'll now work on trying to understand how I can use the input to trigger Gcode commands

                  1 Reply Last reply Reply Quote 1
                  • T3P3Tonyundefined T3P3Tony marked this topic as a question
                  • T3P3Tonyundefined T3P3Tony has marked this topic as solved
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA