Skip to contentSkip to conversation

hcitool cc .... connected and drop

DISCUSSION Ed Tsang 2 participants 4 messages Jan 27, 2010 – Jan 28, 2010 Bluetooth drivers

lore
Share & tools
lore

Ed Tsang

author
#0 lore raw

Hi,
I am trying to use hcitool to create a connection. The connection seem to be connected and dropped right the way.
Looking at the hcidump, look like the connect command is ok, but then there is a "read remote supported feature", "read remote name" then a "disconnect command".
I tried to search "hci_read_remote_features" or usage of "OCF_READ_REMOTE_FEATURES" and put in debug print on all functions but could not figure out where the "read remote supported feature" was called from the "hcitool cc" command. Anyone please point me to the trivial stuff.

Regards,
Ed

      __________________________________________________________________

Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/

#1 lore raw
Quoted 9 lines · Ed Tsang

I am trying to use hcitool to create a connection. The connection seem to be connected and dropped right the way. Looking at the hcidump, look like the connect command is ok, but then there is a "read remote supported feature", "read remote name" then a "disconnect command". I tried to search "hci_read_remote_features" or usage of "OCF_READ_REMOTE_FEATURES" and put in debug print on all functions but could not figure out where the "read remote supported feature" was called from the "hcitool cc" command. Anyone please point me to the trivial stuff.

the Linux kernel does that for all completed connections

iain

author
#2 lore raw

Thanks, Lain.

Quoted 1 line

the Linux kernel does that for all completed connections

I am still very "green" to bluez and linux. Is there a place where I can look into the bluetooth related kernel codes? Is the disconnect command came from the kernel code too?

Cheers, Ed

      __________________________________________________________________

Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php

#3 lore raw
Quoted 4 lines · Ed Tsang
Quoted 1 line

the Linux kernel does that for all completed connections

I am still very "green" to bluez and linux. Is there a place where I can look into the bluetooth related kernel codes?

I don't think there is any API documentation, but the kernel sources can be seen at many places on the internet, such as

http://lxr.linux.no/#linux+v2.6.32/net/bluetooth/

Quoted 1 line

Is the disconnect command came from the kernel code too?

most likely

iain