* How to force a fix pin
@ 2009-12-08 22:15 Ed Tsang
2009-12-09 9:23 ` Nel D
0 siblings, 1 reply; 7+ messages in thread
From: Ed Tsang @ 2009-12-08 22:15 UTC (permalink / raw)
To: Bluettooth Linux
Hi, My application scan for devices, send file to it. But some device (blackberry) will request a pin. With the bluetoothd 4.51. bluetooth-applet will pop up and enter a pin. If de-install it, the bluetoothd will complain "No agent available for 0 request (pin_code_request?).". And the remote device failed to pair with a "default pin 0000".
Is there a way to force a default pin "0000". look like /etc/bluetooth/pin is history. Is there a simply work around.
Net Des
__________________________________________________________________
Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: How to force a fix pin 2009-12-08 22:15 How to force a fix pin Ed Tsang @ 2009-12-09 9:23 ` Nel D 2009-12-09 13:20 ` Ralph Hempel 0 siblings, 1 reply; 7+ messages in thread From: Nel D @ 2009-12-09 9:23 UTC (permalink / raw) To: Ed Tsang; +Cc: Bluettooth Linux Hi , On Wed, Dec 9, 2009 at 3:45 AM, Ed Tsang <netdesign_98@yahoo.com> wrote: > Hi, My application scan for devices, send file to it. But some device (blackberry) will request a pin. With the bluetoothd 4.51. bluetooth-applet will pop up and enter a pin. If de-install it, the bluetoothd will complain "No agent available for 0 request (pin_code_request?).". And the remote device failed to pair with a "default pin 0000". > Is there a way to force a default pin "0000". look like /etc/bluetooth/pin is history. Is there a simply work around. > > Net Des > Do you have the sources of 4.51 ? . I remember a command line utility named simple-agent in test folder ( the location might have changed) which i had used to pair. Hope this helps. Thanks, Nel > > > __________________________________________________________________ > Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/ > -- > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to force a fix pin 2009-12-09 9:23 ` Nel D @ 2009-12-09 13:20 ` Ralph Hempel 2009-12-09 13:21 ` Ralph Hempel 2009-12-09 15:04 ` Ed Tsang 0 siblings, 2 replies; 7+ messages in thread From: Ralph Hempel @ 2009-12-09 13:20 UTC (permalink / raw) To: Nel D; +Cc: Ed Tsang, Bluettooth Linux Nel D wrote: > Hi , > > > On Wed, Dec 9, 2009 at 3:45 AM, Ed Tsang <netdesign_98@yahoo.com> wrote: >> Hi, My application scan for devices, send file to it. But some device (blackberry) will request a pin. With the bluetoothd 4.51. bluetooth-applet will pop up and enter a pin. If de-install it, the bluetoothd will complain "No agent available for 0 request (pin_code_request?).". And the remote device failed to pair with a "default pin 0000". >> Is there a way to force a default pin "0000". look like /etc/bluetooth/pin is history. Is there a simply work around. >> >> Net Des In the directory /var/lib/xx:yy:xx:yy:xx:yy/ where xx:yy:xx:yy:xx:yy is your Bluetooth interface MAC you will either find or have to create two files: pincodes trusts Assuming that your other device is aa:bb:aa:bb:aa:bb you modify the files as follows: In the pincodes file, add a line like this, replace 0000 with your desired pincode aa:bb:aa:bb:aa:bb 0000 In the trusts file, put this: aa:bb:aa:bb:aa:bb [all] Which says the device can access all services (I think) If the pairing is sucessful you will get a new entry in the linkkeys file, and that key will then be used in the future, so no more pairing is required. I am currently investigating why (in 4.57) the linkkeys and trusts entry of a successfully paired device are sometimes deleted. Ralph ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to force a fix pin 2009-12-09 13:20 ` Ralph Hempel @ 2009-12-09 13:21 ` Ralph Hempel 2009-12-09 15:04 ` Ed Tsang 1 sibling, 0 replies; 7+ messages in thread From: Ralph Hempel @ 2009-12-09 13:21 UTC (permalink / raw) To: Nel D; +Cc: Ed Tsang, Bluettooth Linux Ralph Hempel wrote: > In the directory /var/lib/xx:yy:xx:yy:xx:yy/ Sorry, that's /var/lib/bluetooth/xx:yy:xx:yy:xx:yy/ Ralph ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to force a fix pin 2009-12-09 13:20 ` Ralph Hempel 2009-12-09 13:21 ` Ralph Hempel @ 2009-12-09 15:04 ` Ed Tsang 2009-12-09 17:49 ` Ralph Hempel 1 sibling, 1 reply; 7+ messages in thread From: Ed Tsang @ 2009-12-09 15:04 UTC (permalink / raw) To: Ralph Hempel, Nel D; +Cc: Bluettooth Linux Ralph,Nel, Thanks for the hints. Since I will need to use the same pin code for every devices and I will not know their address before hand. In the pincodes file could we use * 0000 I will try it out first. Net Des ----- Original Message ---- From: Ralph Hempel <rhempel@hempeldesigngroup.com> To: Nel D <newatlinux@gmail.com> Cc: Ed Tsang <netdesign_98@yahoo.com>; Bluettooth Linux <linux-bluetooth@vger.kernel.org> Sent: Wed, December 9, 2009 8:20:15 AM Subject: Re: How to force a fix pin Nel D wrote: > Hi , > > > On Wed, Dec 9, 2009 at 3:45 AM, Ed Tsang <netdesign_98@yahoo.com> wrote: >> Hi, My application scan for devices, send file to it. But some device (blackberry) will request a pin. With the bluetoothd 4.51. bluetooth-applet will pop up and enter a pin. If de-install it, the bluetoothd will complain "No agent available for 0 request (pin_code_request?).". And the remote device failed to pair with a "default pin 0000". >> Is there a way to force a default pin "0000". look like /etc/bluetooth/pin is history. Is there a simply work around. >> >> Net Des In the directory /var/lib/xx:yy:xx:yy:xx:yy/ where xx:yy:xx:yy:xx:yy is your Bluetooth interface MAC you will either find or have to create two files: pincodes trusts Assuming that your other device is aa:bb:aa:bb:aa:bb you modify the files as follows: In the pincodes file, add a line like this, replace 0000 with your desired pincode aa:bb:aa:bb:aa:bb 0000 In the trusts file, put this: aa:bb:aa:bb:aa:bb [all] Which says the device can access all services (I think) If the pairing is sucessful you will get a new entry in the linkkeys file, and that key will then be used in the future, so no more pairing is required. I am currently investigating why (in 4.57) the linkkeys and trusts entry of a successfully paired device are sometimes deleted. Ralph -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html __________________________________________________________________ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to force a fix pin 2009-12-09 15:04 ` Ed Tsang @ 2009-12-09 17:49 ` Ralph Hempel 2009-12-09 19:09 ` Ed Tsang 0 siblings, 1 reply; 7+ messages in thread From: Ralph Hempel @ 2009-12-09 17:49 UTC (permalink / raw) To: Bluettooth Linux Ed Tsang wrote: > Ralph,Nel, > Thanks for the hints. > Since I will need to use the same pin code for every devices and I will not know their address before hand. In the pincodes file could we use > * 0000 > I will try it out first. Or, you could scan for new devices and then you'd know the MAC... Ralph ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to force a fix pin 2009-12-09 17:49 ` Ralph Hempel @ 2009-12-09 19:09 ` Ed Tsang 0 siblings, 0 replies; 7+ messages in thread From: Ed Tsang @ 2009-12-09 19:09 UTC (permalink / raw) To: Ralph Hempel, Bluettooth Linux Ralph, Thanks for the suggestion. I ended up changing the test/simple-agent and get it to return "0000". It pair ok with the fix pin now. Ed __________________________________________________________________ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-12-09 19:09 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-12-08 22:15 How to force a fix pin Ed Tsang 2009-12-09 9:23 ` Nel D 2009-12-09 13:20 ` Ralph Hempel 2009-12-09 13:21 ` Ralph Hempel 2009-12-09 15:04 ` Ed Tsang 2009-12-09 17:49 ` Ralph Hempel 2009-12-09 19:09 ` Ed Tsang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox