View Full Version : Koneksi internet dengan modem Smartfren AC2726i di Archlinux


zxvbm
29th August 2012, 05:15 PM
Catatan ini ane tulis awal taun 2012, waktu ane nyoba archlinux-2011.08.19-core-dual.iso (http://kambing.ui.ac.id/iso/archlinux/2011.08.19/archlinux-2011.08.19-core-dual.iso)
Koneksi internet dengan modem Smartfren AC2726i di Archlinux



Paket-paket software sama dependensi yang dibutuhkan, antara lain:
wvstreams, xplc, wvdial, usb_modeswitch, tcl

Semua paket tersebut bisa didownload di bawah ini:

1) archlinux.org (http://www.archlinux.org/) -- mirror: mirrors.kernel.org (http://mirrors.kernel.org/)
usb_modeswitch (http://www.archlinux.org/packages/community/i686/usb_modeswitch/download/)
tcl (http://www.archlinux.org/packages/extra/i686/tcl/download/)
wvdial (http://www.archlinux.org/packages/community/i686/wvdial/download/)
wvstream (http://www.archlinux.org/packages/community/i686/wvstreams/download/)
xplc (http://www.archlinux.org/packages/community/i686/xplc/download/)

2) pkgs.org (http://pkgs.org/) -- mirror: ftp5.gwdg.de (ftp://ftp5.gwdg.de/)
usb_modeswitch (http://ftp5.gwdg.de/pub/linux/archlinux/community/os/i686/usb_modeswitch-1.2.2-1-i686.pkg.tar.xz)
tcl (http://ftp5.gwdg.de/pub/linux/archlinux/extra/os/i686/tcl-8.5.11-1-i686.pkg.tar.xz)
wvdial (http://ftp5.gwdg.de/pub/linux/archlinux/community/os/x86_64/wvdial-1.61-3-x86_64.pkg.tar.xz)
wvstream (http://ftp5.gwdg.de/pub/linux/archlinux/community/os/i686/wvstreams-4.6.1-3-i686.pkg.tar.xz)
xplc (http://ftp5.gwdg.de/pub/linux/archlinux/community/os/i686/xplc-0.3.13-3-i686.pkg.tar.xz)


Pada saat modem USB dicolokkan, Archlinux udah langsung mengenali modem USB.
Gunakan perintah lsusb untuk melihat hasilnya.

[root@archer ~]# lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 001 Device 003: ID 19d2:fff5 ONDA Communication S.p.A.
[root@archer ~]#


Device modem USB yang dikenali adalah "Bus 001 Device 003: ID 19d2:fff5 ONDA Communication S.p.A.".
Selanjutnya kita perlu mengubah dari mode storage ke mode modem dengan menggunakan usb_modeswitch.
Langkah pertama adalah instalasi usb_modeswitch beserta dependensinya.

[root@archer ~]# pacman –U usb_modeswitch-1.2.2-1-i686.pkg.tar.xz tcl-8.5.11-1-i686.pkg.tar.xz

Tunggu hingga proses instalasi selesai.
Lalu gunakan kembali perintah lsusb.

[root@archer ~]# lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 001 Device 004: ID 19d2:fff1 ONDA Communication S.p.A.
[root@archer ~]#


Jika berhasil, pada baris terakhir akan berubah menjadi fff1 bukan fff5, kalo belum tunggu beberapa saat lalu ulangi perintah lsusb. Selanjutnya instalasi wvdial beserta dependensinya.

[root@archer ~]# pacman –U wvdial-1.61-3-i686.pkg.tar.xz wvstreams-4.6.1-3-i686.pkg.tar.xz xplc-0.3.13-3-i686.pkg.tar.xz

Tunggu sampe proses instalasi selesai.
Kemudian jalankan perintah wvdialconf, untuk konfigurasi wvdial.

[root@archer ~]# wvdialconf

Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan: S0 S1 S2 S3
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: QUALCOMM INCORPORATED
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

Found a modem on /dev/ttyUSB0.
/etc/wvdial.conf<Warn>: Can't open '/etc/wvdial.conf' for reading: No such file or directory
/etc/wvdial.conf<Warn>: ...starting with blank configuration.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init &quot;ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0&quot;



Untuk melihat hasil konfigurasinya:

[root@archer ~]# cat /etc/wvdial.conf

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone = <Target Phone Number>
ISDN = 0
; Username = <Your Login Name>
Init1 = ATZ
; Password = <Your Password>
Modem = /dev/ttyUSB0
Baud = 9600
[root@archer ~]#


Lalu ubah sesuai dengan konfigurasi modem Smart:

[root@archer ~]# nano /etc/wvdial.conf

[Dialer smart]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = smart
Init1 = ATZ
Password = smart
Modem = /dev/ttyUSB0
Baud = 9600
FlowControl = CRTSCTS
Carrier Check = No
New PPPD = yes
[root@archer ~]#


Untuk mengaktifkan koneksi ke Internet, lakukan dengan perintah berikut:

[root@archer ~]# wvdial smart

--> WvDial: Internet dialer version 1.61.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!}!} }3}&quot;}&} } } } }#}%B#}’}”}(}”w}0~
--> PPP negotiation detected.
--> Starting pppd at Wed Feb 15 23:25:06 2012
--> Pid of pppd: 922
--> Using interface ppp0
--> pppd: H■■ P■■
--> pppd: H■■ P■■
--> pppd: H■■ P■■
--> pppd: H■■ P■■
--> pppd: H■■ P■■
--> local IP address 10.116.139.61
--> pppd: H■■ P■■
--> remote IP address 10.17.95.21
--> pppd: H■■ P■■
--> primary DNS address 10.17.3.244
--> pppd: H■■ P■■
--> secondary DNS address 10.17.3.245
--> pppd: H■■ P■■


Tes koneksi, misal ke www.google.com.

[root@archer ~]# ping -c 5 www.google.com

PING www.google.com (74.125.235.19) 56(84) bytes of data.
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=1 ttl=53 time=79.4 ms
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=2 ttl=53 time=91.6 ms
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=3 ttl=53 time=86.5 ms
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=4 ttl=53 time=84.4 ms
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=5 ttl=53 time=79.3 ms

--- www.google.com ping statistics ---

5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 79.368/84.289/91.693/4.656 ms
[root@archer ~]#


Selesai.

Untuk selanjutnya, sebelum internetan, aktifin dulu wvdial-nya dengan perintah wvdial smart dari terminal.

admin
29th August 2012, 06:04 PM
wah ... wawh ... ada forumker yang jago IT

Selamat datang oom pakar IT :peacesign:

zxvbm
29th August 2012, 06:17 PM
wah ... wawh ... ada forumker yang jago IT

Selamat datang oom pakar IT :peacesign:

yakinlah suwer, ane ga jago IT, apalagi pakar IT :gheadbash: cuma sering aja.
itu temen ane yg ngajairin om :D

setan
29th August 2012, 06:37 PM
Siap meramaikan forumku.com
Ayo Min, semangat ngembangin forum ini.
Yang lain mohon membantu untuk menambahkan forumku.com di ;
1. Google Add Url
2. Share Facebook
3. Share Twitter
4. Add to Blog
5. Promosi di kaskus :D