Hi Gillian,
> I have just done this for pan on a 3970 running Familiar v0.7 and assume
> that dun works roughly the same way.
>
> Once you have everything installed, you need to bring up the interface.
> The ipkg install command should have loaded some things, but double
> check:
> The following lines need to be present in your /etc/modules.conf always
> in order for BlueZ to work correctly:
> alias net-pf-31 bluez
> alias bt-proto-0 l2cap
> If you want to use UART based Bluetooth devices, add the following line
> to your /etc/modules.conf in addition to the above:
> alias tty-ldisc-15 hci_uart
> After making any of the above changes, you can run "depmod -a" to enable
> auto-loading of BlueZ
> modules.
> Manual loading of the modules can be done by:
> modprobe bluez
> modprobe hci_uart UART support. Optional
> modprobe hci_usb USB support. Optional
> modprobe l2cap
> modprobe dund <-- I used pand here, but you should be able to
what should this be? We have rfcomm.o module for dund and bnep.o module
for pand.
> To make the bluez module work correctly, you also need to do an
> hci_attach call:
> The syntax for these calls in general is:
> hciattach <tty> <type | id> [speed] [flow]
>
> The call that I use is, but I can't be sure that you will want to use
> it:
> # hciattach /dev/tts/1 bcsp 921600
This is different on 3870. If I remember correctly it is
hciattach /dev/ttySB0 bcsp 460800
> To do the inquiry, you will want to use the hcitool call:
> hcitool [-i hciX] OGF OCF param...
> where OGF Is the OpCode Group Field (00-3F), OCF is the OpCode Command
> Field (0000-03FF), param... are parameters. Each parameter is a sequence
> of bytes. Bytes are entered in hexadecimal form without spaces, most
> significant byte first. The size of each parameter is determined based
> on the number of bytes entered. An example to do an inquiry using LAP
> 0x9E8B33 for 10 _ 1.28 sec and unlimited responses is:
> hcitool -i hci 0 01 0001 33 8b 9e 10 00
>
> and to stop the inquiry:
> hcitool -i hci0 01 0002
Or you can use "hcitool inq" or "hcitool scan".
Reading the manpages of hciattach, hciconfig and hcitool always helps ;)
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
|