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:
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.





