2
votes

I have to use trendnet tu-s9 usb to serial converter to transmit some commands via RS232. But unfortunately I couldn't see USB-Serial converter as ttyUSB under "/dev/" path. I don't understand the issue as USB detecting under usb list please see the below "lsusb" output

*:~$ lsusb

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 003: ID 0835:1601 Action Star Enterprise Co., Ltd

Bus 002 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port*

When I locate USBSerial I could see USBSerial drivers installed.

*:~$ locate usbserial

/boot/grub/usbserial_common.mod

/boot/grub/usbserial_ftdi.mod

/boot/grub/usbserial_pl2303.mod

/lib/modules/3.2.0-4-686-pae/kernel/drivers/usb/serial/usbserial.ko

/lib/modules/3.2.0-4-rt-686-pae/kernel/drivers/usb/serial/usbserial.ko

/usr/lib/grub/i386-pc/usbserial_common.mod

/usr/lib/grub/i386-pc/usbserial_ftdi.mod

/usr/lib/grub/i386-pc/usbserial_pl2303.mod*

Though I have drivers and USB listed in usb list, I am not getting device path under /dev/ as ttyUSB. Is there any way to get it ?

Please help me in this issue.

Linux details which I am using:

*:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Debian

Description: Debian GNU/Linux 7.8 (wheezy)

Release: 7.8

Codename: wheezy*

Many Thanks in Advance.

1

1 Answers

0
votes

If you see your device in lsusb, please make note of the vendor id and product id

eg:- productID a000

lsusb |grep a000

Then in your udev rules add this line. These are from RHEL version.

KERNEL=="ttyUSB*", SYSFS{idVendor}=="019c", SYSFS{idProduct}=="a000", MODE=="0660", SYMLINK+="your-device-name"

Now unplug and plug back your USB device or trigger a udev activity. You should see a device handle /dev/your-device-name

Also check

/dev/input/by-id
/dev/input/by-path

dmesg is also a good tool to start debugging USB connect issues