public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] RSSI value in floating point
@ 2008-06-21  3:20 Khairulmizam Samsudin
  2008-06-21  4:57 ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Khairulmizam Samsudin @ 2008-06-21  3:20 UTC (permalink / raw)
  To: bluez-devel

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] RSSI value in floating point
  2008-06-21  3:20 [Bluez-devel] RSSI value in floating point Khairulmizam Samsudin
@ 2008-06-21  4:57 ` Marcel Holtmann
  2008-06-22  1:59   ` Khairulmizam Samsudin
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2008-06-21  4:57 UTC (permalink / raw)
  To: BlueZ development

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] RSSI value in floating point
  2008-06-21  4:57 ` Marcel Holtmann
@ 2008-06-22  1:59   ` Khairulmizam Samsudin
  2008-06-22 21:24     ` Andrew Kohlsmith (lists)
  2008-06-22 22:41     ` David Stockwell
  0 siblings, 2 replies; 7+ messages in thread
From: Khairulmizam Samsudin @ 2008-06-22  1:59 UTC (permalink / raw)
  To: BlueZ development

[-- Attachment #1: Type: text/html, Size: 1588 bytes --]

[-- Attachment #2: Type: text/plain, Size: 247 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] RSSI value in floating point
  2008-06-22  1:59   ` Khairulmizam Samsudin
@ 2008-06-22 21:24     ` Andrew Kohlsmith (lists)
  2008-06-22 22:07       ` Marcel Holtmann
  2008-06-22 22:41     ` David Stockwell
  1 sibling, 1 reply; 7+ messages in thread
From: Andrew Kohlsmith (lists) @ 2008-06-22 21:24 UTC (permalink / raw)
  To: bluez-devel

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] RSSI value in floating point
  2008-06-22 21:24     ` Andrew Kohlsmith (lists)
@ 2008-06-22 22:07       ` Marcel Holtmann
  2008-06-23  1:02         ` Andrew Kohlsmith (lists)
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2008-06-22 22:07 UTC (permalink / raw)
  To: akohlsmith-lists, BlueZ development

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] RSSI value in floating point
  2008-06-22  1:59   ` Khairulmizam Samsudin
  2008-06-22 21:24     ` Andrew Kohlsmith (lists)
@ 2008-06-22 22:41     ` David Stockwell
  1 sibling, 0 replies; 7+ messages in thread
From: David Stockwell @ 2008-06-22 22:41 UTC (permalink / raw)
  To: Khairulmizam Samsudin; +Cc: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 1720 bytes --]

The constraint is actually in the Bluetooth Specification, which specifies that RSSI is a single signed octet (byte) with a range of -127 to +127 in dB.  I have attached a screenshot of the section for you.

If you wish, you can return the signed integer returned from BlueZ and convert it yourself to a float, but recognize that the underlying value is an integer.

If you have not done so already, suggest you get a copy of the Bluetooth specification, which describes the BT protocol and stack in detail.  The specification is available from the Bluetooth SIG, at http://www.bluetooth.org/ 

Best regards,

David Stockwell
  ----- Original Message ----- 
  From: Khairulmizam Samsudin 
  To: BlueZ development 
  Sent: Saturday, June 21, 2008 8:59 PM
  Subject: Re: [Bluez-devel] RSSI value in floating point


  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?

  Regards
  xource

  Marcel Holtmann wrote: 
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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
  

[-- Attachment #1.2: Type: text/html, Size: 3553 bytes --]

[-- Attachment #2: RSSI.JPG --]
[-- Type: image/jpeg, Size: 53292 bytes --]

[-- Attachment #3: Type: text/plain, Size: 247 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] RSSI value in floating point
  2008-06-22 22:07       ` Marcel Holtmann
@ 2008-06-23  1:02         ` Andrew Kohlsmith (lists)
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Kohlsmith (lists) @ 2008-06-23  1:02 UTC (permalink / raw)
  To: bluez-devel

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-06-23  1:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-21  3:20 [Bluez-devel] RSSI value in floating point Khairulmizam Samsudin
2008-06-21  4:57 ` Marcel Holtmann
2008-06-22  1:59   ` Khairulmizam Samsudin
2008-06-22 21:24     ` Andrew Kohlsmith (lists)
2008-06-22 22:07       ` Marcel Holtmann
2008-06-23  1:02         ` Andrew Kohlsmith (lists)
2008-06-22 22:41     ` David Stockwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox