getting bluetooth up and running and connecting to the phone
connecting to the phone’s functionality aka modem
To be able to actually communicate with the phone, there needs to be a trusted relationship. this relationship is based on a shared secret or pin. to bootstrap this process I took the following steps.
In /etc/bluetooth/hcid.conf there is a reference to pin-helper a small application that helps to get the pin exchange gogin. it was missing, so I replaced it with a small script:
Now let’s make sure their is no communication before the pin exchange has been performed:
The phone will ask for a pin, enter 1234. The connection will be completed. After this first connection you could even put the authorization requirement off and consecutive connections will pass without any additional intervention. Else just “accept” the connection - maybe not such a bad idea afterall :)
The OK shows the modem is responding, so we’re set.
et voila … my wife jumps up and runs to the phone … success !
Bluetooth is pretty nice, I just bought a new gsm, a Sony Ericson Z600, and all this worked like a charm.