Posted by: isaraffee | September 14, 2009

Exploring Huawei Modem E220 on Ubuntu 9.04 Jaunty

Exploring Huawei Modem E220 on Ubuntu Jaunty

After insertinng the E22O broadband modem, execute wvdial and look at the /var/log/syslog

Aug 22 23:35:26 ismail-laptop pppd[3755]: pppd 2.4.5 started by root, uid 0

Aug 22 23:35:26 ismail-laptop pppd[3755]: Using interface ppp0

Aug 22 23:35:26 ismail-laptop pppd[3755]: Connect: ppp0 <–> /dev/ttyUSB0

Aug 22 23:35:26 ismail-laptop pppd[3755]: CHAP authentication succeeded

Aug 22 23:35:26 ismail-laptop pppd[3755]: CHAP authentication succeeded

Aug 22 23:35:26 ismail-laptop kernel: [ 472.843238] PPP BSD Compression module registered

Aug 22 23:35:26 ismail-laptop kernel: [ 472.859236] PPP Deflate Compression module registered

The /var/log/messages recorded the following messages:

Aug 22 23:27:57 ismail-laptop kernel: [ 24.163559] option: v0.7.2:USB Driver for GSM modems

Aug 22 23:35:26 ismail-laptop pppd[3755]: pppd 2.4.5 started by root, uid 0

Aug 22 23:35:26 ismail-laptop pppd[3755]: Using interface ppp0

Aug 22 23:35:26 ismail-laptop pppd[3755]: Connect: ppp0 <–> /dev/ttyUSB0

Aug 22 23:35:26 ismail-laptop pppd[3755]: CHAP authentication succeeded

Aug 22 23:35:26 ismail-laptop pppd[3755]: CHAP authentication succeeded

Aug 22 23:35:26 ismail-laptop kernel: [ 472.843238] PPP BSD Compression module registered

Aug 22 23:35:26 ismail-laptop kernel: [ 472.859236] PPP Deflate Compression module registered

The /etc/wvdial.conf file has the following contents:

root@ismail-laptop:~# more /etc/wvdial.conf

[Dialer Defaults]

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Modem Type = Analog Modem

Baud = 9600

New PPPD = yes

Modem = /dev/ttyUSB0

ISDN = 0

Phone = *99#

Password = user123

Username = 65

Looking at the usb devices connected to the laptop:

root@ismail-laptop:~# lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

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

Bus 002 Device 002: ID 0a81:0101 Chesen Electronics Corp. Keyboard

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Looking at the modules that were loaded:

root@ismail-laptop:~# lsmod

Module Size Used by

ppp_deflate 12800 0

zlib_deflate 28312 1 ppp_deflate

bsd_comp 13568 0

ppp_async 16896 1

crc_ccitt 10112 1 ppp_async

option 28036 1

usbserial 39656 4 option

usb_storage 99520 0

binfmt_misc 16776 1

ppdev 15620 0

radeon 342816 2

drm 96296 3 radeon

bridge 56340 0

stp 10500 1 bridge

bnep 20224 2

input_polldev 11912 0

joydev 18368 0

lp 17156 0

parport 42220 2 ppdev,lp

pcmcia 44748 0

snd_hda_intel 434100 3

snd_pcm_oss 46336 0

snd_mixer_oss 22656 1 snd_pcm_oss

snd_pcm 82948 2 snd_hda_intel,snd_pcm_oss

snd_seq_dummy 10756 0

snd_seq_oss 37760 0

snd_seq_midi 14336 0

snd_rawmidi 29696 1 snd_seq_midi

snd_seq_midi_event 15104 2 snd_seq_oss,snd_seq_midi

wlan_scan_sta 20480 1

snd_seq 56880 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event

snd_timer 29704 2 snd_pcm,snd_seq

snd_seq_device 14988 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq

yenta_socket 32396 1

acer_wmi 24260 0

psmouse 61972 0

rsrc_nonstatic 19328 1 yenta_socket

ath_rate_sample 19840 1

pcspkr 10496 0

led_class 12036 1 acer_wmi

snd 62628 15 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device

soundcore 15200 1 snd

snd_page_alloc 16904 2 snd_hda_intel,snd_pcm

serio_raw 13316 0

pcmcia_core 43540 3 pcmcia,yenta_socket,rsrc_nonstatic

ath_pci 99224 0

wlan 210288 4 wlan_scan_sta,ath_rate_sample,ath_pci

ath_hal 198864 3 ath_rate_sample,ath_pci

i2c_piix4 18448 0

shpchp 40212 0

ati_agp 14988 0

agpgart 42696 2 drm,ati_agp

video 25360 0

output 11008 1 video

usbhid 42336 0

8139too 32128 0

8139cp 27776 0

mii 13312 2 8139too,8139cp

fbcon 46112 0

tileblit 10752 1 fbcon

font 16384 1 fbcon

bitblit 13824 1 fbcon

softcursor 9984 1 bitblit

ppp deflate module was recorded on the syslog messages:

root@ismail-laptop:~# grep -i “ppp deflate” /var/log/syslog

Aug 22 23:35:26 ismail-laptop kernel: [ 472.859236] PPP Deflate Compression module registered

Let’s find out more about this module.

root@ismail-laptop:~# modinfo ppp_deflate

filename: /lib/modules/2.6.28-13-generic/kernel/drivers/net/ppp_deflate.ko

alias: ppp-compress-24

alias: ppp-compress-26

license: Dual BSD/GPL

srcversion: 1E2B8ED91B14B7085F97770

depends: zlib_deflate

vermagic: 2.6.28-13-generic SMP mod_unload modversions 586

PPP Deflate

Used for compressing PPP encapsulated packets

The following commands are worth mentioning:

root@ismail-laptop:~# ip route show

10.64.64.64 dev ppp0 proto kernel scope link src 124.197.72.208

default dev ppp0 scope link

root@ismail-laptop:~# ifconfig ppp0

ppp0 Link encap:Point-to-Point Protocol

inet addr:124.197.72.208 P-t-P:10.64.64.64 Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1

RX packets:451 errors:0 dropped:0 overruns:0 frame:0

TX packets:484 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:3

RX bytes:402593 (402.5 KB) TX bytes:77650 (77.6 KB)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: