Some peaple ask me how to connect two bluetooth devices using the peering.
First of all, there is a bug during the make of bluetooth utils. So
you have to patch them and rebuild your fimage.
- On your devboard-R2_01/apps/blueZ-start/cdBluez-start file, replace
the last line with "hcid"
- On your devboard-R2_01/apps/bluetooth/bluez-R1_1_1/ directory and on
all the subdir, search the config.h files, edit them and replace the
CONFIGDIR define like that :
#define CONFIGDIR "/etc/bluetooth"
(you have to do it on each config.h file)
- Now you have to rebuild your fimage and reflash your foxboard.
Now you can edit the /etc/bluetooth/hcid.conf to set your device name
and other hci parameters.
Now, for peering, we have to set the pin number :
# cd /etc/bluetooth
# vi mypin
----
#! /bin/sh
echo -n "PIN:1234"
----
# chmod +x mypin
and edit the hcid.conf :
----
# PIN helper
pin_helper /etc/bluetooth/mypin;
----
And reboot the fox.
Now, if you want to connect the fox on internet over gprs start the
bluetooth on your cell phone and on the fox type :
# hcitool scan
Get the cell phone MAC
# sdptool browse <Cell phone MAC>
Look the channel number for "Dial-up Networking" service
# rfcomm connect hci0 <Cell phone MAC> <channel number>
have fun :)