nRF51 SDK - S210 SoftDevice
|
The Stride and Distance Monitor (SDM) slave implements all of the features, which are required for the receiver to be compliant with the ANT+ SDM profile, as defined by the ANT+ SDM specification:
The process flow of the SDM RX example is illustrated below:
For logging UART will be the primary display. Data will be printed after broadcast data is received. Depending on the page received, the following data will be logged:
The logging with UART will be enabled by default in the project file. This can be deactivated by removing TRACE_UART from the compiler flags. When deactivated the data processing function will not be included in the compilation, as there are no need to interpret the data received, when we can not display the information.
As UART will use some extra current, a low power alternative is also available, using GPIO. By default the GPIO pins are connected to LEDs. Also GPIO logging is enabled by default by the project file. This can be deactivated by removing TRACE_GPIO from the compiler flags. The GPIO pins to be used can be changed by editing the GPIO defines.
When GPIO logging is enabled the following GPIO will toggle:
The name of the example for PCA10028 is ant_sdm_rx_pca10028, and for PCA10031 it is ant_sdm_rx_pca10031. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\Nordic\nrf51\examples\ant\ant_sdm\sdm_rx
The Stride and Distance Monitor (SDM) master implements all of the features, which are required for the transmitter to be compliant with the ANT+ SDM profile, as defined by the ANT+ SDM specification:
The process flow of the SDM TX example is illustrated below:
For logging UART will be the primary display. Data will be printed after broadcast data is set. Depending on the page transmitted, the following data will be logged:
The logging with UART will be enabled by default in the project file. This can be deactivated by removing TRACE_UART from the compiler flags.
As UART will use some extra current, a low power alternative is also available, using GPIO. By default the GPIO pins are connected to LEDs. Also GPIO logging is enabled by default by the project file. This can be deactivated by removing TRACE_GPIO from the compiler flags. The GPIO pins to be used can be changed by editing the GPIO defines.
When GPIO logging is enabled the following GPIO will toggle:
The name of the example is ant_sdm_tx_pca10028. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\Nordic\nrf51\examples\ant\ant_sdm\sdm_tx