2007-06-12 08:06:54

by Przemysław Jakubowski

[permalink] [raw]
Subject: [Bluez-users] hci_inquiry

Hello

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

Greetings, Przemek.

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2007-06-16 07:45:21

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] hci_inquiry

Hi,

> 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.

as I said, use the new D-Bus based API. The source code contains a
dbus-api.txt file with the full description.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-06-13 06:31:45

by Przemysław Jakubowski

[permalink] [raw]
Subject: Re: [Bluez-users] hci_inquiry

2007/6/13, Marcel Holtmann <[email protected]>:
> 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
> [email protected]
> 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

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-06-13 02:58:59

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] hci_inquiry

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users