Automate nRF52840 Dongle running pc-nrfconnect-ble

Hello,

 I'm very unexperienced with low-level programming, so I apologize is some of my questions make little sense.

  We have this board that sends telemetry data using a nRF52840 to a Window 10 PC.  Looking for a quick and dirty way to scan for the board, connect to it, and record the RSSI value I found out the nRF52840 dongle.  Running Bluetooth Low Energy app that comes with nRF Connect for Desktop works like a charm, but now I'm looking for a way to replicate this thru LabView. I took a gander at the serial port communications between the app and the dongle and it's mostly HEX commands, so I tried looking around github for a piece of code or example that I could use to duplicate these commands, but I can't figure out where or what to look for..

 I'm hoping someone can point me to a piece of code/example or document that explains how to send and read the commands to a nRF52840 dongle programmed with pc-nrfconnect-ble.

Thanks.

Parents
  • Thank you very much Vidar, unfortunately I wasn't able to take the time to learn Python (my programming experience is currently limited to Labview and VB 6.0 ;-). 

    At the end I took a different approach.  First I was able to open "pc-ble-driver" in VS2022 and build the "heart_rate_collector".  Then I modified the code to allow extended advertisements and to ouput the rssi.  Once I got the EXE where I wanted, I simply run it using System Exec.vi in Labview.

    Not the most elegant solution, but it's the quick and dirty way for someone looking for a very basic interface between the nRF52840 dongle and Labview.

    Quick side note, I also tried to write a .NET C# application using Windows UWP BluetoothLEAdvertisementWatcher and some cheapo USB Bluetooth adapters from Amazon, but even after enabling the AllowExtendedAdvertisements property, I wasn't able to scan extended advertisements, only the BLE legacy ones.

  • Good to hear that you found a solution, thanks for the update.

    Quick side note, I also tried to write a .NET C# application using Windows UWP BluetoothLEAdvertisementWatcher and some cheapo USB Bluetooth adapters from Amazon, but even after enabling the AllowExtendedAdvertisements property, I wasn't able to scan extended advertisements, only the BLE legacy ones.

    Extended advertisements must also be supported by the Bluetooth adapter. Maybe that is why it did not work.

Reply
  • Good to hear that you found a solution, thanks for the update.

    Quick side note, I also tried to write a .NET C# application using Windows UWP BluetoothLEAdvertisementWatcher and some cheapo USB Bluetooth adapters from Amazon, but even after enabling the AllowExtendedAdvertisements property, I wasn't able to scan extended advertisements, only the BLE legacy ones.

    Extended advertisements must also be supported by the Bluetooth adapter. Maybe that is why it did not work.

Children
No Data
Related