3G Modem Installation in Linux Ubuntu

  • : Function ereg() is deprecated in /home/dhuha/public_html/includes/file.inc on line 646.
  • : Function ereg() is deprecated in /home/dhuha/public_html/includes/file.inc on line 646.
  • : Function ereg() is deprecated in /home/dhuha/public_html/includes/file.inc on line 646.
  • : Function ereg() is deprecated in /home/dhuha/public_html/includes/file.inc on line 646.
  • : Function ereg() is deprecated in /home/dhuha/public_html/includes/file.inc on line 646.
  • : Function ereg() is deprecated in /home/dhuha/public_html/includes/file.inc on line 646.
  • : Function ereg() is deprecated in /home/dhuha/public_html/includes/file.inc on line 646.
  • : Function ereg() is deprecated in /home/dhuha/public_html/includes/file.inc on line 646.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /home/dhuha/public_html/modules/filter/filter.module on line 1206.

Sierra 3G ModemIt'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"'                     www.xlgprs.net

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

klo pake sierra 875U gimana caranya?

maap om, numpang nanya.. gimana cara biar bisa pake modem HSDPA Sierra 875U di Ubuntu.. saya bingung soalnya kan musti pake internet.. trus saya gak punya sambungan internet (telpun).. biasa konek cuman pake modem itu.. mohon bantuannya..

frida, email : mad_ult[at]yahoo[dot]com

Re: klo pake sierra 875U gimana caranya?

Sekedar menambahkan bahwa bagi yang memiliki modem 3G/3.5G merk Sierra bisa langsung download driver untuk Linux (kemungkinan semua distro Linux) di link berikut:
http://www.sierrawireless.com/faq/ShowFAQ.aspx?ID=1076
Download 2 file yang ada disana yaitu :
1. Download the sierra.c driver (v.1.0.6b) file
2. Download the pppd scripts file
Atau jika anda ingin bisa sesuaikan driver yang akan didownload dengan kernel Linux anda. Tapi secara umum 2 file diatas cukup. Untuk mengetahui kernel Linux anda ketik di konsol/terminal:
[email protected]:~$ uname -a
Linux katz 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC 2008 i686 GNU/Linux
Cara instalasi dan konfigurasi driver bisa disesuaikan dengan artikel saya yang diatas.
Tambahan: Pada siang ini saya coba konfigurasi untuk kartu 3.5G Indosat agar bisa dipakai di Linux Ubuntu dan ternyata sukses.
Seperti ini teknisnya:
Ubah file /etc/ppp/peers/gsm, cari bagian username dan password
[email protected]:~$ sudo vi /etc/ppp/peers/gsm
#noauth
user indosat
password indosat

Lalu ubah file /etc/ppp/peers/gsm_chat, cari bagian #OK dan lalu ubah menjadi seperti contoh dibawah ini
[email protected]:~$ sudo vi /etc/ppp/peers/gsm_chat

#REG:\s1 AT+cgdcont=1,"IP","proxy"
#OK 'AT+CGDCONT=0,"IP","proxy"'
#OK 'AT+CGDCONT=1,"IP","proxy"'
#OK 'AT+CGDCONT=2,"IP","proxy"'
#OK 'AT+CGDCONT=0,"IP","ISP.CINGULAR"'
OK 'AT+CGDCONT=1,"IP","indosat3g"'
#OK 'AT+CGDCONT=2,"IP","ISP.CINGULAR"'

Lalu jalankan skrip 'gsm' tersebut
[email protected]:~$ sudo pppd call gsm
Dan anda pun sudah bisa menggunakan modem 3G Sierra di Linux Ubuntu