This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Streaming data from exercise bike service with NRF52840 dongle + raspberry pi 4

Hello

I am new to all of this and am wondering if this is possible, and if anyone can point me in the right direction if it is. I am looking to create an open source project to turn a cheaper yet equal quality spin bike into a peloton like experience with just a raspberry pi and a cheap dongle. I have all of the skills to complete the project apart from actually reading the data from the bike.

The exercise bike has a service which I am able to read from using the app that I would like to read from at some interval 0.2s maybe or faster if possible, this service is shown from the nRFConnect app below. I would like to work with the data in Python but am open to using other languages with some kind of socket connection for transferring data if it would be easier. I also have the nRF52 development kit but am not sure how it would be integrated. I have seen some things about soldering which I am not particularly knowledgeable about so would prefer to avoid if possible.

I would really appreciate any advice or hints in the right direction. I expected the bluetooth part of this project to be simple but has caused weeks of frustration.

Thanks in advance

Miles

Parents
  • Hello Miles,

    I don't have that much experience with BLE on Pi4 to be honest, but doesn't it come with a built-in BLE chipset you can use?  In that case, maybe you can try out existing python modules such as this one: https://github.com/hbldh/bleak.

    I'm not sure if the library above supports pairing/bonding. That's also something to consider if your peripheral requires it.

    Best regards,

    Vidar

    Edit: forgot to add that it may be an option to use our pc-ble-driver-py with the nRF52840. The problem is that we are not testing this implementation on ARM, only x86. The libraries will also need to be built from source.

Reply
  • Hello Miles,

    I don't have that much experience with BLE on Pi4 to be honest, but doesn't it come with a built-in BLE chipset you can use?  In that case, maybe you can try out existing python modules such as this one: https://github.com/hbldh/bleak.

    I'm not sure if the library above supports pairing/bonding. That's also something to consider if your peripheral requires it.

    Best regards,

    Vidar

    Edit: forgot to add that it may be an option to use our pc-ble-driver-py with the nRF52840. The problem is that we are not testing this implementation on ARM, only x86. The libraries will also need to be built from source.

Children
Related