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

Read several data from external Eeprom using RACP

Hello everyone, I must read several data stored in a external E2prom and send them to a smartphone. I thought to do this by use of Record Access Control Point, so I can to require the data from the smartphone( all, the first, the last or a range). But the question is...how should I do? And is it the right way to do this? Thanks for your attention.

  • Hi Paolo,

    You can have a look at how we handled it with our ble_app_gls example in the SDK for the nRF51 side and the nRFTool box app - Glucose profile on the phone side. In the example we handle the reading of RACP, you can choose to read the last, or all of the records.

  • Hi Bui, thank you for reply. I already seen that example. It is very interesting and so close to my goal. The problem for me is how to reuse it for my application. In the example the RACP characteristic works with a record while I have a data that I read from an external E2prom. My intention is not use a record structure because I want to send data very fast to the central. Can you help me for migration code? I created a custom service which shows the 20byte data array, start eeprom address, final eeprom address, number of data stored and other info. In this service I put the RACP service, but I have problem to handle it with my application.

  • Hi Paolo,

    Do you need your application to be compliant with the standard bluetooth RACP service spec ? If you do want it to be inter-operable with other devices using RACP you would need to follow the spec and use record.

    If you just plan to have a way to transfer as fast as possible and ignore data that doesn't needed, you can think of using a proprietary service. You can have a look at the NUS (ble_app_uart) service we provided in the SDK. It works as BLE to UART bridge, you can send anything with that service. We provided the nRF UART app for that.

  • Hi Bui, thank you for your interest. The RACP service is very good system but very hard for me to use it for my application. So I chose another solution based on nrf51-ble-app-lbs-throughput-test-5.2.0 example and for now seem to work well. But in the future I want to understand and apply RACP service. I also thought about BLE to UART mode but I think that nrf51-ble-app-lbs-throughput-test-5.2.0 is better way.

  • @Paolo: the principle are the same, so you would also be fine with the nrf51-ble-app-lbs-throughput-test-5.2.0. If you are fine with the answer could you mark it as correct or you can create your own answer so that we can close the case ?

Related