Hi everyone,
I have a task on Bluetooth LE discovery in Windows 8. I tried using 32feet.net APIs as well as Windows APIs but the problem is I can only discover classic bluetooth devices. Is there any way on implementing the discovery or listen to Bluetooth LE Devices through any Windows API? or any Driver? Your help would be greatly appreciated.
Does your bluetooth radio support 4.0 LE function?
Can you find the LE enumerator in Device manager ?
Danny
Thanks for your quick reply danny…
Yes, my device supports 4.0 LE and in fact I can find the LE enumerator in the device manager. Windows 8 can discover LE devices by using its built in discovery UI.
My problem is, I want to create an application or maybe a driver where I can use a function or a Windows API perhaps to be able to discover all Bluetooth devices including the LE. I have searched in the internet but to no avail. Since Bluetooth LE discovery in Windows 8 is new.
Is there any way through this? Or can you suggest an alternative?
have you tried Bluetooth and WSALookupServiceBegin for Service Discovery?
http://msdn.microsoft.com/en-us/library/windows/desktop/aa362914(v=vs.85).aspx
2013/4/1 :
> Thanks for your quick reply danny…
>
> Yes, my device supports 4.0 LE and in fact I can find the LE enumerator in the device manager. Windows 8 can discover LE devices by using its built in discovery UI.
> My problem is, I want to create an application or maybe a driver where I can use a function or a Windows API perhaps to be able to discover all Bluetooth devices including the LE. I have searched in the internet but to no avail. Since Bluetooth LE discovery in Windows 8 is new.
>
> Is there any way through this? Or can you suggest an alternative?
>
> —
> NTDEV is sponsored by OSR
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
–
Danny
Thanks… I have not tried this yet…Would you be so kind
to give me a sample code on how to use this since I am not so familiar with this function.
Sorry danny but it appears, that WSALookupServiceBegin does not support in discovering Bluetooth LE devices in Windows. My colleague already tried it last week to no avail.
Here are the functions we have tried so far:
- 32feet.net
- Windows Bluetooth APIs
- WinSockects
We are almost out of reference since msdn is also not clear on this issue on how to discover Bluetooth LE Devices. Thanks again for your reply
There are no Apis to perform discovery and pairing of LE devices as this activity is provided via a built-in experience.
Once associated, the device can however be discovered via the Windows.Device.Enumeration Apis. All LE Device exposes the BUID_BLUETOOTHLE_DEVICE_INTERFACE and you can also find services that are exposed by the device using their service UUIDs (in their 128 bit form) as the device interface class.
You can find examples of this in the following sample:
http://code.msdn.microsoft.com/Bluetooth-LE-Metro-sample-a2ba1b5b