2008-06-21 03:20:54

by Khairulmizam Samsudin

[permalink] [raw]
Subject: [Bluez-devel] RSSI value in floating point

Hi,

I have inspect bluez-libs codes and seems that some modification can
make it happen. However, would the devices it self return RSSI in
floating point?

regards
xource

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


Subject: Re: [Bluez-devel] RSSI value in floating point

On June 22, 2008 06:07:38 pm Marcel Holtmann wrote:
> so and that gives you anything because? The hardware returns a signed
> integer and converting that into float is useless.

I did not say it would be any more useful; I merely asked him why he can't
convert it to float on his own instead of demanding the stack do it.

> Also the RSSI value retrieved from an already established connection is
> different than the one you get during inquiry.

Interesting; is the RF PA AGC set differently during inquiry?

-A.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-06-22 22:07:38

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] RSSI value in floating point

Hi Andrew,

> > 1. Thanks. That saved me a lot of time
> > 2. Assuming that I purchase a development kit. Would it be possible to
> > modify bluetooth stack to achieve the objective?
>
> Why? Is it so difficult to say floatrssi = (float)intrssi/(float)INT_MAX?

so and that gives you anything because? The hardware returns a signed
integer and converting that into float is useless.

Also the RSSI value retrieved from an already established connection is
different than the one you get during inquiry.

Regards

Marcel



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

Subject: Re: [Bluez-devel] RSSI value in floating point

On June 21, 2008 09:59:28 pm Khairulmizam Samsudin wrote:
> 1. Thanks. That saved me a lot of time
> 2. Assuming that I purchase a development kit. Would it be possible to
> modify bluetooth stack to achieve the objective?

Why? Is it so difficult to say floatrssi = (float)intrssi/(float)INT_MAX?

-A.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-06-21 04:57:20

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] RSSI value in floating point

Hi,

> I have inspect bluez-libs codes and seems that some modification can
> make it happen. However, would the devices it self return RSSI in
> floating point?

simple answer is no. The RSSI is a signed integer.

Regards

Marcel



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel