Important: Before you run this example, make sure to install the SoftDevice .
The combined bicycle speed and cadence sensor implementation implements all the features, which are required for this type of sensor to be compliant with the ANT+ Bicycle Speed and Cadence profile, as defined by the ANT+ Bike Speed and Cadence Device Profile specification:
- Transmit data about the users speed and cadence over a single ANT channel.
The general architecture of the combined bicycle speed and cadence sensor is illustrated in the picture below.
- Combined bicycle speed and cadence sensor configuration options
The following compile time configuration options are available to suite various combined bicycle speed and cadence sensor implementations:
- CBSC_NETWORK_KEY ANT PLUS network key.
- ANTPLUS_NETWORK_NUMBER Network number associated with the channel.
- CBSC_TX_ANT_CHANNEL Used channel number.
- CBSC_TX_DEVICE_NUMBER Used device number.
- CBSC_DEVICE_TYPE Used device type.
- CBSC_TX_TRANS_TYPE Used transmission type.
- CBSC_RF_FREQ Used channel radio frequency offset from 2400MHz.
- CBSC_MSG_PERIOD Used channel period used in 32 kHz counts.
- Development phase configuration options
The combined bicycle speed and cadence sensor will trace error handler specific information to UART depending on the selected compile time configuration options.
The following compile time configuration options are available, and enabled by default, to assist in the development phase of the combined bicycle speed and cadence sensor implementation:
- TRACE_UART When defined UART trace outputting is enabled.
The name of the example is
ant_bicycle_comb_spd_cad_sensor_s210_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>\examples\ant\ant_bicycle_comb_spd_cad\sensor
- Note
- The ANT+ Network Key is available for ANT+ Adopters. Please refer to http://thisisant.com to become an ANT+ Adopter and access the key.