3G Modem Installation in Linux Ubuntu
It's been 2 months I am using Sierra 3G PCMCIA modem in Windows XP. Installation in Windows XP is quite easy, that's why for 2 months I am enjoying using it.
I dont know why this morning I had in mind how to install 3G modem in Ubuntu box. And I remember in installation CD, the seller also providing linux driver but there are no instruction how to install it :(. Yes, I think I have to install it myself.
I am using Ubuntu Gutsy and use the driver for Linux that included in installation CD.
Sierra provide driver for Linux, you can download Linux driver ini this page:
http://www.sierrawireless.com/faq/ShowFAQ.aspx?ID=1076
Installation
[email protected]:~$ cd /media/cdrom/Linux/
[email protected]:/media/cdrom/Linux$ cp sierra.v.1.0.6.tar.gz
[email protected]:/media/cdrom/Linux$ cp ppp-scripts.tar.gz
[email protected]:~$ sudo tar xvzf sierra.v.1.0.6.tar.gz
[sudo] password for katz:
[email protected]:~$ cd sierra.v.1.0.6/
[email protected]:~/sierra.v.1.0.6$ ls
Makefile sierra.c
Module.symvers
[email protected]:~/sierra.v.1.0.6$ sudo make
[email protected]:~/sierra.v.1.0.6$ ls
Makefile sierra.c sierra.mod.c sierra.o
Module.symvers sierra.ko sierra.mod.o
[email protected]:~/sierra.v.1.0.6$ dmesg
[ 22.272000]
/build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c:
USB Serial support registered for Sierra USB modem (3 port)
[ 22.272000] sierra 4-1:1.0: Sierra USB modem (3 port) converter detected
[ 22.276000] usb 4-1: Sierra USB modem (3 port) converter now attached to ttyUSB0
[ 22.276000] usb 4-1: Sierra USB modem (3 port) converter now attached to ttyUSB1
[ 22.276000] usb 4-1: Sierra USB modem (3 port) converter now attached to ttyUSB2
[ 22.276000] usbcore: registered new interface driver sierra
[ 22.276000]
/build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/sierra.c:
USB Driver for Sierra Wireless USB modems: v.1.0.6
Now my ubuntu has recognized the modem
[email protected]:~/sierra.v.1.0.6$ cd..
[email protected]:~$ sudo tar xvzf ppp-scripts.tar.gz
[email protected]:~$ cd ppp/
[email protected]:~/ppp$ ls
ip-down.local ip-up.local peers
[email protected]:~/ppp$ cd peers/
[email protected]:~/ppp/peers$ ls
cdma cdma_chat gsm gsm_chat
Explanation :
We dont need cdma n cdma_chat
[email protected]:~$ sudo cp ppp/ip-down.local /etc/ppp/
[email protected]:~$ sudo cp ppp/ip-up.local /etc/ppp/
[email protected]:~$ sudo cp ppp/peers/gsm /etc/ppp/peers/
[email protected]:~$ sudo cp ppp/peers/gsm_chat /etc/ppp/peers/
[email protected]:~$ sudo vi /etc/ppp/peers/gsm
-detach
lcp-echo-failure 0
/dev/ttyUSB0
460800
debug
defaultroute
usepeerdns
#ipcp-no-address
#ipcp-no-addresses
ipcp-max-failure 4
ipcp-accept-local
ipcp-accept-remote
# AUTHENTICATION
# If noauth works, use that, otherwise you have to pass
# the user name and password. This is an example of a
# standard Cingular user/pw combo
#noauth
user xxxxxxx
password xxxxxxx
crtscts
lock
connect '/usr/sbin/chat -v -t6 -f /etc/ppp/peers/gsm_chat'
Explanation :
User xxxxx
Password xxxxx
[email protected]:~$ sudo vi /etc/ppp/peers/gsm_chat
OK 'AT+CGDCONT=1,"IP","ISP.CINGULAR"'
#OK 'AT+CGDCONT=2,"IP","ISP.CINGULAR"'
#######################################
SAY '\n'
SAY 'Dialing...\n'
# Dial the ISP, this is the common Cingular dial string
OK ATD*99***1#
CONNECT ''
Explanation :
OK 'AT+CGDCONT=1,"IP","ISP.CINGULAR"'
OK ATD*99***1#
[email protected]:~$ sudo pppd call gsm
Starting Sierra Wireless GSM connect script...
Setting the abort string
Initializing modem
Setting APN
Dialing...
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 /dev/ttyUSB0
[email protected]:~$ ping google.com
PING google.com (72.14.207.99) 56(84) bytes of data.
64 bytes from eh-in-f99.google.com (72.14.207.99): icmp_seq=1 ttl=242 time=948 ms
64 bytes from eh-in-f99.google.com (72.14.207.99): icmp_seq=2 ttl=242 time=948 ms
Use Ctrl + C to end your connection
- roemasa's blog
- Add new comment
- 4559 reads