T-Mobile USB Dongle Fedora 15

I am having trouble getting my T-Mobile dongle to work on Fedora 15, im trying to set it up to use wvdial as per a guide I found on here, the trouble is that wvdial cant find the dongle when its plugged in, i’ve posted what i think is enough relevant terminal output below:

[root@Dave-PC Desktop]# cat /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
NewPPPD = yes
ISDN = 0
Phone = *99#
Username = t-mobile
Password = tm
Modem = /dev/usbmon2
Dial Command = ATDT
Baud = 9600

[Dialer TMobile]
Init2 = ATZ
Init2 = ATQ0 V1 &C1 &D2 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,“IP”,“general.t-mobile.uk
ISDN = 0
Modem = /dev/usbmon2
Modem Type = Analog Modem
Baud 460800

====================================================

[root@Dave-PC Desktop]# wvdialconf
Editing `/etc/wvdial.conf’.

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.
Modem Port Scan<*1>: S1 S2 S3

Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial

====================================================

[root@Dave-PC Desktop]# lsusb
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 001 Device 003: ID 04b8:0007 Seiko Epson Corp. Printer
Bus 001 Device 005: ID 12d1:1c0b Huawei Technologies Co., Ltd.
Bus 002 Device 002: ID 046d:c01d Logitech, Inc. MX510 Optical Mouse

====================================================

The mobile dongle is the Huawei Technologies Co., Ltd. device.

Can someone please point me in the right direction, getting rather sick of using Windows again :frowning:

Cheers,

DMcB

Your Huawei E173s dongle hasn’t been switched from ZeroCD mode to USB modem mode.

Install usb-modeswitch from within your package manager … or from here

Unplug the dongle, wait 5 secs, then replug it … it should be detected.

Then use NetworkManger (rather than wvdial) to set up your connection.


If that doesn’t work …

  1. If it doesn’t already exist … create the file /etc/usb_modeswitch.d/12d1:1c0b

and make it read:-

########################################################
# Huawei E173s

DefaultVendor= 0x12d1
DefaultProduct= 0x1c0b

TargetVendor= 0x12d1
TargetProduct= 0x1c05

CheckSuccess=20

MessageEndpoint= 0x0f
MessageContent= "55534243123456780000000000000011062000000100000000000000000000"

  1. Add these corresponding lines to /lib/udev/rules.d/40-usb_modeswitch.rules
# Huawei E173s
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1c0b", RUN+="usb_modeswitch '%b/%k'"

Reboot … then just use NetworkManager to set up your connection.

Check that these files and edits don’t already exist … because they should already be there in the latest version of usb-modeswitch.


Source:

I’ve installed usb_modeswitch-1.2.0-1.fc15.i686.rpm and libusb-devel-0.1.3-9.fc15.i686.rpm but it still doesn’t seem to have worked.

12d1:1c0b and 40-usb_modeswitch.rules both exist and have the correct into in them, the connection is set up in connection manager as well, nothing pops up when the dongle is plugged in and it still apears as it did before under lsusb :frowning:

If it’s registering as a drive … have you tried “ejecting” the drive, but leaving the dongle plugged in … and seeing if the:

Bus 001 Device 005: ID 12d1:1c0b Huawei Technologies Co., Ltd.

Line changes is lsusb ?

Also what happens if you run:

usb_modeswitch -c 12d1:1c0b

as root ?

Are there any relevant error messages in your syslog or dmesg ?


Also what happens if you make /etc/usb_modeswitch.d/12d1:1c0b read:

#######################################################
# Huawei E173s

DefaultVendor= 0x12d1
DefaultProduct=0x1c0b

TargetVendor=  0x12d1
TargetProductList="1c05,1c08"

MessageContent="55534243123456780000000000000011062000000100000000000000000000"

CheckSuccess=20

?

[root@Dave-PC dave]# usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1c0b

Looking for target devices …
Found devices in target mode or class (1)
Looking for default devices …
No devices in default mode found. Nothing to do. Bye.

That was what 12d1:1c0b initially read and it didnt work, ejecting/safely removing the hardware doesn’t change anything.

OK, what’s the output from:

usb_modeswitch -v 0x12d1 -p 0x1c0b -V 0x12d1 -P 0x1c05 -s 20 -m 0x0f -M "55534243123456780000000000000011062000000100000000000000000000"

and/or

usb_modeswitch -v 0x12d1 -p 0x1c0b -V 0x12d1 -P 0x1c08 -s 20 -m 0x0f -M "55534243123456780000000000000011062000000100000000000000000000"

[root@Dave-PC dave]# usb_modeswitch -v 0x12d1 -p 0x1c0b -V 0x12d1 -P 0x1c05 -s 20 -m 0x0f -M “55534243123456780000000000000011062000000100000000000000000000”

Looking for target devices …
Found devices in target mode or class (1)
Looking for default devices …
No devices in default mode found. Nothing to do. Bye.

[root@Dave-PC dave]# usb_modeswitch -v 0x12d1 -p 0x1c0b -V 0x12d1 -P 0x1c08 -s 20 -m 0x0f -M “55534243123456780000000000000011062000000100000000000000000000”

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
No devices in default mode found. Nothing to do. Bye.

I guess it should be promising that at least -P 0x1c05 finds a device…

is there a cover you can remove to access the SIM card … and is there any info in there about the revision … something like E173s-1 or E173s-6 etc.

Have you tried adding a:

WaitBefore=5

line to the end of /etc/usb_modeswitch.d/12d1:1c0b

If you unplug the dongle, then replug it … then run:

dmesg | tail -n 25

waht’s the output ?

Its an E173s-1 dongle, going to give those commands a bash now

[root@Dave-PC Desktop]# dmesg | tail -n 25
[ 242.694832] usb 1-3: Manufacturer: HUAWEI
[ 242.710304] scsi6 : usb-storage 1-3:1.0
[ 242.710844] scsi7 : usb-storage 1-3:1.1
[ 245.199240] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 245.199357] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 245.215706] sr1: scsi-1 drive
[ 245.217640] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 245.217909] sr 6:0:0:0: Attached scsi generic sg3 type 5
[ 245.218880] sd 7:0:0:0: Attached scsi generic sg4 type 0
[ 245.221482] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[ 248.342469] usb 1-3: USB disconnect, device number 6
[ 253.973049] usb 1-3: new high speed USB device number 7 using ehci_hcd
[ 254.337191] usb 1-3: New USB device found, idVendor=12d1, idProduct=1c05
[ 254.337201] usb 1-3: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 254.337209] usb 1-3: Product: HUAWEI Mobile
[ 254.337214] usb 1-3: Manufacturer: HUAWEI
[ 254.340228] scsi8 : usb-storage 1-3:1.3
[ 254.340897] scsi9 : usb-storage 1-3:1.4
[ 257.243374] scsi 9:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 257.243389] scsi 8:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 257.279718] sr1: scsi-1 drive
[ 257.280253] sr 8:0:0:0: Attached scsi CD-ROM sr1
[ 257.280538] sr 8:0:0:0: Attached scsi generic sg3 type 5
[ 257.284093] sd 9:0:0:0: Attached scsi generic sg4 type 0
[ 257.285584] sd 9:0:0:0: [sdc] Attached SCSI removable disk

Yeh, I was reading here:
http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=552
that someone needed to add a WaitBefore=3 (or more) before his E173s-1 would work.

Let me know how it goes.