Skip to contentSkip to conversation

managing pairing

Bluez-users wim delvaux 3 participants 6 messages Dec 2, 2004 – Dec 5, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw

Hi Wim,

Quoted 6 lines

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.

Quoted 8 lines

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

#2 lore raw
Quoted 13 lines · Marcel Holtmann

Hi Wim,

Quoted 11 lines

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

Quoted 7 lines
Quoted 3 lines

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

Quoted 8 lines

Regards

Marcel

Quoted 9 lines

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

maintainer
#3 lore raw

Hi Wim,

Quoted 9 lines
Quoted 3 lines

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

#4 lore raw
In reply to wim delvaux
Quoted 6 lines · wim delvaux

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.

Quoted 6 lines

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

Signature · 13 lines
Fred Schaettgen
[email protected]


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
#5 lore raw
Quoted 14 lines · Fred Schaettgen
Quoted 6 lines · wim delvaux

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.

Quoted 6 lines

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)

Quoted 5 lines

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

Quoted 3 lines

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