Windows 10: Bluetooth LE device access example needed from non-UWP program

Discus and support Bluetooth LE device access example needed from non-UWP program in Windows 10 Gaming to solve the problem; I am attempting to access data from a Bluetooth LE device from a non-UWP program. C++ old-fashioned Windows Desktop app.This should be a very simple... Discussion in 'Windows 10 Gaming' started by NormS_400, Mar 9, 2022.

  1. NormS_400 Win User

    Bluetooth LE device access example needed from non-UWP program


    I am attempting to access data from a Bluetooth LE device from a non-UWP program. C++ old-fashioned Windows Desktop app.This should be a very simple task, and would be if the apparently-being-deprecated? Win32 API supported it.I have observed it does not: that is, here:https://github.com/MicrosoftDocs/sdk-api/blob/docs/sdk-api-src/content/bluetoothapis/nf-bluetoothapis-bluetoothfindfirstdevice.md it says:"The BluetoothFindFirstDevice function does not find Bluetooth Low Energy LE devices. To access Bluetooth LE devices, use the Windows Runtime Bluetooth Low Energy APIs. The

    :)
     
    NormS_400, Mar 9, 2022
    #1

  2. Bug in windows bluetooth le GetGattServicesAsync method

    The problem description:
    Sometimes it is not possible to get some response from the method GetGattServicesAsync with the parameter BluetoothCacheMode.Cached or BluetoothCacheMode.Uncached. Only the windows restart helps to reconnect the le device and to get the services from the le device.

    We use Windows.Devices.Bluetooth.dll with .Net Framework 4.6.1 to build the class library.
    The Windows PC shall connect the Bluetooth le device.

    Steps for the problem reproducing:

    1. Discovery the devices with the determined service
    2. Call the method FromBluetoothAddressAsync with the Bluetooth address of LE device
    3. BluetoothLEDevice is found
    4. Pair the LE device with desktop:

    5. Check the connection status. If the status connected, call the method GetGattServicesAsync(BluetoothCacheMode.Cached)
    6. Sometimes is not possible to get the response from GetGattServicesAsync. After 30 seconds we cancel the task, dispone BluetoothLEDevice, unpair and try to reconnect le device. The reconnection is failed and only the Windows restart helps to establish the connection to the le device.

    PC:

    • Dell Precision 5530
    • Bluetooth adapter Qualcomm QCA6174A
    • Windows 10 Enterprise (1803)
    • Version 10.0.17134 Build 17134.590

    LE Device:

    • Bluetooth 4.2
     
    Yury Kalinin, Mar 9, 2022
    #2
  3. Calling UWP Bluetooth Radio class operation in non UWP library

    hi;

    We have an existing WPF application that cannot be migrated to UWP. I have seen that it is possible to use UWP libraries in NON UWP projects. I was able to put together a non UWP library accessing the Radio object. Though it compiles ok I am not seeing any
    Results returned. I was not able to setup the operation to use async directly. Was getting an error indicating await was not defined for the interface returned by the GetRadioAsyn() function. There is a GetResults operation on the returned result and I was
    thinking this would perform an async call on the operation, but it appears not to.

    I would like to know how I caould configure a NON UWP project to call the Radio class functions, and/or if it could be explained how to get async to work when including the UWP libraries (into the non UWP project).

    Peter
     
    Peter Simard, Mar 9, 2022
    #3
  4. Xylee Del Win User

    Bluetooth LE device access example needed from non-UWP program

    Bluetooth device is shown as not present.

    Hello Dominika,

    Thank you for getting back to us. Since the issue still persists after following the steps on the article above, we'd like to know more. Kindly answer the following questions:

    • Did you checked whether the Bluetooth device is listed under hidden devices in Device manager?
    • What is the make and model of your Bluetooth device?
    • Can you tell us the specific bluetooth devices that you're using on your Windows 10?
    • Have you checked whether the Bluetooth driver is listed under installed programs under Programs and features?

    Meanwhile, we suggest that you check if the Bluetooth services is enabled by following the steps below:

    • Press Windows + R keys on the keyboard, type services.msc and press OK.
    • Right click on Bluetooth Support service and select
      Restart.

    • Right click on Bluetooth support service and select Properties
      and check if the startup type is Automatic.

    We'll be waiting for your response.
     
    Xylee Del, Mar 9, 2022
    #4
Thema:

Bluetooth LE device access example needed from non-UWP program

Loading...
  1. Bluetooth LE device access example needed from non-UWP program - Similar Threads - Bluetooth device access

  2. Non access to device.

    in Windows 10 Gaming
    Non access to device.: I am a court appointed administrator for my sons estate. Is it possible to get access to windows when password is not known and his email gmail and phones are locked? Thanks, Norm...
  3. Non access to device.

    in Windows 10 Software and Apps
    Non access to device.: I am a court appointed administrator for my sons estate. Is it possible to get access to windows when password is not known and his email gmail and phones are locked? Thanks, Norm...
  4. Bluetooth LE device access example needed from non-UWP program

    in Windows 10 Drivers and Hardware
    Bluetooth LE device access example needed from non-UWP program: I am attempting to access data from a Bluetooth LE device from a non-UWP program. C++ old-fashioned Windows Desktop app.This should be a very simple task, and would be if the apparently-being-deprecated? Win32 API supported it.I have observed it does not: that is,...
  5. Bluetooth LE device access example needed from non-UWP program

    in Windows 10 Software and Apps
    Bluetooth LE device access example needed from non-UWP program: I am attempting to access data from a Bluetooth LE device from a non-UWP program. C++ old-fashioned Windows Desktop app.This should be a very simple task, and would be if the apparently-being-deprecated? Win32 API supported it.I have observed it does not: that is,...
  6. Bluetooth LE device removed from pair list on restart

    in Windows 10 Drivers and Hardware
    Bluetooth LE device removed from pair list on restart: If I pair a Bluetooth LE device with Windows 10, the device is no longer present in the pair device list once I restart. I looked into the Windows registry HKLM\CurrentControlSet\Enum\BTHLE and found a key created for the device upon pairing and removed on restart. This...
  7. Weird Bluetooth LE Device Unremovable & Unrenamable From Bluetooth Devices...

    in Windows 10 Drivers and Hardware
    Weird Bluetooth LE Device Unremovable & Unrenamable From Bluetooth Devices...: Hi there, I recently upgraded the wifi chip which also controls Bluetooth on my Dell XPS 15 9570 to an Intel® Wi-Fi 6 AX200 which has resulted in some Bluetooth errors. I had no issues physically installing the new chip and I downloaded the required drivers afterwards. After...
  8. Non-admin access to Bluetooth device settings

    in Windows 10 Ask Insider
    Non-admin access to Bluetooth device settings: I used Group Policy to lock down a Windows 10 Pro PC by removing control panel, settings, etc. Access to Bluetooth device settings was affected as a result. I want to single out just the Bluetooth settings so that child accounts can use it. Right now, when a child account...
  9. LE bluetooth device connections: what are they used for?

    in Windows 10 Ask Insider
    LE bluetooth device connections: what are they used for?: I have a pair of wireless headphones and a wireless speaker. i can turn both on and connect them to my win10 computer fine, BUT: -My headphones can't be discovered or turned on when the switch on them is switched to off. -My headphones offer two connections, standard and...
  10. Failed to connection to unpaired bluetooth LE device

    in Windows 10 Drivers and Hardware
    Failed to connection to unpaired bluetooth LE device: Hi, Win 10 Creator Update add feature to support unpaired Bluetooth LE Device connectivity (https://channel9.msdn.com/Events/Build/2017/P4178). I download "Bluetooth LE Explorer" from Microsoft Store and run it. On "Discover and Pair", I can find the designated device...