Difference between gls and hrs example

Hello,

I was developing an application and was using the ble glucose application as a template. This uses the s140 softdevice, however as I am using the nRF52811 in peripheral only mode I wanted to switch to using the S112 softdevice. I tried making changes to the glucose example to use the s112, however I was getting errors. I was thinking to changing to the ble heart rate sensor, as a starting point, as it has the pca15006e which I can use for the nRF52811.

Is there any difference in functionality, file setup etc the heart rate has in comparison to the glucose example? For example looking at the nRF_BLE folder I notice that the ble_rcap and nrf_ble_gq files are not included in the heart rate example. As well as the nRF_Crypto backend CC310 folder is not included as well.

  • Hi,

    Is there any difference in functionality, file setup etc the heart rate has in comparison to the glucose example?

    Ignoring the difference between the projects for various IC's and  SoftDevices, these two examples differ in a few ways:

    • The profile and services
    • The GLS sample us passkey (display)

    Other than that they are quite similar, and you can use both as a starting point and it should not matter much.

    When it comes to change in SoftDevice that is quite simple. If the IC version is the same, then change the SoftDevice header files, the preprocessor define that states the SoftDevice type, and the application start address and size (it must always start right after the SoftDevice, so you use the size of the SoftDevice as explained in the SoftDevice specification (or simply compare with another project that use the same device).

    PS: If you are using SES I would recomend changing the SoftDevice by editing the SES project file in a text editor. That way you can earch for "s140" for intsance if that is what you are looking for, and replace it with "s112". Do the same for "S140" and "S112". Take a look in the file and you should quickly see it all. There you can also adjust the flash start address and size easily.

  • Is what you're saying also the same or similar if going from a nRF52840 DK to a nRF52811?

  • When moving from an IC you can do most of the same thing. If using SES, search for nrf528840 in the project file, and you will find startup files etc, rename those to the files for your IC. The same with the processor define. You also need to adjust the flash and RAM sizes (in the same file).

Related