Linux bluetooth development
 help / color / mirror / Atom feed
From: "Przemysław Jakubowski" <przemyslaw.jakubowski@javatech.com.pl>
To: "BlueZ users" <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] hci_inquiry
Date: Wed, 13 Jun 2007 08:31:45 +0200	[thread overview]
Message-ID: <fc3d922d0706122331u55151133x5b141ef3a1159146@mail.gmail.com> (raw)
In-Reply-To: <1181703539.6872.95.camel@aeonflux.holtmann.net>

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

  reply	other threads:[~2007-06-13  6:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-06-16  7:45     ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2007-06-11 13:46 Przemysław Jakubowski

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=fc3d922d0706122331u55151133x5b141ef3a1159146@mail.gmail.com \
    --to=przemyslaw.jakubowski@javatech.com.pl \
    --cc=bluez-users@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