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

    DueUI Compatibility issues with RRF/DSF 3.5

    Scheduled Pinned Locked Moved
    DueUI
    3
    9
    736
    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.
    • gtj0undefined
      gtj0
      last edited by

      There are some issues related to RRF/DSF 3.5 that I'm currently working on. Right now, you can't run DueUI on an DSF based printer because the way DueUI detects whether you're in DSF or Standalone mode is by trying to issue an "rr_connect" command. That used to fail when the printer was in DSF mode but now succeeds and returns a JSON response so DueUI thinks it's instandalone mode when it isn't. Fix in progress.

      stuartofmtundefined 1 Reply Last reply Reply Quote 1
      • stuartofmtundefined
        stuartofmt @gtj0
        last edited by

        @gtj0

        Hi,
        I'm confused, blind, or both ... well, I'm often confused 🙂

        I too, in my projects check for rr_connect to detect standalone and if that fails, I try /machine/connect to detect SBC.

        I've looked at the various release notes (and googled etc) but cannot see anything about rr_connect being implemented for SBC in 3.5. Can you point me to the reference?

        In any case, what about reversing the order i.e. check for /machine/connect first and then, if it fails, check for rr_connect.

        ... or do you have a cunning plan ?

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

          @stuartofmt See here:

          - Added rr_ compatibility layer to DuetWebServer (HTTP calls in standalone mode)
          

          @gtj0 DSF adds isEmulated: true to the rr_connect JSON response, which is checked by DWC on connect. If that key/value pair is present, the connection attempt is aborted and the next connector (for DSF) tries to establish a connection using the other API.

          Duet software engineer

          stuartofmtundefined 1 Reply Last reply Reply Quote 0
          • stuartofmtundefined
            stuartofmt @chrishamm
            last edited by stuartofmt

            @chrishamm said in DueUI Compatibility issues with RRF/DSF 3.5:

            @stuartofmt See here:

            - Added rr_ compatibility layer to DuetWebServer (HTTP calls in standalone mode)
            

            @gtj0 DSF adds isEmulated: true to the rr_connect JSON response, which is checked by DWC on connect. If that key/value pair is present, the connection attempt is aborted and the next connector (for DSF) tries to establish a connection using the other API.

            So logically (with minimum code changes) - something like:

            Try connecting with rr_connect
               If isEmulated: true:
                   treat as invalid connection attempt
              Try connecting with /machine/connect
                     get session key etc
            
            1 Reply Last reply Reply Quote 0
            • gtj0undefined
              gtj0
              last edited by

              Yep, I got it sorted. Also had to add the call to /machine/connect to get the sessionKey and add it to all requests and to the websocket open.

              stuartofmtundefined 1 Reply Last reply Reply Quote 2
              • stuartofmtundefined
                stuartofmt @gtj0
                last edited by

                @gtj0

                Have you release an updated version ?

                gtj0undefined 1 Reply Last reply Reply Quote 0
                • gtj0undefined
                  gtj0 @stuartofmt
                  last edited by

                  @stuartofmt said in DueUI Compatibility issues with RRF/DSF 3.5:

                  @gtj0

                  Have you release an updated version ?

                  Oy. I fixed it but then forgot to release it. Another victory for ADHD.

                  Will get it published today.

                  gtj0undefined 1 Reply Last reply Reply Quote 1
                  • gtj0undefined gtj0 referenced this topic
                  • gtj0undefined
                    gtj0 @gtj0
                    last edited by

                    @gtj0 said in DueUI Compatibility issues with RRF/DSF 3.5:

                    @stuartofmt said in DueUI Compatibility issues with RRF/DSF 3.5:

                    @gtj0

                    Have you release an updated version ?

                    Oy. I fixed it but then forgot to release it. Another victory for ADHD.

                    Will get it published today.

                    Done. Sorry for the delay.

                    stuartofmtundefined 1 Reply Last reply Reply Quote 0
                    • stuartofmtundefined
                      stuartofmt @gtj0
                      last edited by

                      @gtj0
                      If it's any consolation ... err ... what was I going to say?

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