Jetson TX1 usb to serial device connection probelm

Hello everyone,

I have bumped into some problems regarding USB connection, I’ve tried the following commands but I still can’t get a connection working:

$ lsusb

then I got

Bus 002 Device 003: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 002 Device 002: ID 0955:09ff NVidia Corp. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 028: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 030: ID 1a86:5523 QinHeng Electronics CH341 in serial mode, usb to serial port converter
Bus 001 Device 005: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I’m sure that the device I’m connecting to is: Bus 001 Device 030: ID 1a86:5523 QinHeng Electronics CH341 in serial mode, usb to serial port converter.
I have also tried the following:

$sudo modprobe usbserial vendor=0x1a86 produbt=0x5523
dmesg

Which apparently should return

usbserial_generic 1-1:1.0: generic converter detected
usb 1-1: generic converter now attached to ttyUSB0
usbcore: registered new interface driver usbserial_generic

based on the examples I’ve seen, showing connection to ttyUSB0, but in my case I got:

[ 4534.021812] usb 1-3.1: new full-speed USB device number 30 using xhci-tegra
[ 4534.047806] usb 1-3.1: New USB device found, idVendor=1a86, idProduct=5523
[ 4534.054825] usb 1-3.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

Does this mean that I have made a successful connection?

The hardware I’m using is: nvidia jetson tx1
Ubuntu version 16.04

I am able to connect to ttyUSB0 from my laptop to the device, can some one help me with this issues?
Thank you very much!

Hi hankkevin,
Do you mean you connect QinHeng Electronics CH341 to TX1 but TX1 cannot enumerate the device?

Hi DaneLLL,

Yes, I canʼt enumerate the devince.

I tried the following tutorial

then

$ dmesg

I got

[  139.041228] usb 1-3: USB disconnect, device number 3
[  142.540149] usb 1-3: new full-speed USB device number 4 using xhci-tegra
[  142.567553] usb 1-3: New USB device found, idVendor=1a86, idProduct=5523
[  142.574599] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  143.667121] ch341: version magic '4.4.38-tegra SMP preempt mod_unload aarch64' should be '4.4.38 SMP preempt mod_unload aarch64'

Then there is nobody discussing about this question. Please help me.

From the log, your device should be enumerated. We don’t have much experience in serial communication. Hope below search result can help you
https://devtalk.nvidia.com/search/more/sitecommentsearch/USB%20serial/

Did you set CONFIG_LOCALVERSION in your configuration (in the “.config” file)? This excerpt says this was skipped:

version magic '4.4.38<u><b>-tegra</b></u> SMP preempt mod_unload aarch64' should be '<u><b>4.4.38</b></u> SMP

When a kernel boots the “uname -r” command will be the base kernel version, plus the CONFIG_LOCALVERSION will be appended. The Jetson ships with “4.4.38-tegra”, and thus it is kernel “4.4.38”, and that kernel was compiled with CONFIG_LOCALVERSION of “-tegra”. It matters because kernels search for modules at “/lib/modules/$(uname -r)/”, and if this is off, then the kernel will either not find the module, or will think the module was compiled against a different kernel.

Here is a summary of kernel compile details:
https://devtalk.nvidia.com/default/topic/1038175/jetson-tx2/tx2i-wifi-support/post/5274619/#5274619