The Packet RX example illustrates how to do simple packet RX using the TI-RTOS RF driver. This example is meant to be used with the Packet TX example or SmartRF Studio. For every packet received, Board_LED2 is toggled. The frequency and other RF settings can be modified using SmartRF Studio.
Board_LED2
- Toggled when data is received over the RF interface
Please refer to the development board's specific "Settings and Resources" section in the Getting Started Guide (http://www.ti.com/lit/SPRUHU7C). For convenience, a short summary is also shown below.
| Development Boards | Notes |
| ================== | =================================================== |
| CC1310DK | Board_LED2 is the "LED2" LED |
| ------------------ | --------------------------------------------------- |
| CC1310_LAUNCHXL | Board_LED2 is the "Red" LED |
| ------------------ | --------------------------------------------------- |
Run the example. On another board, run the EasyLink TX example. Board_LED2 is toggled when data with CRC OK is received.
This examples consists of a single task and the exported SmartRF Studio radio settings.
The default frequency is 868.0 MHz. In order to change frequency, modify the smartrf_settings file. This can be done using the code export feature in Smart RF Studio, or directly in the file.
The default frequency is 868.0 MHz, in order to change RF settings please modify the smartrf_settings.c file. This can be done either by exporting from Smart RF Studio or directly in the file.
When the task is executed it:
- Configures the radio for Proprietary mode
- Gets access to the radio via the RF drivers RF_open
- Sets up the radio using CMD_PROP_RADIO_DIV_SETUP command
- Defines a data queue to handle received data
- Sets the frequency using CMD_FS command
- Sends the CMD_PROP_RX command to start receiving data
- Once data with CRC OK is received we toggle the Board_LED2 and re-enter RX with the CMD_PROP_RX command
Note for IAR users: When using the CC1310DK, the TI XDS110v3 USB Emulator must be selected. For the CC1310_LAUNCHXL, select TI XDS110 Emulator. In both cases, select the cJTAG interface.
- For GNU and IAR users, please read the following website for details about enabling semi-hosting in order to view console output.