IGOS Nusantara dan Akses Seluler CDMA Haier CE100

Dari IGNwiki
Revisi per 20 Oktober 2010 05.56 oleh Ns (bicara | kontrib)

Langsung ke: navigasi, cari

Modem CDMA Haier CE100

Kernel

$ uname -a
Linux localhost.localdomain 2.6.35.6-37.ign5.i686 #1 SMP Sun Oct 3 10:07:10 WIT 2010 i686 i686 i386 GNU/Linux

Masukkan Modem

Masukkan Modem Haier CE100 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

Berikut wvdial.conf untuk Smart Telecom. Jika nomor #777 sulit terhubung, coba pakai alternatif:

  • username: wap, password: wap, dial-number: *31*11111#
  • username: cdma, password: cdma, dial-number: *31*11111#
  • username: smart, password: smart, dial-number: *31*11111#
  • username: wap, password: wap, dial-number: #777
  • username: cdma, password: cdma, dial-number : #777
  • username: smart, password: smart, dial-number : #777
[Dialer smart]
Auto DNS = on
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = yes
#Modem Type = Analog Modem
Modem Type = USB 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

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

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

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

$ 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

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