public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Claudio Takahasi <cktakahasi@gmail.com>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] Re: Periodic Inquiry
Date: Thu, 21 Jul 2005 11:08:26 -0300	[thread overview]
Message-ID: <e1effdeb050721070860bf3de1@mail.gmail.com> (raw)
In-Reply-To: <e1effdeb050720121520ed4b4a@mail.gmail.com>

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.

On 7/20/05, Claudio Takahasi <cktakahasi@gmail.com> wrote:
> 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);
>=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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

      reply	other threads:[~2005-07-21 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-20 19:15 [Bluez-devel] Periodic Inquiry Claudio Takahasi
2005-07-21 14:08 ` Claudio Takahasi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e1effdeb050721070860bf3de1@mail.gmail.com \
    --to=cktakahasi@gmail.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox