Linux bluetooth development
 help / color / mirror / Atom feed
* Inquiry_with_RSSI compatible dongles
       [not found] ` <AANLkTinbYqYrFrJDCEm3U0Mto8fYJyQLDa8s0KB6T3qi@mail.gmail.com>
@ 2010-10-04 14:48   ` Giedo Mak
  2010-10-05  7:36     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Giedo Mak @ 2010-10-04 14:48 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

I'm working on a bluetooth program with some sort of distance sensing/tracking.
To make this easier I came across a feature called inquiry_with_RSSI.
Could somebody tell me what kind of dongles support this feature. I
mean, does every 2.1 BT dongle support it, or can you only find out
once you get one in your hands?

Kind regards,
Giedo

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

* Re: Inquiry_with_RSSI compatible dongles
  2010-10-04 14:48   ` Inquiry_with_RSSI compatible dongles Giedo Mak
@ 2010-10-05  7:36     ` Marcel Holtmann
  2010-10-07  9:34       ` Giedo Mak
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2010-10-05  7:36 UTC (permalink / raw)
  To: Giedo Mak; +Cc: linux-bluetooth

Hi Giedo,

> I'm working on a bluetooth program with some sort of distance sensing/tracking.
> To make this easier I came across a feature called inquiry_with_RSSI.
> Could somebody tell me what kind of dongles support this feature. I
> mean, does every 2.1 BT dongle support it, or can you only find out
> once you get one in your hands?

in general every Bluetooth 1.2 dongle and later should support Inquiry
with RSSI. I still have to come across a 2.1 dongle that doesn't.

Regards

Marcel



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

* Re: Inquiry_with_RSSI compatible dongles
  2010-10-05  7:36     ` Marcel Holtmann
@ 2010-10-07  9:34       ` Giedo Mak
  2010-10-07  9:42         ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Giedo Mak @ 2010-10-07  9:34 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: linux-bluetooth

2010/10/5 Marcel Holtmann <marcel@holtmann.org>
>
> Hi Giedo,
>
> > I'm working on a bluetooth program with some sort of distance sensing/tracking.
> > To make this easier I came across a feature called inquiry_with_RSSI.
> > Could somebody tell me what kind of dongles support this feature. I
> > mean, does every 2.1 BT dongle support it, or can you only find out
> > once you get one in your hands?
>
> in general every Bluetooth 1.2 dongle and later should support Inquiry
> with RSSI. I still have to come across a 2.1 dongle that doesn't.
>
> Regards
>
> Marcel
>

Hello Marcel,

Thanks for your fast response.

I got myself a brandless bluetooth 2.1 dongle (at least, that's what
is says on the box).
In hciconfig I got something about HCI version 2.0:

        HCI Version: 2.0 (0x3)  Revision: 0x44
        LMP Version: 2.0 (0x3)  Subversion: 0x3
        Manufacturer: Cambridge Silicon Radio (10)

Does that mean it is a BT 2.0 device?

I would like to ask a second question:
When I put the device in inqmode 1, (the dongle has the feature
inquiry with rssi; I checked with hciconfig hci0 features)

        Inquiry mode: Inquiry with RSSI

I get 'Inquiry result with RSSI'-events. But these events have a
constant RSSI value.
I would like know if this is a known bug, or if there is a setting I
have to set.
This is a little hcidump output:

> HCI Event: Inquiry Result with RSSI (0x22) plen 15
  01 5C 07 D3 D7 23 00 01 02 04 02 5A 7E 70 00
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
  01 1C 01 00 81 1F 00 01 02 04 01 02 40 7E 00
> HCI Event: Inquiry Complete (0x01) plen 1
  00
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
  01 5C 07 D3 D7 23 00 01 02 04 02 5A 7E 70 00
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
  01 89 99 66 D0 25 00 01 02 0C 02 5A 61 15 00
> HCI Event: Inquiry Complete (0x01) plen 1
  00
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
  01 1C 01 00 81 1F 00 01 02 04 01 02 3F 7E 00
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
  01 5C 07 D3 D7 23 00 01 02 04 02 5A 7D 70 00
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
  01 89 99 66 D0 25 00 01 02 0C 02 5A 61 15 00
> HCI Event: Inquiry Complete (0x01) plen 1
  00

If I'm correct the RSSI value should be the last octet, which is always 0.

I've tested also with another bluetooth dongle, this was a 2.0 BT
dongle also with the inquiry with rssi feature. That dongle gave me
(valid) RSSI values in the returned events between -40 and -90.

The last dongle is not longer in my possession, so I would like to fix
the first one.

Regards,
Giedo

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

* Re: Inquiry_with_RSSI compatible dongles
  2010-10-07  9:34       ` Giedo Mak
@ 2010-10-07  9:42         ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2010-10-07  9:42 UTC (permalink / raw)
  To: Giedo Mak; +Cc: linux-bluetooth

Hi Giedo,

> I got myself a brandless bluetooth 2.1 dongle (at least, that's what
> is says on the box).
> In hciconfig I got something about HCI version 2.0:
> 
>         HCI Version: 2.0 (0x3)  Revision: 0x44
>         LMP Version: 2.0 (0x3)  Subversion: 0x3
>         Manufacturer: Cambridge Silicon Radio (10)
> 
> Does that mean it is a BT 2.0 device?
> 
> I would like to ask a second question:
> When I put the device in inqmode 1, (the dongle has the feature
> inquiry with rssi; I checked with hciconfig hci0 features)
> 
>         Inquiry mode: Inquiry with RSSI
> 
> I get 'Inquiry result with RSSI'-events. But these events have a
> constant RSSI value.
> I would like know if this is a known bug, or if there is a setting I
> have to set.
> This is a little hcidump output:
> 
> > HCI Event: Inquiry Result with RSSI (0x22) plen 15
>   01 5C 07 D3 D7 23 00 01 02 04 02 5A 7E 70 00
> > HCI Event: Inquiry Result with RSSI (0x22) plen 15
>   01 1C 01 00 81 1F 00 01 02 04 01 02 40 7E 00
> > HCI Event: Inquiry Complete (0x01) plen 1
>   00
> > HCI Event: Inquiry Result with RSSI (0x22) plen 15
>   01 5C 07 D3 D7 23 00 01 02 04 02 5A 7E 70 00
> > HCI Event: Inquiry Result with RSSI (0x22) plen 15
>   01 89 99 66 D0 25 00 01 02 0C 02 5A 61 15 00
> > HCI Event: Inquiry Complete (0x01) plen 1
>   00
> > HCI Event: Inquiry Result with RSSI (0x22) plen 15
>   01 1C 01 00 81 1F 00 01 02 04 01 02 3F 7E 00
> > HCI Event: Inquiry Result with RSSI (0x22) plen 15
>   01 5C 07 D3 D7 23 00 01 02 04 02 5A 7D 70 00
> > HCI Event: Inquiry Result with RSSI (0x22) plen 15
>   01 89 99 66 D0 25 00 01 02 0C 02 5A 61 15 00
> > HCI Event: Inquiry Complete (0x01) plen 1
>   00
> 
> If I'm correct the RSSI value should be the last octet, which is always 0.
> 
> I've tested also with another bluetooth dongle, this was a 2.0 BT
> dongle also with the inquiry with rssi feature. That dongle gave me
> (valid) RSSI values in the returned events between -40 and -90.
> 
> The last dongle is not longer in my possession, so I would like to fix
> the first one.

you just got a bad dongle. Some claim RSSI reporting support, but never
do anything like that. Proper hardware will look like this:

> HCI Event: Inquiry Result with RSSI (0x22) plen 15
    bdaddr 00:21:86:47:51:B9 mode 1 clkoffset 0x47f6 class 0x00010c rssi -84
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
    bdaddr 00:16:CF:D7:DD:72 mode 1 clkoffset 0x5662 class 0x00010c rssi -85
> HCI Event: Extended Inquiry Result (0x2f) plen 255
    bdaddr D8:54:3A:7E:9C:9A mode 1 clkoffset 0x2d71 class 0x5a020c rssi -57
    Complete local name: 'Nokia'
    Complete service classes: 0x1112 0x111f 0x110a 0x110c 0x110e 0x1103 0x1105 0x1106 0x112f

Regards

Marcel



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

end of thread, other threads:[~2010-10-07  9:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <AANLkTinU4+-Meyz_BmL+Lw-ESCR_NVhdu7esTE8wCWuc@mail.gmail.com>
     [not found] ` <AANLkTinbYqYrFrJDCEm3U0Mto8fYJyQLDa8s0KB6T3qi@mail.gmail.com>
2010-10-04 14:48   ` Inquiry_with_RSSI compatible dongles Giedo Mak
2010-10-05  7:36     ` Marcel Holtmann
2010-10-07  9:34       ` Giedo Mak
2010-10-07  9:42         ` Marcel Holtmann

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