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

    Duet 3 and jetson Nano?

    Scheduled Pinned Locked Moved
    General Discussion
    8
    111
    8.9k
    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

      And when you do the netstat, use sudo so we can see what's listening on which ports..
      sudo netstat -antp
      I should have mentioned that before , sorry.

      hanshogelandundefined 1 Reply Last reply Reply Quote 0
      • hanshogelandundefined
        hanshogeland @A Former User
        last edited by

        @bearerno, but I forgot to add :80 will try again 🙂

        1 Reply Last reply Reply Quote 0
        • hanshogelandundefined
          hanshogeland @gtj0
          last edited by

          @gtj0 yes, I changed the http json to
          {
          "Logging": {
          "LogLevel": {
          "Default": "Information"
          }
          },
          "Kestrel": {
          "Endpoints": {
          "Http": {
          "Url": "http://127.0.0.1:80"
          }
          }
          },
          "UseCors": true,
          "UseStaticFiles": true,
          "SocketPath": "/var/run/duet.sock"
          }
          And the netstat with sudo
          5b27971b-2d38-4dda-943c-8d49337450af-image.png

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

            OK, that's good. It's DuetWebServer listening on port 80.

            hanshogelandundefined 1 Reply Last reply Reply Quote 0
            • hanshogelandundefined
              hanshogeland @gtj0
              last edited by

              @gtj0 yes, hmm when I go to the url 127.0.0.1:80
              I get 500 response
              feb90ce3-d75d-4e49-8e5e-e7c838a8cfd1-image.png

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

                OK so that probably means that the DuetControlServer isn't running so that's the thing to check next.
                systemctl status duetcontrolserver

                Did you fix the gpio in config.json?

                hanshogelandundefined 1 Reply Last reply Reply Quote 0
                • hanshogelandundefined
                  hanshogeland @gtj0
                  last edited by

                  @gtj0 said in Duet 3 and jetson Nano?:

                  systemctl status duetcontrolserver

                  Yes, I fixed the GIPO, the status and conf
                  4ccb2795-3c19-45a4-b237-bdbaf2106504-image.png

                  hanshogelandundefined 1 Reply Last reply Reply Quote 0
                  • hanshogelandundefined
                    hanshogeland @hanshogeland
                    last edited by

                    @hanshogeland I think I have some more clues, acutally It is saying Duet is not available and the next exception happens when I navigate to the url
                    176d8676-cfc1-40a3-864f-cf4b1c9c5907-image.png

                    1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User
                      last edited by A Former User

                      (if you were to copy paste text and use ` and ``` around words and lines respectively it would be so much easier to read and comment than the screenshots; not to mention faster to load and view

                      ref https://commonmark.org/help/ for formatting help)

                      hanshogelandundefined 1 Reply Last reply Reply Quote 0
                      • hanshogelandundefined
                        hanshogeland @A Former User
                        last edited by

                        @bearer got you, will try that the next time (and thx for the tip :))

                        1 Reply Last reply Reply Quote 0
                        • A Former User?
                          A Former User
                          last edited by

                          For instance I could copy/paste the first part where you start DuetControlServer and point out that when you run the binary like that and it returns to the prompt, it is no longer running. And as such DuetWebServer will not work.

                          You need to either run the binary in its own terminal or in the background; and more importantly find out why it says Duet is not available

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

                            The Duet Not Available is either that the GPIO or the SPI isn't configured correctly (not in the DSF).
                            Unfortunately I don't have a Duet3 to test with yet so I'm kinda flying blind for the time being.
                            The issue may be that the SPI instructions that I posted were for a generic Jetson Nano, not specific to the DSF. As such, it has both SPI ports configured. Unfortunately, the GPIO pin that's wired through to the Duet3 is also used by the second SPI port on the Nano so it may be interfering. I'm working on an updated SPI procedure that should be done in a few hours.

                            hanshogelandundefined 1 Reply Last reply Reply Quote 0
                            • hanshogelandundefined
                              hanshogeland @A Former User
                              last edited by

                              @bearer yes I see, I made a mistake not adding the gpio group rights. I think I got connection now.

                              hanshogelandundefined 1 Reply Last reply Reply Quote 0
                              • hanshogelandundefined
                                hanshogeland @hanshogeland
                                last edited by

                                @hanshogeland said in Duet 3 and jetson Nano?:

                                @bearer yes I see, I made a mistake not adding the gpio group rights. I think I got connection now.

                                Or I got another error now,

                                hans@hans-desktop:~$ sudo /opt/dsf/bin/DuetControlServer
                                Duet Control Server v1.0.3.3
                                Written by Christian Hammacher for Duet3D
                                Licensed under the terms of the GNU Public License Version 3

                                Loading settings... Done!
                                Initialising object model... Done!
                                Connecting to RepRapFirmware... [warn] Bad header checksum (expected 0xffff, got 0x3b01)
                                [warn] Note: RepRapFirmware didn't receive valid data either (code 0x00000005)
                                Error: Duet is not available

                                1 Reply Last reply Reply Quote 0
                                • hanshogelandundefined
                                  hanshogeland @gtj0
                                  last edited by

                                  @gtj0 thx for your efforts, I couldn’t have come this far without you.

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

                                    @hanshogeland I updated my github repo with files that enable spi1 only. It may help.
                                    Another thing you can try is to reduce the SPI bus speed as a test.
                                    In config.json, change
                                    "SpiFrequency": 1000000,
                                    to
                                    "SpiFrequency": 500000,

                                    That's 500KHz instead of 1MHz.

                                    You'll have to restart duetcontrolserver after making the change.

                                    https://github.com/gtjoseph/jetson-nano-support/tree/l4t_32.2.1

                                    hanshogelandundefined 1 Reply Last reply Reply Quote 1
                                    • hanshogelandundefined
                                      hanshogeland @gtj0
                                      last edited by

                                      @gtj0 hi, I have flashed with only the spi1 support and tested again with the duetcontrolserver - it gives a similar error again.

                                      hans@hans-desktop:~$ sudo /opt/dsf/bin/DuetControlServer
                                      Duet Control Server v1.0.3.3
                                      Written by Christian Hammacher for Duet3D
                                      Licensed under the terms of the GNU Public License Version 3

                                      Loading settings... Done!
                                      Initialising object model... Done!
                                      Connecting to RepRapFirmware... [warn] Bad header checksum (expected 0xffff, got 0x3b01)
                                      [warn] Note: RepRapFirmware didn't receive valid data either (code 0x00000005)
                                      Error: Duet is not available
                                      hans@hans-desktop:~$ ls -al /dev/spi*
                                      crw-rw---- 1 root gpio 153, 0 sep 21 01:18 /dev/spidev0.0
                                      crw-rw---- 1 root gpio 153, 1 sep 21 01:18 /dev/spidev0.1

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

                                        Did you try lowering the spi frequency?

                                        hanshogelandundefined 1 Reply Last reply Reply Quote 0
                                        • hanshogelandundefined
                                          hanshogeland @gtj0
                                          last edited by

                                          @gtj0 yes, I did that - this is the config, thx again for your help - I might have to wait until you have tested it yourself and that is fine also cause I am still building on my printer. Also I am thinking on getting a Rasberry to verify the card and cable, but I would say that should not be an issue at all.

                                          "SpiFrequency": 500000,
                                          "SocketPath": "/var/run/duet.sock",
                                          "Backlog": 4,
                                          "BaseDirectory": "/opt/dsf/sd",
                                          "HostUpdateInterval": 4000,
                                          "MaxMessageAge": 60.0,
                                          "SpiBusID": 0,
                                          "SpiChipSelectLine": 0,
                                          "SpiTransferTimeout": 500,
                                          "MaxSpiRetries": 3,
                                          "SpiPollDelay": 25,
                                          "TransferReadyPin": 13,
                                          "MaxUpdateDelay": 250.0,
                                          "FileInfoReadLimit": 32768,
                                          "MaxLayerHeight": 0.9,
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • gtj0undefined
                                            gtj0
                                            last edited by

                                            @hanshogeland I just uploaded DSF builds for 1.0.4.0. Suggest you give those a try.

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