本文介绍了蓝牙2.1 BluetoothAuthenticateDeviceEx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用以下api调用BluetoothAuthenticateDeviceEx http://msdn.microsoft.com/en-us/library/cc766819(VS.85).aspx
或BT 2.1堆栈下的BluetoothAuthenticateDevice调用失败。
using the following api call BluetoothAuthenticateDeviceEx http://msdn.microsoft.com/en-us/library/cc766819(VS.85).aspx
or the BluetoothAuthenticateDevice call under the BT 2.1 stack fails.
Let me describe the problem.
1. Using the BluetoothAuthenticateDevice calls (not the Ex ones) under bluetooth 2.0 everything functions as expected
2. Using the
BluetoothAuthenticateDevice calls (not the Ex ones) under bluetooth 2.1 things do not work properly.
3. When we provide the device PIN and we attempt to connect to the active device with the proper pin we still get the "type your pin balloon" displayed. If you type anything into that balloon and hit enter everything goes through fine. If you don't response to that balloon but just let it go away our code is locked up waiting for the callback to complete(our thread is hung waiting for the 2.1 BT stack)
Additional information is need with regard to the out of band data structure (
PBTH_OOB_DATA)
in the
BluetoothAuthenticateDeviceEx call.
We can't find any informatioin as to what the out of band structure(
PBTH_OOB_DATA)
{ WCHAR C[16] WCHAR R[16] } should contain.
Any information would be greatly appreciated
推荐答案
这篇关于蓝牙2.1 BluetoothAuthenticateDeviceEx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!