Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 2006 12:07:06 +0200
From:      Marcel Holtmann <marcel@holtmann.org>
To:        Carlos =?ISO-8859-1?Q?Fern=E1ndez?= Herranz <cfernandezh@udc.es>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: About Inquiry_with_RSSI
Message-ID:  <1145873226.21987.12.camel@localhost>
In-Reply-To: <444C9BBA.4010206@udc.es>
References:  <4423D096.2010205@udc.es> <44248823.3040907@savvis.net> <44291782.8010003@udc.es> <1143546159.980113.1641.nullmailer@galant.ukfsn.org> <44292470.5020803@udc.es> <1143547703.630752.2338.nullmailer@galant.ukfsn.org> <44294D1D.4010901@udc.es> <1143558548.478651.3242.nullmailer@galant.ukfsn.org> <4447A36C.8070201@udc.es> <4447BB29.906@savvis.net> <444C9BBA.4010206@udc.es>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Carlos,

> Firsly, the command packets and constants:
> 
> #define NG_HCI_EVENT_INQUIRY_RESULT_WITH_RSSI    0x22
> 
> *typedef* *struct* {
>         u_int8_t        num_responses;      //* number of responses *//
> } __attribute__ ((packed)) ng_hci_inquiry_result_with_rssi_ep;
> 
> *typedef* *struct* {
>         bdaddr_t        bdaddr;
>         u_int8_t        pagescan_rep_mode;
>         u_int8_t        pagescan_period_mode;
>         u_int8_t        uclass[NG_HCI_CLASS_SIZE];
>         u_int16_t       clock_offset;
>         char 	        rssi;
> } __attribute__ ((packed)) ng_hci_inquiry_response_with_rssi;

and don't forget ng_hci_inquiry_response_with_rssi_and_pagescan_mode.

There exists buggy Bluetooth 1.2 devices from some companies that also
return the pagescan_mode field with this response even if it has been
removed from the specification.

To differentiate between these two events, you need to check the length
of the event and the num_responses. Use BlueZ as a reference on how to
do it.

Regards

Marcel





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1145873226.21987.12.camel>