Hmm.. Modem Smartfren CE682 di Ubuntu kok ga bisa langsung kebaca ya?
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.
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.
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:~$ lsusbBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 001 Device 003: ID 064e:a136 Suyin Corp. Asus Integrated Webcam [CN031B]Bus 002 Device 002: ID 058f:6366 Alcor Micro Corp. Multi Flash ReaderBus 003 Device 002: ID 0b05:1751 ASUSTek Computer, Inc. BT-253 Bluetooth AdapterBus 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 = 0x201eDefaultProduct = 0×1022TargetVendor = 00x201eTargetProduct = 0×1022MessageContent=”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 baudttyS0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baudttyS0: ATQ0 V1 E1 — and failed too at 115200, giving up.ttyS1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baudttyS1: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baudttyS1: ATQ0 V1 E1 — and failed too at 115200, giving up.Modem Port Scan: S2 S3 S4 S5 S6 S7 S8 S9Modem Port Scan: S10 S11 S12 S13 S14 S15 S16 S17Modem Port Scan: S18 S19 S20 S21 S22 S23 S24 S25Modem Port Scan: S26 S27 S28 S29 S30 S31WvModem: Cannot get information for serial port.ttyUSB0: ATQ0 V1 E1 — OKttyUSB0: ATQ0 V1 E1 Z — OKttyUSB0: ATQ0 V1 E1 S0=0 — OKttyUSB0: ATQ0 V1 E1 S0=0 &C1 — OKttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 — OKttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OKttyUSB0: Modem Identifier: ATI — Manufacturer: +GMI: China TeleComttyUSB0: Speed 9600: AT — OKttyUSB0: Max speed is 9600; that should be safe.ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OKWvModem: Cannot get information for serial port.ttyUSB1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baudttyUSB1: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baudttyUSB1: 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 — OKttyUSB2: ATQ0 V1 E1 S0=0 — OKttyUSB2: ATQ0 V1 E1 S0=0 &C1 — OKttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 — OKttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OKttyUSB2: Modem Identifier: ATI — Manufacturer: +GMI: China TeleComttyUSB2: Speed 9600: AT — OKttyUSB2: Max speed is 9600; that should be safe.ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OKFound 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 :
masuk ke :
rizky@rzkii-UL30VT:~$ sudo gedit /etc/wvdial.conf
dan ganti ( Replace ) dengan kode ini :
[Dialer smart]Init1 = ATZInit2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0Stupid Mode = 1Modem Type = Analog ModemCommand Line = ATDTISDN = 0New PPPD = yesPhone = #777Modem = /dev/ttyUSB0Username = smartPassword = smartBaud = 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#777CONNECT 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/sr1sleep 2sudo modprobe usbserial vendor=0X201e product=0X1022sleep 2sudo 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… :b
Jangan lupa berdoa sebelum memulainya.. biar 9999...% sukses!!
Jangan lupa berdoa sebelum memulainya.. biar 9999...% sukses!!
Post a Comment