Zigbee Module Examples

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
File List
Here is a list of all documented files with brief descriptions:
[detail level 1 2 3]

Common |
printf.c | Small printf() implementation
printf.h |
utilities.c | Miscellaneous utility methods
utilities.h | Public methods for utilities.c
HAL |
hal.h | Hardware Abstraction Layer (HAL) file
hal_AMS_TCS3414_color_sensor.c | Interface driver to AMS/TAOS TCS3414 color sensor
hal_AMS_TCS3414_color_sensor.h | Hardware Abstraction Layer (HAL) file for AMS TCS3414 Color Sensor
hal_bit_bang_i2c.c | Software I2C interface. Contains individual methods (start/stop/in/out) as well as full methods (read, write) etc
hal_bit_bang_i2c.h | Implements an I2C interface using software
hal_ek-lm4f120XL.c | Hardware Abstraction Layer (HAL) for the Stellaris LaunchPad EK-LM4F120XL. Based on hal_gw1.c
hal_fram.c | Hardware Abstraction Layer (HAL) for the TI MSP-EXP430FR5739 and Anaren Zigbee BoosterPack
hal_fram.h | Public methods for hal_fram.c
hal_helper.c | Utilities to assist changing hardware platforms
hal_launchpad.c | Hardware Abstraction Layer (HAL) for the TI LaunchPad and Anaren Zigbee BoosterPack
hal_launchpad.h | Public methods for hal_launchpad.c
hal_mdb1.c | Hardware Abstraction Layer (HAL) for the Module Development Board (MDB1)
hal_mdb1.h | Public methods for hal_mdb1.c
hal_mdb2.c | Hardware Abstraction Layer (HAL) for the MDB2
hal_mdb2.h | Public methods for hal_mdb2.c
hal_Microchip_24xxxxx_eeprom.c | Interface driver to Microchip EEPROM and equivalents (Atmel 24C etc.) via I2C
hal_msp430x2xxx_oscillators.c | Hardware Abstraction Layer (HAL) toolbox of utilities for configuring the oscillators in the MSP430x2xxx processors. For example, used with the MSP430F248, or MSP430F2274, or MSP430G2553
hal_msp430x2xxx_oscillators.h | Public methods and macros for hal_msp430x2xxx_oscillators.c
hal_msp430x2xxx_usci.c | Hardware Abstraction Layer (HAL) for the TI MSP430F2xxx series of microcontrollers
hal_msp430x2xxx_usci.h | Public methods for hal_msp430F2xxx.c
hal_stellaris_softi2c.c | Software I2C interface for Stellaris processors. Originally based upon StellarisWare example file StellarisWare/examples/peripherals/i2c/soft_i2c_atmel.c. Uses the software I2C driver in StellarisWare. See StellarisWare/utils/softi2c.c for more information
hal_stellaris_softi2c.h | Implements an I2C interface using software
hal_TI_TMP006_IR_temperature_sensor.c | Hardware Abstraction Layer (HAL) file for TI TMP006 Infrared temperature sensor
hal_TI_TMP006_IR_temperature_sensor.h | Hardware Abstraction Layer (HAL) file for TMP006
hal_version.h | Version information; gets displayed in hal_init()
ZM |
af.c | Methods that implement the Application Framework (AF) interface
af.h | Public methods for af.c
application_configuration.c | Contains Zigbee Application Configuration methods
application_configuration.h | Public methods for application_configuration.c
module.c | Interface to the Zigbee Module
module.h | Public methods for module.c
module_commands.h | Simple definitions of Module commands
module_errors.c | Module error handling. In one file here to make it easy to include wherever the module is used
module_errors.h | Simple definitions of Module error codes returned in all methods that return moduleResult_t
module_utilities.c | Simple utilities for interfacing with the Module
module_utilities.h | Public methods for module_utilities.c
simple_api.c | Methods that implement the Simple Application Programming Interface (Simple API)
simple_api.h | Public methods for simple_api.c
zdo.c | Methods that implement the Zigbee Device Objects (ZDO) interface
zdo.h | Public methods for zdo.c
zm_phy.h | Zigbee Module physical interface (Phy) layer select file
zm_phy_spi.c | Physical Interface Layer to the Module using the Serial Peripheral Interface (SPI) port. This file acts as an interface between the module library methods and the hardware (hal file)
zm_phy_spi.h | Public methods for zm_phy_spi.c
zm_phy_uart.c | Physical Interface Layer to the Module using the Universal Asynchronous Receiver/Transmitter interface. This file acts as an interface between the module library methods and the hardware (hal file)
zm_phy_uart.h | Public methods for zm_phy_uart.c
ZM Examples |
Messages |
header.c | Common message header
header.h | Public methods for header.c
infoMessage.c | Message containing information about this device. This is commonly used to send sensor data
infoMessage.h | Public methods for infoMessage.c
kvp.h | Key-Value-Pair structure. These are used in status messages and other messages to send data in an extensible format. This is a very simple KVP with a fixed size of value. An even more extensible format would to send the data in key-length-value tuples instead, but with the added cost (code space & battery life) of the additional messages
oids.c | Utility methods for object identifiers (oids)
oids.h | Description of Object Identifiers (OIDs). These are used in key-value-pairs in status messages, etc
example_basic_comms_coordinator_afzdo.c | Resets Module, configures this device to be a Zigbee Coordinator, and displays any messages that are received. Uses the AF/ZDO interface
example_basic_comms_coordinator_sapi.c | Resets Module, configures this device to be a Zigbee Coordinator, and displays any messages that are received. Uses the Simple API
example_basic_comms_end_device_afzdo.c | Resets Radio, configures this device to be a Zigbee End Device, joins a network, then sends a message to the coordinator every few seconds. Sleeps inbetween transmissions. Will also transmit a message when the button is pressed
example_basic_comms_router_afzdo.c | Resets Radio, configures this device to be a Zigbee Router, joins a network, then sends a message to the coordinator once per second. Uses the AF/ZDO interface. Pressing the button will display device information
example_basic_comms_router_sapi.c | Resets Radio, configures this device to be a Zigbee Router, joins a network, then sends a message to the coordinator once per second. Uses the Simple API
example_button_interrupt.c | Toggles LED0 when button pressed
example_fragmentation_coordinator_afzdo.c | Resets Module, configures this device to be a Zigbee Coordinator, and displays any messages that are received. If the message is extended then gets all the parts and displays it. Uses the AF/ZDO interface
example_fragmentation_router_afzdo.c | Resets Module, configures this device to be a Zigbee Router, joins a network, then sends an extended length message to the coordinator periodically. Uses the AF/ZDO interface. Pressing the button will display device information
example_get_mac_address.c | Resets Module, gets MAC Address
example_get_random.c | Resets Radio, gets a random number using SYS_RANDOM command and displays it
example_get_version.c | Resets Radio, gets module version information using SYS_VERSION command and displays it
example_hello_world.c | Outputs "Hello World" to console and toggles LED approximately once per second
example_I2C_test.c | Tests the I2C interface
example_measure_module_current.c | Simple utility to demonstrate how to measure module current using onboard current sense amplifier. To generate sufficient current to measure we turn the module on and off using its RF Test functionality
example_network_explorer.c | Allows the user to configure this device as either a Coordinator, Router, or End device and explore various features of the Zigbee Module, such as sending messages via short address or long address, finding devices, etc. Uses the AF/ZDO interface. Uses a command line interface (CLI)
example_read_color_sensor.c | Uses the MSP430's I2C interface to read the external color sensor
example_read_digital_io.c | Resets Module, configures all four of the GPIO pins as inputs with pullups, then reads out the value of these pins to console once per second, between 0x00 (all low) to 0x0F (all high). To test, start this application then connect one or more GPIO pins to GND. You will see the value change accordingly
example_read_eeprom.c | Reads and writes the EEPROM
example_read_IR_temperature_sensor.c | Uses the I2C interface to read the external IR temperature sensor
example_read_nonvolatile_memory.c | Resets Module, reads out the contents of all user non-volatile (NV) items and displays to console
example_read_supply_voltage.c | Uses the ADC to measure the supply voltage and toggles LED1 approximately once per second
example_reset_module.c | Resets Module, parses message received and displays to console
example_rf_tester.c | Simple utility to configure the Module to output an RF test signal
example_secure_comms_coordinator_afzdo.c | Resets Radio, configures this device to be a Zigbee Coordinator, and displays any received messages. Supports several security options such as preconfigured key, etc. Uses the AF/ZDO interface
example_secure_comms_router_afzdo.c | Resets Radio, configures this device to be a Zigbee Router, joins a network, initializes security and then sends a message to the coordinator once per second. Uses the AF/ZDO interface
example_simple_application_coordinator_afzdo.c | Resets Module, configures this device to be a Zigbee Coordinator, and displays any messages that are received. If the message contains a known object-identifier (OID) then parses the contents of the OID. Also displays received value to RGB LED and allows user to use the pushbutton to select which OID is displayed on the RGB LED
example_simple_application_end_device_afzdo.c | Resets Module, configures this device to be a Zigbee End Device, joins a network, then sends a message to the coordinator periodically with information from the peripherals
example_simple_application_router_afzdo.c | Resets Module, configures this device to be a Zigbee Router, joins a network, then sends a message to the coordinator periodically with information from the peripherals
example_timer_interrupt.c | Uses the microcontroller's internal oscillator to configure a timer to wake up periodically. Toggles LED0 when an interrupt is generated from the timer. Otherwise sleeps
example_write_digital_io.c | Resets Module, configures all four of the GPIO pins as outputs, then toggles the GPIO pins once per second. To test, monitor GPIO pins with an oscilloscope
example_write_nonvolatile_memory.c | Resets Module, prompts the user for which NV item to write (1-6) and writes test data to that location
module_example_utils.c | Simple utilities for Module examples