Pathik
Google Bot
[HOWTO] Internet in Linux via Mobile GPRS (Data Cable/Bluetooth))
Internet via Mobile GPRS & Bluetooth in Opensuse 10.2 (KDE)
1.Connect ur mobile to ur PC with kbluetoothd (BT obex server) using and pair it...
2.open KONSOLE and login as root (su)
3.Type
if it detects any DUN services than it means that ur fone is enabled to be connected thru BT DUN..
4.Type
This ll give u the device id of ur fone...
5.now bind the Device ID of ur fone wit the rfcomm device using
6.If u get any error in the above command or u dont hav a device rfcomm0 then u need to create one by
7.next u need to edit ur /etc/wvdial.conf file to enter ur BT modem settings
Edit ur Wvdial and copy the following in it...
8.Now run the command
instead of GPRS u can enter whatever dialer name u hav entered...
You should get connected.
Method 2: For Newer distros like Ubuntu 7.10 using Bluetooth
1> Insert your bluetooth dongle and activate bluetooth service in your mobile. And open terminal/console
2> Discover your phone issuing following command to get your phone's MAC address
3> Discover the channel alloted for DUN via
4> Edit your /etc/bluetooth/rfcomm.conf file
and paste this substituting <value> with appropriate value
5> Create your modem device
6> Now when everything is done you need a dialer to activate Internet, we will be using wvdial
Edit your /etc/wvdial.conf via
Paste this :
NOTE: Change Phone, Username, Password according to requirement. If you don't have username and password then keep it like only
7> Activate :
For deactivating press Ctrl+C
Thanx to Anantkhaitan for posting this
Internet via Mobile GPRS & USB Cable in Ubuntu 7.04 (GNOME) and Fedora 7(GNOME/ KDE)
You shd get some output like
Output:
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
This means that it has found a MODEM.. and the basic wvdial.conf has been written..
Now to edit wvdial.conf
Enter the Dialling number, Username , Passwd etc
My wvdial.conf :
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyACM0
Username = b
Password = a
Baud = 460800
Now to connect
If all has gone right it shd show something like
--> WvDial: Internet dialer version 1.56
--> 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*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> PPP negotiation detected.
--> Starting pppd at Fri Apr 27 16:34:47 2007
--> Pid of pppd: 8094
--> Using interface ppp0
--> pppd: p[08][06][08][08]
--> [06][08]
--> pppd: p[08][06][08][08]
--> [06][08]
--> pppd: p[08][06][08][08]
--> [06][08]
--> pppd: p[08][06][08][08]
--> [06][08]
--> local IP address 10.190.237.191
--> pppd: p[08][06][08][08]
--> [06][08]
--> remote IP address 10.6.6.6
--> pppd: p[08][06][08][08]
--> [06][08]
--> primary DNS address 202.56.230.5
--> pppd: p[08][06][08][08]
--> [06][08]
--> secondary DNS address 202.56.240.5
--> pppd: p[08][06][08][08]
--> [06][08]
This means that ur connection is complete... keep that terminal window open and surf..
Credits: Google and Mehul
Internet via Mobile GPRS & Bluetooth in Opensuse 10.2 (KDE)
1.Connect ur mobile to ur PC with kbluetoothd (BT obex server) using and pair it...
2.open KONSOLE and login as root (su)
3.Type
Code:
# sdptool search DUN
4.Type
Code:
# hcitool scan
5.now bind the Device ID of ur fone wit the rfcomm device using
Code:
# rfcomm bind 0 <Device id of ur fone> 1
Code:
#mknod /dev/rfcomm0 c 216 0
Code:
# nano -w /etc/wvdial.conf
Code:
[Modem0]
Modem = /dev/rfcomm0
Baud = 230400
SetVolume = 0
DialCommand = ATDT
FlowControl = Hardware(CRTSCTS)
[Dialer GPRS]
Username = 1
Password = 1
Phone = *99***1#
Mode = 1
Inherits = Modem0
[Dialer Defaults]
Modem = /dev/rfcomm0
Baud = 230400
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99***1#
Username = a
Password = b
Code:
# wvdial GPRS
You should get connected.
Method 2: For Newer distros like Ubuntu 7.10 using Bluetooth
1> Insert your bluetooth dongle and activate bluetooth service in your mobile. And open terminal/console
2> Discover your phone issuing following command to get your phone's MAC address
Code:
$ hcitool scan
3> Discover the channel alloted for DUN via
Code:
$ sdptool browse <mac add.>
4> Edit your /etc/bluetooth/rfcomm.conf file
Code:
$ sudo gedit /etc/bluetooth/rfcomm.conf
and paste this substituting <value> with appropriate value
Code:
rfcomm0
{
bind yes;
device <mac add.>;
channel <DUN channel>;
comment "My Phone";
}
5> Create your modem device
Code:
$ sudo rfcomm bind 0 <mac add.> <channel>
6> Now when everything is done you need a dialer to activate Internet, we will be using wvdial
Edit your /etc/wvdial.conf via
Code:
$ sudo gedit /etc/wvdial.conf
Code:
[Modem0]
Modem = /dev/rfcomm0
Baud = 115200
SetVolume = 3
Dial Command = ATDT
Init1 = ATZ
Init3 = ATM1L3
FlowControl = CRTSCTS
[Dialer BT]
Username = aa
Password = aa
Phone = *99***1#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Inherits = Modem0
7> Activate :
Code:
$ sudo wvdial BT
Thanx to Anantkhaitan for posting this
Internet via Mobile GPRS & USB Cable in Ubuntu 7.04 (GNOME) and Fedora 7(GNOME/ KDE)
Code:
# sudo wvdialconf /etc/wvdial.conf
Output:
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
This means that it has found a MODEM.. and the basic wvdial.conf has been written..
Now to edit wvdial.conf
Code:
sudo gedit /etc/wvdial.conf
Enter the Dialling number, Username , Passwd etc
My wvdial.conf :
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyACM0
Username = b
Password = a
Baud = 460800
Now to connect
Code:
sudo wvdial
--> WvDial: Internet dialer version 1.56
--> 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*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> PPP negotiation detected.
--> Starting pppd at Fri Apr 27 16:34:47 2007
--> Pid of pppd: 8094
--> Using interface ppp0
--> pppd: p[08][06][08][08]
--> [06][08]
--> pppd: p[08][06][08][08]
--> [06][08]
--> pppd: p[08][06][08][08]
--> [06][08]
--> pppd: p[08][06][08][08]
--> [06][08]
--> local IP address 10.190.237.191
--> pppd: p[08][06][08][08]
--> [06][08]
--> remote IP address 10.6.6.6
--> pppd: p[08][06][08][08]
--> [06][08]
--> primary DNS address 202.56.230.5
--> pppd: p[08][06][08][08]
--> [06][08]
--> secondary DNS address 202.56.240.5
--> pppd: p[08][06][08][08]
--> [06][08]
This means that ur connection is complete... keep that terminal window open and surf..
Credits: Google and Mehul
Last edited: