Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: AramMoon on November 24, 2015, 12:02:49 PM

Title: [C++] CwclBluetoothDevice, Pair problem
Post by: AramMoon on November 24, 2015, 12:02:49 PM
 I tried pairing without Discovery.

This is work well Window 8, 10, but not working Window 7.

m_pDevice->SetAddress(MACAddress);
m_pDevice->Pair(*m_pRadio);

Title: Re: [C++] CwclBluetoothDevice, Pair problem
Post by: Mike Petrichenko on November 24, 2015, 12:14:58 PM
Hello,

Can you give me more information? What does not work exactly?
Title: Re: [C++] CwclBluetoothDevice, Pair problem
Post by: AramMoon on November 26, 2015, 01:55:00 PM
I'm using like below.
   
   __hook(&CwclBluetoothDevice::OnPINRequest, m_pDevice, &BluetoothDll::OnPINRequest);
   __hook(&CwclBluetoothDevice::OnNumericComparison, m_pDevice, &BluetoothDll::OnComparison);
   __hook(&CwclBluetoothDevice::OnPasskeyNotification, m_pDevice, &BluetoothDll::OnPasskeyNotify);
   __hook(&CwclBluetoothDevice::OnPasskey, m_pDevice, &BluetoothDll::OnPasskey);
   m_pDevice->SetAddress(pszString);
   int iRes = m_pDevice->Pair(*m_pRadio); ==> Here I will not go to the next step.
                                                                       Related hook message does not come across.
   __unhook(&CwclBluetoothDevice::OnPINRequest, m_pDevice, &BluetoothDll::OnPINRequest);
   __unhook(&CwclBluetoothDevice::OnNumericComparison, m_pDevice, &BluetoothDll::OnComparison);
   __unhook(&CwclBluetoothDevice::OnPasskeyNotification, m_pDevice, &BluetoothDll::OnPasskeyNotify);
   __unhook(&CwclBluetoothDevice::OnPasskey, m_pDevice, &BluetoothDll::OnPasskey);
Title: Re: [C++] CwclBluetoothDevice, Pair problem
Post by: Mike Petrichenko on November 26, 2015, 05:12:09 PM
Hm, it is really strange. Is there any way I can take a look om your system through TeamViewer?