Personal tools
You are here: Home Members kaeru's Home Kaeru's Blog Bluetooth GPRS with FreeBSD
Document Actions

Bluetooth GPRS with FreeBSD

Quick cut and paste notes on setting up Bluetooth on FreeBSD to connect to Digi GPRS

My fingers hurt already from typing too much today. Proper article later.

Basically, plug in one of those cheap RM30 bluetooth usb adapters

/etc/rc.d/bluetooth start ubt0

Find out your phone address

hccontrol -n ubt0hci inquiry

BD_ADDR: 00:19:c0:0b:d8:f5

Enable pairing in /etc/rc.conf

hcsecd_enable="YES"     # Enable hcsecd(8) (or NO)
hcsecd_config="/etc/bluetooth/hcsecd.conf" # hcsecd(8) configuration file

Edit hcsecd.conf to pair:

device {
    bdaddr  00:19:c0:0b:d8:f5;
    name    "Motorola V3i";
    key nokey;
    pin "1234";
}

Create a profile for digi gprs in /etc/ppp/ppp.conf

digi:
 enable force-scripts
 set speed 115200   # Our speed
 set phone "*99***1#"    # Magic number to "dial" gprs, 1 refers to CID

 #Dial String
 set dial "ABORT ERROR ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" ATZ OK-ATZ-OK AT+CGDCONT=1,\\\"IP\\\",\\\"diginet\\\" OK \\dATD\
 set authname digi    # Loginname
 set authkey digi    # Password
 set login
 set timeout 0
 enable dns
 resolv rewrite
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR

Then start your ppp connection with rfcomm

rfcomm_pppd -a 00:19:c0:0b:d8:f5 -c -C 1 -d -l digi

Simple huh? :)

Sources:

Pav's Bluetooth documentation

I can't remember where I got the digi settings from, but it was in one of my notes. Works perfectly ~6KB/s. Time to get an EDGE phone.

Thursday, February 15, 2007 in FOSSFreeBSD  | Permalink | 
del.icio.us   Digg    
Kaeru's Blog
« December 2008 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Categories:
FOSS (97)
FreeBSD (34)
IOSN (13)
Life (52)
Palm (8)
Python (4)
SME (2)
The Knowledge Worker (2)
Zope (3)

Blog feeds

  • Blog RSS Button
  • Blog RDF Button

Other sites

  • Free and Open Source Software Foundation Malaysia Web Button

My Profile

  • View Khairil Yusof's profile on LinkedIn

No to OOXML

 

Powered by Plone Section 508 WCAG Valid CSS Usable in any browser IOSN

Copyright respective authors. Unless otherwise specified, content licensed under Creative Commons Attribution License.

Legal Disclaimer