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

Duet 3 6hc and raspberry pi 3 B+ DCS not started

Scheduled Pinned Locked Moved Solved
Duet Web Control
4
47
2.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.
  • undefined
    chrishamm administrators
    last edited by 22 May 2020, 08:53

    The no header error message indicates that the transfer ready pin works OK but the SPI data transfer did not. If you are not using DuetPi, please make sure that the SPI buffer size is 8KiB:

    pi@duet3:/home/pi# sudo cat /sys/module/spidev/parameters/bufsiz
    8192

    If it is still set to 4KiB (4096), create a file in /etc/modprobe.d as explained here.

    Duet software engineer

    1 Reply Last reply Reply Quote 0
    • undefined
      Macgyver1307
      last edited by 22 May 2020, 14:03

      @chrishamm said in Duet 3 6hc and raspberry pi 3 B+ DCS not started:

      sudo cat /sys/module/spidev/parameters/bufsiz 8192

      i checked and it is set to 8192
      ![0_1590156191075_f7572f46-d5a7-4ae0-b56c-bc339ca49cc2-image.png](Uploading 100%)

      1 Reply Last reply Reply Quote 0
      • undefined
        Macgyver1307
        last edited by 22 May 2020, 14:05

        591eb181-bf09-4273-b2c8-fa518d9e9476-image.png

        ? 1 Reply Last reply 22 May 2020, 14:15 Reply Quote 0
        • undefined
          chrishamm administrators
          last edited by 22 May 2020, 14:10

          I suggest you follow this post and check what happens: https://forum.duet3d.com/topic/15551/duet3-pi-flashing-diag-led-after-wiring-24v-dcs-is-unavailable/119?_=1590153541635

          Duet software engineer

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User @Macgyver1307
            last edited by 22 May 2020, 14:15

            @Macgyver1307 you can probably copy/paste the text from the terminal and save some bandwidth.

            Presumably you're using the DuetPi image?

            Lacking another Pi to test, as you already have the du-pont style wires ready you could try to use the SPI1 bus and edit /opt/dsf/conf/config.json. The SPI loopback testing doesn't test the clock signal from the Pi so its possible it could be bust I guess, but its hard to definitively point at one or the other without tools or replacements.

            ref pinout.xyz's nice pinout:
            alt text

            (Or wait for the Pi4 come Tuesday)

            1 Reply Last reply Reply Quote 0
            • undefined
              Macgyver1307
              last edited by 22 May 2020, 14:16

              yes sir! I started with that and did all of the testings from that post before I started this one. I can try the pin process again?

              ? 1 Reply Last reply 22 May 2020, 14:21 Reply Quote 0
              • ?
                A Former User @Macgyver1307
                last edited by A Former User 22 May 2020, 14:21

                @Macgyver1307 said in Duet 3 6hc and raspberry pi 3 B+ DCS not started:

                I can try the pin process again?

                If you do, copy paste the output so we can catch anything amiss along the way. If using putty just use the mouse to drag and select text, which will automatically be copied to the clipboard ready to paste in the forum. Then highlight the text (in the forum post editor) and use the Code formatting button (5th button from the left after bold, italics etc).

                1 Reply Last reply Reply Quote 0
                • undefined
                  Macgyver1307
                  last edited by 22 May 2020, 14:23

                  ok sounds good ill start the process again and display the outputs. thanks for the help!

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Macgyver1307
                    last edited by 22 May 2020, 15:05

                    pi@duet3:~/spidev-test $ RDY=22 CS=24 ; {
                    gpio -1 mode $CS out
                    > gpio -1 mode $CS out
                    > gpio -1 mode $RDY in
                    > gpio -1 write $CS 1 && echo "(Pin RDY/$RDY) `gpio -1 read $RDY` should equal `gpio -1 read $CS` (Pin CS/$CS)"
                    > gpio -1 write $CS 0 && echo "(Pin RDY/$RDY) `gpio -1 read $RDY` should equal `gpio -1 read $CS` (Pin CS/$CS)"
                    > { ~/spidev-test/spidev_test -v -s 8000000 -D /dev/spidev0.0 && echo RX should equal TX. ;} | tail -n3 | cut -b-100 ;}
                    (Pin RDY/22) 1 should equal 1 (Pin CS/24)
                    (Pin RDY/22) 0 should equal 0 (Pin CS/24)
                    TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D
                    RX | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                    RX should equal TX.
                    * list item
                    ? 1 Reply Last reply 23 May 2020, 03:33 Reply Quote 0
                    • undefined
                      Macgyver1307
                      last edited by 22 May 2020, 15:16

                      well I tried 22 to 28 ad 24 to 28 with the same output. I would post it but the form says its spam.

                      undefined 1 Reply Last reply 22 May 2020, 22:34 Reply Quote 1
                      • undefined
                        Phaedrux Moderator @Macgyver1307
                        last edited by 22 May 2020, 22:34

                        @Macgyver1307 said in Duet 3 6hc and raspberry pi 3 B+ DCS not started:

                        I would post it but the form says its spam.

                        3 posts in a row to the same thread in a short amount of time probably flagged you. Please try again.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          Macgyver1307
                          last edited by 23 May 2020, 02:04

                          I'm going to wait till Tuesday and loaded up a fresh pi -4 and see if I still have issues. thanks, Phaedrux!

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @Macgyver1307
                            last edited by 23 May 2020, 03:33

                            The first bit looks to confirm your Chip Select, and Ready pins are working but the next bit would suggest a problem with the jumper between MISO and MOSI or a problem with the Pi. Did you place a jumper over (physical) pins 19 & 21 as well as 22-24?

                            TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D
                            RX | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

                            This is also in line with the error from DSF.

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              Macgyver1307
                              last edited by 23 May 2020, 14:09

                              here is the output .
                              db5e9633-53a1-42d1-ac95-99e3b5f9ed32-image.png

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                Macgyver1307
                                last edited by 23 May 2020, 14:11

                                sorry I had to snip it because it gets flagged as spam if I put it in as code. jumpers installed on 19-21 and 22-24 . pi is on my desk with nothing attached.

                                ? 1 Reply Last reply 23 May 2020, 15:59 Reply Quote 0
                                • ?
                                  A Former User @Macgyver1307
                                  last edited by A Former User 23 May 2020, 15:59

                                  @Macgyver1307 said in Duet 3 6hc and raspberry pi 3 B+ DCS not started:

                                  jumpers installed on 19-21 and 22-24 . pi is on my desk with nothing attached.

                                  you only need to run it once with RDY=22 CS=24; the test for 19 and 21 is defined by the -D /dev/spidev0.0 parameter to the spidev_test command.

                                  So it would look like the SPI bus isn't working on the Pi. You can try to move the jumper (will require a wire) to 35 and 38 (and repeat test with -D /dev/spidev0.1 to see if the other SPI bus is working, which you could then use.

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User
                                    last edited by 23 May 2020, 19:06

                                    Just to be 110% sure; you placed the jumper like shown on the picture right, both at the same time?

                                    @bearer said in Duet3/pi flashing Diag LED after wiring 24V DCS is unavailable:

                                    9ff41e90-9272-4588-bceb-75e5acf19c86-image.png

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      Macgyver1307
                                      last edited by 24 May 2020, 04:15

                                      3b8e1147-2f7f-426c-9b3c-6fe05fd0c022-image.png

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        Macgyver1307
                                        last edited by 24 May 2020, 04:24

                                        @bearer said in Duet 3 6hc and raspberry pi 3 B+ DCS not started:

                                        -D /dev/spidev0.1

                                        pi@duet3:~/spidev-test $ RDY=35 CS=38 ; { gpio -1 mode $CS out; gpio -1 mode $RDY in; gpio -1 write $CS 1 && echo "(Pin RDY/$RDY) `gpio -1 read $RDY` should equal `gpio -1 read $CS` (Pin CS/$CS)"; gpio -1 write $CS 0 && echo "(Pin RDY/$RDY) `gpio -1 read $RDY` should equal `gpio -1 read $CS` (Pin CS/$CS)"; { ~/spidev-test/spidev_test -v -s 8000000 -D /dev/spidev0.1 && echo RX should equal TX. ;} | tail -n3 | cut -b-100 ;}
                                        (Pin RDY/35) 0 should equal 1 (Pin CS/38)
                                        (Pin RDY/35) 0 should equal 0 (Pin CS/38)
                                        TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D
                                        RX | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                        RX should equal TX.
                                        pi@duet3:~/spidev-test $
                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          Macgyver1307
                                          last edited by 24 May 2020, 04:26

                                          e6a632e9-4fae-4c11-bd11-02a167ab24d4-image.png

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