This document covers setting up a GPRS connection via a Bluetooth connection between a HP compaq nc8000 laptop and a Nokia 6310i phone.
The document assumes that:
# kldload ng_ubt
Load the module from /boot/loader.conf.
ng_ubt_load="YES"
The output similar to the following will appear on the console (or in syslog or in dmesg output).
ubt0: ACTIONTEC Bluetooth by hp, rev 2.00/13.93, addr 2 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294
Copy /usr/share/examples/netgraph/bluetooth/rc.bluetooth at /etc/rc.bluetooth.
Make sure that
usbd_enable="YES"in /etc/rc.conf file.
# Actiontec
device "Bluetooth by HP"
devname "ubt0"
vendor 0x049f
product 0x0086
detach "/etc/rc.bluetooth stop ubt0"
attach "/etc/rc.bluetooth start ubt0"
This ensures that the Bluetooth stack is started when you press the wireless network button.
# /etc/rc.bluetooth start ubt0 BD_ADDR: 00:20:e0:24:f7:60 Features: 0xff 0xff 0x8f 0x78 0x18 0x18 00 0x80 <3-Slot> <5-Slot> <Encryption> <Slot offset>Max. ACL packet size: 192 bytes Number of ACL packets: 8 Max. SCO packet size: 64 bytes Number of SCO packets: 8
Add the following lines to /etc/bluetooth/hcsecd.conf:
device {
bdaddr 00:60:57:6e:1c:22;
name "myphone";
pin "xxxx";
}
Add the gprs section to ppp:
gprs:
set timeout 0
enable force-scripts
set authname "****"
set authkey "****"
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.0.0 0.0.0.0
add default HISADDR
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK \
AT+CBST=0,0,1;+CHSN=6,0,0,0 OK \
ATDT*99***1# TIMEOUT 84 CONNECT"
set login
set logout "ABORT BUSY ABORT ERROR TIMEOUT 6 \
\"\" +++ATH OK-ATH-OK"
enable dns