I am using jetpack6.0 in AGX Orin 64GB developer version. When I plug in the xbox joystick, the Orin cannot detect it. Also when I use the GPIO pin of the Orin to connect an IMU with UART port, the Orin also cannot detect it. I have checked dmesg log, it doesn’t show any new connection for both the joystick and the IMU. Things worked on jetpack5.1.1 .Please take a look.
yes, jetpack6.1 installed by SDK manager also doesn’t work. The joystock is connected by usb port, lsusb can see the device, but I cannot see /dev/js0, so I cannot launch it by ros2 joystick driver. The aUasrt ports I am using are UART1_TX and Uart1_RX, I use pin1 and pin6 as power and ground.
Is there any error in dmesg when you load the custom joystick driver?
Could you share the block diagram of your connection?
Sorry that I’m not clear about if your device is controlled by USB or UART or both?
It seems IMU is connected through UART and Joystick is connected through USB.
Is my understanding correct?
Don’t worry about the IMU, we don’t use it anymore. We care more about the USB port, which directly connects to the joystick. To run the ros2 joystick driver, I need to see /dev/joy0 but I cannot see it after I connect the xbox joystick. The light of the xbox is on, so I am not sure why this issue happens
If the node is not appear, it may be caused from the driver probe failed.
Is there any error when your plug the joystick or probing the driver?
Please share the full dmesg for further check.
[ 607.234233] tegra-xusb 3610000.usb: Firmware timestamp: 2023-02-10 03:48:10 UTC
[ 607.576781] usb 1-4.2: new full-speed USB device number 3 using tegra-xusb
Is it the time when you connect USB joystick?
What’s the driver for your joystick?
Please also share the result of lsusb before and after you plug USB joystick.
jiahe@ubuntu:~$ lsusb
Bus 002 Device 002: ID 0bda:0420 Realtek Semiconductor Corp. 4-Port USB 3.0 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0bda:5420 Realtek Semiconductor Corp. 4-Port USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
after:
jiahe@ubuntu:~$ lsusb
Bus 002 Device 002: ID 0bda:0420 Realtek Semiconductor Corp. 4-Port USB 3.0 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 2f24:00b7 ESM GAME FOR WINDOWS 1.05
Bus 001 Device 002: ID 0bda:5420 Realtek Semiconductor Corp. 4-Port USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
time:jiahe@ubuntu:~$ date Tue Dec 10 10:20:19 AM EST 2024
Do you reboot the board to check if it could help?
Have you run $ sudo lsmond|grep js to check the the module is loaded?
Since it is custom device and driver, we don’t have the module and related joystick to verify it locally.
We would still suggest you asking the help from your vendor. They may know how to setup for this device.