Return-Path: Message-ID: <20060627085731.12075.qmail@web50501.mail.yahoo.com> Date: Tue, 27 Jun 2006 01:57:31 -0700 (PDT) From: Mahtab Hossain To: bluez-users@lists.sourceforge.net In-Reply-To: MIME-Version: 1.0 Subject: Re: [Bluez-users] howto use hci_read_rssi Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1053371087==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============1053371087== Content-Type: multipart/alternative; boundary="0-808545264-1151398651=:11104" Content-Transfer-Encoding: 8bit --0-808545264-1151398651=:11104 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 ) 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 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 Bluez-users@lists.sourceforge.net 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. --0-808545264-1151398651=:11104 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 <todten@hotmail.com> 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
Bluez-users@lists.sourceforge.net
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. --0-808545264-1151398651=:11104-- --===============1053371087== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --===============1053371087== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============1053371087==--