public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] accessing info on paired devices
@ 2004-09-26 18:34 Pall Thayer
  2004-09-28  8:16 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Pall Thayer @ 2004-09-26 18:34 UTC (permalink / raw)
  To: bluez-users

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

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

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

* Re: [Bluez-users] accessing info on paired devices
  2004-09-26 18:34 [Bluez-users] accessing info on paired devices Pall Thayer
@ 2004-09-28  8:16 ` Marcel Holtmann
  2004-09-28  8:33   ` Pall Thayer
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2004-09-28  8:16 UTC (permalink / raw)
  To: Pall Thayer; +Cc: bluez-users

Hi Pall,

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

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

* Re: [Bluez-users] accessing info on paired devices
  2004-09-28  8:16 ` Marcel Holtmann
@ 2004-09-28  8:33   ` Pall Thayer
  2004-09-28  8:43     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Pall Thayer @ 2004-09-28  8:33 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: 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

Marcel Holtmann wrote:
> Hi Pall,
> 
> 
>>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
> 
> 

-- 
_______________________________
Pall Thayer
artist/teacher
http://www.this.is/pallit
http://pallit.lhi.is/panse
_______________________________

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

* Re: [Bluez-users] accessing info on paired devices
  2004-09-28  8:33   ` Pall Thayer
@ 2004-09-28  8:43     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2004-09-28  8:43 UTC (permalink / raw)
  To: Pall Thayer; +Cc: bluez-users

Hi Pall,

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

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

end of thread, other threads:[~2004-09-28  8:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-26 18:34 [Bluez-users] accessing info on paired devices Pall Thayer
2004-09-28  8:16 ` Marcel Holtmann
2004-09-28  8:33   ` Pall Thayer
2004-09-28  8:43     ` Marcel Holtmann

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