E220 Modem

Getting your soundcard to work, using Debian on non-i386 hardware, etc

E220 Modem

Postby Stretchy » 2009-11-25 16:55

I've been trying for ages to try and get my T-Mobile E220 modem working but I can't for love nor money and hoping someone on here can help me, here's some info....

Linux nslu2 2.6.26-2-ixp4xx #1 Thu Aug 20 02:40:52 UTC 2009 armv5tel GNU/Linux

Bus 003 Device 004: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Mod

dmesg
[42950609.840000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[42950609.860000] option 3-1:1.0: device disconnected
[42950609.860000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[42950609.870000] option 3-1:1.1: device disconnected
[42950646.950000] usb 3-1: new full speed USB device using ohci_hcd and address 5
[42950647.130000] usb 3-1: configuration #1 chosen from 1 choice
[42950647.160000] scsi8 : SCSI emulation for USB Mass Storage devices
[42950647.170000] usb 3-1: New USB device found, idVendor=12d1, idProduct=1003
[42950647.180000] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[42950647.180000] usb 3-1: Product: HUAWEI Mobile
[42950647.190000] usb 3-1: Manufacturer: HUAWEI Technologies
[42950647.190000] usb 3-1: USB disconnect, address 5
[42950647.210000] usb-storage: device found at 5
[42950647.210000] usb-storage: waiting for device to settle before scanning
[42950647.970000] usb 3-1: new full speed USB device using ohci_hcd and address 6

wvdialconf
Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT&FE0V1X1&D2&C1S0=0
AT&FE0V1X1&D2&C1S0=0
OK
--> Modem initialized.
wvdial: utils/wvtask.cc:198: WvTaskMan::WvTaskMan(): Assertion `getcontext(&get_stack_return) == 0' failed.
Aborted

I tried
usb_modeswitch -v 0x12d1 -p 0x1003 -d 1
usb_modeswitch -v 0x12d1 -p 0x1003 -H 1

dmesg showed
[42950648.160000] usb 3-1: configuration #1 chosen from 1 choice
[42950648.170000] usb-storage: probe of 3-1:1.0 failed with error -5
[42950648.170000] option 3-1:1.0: GSM modem (1-port) converter detected
[42950648.180000] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
[42950648.200000] usb-storage: probe of 3-1:1.1 failed with error -5
[42950648.200000] option 3-1:1.1: GSM modem (1-port) converter detected
[42950648.210000] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
[42950648.250000] scsi11 : SCSI emulation for USB Mass Storage devices
[42950648.260000] usb 3-1: New USB device found, idVendor=12d1, idProduct=1003
[42950648.260000] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[42950648.270000] usb 3-1: Product: HUAWEI Mobile
[42950648.280000] usb 3-1: Manufacturer: HUAWEI Technologies
[42950648.290000] usb-storage: device found at 6
[42950648.290000] usb-storage: waiting for device to settle before scanning
[42950653.290000] usb-storage: device scan complete
[42950653.300000] scsi 11:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[42950653.380000] sr0: scsi-1 drive
[42950653.380000] sr 11:0:0:0: Attached scsi CD-ROM sr0
[42950653.380000] sr 11:0:0:0: Attached scsi generic sg1 type 5

PLEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEASE HELP before I throw it out the window
Stretchy
 
Posts: 37
Joined: 2009-11-18 22:09

Re: E220 Modem

Postby milomak » 2009-11-25 16:59

i use Vodafone Mobile Connect. However I am not a Vodafone customer

This is how I got VMC working on my Debian install

1. I downloaded the latest usbmodeswitch and the version 1.9 vodafone mobile connect deb files from the betavine website
2. I went to the download folder and as root, ran dpkg -i usb-modeswitch_0.9.7_i386.deb vodafone-mobile-connect_1.99.17-8_all.deb
3. It spit out a least of dependencies that were missing. These were sorted with aptitude install python-gnome2-extras python-sqlite python-twisted python-tz
4. The above list may not be exhaustive because some other dependencies could have been installed during the course of having previously installed other packages.
5. Step 3 completed the process of installing everything needed.
6. The Vodafone app was visible under Applications --> Internet. This is under Gnome.

Before running the app, make sure your device is being recognised:

lsusb should return something similar to
Bus 001 Device 005: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem


Then you should run ls -la /dev/ttyU* which should return
Code: Select all
crw-rw---- 1 root dialout 188, 0 2009-10-25 07:24 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 2009-10-25 07:24 /dev/ttyUSB1


If it doesn't, check to see if the usbserial module is loaded - lsmod | grep usbserial. If there is an empty return, then you will need to run modprobe usbserial vendor=0x12d1 product=0x1003. You will notice that the vendor and product numbers are the highlighted numbers in the lsusb output.

Now ls -la /dev/ttyU* should return the expected output. Running Vodafone Connect should pickup your modem now.
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Sid (External SSD)
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2034
Joined: 2009-06-09 22:20

Re: E220 Modem

Postby Stretchy » 2009-11-25 17:55

thanks for the inf, i'm running on armel is there vodafone package for that?

bit more info....

lsmod | grep usbserial
usbserial 30860 1 option
usbcore 128828 6 option,usbserial,ohci_hcd,ehci_hcd,usb_storage

ls -la /dev/ttyU*
crw-rw---- 1 root dialout 188, 0 Nov 25 17:45 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Nov 25 17:45 /dev/ttyUSB1
Stretchy
 
Posts: 37
Joined: 2009-11-18 22:09

Re: E220 Modem

Postby milomak » 2009-11-27 22:37

don't even know what armel is unfortunately. sorry.
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Sid (External SSD)
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2034
Joined: 2009-06-09 22:20

Re: E220 Modem

Postby Japser » 2009-11-28 02:01

I think you should just edit /etc/wvdial.conf .

see: http://wiki.debian.org/Huawei/E220
Japser
 
Posts: 173
Joined: 2008-02-13 13:21

Re: E220 Modem

Postby Stretchy » 2009-11-28 09:01

I have tested the wvconf and adapter on a i386 system and it works fine, the issue appears to be with armel and specifically this error

wvdial: utils/wvtask.cc:198: WvTaskMan::WvTaskMan(): Assertion `getcontext(&get_stack_return) == 0' failed.
Stretchy
 
Posts: 37
Joined: 2009-11-18 22:09

Re: E220 Modem

Postby Stretchy » 2009-12-04 19:30

If anyone can help me solve this I'd be very greatful
Stretchy
 
Posts: 37
Joined: 2009-11-18 22:09


Return to Hardware

Who is online

Users browsing this forum: GabrieleMax, wrecked_machine and 10 guests

fashionable