accessing info on paired devices
Hi,
I'm working on a little project that would have to automatically scan for bluetooth devices (using a little perl script) and then attempt to connect to them. However, I would prefer if it would only attempt to connect to devices that have already been paired with the computer (via bluetooth usb-dongle) and ignore discovered devices that have not been paired. So, how can I find out which of the discovered devices have been paired?
Pall Thayer
Signature · 17 lines
_______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________ ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Pall,
Quoted 7 lines
I'm working on a little project that would have to automatically scan for bluetooth devices (using a little perl script) and then attempt to connect to them. However, I would prefer if it would only attempt to connect to devices that have already been paired with the computer (via bluetooth usb-dongle) and ignore discovered devices that have not been paired. So, how can I find out which of the discovered devices have been paired?
if there exists a link key for this device then they are paired, but the problem is that security mode 1 not demands to pair two devices.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
But the link key is in binary form so I can't read it. What I've been doing is just sending a single l2ping to each of the discovered devices, the ones that are paired and authorized respond, the others time-out and are eventually ignored. The only problem is that I end up with a stack of PIN request pop-ups for the ones that aren't paired and authorized. Not a big deal but somewhat annoying. I tried playing around with the security settings in hcid.conf but nothing I did managed to avoid the PIN request pop-up.
Pall
Quoted 14 lines · Marcel Holtmann
Hi Pall,
Quoted 1 line
I'm working on a little project that would have to automatically scan for bluetooth devices (using a little perl script) and then attempt to connect to them. However, I would prefer if it would only attempt to connect to devices that have already been paired with the computer (via bluetooth usb-dongle) and ignore discovered devices that have not been paired. So, how can I find out which of the discovered devices have been paired?
if there exists a link key for this device then they are paired, but the problem is that security mode 1 not demands to pair two devices.
Regards
Marcel
Signature · 6 lines
_______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
Marcel Holtmann
maintainerHi Pall,
Quoted 8 lines
But the link key is in binary form so I can't read it. What I've been doing is just sending a single l2ping to each of the discovered devices, the ones that are paired and authorized respond, the others time-out and are eventually ignored. The only problem is that I end up with a stack of PIN request pop-ups for the ones that aren't paired and authorized. Not a big deal but somewhat annoying. I tried playing around with the security settings in hcid.conf but nothing I did managed to avoid the PIN request pop-up.
we will change the link key file to be ASCII, but you should understand the three security modes of Bluetooth. I think you put your device into security mode 3 and this is bad unless you really know what you are doing.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users