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

Basic examples to test ANT connectivity between Master and Slave.

They both use public network key {0, 0, 0 , 0 , 0, 0, 0}

ANT Broadcast TX

Description

When the application is booting, LED0 and LED1 are turned on. Once the SoftDevice is enabled, LED0 and LED1 are turned off to indicate the system is in a state wherein RF activities can happen. Channel period is set to 4Hz (8192). When a packet is transmitted it will turn on LED0 for 20 milliseconds. LED1 is turned on whenever the processor enters sleep state and turned off when woken up by (any / RF ) interrupt.

ANT Broadcast RX

Description

When the application is booting, LED0 and LED1 are turned on. Once the SoftDevice is enabled, LED0 and LED1 are turned off to indicate the system is in a state wherein RF activities can happen. The example uses wildcard connection, which implies that it will connect to the nearest ANT device broadcasting. Channel period is set to 4Hz (8192). When a packet is received it will turn on LED0 for 20 milliseconds. LED1 is turned on whenever the processor enters sleep state and turned off when woken up by (any / RF ) interrupt.

References

The examples for PCA10003 can be found in the nrf51 SDK at: Nordic/nrf51422/Board/pca10003/s210/ant_broadcast

The examples for nrf6310 can be found in the nrf51 SDK at: Nordic/nrf51422/Board/nrf6310/s210/ant_broadcast