Author Topic: Manually pairing a device works but using Pair() does not.  (Read 9841 times)

Jov

  • Guest
Manually pairing a device works but using Pair() does not.
« 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


« Last Edit: November 13, 2012, 08:14:27 PM by Jov »

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Manually pairing a device works but using Pair() does not.
« Reply #1 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

Jov

  • Guest
Re: Manually pairing a device works but using Pair() does not.
« Reply #2 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.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Manually pairing a device works but using Pair() does not.
« Reply #3 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.

Jov

  • Guest
Re: Manually pairing a device works but using Pair() does not.
« Reply #4 on: November 14, 2012, 03:10:35 PM »

I switched back to the old wcl2wbt but this does not change anything :(

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries

Jov

  • Guest
Re: Manually pairing a device works but using Pair() does not.
« Reply #6 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.

Jov

  • Guest
Re: Manually pairing a device works but using Pair() does not.
« Reply #7 on: November 14, 2012, 04:02:27 PM »
Sorry, wrong thread.

 

Sitemap 1 2 3 4 5 6 7