LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-18-2014, 02:01 PM   #1
tomjas
LQ Newbie
 
Registered: Jul 2013
Posts: 5

Rep: Reputation: Disabled
Huawei Hilink e3131 - no /dev/ttyUSB*


Hi guys.
I got Huawei HiLink e3131. Slackware 14.1 x86_64 recognizes it and switches into modem mode as you can see from dmesg:
Code:
...
[  532.663850] usb 1-9: new high-speed USB device number 5 using xhci_hcd
[  532.675616] usb 1-9: New USB device found, idVendor=12d1, idProduct=1f01
[  532.675618] usb 1-9: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[  532.675619] usb 1-9: Product: HUAWEI HiLink
[  532.675620] usb 1-9: Manufacturer: HUAWEI
[  532.721330] usb-storage 1-9:1.0: USB Mass Storage device detected
[  532.721352] scsi8 : usb-storage 1-9:1.0
[  532.721393] usbcore: registered new interface driver usb-storage
[  533.456290] usb 1-9: USB disconnect, device number 5
[  538.971017] usb 1-9: new high-speed USB device number 6 using xhci_hcd
[  538.982877] usb 1-9: New USB device found, idVendor=12d1, idProduct=14db
[  538.982879] usb 1-9: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[  538.982881] usb 1-9: Product: HUAWEI HiLink
[  538.982882] usb 1-9: Manufacturer: HUAWEI
[  538.984677] cdc_ether 1-9:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-9, CDC Ethernet Device, 58:2c:80:13:92:63 
...
lsusb also shows modem:
Code:
...
Bus 002 Device 003: ID 12d1:14db Huawei Technologies Co., Ltd.
...
however there are no /dev/ttyUSB* files, so I cannot use it. What is more interesting cat /proc/tty/drivers shows:
Code:
...
usbserial            /dev/ttyUSB   188 0-253 serial 
...
Problem is the same on second computer with Slackware 14.0 x86 as well as Debian Jessie. Of course modem is ok - works fine under Windows 7. I've found some hints like
Code:
modprobe option
echo "12d1 14db" >/sys/bus/usb-serial/drivers/option1/new_id
but it's no use.
Any solutions?

Last edited by tomjas; 01-18-2014 at 02:10 PM.
 
Old 01-18-2014, 03:00 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by tomjas View Post
Hi guys.
I got Huawei HiLink e3131. Slackware 14.1 x86_64 recognizes it and switches into modem mode as you can see from dmesg:
Code:
[  532.721330] usb-storage 1-9:1.0: USB Mass Storage device detected
No, it shows it as a CDROM/USB block storage device, and it clearly says so.
Quote:
lsusb also shows modem:
Code:
Bus 002 Device 003: ID 12d1:14db Huawei Technologies Co., Ltd.
No, that just says you have a device by that manufacturer....where does it tell you that it's a modem??
Quote:
however there are no /dev/ttyUSB* files, so I cannot use it. What is more interesting cat /proc/tty/drivers shows:
Code:
usbserial            /dev/ttyUSB   188 0-253 serial
Problem is the same on second computer with Slackware 14.0 x86 as well as Debian Jessie. Of course modem is ok - works fine under Windows 7. I've found some hints like
Code:
modprobe option
echo "12d1 14db" >/sys/bus/usb-serial/drivers/option1/new_id
but it's no use.
Any solutions?
Yes; run usb_modeswitch to actually make the device work as a modem, and the device will come up. Nothing you've shown says the device is a modem, just that it's recognized as a USB storage device. usb_modeswitch will 'flip' the device into modem mode.
 
Old 01-18-2014, 06:32 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Actually, the dmesg output shows that the device has been recognised and switched to CDC ethernet mode.
Quote:
[ 538.982877] usb 1-9: New USB device found, idVendor=12d1, idProduct=14db
...
[ 538.984677] cdc_ether 1-9:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-9, CDC Ethernet Device, 58:2c:80:13:92:63
In this mode, the device should show as an additional interface in the output of 'ifconfig -a'.

No /dev/ttyUSB* files show in this mode, although it may be possible to get the device to switch to a serial port mode. http://www.draisberghof.de/usb_modes...php?f=4&t=1295
 
Old 01-19-2014, 11:02 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by allend View Post
Actually, the dmesg output shows that the device has been recognised and switched to CDC ethernet mode. In this mode, the device should show as an additional interface in the output of 'ifconfig -a'.

No /dev/ttyUSB* files show in this mode, although it may be possible to get the device to switch to a serial port mode. http://www.draisberghof.de/usb_modes...php?f=4&t=1295
Right...it doesn't show up BECAUSE YOU HAVE NOT SWITCHED IT INTO THE RIGHT MODE. The device is identified, but hasn't been attached to anything. Again, run usb_modeswitch. Can't get more plain than that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] USB-GSM: no /dev/ttyUSB can be seen. Why? floppy_stuttgart Linux - Networking 5 09-13-2013 04:39 AM
No /dev/ttyUSB<*> in CentOS 5.4 baig Linux - Newbie 1 03-05-2010 03:02 PM
/dev/ttyUSB* is getting locked shariefbe Linux - Software 1 02-09-2010 10:55 PM
CentOS: No /dev/ttyUSB chris24300 Fedora 4 08-05-2009 12:29 PM
no /dev/ttyUSB* with FC3 please help derddera Fedora 3 12-30-2004 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration