sebelumnya sudah saya posting cara Install Modem Smartfren Connex AC682 di ubuntu, ternyata Smart telah mengeluarkan versi terbarunya yaitu CE682, kendalanya pun sama, pertama kali dicolokin ke port usb modem dikenali sebagai cdrom, memang di spesifikasinya tidak support linux. sebenarnya cara menyettingnya sama seperti AC682, tapi biar jelas berikut akan saya jelaskan. (referensi artikel andykamto.web.id)
1. colokin modem dan ketikkan perintah dmesg | tail untuk mengetahui apakah modem dikenali sebagai cdrom
andy@politoz:~$ dmesg | tail
[ 16.435959] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 19.963390] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro,commit=0
[ 19.966436] EXT4-fs (sda8): re-mounted. Opts: commit=0
[ 241.704054] usb 2-2: USB disconnect, address 3
[ 253.352033] usb 2-2: new full speed USB device using uhci_hcd and address 4
[ 253.522675] scsi5 : usb-storage 2-2:1.0
[ 254.524252] scsi 5:0:0:0: CD-ROM CDROM EVDO ReV A 7.00 PQ: 0 ANSI: 2
[ 254.536216] sr1: scsi-1 drive
[ 254.536454] sr 5:0:0:0: Attached scsi CD-ROM sr1
[ 254.536652] sr 5:0:0:0: Attached scsi generic sg2 type 5
[ 16.435959] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 19.963390] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro,commit=0
[ 19.966436] EXT4-fs (sda8): re-mounted. Opts: commit=0
[ 241.704054] usb 2-2: USB disconnect, address 3
[ 253.352033] usb 2-2: new full speed USB device using uhci_hcd and address 4
[ 253.522675] scsi5 : usb-storage 2-2:1.0
[ 254.524252] scsi 5:0:0:0: CD-ROM CDROM EVDO ReV A 7.00 PQ: 0 ANSI: 2
[ 254.536216] sr1: scsi-1 drive
[ 254.536454] sr 5:0:0:0: Attached scsi CD-ROM sr1
[ 254.536652] sr 5:0:0:0: Attached scsi generic sg2 type 5
2. ternnyata modem terbaca sebagai cdrom, untuk itu perlu dieject dulu.
andy@politoz:~$ sudo eject /dev/sr1
3. lakukan perintah dmesg | tail lagi, dan lihat apakah modem sudah dikenali
andy@politoz:~$ dmesg | tail
[ 254.524252] scsi 5:0:0:0: CD-ROM CDROM EVDO ReV A 7.00 PQ: 0 ANSI: 2
[ 254.536216] sr1: scsi-1 drive
[ 254.536454] sr 5:0:0:0: Attached scsi CD-ROM sr1
[ 254.536652] sr 5:0:0:0: Attached scsi generic sg2 type 5
[ 365.648085] usb 2-2: USB disconnect, address 4
[ 368.192038] usb 2-2: new full speed USB device using uhci_hcd and address 5
[ 368.375134] scsi6 : usb-storage 2-2:1.3
[ 369.380301] scsi 6:0:0:0: Direct-Access SDVDISK EVDO ReV A 7.00 PQ: 0 ANSI: 0 CCS
[ 369.381257] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 369.473277] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 254.524252] scsi 5:0:0:0: CD-ROM CDROM EVDO ReV A 7.00 PQ: 0 ANSI: 2
[ 254.536216] sr1: scsi-1 drive
[ 254.536454] sr 5:0:0:0: Attached scsi CD-ROM sr1
[ 254.536652] sr 5:0:0:0: Attached scsi generic sg2 type 5
[ 365.648085] usb 2-2: USB disconnect, address 4
[ 368.192038] usb 2-2: new full speed USB device using uhci_hcd and address 5
[ 368.375134] scsi6 : usb-storage 2-2:1.3
[ 369.380301] scsi 6:0:0:0: Direct-Access SDVDISK EVDO ReV A 7.00 PQ: 0 ANSI: 0 CCS
[ 369.381257] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 369.473277] sd 6:0:0:0: [sdb] Attached SCSI removable disk
4. sekarang modem sudah dikenali, lakukan perintah lsusb untuk mengetahui id modem
andy@politoz:~$ lsusb
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 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 201e:1022
Bus 002 Device 002: ID 15ca:00c3 Textech International Ltd. Mini Optical Mouse
Bus 002 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 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 201e:1022
Bus 002 Device 002: ID 15ca:00c3 Textech International Ltd. Mini Optical Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
5. terdetek id vendor dan product, walaupun namanya tidak muncul tidak masalah, langkah selanjutnya kita perlu melakukan pengaturan beberapa file agar modem dapat dikenali sempurna, karena jika kita langsung melakukan setting seperti modem biasa, yaitu langsung kelangkah modprobe usbserial modem akan dikenali sebagai GSM (padahal Smart adalah operator CDMA). sekarang masuk kepengaturan usb_modeswitch
andy@politoz:~$ sudo gedit /etc/usb_modeswitch.conf
6. tambahkan kode dibawah ke baris yang paling akhir :
########################################################
# /etc/usb_modeswitch.conf
#
#Smart Haier CE682 (EVDO)
#
# /etc/usb_modeswitch.conf
#
#Smart Haier CE682 (EVDO)
#
DefaultVendor = 0x201e
DefaultProduct = 0×1022
DefaultProduct = 0×1022
TargetProduct = 0×1022
TargetVendor = 00x201e
MessageContent="5553424312 345678c00000008000069f0300 00000000000000000000000000 "
7. kita buat rule untuk modem
andy@politoz:~$ sudo gedit /etc/udev/rules.d/99-haier-ce682.rules
8. isi dengan
########################################################
# /etc/udev/rules.d/99-zte-ce682.rules
#
# Smart Haier CE682 (EVDO)
#
SYSFS{idProduct}=="1022", RUN+="/usr/sbin/ usb_modeswitch -default-vendor 0X201e -default-product 0X1022 -message-content 5553424312345678c000000080 00069f03000000000000000000 0000000000"
# /etc/udev/rules.d/99-zte-ce682.rules
#
# Smart Haier CE682 (EVDO)
#
SYSFS{idProduct}=="1022", RUN+="/usr/sbin/
lalu save
9. sekarang kita daftarkan modem agar dapat dikenali
andy@politoz:~$ sudo modprobe usbserial vendor=0x201e product=0×1022
10. Lalu deteksi modemnya via wvdial (bagi yang blum diinstal instal dulu dengan perintah: sudo apt-get install wvdial)
sudo wvdialconf
11. Jika modem sudah terdeteksi lanjut ke pengaturan wvdial
sudo gedit /etc/wvdial.conf
12. tambahkan baris berikut:
[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
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
13. Langkah terakhir coba koneksi dengan cara:
sudo wvdial smart
14. Jika sudah mendapat ip addrees harusnya sudah bisa browsing internet. sekarang bikin file smart.sh untuk shortcut agar kita tidak perlu banyak mengetik diterminal saat mau konek. buka gedit dan isikan tulisan dibawah ini
#!/bin/bash
sudo eject /dev/sr1
sleep 2
sudo modprobe usbserial vendor=0X201e product=0X1022
sleep 2
sudo wvdial smart
sudo eject /dev/sr1
sleep 2
sudo modprobe usbserial vendor=0X201e product=0X1022
sleep 2
sudo wvdial smart
save di /home/username_anda dengan nama smart.sh
15. Ubah permissionnnya dulu agar bisa dijalankan
sudo chmod +x smart.sh
atau klik kanan file tadi pada tab permission beri centang pada executable blablabla
16. Untuk menjalankan tinggal ketik
./smart.sh
NB : perhatikan penulisannya, disarankan semua script ditulis manual, karena waktu saya copi paste ternyata ada masalah yang disebabkan tanda petik (") yang berubah
josss gandoss
ReplyDelete