2010-01-27 20:27:53

by Ed Tsang

[permalink] [raw]
Subject: hcitool cc .... connected and drop

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/


2010-01-28 17:32:47

by Iain Hibbert

[permalink] [raw]
Subject: Re: hcitool cc .... connected and drop

On Thu, 28 Jan 2010, Ed Tsang wrote:

> >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/

> Is the disconnect command came from the kernel code too?

most likely

iain

2010-01-28 14:52:25

by Ed Tsang

[permalink] [raw]
Subject: Re: hcitool cc .... connected and drop

Thanks, Lain.

>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

2010-01-27 20:41:30

by Iain Hibbert

[permalink] [raw]
Subject: Re: hcitool cc .... connected and drop

On Wed, 27 Jan 2010, Ed Tsang wrote:

> 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