2006-01-27 08:18:07

by Mahtab Hossain

[permalink] [raw]
Subject: [Bluez-users] hci_create_connection

I know this has been discussed a lot of times in this list and the conclusion was that, only use "hci_create_connection" for debugging purpose.

I created the connections with "hci_create_connection" and the connection gets lost everytime after 40-50 seconds just like the following email from this list (mine are BroadCom based Dongles):


"I am connecting a Armadillo CF card to a TDK PC card using "hcitool cc
<BD_ADDR>". The connection appears fine, but after a short period (40 sec
or so) seems to drop off. I am running a script to monitor the RSSI values.
This worked fine with a 3Com card, but connection drops with the TDK.

Any ideas why?

Tim"

I didn't see any follow-ups to this email. Any insights on why this should happen. I know "hci_create_connection" makes link-level connections without taking into account the transport level protocols (like L2CAP) running on the host. But for the RSSI, TPL etc. extraction, I need to create only link-level connection so "hci_create_connection" would have been perfect choice for me without that problem. Any explanation?
If not successful, I have to work around it by creating higher transport level connections it seems.

Thanks
Mahtab



---------------------------------
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.


2006-01-27 10:12:29

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] hci_create_connection

Hi Mahtab,

> I know this has been discussed a lot of times in this list and the
> conclusion was that, only use "hci_create_connection" for debugging
> purpose.

then stick with it.

> I created the connections with "hci_create_connection" and the
> connection gets lost everytime after 40-50 seconds just like the
> following email from this list (mine are BroadCom based Dongles):
>
> "I am connecting a Armadillo CF card to a TDK PC card using "hcitool cc
> <BD_ADDR>". The connection appears fine, but after a short period (40 sec
> or so) seems to drop off. I am running a script to monitor the RSSI values.
> This worked fine with a 3Com card, but connection drops with the TDK.
>
> Any ideas why?

we should a device keep a not used ACL link open. This costs power. I
also don't think that this is a problem of your card. It is a problem of
your target device. In general BlueZ doesn't drop connections.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users