public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] managing pairing
@ 2004-12-02 23:25 wim delvaux
  2004-12-03  2:57 ` Marcel Holtmann
  2004-12-05  0:59 ` Fred Schaettgen
  0 siblings, 2 replies; 6+ messages in thread
From: wim delvaux @ 2004-12-02 23:25 UTC (permalink / raw)
  To: bluez-users

Hi all,

another question.  I suppose the link_key file can contain link keys to 
multiple remove BT devices (e.g a USB BT dongle and a BT Phone)

I also presume that each link_key is associated to the bdaddress of the remote 
device it relates to.

so 

1. can the link_key file be browsed to find all the devices a link_key exists 
for

2. can one 'remove' one such record from the link_key file and assume that the 
pairing will retry once removed (much like removing the link_key file 
completely)

W


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] managing pairing
  2004-12-02 23:25 [Bluez-users] managing pairing wim delvaux
@ 2004-12-03  2:57 ` Marcel Holtmann
  2004-12-03  3:43   ` wim delvaux
  2004-12-05  0:59 ` Fred Schaettgen
  1 sibling, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2004-12-03  2:57 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Wim,

> another question.  I suppose the link_key file can contain link keys to 
> multiple remove BT devices (e.g a USB BT dongle and a BT Phone)
> 
> I also presume that each link_key is associated to the bdaddress of the remote 
> device it relates to.
> 
> so 
> 
> 1. can the link_key file be browsed to find all the devices a link_key exists 
> for
> 
> 2. can one 'remove' one such record from the link_key file and assume that the 
> pairing will retry once removed (much like removing the link_key file 
> completely)

there were plans to move this file into a text file, but no code has
been written so far. However you can do your modification by hand, but
at the moment after each change the hcid must be restarted.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] managing pairing
  2004-12-03  2:57 ` Marcel Holtmann
@ 2004-12-03  3:43   ` wim delvaux
  2004-12-03  3:50     ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: wim delvaux @ 2004-12-03  3:43 UTC (permalink / raw)
  To: bluez-users

On Friday 03 December 2004 03:57, Marcel Holtmann wrote:
> Hi Wim,
>
> > another question.  I suppose the link_key file can contain link keys to
> > multiple remove BT devices (e.g a USB BT dongle and a BT Phone)
> >
> > I also presume that each link_key is associated to the bdaddress of the
> > remote device it relates to.
> >
> > so
> >
> > 1. can the link_key file be browsed to find all the devices a link_key
> > exists for
> >
> > 2. can one 'remove' one such record from the link_key file and assume
> > that the pairing will retry once removed (much like removing the link_key
> > file completely)
>
> there were plans to move this file into a text file, but no code has
> been written so far. However you can do your modification by hand, but
> at the moment after each change the hcid must be restarted.

 restarting is doable.  
 If I understand properly, the file is binary. Can you point me to the
 source file where the IO to the link_key file is written ? For the time being
 I could use that code to load the link_key file and later use the proper 
ASCII format.

 W

>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] managing pairing
  2004-12-03  3:43   ` wim delvaux
@ 2004-12-03  3:50     ` Marcel Holtmann
  0 siblings, 0 replies; 6+ messages in thread
From: Marcel Holtmann @ 2004-12-03  3:50 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Wim,

> > there were plans to move this file into a text file, but no code has
> > been written so far. However you can do your modification by hand, but
> > at the moment after each change the hcid must be restarted.
> 
>  restarting is doable.  
>  If I understand properly, the file is binary. Can you point me to the
>  source file where the IO to the link_key file is written ? For the time being
>  I could use that code to load the link_key file and later use the proper 
> ASCII format.

check utils/hcid/hcid.h and utils/hcid/security.c.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] managing pairing
  2004-12-02 23:25 [Bluez-users] managing pairing wim delvaux
  2004-12-03  2:57 ` Marcel Holtmann
@ 2004-12-05  0:59 ` Fred Schaettgen
  2004-12-05  1:36   ` wim delvaux
  1 sibling, 1 reply; 6+ messages in thread
From: Fred Schaettgen @ 2004-12-05  0:59 UTC (permalink / raw)
  To: bluez-users

On Friday 03 December 2004 00:25, wim delvaux wrote:
> another question.  I suppose the link_key file can contain link keys to
> multiple remove BT devices (e.g a USB BT dongle and a BT Phone)
>
> I also presume that each link_key is associated to the bdaddress of the
> remote device it relates to.
>
> 1. can the link_key file be browsed to find all the devices a link_key
> exists for
>
> 2. can one 'remove' one such record from the link_key file and assume that
> the pairing will retry once removed (much like removing the link_key file
> completely)

Just for the record and for the KDE users out there: 
The KDE Bluetooth Framework just got it's own link key management tool a few 
minutes ago, so you can see and remove any paired device without using a hex 
editor or deleting the whole link key file now. I just wonder why no one 
seemed to miss something like that the whole time.

regards
Fred

-- 
Fred Schaettgen
bluez-user@schaettgen.de


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] managing pairing
  2004-12-05  0:59 ` Fred Schaettgen
@ 2004-12-05  1:36   ` wim delvaux
  0 siblings, 0 replies; 6+ messages in thread
From: wim delvaux @ 2004-12-05  1:36 UTC (permalink / raw)
  To: bluez-users

On Sunday 05 December 2004 01:59, Fred Schaettgen wrote:
> On Friday 03 December 2004 00:25, wim delvaux wrote:
> > another question.  I suppose the link_key file can contain link keys to
> > multiple remove BT devices (e.g a USB BT dongle and a BT Phone)
> >
> > I also presume that each link_key is associated to the bdaddress of the
> > remote device it relates to.
> >
> > 1. can the link_key file be browsed to find all the devices a link_key
> > exists for
> >
> > 2. can one 'remove' one such record from the link_key file and assume
> > that the pairing will retry once removed (much like removing the link_key
> > file completely)
>
> Just for the record and for the KDE users out there:
> The KDE Bluetooth Framework just got it's own link key management tool a
> few minutes ago, so you can see and remove any paired device without using
> a hex editor or deleting the whole link key file now. I just wonder why no
> one seemed to miss something like that the whole time.

opie has it now too ;-)

However i think that for safety one should start/stop the hcid because it 
'could' open the link_key file while one is rewriting it
>
> regards
> Fred


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2004-12-05  1:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-02 23:25 [Bluez-users] managing pairing wim delvaux
2004-12-03  2:57 ` Marcel Holtmann
2004-12-03  3:43   ` wim delvaux
2004-12-03  3:50     ` Marcel Holtmann
2004-12-05  0:59 ` Fred Schaettgen
2004-12-05  1:36   ` wim delvaux

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