Author Topic: Discovering BLE Device with Bluetooth Manager Demo  (Read 13911 times)

Offline briandunham

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Discovering BLE Device with Bluetooth Manager Demo
« on: October 22, 2021, 01:55:43 AM »
When using the Bluetooth Manager Demo, I am not able to discover a specific BLE device (Galaxy S9 smartphone). However, I can get it to show up in the list once I manually pair the devices either through the Windows 10 Bluetooth settings or through my smartphones settings. Why is it that the demo application can discover other unpaired BLE devices but can only discover my smartphone once it is paired?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Discovering BLE Device with Bluetooth Manager Demo
« Reply #1 on: October 22, 2021, 05:16:19 AM »
Hello,

It depends on how your smartphone advertises. The Discover() shows only devices that have Discoverable flags set.

For LE devices its better to use BeaconWatcher.

Offline briandunham

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: Discovering BLE Device with Bluetooth Manager Demo
« Reply #2 on: October 23, 2021, 04:59:10 AM »
My laptop can discovery my unpaired smartphone through the Windows 10 Bluetooth settings. So shouldn't the Bluetooth Manager Demo (running on that same laptop) be able to discovery my smartphone also?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Discovering BLE Device with Bluetooth Manager Demo
« Reply #3 on: October 23, 2021, 05:02:36 AM »
Internally LE discovering implemented through BeaconWatcher (Windows and Bluetooth Framework). If you run Discover for BLE devices (not for Classic) and your device has Discoverable flag set - it should be discovered by BluetoothManager demo. If the device has not Discoverable flag set BluetoothManager will not find it.

 

Sitemap 1 2 3 4 5 6 7