[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [bluetooth-dev] Name inquiry
I have looked in my source code, see below. For some reasons i have had to
swap the bt-address in the remote name request call.
for (i = 0; i < inq_res->nbr_of_units; i++)
fprintf (stdout,"remote bd-address %d:
%02X:%02X:%02X:%02X:%02X:%02X: - ", i,
inq_res->bd_addr[0 + 6 * i], inq_res->bd_addr[1 + 6 *
i], inq_res->bd_addr[2 + 6 * i],
inq_res->bd_addr[3 + 6 * i], inq_res->bd_addr[4 + 6 *
i], inq_res->bd_addr[5 + 6 * i]);
for (k = 0; k < 6; k++) /* for unknown reasons bd-address
has to be swaped sometimes */
remote_bd_addr[5 - k] = inq_res->bd_addr[k + 6 * i];
hci_remote_name_request_ready = 0;
> -----Ursprüngliche Nachricht-----
> Von: Alain Paschoud [SMTP:email@example.com]
> Gesendet am: Mittwoch, 17. Oktober 2001 11:03
> An: firstname.lastname@example.org
> Betreff: [bluetooth-dev] Name inquiry
> Hi all,
> I want to present to the user a list of detected bluetooth devices. Of
> course, I don't want to present the hw addresses. So I implemented a ioctl
> get the name of a remote device. I use function "remote_name_request"
> already implemented in the stack.
> Problem : I always recieve back "BT SYS: ERROR: process_event:
> REMOTE_NAME_REQUEST_COMPLETE: Page Timeout ".
> Because I use an already implemented function, and because I verified that
> the hw-address I give to this function is correct, there is something else
> In Axis stack, the remote_name_request function is called at the end of
> connection. Does it mean that it is impossible to get name without to
> connect ? In this case, how to know device name to present a list of
> to the user ?
> Thank you very much if someone can give me an advice or a direction in
> to search...
> Alain Paschoud SMARTDATA SA
> email@example.com PSE-A
> http://www.smartdata.ch 1015 Lausanne
> Phone +41-21-693'84'98
> Fax +41-27-693'84'91
> To unsubscribe from this list: send the line "unsubscribe bluetooth-dev"
> the body of a message to firstname.lastname@example.org
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to email@example.com