OpenSuse 11.4, Huawei e1820 and system can not attach huawei as /dev/ttyACMx

Hey everyone, I need your help.

I use :

linux-4mak:~ # cat /etc/*-release
openSUSE 11.4 (i586)
VERSION = 11.4
CODENAME = Celadon
linux-4mak:~ # uname -mrs
Linux 2.6.37.1-1.2-desktop i686
linux-4mak:~ # gnokii --vesion
GNOKII Version 0.6.29
linux-4mak:~ # whoami
root
linux-4mak:~ #

and gsm modem huawei e1820.

I`d like to attache huawei to my laptop and config gnokii to see it, to send sms.

**before plug in HUAWEI **

I booted laptop and:

linux-4mak:~ # lsusb
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 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 413c:8184 Dell Computer Corp. F3607gw v2 Mobile Broadband Module
Bus 002 Device 004: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor

plug in huawei e1820

linux-4mak:~ # lsusb
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 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 413c:8184 Dell Computer Corp. F3607gw v2 Mobile Broadband Module
Bus 002 Device 004: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 002 Device 005: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552 (HSPA modem)

some last lines of dmesg:

  371.795647] usb 2-1.3: new high speed USB device using ehci_hcd and address 5
  371.873241] usb 2-1.3: New USB device found, idVendor=12d1, idProduct=1446
  371.873245] usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
  371.873249] usb 2-1.3: Product: HUAWEI Mobile
  371.873251] usb 2-1.3: Manufacturer: Huawei Technologies
  371.876713] scsi6 : usb-storage 2-1.3:1.0
  371.877203] scsi7 : usb-storage 2-1.3:1.1
  372.877906] scsi 6:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
  372.878805] scsi 7:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
  372.879669] sd 7:0:0:0: Attached scsi generic sg2 type 0
  372.882862] sd 7:0:0:0: [sdb] Attached SCSI removable disk
  372.884183] sr1: scsi-1 drive
  372.884463] sr 6:0:0:0: Attached scsi CD-ROM sr1
  372.884648] sr 6:0:0:0: Attached scsi generic sg3 type 5
linux-4mak:~ #
linux-4mak:~ # modprobe cdc_acm

 modprobe usbserial vendor=0x012d1 product=0x1446
linux-4mak:~ # lsmod | grep usb*
usbserial              34824  0
cpufreq_userspace       2631  0
zaurus                  3705  0
cdc_ether               7114  1 zaurus
usbnet                 24732  2 zaurus,cdc_ether

linux-4mak:~ # ls -ls /dev/ttyU*
ls: cannot access /dev/ttyU*: No such file or directory
linux-4mak:~ #
linux-4mak:~ # ls -ls /dev/ttyA*
0 crw-rw---- 1 root dialout 166, 0 Oct 16 13:45 /dev/ttyACM0
0 crw-rw---- 1 root dialout 166, 1 Oct 16 13:44 /dev/ttyACM1
0 crw-rw---- 1 root dialout 166, 2 Oct 16 13:24 /dev/ttyACM2
linux-4mak:~ #
linux-4mak:~ # cat .gnokiirc

[global]
port = /dev/ttyACM0
model = AT
initlength = default
connection = serial
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10
[gnokiid]
bindir = /usr/sbin/
[connect_script]
TELEPHONE = 12345678
[disconnect_script]
[logging]
debug = on
rlpdebug = off
xdebug = off
linux-4mak:~ #

linux-4mak:~ # gnokii –identify

….

Received message type 06
IMEI         : 356xxxxxxxxxxx
Manufacturer : Dell
Model        : D5540
Product name : D5540
Revision     : R1K06
Serial device: closing device

Dell is the built-in modem, I need Huawei.

Next:

linux-4mak:~ # cat .gnokiirc

[global]
port = /dev/ttyACM1
model = AT
initlength = default
connection = serial
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10
[gnokiid]
bindir = /usr/sbin/
[connect_script]
TELEPHONE = 12345678
[disconnect_script]
[logging]
debug = on
rlpdebug = off
xdebug = off
linux-4mak:~ #

and still gnokii --identify sees only Dell.

and last chance :

linux-4mak:~ # cat .gnokiirc

[global]
port = /dev/ttyACM2
model = AT
initlength = default
connection = serial
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10
[gnokiid]
bindir = /usr/sbin/
[connect_script]
TELEPHONE = 12345678
[disconnect_script]
[logging]
debug = on
rlpdebug = off
xdebug = off
linux-4mak:~ #

and still gnokii --identify tells that it is Dell.>:(

I need /dev/ACM??? for my huawei.

Plug out huawei, wait 15 seconds, and next plug in, and after 15 seconds I see:

linux-4mak:~ # lsusb
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 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 413c:8184 Dell Computer Corp. F3607gw v2 Mobile Broadband Module
Bus 002 Device 004: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 002 Device 006: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552 (HSPA modem)
dmesg:

 1871.294432] usb 2-1.3: USB disconnect, address 5
 1920.598337] usb 2-1.3: new high speed USB device using ehci_hcd and address 6
 1920.676036] usb 2-1.3: New USB device found, idVendor=12d1, idProduct=1446
 1920.676041] usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
 1920.676045] usb 2-1.3: Product: HUAWEI Mobile
 1920.676047] usb 2-1.3: Manufacturer: Huawei Technologies
 1920.680380] scsi8 : usb-storage 2-1.3:1.0
 1920.680805] scsi9 : usb-storage 2-1.3:1.1
 1921.681616] scsi 8:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
 1921.682421] scsi 9:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
 1921.683003] sd 9:0:0:0: Attached scsi generic sg2 type 0
 1921.686770] sd 9:0:0:0: [sdb] Attached SCSI removable disk
 1921.687866] sr1: scsi-1 drive
 1921.688128] sr 8:0:0:0: Attached scsi CD-ROM sr1
 1921.688312] sr 8:0:0:0: Attached scsi generic sg3 type 5
linux-4mak:~ # lsmod | grep usb*
usbserial              34824  0
cpufreq_userspace       2631  0
zaurus                  3705  0
cdc_ether               7114  1 zaurus
usbnet                 24732  2 zaurus,cdc_ether
linux-4mak:~ # ls -ls /dev/ttyA*
0 crw-rw---- 1 root dialout 166, 0 Oct 16 13:47 /dev/ttyACM0
0 crw-rw---- 1 root dialout 166, 1 Oct 16 13:48 /dev/ttyACM1
0 crw-rw---- 1 root dialout 166, 2 Oct 16 13:50 /dev/ttyACM2

and still the same. Gnokii dose not see huawei, what should I do to attache huawei as /dev/ttyACM??

please help.

Regards

Linux see Huawei E1820 as usb storage, not as modem. In OpenSuse I can not remove usb_storage (modprobe -r usb_storage). I installed usb_modeswitch

zypper in usb_modeswitch usb_modeswitch-data

Next I pluged in gsm modem Huawei E1820, next

lsusb

and I see:

linux-4mak:~ # lsusb
...
Bus 002 Device 006: ID 12d1:14ac Huawei Technologies Co., Ltd.

nano /etc/usb_modeswitch.d/12d1:1446

and we see:

########################################################
# Huawei, newer modems

DefaultVendor= 0x12d1
DefaultProduct=0x1446

TargetVendor=  0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,14ac"

CheckSuccess=20

MessageContent="55534243123456780000000000000011062000000100000000000000000000"

now type:

nano /lib/udev/rules.d/40-usb_modeswitch.rules

and add:

# Huawei E1820
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="usb_modeswitch '%b/%k'"

It almost works. Now reboot.

Then:

linux-4mak:~ # ls -ls /dev/ttyUSB*
0 crw-rw---- 1 root dialout 188, 0 Oct 16 20:16 /dev/ttyUSB0
0 crw-rw---- 1 root dialout 188, 1 Oct 16 20:11 /dev/ttyUSB1
0 crw-rw---- 1 root dialout 188, 2 Oct 16 20:11 /dev/ttyUSB2

In my case, Correct one is /dev/ttyUSB0.

Good luck.

Regards
BB.

Well done with your problem solving. For the benefit of others searching here, the clue to this type of modem behaviour is provided by the ‘dmesg’ output:

  372.877906] scsi 6:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
  372.878805] scsi 7:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
  372.879669] sd 7:0:0:0: Attached scsi generic sg2 type 0
  372.882862] sd 7:0:0:0: [sdb] Attached SCSI removable disk
  372.884183] sr1: scsi-1 drive
  372.884463] sr 6:0:0:0: Attached scsi CD-ROM sr1
  372.884648] sr 6:0:0:0: Attached scsi generic sg3 type 5
linux-4mak:~ #

An alternative, method to using usb_modeswitch, is to ‘eject’ the storage device first, automated with a udev rule like this

ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="/usr/bin/eject %k"

try to 3g-modem.wetpaint.com or unlocked HUAWEI E1820 ref. mobile2wifi.co.uk