2005-03-29 09:31:02

by Marco Trudel

[permalink] [raw]
Subject: [Bluez-users] inquiry with rssi

Hello

how to do an inquiry with rssi?

I set the inquiry mode to "inquiry with rssi" with hci_write_inquiry_mode.

Then I passed an inquiry_info_with_rssi (named info) to hci_inquiry:
hci_inquiry(dev_id, length, num_rsp, NULL, (inquiry_info**)&info, flags);

but this doesn't seem to work.
what is the official way? Can someone provide a sample?


regards
Marco

Content Security by MailMarshal


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2005-03-30 10:02:31

by Marco Trudel

[permalink] [raw]
Subject: Re: [Bluez-users] inquiry with rssi

Marcel Holtmann wrote:
> Hi Marco,
>
>
>>Can you please provide an example?
>>I'm not that experienced in bluetooth programming as you are...
>>
>>It would be sensefull to have a codesnippet like that in the
>>mailinglistarchive as well...
>
>
> actually there is such a code snippet in the mailing list archive.

found it. thanks for the hint!

regards
Marco


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-03-29 15:18:26

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] inquiry with rssi

Hi Marco,

> Can you please provide an example?
> I'm not that experienced in bluetooth programming as you are...
>
> It would be sensefull to have a codesnippet like that in the
> mailinglistarchive as well...

actually there is such a code snippet in the mailing list archive.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-03-29 10:18:26

by Marco Trudel

[permalink] [raw]
Subject: Re: [Bluez-users] inquiry with rssi

Can you please provide an example?
I'm not that experienced in bluetooth programming as you are...

It would be sensefull to have a codesnippet like that in the
mailinglistarchive as well...

regards
Marco


Marcel Holtmann wrote:
> Hi Marco,
>
>
>>how to do an inquiry with rssi?
>>
>>I set the inquiry mode to "inquiry with rssi" with hci_write_inquiry_mode.
>>
>>Then I passed an inquiry_info_with_rssi (named info) to hci_inquiry:
>>hci_inquiry(dev_id, length, num_rsp, NULL, (inquiry_info**)&info, flags);
>>
>>but this doesn't seem to work.
>>what is the official way? Can someone provide a sample?
>
>
> the hci_inquiry() command does not support inquiry with RSSI. You must
> use the HCI raw socket for this.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>

Content Security by MailMarshal


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-03-29 10:10:34

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] inquiry with rssi

Hi Marco,

> how to do an inquiry with rssi?
>
> I set the inquiry mode to "inquiry with rssi" with hci_write_inquiry_mode.
>
> Then I passed an inquiry_info_with_rssi (named info) to hci_inquiry:
> hci_inquiry(dev_id, length, num_rsp, NULL, (inquiry_info**)&info, flags);
>
> but this doesn't seem to work.
> what is the official way? Can someone provide a sample?

the hci_inquiry() command does not support inquiry with RSSI. You must
use the HCI raw socket for this.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users