e220PrecisePangolin (Linux)

This is a help file for those wanting to hookup a e220 with the new called Ubuntu Precise Pangolin um i have decided to go back to another Ubuntu because i don't like Unity desktop so i went for a non Ubuntu just for this faq but I hope the information gets it running on precise pango ( screen shot from Puppy Linux's ppp script ) note no responsiblity taken for any scripts/hardware  you implement from this information you run them at your own risk no warranty at all.

um on puppy i have a problem with exiting to shutdown  ( it just restarts x again afterwards ) if you can help me ?


stephen@stephen666-laptop:~$ lsusb
Bus 005 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 003 Device 002: ID 0489:e00d Foxconn / Hon Hai 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 04f2:b1b8 Chicony Electronics Co., Ltd 
Bus 001 Device 003: ID 0bda:0158 Realtek Semiconductor Corp. Mass Storage Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
stephen@stephen666-laptop:~$ 

This is how you do it... if you are too lazy to click on the image above here is the main relevant lines ( just strip the ok's and error's to make your own script )

if LSUSB command shows this line you are ready to go if you havn't got that one you probably need to upgrade your kernel to support that device

Bus 004 Device 002: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem script output follows the full script from puppy to do the same thing at the bottom of page

AT
OK
AT+CPIN=""
ERROR
AT+CDGCONT=0,"IP","Preconnect"  // this is the APN for Optus Australia ISP insert your own here
OK
ATH
OK
ATE1
OK
AT+CSQ  // connect the equipment ready for transmission of dial string
OK
ATD*99***1#

// Waiting for connect ..............



etc now here is the provider script that pppd executes under Ubuntu Lucid Lynx
from the configuration file located at
/etc/ppp/peers/provider

# example configuration for a dialup connection authenticated with PAP or CHAP
#
# This is the default configuration used by pon(1) and poff(1).
# See the manual page pppd(8) for information on all the options.

# MUST CHANGE: replace myusername@realm with the PPP login name given to
# your by your provider.
# There should be a matching entry with the password in /etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
user "myusername@realm"

# MUST CHANGE: replace ******** with the phone number of your provider.
# The /etc/chatscripts/pap chat script may be modified to change the
# modem initialization string.
connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********"

# Serial device to which the modem is connected.
/dev/modem

# Speed of the serial line.
115200

# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
defaultroute

# Makes pppd "dial again" when the connection is lost.
persist

# Do not ask the remote to authenticate.
noauth

if you don't have the connect program above then

apt-get install connect-proxy

or using WVDIAL

apt-get install wvdial

obviously if you don't have internet you have to get them from the CD-ROm :) here is the E220 modem shape so you can see if you have the right one oh and you can still buy them on Ebay as of August 2012 and SSD device
Comments