Hi all
I've been trying to set up Bluez 3.0 (both the libraries and utilities) in Slackware 10.2. I successfully set up previous releases of them, but this attempt wasn't so successful.
First off I did compile and set up D-BUS. It's a requirement of bluez-utils 3.0, and it's up and running with no errors. The problem is the pin-code used for pairing those devices.
In the past I used a simple shell-script for the pin-code because the shipped pinhelper wouldn't work because of some python/GTK error. The script:
Code:
#!/bin/sh
echo "PIN:1833"
This script would be /usr/local/sbin/pinhelper.sh (which only root can read), and thus the following change to /etc/bluetooth/hcid.conf would be needed:
Code:
pin_helper /usr/local/sbin/pinhelper.sh
I tried doing that with bluez-utils 3.0, but the un-modified packaged config-file does not even have the pin_helper setting. I tried adding it anyway, but it did not do anything. So my question is simply: How do I set the pincode for OUTGOING connections from the Linux-box to my Nokia 6230?
I know bluez is otherwise working because an 'hcitool scan' gives the following output:
Code:
Scanning ...
00:15:2A:20:F6:19 Nokia 6230
For the record I'm using ObexFTP to transfer files to/from the phone, and I don't need incoming connections to the Linux box to work. I only need outgoing connection to the phone. I connect to the phone with 'obexftp -b 00:15:2A:20:F6:19 -l' for whatever it matters, and get the following output:
Code:
Browsing 00:15:2A:20:F6:19 ...
Channel: 10
Connecting...failed: connect
Still trying to connect
Connecting...
I type the pin 1833 on the phone, and then the phone tells the Linux-box to get lost. I suppose the Linux-box does not know the pincode, and the stupid phone won't take an empty pin for a valid input.
I'm stuck. Someone please help me.