[clug] Virgin Mobile Broadband with Linux Huawei E220

Grant Morphett grant at gmorph.com
Fri May 2 01:01:48 GMT 2008


In a similar vein I have just got broadband working on my HTC p3600i using
Internet Sharing with a 3 Xseries plan.  I am connecting to the phone via
USB.  After much surfing and experimenting I found these very simple
instructions and it just works.  Very happy.

http://blog.linuxoss.com/2008/01/16/howto-usb-internet-sharing-with-linux-and-wm6/
http://ohioloco.ubuntuforums.org/showpost.php?p=3588717&postcount=54
http://forum.xda-developers.com/showthread.php?t=340747

All of them discuss exactly the same way to do it but the different comments
of users experiences at the end may help you diagnose any issues you may
experience.

cheers

Grant

2008/5/1 Hal Ashburner <hal.ashburner at gmail.com>:

> Hello Clug,
> Virgin mobile broadband was slightly more of a hassle to work through than
> I
> was expecting so i just want to make these notes discoverable on the
> interweb for the next person. I did this on debian stable and again on sid
> -
> I imgaine most of it translates to other distros and BSD ok. Do yell at me
> if I'm wrong about that, I am interested.
>
> Right so you plug in the usb modem, a huawei E220 and you want it to be
> represented by /dev/ttyUSB0
> on BSD the device file would already be there, so (I guess) ensure the
> relevant usbserial driver is loaded?
> on linux using udev we can ensure the kernel modules are loaded when it's
> plugged in.
> 1. Add a file /etc/udev/rules.d/50-huawei.rules
>
> SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1",
> RUN+="/sbin/modprobe option"
> SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1",
> RUN+="/sbin/modprobe ppp_async"
>
> "option" is the relevant usbserial driver on linux
>
> 2. create a file /etc/ppp/chat-E220
>
> ABORT BUSY
> ABORT ERROR
> ABORT 'NO CARRIER'
> REPORT CONNECT
> TIMEOUT 10
> "" "ATZ"
> OK AT+CGDCONT=1,"ip","VirginBroadband"
> OK "ATE1V1&D2&C1S0=0+IFC=2,2"
> OK "AT+IPR=115200"
> OK "ATE1"
> TIMEOUT 60
> "" "ATD*99#"
> CONNECT \c
>
> 3. create a file /etc/ppp/peers/E220
> debug
> /dev/ttyUSB0
> crtscts
> #modem
> refuse-chap
> require-pap
> noauth
> nodetach
> defaultroute
> noipdefault
> noccp
> nobsdcomp
> novj
> user "irrelevant"
> password "irrelevant"
> /usr/sbin/chat -s -S -V -f /etc/ppp/chat-E220-nopin'
>
>
> of particular interest there, and where virgin seem to differ from 3
> mobile
> and the other providers using this modem is
> refuse-chap
> require-pap
> without those your modem logs will show you everything you expect on
> initialisation but it will then mysteriously hang up on you.
> without giving some string for user and password it also seems to
> mysteriously not work despite that fact it doesn't seem to matter what.
>
>
> 4. at the prompt
> pon E220
>
> poff E220 to turn it off.
>
> I Hope that saves someone some time.
>
> --
> Kind regards,
> Hal Ashburner
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux
>



-- 
Thanks

Grant


More information about the linux mailing list