May 30, 2012 at 8:09 AM
Edited May 30, 2012 at 8:42 AM
Ok, for some reason the headset connects better if I set the radio mode to discoverable. The headset works fine but in the bluetooth settings it still doesnt have the handsfree checkbox set by default. In this pda application the settings are locked
down to prevent users for messing around with the settings.
The only problem I seem to have now is if the user attempts to re-pair the device even though it has already been done before (The people using this pda application are not the smartest people in the world). What I have tried is to remove the pairing using...
unpairResult = BluetoothSecurity.RemoveDevice(BTAddress);
This is returning true, but then when I try to remake the pairing true is returned but the headset stays in the searching for device mode.
pairResult = BluetoothSecurity.PairRequest(BTAddress, txtKeyCode.Text.Trim());
Essentially we have a fleet of staff using a PDA, they want to connect their PDA to handsfree kits built into vehicles. Each day a member of staff may use a different vehicle. I think these hands free kits only allow 1 device to be paired at once. So I may
have the problem where a user used a certain vehicle 1 day and returns to it a few days later. Someone else may have paired their phone to this vehicle in that time. So my Windows PDA will still have the pairing setup but the vehicle will not.
I was thinking I need to remove the pairing from my phone and starting from scratch again. So I try to remove the device and then do a pair request. Like I said above this does not seem to work correctly. After removing the pairing and then performing a
pair request the headset still stays in the searching mode.
Do you have any ideas about a solution to my problem? :D