我有一些问题与Windows的IoT(Rpi3)BLE的扫描间隔视窗的IoT
只有30个包的%已经捕获收集使用标准BluetoothLEAdvertisementWatcher BLE广告。 我在这里找到了一个解决方案: BLE Scan Interval Windows 10它适用于Windows 10 x64。
但有一件重要的事情:在该解决方案中使用的irprops.cpl不是为ARM平台设计的。
有什么办法让它在Windows IoT(ARM)上工作?
代码VB:
Private watcher As BluetoothLEAdvertisementWatcher
watcher = New BluetoothLEAdvertisementWatcher()
watcher.ScanningMode = BluetoothLEScanningMode.Passive
Protected Overrides Sub OnNavigatedTo(e As NavigationEventArgs)
AddHandler watcher.Received, AddressOf OnAdvertisementReceived
watcher.Start()
End Sub
Private Async Sub OnAdvertisementReceived(watcher As BluetoothLEAdvertisementWatcher, eventArgs As BluetoothLEAdvertisementReceivedEventArgs)
'here is the code for counting BLE frames
Await Me.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, Sub()
End Sub
首先,您需要检查为什么BLE广告包丢失了70%?请分享您的代码。 –
我在第一篇文章中添加了代码。它来自UWP的官方Microsoft Sample Pack。 – Mike