Install Modem Smartfren ac682 di Ubuntu.

Membahas Perangkat-perangkat keras yang belum dideteksi dengan baik oleh Ubuntu serta solusinya.
User avatar
khairul_saleh
Posts: 23
Joined: 07 Aug 2011, 00:06
Location: depok
Contact:

Install Modem Smartfren ac682 di Ubuntu.

Postby khairul_saleh » 13 Aug 2011, 12:28

agan2 gw newbie ni mao bagi2 pengalaman tentang cara konekin modem smartfren make ubuntu.
Tampilkan
saat pertama dicolokan modem ini masih dikenali sebagai CD ROM terlihat dari hasil dmesgnya

~$ dmesg | tail

[ 867.176562] generic ttyUSB1: generic converter now disconnected from ttyUSB1

[ 867.176585] usbserial_generic 5-2:1.1: device disconnected

[ 867.176762] generic ttyUSB2: generic converter now disconnected from ttyUSB2

[ 867.176785] usbserial_generic 5-2:1.2: device disconnected

[ 877.340071] usb 5-2: new full speed USB device using uhci_hcd and address 6

[ 877.514300] scsi8 : usb-storage 5-2:1.0

[ 878.516154] scsi 8:0:0:0: CD-ROM EVDO ReV A 7.00 PQ: 0 ANSI: 2

[ 878.530105] sr1: scsi-1 drive

[ 878.530413] sr 8:0:0:0: Attached scsi CD-ROM sr1

[ 878.533687] sr 8:0:0:0: Attached scsi generic sg2 type 5



karena itu eject aja CDROMnya

~$ sudo eject /dev/sr1



lihat lagi statusnya

~$ dmesg | tail

[ 943.926200] usbserial_generic 5-2:1.0: generic converter detected

[ 943.926378] usb 5-2: generic converter now attached to ttyUSB0

[ 943.928384] usbserial_generic 5-2:1.1: generic converter detected

[ 943.928562] usb 5-2: generic converter now attached to ttyUSB1

[ 943.930198] usbserial_generic 5-2:1.2: generic converter detected

[ 943.930378] usb 5-2: generic converter now attached to ttyUSB2

[ 943.932556] scsi9 : usb-storage 5-2:1.3

[ 944.936159] scsi 9:0:0:0: Direct-Access EVDO ReV A 7.00 PQ: 0 ANSI: 0 CCS

[ 944.937672] sd 9:0:0:0: Attached scsi generic sg2 type 0

[ 944.948148] sd 9:0:0:0: [sdb] Attached SCSI removable disk



yippi, sudah terdeteksi :D

lanjut cek modem via lsusb

:~$ lsusb

Bus 008 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 006 Device 002: ID 15d9:0a4c Trust International B.V.

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 005 Device 009: ID 19d2:ffdd ONDA Communication S.p.A.

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 004: ID 0bda:8197 Realtek Semiconductor Corp. RTL8187B Wireless Adapter

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 002: ID 04f2:b120 Chicony Electronics Co., Ltd

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



diketahui status modem

Bus 005 Device 009: ID 19d2:ffdd ONDA Communication S.p.A.



lanjut ke pengaturan

masuk ke

~$ sudo gedit /etc/usb_modeswitch.conf

tambahkan kode ini di baris paling akhir

########################################################

# /etc/usb_modeswitch.conf

#

# Smart ZTE AC682 (EVDO)

#



DefaultVendor = 0x19d2

DefaultProduct = 0xffde



TargetVendor = 0x19d2

TargetProduct = 0xffdd



MessageContent= 5553424312345678c00000008000069f030000000000000000000000000000



masuk lagi ke

~$ sudo /etc/udev/rules.d/99-zte-ac682.rules

isi dengan

########################################################

# /etc/udev/rules.d/99-zte-ac682.rules

#

# Smart ZTE AC682 (EVDO)

#

SUBSYSTEM=="usb", SYSFS{idVendor}=="19d2",

SYSFS{idProduct}=="ffdd", RUN+="/usr/sbin/usb_modeswitch –



sekarang load beberapa parameter yang dibutuhkan ke kernel

~$ sudo modprobe usbserial vendor=0�19d2 product=0xffdd



deteksi modemnya via wvdial

~$ sudo wvdialconf

maka akan menghasilkan :

Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.



Modem Port Scan: S0 S1 S2 S3 S4 S5 S6 S7

Modem Port Scan: S8 S9 S10 S11 S12 S13 S14 S15

Modem Port Scan: S16 S17 S18 S19 S20 S21 S22 S23

Modem Port Scan: S24 S25 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 -- OK

ttyUSB2: 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/ttyUSB0 :D

lanjut ke pengaturan wvdial

masuk ke

~$ sudo gedit /etc/wvdial.conf

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



langkah terakhir coba koneksi dengan cara

~$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.

--> Sending: ATDT#777

--> Waiting for carrier.

ATDT#777

CONNECT 3100000

--> Carrier detected. Waiting for prompt.

~[7f]}#@!}!}!} }3}"}&} } } } }#}%B#}%}'}"}(}"W}0~

--> PPP negotiation detected.

--> Starting pppd at Fri Jul 15 06:54:49 2011

--> Pid of pppd: 5113

--> Using interface ppp0

--> local IP address 10.249.99.173

--> remote IP address 10.20.31.6

--> primary DNS address 10.17.3.252

--> secondary DNS address 10.17.3.244



kalau sudah mendapat ip addrees seperti itu harusnya sudah bisa browsing internet hehe



nah sekarang masalahnya, setiap mau konek kita harus eject cd rom, load ke kernel dll, biar ringkas sekalian aja dibikin bash scriptnya hehe

buat file baru, dinamai terserah asal ekstensi terakhir sh klo punya ane smart.sh biar gampang ingatnya.

isi dengan kode berikut



#!/bin/bash



sudo eject /dev/sr1

sleep 2

sudo modprobe usbserial vendor=0x19d2 product=0xffdd

sleep 2

sudo wvdial smart



parameter sleep diatas berfungsi untuk menunggu proses selama 2 detik. Karena kadang2 setiap proses butuh waktu hehe



yuk, lanjut chmod dulu biar bisa dijalankan

~$ sudo chmod +x smart.sh



untuk menjalankan tinggal ketik

~$ ./smart.sh

cara itu udh gw buktiin sendiri. dan sukses di ubuntu 10.04 ma 11.04 yg gw pake. moga berguna bagi membutuhkan.
User avatar
rizaaal
Posts: 1212
Joined: 01 May 2011, 16:02
Location: Bekasi, Indonesia
Contact:

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby rizaaal » 13 Aug 2011, 13:09

sip bro. cara2nya saya baru pernah liat semua tuh. lumayan nambah ilmu. :D temen saya juga pake modem ini, nanti saya cobain ah..
User avatar
n_dhank
Posts: 4
Joined: 24 Mar 2012, 05:46

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby n_dhank » 19 Apr 2012, 09:42

Untuk Insatll diubuntu 12.04 caranya gimana?
User avatar
abu_unaisah
Posts: 1621
Joined: 24 Nov 2011, 14:07

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby abu_unaisah » 19 Apr 2012, 09:49

n_dhank wrote:Untuk Insatll diubuntu 12.04 caranya gimana?
biasanya sama
User avatar
dik
Posts: 57
Joined: 22 Oct 2011, 09:28
Location: madiun
Contact:

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby dik » 19 Apr 2012, 09:59

kalau modem CE682 mas..??
saya pengen nya via network manager..
udah kedetect tapi kok g bisa connect ya..?

apa yang salah ya..??

dial: #777
username: smart
pass: smart

nah kalo abis pilih negara kan ngisi APN..
lha itu di isi apa ya..?? APN nya?
User avatar
CDX
Posts: 1616
Joined: 03 Jan 2010, 13:00
Location: Prapatan belok kiri

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby CDX » 19 Apr 2012, 11:47

dik wrote:dial: #777
username: smart
pass: smart

nah kalo abis pilih negara kan ngisi APN..
lha itu di isi apa ya..?? APN nya?


APN : "smartfren"
User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby Nexus » 19 Apr 2012, 16:42

dik wrote:kalau modem CE682 mas..??
saya pengen nya via network manager..
udah kedetect tapi kok g bisa connect ya..?

apa yang salah ya..??

dial: #777
username: smart
pass: smart

nah kalo abis pilih negara kan ngisi APN..
lha itu di isi apa ya..?? APN nya?

kalo udah kedetct, tinggal diklik "enable mobile broadband" aja. lalu masuk edit connection, pilih indonesia > SMART > centang connect automatically. jadi setiap mau connect, tancepin modem, kalo udah kedetect, tinggal dicentang aja "enable mobile broadband"
User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby Nexus » 20 Apr 2012, 00:02

CDX wrote:
dik wrote:dial: #777
username: smart
pass: smart

nah kalo abis pilih negara kan ngisi APN..
lha itu di isi apa ya..?? APN nya?


APN : "smartfren"

apn : SMART
User avatar
dan138zig
Posts: 5
Joined: 19 Apr 2012, 07:26

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby dan138zig » 22 Apr 2012, 08:33

mohon bantuannya, di perintah:

"~$ sudo gedit /etc/usb_modeswitch.conf

tambahkan kode ini di baris paling akhir"

saya malah menghapus semua dan menggantinya dengan kode itu. ada yang tahu cara balikin ke semula?

sudo wvdial menghasilkan ini:
Cannot open /dev/ttyUSB0: No such file or directory
User avatar
dan138zig
Posts: 5
Joined: 19 Apr 2012, 07:26

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby dan138zig » 22 Apr 2012, 16:25

saya udah bisa sampe tahap terakhir, tapi modem not responding mulu. udah direstart, cabut pasang, sama aja. kenapa ya?
User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby Nexus » 25 Apr 2012, 20:40

pastikan paket2 dibawah ini juga sudah terinstall dari synaptic-package-manager....

* sl-modem-daemon

* sl-modem-source

* Modem-Manager

* gobi-loader

* isc-dhcp-client

* ppp

* pppconfig

* usb-modeswitch-data

* usb-modeswitch

* pcmciautils
User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby Nexus » 25 Apr 2012, 20:41

dan138zig wrote:mohon bantuannya, di perintah:

"~$ sudo gedit /etc/usb_modeswitch.conf

tambahkan kode ini di baris paling akhir"

saya malah menghapus semua dan menggantinya dengan kode itu. ada yang tahu cara balikin ke semula?

sudo wvdial menghasilkan ini:
Cannot open /dev/ttyUSB0: No such file or directory


install ulang aja "usb-modeswitch-data dan usb-modeswitch". beres
User avatar
EFHRALA
Posts: 9
Joined: 20 Sep 2014, 14:42

Re: Install Modem Smartfren ac682 di Ubuntu.

Postby EFHRALA » 10 Oct 2014, 01:40

gan kira-kira
untuk modem smartfren jenis lainya dan ubuntu versi lainnya
cara instalnya sama saja atau ada perbedaan

smartfren ane Smartfren Connex DF78AH UI
dan ubuntu yang ane pake ubuntu 10.04 gan

kira2 settingan nya sama atau gk ya gan

mohon pencerahannya gan


"newbie"

Return to “Solusi Hardware Ubuntu”

Who is online

Users browsing this forum: No registered users and 8 guests