1.wvdial
2.usbmodeswitch
Install al program u need,
attention : only download red colour.,
after that :
Firt
setting up usb modeswitch
go to "cd /etc"
after that insert command : gksudo gedit usb-modeswitch.conf
and insert :
#######################################################
# PROLiNK PCM100 3G EVDO CDMA, Qualcomm CDMA Technologies MSM, USB MMC Storage
#
# Manufacturer : Qualcomm, Incorporated
DefaultVendor = 0x1c9e -> For my modem of course PCM100
DefaultProduct = 0x9d00 -> For my modem of course PCM100
TargetVendor = 0x1c9e
TargetProduct = 0x9d00
MessageEndpoint = 0x02
MessageContent = "55534243123456780000000000000606f50402527000000000000000000000"
finished run command "usb_modeswitch" -> changed from blueray in to usb storage.,
finished run command "sudo rmmod" after that run "sudo modprobe usbserial vendor=0x1c9e product=0x9d00"
run "lsusb" for record your Default an Target Vendor, like this :
1c93:9d00 is Default and Target Vendor modem i have, u can use easy ways find our Default and Target looking on "etc/usb_modeswitch.d"
finished,setting usb go for wvdial
run command "gksudo wvdial" on /etc as the same as above and insert :
[Modem0]
Modem = /dev/ttyUSB0
Baud = 460800
Dial Command = ATDT
Init1 = ATZ
SetVolume = 0
#Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
Init3 =
FlowControl = CRTSCTS
[Dialer Defaults]
Modem = /dev/ttyUSB0
Modem Type = USB Modem
ISDN = off
Baud = 460800
Dial Command = ATDT
ATX0 init =
Init1 = ATZ
#Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
Init3 =
SetVolume = 0
FlowControl = CRTSCTS
Area Code =
Phone = #777 -> service provider u have
Dial Prefix =
Username = smart -> service provider u have
Password = smart -> service provider u have
Inherits = Modem0
Ask Password = 0
New PPPD = yes
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
Auto Reconnect = on
Abort on Busy = off
Carrier Check = no
Check Def Route = on
Abort pada Dialtone No = on
Auto DNS = on
[Dialer shh]
ATM0 Init3 =
Finished now setting booting automatic for modem :
from this read carefully:
1.run command "gksudo gedit /usr/sbin/initmodem.sh" and insert this :
#!/bin/sh
sudo usb_modeswitch -v 0x1c9e -p 0x9d00 -V 0x1c9e -P 0x9d00 -M 55534243123456780000000000000606f50402527000000000000000000000
sleep 10
sudo modprobe usbserial vendor=0x1c9e product=0x9d00
2.Change it to an executable file through the below command and execute the following.
"chmod +x /usr/sbin/initmodem.sh" -> u must root admin
3.run command "sudo /usr/sbin/initmodem.sh"
4.Instead of running this command every time to connect, use the below lines in /etc/modules.
"gksudo gedit /etc/modules"
and insert :
# /etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
lp
rtc
usbserial vendor=0x1c9e product=0x9d00
sudo modprobe usbserial vendor=0x1c9e product=0x9d00
Whenever you reboot the system (by having the modem plugged in), the modem would connect automatically. If it fails to connect (or if you forgot to plug in the modem on time), run "initmodem.sh" once and it will be alright.
Setting modem ponsel di Ubuntu for GSM
setelah tertancap, masuk ke terminal dan ketik perintah $ lsusb
Bus 007 Device 004: ID 0951:1603 Kingston Technology
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 002: ID 064e:a101 Suyin Corp.
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 002: ID 0fce030 Sony Ericsson Mobile Communications AB
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 1b1a:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Inilah hasil perintah $ lsusb di komputer saya. Apakah ponsel anda sudah terdeteksi pada bagian cetak tebal ? jika belum kemungkinan ponsel belum tertancap dengan sempurna atau pilihan mode usb pada ponsel belum tepat. Langkah berikutnya setelah ponsel terdeteksi adalah mengetikan perintah $ sudo wvdialconf (mendeteksi driver modem untuk ponsel)
Editing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyACM0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyACM0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyACM1<*1>: ATQ0 V1 E1 — OK
ttyACM1<*1>: ATQ0 V1 E1 Z — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM1<*1>: Modem Identifier: ATI — Sony Ericsson P990i
ttyACM1<*1>: Speed 4800: AT — OK
ttyACM1<*1>: Speed 9600: AT — OK
ttyACM1<*1>: Speed 19200: AT — OK
ttyACM1<*1>: Speed 38400: AT — OK
ttyACM1<*1>: Speed 57600: AT — OK
ttyACM1<*1>: Speed 115200: AT — OK
ttyACM1<*1>: Speed 230400: AT — OK
ttyACM1<*1>: Speed 460800: AT — OK
ttyACM1<*1>: Max speed is 460800; that should be safe.
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem<*1>: Cannot get information for serial port.
ttyACM2<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyACM2<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyACM2<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
Found an USB modem on /dev/ttyACM1.
Modem configuration written to /etc/wvdial.conf.
ttyACM1
Setelah driver terdeteksi, langkah berikutnya adalah mengedit script konfigurasi pada file wvdial.conf yang terletak di folder /etc dengan perintah $ sudo gedit /etc/wvdial.conf, berikut isi dari wvdial.conf :
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”internet”
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99***1#
Modem = /dev/ttyACM1
Username = ”
Password = ”
Baud = 460800
Silahkan sesuaikan dengan Isp yang anda gunakan, “internet” adalah APN (baca : Akses Point Name) untuk telkomselflash unlimeted dan juga bisa di gunakan pada kartu simpati dan AS. Berikut daftar APN dan Username masing-masing provider :
TELKOMSEL [ APN = internet/telkomsel]
User : wap
Password : wap123
Dial : *99***1#
atau
User : [KOSONGKAN]
Password : [KOSONGKAN]
Dial : *99***1#
TELKOMFLASH UNLIMITED [ APN = internet/telkomsel ]
User : wap
Password : wap123
Dial : *99***1#
atau
User : [KOSONGKAN]
Password : [KOSONGKAN]
Dial : *99***1#
TELKOMFLASH (TIMEBASED) [ APN = flash]
User : [KOSONGKAN]
Password : [KOSONGKAN]
Dial : *99***1#
Note : Buka browser dan tentukan sendiri tarif akses.
MATRIX reguler [ APN = satelindogsm/satelindogprs]
User : indosat
Password : indosat
Dial : *99***1#
MATRIX broadband [ APN = indosat3g]
User : indosat
Password : indosat
Dial : *99***1#
MENTARI [ APN = satelindogsm/satelindogprs]
User : indosat
Password : indosat
Dial : *99***1#
MENTARI (DURASI) Rp 100,-/menit [exc PPN 10%] [ APN = satelindogsm/satelindogprs]
User : indosat@durasi
Password : indosat@durasi
Dial : *99***1#
IM3 [APN : www.indosat-m3.net]
User : gprs
Password : gprs
Dial : *99***1#
IM3 (DURASI) Rp 100,-/menit [exc PPN 10%] [APN : www.indosat-m3.net]
User : indosat@durasi
Password : indosat@durasi
Dial : *99***1#
XL
User : xlgprs
Password : proxl
Dial : *99***1#
Selesai sudah konfigurasi pada wvdial.conf, kemudian ketik $ wvdial untuk melakukan koneksi ke internet. Apabila hasilnya seperti berikut maka koneksi ke internet telah berhasil.
–> 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
–> Sending: AT+CGDCONT=1,”IP”,”internet”
AT+CGDCONT=1,”IP”,”internet”
OK
–> Modem initialized.
–> Sending: ATDT*99***1#
–> Waiting for carrier.
ATDT*99***1#
CONNECT
~[7f]}#@!}!}!} }9}#}%B#}%}(}”}’}”}”}&} } } } }%}&x };s,}5~
–> Carrier detected. Waiting for prompt.
~[7f]}#@!}!}”} }9}#}%B#}%}(}”}’}”}”}&} } } } }%}&x };s`x~
–> PPP negotiation detected.
–> Starting pppd at Thu Nov 27 21:53:55 2008
–> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
–> –> PAP (Password Authentication Protocol) may be flaky.
–> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
–> –> CHAP (Challenge Handshake) may be flaky.
–> Pid of pppd: 6206
–> Using interface ppp0
–> pppd: ??[06][08]8?[06][08]??[06][08]
–> pppd: ??[06][08]8?[06][08]??[06][08]
–> pppd: ??[06][08]8?[06][08]??[06][08]
–> pppd: ??[06][08]8?[06][08]??[06][08]
–> pppd: ??[06][08]8?[06][08]??[06][08]
–> pppd: ??[06][08]8?[06][08]??[06][08]
–> local IP address 114.121.253.54
–> pppd: ??[06][08]8?[06][08]??[06][08]
–> remote IP address 10.64.64.64
–> pppd: ??[06][08]8?[06][08]??[06][08]
–> primary DNS address 202.3.208.10
–> pppd: ??[06][08]8?[06][08]??[06][08]
–> secondary DNS address 202.3.210.10
–> pppd: ??[06][08]8?[06][08]??[06][08]
now begun your connection.,

Tidak ada komentar:
Posting Komentar