Tuesday, 18 October 2011

[About Linux] Setting modem Smartfren Connex AC682

Mungkin untuk teman-teman pengguna Ubuntu akan sedikit kesulitan untuk menggunakan modem Smartfren connex. untuk penggunaan modem di OS windows dan Linux khususnya untuk modem CDMA memang agak berbeda, karena di Linux/Ubuntu kita membutuhkan wvdial. karena OS yang berbasiskan Linux hingga saat ini hanya mensupport dan mendeteck modem GSM saja. begini pengaturannya. pertama anda harus download dulu paket-paket wvdialnya ini linknya download1download2download3download4,
setelah kalian download paket-paket tersebut anda hanya tinggal klik 2x saja, seperti mengklik file berekstensi .exe di windows. lalu ikuti perintah-perintah yang saya lakukan dibawah ini.

1. masuk ke desktop komputer anda dan colokkan modem anda, lalu cari terminal dan lakukan perintah ini 
indra@indra-desktop:~$ sudo -s
[sudo] password for indra: 
root@indra-desktop:~# lsusb
Bus 003 Device 002: ID 09da:000a A4 Tech Co., Ltd Port Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 19d2:ffde ONDA Communication S.p.A.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Dari hasil tsb di dapatkan vendor id (19d2) dan product id (ffde). Kode ffde berarti modem terdeteksi sebagai storage device atau CD-ROM.

2. Sekarang kita eject drive CD-ROM tsb
root@indra-desktop:~# sudo eject /dev/sr1

3. Ketik lsusb untuk mengetahui perubahan produk id dari ffde ke ffdd.
root@indra-desktop:~# lsusb
Bus 005 Device 003: ID 19d2:ffdd ONDA Communication S.p.A. 
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 15d9:0a37 Trust International B.V. Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Catatan: jika tidak terjadi perubahan produk, cabut kemudian colokin lagi modemnya.

4. Lakukan Modprobe
root@indra-desktop:~# sudo modprobe usbserial vendor=0x19d2 product=0xffdd

5. Ketik wvdialconf untuk membuat file /etc/wvdial.conf
root@indra-desktop:~# sudo wvdialconf 
Editing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
……………………….
………………………..
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
………………………….Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

6. Edit file /etc/wvdial.conf
root@indra-desktop:~#sudo gedit /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 = 460800
Command Line = ATDT
Stupid Mode = 1
[Dialer mobi]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = m8
Init1 = ATZ
Password = m8
Modem = /dev/ttyUSB0
Baud = 460800
Command Line = ATDT
Stupid Mode = 1

7. Jalankan wvdial smart (jika pake operator smart) wvdial mobi (jika pake mobi)
root@indra-desktop:~# sudo wvdial smart
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: 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]}#@!}!} } }=}!}$}%\}”}&} } } } }#}%B#}%}%}&hk#>}’}”}(}” !~
–> PPP negotiation detected.
–> Starting pppd at Fri Dec 3 23:01:31 2010
–> Pid of pppd: 1647
–> Using interface ppp0
–> pppd: ���[08]���[08]
–> pppd: ���[08]���[08]
–> pppd: ���[08]���[08]
–> pppd: ���[08]���[08]
–> pppd: ���[08]���[08]
–> local IP address 10.1.63.194
–> pppd: ���[08]���[08]
–> remote IP address 2.2.2.2
–> pppd: ���[08]���[08]
–> primary DNS address 117.18.224.146
–> pppd: ���[08]���[08]
–> secondary DNS address 117.18.224.147
–> pppd: ���[08]���[08]

jika alamat IP nya sudah terlihat maka modem siap untuk di gunakan, :)
 tarraaaaaa... :)
~semoga bermanfaat~ jangan lupa komment ya :D









0 komentar:

Post a Comment

Recent Posts