| Reply | « Previous Thread | Next Thread » |
|
Hi,
I am trying to programmatically initiate the request to pair with other bluetooth device from my Nokia 6600. The Bluetooth address of the remote device is 04:C0:01:00:0D:18 I run the following code on Nokia 6600 to initiate the pairing request: ------------------------------------- RBTMan secManager; RBTBasebandSecurity bbSecurity; TBTDevAddr btDevAddr(TInt64(0x04C0, 0x01000D18)); TRequestStatus aStatus; TBTPinCode aAnswer; // define the security on this port User::LeaveIfError(secManager.Connect()); CleanupClosePushL(secManager); User::LeaveIfError(bbSecurity.Open(secManager)); CleanupClosePushL(bbSecurity); bbSecurity.PinRequest(btDevAddr, aAnswer, aStatus); // THIS DOESN'T WORK :-( User::WaitForRequest(aStatus); // wait until the security settings are set User::LeaveIfError(aStatus.Int()); bbSecurity.Close(); CleanupStack::PopAndDestroy(); // secManager CleanupStack::PopAndDestroy(); // bbSecurity ------------------------------------- Call to the function "PinRequest" doesn;t return any status. It waits indefinitely. There is no documentation on using RBTBasebandSecurity. I am trying after reading the headers. I do not understand problem. Any thoughts? Many thanks in advance. -Ayesh |
|
Please respond if you have any information in this regard. I have been trying with little success and it is critical.
Thanks, -Ayesh |
|
HI
One option is that you will try to connect to the service that requires pairing (even though you would not be using it). Then the service side initiates pairing. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|