• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    HITL with voxl 2

    Ask your questions right here!
    4
    24
    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.
    • E
      Eric Katzfey ModalAI Team @Tamas Pal 0
      last edited by 24 Aug 2022, 16:09

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

      T 1 Reply Last reply 24 Aug 2022, 16:29 Reply Quote 0
      • T
        Tamas Pal 0 @Eric Katzfey
        last edited by 24 Aug 2022, 16:29

        @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?

        E 1 Reply Last reply 24 Aug 2022, 16:47 Reply Quote 0
        • E
          Eric Katzfey ModalAI Team @Tamas Pal 0
          last edited by 24 Aug 2022, 16:47

          @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?

          T 1 Reply Last reply 25 Aug 2022, 04:39 Reply Quote 0
          • T
            Tamas Pal 0 @Eric Katzfey
            last edited by 25 Aug 2022, 04:39

            @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 Reply Quote 0
            • T
              Tamas Pal 0
              last edited by 26 Aug 2022, 05:57

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

              E 1 Reply Last reply 26 Aug 2022, 16:11 Reply Quote 0
              • E
                Eric Katzfey ModalAI Team @Tamas Pal 0
                last edited by 26 Aug 2022, 16:11

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

                T 1 Reply Last reply 29 Aug 2022, 02:29 Reply Quote 0
                • T
                  Tamas Pal 0 @Eric Katzfey
                  last edited by 29 Aug 2022, 02:29

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

                  E 1 Reply Last reply 29 Aug 2022, 15:24 Reply Quote 0
                  • E
                    Eric Katzfey ModalAI Team @Tamas Pal 0
                    last edited by 29 Aug 2022, 15:24

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

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tamas Pal 0
                      last edited by 31 Aug 2022, 05:45

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

                      E 1 Reply Last reply 31 Aug 2022, 16:32 Reply Quote 0
                      • E
                        Eric Katzfey ModalAI Team @Tamas Pal 0
                        last edited by Eric Katzfey 31 Aug 2022, 16:33 31 Aug 2022, 16:32

                        @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 Reply Quote 0
                        • T
                          Tamas Pal 0
                          last edited by Tamas Pal 0 1 Sept 2022, 05:17 1 Sept 2022, 05:17

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

                          E 1 Reply Last reply 1 Sept 2022, 16:16 Reply Quote 0
                          • E
                            Eric Katzfey ModalAI Team @Tamas Pal 0
                            last edited by 1 Sept 2022, 16:16

                            @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.

                            T 1 Reply Last reply 2 Sept 2022, 05:30 Reply Quote 0
                            • T
                              Tamas Pal 0 @Eric Katzfey
                              last edited by 2 Sept 2022, 05:30

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

                              E 1 Reply Last reply 2 Sept 2022, 16:36 Reply Quote 0
                              • E
                                Eric Katzfey ModalAI Team @Tamas Pal 0
                                last edited by 2 Sept 2022, 16:36

                                @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 Reply Quote 0
                                • T
                                  Tamas Pal 0
                                  last edited by Tamas Pal 0 6 Sept 2022, 14:29 6 Sept 2022, 14:28

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

                                  E 1 Reply Last reply 6 Sept 2022, 15:24 Reply Quote 0
                                  • E
                                    Eric Katzfey ModalAI Team @Tamas Pal 0
                                    last edited by 6 Sept 2022, 15:24

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

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      Taylor Presley
                                      last edited by 8 Jan 2023, 18:38

                                      @Eric-Katzfey @Tamas-Pal-0 For future users troubleshooting HITL setup, I was having the same issue as above. This cable would not allow me to set the latency or share data with the VOXL 2 through J18 port, but this cable works as intended.

                                      T 1 Reply Last reply 9 Jan 2023, 05:56 Reply Quote 1
                                      • T
                                        Tamas Pal 0 @Taylor Presley
                                        last edited by Tamas Pal 0 9 Jan 2023, 06:02 9 Jan 2023, 05:56

                                        @Taylor-Presley Right. Some cables work some don't.

                                        1 Reply Last reply Reply Quote 1
                                        • First post
                                          Last post
                                        Powered by NodeBB | Contributors