You Are Here:

Community: Developer Discussion Boards

#1 Old Programmatically initiate bluetooth pairing request - 2004-10-28, 12:43

Join Date: Aug 2004
Posts: 20
ayesh12
Offline
Registered User
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
Reply With Quote

#2 Old 2004-11-01, 06:00

Join Date: Aug 2004
Posts: 20
ayesh12
Offline
Registered User
Please respond if you have any information in this regard. I have been trying with little success and it is critical.

Thanks,
-Ayesh
Reply With Quote

#3 Old 2004-11-12, 12:26

Join Date: Mar 2003
Posts: 1
kimikkon
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia