public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] hci_inquiry
@ 2007-06-11 13:46 Przemysław Jakubowski
  0 siblings, 0 replies; 5+ messages in thread
From: Przemysław Jakubowski @ 2007-06-11 13:46 UTC (permalink / raw)
  To: BlueZ users

Hello

How to stop this function. When I called it, in some circumstances
everything stops. I want to stop the inquiring.

I will be grateful for every help.

Greeting, 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bluez-users] hci_inquiry
@ 2007-06-12  8:06 Przemysław Jakubowski
  2007-06-13  2:58 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Przemysław Jakubowski @ 2007-06-12  8:06 UTC (permalink / raw)
  To: bluez-users

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] hci_inquiry
  2007-06-12  8:06 [Bluez-users] hci_inquiry Przemysław Jakubowski
@ 2007-06-13  2:58 ` Marcel Holtmann
  2007-06-13  6:31   ` Przemysław Jakubowski
  0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2007-06-13  2:58 UTC (permalink / raw)
  To: BlueZ users

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] hci_inquiry
  2007-06-13  2:58 ` Marcel Holtmann
@ 2007-06-13  6:31   ` Przemysław Jakubowski
  2007-06-16  7:45     ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Przemysław Jakubowski @ 2007-06-13  6:31 UTC (permalink / raw)
  To: BlueZ users

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] hci_inquiry
  2007-06-13  6:31   ` Przemysław Jakubowski
@ 2007-06-16  7:45     ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2007-06-16  7:45 UTC (permalink / raw)
  To: BlueZ users

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-16  7:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-12  8:06 [Bluez-users] hci_inquiry Przemysław Jakubowski
2007-06-13  2:58 ` Marcel Holtmann
2007-06-13  6:31   ` Przemysław Jakubowski
2007-06-16  7:45     ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2007-06-11 13:46 Przemysław Jakubowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox