Problems with 3GUSB modem

Issues related to hardware problems
User avatar
astray
Posts: 11
Joined: 2014/07/01 13:17:51

Problems with 3GUSB modem

Post by astray » 2014/07/01 13:38:04

Hi All!
I have problems using HUAWEI E3131
CentOS 6.5 2.6.32-431.20.3.el6.i686
When I am connect it, /dev/ttyUSB* does not appears.
dmesg

Code: Select all

usbcore: registered new interface driver huawei_ether
usb 2-6: USB disconnect, device number 3
usb 2-6: new high speed USB device number 4 using ehci_hcd
usb 2-6: New USB device found, idVendor=12d1, idProduct=1506
usb 2-6: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 2-6: Product: HUAWEI Mobile
usb 2-6: Manufacturer: HUAWEI
usb 2-6: configuration #1 chosen from 1 choice
lsusb

Code: Select all

Bus 002 Device 004: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Modem already switched by AT^SETPORT="FF;1,3,2"
I have read http://www.devtech.cz/knowledge-base/de ... -in-linux/ and usb_modemswitch does not helps.

Code: Select all

[root@localhost usb_modeswitch.d]# /usr/sbin/usb_modeswitch -H -v 12d1 -p 1506 -c /etc/usb_modeswitch.d/12d1\:1506

Looking for target devices ...
   found matching product ID
   adding device
 Found devices in target mode or class (1)
Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 004 on bus 002 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.
In windows all works fine. Please help!

User avatar
astray
Posts: 11
Joined: 2014/07/01 13:17:51

Re: Problems with 3GUSB modem

Post by astray » 2014/07/02 06:56:07

I am do not understand, why in CentOS 6.4 device with ID 12d1:1506 received ttyUSB , in my case in CentOS 6.5 device with same ID does not receive ttyUSB!
I try my modem in ubuntu 12.04, and it works! What is the problem?

User avatar
TrevorH
Forum Moderator
Posts: 26977
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Problems with 3GUSB modem

Post by TrevorH » 2014/07/02 07:21:35

Try

Code: Select all

/lib/udev/modem-modeswitch -v 12d1 -p 1506  -t option-zerocd -d
Also try the same with -t mobile-action-8280p
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
astray
Posts: 11
Joined: 2014/07/01 13:17:51

Re: Problems with 3GUSB modem

Post by astray » 2014/07/02 08:05:06

I have some changes.
In this manual http://www.cmtsinfo.net/index.php?howto=3g have some good tips.

When I put

Code: Select all

/sbin/modprobe option
echo '12d1 1506' > /sys/bus/usb-serial/drivers/option1/new_id
then

Code: Select all

option 2-6:1.0: GSM modem (1-port) converter detected
usb 2-6: GSM modem (1-port) converter now attached to ttyUSB0
option 2-6:1.1: GSM modem (1-port) converter detected
usb 2-6: GSM modem (1-port) converter now attached to ttyUSB1
option 2-6:1.2: GSM modem (1-port) converter detected
usb 2-6: GSM modem (1-port) converter now attached to ttyUSB2
but

Code: Select all

crw-rw---- 1 root dialout 188, 4 Jul  1 11:54 /dev/ttyUSB_utps_diag
crw-rw---- 1 root dialout 188, 3 Jul  1 11:54 /dev/ttyUSB_utps_modem
crw-rw---- 1 root dialout 188, 5 Jul  1 11:54 /dev/ttyUSB_utps_pcui
So some questions appears
1. Why it do not work auto by default
2. What is the names added to ttyUSB_blablaba and how to fix they into ttyUSBx because next modem will receive that names, other ttyUSB gone out. So next other USBmodem will snatch ttyUSB from prevous.
Last edited by astray on 2014/07/02 10:57:23, edited 1 time in total.

User avatar
astray
Posts: 11
Joined: 2014/07/01 13:17:51

Re: Problems with 3GUSB modem

Post by astray » 2014/07/02 10:53:22

TrevorH wrote:Try

Code: Select all

/lib/udev/modem-modeswitch -v 12d1 -p 1506  -t option-zerocd -d
Also try the same with -t mobile-action-8280p
Ooutput is

Code: Select all

[root@localhost udev]# /lib/udev/modem-modeswitch -v 0x12d1 -p 0x1506  -t option-zerocd -d
D: Found mass storage device:
D:   Endpoints: 3
D:   Class:     0xFF
D:   SubClass:  0x2
D:   Protocol:  0x1
E: no device found.
ttyUSB not appears...

User avatar
astray
Posts: 11
Joined: 2014/07/01 13:17:51

Re: Problems with 3GUSB modem

Post by astray » 2014/07/02 11:03:21

IMHO something wrong with /sbin/usbmon or 40-usb_modeswitch.rules but don`t understand! Please help!

chemal
Posts: 607
Joined: 2013/12/08 19:44:49

Re: Problems with 3GUSB modem

Post by chemal » 2014/07/02 13:54:47

Code: Select all

usbcore: registered new interface driver huawei_ether
huawei_ether is not a CentOS 6.5 supplied driver. Your best bet is to revert all your fiddling (if you still remember evrything) and start anew from a clean system. If you cannot get usb_modeswitch to work, you can switch your device permanently to modem mode with AT^U2DIAG=256 (->google).

User avatar
astray
Posts: 11
Joined: 2014/07/01 13:17:51

Re: Problems with 3GUSB modem

Post by astray » 2014/07/02 15:36:49

To solve problem with long ttyUSB names i try to comment this strings in 10-Huawei-Datacard.rules

Code: Select all

#SUBSYSTEMS=="usb",ATTRS{modalias}=="usb:v12D1*", KERNEL=="ttyUSB*", ATTRS{bInterfaceSubClass}=="02", ATTRS{bInterfaceProtocol}=="01", NAME="ttyUSB*"
#SUBSYSTEMS=="usb",ATTRS{modalias}=="usb:v12D1*", KERNEL=="ttyUSB*", ATTRS{bInterfaceSubClass}=="02", ATTRS{bInterfaceProtocol}=="02", NAME="ttyUSB*"
#SUBSYSTEMS=="usb",ATTRS{modalias}=="usb:v12D1*", KERNEL=="ttyUSB*", ATTRS{bInterfaceSubClass}=="02", ATTRS{bInterfaceProtocol}=="03", NAME="ttyUSB*"
and now even dmseg show ttyUSB:

Code: Select all

usb 2-6: new high speed USB device number 17 using ehci_hcd
usb 2-6: New USB device found, idVendor=12d1, idProduct=1506
usb 2-6: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 2-6: Product: HUAWEI Mobile
usb 2-6: Manufacturer: HUAWEI
usb 2-6: configuration #1 chosen from 1 choice
option 2-6:1.0: GSM modem (1-port) converter detected
usb 2-6: GSM modem (1-port) converter now attached to ttyUSB0
option 2-6:1.1: GSM modem (1-port) converter detected
usb 2-6: GSM modem (1-port) converter now attached to ttyUSB1
option 2-6:1.2: GSM modem (1-port) converter detected
usb 2-6: GSM modem (1-port) converter now attached to ttyUSB2
but ttyUSB not appears in /dev
How to return numered ttyUSB instead named ttyUSB?
I need to connect 4 usb modems and names wil be conflict together.
Please explain, why when I disable udev rule that renames device ttyUSB*, it does not appears at all?
Last edited by astray on 2014/07/03 09:56:39, edited 1 time in total.

User avatar
astray
Posts: 11
Joined: 2014/07/01 13:17:51

Re: Problems with 3GUSB modem

Post by astray » 2014/07/03 08:38:36

May be my modem unsupported:

Code: Select all

[root@localhost rules.d]# modprobe -c | grep -i 12d1 | grep -i 1506
<nothing>
This output another my modem that work fine:

Code: Select all

[root@localhost rules.d]# modprobe -c | grep -i 19d2 | grep -i 0016
alias usb:v19D2p0016d*dc*dsc*dp*icFFiscFFipFF* option
How to add support of first device?

User avatar
astray
Posts: 11
Joined: 2014/07/01 13:17:51

Re: Problems with 3GUSB modem

Post by astray » 2014/07/03 19:10:44

I make udev rule but it does not work:

Code: Select all

ACTION=="add", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1506", RUN+="modprobe usbserial vendor=0x12d1 product=0x1506"
When system restarted or modem reinserted ttyUSB* not coming.

When I am put Command alone it work perfect and ttyUSB appears!

Code: Select all

modprobe usbserial vendor=0x12d1 product=0x1506
What I am do wrong? Why udev not using rule?

Post Reply

Return to “CentOS 6 - Hardware Support”