Connecting to GPRS over Bluetooth on Linux

Source: Internet
Author: User

From: http://www.jepstone.net/blog/2003/08/14/connecting-to-gprs-over-bluetooth-on-linux/

 

These are the notes I took to get this working today. I'll update it if I
Learn anything new, because as with everything, there's probably an easier way
To do this. I'm using a ThinkPad a20m, Mandrake 9.1, a socket Bluetooth card in
A pcmcia caddy, and a Nokia 3650 with service from T-Mobile. A big thanks to Schuyler erle

Who steered me in
The right direction on this!

 

Before you do anything, check out Tom's attempts
Get GPRS working over Bluetooth with his laptop

To get to a point where
Scripts in this entry will be useful. In particle, be sure to set up
/Etc/Bluetooth/bluepin as directed in that Article. Next, edit your
/Etc/Bluetooth/RFCOMM. conf as shown here:

rfcomm0 {  # Automatically bind the device at startup  bind yes;  # Bluetooth address of the device  device YOURDEVICE;  # RFCOMM channel for the connection  channel 1;  # Description of the connection  comment "Nokia 3650 GPRS Modem";}

Be sure to replaceYourdevice

With your phone's Bluetooth
ID (something like 00: 11: 22: 33: 44: 55). Use the commandsdptool search
DUN

To figure out that device's number. Then, add this command to one of your startup scripts:

rfcomm bind rfcomm0

Now, set up an/etc/sysconfig/network-scripts/chat-ppp0 script
With the following:

  TIMEOUT         5  ECHO            ON  ABORT           '/nBUSY/r'  ABORT           '/nERROR/r'  ABORT           '/nNO ANSWER/r'  ABORT           '/nNO CARRIER/r'  ABORT           '/nNO DIALTONE/r'  ABORT           '/nRINGING/r/n/r/nRINGING/r'  ''              /rAT  TIMEOUT         12  OK              ATE1  OK              'AT+cgdcont=1,"IP","internet3.voicestream.com"'  OK              ATD*99***1#

And set up a/etc/sysconfig/network-scripts/ifcfg-ppp0 script
With (this is based on something I found here

:

  DEVICE=ppp0  CHATSCRIPT=/etc/ppp/chat-gprs  ONBOOT=no  MODEMPORT=/dev/rfcomm0  LINESPEED=57600  AUTH=no  DEBUG=yes  DEFROUTE=yes  PERSIST=no  HOLDOFF=10  DEMAND=no  PHONE='*99***1#'  HARDFLOWCTL=no  PEERDNS=yes  MRU=1500  MTU=1500  RETRYCONNECT=yes

You can then fire up the connection/etc/sysconfig/network-scripts/ifup ppp0

For reasons I haven't
Been able to figure out, it takes three tries to get it working. The first
Time, you'll see this in/var/log/messages:

  ...  Aug 14 08:04:53 camfrancium chat[2989]: Failed ( NO CARRIER^M)  Aug 14 08:04:53 camfrancium pppd[2971]: Connect script failed  Aug 14 08:04:54 camfrancium pppd[2971]: Exit.

The second time, you may see this:

  ...  Aug 14 08:05:12 camfrancium pppd[3017]: Serial line is looped back.  Aug 14 08:05:12 camfrancium pppd[3017]: Connection terminated.  Aug 14 08:05:13 camfrancium pppd[3017]: Exit.

And finally, you'll see this (SUCCESS ):

  ...  Aug 14 08:05:22 camfrancium pppd[3077]: primary   DNS address 216.155.175.170  Aug 14 08:05:22 camfrancium pppd[3077]: secondary DNS address 216.155.175.171

So, in theory, all you need to do to make the connection is:

  # rfcomm bind rfcomm0     #(only once until you reboot again)  # /etc/sysconfig/network-scripts/ifup ppp0


This entry was posted
On Thursday, August 14th, 2003 at Amand is filed under wireless

.
You can follow any responses to this entry through the RSS 2.0

Feed.
You can leave a response

, Or trackback

From your own site.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.