setting Modem Haier CE 210 di Linux Ubuntu

Kali ini saya kedapetan fasilitas free internet dari kantor, karena berhubung kantor saya adalah salah satu operator CDMA, maka fasilitas free internetnya juga menggunakan kartu CDMA hehehehe. Cuma karena free internetnya yang dikasih cuma kartunya saja – padahal kan pengennya sekalian dapet sama modemnya juga 🙁 – jadi ya mau ga mau saya harus beli modem CDMA yang ada dipasaran. Ok saya surfing diinternet nyari modem yang bagus, dan dari hasil ngobrol2 dikomunitas, ternyata modem CDMA yang bagus saat ini adalah type Modem Haier CE 210.

Tapi ada kendala pada saat saya mencoba untuk tester modemnya, pertama laptop saya ga ada Windowsnya :(, yang kedua ternyata dipaketan CD maupun didalam modemnya ngga dimasukin aplikasi yang bisa running di Linux.

Ya sudah mau ngga mau saya harus menggunakan fasilitas wvdial agar modem ini bisa berjalan, berikut adalah step-stepnya:

Masukkan Modem

Masukkan Modem Haier CE210 ke slot USB di PC, saat awal

$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 046d:c045 Logitech, Inc. Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 009: ID 201e:2009
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 005: ID 0bc2:2300 Seagate RSS LLC
Bus 001 Device 003: ID 13b1:001e Linksys WUSBF54G 802.11bg
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Status: USB Storage

Saat awal masih dikenal sebagai USB storage

$ dmesg | tail
ISOFS: changing to secondary root
sr1: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00
sr: Sense Key : Hardware Error [current]
sr: Add. Sense: No additional sense information
sr1: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00
sr: Sense Key : Hardware Error [current]
sr: Add. Sense: No additional sense information
sr1: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00
sr: Sense Key : Hardware Error [current]
sr: Add. Sense: No additional sense information
$ ls -l /dev/ttyU*
ls: tidak dapat mengakses /dev/ttyU*: Tidak ada berkas atau direktori seperti itu

Lakukan eject

# eject /dev/sr1

modprobe usbserial

# modprobe usbserial vendor=0×201e product=0×2009

Status: USB Modem

# eject /dev/sr1
# dmesg |tail
usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-1: Product: Qualcomm CDMA Technologies MSM
usb 3-1: Manufacturer: Qualcomm, Incorporated
usb 3-1: SerialNumber: 00100_DATACAR
option 3-1:1.0: GSM modem (1-port) converter detected
usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
option 3-1:1.1: GSM modem (1-port) converter detected
usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
option 3-1:1.2: GSM modem (1-port) converter detected
usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
# ls -l /dev/ttyU*
crw-rw---- 1 root dialout 188, 0 Mei 23 12:35 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Mei 23 12:35 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Mei 23 12:35 /dev/ttyUSB2

/etc/wvdial.conf

[Dialer smart]
Auto DNS = on
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = yes
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800
Dial Command = ATDT
FlowControl = CRTSCTS
Ask Password = 0
Stupid Mode = 1
Compuserve = 0
Idle Seconds = 300
[Dialer aha]
Auto DNS = on
Init = ATZ
Init = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 115200
Modem= /dev/ttyUSB0
Phone = #777
Username = aha@aha.co.id
Password = aha
New PPPD = yes
Stupid Mode = 1

/etc/udev/rules.d/99-haier-ce210.rules

Agar setiap memasukkan Modem Haier CE210 ke slot USB langsung diubah menjadi USB Modem, buat /etc/udev/rules.d/99-haier-ce210.rules, isinya:

SYSFS{idVendor}=="201e", SYSFS{idProduct}=="2009", RUN+="/usr/bin/eject %k"

Jika memakai SMART TELECOM

$ sudo wvdial smart

–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> 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.
–> Idle Seconds = 300, disabling automatic reconnect.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT 3100000
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Sun Jan 3 15:19:52 2010
–> Pid of pppd: 2121
–> Using interface ppp0
–> pppd: ?u` @l`
–> pppd: ?u` @l`
–> pppd: ?u` @l`
–> pppd: ?u` @l`
–> pppd: ?u` @l`
–> local IP address 10.11.149.207
–> pppd: ?u` @l`
–> remote IP address 10.17.4.12
–> pppd: ?u` @l`
–> primary DNS address 10.17.3.244
–> pppd: ?u` @l`
–> secondary DNS address 10.17.3.252

 

Jika memakai AHA

$ wvdial aha

--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT 3100000
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Oct 20 13:07:22 2010
--> Pid of pppd: 5854
--> Using interface ppp0
--> local  IP address 10.64.23.129
--> remote IP address 192.168.240.83
--> primary   DNS address 10.8.9.2
--> secondary DNS address 202.152.192.35

Tampilan di atas menandakan koneksi ke internet sudah sukses. Saat masih di terminal tekan CTRL + Shift + T kemudian ketik perintah berikut

$ ping -s -t yahoo.com

Memutus koneksi

Memutus koneksi tekan CTRL + C

 

Semoga bermanfaat 😉

3 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA :: This question is for testing whether or not you are a human visitor and to prevent automated spam submissions * Time limit is exhausted. Please reload the CAPTCHA.