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

"Failed to connect to duet3" via Pi4 SBC

Scheduled Pinned Locked Moved
Duet Web Control
5
17
1.3k
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.
  • ?
    A Former User
    last edited by 8 Apr 2020, 20:12

    if hes on a fresh duetpi image with the stable list ( i.e dsf 1.2.4) and RC6 firmware wouldn't that be an issue?

    1 Reply Last reply Reply Quote 0
    • undefined
      Xavier
      last edited by 8 Apr 2020, 21:06

      This is the output:

      Apr 08 22:04:10 duet3 DuetControlServer[1568]: [info] Environment initialized
      Apr 08 22:04:10 duet3 DuetControlServer[1568]: [error] Duet is not available
      Apr 08 22:04:10 duet3 systemd[1]: duetcontrolserver.service: Succeeded.
      Apr 08 22:04:15 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=5s expired, scheduling restart.
      Apr 08 22:04:15 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 16.
      Apr 08 22:04:15 duet3 systemd[1]: Stopped Duet Control Server.
      Apr 08 22:04:15 duet3 systemd[1]: Started Duet Control Server.
      Apr 08 22:04:16 duet3 DuetControlServer[1584]: Duet Control Server v1.2.4.0
      Apr 08 22:04:16 duet3 DuetControlServer[1584]: Written by Christian Hammacher for Duet3D
      Apr 08 22:04:16 duet3 DuetControlServer[1584]: Licensed under the terms of the GNU Public License Version 3
      Apr 08 22:04:16 duet3 DuetControlServer[1584]: [info] Settings loaded
      Apr 08 22:04:17 duet3 DuetControlServer[1584]: [info] Environment initialized
      Apr 08 22:04:17 duet3 DuetControlServer[1584]: [error] Duet is not available
      Apr 08 22:04:17 duet3 systemd[1]: duetcontrolserver.service: Succeeded.
      Apr 08 22:04:22 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=5s expired, scheduling restart.
      Apr 08 22:04:22 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 17.
      Apr 08 22:04:22 duet3 systemd[1]: Stopped Duet Control Server.
      Apr 08 22:04:22 duet3 systemd[1]: Started Duet Control Server.
      Apr 08 22:04:23 duet3 DuetControlServer[1599]: Duet Control Server v1.2.4.0
      Apr 08 22:04:23 duet3 DuetControlServer[1599]: Written by Christian Hammacher for Duet3D
      Apr 08 22:04:23 duet3 DuetControlServer[1599]: Licensed under the terms of the GNU Public License Version 3
      Apr 08 22:04:23 duet3 DuetControlServer[1599]: [info] Settings loaded
      Apr 08 22:04:24 duet3 DuetControlServer[1599]: [info] Environment initialized
      Apr 08 22:04:24 duet3 DuetControlServer[1599]: [error] Duet is not available
      Apr 08 22:04:24 duet3 systemd[1]: duetcontrolserver.service: Succeeded.
      Apr 08 22:04:29 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=5s expired, scheduling restart.
      Apr 08 22:04:29 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 18.
      Apr 08 22:04:29 duet3 systemd[1]: Stopped Duet Control Server.
      Apr 08 22:04:29 duet3 systemd[1]: Started Duet Control Server.

      1 Reply Last reply Reply Quote 0
      • undefined
        Danal
        last edited by Danal 4 Sept 2020, 02:02 9 Apr 2020, 01:55

        • V3 RC6 software in the flash on the Duet board should work just fine. You've verified the physical setup, let's check some other basics:

        • From the first post:
          @Xavier said in "Failed to connect to duet3" via Pi4 SBC:
          Both the Pi and the Duet are connected to their own power supplies
          For now, for debugging, disconnect the Pi power supply and move the jumpers to the default configuration. That is, per the Dozuki instructions, allow the Pi to be powered from the Duet. You can change it to your desired configuration later.

        • NO SD CARD in the Duet board itself. Socket must be empty (this is not 100% true, but go with it for now, for debugging)

        • Pi was built with the image, AND the post-install steps were executed. These steps are all on the Dozuki, but it covers a lot of options so I made myself a "just do it this way" instruction sheet, please use it as a verification checklist:

        # Get your Pi booted and on your network:
        # Download image (not lite) from https://duet3d.dozuki.com/Wiki/Getting_Started_With_Duet_3#Section_DuetPi
        # Do not unzip it.
        # Etch image to SD card. (search google for balena etcher)
        # Ignore windows error messages for the next drive letter after your SD. DO NOT format.
        # On the SD card, edit wpa_supplicant.conf for your network
        # On the SD card, create a file named 'ssh'. Empty is fine.
        # Insert SD in Pi and power up. First boot takes an extra minute or two.
        # Find IP address (varies a lot by router) or try "duet3.local"
        # From your PC, enter:
        ssh pi@x.x.x.x
        # Default password is raspberry CHANGE IT after you connect for the first time!
        # From the Pi command prompt:
        passwd
        #You now have a running Pi, but it is not completely built
        # to run a Duet 3 printer yet.
        #Set up OS options for Duet Software Framework:
        sudo raspi-config
        # Navigate to 5 interface options, then P4 SPI, and 5 again, P3 VNC
        # Verify via
        ls /dev/spidev*
        # Look for /dev/spidev0.0
        # You may also wish to set country, time zone, etc. with raspi-config
        # Now complete setup for duetsoftwareframework.
        wget -q https://pkg.duet3d.com/duet3d.gpg
        wget -q https://pkg.duet3d.com/duet3d-unstable.list
        sudo mv duet3d.gpg /etc/apt/trusted.gpg.d/
        sudo mv duet3d-unstable.list /etc/apt/sources.list.d/duet3d-unstable.list
        sudo chown root:root /etc/apt/trusted.gpg.d/duet3d.gpg
        sudo chown root:root /etc/apt/sources.list.d/duet3d-unstable.list
        sudo apt-get update
        sudo apt-get install apt-transport-https
        sudo apt-get install duetsoftwareframework
        # Verify you can connect to DWC via web server.
        # If you have configuration files (config.g, tool macros, etc) use DWC to upload them now.
        # Update the Pi itself:
        sudo apt-get update
        sudo apt-get upgrade (this may take 15 to 60 minutes)
        # Reboot is not absolutely required... but...
        sudo reboot
        #########################################
        # End of required install for Duet 3 Pi #
        #########################################

        Delta / Kossel printer fanatic

        undefined 1 Reply Last reply 9 Apr 2020, 09:09 Reply Quote 0
        • ?
          A Former User
          last edited by 9 Apr 2020, 07:14

          https://github.com/dc42/RepRapFirmware/blob/v3-dev/WHATS_NEW_RRF3.md#reprapfirmware-301-rc6

          Users of Duet 3 with attached SBC should upgrade to DSF 1.3.0 at the same time as upgrading to this release

          1 Reply Last reply Reply Quote 0
          • undefined
            chrishamm administrators @Danal
            last edited by 9 Apr 2020, 09:09

            @Danal said in "Failed to connect to duet3" via Pi4 SBC:

            • V3 RC6 software in the flash on the Duet board should work just fine. You've verified the physical setup, let's check some other basics:

            This is not true unless the latest unstable DSF package is installed. DSF 1.2.x should be used with RRF 3.0 only.

            @Xavier I suggest you install RRF 3.0 again and see if that helps. The error message you see indicate that the Duet isn't available at all, i.e. no data could be transmitted over SPI. Please make sure the red led on the Duet 3 blinks in 1s intervals and that the connection between the Duet and the Pi is okay.

            Duet software engineer

            undefined 1 Reply Last reply 9 Apr 2020, 09:29 Reply Quote 0
            • undefined
              dc42 administrators @chrishamm
              last edited by 9 Apr 2020, 09:29

              @chrishamm said in "Failed to connect to duet3" via Pi4 SBC:

              This is not true unless the latest unstable DSF package is installed. DSF 1.2.x should be used with RRF 3.0 only.

              More precisely:

              • DSF 1.2.5 will work with RRF 3.01-RC5. I think it should also work with all earlier 3.01RC versions, and with 3.0 release (but not with some 3.0beta versions)
              • DSF 1.3.x and RRF 3.01-RC6 use a modified SPI protocol. However, DSF 1.3.x should work with RRF 3.01-RC5 sufficiently to upgrade it to 3.01-RC6.

              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

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by A Former User 4 Sept 2020, 10:24 9 Apr 2020, 09:46

                Maybe OP should just run apt list 2>/dev/null | grep duet and eliminate the guesswork about which version is running.

                (If the recommendation is to run from the sable list with DSF 1.2.4 + RRF3.0 and DSF isn't working you can flash the Duet3 with a USB cable and running a script that will build bossac, download the stable version for the Duet (RRF3.0 for the Duet3 at the time of writing) , send the Duet to bootloader and flash it. wget -q https://pastebin.com/raw/wekeLGhS -O - | tr -d '\r' | bash)

                edit:
                @Xavier said in "Failed to connect to duet3" via Pi4 SBC:

                Apr 08 22:04:16 duet3 DuetControlServer[1584]: Duet Control Server v1.2.4.0

                1 Reply Last reply Reply Quote 0
                • undefined
                  dc42 administrators
                  last edited by dc42 4 Sept 2020, 09:55 9 Apr 2020, 09:55

                  For those Duet 3 + RPi users who don't want to be on the bleeding edge, I suggest DSF 1.2.5 and RRF 3.01-RC5 until DSF 1.3.x/DWC 2.1.x/RRF 3.01-RC6 have settled down.

                  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

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User
                    last edited by A Former User 4 Sept 2020, 10:15 9 Apr 2020, 10:04

                    Then maybe 1.2.5 should be published to the stable list? Presently 1.2.4 is the latest. Installing 1.2.5 from the unstable list might not be the simplest task. (But I suppose Alex Horne is encouraging #hometasking..!)

                    duetsoftwareframework/unstable 1.2.5.0 armhf
                    duetsoftwareframework/unstable,stable 1.2.4.0 armhf
                    
                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Xavier
                      last edited by Xavier 4 Sept 2020, 11:35 9 Apr 2020, 11:31

                      Ok there are a lot of instructions since my last post and I am not entirely sure how to proceed now as a new user, I do not need to be on the bleeding edge as dc42 suggested, I just want it working for the moment.

                      In case it helps I can confirm the followng:

                      • The Duet has no SD card inserted
                      • I have not touched the jumpers on the duet, so they are where they were when I received the board (Internal 5V jumper and 5V -> SBC jumper inserted)
                      • "apt list 2>/dev/null | grep duet" returns:
                        duetcontrolserver/stable,now 1.2.4.0 armhf [installed,automatic]
                        duetruntime/stable,now 1.2.4.0 armhf [installed,automatic]
                        duetsd/stable,now 1.0.5 all [installed,automatic]
                        duetsoftwareframework/stable,now 1.2.4.0 armhf [installed]
                        duettools/stable,now 1.2.4.0 armhf [installed,automatic]
                        duetwebcontrol/stable,now 2.0.7-1 all [installed,automatic]
                        duetwebserver/stable,now 1.2.3.1 armhf [installed,automatic]

                      Also the red light next to the reset is blinking o and off every second.

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User
                        last edited by A Former User 4 Sept 2020, 12:01 9 Apr 2020, 11:43

                        To follow dc42's suggestion, you still need to change to the unstable list to be able to install DSF 1.2.5, and if you update normally it will go to 1.3.x unless we mark the package as held; which you need to undo when you do want to update later - so you'll be on a edge if not the bleeding edge.

                        To follow chrishamm's suggestion all you need to do is to install RRF 3.0 on the Duet 3 and keep the Pi as is. (But there are various issues with all the older versions, which is why I suggested you read the threads concerning the updates to determine for yourself).

                        My posts above might help you achieve either option. but the choice is yours. I recon its easier to start with chrishamm's suggestion to install RRF 3.0 and move on to switching to the unstable list and installing DSF1.2.5 as per dc42's suggestion (which should then also update the Duet3 to 3.01-RC5 as part of the process)

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          Xavier
                          last edited by 9 Apr 2020, 12:11

                          I just changed firmware to 3.0 and it works! I owe you all a pint of beer 🍻

                          Fantastic support, thanks!

                          Now let's see what else I can break 😆

                          1 Reply Last reply Reply Quote 0
                          • undefined TechButterfly referenced this topic 11 May 2022, 03:48
                          15 out of 17
                          • First post
                            15/17
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA