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

RSC sample for nRF8001 redbear ble shield arduino

I have an arduino connected to a redbear BLE shield. the BLE shield uses nordic nRF8001 chip.

How could I implement RSC ? (running speed and cadence) I would like to test it with the nordic app for ios and android: nRF Toolbox (the app has an option to receive data from a RSC sensor).

  • You use nRFgo Studio to create the appropriate setup for the RSC profile.

    You write code to derive the running speed and cadence from whatever sensor(s) you have, and to feed that information into the BT "Pipes".

    Have you looked at the Nordic Bluetooth low energy SDK for Arduino:

    github.com/.../ble-sdk-arduino

  • Thank you. I will start studying Nordic btle sdk for arduino

  • I downloaded and installed nRFgo studio from nordic website, then i downloaded and installed the "Bluetooth developer studio" from the Bluetooth SIG website. the developer studio allows to create the xml file for nRFgo studio. To do this, i installed the plugin for arduino found on Bluetooth SIG website. I just did the drag and drop (in the developer studio) to use the RSC, then i used the plugin to generate the xml file for nRFgo studio.

    The generated files includes a .bat file that should be called to obtain the services.h file. The name of the bat file is: generate_arduino_code.bat

    note: I had to manually run the command line included in the .bat file, because the exe path was not in the system path. Anyway, at the end i obtained all the files: runningspeedandcadence.ino runningspeedandcadence.h runningspeedandcadence.cpp services.h services.lock ublue_setup.gen.out.txt deviceinformation.h deviceinformation.cpp nrf8001.xml

    Then i opened the .ino file on arduino and i tried to verify the project.

    I obtained many errors caused by constants containing not allowed character "-" I just replaced "-" with "_" in the entire project.

    the original constants name were: PIPE_DEVICE_INFORMATION_IEEE_11073-20601_REGULATORY_CERTIFICATION_DATA_LIST_SET PIPE_DEVICE_INFORMATION_IEEE_11073-20601_REGULATORY_CERTIFICATION_DATA_LIST_SET_MAX_SIZE

    Actually the Project can be verified without errors. I uploaded it on the arduino mega (with the BLE shield on) and then, as suggested in the arduino plugin readme file (plugin for bluetooth developer studio), i tried to search the Bluetooth devices with my ipad with "nRF toolbox" app for ios. Unfortunately no device can be found by the ipad.

    note: flashing the heartrate example found in the nordic BLE SDK for arduino, everything work as expected, demonstrating that my setup for arduino is correct.

Related