Skip to contentSkip to conversation

replicate hcitool scan using bluez libs

Bluez-users Weston Weems 2 participants 3 messages Jan 12, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw

Hi Weston,

Quoted 7 lines

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

#2 lore raw

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.

Quoted 18 lines · Marcel Holtmann

Hi Weston,

Quoted 7 lines

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

Quoted 9 lines

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