USB device access problem

Kernels & Hardware, configuring network, installing services

USB device access problem

Postby Sergio_apf » 2017-09-28 18:30

Dears,

I am trying to get access to a USB device trough /dev/ttyusb* or /dev/usb, but I wasn't able to do that. I need to find and map this USB device to a physical path like /dev/tty* paths. The software I use to control this device search for usb and serial ports to get access through and facing some difficulties to solve this problem.

Below I Put some outputs to help understand the problem I got here:

$> lsusb
Bus 003 Device 003: ID 0403:e48e Future Technology Devices International, Ltd

$> dmesg -w
[13396.628024] usb 3-2: new full-speed USB device number 3 using uhci_hcd
[13396.836538] usb 3-2: New USB device found, idVendor=0403, idProduct=e48e
[13396.836544] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[13396.836547] usb 3-2: Product: Download Link 4
[13396.836550] usb 3-2: Manufacturer: Lotek Wireless Inc
[13396.836553] usb 3-2: SerialNumber: 00000003

$> ls -la /dev/usb
total 0
drwxr-xr-x 2 root root 60 Sep 28 12:00 .
drwxr-xr-x 20 root root 3420 Sep 28 15:39 ..
crw------- 1 root root 180, 0 Sep 28 12:00 hiddev0

Any help will be great!

Thanks,

Sergio
Sergio_apf
 
Posts: 2
Joined: 2017-09-28 18:04

Re: USB device access problem

Postby peter_irich » 2017-09-28 19:44

Try find udev rule for hiddev0 and set GROUP to 666, or place command
Code: Select all
/bin/chmod 666 /dev/hiddev0

in /etc/rc.local. If I right understood in what the problem is.

Peter.
peter_irich
 
Posts: 1189
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: USB device access problem

Postby Sergio_apf » 2017-09-28 22:29

Searching for a solution I plugged and unplugged the USB device whatching /var/messages:

Sep 28 20:06:47 workstation kernel: [11796.764093] usb 3-2: USB disconnect, device number 5
Sep 28 20:06:53 workstation kernel: [11802.428023] usb 3-1: new full-speed USB device number 6 using uhci_hcd
Sep 28 20:06:53 workstation kernel: [11802.636052] usb 3-1: New USB device found, idVendor=0403, idProduct=e48e
Sep 28 20:06:53 workstation kernel: [11802.636057] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 28 20:06:53 workstation kernel: [11802.636061] usb 3-1: Product: Download Link 4
Sep 28 20:06:53 workstation kernel: [11802.636064] usb 3-1: Manufacturer: Lotek Wireless Inc
Sep 28 20:06:53 workstation kernel: [11802.636067] usb 3-1: SerialNumber: 00000003
Sep 28 20:06:53 workstation mtp-probe: checking bus 3, device 6: "/sys/devices/pci0000:00/0000:00:1d.2/usb3/3-1"
Sep 28 20:06:53 workstation mtp-probe: bus: 3, device: 6 was not an MTP device

I believe It is more complicated for me because I don know how to map this device to a USB or COM port.
Sergio_apf
 
Posts: 2
Joined: 2017-09-28 18:04


Return to System configuration

Who is online

Users browsing this forum: debiantu and 11 guests

fashionable