Return-Path: Message-ID: Date: Sat, 31 Mar 2007 13:28:20 -0300 From: "Loreno Oliveira" To: "BlueZ users" In-Reply-To: <1175348935.5815.262.camel@violet> MIME-Version: 1.0 References: <1175348935.5815.262.camel@violet> Subject: Re: [Bluez-users] problem reading rssi Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1485708397==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============1485708397== Content-Type: multipart/alternative; boundary="----=_Part_89251_14494427.1175358500461" ------=_Part_89251_14494427.1175358500461 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for answer Marcel. However, i think this is not the case. In some test I have made, I put two scripts to run at the same time. The first one used hcitool for getting the RSSI, the second one used my program to get the RSSI. Looking to the prints on the terminal window, my program returned zero for the RSSI value while hcitool returned a non zero value... I am quite confused with this result. The code I am using for getting the rssi is the same as the code hcitool uses. As far as a saw, the whole code necessary for measuring rssi through hcitool is within the "cmd_rssi" function. Is that right or there is some state outside cmd_rssi that impacts in the correctness of the measurement? Thanks again, Loreno On 3/31/07, Marcel Holtmann wrote: > > Hi Loreno, > > > I am having some headache for reading the rssi of a remote device. The > > code bellow insists in returning 0 to the "rssi" variable when I try > > to read the rssi of a connected Nokia 770. If I run the same code for > > a connected desktop, then a non zero value is returned. For > > complicating even more, if I run "hcitool clkoff " when > > connected to the 770, then a non zero value is also returned. > > it depends on the local adapter you use and the Bluetooth chip in the > remote device. Some devices don't report the correct RSSI value. It > seems they always return 0. > > Regards > > Marcel > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > ------=_Part_89251_14494427.1175358500461 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for answer Marcel.

However, i think this is not the case. In some test I have made, I put two scripts to run at the same time. The first one used hcitool for getting the RSSI, the second one used my program to get the RSSI. Looking to the prints on the terminal window, my program returned zero for the RSSI value while hcitool returned a non zero value...

I am quite confused with this result. The code I am using for getting the rssi is the same as the code hcitool uses. As far as a saw, the whole code necessary for measuring rssi through hcitool is within the "cmd_rssi" function. Is that right or there is some state outside cmd_rssi that impacts in the correctness of the measurement?

Thanks again,

Loreno

On 3/31/07, Marcel Holtmann <marcel@holtmann.org> wrote:
Hi Loreno,

> I am having some headache for reading the rssi of a remote device. The
> code bellow insists in returning 0 to the "rssi" variable when I try
> to read the rssi of a connected Nokia 770. If I run the same code for
> a connected desktop, then a non zero value is returned. For
> complicating even more, if I run "hcitool clkoff <addr>" when
> connected to the 770, then a non zero value is also returned.

it depends on the local adapter you use and the Bluetooth chip in the
remote device. Some devices don't report the correct RSSI value. It
seems they always return 0.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

------=_Part_89251_14494427.1175358500461-- --===============1485708397== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============1485708397== 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 --===============1485708397==--