Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: Jov on November 13, 2012, 08:10:57 PM

Title: Manually pairing a device works but using Pair() does not.
Post by: Jov on November 13, 2012, 08:10:57 PM
Hi Mike,

as mentioned in a previous post, I have replaced my old drivers with new drivers and a new BT 4.0 dongle. I am attempting to connect to a BT 3.0 smartphone.

This works well when I perform this manually (uses the 6 digit compare method) but when attempting to start this from my plugin, this fails immediately with "Authentication Failed". WCL error, a pop-up from the driver that it failed for unknown reasons and a audio warning on the phone but no pop-up for comparison.

Code: [Select]
int error = dev->Pair(*pRadio, pin);
If I immediately after this failure attempt to pair with the phone through "My Bluetooth Places", the two numbers shown are different. A second  pairing attempt through this mechanism works.

The code worked with the old drivers.
Once paired, everything works.

OS: WinXP with Service Pack 3
Device:  BCM20702 BT 4.0 (Trust)
Drivers:
  Device: Broadcom 5.6.0.7200
  Bus enumerator: Broadcom 5.6.0.6950


Title: Re: Manually pairing a device works but using Pair() does not.
Post by: Mike Petrichenko on November 13, 2012, 08:27:45 PM
Hi

WCL include 2 wcl2wbt.dll: one in WCL\Redist folder and th eother one is in WCL\Redist\Old folder. The new one supports BT 2.1 SSP, the one from OLD folder doesn't support BT 2.1 SSP
Title: Re: Manually pairing a device works but using Pair() does not.
Post by: Jov on November 14, 2012, 11:22:45 AM
hi Mike,

I verified: there is only 1 copy of the old wcl2wbt.dll on my system and that's the one in the WCL/redist/old directory. All other DLLs are the new wcl2wbt and the problem still persists.

This also happens when trying to pair through the Bluetooth Discovery Demo application.
Title: Re: Manually pairing a device works but using Pair() does not.
Post by: Mike Petrichenko on November 14, 2012, 11:59:42 AM
Its always better to use wcl2wbt.dll from OLD folder. However if you need BT 2.1 SSP support you have to use default wcl2wbt.dll. Try to delete all wc2wbt.dll from your system and then simple copy wcl2wbt.dll from Redist\OLD folder to System32 directory.
Title: Re: Manually pairing a device works but using Pair() does not.
Post by: Jov on November 14, 2012, 03:10:35 PM

I switched back to the old wcl2wbt but this does not change anything :(
Title: Re: Manually pairing a device works but using Pair() does not.
Post by: Mike Petrichenko on November 14, 2012, 03:16:14 PM
Let's continue on this topic: http://forum.btframework.com/index.php/topic,1705.msg6211.html#msg6211
Title: Re: Manually pairing a device works but using Pair() does not.
Post by: Jov on November 14, 2012, 03:57:34 PM

Thank you, I'll ask permission for that and send you the code and all the issues I've seen so far.
Title: Re: Manually pairing a device works but using Pair() does not.
Post by: Jov on November 14, 2012, 04:02:27 PM
Sorry, wrong thread.