2006-06-26 15:08:26

by Luis Colina

[permalink] [raw]
Subject: [Bluez-users] howto use hci_read_rssi





Hi everyone!

I want to program an example using the hci_read_rssi function but I don't
know how to do it because I don't understand its parameters, specially the
uint16_t handle and the int to. I don't know how ti initialize them.

Moreover, I don't know if its necessary or not to make a previous connection
with another function.

Can anybody help me?

Thanks a lot.



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2006-06-27 08:57:31

by Mahtab Hossain

[permalink] [raw]
Subject: Re: [Bluez-users] howto use hci_read_rssi

Hi Colina,

>Moreover, I don't know if its necessary or not to make a previous connection
>with another function.
Yes, you need to make a previous connection before you can read the status parameter (e.g. RSSI or link quality) of a connection. You may do it at the HCI level (though not recommended by Marcel, e.g. hcitool cc <BD_ADDR>) or by upper level transport protocol (recommended, e.g. rfcomm).

>handle and to
"handle" is the connection handle of the connection u have made and "to" is the timeout field. You may need to look into the source-code of "hcitool" which comes with bluez-utils - then everything will be clear.

Regards
Mahtab

Luis Colina <[email protected]> wrote:



Hi everyone!

I want to program an example using the hci_read_rssi function but I don't
know how to do it because I don't understand its parameters, specially the
uint16_t handle and the int to. I don't know how ti initialize them.

Moreover, I don't know if its necessary or not to make a previous connection
with another function.

Can anybody help me?

Thanks a lot.



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users



---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less.


Attachments:
(No filename) (299.00 B)
(No filename) (164.00 B)
Download all attachments