Smartfren Haier CE682 di Ubuntu OS


Ternyata modem smartfren Haier CE682 adalah seri baru pengganti dari ZTE AC682 , dan langsung deh googling untuk pengaturannya di ubuntu, dan akhirnya ketemu dan sekarang akan saya tuliskan lagi :D

Dan ketika di colokin ke usb untuk pertama kali ternyata sama, belum kedetect, ternyata masih dikenali sebagai CD ROM. terlihat dari hasil dmesgnya :
rizky@rzkii-UL30VT:~$ dmesg | tail
[18.767655] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro,commit=600
[19.126218] init: plymouth-stop pre-start process (1399) terminated with status 1
[20.261086] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro,commit=600
[977.492059] usb 7-1: new full speed USB device number 2 using uhci_hcd
[977.719269] scsi5 : usb-storage 7-1:1.0
[978.720176] scsi 5:0:0:0: CD-ROM CDROM EVDO ReV A 7.00 PQ: 0 ANSI: 2
[978.744149] sr0: scsi-1 drive
[978.744157] cdrom: Uniform CD-ROM driver Revision: 3.20
[978.744445] sr 5:0:0:0: Attached scsi CD-ROM sr0
[978.744737] sr 5:0:0:0: Attached scsi generic sg2 type 5 

Karena itu, eject dulu cdromnya dengan perintah :
rizky@rzkii-UL30VT:~$ sudo eject /dev/sr0 

Lihat lagi dengan dmesgnya :
rizky@rzkii-UL30VT:~$ dmesg | tail
[  978.744149] sr0: scsi-1 drive
[  978.744157] cdrom: Uniform CD-ROM driver Revision: 3.20
[  978.744445] sr 5:0:0:0: Attached scsi CD-ROM sr0
[  978.744737] sr 5:0:0:0: Attached scsi generic sg2 type 5
[ 1183.128325] usb 7-1: USB disconnect, device number 2
[ 1185.652230] usb 7-1: new full speed USB device number 3 using uhci_hcd
[ 1185.822001] scsi6 : usb-storage 7-1:1.3
[ 1186.824601] scsi 6:0:0:0: Direct-Access     SDVDISK  EVDO ReV A       7.00 PQ: 0 ANSI: 0 CCS
[ 1186.851953] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 1186.859537] sd 6:0:0:0: [sdc] Attached SCSI removable disk 

 sudah terdeteksi, sekarang periksa modem dengan perintah :
rizky@rzkii-UL30VT:~$ 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 003 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 064e:a136 Suyin Corp. Asus Integrated Webcam [CN031B]
Bus 002 Device 002: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 003 Device 002: ID 0b05:1751 ASUSTek Computer, Inc. BT-253 Bluetooth Adapter
Bus 007 Device 003: ID 201e:1022

Ternyata terdetect dengan vendor dan product idnya,Bus 007 Device 003: ID 201e:1022 tapi nama vendornya ga muncul, ga masalah tetep lanjut. sekarang ke pengaturan, masuk ke :
rizky@rzkii-UL30VT:~$ sudo gedit /etc/usb_modeswitch.conf

Tambahkan kode dibawah ke baris yang paling akhir :
########################################################
# /etc/usb_modeswitch.conf
#
# Smart Haier CE682 (EVDO)
#

DefaultVendor = 0x201e
DefaultProduct = 0×1022

TargetVendor = 00x201e
TargetProduct = 0×1022

MessageContent=”5553424312345678c00000008000069f030000000000000000000000000000″

Sekarang masuk ke :
rizky@rzkii-UL30VT:~$ sudo gedit /etc/udev/rules.d/99-haier-ce682.rules 

Dan diisi dengan :
########################################################
# /etc/udev/rules.d/99-zte-ce682.rules
#
# Smart Haier CE682 (EVDO)
#
SUBSYSTEM==”usb”,SYSFS{idVendor}==”201e”,
SYSFS{idProduct}==”1022″, RUN+=”/usr/sbin/usb_modeswitch –default-vendor 0x201e –default-product 0×1022 –message-content 5553424312345678c00000008000069f030000000000000000000000000000″

Lalu 'Save'sekarang 'Load' beberapa parameter yang akan dibutuhkan ke kernel :
rizky@rzkii-UL30VT:~$ sudo modprobe usbserial vendor=0X201e product=0X1022

Lalu deteksi modemnya via wvdial, bagi yang blum diinstal instal dulu dengan perintah : sudo apt-get install wvdialatau install secara offline dengan mendownload satu persatu, cari aja di google ;)
rizky@rzkii-UL30VT:~$ wvdialconfEditing `/etc/wvdial.conf’.

Scanning your serial ports for a modem.

ttyS0: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyS1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS1: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS1: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan: S2 S3 S4 S5 S6 S7 S8 S9
Modem Port Scan: S10 S11 S12 S13 S14 S15 S16 S17
Modem Port Scan: S18 S19 S20 S21 S22 S23 S24 S25
Modem Port Scan: S26 S27 S28 S29 S30 S31
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 — OK
ttyUSB0: ATQ0 V1 E1 Z — OK
ttyUSB0: ATQ0 V1 E1 S0=0 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0: Modem Identifier: ATI — Manufacturer: +GMI: China TeleCom
ttyUSB0: Speed 9600: AT — OK
ttyUSB0: Max speed is 9600; that should be safe.
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem: Cannot get information for serial port.
ttyUSB1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 — and failed too at 115200, giving up.
WvModem: Cannot get information for serial port.
ttyUSB2: ATQ0 V1 E1 — OKttyUSB2: ATQ0 V1 E1 Z — OK
ttyUSB2: ATQ0 V1 E1 S0=0 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB2: Modem Identifier: ATI — Manufacturer: +GMI: China TeleCom
ttyUSB2: Speed 9600: AT — OK
ttyUSB2: Max speed is 9600; that should be safe.
ttyUSB2: 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″
ttyUSB2: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

Modem terdeteksi di /dev/ttyUSB0lanjut ke pengaturan wvdial
masuk ke : 
rizky@rzkii-UL30VT:~$ sudo gedit /etc/wvdial.conf

dan ganti ( Replace ) dengan kode ini : 
[Dialer smart]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = 1
Modem Type = Analog Modem
Command Line = ATDT
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800

Dan sekarang coba koneksi dengan cara :
rizky@rzkii-UL30VT:~$ sudo wvdial smart
–> WvDial: Internet dialer version 1.61
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZATZOK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT 3100000
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Sat Mar 26 09:50:26 2012
–> Pid of pppd: 3161
–> Using interface ppp0
–> local IP address 10.254.169.102
–> remote IP address 10.20.31.23
–> primary DNS address 10.17.3.253
–> secondary DNS address 10.17.3.246

kalau sudah mendapat ip addrees, seharusnya sudah bisa browsing internet.
Selamat menikmati :p

tetapi, jika modem dicolokin ulang, kita harus eject cd rom, load kernel,dll seperti tadi.
Dan biar cepat kita buat launcher bash script, buat file baru ekstensi .sh,
isi dengan code :
#!/bin/bashsudo eject /dev/sr1
sleep 2
sudo modprobe usbserial vendor=0X201e product=0X1022
sleep 2
sudo wvdial smart

dan rubah permissionnnya dulu, agar bisa dijalankan :
rizky@rzkii-UL30VT:~$ sudo chmod +x smart.sh

Dan untuk menjalankannya sekarang tinggal ketik di terminal :
rizky@rzkii-UL30VT:~$  ./smart.sh 

Selesai, sekarang Nikamti internet di Ubuntu OS :D I hate slow…  :P
Ternyata modem smartfren Haier CE682 adalah seri baru pengganti dari ZTE AC682 , dan langsung deh googling untuk pengaturannya di ubuntu, dan akhirnya ketemu dan sekarang akan saya tuliskan lagi :D

Dan ketika di colokin ke usb untuk pertama kali ternyata sama, belum kedetect, ternyata masih dikenali sebagai CD ROM. terlihat dari hasil dmesgnya :
rizky@rzkii-UL30VT:~$ dmesg | tail
[18.767655] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro,commit=600
[19.126218] init: plymouth-stop pre-start process (1399) terminated with status 1
[20.261086] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro,commit=600
[977.492059] usb 7-1: new full speed USB device number 2 using uhci_hcd
[977.719269] scsi5 : usb-storage 7-1:1.0
[978.720176] scsi 5:0:0:0: CD-ROM CDROM EVDO ReV A 7.00 PQ: 0 ANSI: 2
[978.744149] sr0: scsi-1 drive
[978.744157] cdrom: Uniform CD-ROM driver Revision: 3.20
[978.744445] sr 5:0:0:0: Attached scsi CD-ROM sr0
[978.744737] sr 5:0:0:0: Attached scsi generic sg2 type 5 

Karena itu, eject dulu cdromnya dengan perintah :
rizky@rzkii-UL30VT:~$ sudo eject /dev/sr0 

Lihat lagi dengan dmesgnya :
rizky@rzkii-UL30VT:~$ dmesg | tail
[  978.744149] sr0: scsi-1 drive
[  978.744157] cdrom: Uniform CD-ROM driver Revision: 3.20
[  978.744445] sr 5:0:0:0: Attached scsi CD-ROM sr0
[  978.744737] sr 5:0:0:0: Attached scsi generic sg2 type 5
[ 1183.128325] usb 7-1: USB disconnect, device number 2
[ 1185.652230] usb 7-1: new full speed USB device number 3 using uhci_hcd
[ 1185.822001] scsi6 : usb-storage 7-1:1.3
[ 1186.824601] scsi 6:0:0:0: Direct-Access     SDVDISK  EVDO ReV A       7.00 PQ: 0 ANSI: 0 CCS
[ 1186.851953] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 1186.859537] sd 6:0:0:0: [sdc] Attached SCSI removable disk 

 sudah terdeteksi, sekarang periksa modem dengan perintah :
rizky@rzkii-UL30VT:~$ 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 003 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 064e:a136 Suyin Corp. Asus Integrated Webcam [CN031B]
Bus 002 Device 002: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 003 Device 002: ID 0b05:1751 ASUSTek Computer, Inc. BT-253 Bluetooth Adapter
Bus 007 Device 003: ID 201e:1022

Ternyata terdetect dengan vendor dan product idnya,Bus 007 Device 003: ID 201e:1022 tapi nama vendornya ga muncul, ga masalah tetep lanjut. sekarang ke pengaturan, masuk ke :
rizky@rzkii-UL30VT:~$ sudo gedit /etc/usb_modeswitch.conf

Tambahkan kode dibawah ke baris yang paling akhir :
########################################################
# /etc/usb_modeswitch.conf
#
# Smart Haier CE682 (EVDO)
#

DefaultVendor = 0x201e
DefaultProduct = 0×1022

TargetVendor = 00x201e
TargetProduct = 0×1022

MessageContent=”5553424312345678c00000008000069f030000000000000000000000000000″

Sekarang masuk ke :
rizky@rzkii-UL30VT:~$ sudo gedit /etc/udev/rules.d/99-haier-ce682.rules 

Dan diisi dengan :
########################################################
# /etc/udev/rules.d/99-zte-ce682.rules
#
# Smart Haier CE682 (EVDO)
#
SUBSYSTEM==”usb”,SYSFS{idVendor}==”201e”,
SYSFS{idProduct}==”1022″, RUN+=”/usr/sbin/usb_modeswitch –default-vendor 0x201e –default-product 0×1022 –message-content 5553424312345678c00000008000069f030000000000000000000000000000″

Lalu 'Save'sekarang 'Load' beberapa parameter yang akan dibutuhkan ke kernel :
rizky@rzkii-UL30VT:~$ sudo modprobe usbserial vendor=0X201e product=0X1022

Lalu deteksi modemnya via wvdial, bagi yang blum diinstal instal dulu dengan perintah : sudo apt-get install wvdialatau install secara offline dengan mendownload satu persatu, cari aja di google ;)
rizky@rzkii-UL30VT:~$ wvdialconfEditing `/etc/wvdial.conf’.

Scanning your serial ports for a modem.

ttyS0: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyS1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS1: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS1: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan: S2 S3 S4 S5 S6 S7 S8 S9
Modem Port Scan: S10 S11 S12 S13 S14 S15 S16 S17
Modem Port Scan: S18 S19 S20 S21 S22 S23 S24 S25
Modem Port Scan: S26 S27 S28 S29 S30 S31
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 — OK
ttyUSB0: ATQ0 V1 E1 Z — OK
ttyUSB0: ATQ0 V1 E1 S0=0 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0: Modem Identifier: ATI — Manufacturer: +GMI: China TeleCom
ttyUSB0: Speed 9600: AT — OK
ttyUSB0: Max speed is 9600; that should be safe.
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem: Cannot get information for serial port.
ttyUSB1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 — and failed too at 115200, giving up.
WvModem: Cannot get information for serial port.
ttyUSB2: ATQ0 V1 E1 — OKttyUSB2: ATQ0 V1 E1 Z — OK
ttyUSB2: ATQ0 V1 E1 S0=0 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB2: Modem Identifier: ATI — Manufacturer: +GMI: China TeleCom
ttyUSB2: Speed 9600: AT — OK
ttyUSB2: Max speed is 9600; that should be safe.
ttyUSB2: 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″
ttyUSB2: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

Modem terdeteksi di /dev/ttyUSB0lanjut ke pengaturan wvdial
masuk ke : 
rizky@rzkii-UL30VT:~$ sudo gedit /etc/wvdial.conf

dan ganti ( Replace ) dengan kode ini : 
[Dialer smart]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = 1
Modem Type = Analog Modem
Command Line = ATDT
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800

Dan sekarang coba koneksi dengan cara :
rizky@rzkii-UL30VT:~$ sudo wvdial smart
–> WvDial: Internet dialer version 1.61
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZATZOK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT 3100000
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Sat Mar 26 09:50:26 2012
–> Pid of pppd: 3161
–> Using interface ppp0
–> local IP address 10.254.169.102
–> remote IP address 10.20.31.23
–> primary DNS address 10.17.3.253
–> secondary DNS address 10.17.3.246

kalau sudah mendapat ip addrees, seharusnya sudah bisa browsing internet.
Selamat menikmati :p

tetapi, jika modem dicolokin ulang, kita harus eject cd rom, load kernel,dll seperti tadi.
Dan biar cepat kita buat launcher bash script, buat file baru ekstensi .sh,
isi dengan code :
#!/bin/bashsudo eject /dev/sr1
sleep 2
sudo modprobe usbserial vendor=0X201e product=0X1022
sleep 2
sudo wvdial smart

dan rubah permissionnnya dulu, agar bisa dijalankan :
rizky@rzkii-UL30VT:~$ sudo chmod +x smart.sh

Dan untuk menjalankannya sekarang tinggal ketik di terminal :
rizky@rzkii-UL30VT:~$  ./smart.sh 

Selesai, sekarang Nikamti internet di Ubuntu OS :D I hate slow…  :P
-->

0 komentar:

 
Copyright 2009 Berita Versi Gua
BloggerTheme by BloggerThemes | Design by 9thsphere