Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. HITL with voxl 2

HITL with voxl 2

Scheduled Pinned Locked Moved Ask your questions right here!
24 Posts 4 Posters 5.9k Views 1 Watching
  • 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.
  • Zachary LowellZ Offline
    Zachary LowellZ Offline
    Zachary Lowell
    ModalAI Team
    wrote on last edited by
    #3

    Hi @Tamas-Pal-0 - looks like you are correct in that the voxl-px4-hitl has not been pulled into voxl-master. I would recommend for now switching over to the voxl-dev branch and running with the steps through there. Once it has been pulled into voxl-master, then you can recompile, reflash, and run through it on that branch. Other options as well is you can copy the file voxl-px4-hitl from the voxl-dev branch into your current working voxl-master, recompile, and reflash the voxl2 with the newer firmware containing the correct executable.

    1 Reply Last reply
    1
    • Tamas Pal 0T Offline
      Tamas Pal 0T Offline
      Tamas Pal 0
      wrote on last edited by
      #4

      Unable to run this command
      echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
      In the terminal it is showing permission denied after running the command
      tamas@tamas:~$ echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
      tee: /sys/bus/usb-serial/devices/ttyUSB0/latency_timer: Permission denied
      1

      How to fix the problem?

      1 Reply Last reply
      0
      • Zachary LowellZ Offline
        Zachary LowellZ Offline
        Zachary Lowell
        ModalAI Team
        wrote on last edited by
        #5

        @Tamas-Pal-0 said in HITL with voxl 2:

        0

        This seems like a permissions issue on your end and that your user doesnt have super user permissions.

        Tamas Pal 0T 1 Reply Last reply
        0
        • Zachary LowellZ Zachary Lowell

          @Tamas-Pal-0 said in HITL with voxl 2:

          0

          This seems like a permissions issue on your end and that your user doesnt have super user permissions.

          Tamas Pal 0T Offline
          Tamas Pal 0T Offline
          Tamas Pal 0
          wrote on last edited by Tamas Pal 0
          #6

          @Zachary-Lowell

          tamas@tamas:~$ echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
          tee: /sys/bus/usb-serial/devices/ttyUSB0/latency_timer: Permission denied
          1
          tamas@tamas:~$ ls /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
          ls: cannot access '/sys/bus/usb-serial/devices/ttyUSB0/latency_timer': No such file or directory
          

          How to fix it ?

          Eric KatzfeyE 1 Reply Last reply
          0
          • Tamas Pal 0T Tamas Pal 0

            @Zachary-Lowell

            tamas@tamas:~$ echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
            tee: /sys/bus/usb-serial/devices/ttyUSB0/latency_timer: Permission denied
            1
            tamas@tamas:~$ ls /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
            ls: cannot access '/sys/bus/usb-serial/devices/ttyUSB0/latency_timer': No such file or directory
            

            How to fix it ?

            Eric KatzfeyE Offline
            Eric KatzfeyE Offline
            Eric Katzfey
            ModalAI Team
            wrote on last edited by
            #7

            @Tamas-Pal-0 What do you get with ls /dev/ttyUSB*?

            Tamas Pal 0T 1 Reply Last reply
            0
            • Eric KatzfeyE Eric Katzfey

              @Tamas-Pal-0 What do you get with ls /dev/ttyUSB*?

              Tamas Pal 0T Offline
              Tamas Pal 0T Offline
              Tamas Pal 0
              wrote on last edited by
              #8

              @Eric-Katzfey
              I got this

              tamas@tamas:~$ ls /dev/ttyUSB*
              /dev/ttyUSB0
              

              I am unable to modify anything inside /sys/bus/usb-serial/devices/ttyUSB0 with root user also. How to fix it?

              Eric KatzfeyE 1 Reply Last reply
              0
              • Tamas Pal 0T Tamas Pal 0

                @Eric-Katzfey
                I got this

                tamas@tamas:~$ ls /dev/ttyUSB*
                /dev/ttyUSB0
                

                I am unable to modify anything inside /sys/bus/usb-serial/devices/ttyUSB0 with root user also. How to fix it?

                Eric KatzfeyE Offline
                Eric KatzfeyE Offline
                Eric Katzfey
                ModalAI Team
                wrote on last edited by
                #9

                @Tamas-Pal-0 I'm not sure. This works in our development environment so something must be different in your environment. What version of Linux are you using? What cable are you using?

                Tamas Pal 0T 1 Reply Last reply
                0
                • Eric KatzfeyE Eric Katzfey

                  @Tamas-Pal-0 I'm not sure. This works in our development environment so something must be different in your environment. What version of Linux are you using? What cable are you using?

                  Tamas Pal 0T Offline
                  Tamas Pal 0T Offline
                  Tamas Pal 0
                  wrote on last edited by
                  #10

                  @Eric-Katzfey
                  The issue is fixed. It was a hardware issue. I changed the ftdi cable and the issue was solved. The previous FTDI cable was not allowing me to change anything in /sys/bus/usb-serial/devices/ttyUSB0 directory. The file latency_timer was also not there. However with the other cable, there is no such issue. Thank you for your valuable input.

                  1 Reply Last reply
                  0
                  • Tamas Pal 0T Offline
                    Tamas Pal 0T Offline
                    Tamas Pal 0
                    wrote on last edited by
                    #11

                    For 3.3v J18 jst port which port of ftdi cable should be used, CTS# or RTS# ?

                    Eric KatzfeyE 1 Reply Last reply
                    0
                    • Tamas Pal 0T Tamas Pal 0

                      For 3.3v J18 jst port which port of ftdi cable should be used, CTS# or RTS# ?

                      Eric KatzfeyE Offline
                      Eric KatzfeyE Offline
                      Eric Katzfey
                      ModalAI Team
                      wrote on last edited by
                      #12

                      @Tamas-Pal-0 For UART it is just GND, TX, and RX

                      Tamas Pal 0T 1 Reply Last reply
                      0
                      • Eric KatzfeyE Eric Katzfey

                        @Tamas-Pal-0 For UART it is just GND, TX, and RX

                        Tamas Pal 0T Offline
                        Tamas Pal 0T Offline
                        Tamas Pal 0
                        wrote on last edited by
                        #13

                        @Eric-Katzfey you mean we only have to connect 3 pins in j18 port ?

                        Eric KatzfeyE 1 Reply Last reply
                        0
                        • Tamas Pal 0T Tamas Pal 0

                          @Eric-Katzfey you mean we only have to connect 3 pins in j18 port ?

                          Eric KatzfeyE Offline
                          Eric KatzfeyE Offline
                          Eric Katzfey
                          ModalAI Team
                          wrote on last edited by
                          #14

                          @Tamas-Pal-0 Yes, the fourth pin is power and we don't want that one.

                          1 Reply Last reply
                          0
                          • Tamas Pal 0T Offline
                            Tamas Pal 0T Offline
                            Tamas Pal 0
                            wrote on last edited by
                            #15

                            Is there any way to verify that FTDI cable is connected properly with J18 port ?

                            Eric KatzfeyE 1 Reply Last reply
                            0
                            • Tamas Pal 0T Tamas Pal 0

                              Is there any way to verify that FTDI cable is connected properly with J18 port ?

                              Eric KatzfeyE Offline
                              Eric KatzfeyE Offline
                              Eric Katzfey
                              ModalAI Team
                              wrote on last edited by Eric Katzfey
                              #16

                              @Tamas-Pal-0 The easiest way would be to recompile the modalai_dsp PX4 driver to add more debug messages. But if you aren't comfortable with that then we'll need to come up with something else.

                              1 Reply Last reply
                              0
                              • Tamas Pal 0T Offline
                                Tamas Pal 0T Offline
                                Tamas Pal 0
                                wrote on last edited by Tamas Pal 0
                                #17

                                How to do that? Is there any other way to this ?

                                Eric KatzfeyE 1 Reply Last reply
                                0
                                • Tamas Pal 0T Tamas Pal 0

                                  How to do that? Is there any other way to this ?

                                  Eric KatzfeyE Offline
                                  Eric KatzfeyE Offline
                                  Eric Katzfey
                                  ModalAI Team
                                  wrote on last edited by
                                  #18

                                  @Tamas-Pal-0 The simulator will be sending heartbeat messages out over the serial cable. You can use the screen program to see if anything is coming from voxl 2 in the serial cable.

                                  Tamas Pal 0T 1 Reply Last reply
                                  0
                                  • Eric KatzfeyE Eric Katzfey

                                    @Tamas-Pal-0 The simulator will be sending heartbeat messages out over the serial cable. You can use the screen program to see if anything is coming from voxl 2 in the serial cable.

                                    Tamas Pal 0T Offline
                                    Tamas Pal 0T Offline
                                    Tamas Pal 0
                                    wrote on last edited by
                                    #19

                                    @Eric-Katzfey How to use screen program in this case ?

                                    Eric KatzfeyE 1 Reply Last reply
                                    0
                                    • Tamas Pal 0T Tamas Pal 0

                                      @Eric-Katzfey How to use screen program in this case ?

                                      Eric KatzfeyE Offline
                                      Eric KatzfeyE Offline
                                      Eric Katzfey
                                      ModalAI Team
                                      wrote on last edited by
                                      #20

                                      @Tamas-Pal-0 screen is just a standard Linux program. There are many ways to check the output of the serial port. To start, you could always just do cat /dev/ttyUSB0 and see if anything is coming out. This post shows how to get a hex dump: https://superuser.com/questions/1402386/view-serial-device-output-in-console-in-hex

                                      1 Reply Last reply
                                      0
                                      • Tamas Pal 0T Offline
                                        Tamas Pal 0T Offline
                                        Tamas Pal 0
                                        wrote on last edited by Tamas Pal 0
                                        #21

                                        The problem is solved. The problem was with ftdi cable. Thank you for your valuable inputs

                                        Eric KatzfeyE 1 Reply Last reply
                                        0
                                        • Tamas Pal 0T Tamas Pal 0

                                          The problem is solved. The problem was with ftdi cable. Thank you for your valuable inputs

                                          Eric KatzfeyE Offline
                                          Eric KatzfeyE Offline
                                          Eric Katzfey
                                          ModalAI Team
                                          wrote on last edited by
                                          #22

                                          @Tamas-Pal-0 Excellent! How were you able to determine that it was the cable?

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Powered by NodeBB | Contributors
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups