[Ilugc] bluetooth Ubuntu - Moto L6
mohan.tux at gmail.com
Mon Oct 22 19:15:11 IST 2007
Mohan Sundaram wrote:
> 4. /var/log/syslog showed passkey-agent registered. I set default to
> 0000 and still no avail. I wrote a pin_helper script that echoed
> "PIN:0000" and called it from /etc/bluetooth/hcid.conf. Still no avail.
> 5. Did some more RTFM and read in blueZ architecture that auth uses the
> dbus architecture and a interactive dbus-send command was listed. I used
> that to send a PIN to the device and it paired.
Forgot to mention some important stuff here:
1. What I did was to create a bond. This is called by the service which
leads to PIN exchange. Since the PIN exchange was not happening, I was
forced to go lower and create the bond myself. This is a one time
exercise per device.
2. URL http://wiki.bluez.org/wiki/HOWTO/Bonding
3. command used: dbus-send --system --type=method_call --print-reply
--dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.CreateBonding
This caused the PIN box to pop up on the PC. Once keyed in, the MotoL6
asked for the same key. This was timing out pretty fast. I had to do a
one hand per device act to beat the clock. Got it after a few tries.
More information about the ilugc