Easiest way to extract the data

Hi,

I'm working on a project involving a BLE peripheral/server with a custom profile. My goal is to extract data from the BLE server and plot it on a PC using a Python script. I'm looking for the quickest and easiest method, specifically on the "Central+Client" side.

I'm aware that I can employ an nRF52832 DK board, develop a "Client+Central" code to connect to the peripheral, extract data, and then transmit it to the PC via UART. However, this approach involves coding on the nRF52832 side. I also have an nRF52840 dongle available. Can you suggest a more efficient way to achieve this without additional coding on the BLE side for Client ?

Are there any inbuilt examples which can extract from custom profile/characteristics ?

Parents Reply Children
  • Hi Karl,

    Just one more thing regarding data extraction. I can extract the data using "nRF Connect for Desktop" and nRF52DK by manually enabling notifications, and I can see the data in the nRF connect desktop window.

     Is there any way I can make use of this ? Can a python script access this Or send commands like the tool sends to the nRF52 DK board ?

  • Hello,

    DanisXZ said:
    Just one more thing regarding data extraction. I can extract the data using "nRF Connect for Desktop" and nRF52DK by manually enabling notifications, and I can see the data in the nRF connect desktop window.

    Great, I'm glad you've got the application successfully up and running and verified! :)

    DanisXZ said:
     Is there any way I can make use of this ? Can a python script access this Or send commands like the tool sends to the nRF52 DK board ?

    Yes, the data received over BLE will be output by the device over UART, and so you may create a python script that interfaces with the COM port to receive and send data over the BLE link through the connected DK.

    Best regards,
    Karl

  • Hi Karl,

    Sorry, I think I did not explain that well.

    What I meant is, I could use the PC tool "nRF Connect for Desktop" (SS below).

  • Hello,

    Aha I understand, thank you for clarifying.
    There is no real way to route the received data from nRF Connect for Desktop into another program, if this what you mean.
    What is your intentions with this data, do you just want to keep the readings for later review, or do you intend to process them?
    In case of the former, you could just export the log file from the nRF Connect for Desktop.
    In case of the latter, the best approach would be to create a Python script that interacts with the device through the serial port, like described in my previous comment.

    Best regards,
    Karl

Related