Android and Huawei GSM modem connected in Debian Squeeze

Russell reiter rreiter91-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Apr 19 16:24:55 UTC 2011


Ok, I got the modem working. I'm sending this email from that connection.

Some notes in case anyone else is using one of these cheap smart
phones from Wind. Who by the way have provided me with excellent
customer service. I go to Newmarket quite often and when I signed up
for the plan they said they were going to expand their coverage to
include that area, and they did.

Also I changed my plan a couple of times as I started to realize the
data use I was going to encounter. I changed to one plan which would
have cost $60 with taxes. Right after that switch they introduced a
new plan and they switched me to it. Now I pay $40 plus tax. Because I
had switched twice, they gave me a months credit, without my even
asking, they just didn't debit my account which is pay before use.

Here's the info for apparently all recent Huawei devices

usb_modeswitch forum info says: change all Huawei devices to the
following MessageContent:
"55534243123456780000000000000011062000000100000000000000000000"

So I created a file in /etc/usb_modeswitch.d called 12d1:1035
which has the following in it, I added my own hardware id to the
TargetProductsLists

==
DefaultVendor=0x12d1
DefaultProduct=0x1446

TargetVendor=0x12d1
TargetProductLists="1001,1406,140c,141b,14ac,1035"

CheckSuccess=20

MessageContent="55534243123456780600000080010a11060000000000000000000000000000"

# for Android SDK
NoDriverLoading=1

==

/etc/usb_modeswitch.conf

has the following defaults except I turned on logging and set Huawei mode 1
Notice the default product ID to be switched to is 0x1031

==
# Disable automatic mode switching globally (e.g. to access the original
# install storage)

DisableSwitching=0

# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_<interface-name>"

EnableLogging=1

# Huawei E220 (aka "Vodafone EasyBox II", aka "T-Mobile wnw Box Micro")
# Huawei E270
# Huawei E870

#
# Two options: 1. removal of "usb-storage"  2. the special control
# message found by Miroslav Bobovsky
#
# Contributor: Hans Kurent, Denis Sutter
DefaultVendor=  0x12d1;
DefaultProduct= 0x1031

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

==

It turns out I didn't have to use a dialer to establish a connection.
Once the character device was recognized by the system. I just had to
flip the switch in the GUI network connections to start it
automatically. I guess thats HuaweiMode=1 is for. It sends the proper
control sequence and takes care of the usb serial stuff.

I guess I'm just not used to having Linux do all this stuff for me.

Now I'm going to mount the sd card on the phone and see what happens
to the connection. Is the software truly mode swiching or is it just a
mode switch?
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list