Closed samxchandlerpi closed 5 years ago
The serial
module cannot seem to be able to open your device.
You can try to set the baudrate
to the value of your device and see if you have a different message. Or you can directly print the serial.SerialException
to see what happens.
The
serial
module cannot seem to be able to open your device. You can try to set thebaudrate
to the value of your device and see if you have a different message. Or you can directly print theserial.SerialException
to see what happens.
I printed the serial.Serial Exception and received the following:
Error: Could not configure port: (25, 'Inappropriate ioctl for device')
I did a little more digging by testing the output of dmesg for the computer I have the xsens device working on and this new computer that's returning the serial error
Here's the output of dmesg for the Jetson Nano which is not working:
[11562.545478] usb 1-2.1: new full-speed USB device number 12 using tegra-xusb [11562.567294] usb 1-2.1: New USB device found, idVendor=2639, idProduct=0002 [11562.567302] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [11562.567307] usb 1-2.1: Product: MTi-20 VRU [11562.567312] usb 1-2.1: Manufacturer: Xsens [11562.567317] usb 1-2.1: SerialNumber: 026001B1
Here's the output of dmesg for the computer that is working:
[25131.692211] usb 1-2: new full-speed USB device number 15 using xhci_hcd [25131.841470] usb 1-2: New USB device found, idVendor=2639, idProduct=0002 [25131.841475] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [25131.841478] usb 1-2: Product: MTi-20 VRU [25131.841481] usb 1-2: Manufacturer: Xsens [25131.841484] usb 1-2: SerialNumber: 026001B1 [25131.842719] xsens_mt 1-2:1.1: xsens_mt converter detected [25131.843138] usb 1-2: xsens_mt converter now attached to ttyUSB0
So it seems that the Jetson Nano is not able to attach the xsens device to the ttyUSB* port. My guess is that this is probably due to a missing software driver for the xsens USB-Serial cable.
I tried to install this driver from here https://github.com/xsens/xsens_mt, following these instructions https://base.xsens.com/hc/en-us/articles/202302142-Restoring-communication-with-your-MTi but I had no luck.
I know the xsens software suite doesn't officially support arm64 devices, but I thought I could still get this working with your software since it doesn't depend on MT SDK. Looks like that may not be the case.
Okay, I finally got this working. I wasn't installing https://github.com/xsens/xsens_mt drivers correctly.
Here's what I did:
I doubt this is the easiest way to do it, but this is what worked from me. Some steps may also be redundant.
FYI this is working on the Jetson Nano which is an ARM64 architecture. I don't think the official xsens software works because it requires the SDK which doesn't run on ARM. Thank you for developing this!
You're welcome, thanks for sharing your solution.
I'm trying to get this driver working on a Jetson Nano (does this driver work on ARM architectures?) with ROS melodic, but I can't seem to open the device. I've tried to play with the permissions and udev rules, but nothing seems to work.
Error:
Permissions:
udev rules: