Posts: 23
pasuuna
Joined: 19 Apr 2012
#1
Hi!

I'm trying to get a Huawei E353 stick to work, but all I get is a"--> Cannot open /dev/ttyUSB0: No such file or directory" message.

I'm on antiX-M11 running the 3.5.0-antix.2-486 kernel.
Posts: 23
pasuuna
Joined: 19 Apr 2012
#2
I might try to find a used older modem too. The E160E I have works fine, but I need a second connection and this new stick came with it.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#3
is usb modeswitch installed? i use to have a stick that did not require usb modeswitch, but the new one also had a data partition, thus requiring usb modeswitch to determine it is a modem not a jump drive
Posts: 23
pasuuna
Joined: 19 Apr 2012
#4
Hi,

Yes, usb modeswitch is installed. GnomePPP setup detects the E160E modem when it's plugged in, but nothing when I plug in this new thing. The old modem's windows software is found in media/cdrom and the new one's in media/cdrom1.

lsusb lists both devices. Old:
Bus 001 Device 031: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem

And new:
Bus 001 Device 032: ID 12d1:151a Huawei Technologies Co., Ltd.

I've dabbled with usb_modeswitch (copying and pasting found"solutions" online), but lsusb always seems to list the device as above. Like so:

Code: Select all

usb_modeswitch -b2 -v 12d1 -p 151a -n -message-content 555342437f0000000002000080000a11062000000000000100000000000000

Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 041 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x0e (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 No driver found. Either detached before or never attached
 Could not send INQUIRY message (error -2)

USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.

root@antiX1:/home/username# lsusb
Bus 001 Device 041: ID 12d1:151a Huawei Technologies Co., Ltd. 
Bus 002 Device 002: ID 09da:000a A4 Tech Co., Ltd Optical Mouse Opto 510D
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Here I'm trying to reset the modem, which gives a somewhat different output:

Code: Select all

root@antiX1:/home/username# usb_modeswitch -R -b1 -v 12d1 -p 151a

Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 041 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 No driver found. Either detached before or never attached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI  
   Model String: Mass Storage    
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Warning: no switching method given.
Resetting usb device .
 OK, device was reset
-> Run lsusb to note any changes. Bye.
Thanks!
Posts: 23
pasuuna
Joined: 19 Apr 2012
#5
Usb_modeswitch is version 1.2.3+repack0-1
Posts: 23
pasuuna
Joined: 19 Apr 2012
#6
Got it!

This one did the trick:

Code: Select all

root@antiX1:/home/username# usb_modeswitch -v 12d1 -p 151a -V 012d1 -P 014db -M"55534243123456780000000000000a11062000000000000100000000000000"

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 043 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver"usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI  
   Model String: Mass Storage    
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 Device seems to have vanished right after sending. Good.
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

root@antiX1:/home/username# lsusb
Bus 001 Device 045: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem
Bus 001 Device 046: ID 12d1:14ac Huawei Technologies Co., Ltd. 
Bus 002 Device 002: ID 09da:000a A4 Tech Co., Ltd Optical Mouse Opto 510D
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
I'm a bit baffled why that worked. I tried forcing the output with"-P 014db" before without results, and I tried with the above"message" in place of the one I posted earlier, but didn't try the exact command (because it was for -p 1446 originally).

Now, do I have to run this command in shell every time I start up the computer?
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#7
It might work by adding that line to etc/rc.local