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

How to Scan the data from Cycling Speed and Cadence sensor (CSCS) Through nRF52 DK.

Hi,

I am using Sunding-515 cycling speed and cadence sensor it’s data is broadcasted as per the GATT characteristics. We have already done the data parsing in our other application but it is for a single device. Hence for our application we want to connect multiple CSC sensor and stream the data which is collected by the central module. Same goes with the MI band 2 we are getting the data but on from a single device.  

 

Those BLE sensors will be in sleep state and once we wake, it will be broadcasting the data once those are connected to the master. There is no permission is required for pairing these devices. They are only connected if the master matches their GATT profile. Please find the attached links for more details on these profiles.

 

https://www.bluetooth.com/specifications/gatt

https://www.bluetooth.com/specifications/gatt/characteristics

 

I have downloaded nRF5_SDK_15.0 and using soft device 132. In the examples provided I have used the DK as peripheral to send the data to my mobile nRF toolbox app to send some dummy data. I am finding it be difficult to configure it as central. I have so many doubts such as How do I scan for peripherals ? How to connect after scanning ? The examples doesn’t contain CSCS central code and if I have to start it new then what are the procedures do I have to follow ?

The central module must capture the data from the CSC sensors whenever it broadcasts the data. 

There is code for Heart rate central and I am not able to scan i.e. discover the heart rate band in the segger debugger or the serial port but it is visible in my mobile. I have tried making a lot of changes in the code but not able to discover and connect.

I need your help to connect and collect the data in the central module as per discussion. What are the changes do I have to make in the code and how to start a new code for multiple connection ? Ultimately we want to read the CSC measurement i.e. 0x2A5B and HR measurement i.e. 0x2A37 from those sensors.  Kindly guide me through this process and kindly let me know if you need anything my side such are data formats, UUIDs information etc.

Parents Reply Children
Related