Utility Commands: Multiple RAIL Demo Code

Macros

#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_MULTIRAIL_PLUGIN_MULTIRAIL_GET_HANDLE
plugin multirail get-handle
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_MULTIRAIL_PLUGIN_MULTIRAIL_INIT
plugin multirail init [power:2]
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_MULTIRAIL_PLUGIN_MULTIRAIL_SEND
plugin multirail send [channel:1] [data:-1]

Detailed Description

Provides examples of using a second RAIL instance to send packets.

Macro Definition Documentation

EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_MULTIRAIL_PLUGIN_MULTIRAIL_GET_HANDLE

#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_MULTIRAIL_PLUGIN_MULTIRAIL_GET_HANDLE

plugin multirail get-handle

  • Print the secods RAIL handle.

EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_MULTIRAIL_PLUGIN_MULTIRAIL_INIT

#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_MULTIRAIL_PLUGIN_MULTIRAIL_INIT

plugin multirail init [power:2]

  • Initialize the second RAIL instance.
    • power - INT16S - Default TX power in deci-dBm (eg. -50 = -5dBm, 120 = -12 dBm)

EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_MULTIRAIL_PLUGIN_MULTIRAIL_SEND

#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_MULTIRAIL_PLUGIN_MULTIRAIL_SEND

plugin multirail send [channel:1] [data:-1]

  • Send a packet using the second RAIL instance.
    • channel - INT8U - Channel (11-26, or 0 to use the current Zigbee channel)
    • data - OCTET_STRING - Packet data (empty string will send a default GPD packet)