All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] /etc/bluetooth/pin
@ 2005-04-27 18:24 N. I.
  2005-04-28  8:43 ` Marco Trudel
  0 siblings, 1 reply; 2+ messages in thread
From: N. I. @ 2005-04-27 18:24 UTC (permalink / raw)
  To: bluez-users

My device uses the fault pin as 1234.
I want to change it to something else, e.g. 55113.

What I did was to modify the /etc/bluetooth/pin file to have the
content only of 55113.
My pin_helper has something like:

#!/bin/sh
echo "PIN:"$(cat /etc/bluetooth/pin)

When I try to use l2ping to other device, my initiating l2ping device
fails right away with message: "Can't connect.: Permission denied"

Is there anything missing that I can do in order for "NOT" using the
default pin?

N.I


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] /etc/bluetooth/pin
  2005-04-27 18:24 [Bluez-users] /etc/bluetooth/pin N. I.
@ 2005-04-28  8:43 ` Marco Trudel
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Trudel @ 2005-04-28  8:43 UTC (permalink / raw)
  To: bluez-users

N. I. wrote:
> My device uses the fault pin as 1234.
> I want to change it to something else, e.g. 55113.
> 
> What I did was to modify the /etc/bluetooth/pin file to have the
> content only of 55113.
> My pin_helper has something like:
> 
> #!/bin/sh
> echo "PIN:"$(cat /etc/bluetooth/pin)
> 
> When I try to use l2ping to other device, my initiating l2ping device
> fails right away with message: "Can't connect.: Permission denied"

Is the l2ping performed on the host with the described pin setup?
Please do a hcidump to see what really happens...

I think the remote device asks for a pin, you supply 55113 and it fails 
because the remote device expects another one. but withhout a hcidump it's 
not possible to know...

> Is there anything missing that I can do in order for "NOT" using the
> default pin?

actually what you described above is doing exactly that. incoming and 
outgoing connections use now 55113. the only thing you might check is if 
hcid.conf points to the correct pin_helper application. the rest looks fine...

regards
Marco


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27 18:24 [Bluez-users] /etc/bluetooth/pin N. I.
2005-04-28  8:43 ` Marco Trudel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.