Re: [Bluez-users] hci_inquiry

Przemysław Jakubowski
2007-06-13T06:31:45Z

2007/6/13, Marcel Holtmann <marcel@holtmann.org>:
> Hi Przemek,
>
> > I'm writing aplication in Java using Avetana library. Sometimes
> > inquiry hangs up, and I want to stop it. There is native method in
> > library cancelInquiry but it's not implemented. I need to stop
> > existing inquiry. Function hci_inquiry implemented in hci.c starts
> > inquiry, but i don't find there any function that cancels it.
> > I'll be very thankful for any help
>
> if you would use the new D-Bus API for BlueZ you would be able to cancel
> it. With the C only API it is not possible. That specific call is
> blocking.
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>

Hi. Marcel

I'm little new in bluetooth software, so I've got some more questions.
Where can I find this D-BUS API (is it in new versions of bluez-libs,
bluez-utils or in kernel).

Yesterday I generated this code:

hci_send_req(dev_id, &rq, 100)
where
rq is hci_request struct and i set
rq.ogf = OGF_LINK_CTL;
rq.ocf = OCF_INQUIRY_CANCEL;

If this code would be proper if I have new D-Bus API.

I'll be very thankful for every help.

Greetings, Przemek