How can I programetically change the default passkey (that is, 1234 or 0000) in Android Bluetooth communication?
I mean, if I want to put the passkey (as 5674 or other) before pairing with another device then the other device must enter the same passkey I defined before the start of the pairing.
Moreover, in Bluetooth Mate Gold, how can I set my own defined key so that any user connecting to the Bluetooth mate Gold must enter that passkey?
Just had to do this myself for the Bluetooth Mate (silver).
To set the device PIN, enter command mode and use the SP command as specified in the Roving Networks Advanced User Manual.
Example: