Skip to contentSkip to conversation

Periodic Inquiry

Bluez-devel Claudio Takahasi 1 participant 2 messages Jul 20, 2005 – Jul 21, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi folks,

What is the correct way to deal with periodic inquiry?

Currently I created a raw BT HCI socket integrated with my application main loop. The following events is being captured:

int8_t hci_events[] =3D { EVT_INQUIRY_RESULT, \
=09=09=09=09 EVT_INQUIRY_RESULT_WITH_RSSI, \
=09=09=09=09 EVT_INQUIRY_COMPLETE, \
=09=09=09=09 EVT_REMOTE_NAME_REQ_COMPLETE, \
=09=09=09=09 EVT_CMD_STATUS, \
=09=09=09=09 0 };

.....
The hci command is:
ret =3D hci_send_cmd(sock, OGF_LINK_CTL, OCF_PERIODIC_INQUIRY, \
=09=09=09PERIODIC_INQUIRY_CP_SIZE, &inq_param);

Is there another way to do this task? eg: Using ioctl.

Regards,
Claudio.

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

Hi folks,

The inquiry periodic is not working properly. The minimum=20 amount of time specified between consecutive inquiries is not working as I expect. The device is entering on inquiry mode every +- 5seconds.

Is there a problem in the code below?

=09inq_param.num_rsp =3D 100;
=09inq_param.length =3D 4; /* 5.12s */

=09inq_param.max_period =3D 49; /* 62.72s */
=09inq_param.min_period =3D 27; /* 34.56s */

=09/* General/Unlimited Inquiry Access Code */ =09inq_param.lap[0] =3D 0x33;
=09inq_param.lap[1] =3D 0x8b;
=09inq_param.lap[2] =3D 0x9e;
=09ret =3D hci_send_cmd(sock, OGF_LINK_CTL, OCF_PERIODIC_INQUIRY,=20 =09=09=09PERIODIC_INQUIRY_CP_SIZE, &inq_param);

Regards,
Claudio.

Quoted 18 lines · Claudio Takahasi

Hi folks,
=20
What is the correct way to deal with periodic inquiry? =20
Currently I created a raw BT HCI socket integrated with my application main loop. The following events is being captured:
=20

int8_t hci_events[]  =3D { EVT_INQUIRY_RESULT, \
                                 EVT_INQUIRY_RESULT_WITH_RSSI, \
                                 EVT_INQUIRY_COMPLETE, \
                                 EVT_REMOTE_NAME_REQ_COMPLETE, \
                                 EVT_CMD_STATUS, \
                                 0 };
=20
.....
The hci command is:
ret =3D hci_send_cmd(sock, OGF_LINK_CTL, OCF_PERIODIC_INQUIRY, \
                        PERIODIC_INQUIRY_CP_SIZE, &inq_param);
Quoted 8 lines

=20
=20
Is there another way to do this task? eg: Using ioctl. =20
=20
Regards,
Claudio.

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel