3G modem di linux

Any problem with your 3G modem? I hope this tutorial [with sierra modem] will fixing your problem.

Sierra provide driver for linux : sierrawireless

Installation :

linux@linux:~$ cd /media/cdrom/Linux/
linux@linux:/media/cdrom/Linux$ cp sierra.v.1.0.6.tar.gz
linux@linux:/media/cdrom/Linux$ cp ppp-scripts.tar.gz
linux@linux:~$ sudo tar xvzf sierra.v.1.0.6.tar.gz
[sudo] password for katz:
linux@linux:~$ cd sierra.v.1.0.6/
linux@linux:~/sierra.v.1.0.6$ ls
Makefile sierra.c
Module.symvers
linux@linux::~/sierra.v.1.0.6$ sudo make
linux@linux::~/sierra.v.1.0.6$ ls
Makefile sierra.c sierra.mod.c sierra.o
Module.symvers sierra.ko sierra.mod.o
linux@linux:~/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 your ubuntu has recognize the 3G modem.

linux@linux:~/sierra.v.1.0.6$ cd..
linux@linux:~$ sudo tar xvzf ppp-scripts.tar.gz
linux@linux:~$ cd ppp/
linux@linux::~/ppp$ ls
ip-down.local ip-up.local peers
linux@linux:~/ppp$ cd peers/
linux@linux:~/ppp/peers$ ls
cdma cdma_chat gsm gsm_chat

Explanation :
We don’t need CDMA n CDMA_CHAT, so we will edit file gsm in /etc/ppp/peers/gsm

linux@linux:~$ sudo cp ppp/ip-down.local /etc/ppp/
linux@linux:~$ sudo cp ppp/ip-up.local /etc/ppp/
linux@linux:~$ sudo cp ppp/peers/gsm /etc/ppp/peers/
linux@linux:~$ sudo cp ppp/peers/gsm_chat /etc/ppp/peers/
linux@linux:~$ 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 aaaaa
password bbbbb
crtscts
lock
connect ‘/usr/sbin/chat -v -t6 -f /etc/ppp/peers/gsm_chat’

Explanation :
User aaaaa <= change aaaaa with your user account. For example : indosat@durasi Password bbbbb <= change bbbbb with your user password. For example : indosat@durasi

linux@linux:~$ 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"' <= Change ISP.CINGULAR according to your provider. For example : indosatgprs
OK ATD*99***1# <= The dial number

linux@linux:~$ 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
linux@linux:~$ 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.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: