nRF51 SDK - S210 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Bicycle Power

Minimum Receiver

The Bicycle Power receiver implementation implements all of the features, which are required for the receiver to be fully compliant with the ANT+ Bike Power profile, as defined by the ANT+ Bicycle Power Profile specification:

  • Receive all power messages (0x10, 0x11, 0x12, 0x20).
  • Provide the user a means to initiate and confirm a manual zero-offset calibration procedure (0x01).
  • Receive Manufacturer Information (ANT Common Data Page).
  • Receive Product Information (ANT Common Data Page).

The general architecture of the bicycle power minium receiver is illustrated in the picture below.

bicycle_power_rx_design.png
Architecture overview
User interface

A simple user interface exists consisting of button1, which allows the user to start manual zero-offset calibration procedure.

The calibration process statemachine is illustrated in the picture below.

bicycle_power_rx_calibration_sm.png
Calibration process statemachine
Bicycle power receiver configuration options

The following compile time configuration options are available to suite various bicycle power receiver implementations:

  • BP_NETWORK_KEY ANT PLUS network key.
  • ANTPLUS_NETWORK_NUMBER Network key to associated with the channel.
  • BP_RX_ANT_CHANNEL Used channel number.
  • BP_RX_DEVICE_NUMBER Used device number.
  • BP_DEVICE_TYPE Used device type.
  • BP_RX_TRANS_TYPE Used transmission type.
  • BP_RF_FREQ Used channel radio frequency offset from 2400MHz.
  • BP_MSG_PERIOD Used channel period used in 32 kHz counts.
Development phase configuration options

The bicycle power receiver will trace profile 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 bicycle power receiver implementation:

  • TRACE_UART - Enable UART output.
  • TRACE_CALIBRATION - Trace information specific to calibration process.
  • TRACE_DATA_PAGE - Trace information specific to received data page.

The name of the example is ant_bicycle_power_minimum_receiver_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_bicycle_pwr\bicycle_power_minimum_receiver

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.

Power-only sensor

The Bicycle Power-Only sensor implementation implements all the features, which are required for the sensor to be compliant with the ANT+ Bike Power profile, as defined by the ANT+ Bicycle Power Profile specification:

  • Transmit Power-Only main data page (0x10).
  • Transmit Manufacturer Information (ANT Common Data Page).
  • Transmit Product Information (ANT Common Data Page).
  • Confirm to a manual zero-offset calibration procedure (0x01).

The general architecture of the power-only sensor is illustrated in the picture below.

bicycle_power_only_tx_design.png
Architecture overview
User interface

A simple user interface exists consisting of 2 keypad buttons, which allow the user to decrease or increase the instantaneous power value.

Bicycle power-only sensor configuration options

The following compile time configuration options are available to suite various bicycle power-only sensor implementations:

  • BP_NETWORK_KEY ANT PLUS network key.
  • ANTPLUS_NETWORK_NUMBER Network number associated with the channel.
  • BP_TX_ANT_CHANNEL Used channel number.
  • BP_TX_DEVICE_NUMBER Used device number.
  • BP_DEVICE_TYPE Used device type.
  • BP_TX_TRANS_TYPE Used transmission type.
  • BP_RF_FREQ Used channel radio frequency offset from 2400MHz.
  • BP_MSG_PERIOD Used channel period used in 32 kHz counts.
Development phase configuration options

The bicycle power-only sensor will trace ASSERT macro 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 power-only sensor implementation:

  • TRACE_UART - Enable UART output.

The name of the example is ant_bicycle_power_only_sensor_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_bicycle_pwr\bicycle_power_only_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.