Page 1 of 1

ttyUSB* is not created when my USB modem is attached.

Posted: 06 Jan 2012, 17:14
by takayuki
I'm using D11LC USB modem on Fedora 16 with usb_modeswitch-1.2.0-1.fc16.x86_64 package and 3.1.1-1.fc16.x86_64 kernel,
and when I plug the device in, but /dev/ttyUSB* was not created correctly.
As I tried usb_modeswitch-1.1.7-1.fc15.x86_64.rpm package, /dev/ttyUSB* is created succesfully and works fine.
How can we fix this problem?

I retrieved some error logs,

Code: Select all

cat /var/log/usb_modeswitch_ttyUSB0
USB_ModeSwitch log from Fri Jan 06 23:22:50 JST 2012

* called with --symlink-name: params /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/ttyUSB0/tty/ttyUSB0 *

My name is ttyUSB0
Could not find interface number in path
 /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/ttyUSB0/tty/ttyUSB0. Aborting

Code: Select all

cat /var/log/usb_modeswitch_ttyUSB1
USB_ModeSwitch log from Fri Jan 06 23:22:50 JST 2012

* called with --symlink-name: params /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.1/ttyUSB1/tty/ttyUSB1 *

My name is ttyUSB1
Could not find interface number in path
 /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.1/ttyUSB1/tty/ttyUSB1. Aborting

Code: Select all

cat /var/log/usb_modeswitch_ttyUSB2

USB_ModeSwitch log from Fri Jan 06 23:22:50 JST 2012

* called with --symlink-name: params /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.2/ttyUSB2/tty/ttyUSB2 *

My name is ttyUSB2
Could not find interface number in path
 /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.2/ttyUSB2/tty/ttyUSB2. Aborting
I also look into /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/ttyUSB0/tty/ttyUSB0,
but i didn't understand what is wrong.

Code: Select all

ll
-r--r--r-- 1 root root 4.0K  1月  7 00:09 dev
lrwxrwxrwx 1 root root    0  1月  7 00:09 device -> ../../../ttyUSB0
drwxr-xr-x 2 root root    0  1月  7 00:09 power
lrwxrwxrwx 1 root root    0  1月  7 00:09 subsystem -> ../../../../../../../../../../class/tty
-rw-r--r-- 1 root root 4.0K  1月  7 00:09 uevent
Please tell me if you need more infomation to solve this problem.

Regards.

Posted: 13 Jan 2012, 20:08
by rjenkins
Based on the error logs, it looks like your connecting your modem through a USB hub. If I remember correctly, previous to 1.2.1 usb_modeswitch didn't always play nicely with modems attached to hubs.

If you are using a hub, try plugging the modem directly into your computer. If you can't, you can try upgrading to usb_modeswitch 1.2.1 which has better support for this layout.

Solved the problem.

Posted: 13 Jan 2012, 21:22
by takayuki
I tried the latest usb_modeswitch, ver 1.2.1 and the problem seems to be fixed.
Thank you.