OpenWrt Forum Archive

Topic: "Huawei usb modem (productID 0x1429)" no work

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello!
First off all I would like to appologize for my bad english.

La Fonera 2.0
  kamikaze/8.09.1/atheros/openwrt-atheros-vmlinux.lzma
  kamikaze/8.09.1/atheros/openwrt-atheros-root.squashfs

installed
    comgt - 0.32-1.1 -
    kmod-usb-serial - 2.6.26.8-atheros-1 -
    kmod-usb-uhci - 2.6.26.8-atheros-1 -
    kmod-usb2 - 2.6.26.8-atheros-1 -
    kmod-usb-serial
    usb-modeswitch - 0.9.5-1 -
    usbutils - 0.73-1 -
    huaweiaktbbo - 1 -


I try work "Huawei usb modem ipProcduct ox1429"
I used usb_modeswitch
ProcdutID change 0x1446 to 0x1429
But no ttyUSB0


[dmesg]

Linux version 2.6.26.8 (andy@stable-sandbox) (gcc version 4.1.2) #4 Mon Jun 1 22:06:38 UTC 2009
CPU revision is: 00019064 (MIPS 4KEc)
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Entering add_active_range(0, 0, 8192) 0 entries of 256 used
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     8192
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     8192
On node 0 totalpages: 8192
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 128 (order: 7, 512 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29800k/32768k available (1886k kernel code, 2968k reserved, 308k data, 124k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 183.50 BogoMIPS (lpj=917504)
Mount-cache hash table entries: 512
net_namespace: 644 bytes
NET: Registered protocol family 16
Radio config found at offset 0xf8(0x1f8)
AR531x PCI init...
done
PCI: fixing up device 0,3,0
PCI: Failed to allocate mem resource #1:4000000@84000000 for 0000:00:03.0
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
ar531x: Registering GPIODEV device
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  c 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:18:84:d0:6c:4c, irq 4
ar2313_eth_mii: probed
eth0: Marvell 88E6060 PHY driver attached.
eth0: attached PHY driver [Marvell 88E6060] (mii_bus:phy_addr=0:1f)
cmdlinepart partition parsing not available
Searching for RedBoot partition table in spiflash at offset 0x7d0000
Searching for RedBoot partition table in spiflash at offset 0x7e0000
6 RedBoot partitions found on MTD device spiflash
Creating 6 MTD partitions on "spiflash":
0x00000000-0x00030000 : "RedBoot"
0x00030000-0x000f0000 : "vmlinux.bin.l7"
0x000f0000-0x007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=270000, len=570000
0x00270000-0x007e0000 : "rootfs_data"
0x007e0000-0x007ef000 : "FIS directory"
0x007ef000-0x007f0000 : "RedBoot config"
0x007f0000-0x00800000 : "boardconfig"
Registered led device: gpio1
Registered led device: wlan
Registered led device: gpio3
Registered led device: gpio4
eth0: Configuring MAC for full duplex
Registered led device: gpio7
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0.0) entering forwarding state
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2009-05-08 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC, TX_DESC_SWAP, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_ahb: trunk
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_ahb: wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3
USB Universal Host Controller Interface driver v3.0
PCI: Enabling device 0000:00:00.1 (0000 -> 0002)
ehci_hcd 0000:00:00.1: EHCI Host Controller
ehci_hcd 0000:00:00.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:00.1: irq 5, io mem 0x80c21000
ehci_hcd 0000:00:00.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice


[lsusb]
Bus 001 Device 002: ID 12d1:1429 Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[ls /dev]

1-1                 mtd6                urandom
console             mtd6ro              usb1
cpu_dma_latency     mtdblock0           usbdev1.1_ep00
full                mtdblock1           usbdev1.1_ep81
gpio                mtdblock2           usbdev1.2_ep00
kmsg                mtdblock3           usbdev1.2_ep01
log                 mtdblock4           usbdev1.2_ep02
mem                 mtdblock5           usbdev1.2_ep03
mtd0                mtdblock6           usbdev1.2_ep04
mtd0ro              network_latency     usbdev1.2_ep05
mtd1                network_throughput  usbdev1.2_ep81
mtd1ro              null                usbdev1.2_ep82
mtd2                port                usbdev1.2_ep83
mtd2ro              ppp                 usbdev1.2_ep84
mtd3                ptmx                usbdev1.2_ep85
mtd3ro              pts                 usbdev1.2_ep86
mtd4                random              usbdev1.2_ep87
mtd4ro              shm                 watchdog
mtd5                tty                 zero
mtd5ro              ttyS0

I think you have to specify the product ID in /etc/modules.d/60-usb-serial

for E220 (from HOWTO at http://josefsson.org/openwrt/dongle.html )

root@caramel:/# cat>/etc/modules.d/60-usb-serial
usbserial vendor=0x12d1 product=0x1003 maxSize=4096

Good luck!

Hey all,this is my firts post and sorry for my bad english.
I've Huawei usb modem E156G and install the module kmod-usb-serial-option and kmod-usb-serial too. What's your Model name?
Try kmod-usb-serial-option  or kmod-usb-serial-oti6858.
My router is ASUS WL600g with last firmware kamikaze edge , usb , E156G e H3G italy. Work 100%.

config interface ppp0
        option ifname   ppp0
        option proto    3g
        option device   /dev/ttyUSB0
        option apn      datacard.tre.it
        option pincode  ''

Another test , you can try insert the usb modem in linux 2.6 machine and you search the module within log's "dmesg" which active the device /dev/ttyUSB0.

Good luck!

staylo wrote:

I think you have to specify the product ID in /etc/modules.d/60-usb-serial

for E220 (from HOWTO at http://josefsson.org/openwrt/dongle.html )

root@caramel:/# cat>/etc/modules.d/60-usb-serial
usbserial vendor=0x12d1 product=0x1003 maxSize=4096

Good luck!

thank you !
your post !

I changed config


but 

[ls /dev]

1-1                 mtd6ro              usbdev1.1_ep00
console             mtdblock0           usbdev1.1_ep81
cpu_dma_latency     mtdblock1           usbdev1.2_ep00
full                mtdblock2           usbdev1.2_ep01
gpio                mtdblock3           usbdev1.2_ep81
kmsg                mtdblock4           usbdev1.3_ep00
log                 mtdblock5           usbdev1.3_ep01
mem                 mtdblock6           usbdev1.3_ep02
mtd0                network_latency     usbdev1.3_ep03
mtd0ro              network_throughput  usbdev1.3_ep04
mtd1                null                usbdev1.3_ep05
mtd1ro              port                usbdev1.3_ep81
mtd2                ppp                 usbdev1.3_ep82
mtd2ro              ptmx                usbdev1.3_ep83
mtd3                pts                 usbdev1.3_ep84
mtd3ro              random              usbdev1.3_ep85
mtd4                shm                 usbdev1.3_ep86
mtd4ro              tty                 usbdev1.3_ep87
mtd5                ttyS0               watchdog
mtd5ro              urandom             zero
mtd6                usb1

gigh wrote:

Hey all,this is my firts post and sorry for my bad english.
I've Huawei usb modem E156G and install the module kmod-usb-serial-option and kmod-usb-serial too. What's your Model name?
Try kmod-usb-serial-option  or kmod-usb-serial-oti6858.
My router is ASUS WL600g with last firmware kamikaze edge , usb , E156G e H3G italy. Work 100%.

config interface ppp0
        option ifname   ppp0
        option proto    3g
        option device   /dev/ttyUSB0
        option apn      datacard.tre.it
        option pincode  ''

Another test , you can try insert the usb modem in linux 2.6 machine and you search the module within log's "dmesg" which active the device /dev/ttyUSB0.

Good luck!

thank you !!
your post !!


[vi /etc/network]

config interface ppp0
option ifname ppp0
option proto 3g
option device /dev/ttyusb0
option apn emb.ne.jp
option pincode 9999




I installed  kmod-usb-serial-option  and kmod-usb-serial-oti6858.

and  the device  is "D31HW "  Japanese mobile device


but  no /dev/ttyUSB0




[ls /dev]
1-1                 mtd6                urandom
console             mtd6ro              usb1
cpu_dma_latency     mtdblock0           usbdev1.1_ep00
full                mtdblock1           usbdev1.1_ep81
gpio                mtdblock2           usbdev1.2_ep00
kmsg                mtdblock3           usbdev1.2_ep01
log                 mtdblock4           usbdev1.2_ep02
mem                 mtdblock5           usbdev1.2_ep03
mtd0                mtdblock6           usbdev1.2_ep04
mtd0ro              network_latency     usbdev1.2_ep05
mtd1                network_throughput  usbdev1.2_ep81
mtd1ro              null                usbdev1.2_ep82
mtd2                port                usbdev1.2_ep83
mtd2ro              ppp                 usbdev1.2_ep84
mtd3                ptmx                usbdev1.2_ep85
mtd3ro              pts                 usbdev1.2_ep86
mtd4                random              usbdev1.2_ep87
mtd4ro              shm                 watchdog
mtd5                tty                 zero
mtd5ro              ttyS0

(Last edited by stockjp on 28 Oct 2009, 20:34)

"D31HW" is new device HSPA+ 21.6 Mbps : wow. This is supported by linux? Driver?
You can try install all kmod-usb-serial-*

stockjp wrote:

I installed  kmod-usb-serial-option  and kmod-usb-serial-oti6858.

and  the device  is "D31HW "  Japanese mobile device but  no /dev/ttyUSB0

gigh

thank you  !!!!

I try.

this device run on Ubuntu8.04 .


You  tryed install all kmod-usb-serial-*

but  no ttyusb

You can post the log of dmesg and lsmod on Ubuntu8.04.
What's the module name which active the "ttyUSB0"?
has USB power supply Problems? Try a Powered USB Hub?

Good luck!

stockjp wrote:

this device run on Ubuntu8.04 .

gigh

thank you  !!!!!!

i try

the device do not run....


[dmsg]

Linux version 2.6.26.8 (andy@stable-sandbox) (gcc version 4.1.2) #4 Mon Jun 1 22:06:38 UTC 2009
CPU revision is: 00019064 (MIPS 4KEc)
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Entering add_active_range(0, 0, 8192) 0 entries of 256 used
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     8192
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     8192
On node 0 totalpages: 8192
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 128 (order: 7, 512 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29800k/32768k available (1886k kernel code, 2968k reserved, 308k data, 124k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 183.50 BogoMIPS (lpj=917504)
Mount-cache hash table entries: 512
net_namespace: 644 bytes
NET: Registered protocol family 16
Radio config found at offset 0xf8(0x1f8)
AR531x PCI init...
done
PCI: fixing up device 0,3,0
PCI: Failed to allocate mem resource #1:4000000@84000000 for 0000:00:03.0
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
ar531x: Registering GPIODEV device
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  c 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:18:84:d0:6c:4c, irq 4
ar2313_eth_mii: probed
eth0: Marvell 88E6060 PHY driver attached.
eth0: attached PHY driver [Marvell 88E6060] (mii_bus:phy_addr=0:1f)
cmdlinepart partition parsing not available
Searching for RedBoot partition table in spiflash at offset 0x7d0000
Searching for RedBoot partition table in spiflash at offset 0x7e0000
6 RedBoot partitions found on MTD device spiflash
Creating 6 MTD partitions on "spiflash":
0x00000000-0x00030000 : "RedBoot"
0x00030000-0x000f0000 : "vmlinux.bin.l7"
0x000f0000-0x007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=270000, len=570000
0x00270000-0x007e0000 : "rootfs_data"
0x007e0000-0x007ef000 : "FIS directory"
0x007ef000-0x007f0000 : "RedBoot config"
0x007f0000-0x00800000 : "boardconfig"
Registered led device: gpio1
Registered led device: wlan
Registered led device: gpio3
Registered led device: gpio4
eth0: Configuring MAC for full duplex
Registered led device: gpio7
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
SCSI subsystem initialized
device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0.0) entering forwarding state
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
libata version 3.00 loaded.
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
Driver 'sd' needs updating - please use bus_type methods
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2009-05-08 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC, TX_DESC_SWAP, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_ahb: trunk
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_ahb: wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3
USB Universal Host Controller Interface driver v3.0
PCI: Enabling device 0000:00:00.1 (0000 -> 0002)
ehci_hcd 0000:00:00.1: EHCI Host Controller
ehci_hcd 0000:00:00.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:00.1: irq 5, io mem 0x80c21000
ehci_hcd 0000:00:00.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
usbcore: registered new interface driver usbserial
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbserial: USB Serial support registered for ark3116
usbcore: registered new interface driver ark3116
usbserial: USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter
usbcore: registered new interface driver belkin
belkin_sa: USB Belkin Serial converter driver v1.2
usbserial: USB Serial support registered for ch341-uart
usbcore: registered new interface driver ch341
usbserial: USB Serial support registered for cp2101
usbcore: registered new interface driver cp2101
cp2101: Silicon Labs CP2101/CP2102 RS232 serial adaptor driver v0.07
usbserial: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
usbserial: USB Serial support registered for Keyspan - (without firmware)
usbserial: USB Serial support registered for Keyspan 1 port adapter
usbserial: USB Serial support registered for Keyspan 2 port adapter
usbserial: USB Serial support registered for Keyspan 4 port adapter
usbcore: registered new interface driver keyspan
keyspan: v1.1.5:Keyspan USB to Serial Converter Driver
usbserial: USB Serial support registered for MCT U232
usbcore: registered new interface driver mct_u232
mct_u232: Magic Control Technology USB-RS232 converter driver z2.1
usbserial: USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: USB Driver for GSM modems: v0.7.2
usbserial: USB Serial support registered for oti6858
usbcore: registered new interface driver oti6858
usbserial: USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
usbserial: USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver sierra
sierra: USB Driver for Sierra Wireless USB modems: v.1.2.9c



{when this device set }

root@mmmmmmm:/# usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2




root@mmmmmmm:/# lsusb
Bus 001 Device 002: ID 12d1:1446 Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@mmmmmmm:/# usb_modeswitch

* usb_modeswitch: tool for controlling "flip flop" mode USB devusb 1-1: USB disconnect, address 2
ices
* Version 0.9.5 (C) Josua Dietze 2008
* Works with libusb 0.1.12 and probably other versions

Looking for target devices
No target device found
Looking for default devices
Found default devices (1)
Prepare switching, accessing latest device
Looking for active default driver to detach it
OK, driver found ("usb-storage")
OK, Driver "usb-storage" successfully detached
Setting up communication with device
Trying to send the message
OK, message successfully sent.
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye


root@mmmmmmm:/# lsusb
usb 1-1: new high speed USB device using ehci_hcd and address 3
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
scsi2 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
scsi 2:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
sd 2:0:0:0: [sda] Attached SCSI removable disk
Bus 001 Device 003: ID 12d1:1429 Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@mmmmmmm:/#

The Huawei 0x1429 device is listed a Mass Storage device in drivers/usb/storage/unusual_devs.h

UNUSUAL_DEV(  0x12d1, 0x1429, 0x0000, 0x0000,
                "HUAWEI MOBILE",
                "Mass Storage",
                US_SC_DEVICE, US_PR_DEVICE, usb_stor_huawei_e220_init,
                0),

If you want to use usb_modeswitch , you need to comment out the above entry, otherwise the device will be detected as a mass storage device and you will not get the /dev/ttyUSB ports you are expecting.  We were able to successfully use usb_modeswitch with Huawei devices after making this change.

HTH

thank you Miguel for your pots !!!

But I can not find  file " unusual_devs.h".

Check if the 0x12d1/0x1429 device is included in your /etc/usb_modeswitch.conf file ?

Should be something like this:

DefaultVendor=  0x12d1
DefaultProduct= 0x1429
# choose one of these:
;DetachStorageOnly=1
HuaweiMode=1

my usb_modeswitch.config

#######################################################
## Emobile

DefaultVendor=  0x12d1
DefaultProduct= 0x1446
TargetVendor=   0x12d1
TargetProduct=  0x1429

MessageEndpoint=0x01
MessageContent="55534243000000000000000000000011060000000000000000000000000000"



I changed config

#######################################################
## Emobile D21LC
##
#
DefaultVendor=  0x12d1
DefaultProduct= 0x1446
TargetVendor=   0x12d1
TargetProduct=  0x1429

# choose one of these:
;DetachStorageOnly=1
HuaweiMode=1

MessageEndpoint=0x01
MessageContent="55534243000000000000000000000011060000000000000000000000000000"



root@fon2_mec2:/etc# usb_modeswitch

* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 0.9.5 (C) Josua Dietze 2008
* Works with libusb 0.1.12 and probably other versions

Looking for target devices
Found target devices (1)
Looking for default devices
No default device found. Is it connected? Bye

root@fon2_mec2:/etc# lsusb
Bus 001 Device 003: ID 12d1:1429 Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002
root@fon2_mec2:/etc# cd .
root@fon2_mec2:/etc# cd /dev
root@fon2_mec2:/dev# ls
1-1                 mtd6ro              usb1
console             mtdblock0           usbdev1.1_ep00
cpu_dma_latency     mtdblock1           usbdev1.1_ep81
full                mtdblock2           usbdev1.2_ep00
gpio                mtdblock3           usbdev1.2_ep01
kmsg                mtdblock4           usbdev1.2_ep81
log                 mtdblock5           usbdev1.3_ep00
mem                 mtdblock6           usbdev1.3_ep01
mtd0                network_latency     usbdev1.3_ep02
mtd0ro              network_throughput  usbdev1.3_ep03
mtd1                null                usbdev1.3_ep04
mtd1ro              port                usbdev1.3_ep05
mtd2                ppp                 usbdev1.3_ep81
mtd2ro              ptmx                usbdev1.3_ep82
mtd3                pts                 usbdev1.3_ep83
mtd3ro              random              usbdev1.3_ep84
mtd4                sda                 usbdev1.3_ep85
mtd4ro              shm                 usbdev1.3_ep86
mtd5                tty                 usbdev1.3_ep87
mtd5ro              ttyS0               watchdog
mtd6                urandom             zero
root@fon2_mec2:/dev#



??

The discussion might have continued from here.