2017-10-10 5 views
0

I 윈도우의 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 
+0

먼저 BLE 광고 패킷이 70 % 손실 된 이유를 확인해야합니다. 코드를 공유하십시오. –

+0

첫 번째 게시물에 코드를 추가했습니다. UWP 용 공식 Microsoft Sample Pack에서 제공합니다. – Mike

답변

0

더 정보]에 대한 here를 참조하십시오, 대신 BluetoothLEAdvertisementWatcher.In 첨가 블루투스 LE 장치를 검색하는 데 사용되는이 샘플 DeviceWatcher .IN Bluetooth LE GATT를 참조하십시오.

+0

답변 해 주셔서 감사합니다.하지만 주제를 벗어납니다. 내 표지로 방출되는 모든 블루투스 광고를 수신하는 데 문제가 있습니다. 이 코드는 Windows 10 x64에서 잘 작동하지만 Win IoT가있는 Rpi는 약 30 %의 광고만을 수신합니다. 그러나 여기에 몇 가지 연구가 있습니다 : http://embedded101.com/Blogs/David-Jones/entryid/790/Win-10-IoT-Core-Raspberry-Pi3-Bluetooth-Driver-Issue-Workaround이 솔루션을 구현했습니다. 수신 된 광고가 증가했지만 아직 수집되지 않은 광고는 50 % 이상입니다. – Mike