public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] replicate hcitool scan using bluez libs
@ 2005-01-12  7:22 Weston Weems
  2005-01-12 12:18 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Weston Weems @ 2005-01-12  7:22 UTC (permalink / raw)
  To: Bluez-users

I am a little new to the bluez libs etc, and am trying to essentiall
call functions in the bluez libs to simulate "scan" behaviour of
hcitool.

At first I thought it was inquiry in hci.h but after running the
tools, seems like they yeild different results. Also, device_id is id
of the bluetooth radio in the system?

Anyway I'd appreciate any guidance on the issue... 

many thanks in advance
Weston Weems


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] replicate hcitool scan using bluez libs
  2005-01-12  7:22 [Bluez-users] replicate hcitool scan using bluez libs Weston Weems
@ 2005-01-12 12:18 ` Marcel Holtmann
  2005-01-12 15:31   ` Weston Weems
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2005-01-12 12:18 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Weston,

> I am a little new to the bluez libs etc, and am trying to essentiall
> call functions in the bluez libs to simulate "scan" behaviour of
> hcitool.
> 
> At first I thought it was inquiry in hci.h but after running the
> tools, seems like they yeild different results. Also, device_id is id
> of the bluetooth radio in the system?

the "scan" combines the hci_inquiry() with hci_read_remote_name() and
thats it. The source is in hcitool.c at cmd_scan(). And dev_id is the
number of your local HCI device (see "hcitool dev").

Regards

Marcel




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] replicate hcitool scan using bluez libs
  2005-01-12 12:18 ` Marcel Holtmann
@ 2005-01-12 15:31   ` Weston Weems
  0 siblings, 0 replies; 3+ messages in thread
From: Weston Weems @ 2005-01-12 15:31 UTC (permalink / raw)
  To: bluez-users

Sounds good to me, I'll go read up in the source, an I think I should
be able to pick it up rather easily. Thank you.


On Wed, 12 Jan 2005 13:18:24 +0100, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Weston,
> 
> > I am a little new to the bluez libs etc, and am trying to essentiall
> > call functions in the bluez libs to simulate "scan" behaviour of
> > hcitool.
> >
> > At first I thought it was inquiry in hci.h but after running the
> > tools, seems like they yeild different results. Also, device_id is id
> > of the bluetooth radio in the system?
> 
> the "scan" combines the hci_inquiry() with hci_read_remote_name() and
> thats it. The source is in hcitool.c at cmd_scan(). And dev_id is the
> number of your local HCI device (see "hcitool dev").
> 
> Regards
> 
> Marcel
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2005-01-12 15:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-12  7:22 [Bluez-users] replicate hcitool scan using bluez libs Weston Weems
2005-01-12 12:18 ` Marcel Holtmann
2005-01-12 15:31   ` Weston Weems

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