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

Use nRF5SDK examples with pc-ble-driver

The nRF5SDK has a rich set  of examples illustrating extensive use of the BLE APIs, including full examples of the Blood Pressure profile and other health device profiles. The examples for the pc-ble-driver, by comparison, are woefully anemic. Our reasons for using the pc-ble-driver is that our test suite for health device ble centrals/clients requires interfacing to the user that cannot be sensibly loaded on the nRF5 MCU and it will require dynamic configuring at run time of numerous simulated peripherals. 

Part of the  tests will be full fledged BLE health profile peripherals which we then hoped could be downloaded and installed onto the nRF5840 without changing the source code. Let's face it, its far easier to develop and test and run apps on the PC than on an embedded platform. Thus another potential advantage of developing code using the pc-ble-driver and then build the same code for an ARM processor.Lot easier than re-writing the code.

Is this even possible? How can I use the nRF5SDK examples with the pc-ble-driver? Is there any documentation about the differences between the BLE APIs of the pc-ble-driver and those of the nRF5SDK? Its also not completely clear what is application code and what is nRF5 API  code (if any ... perhaps all C-code in the SDK is 'application' code?

Parents Reply
  • I can understand the business model; but there is something to be said for ease of development - write, run, and test code on PC. Then when it all works, port to the embedded platform. Renesas did this and it was really fast to make embedded apps. The problem Renesas had was with their BLE.

    I kind of assumed that was one of the main motivations behind supporting the serialization library...

Children
Related