View Single Post
Posts: 85 | Thanked: 29 times | Joined on Jan 2008
#139
True, hidd is deprecated, but you do have hcitool at your disposal.

Typically, you would do something like this first:

Code:
Nokia-N900-51-1:~# hcitool scan
Scanning ...
	00:22:98:A9:1F:D1	W980	
	00:1D:4F:A7:71:46	Apple Wireless Keyboard
Then you can create a connection like so:

Code:
Nokia-N900-51-1:~# hcitool cc 00:1D:4F:A7:71:46
It is my understanding that since the latest firmware updated, if you check that connection with:

Code:
Nokia-N900-51-1:~# hcitool con
The result will always be empty:

Code:
Connections:
Now, you can do this while debugging in another terminal with:

Code:
Nokia-N900-51-1:/home/user# hcidump -B -w hci-trace.log
After you try to connect, you can read the log file by issuing this:

Code:
Nokia-N900-51-1:/home/user# hcidump -r hci-trace.log
And then chances are you will see that the bluetooth keyboard actually connects:

Code:
> HCI Event: Connect Complete (0x03) plen 11
but then almost immediately:

Code:
< HCI Command: Disconnect (0x01|0x0006) plen 3
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Disconn Complete (0x05) plen 4
The question, thus, is what process sends the HCI command "disconnect", and why.


PS: To run hci-dump you will have to install the bluez-hcidump debian package, as per the instructions http://80.248.164.233/Bugs:Stock_ans...n_Fremantle.29
Ulysses

Last edited by Ulysses; 2010-02-02 at 22:18.
 

The Following 5 Users Say Thank You to Ulysses For This Useful Post: