• af_data > CC2480
  • CC2480

    Ãâ·ÑÏÂÔØ ÏÂÔظÃÎĵµ Îĵµ¸ñʽ£ºPDF   ¸üÐÂʱ¼ä£º2014-04-04   ÏÂÔØ´ÎÊý£º0   µã»÷´ÎÊý£º1
    CC2480
    Z-Accel 2.4 GHz ZigBee?? Processor
    Accelerate your ZigBee Development Applications
    ?? ZigBee?? systems ?? Home/Building automation ?? Industrial control and monitoring ?? Low power wireless sensor networks ?? Set-top boxes and remote controls ?? Automated Meter Reading
    Description
    The CC2480 (formerly known as CCZACC06) is a cost-effective, low power, Z-Accel ZigBee Processor that provides full ZigBee functionality with a minimal development effort. Z-Accel is a solution where TI¡¯s ZigBee stack, Z-Stack, runs on a ZigBee Processor and the application runs on an external microcontroller. The CC2480 handles all the timing critical and processing intensive ZigBee protocol tasks, and leaves the resources of the application microcontroller free to handle the application. Z-Accel makes it easy to add ZigBee to new or existing products at the same time as it provides great flexibility in choice of microcontroller.
    CC2480 supports TI¡¯s SimpleAPI. SimpleAPI has only 10 API calls to learn, which drastically simplifies the development of ZigBee applications.
    Application Processor
    Application
    Z-Stack API and SimpleAPI
    CC2480
    SPI Driver
    SPI
    SPI Driver
    CC2480 interfaces any microcontroller through
    an SPI or UART interface. There is no need to learn a new microcontroller or new tools. CC2480 can for example be combined with an MSP430.
    Z-Stack
    IEEE 802.15.4 Radio
    Key Features
    ?? All the powerful features of the ZigBee system-on-chip with a simplified application interface. ?? SPI or UART interface to host processor with SPI speeds up to 4 MHz. ?? Designed for low power operation when using SPI interface with maximum time spent in low power mode when using SPI interface. ?? Access to 12-bit analog-to-digital converter, gpio pins, non-volatile memory, hardware random number generator and upto 4 software timers.
    CC2480 Interface Specification SWRA175A
    Page 1 of 57
    Table Of Contents
    1 2 3 ABBREVIATIONS....................................................................................................................................... 4 REFERENCES ............................................................................................................................................. 5 INTRODUCTION ........................................................................................................................................ 6 3.1 4 5 ARCHITECTURE ....................................................................................................................................... 6
    PIN CONFIGURATION.............................................................................................................................. 7 CC2480 PHYSICAL INTERFACE ............................................................................................................ 9 5.1 SPI TRANSPORT....................................................................................................................................... 9 5.1.1 Configuration.................................................................................................................................. 9 5.1.2 Frame Format................................................................................................................................. 9 5.1.3 Signal Description .......................................................................................................................... 9 5.1.4 Signal Operation............................................................................................................................. 9 5.1.5 Protocol Scenarios.......................................................................................................................... 9 5.2 UART TRANSPORT ............................................................................................................................... 12 5.2.1 Configuration................................................................................................................................ 12 5.2.2 Frame Format............................................................................................................................... 12 5.2.3 Signal Description ........................................................................................................................ 13 5.2.4 Signal Operation........................................................................................................................... 13 5.3 GENERAL FRAME FORMAT .................................................................................................................... 13 5.3.1 Command Field ............................................................................................................................ 14
    6
    CC2480 APPLICATION INTERFACE ................................................................................................... 16 6.1 SYS INTERFACE..................................................................................................................................... 16 6.1.1 SYS_RESET_REQ......................................................................................................................... 16 6.1.2 SYS_RESET_IND.......................................................................................................................... 16 6.1.3 SYS_VERSION.............................................................................................................................. 17 6.1.4 SYS_OSAL_NV_READ ................................................................................................................. 17 6.1.5 SYS_OSAL_NV_WRITE................................................................................................................ 18 6.1.6 SYS_OSAL_START_TIMER.......................................................................................................... 18 6.1.7 SYS_OSAL_STOP_TIMER ........................................................................................................... 19 6.1.8 SYS_OSAL_TIMER_EXPIRED..................................................................................................... 19 6.1.9 SYS_RANDOM ............................................................................................................................. 19 6.1.10 SYS_ADC_READ.......................................................................................................................... 20 6.1.11 SYS_GPIO .................................................................................................................................... 21 6.1.12 SYS_TEST_RF .............................................................................................................................. 21 6.1.13 SYS_TEST_LOOPBACK............................................................................................................... 22 6.2 CONFIGURATION INTERFACE ................................................................................................................. 23 6.2.1 ZB_READ_CONFIGURATION.................................................................................................... 23 6.2.2 ZB_WRITE_CONFIGURATION .................................................................................................. 24 6.2.3 Device specific configuration parameters .................................................................................... 24 6.2.4 Network specific configuration parameters.................................................................................. 26 6.3 SIMPLE API INTERFACE ......................................................................................................................... 28 6.3.1 ZB_APP_REGISTER_REQUEST ................................................................................................. 28 6.3.2 ZB_START_REQUEST ................................................................................................................. 29 6.3.3 ZB_START_CONFIRM................................................................................................................. 29 6.3.4 ZB_PERMIT_JOINING_REQUEST............................................................................................. 29 6.3.5 ZB_BIND_DEVICE ...................................................................................................................... 30 6.3.6 ZB_BIND_CONFIRM................................................................................................................... 30 6.3.7 ZB_ALLOW_BIND ....................................................................................................................... 31 6.3.8 ZB_ALLOW_BIND_CONFIRM.................................................................................................... 31 6.3.9 ZB_SEND_DATA_REQUEST....................................................................................................... 31 6.3.10 ZB_SEND_DATA_CONFIRM ...................................................................................................... 32 6.3.11 ZB_RECEIVE_DATA_INDICATION ........................................................................................... 32 6.3.12 ZB_GET_DEVICE_INFO............................................................................................................. 32 6.3.13 ZB_FIND_DEVICE_REQUEST ................................................................................................... 33
    CC2480 Interface Specification SWRA175A
    Page 2 of 57
    6.3.14 ZB_FIND_DEVICE_CONFIRM................................................................................................... 33 6.4 AF INTERFACE ....................................................................................................................................... 34 6.4.1 AF_REGISTER ............................................................................................................................. 34 6.4.2 AF_DATA_REQUEST .................................................................................................................. 34 6.4.3 AF_DATA_CONFIRM.................................................................................................................. 35 6.4.4 AF_INCOMING_MSG.................................................................................................................. 35 6.5 ZDO INTERFACE .................................................................................................................................... 36 6.5.1 ZDO_NWK_ADDR_REQ ............................................................................................................. 36 6.5.2 ZDO_NWK_ADDR_RSP .............................................................................................................. 37 6.5.3 ZDO_IEEE_ADDR_REQ ............................................................................................................. 37 6.5.4 ZDO_IEEE_ADDR_RSP .............................................................................................................. 38 6.5.5 ZDO_NODE_DESC_REQ............................................................................................................ 38 6.5.6 ZDO_NODE_DESC_RSP............................................................................................................. 38 6.5.7 ZDO_SIMPLE_DESC_REQ ......................................................................................................... 40 6.5.8 ZDO_SIMPLE_DESC_RSP.......................................................................................................... 40 6.5.9 ZDO_ACTIVE_EP_REQ .............................................................................................................. 41 6.5.10 ZDO_ACTIVE_EP_RSP ............................................................................................................... 41 6.5.11 ZDO_MATCH_DESC_REQ ......................................................................................................... 42 6.5.12 ZDO_MATCH_DESC_RSP .......................................................................................................... 42 6.5.13 ZDO_MATCH_DESC_RSP_SENT............................................................................................... 43 6.5.14 ZDO_USER_DESC_REQ............................................................................................................. 43 6.5.15 ZDO_USER_DESC_RSP.............................................................................................................. 43 6.5.16 ZDO_USER_DESC_SET .............................................................................................................. 44 6.5.17 ZDO_USER_DESC_CONF .......................................................................................................... 44 6.5.18 ZDO_END_DEVICE_ANNCE ..................................................................................................... 44 6.5.19 ZDO_END_DEVICE_ANNCE_IND............................................................................................. 45 6.5.20 ZDO_END_DEVICE_BIND_REQ ............................................................................................... 46 6.5.21 ZDO_END_DEVICE_BIND_RSP ................................................................................................ 46 6.5.22 ZDO_BIND_REQ ......................................................................................................................... 46 6.5.23 ZDO_BIND_RSP .......................................................................................................................... 47 6.5.24 ZDO_UNBIND_REQ.................................................................................................................... 47 6.5.25 ZDO_UNBIND_RSP..................................................................................................................... 48 6.5.26 ZDO_MGMT_LQI_REQ .............................................................................................................. 48 6.5.27 ZDO_MGMT_LQI_RSP ............................................................................................................... 49 6.5.28 ZDO_MGMT_LEAVE_REQ ......................................................................................................... 49 6.5.29 ZDO_MGMT_LEAVE_RSP.......................................................................................................... 50 6.5.30 ZDO_MGMT_PERMIT_JOIN_REQ ............................................................................................ 50 6.5.31 ZDO_MGMT_PERMIT_JOIN_RSP ............................................................................................. 50 6.5.32 ZDO_STATE_CHANGE_IND ...................................................................................................... 51 6.6 RETURN STATUS VALUES ...................................................................................................................... 51 7 MISCELLANEOUS ................................................................................................................................... 53 7.1 CC2480 POWER-UP PROCEDURE ............................................................................................................ 53 7.2 CC2480 CONFIGURATION PROCEDURE .................................................................................................. 53 7.2.1 Scenario 1 ..................................................................................................................................... 53 7.2.2 Scenario 2 ..................................................................................................................................... 53 7.2.3 Scenario 3 ..................................................................................................................................... 53 7.2.4 Scenario 4 ..................................................................................................................................... 54 7.3 CC2480 ZIGBEE STACK STARTUP PROCEDURE ...................................................................................... 54 8 GENERAL INFORMATION.................................................................................................................... 55 8.1 9 10 DOCUMENT HISTORY ............................................................................................................................ 55
    ADDRESS INFORMATION ..................................................................................................................... 55 TI WORLDWIDE TECHNICAL SUPPORT...................................................................................... 55
    CC2480 Interface Specification SWRA175A
    Page 3 of 57
    1
    API
    Abbreviations
    Application Programming Interface. Asynchronous Request Clear To Send Frame Check Sequence Poll request Remote Procedure Call. RTS SOF SPI SREQ AF ZDO Ready To Send Start Of Frame Serial Peripheral Interface bus. Synchronous request ZigBee Application Framework ZigBee Device Objects
    AREQ CTS FCS POLL RPC
    CC2480 Interface Specification SWRA175A
    Page 4 of 57
    2
    [1]
    References
    CC2480 Data Sheet SWRS074 http://www.ti.com/lit/pdf/swrs074
    CC2480 Interface Specification SWRA175A
    Page 5 of 57
    CC2480
    3 Introduction
    3.1 Architecture The diagram below shows how a host processor interfaces with CC2480.
    The SPI or UART physical interface is used to communicate between the two processors. The other interfaces are described below. ?? Power Management: This interface consists of two signals (SRDY and MRDY) and is used to communicate the power management status and to wake up sleeping devices. This interface is only required if SPI transport is used. Reset: The host processor can reset CC2480 through the RESET_N pin. In addition, a software reset interface is provided. Configuration: This interface consists of the CFG0 and CFG1 pins on the CC2480 and is used to select SPI or UART transport and to select whether a 32 kHz crystal is installed. In addition, several other configuration parameters may be configured on the CC2480 through the software interface. ADC inputs: CC2480 has an onboard 12-bit ADC and 2 ADC input pins (A0 and A1). A software interface is provided for the host processor to perform an ADC conversion and read the value. A built-in temperature sensor and battery monitor can be also read through the ADC interface. GPIO: Four configurable GPIO pins (GPIO0-3) are available on CC2480. A software interface is provided for the host processor to read, write and toggle the GPIO pins. Non volatile parameters: This software interface allows the host processor to store and access 4 2-byte parameters and 2 16-byte parameters in the non volatile memory of CC2480. Software timers: Upto four software timers may be configured by the host processor on CC2480.
    ?? ??
    ??
    ?? ??
    ??
    CC2480 Interface Specification SWRA175A
    Page 6 of 57
    CC2480
    4 Pin configuration
    The pin-out of the CC2480 is shown below.
    Pin 3 4 5 6 8 9 10 11 12 13 14 15
    Name GPIO3 GPIO2 SRDY MRDY GPIO1 GPIO0 RESET_N CFG0 CFG1 SO/RX SI/TX SS/CT
    Direction Configurable Configurable Out In Configurable Configurable In In In Out/In In/Out In/Out
    Connection Optional Optional Mandatory for SPI Mandatory for SPI Optional Optional Recommended Optional Optional Mandatory Mandatory Mandatory
    Description Configurable GPIO pin. Configurable GPIO pin. Slave ready. Used for SPI transport. Master ready. Used for SPI transport. Configurable GPIO pin. Configurable GPIO pin. Reset, active low. Configuration input 0. Configuration input 1. SPI Slave output or UART RX data. SPI Slave input or UART TX data. SPI slave select or UART CTS.
    Page 7 of 57
    CC2480 Interface Specification SWRA175A
    CC2480
    16 17 18 C/RT A0 A1 In In In Mandatory Optional Optional SPI clock or UART RTS. Analog input to ADC. Analog input to ADC.
    GPIO 0-3: These are GPIO pins that can be configured and controlled by the host processor. See 6.1.11 for details. SRDY: This signal is asserted by the CC2480 for power management and transaction control when using SPI transport. It is typically connected to a host processor GPIO with falling-edge interrupt capabilities. See 5.1.3 for details MRDY: This signal is asserted by the host processor for power management and transaction control when using SPI transport. This is typically hardwired to SS/CT. See 5.1.3 for details. RESET_N: This signal is used by the host processor to reset CC2480. Use of this signal is recommended over the software reset interface. See 7.1 for details on recommended reset procedures. CFG0, CFG1: These two signals allow the host processor to configure the following features on CC2480 as shown below. The CC2480 reads these signals at powerup and operates accordingly. CFG0 1 0 1 0 32 kHz crystal is installed. Default. 32 kHz crystal is not installed. SPI transport selected. Default. UART transport selected.
    CFG1
    SO/RX, SI/TX, SS/CT, C/RT: These are the standard signals used for SPI or UART communication. See 5.1 and 5.2 for details. A0, A1: These are analog inputs to the CC2480 ADC. See 6.1.10 for details.
    CC2480 Interface Specification SWRA175A
    Page 8 of 57
    CC2480
    5 CC2480 Physical Interface
    CC2480 supports either a SPI or UART transport interface to the host processor. 5.1 SPI Transport
    5.1.1 Configuration The following SPI configuration is supported by CC2480: ?? ?? ?? ?? SPI slave. Clock speed up to 4 MHz on CC2480. Clock polarity 0 and clock phase 0 on CC2480. Bit order MSB first on CC2480.
    5.1.2 Frame Format SPI transport uses the general frame format described in 5.3. 5.1.3 Signal Description The following standard SPI signals are used: ?? ?? ?? SCK: Serial clock. SS: Slave select. SI/TX: Master-output slave-input data.
    ?? SO/RX: Master-input slave-output data. The following additional signals are required for SPI transaction handling and power management: ?? MRDY: Master ready. This signal is set by the host processor when it has data ready to send to the CC2480. It is active low. This signal can either be controlled independently or it can be hardwired to the slave select signal. The scenarios in this document assume MRDY is hardwired to SS. SRDY: Slave ready. This signal is set by the CC2480 when it is ready to receive or send data. When set low, it indicates the CC2480 is ready to receive data. When set high during an SPI POLL or SREQ transaction it indicates the CC2480 is ready to send data. When set high during an SPI AREQ transaction it indicates the CC2480 is done receiving data.
    ??
    5.1.4 Signal Operation The signals operate according to the following rules: 1. The host processor initiates a transaction by setting MRDY low and then waits for SRDY to go low. 2. The host processor shall never set MRDY high to end a transaction before all bytes of the frame have been transferred. 3. When receiving a POLL or SREQ, the CC2480 shall set SRDY high when it has data ready for the host processor. 4. When receiving an AREQ, the CC2480 shall set SRDY high when all bytes of the frame have been received. 5.1.5 5.1.5.1 Protocol Scenarios AREQ Command
    The following figure shows an AREQ command sent from the host processor to the CC2480.
    CC2480 Interface Specification SWRA175A
    Page 9 of 57
    CC2480
    SRDY MRDY and SS SI/TX SO/RX Host processor CCZACC06
    1, 3 2
    4 5
    6, 8 7
    Figure 1
    The following sequence of events occurs on the host processor and CC2480: 1. Host processor has an AREQ frame to send. Set MRDY low and wait for SRDY to go low. 2. CC2480 receives falling edge of MRDY. When ready to receive data set SRDY low. 3. Host processor reads SRDY low. Start data transmission. 4. Host processor transmits data until frame is complete. 5. CC2480 receives data until frame is complete. 6. Host processor waits for SRDY to go high. 7. CC2480 receives complete frame and sets SRDY high. 8. Host processor reads SRDY high. Set MRDY high.
    CC2480 Interface Specification SWRA175A
    Page 10 of 57
    CC2480
    5.1.5.2 POLL Command The following figure shows a POLL command sent from the host processor to the CC2480.
    SRDY MRDY and SS SI/TX SO/RX Host processor CCZACC06 1
    2, 3 4
    5, 7 6
    8 9
    10
    Figure 2
    The following sequence of events occurs on the host processor and CC2480: 1. CC2480 has an AREQ frame to send. When ready to receive data set SRDY low. 2. Host processor detects SRDY low and sets MRDY low. Prepare POLL command and start data transmission. 3. Host processor transmits data until frame is complete. 4. CC2480 receives data until frame is complete. 5. Host processor waits for SRDY to go high. 6. CC2480 prepares AREQ frame for transmission. When ready to transmit set SRDY high. 7. Host processor reads SRDY high. Start data reception. 8. Host processor receives data until frame is complete. 9. CC2480 transmits data until frame is complete. 10. Host processor receives complete frame. Set MRDY high.
    CC2480 Interface Specification SWRA175A
    Page 11 of 57
    CC2480
    5.1.5.3 SREQ Command The following figure shows a SREQ command sent from the host processor to the CC2480.
    SRDY MRDY and SS SI/TX SO/RX Host processor CCZACC06 1, 3 2 4 5 7 6, 9 8 10 11 12
    Figure 3
    The following sequence of events occurs on the host processor and CC2480: 1. Host processor has an SREQ frame to send. Set MRDY low and wait for SRDY to go low. 2. CC2480 receives falling edge of MRDY. When ready to receive data set SRDY low. 3. Host processor reads SRDY low. Start data transmission. 4. Host processor transmits data until frame is complete. 5. CC2480 receives data until frame is complete. 6. Host processor waits for SRDY to go high. 7. CC2480 processes SREQ command and executes function 8. CC2480 prepares SRSP frame. When ready to transmit data set SRDY high. 9. Host processor reads SRDY high. Start data reception. 10. Host processor receives data until frame is complete. 11. CC2480 transmits data until frame is complete. 12. Host processor receives complete frame. Set MRDY high.
    5.2
    UART Transport
    5.2.1 Configuration The following UART configuration is supported: ?? ?? ?? Baud rate: 115200. Hardware (RTS/CTS) flow control. 8N1 byte format.
    5.2.2 Frame Format UART transport frame format is shown in the following figure. The left-most field is transmitted first over the wire.
    CC2480 Interface Specification SWRA175A
    Page 12 of 57
    CC2480
    Figure 4 SOF: Start of frame indicator. This is always set to 0xFE. General frame format: This is the general frame format as described in 5.3. FCS: Frame-check sequence. This field is computed as an XOR of all the bytes in the general format frame fields. Shown below is a C example for the FCS calculation: unsigned char calcFCS(unsigned char *pMsg, unsigned char len) { unsigned char result = 0; while (len--) { result ^= *pMsg++; } return result; }
    5.2.3 Signal Description The following standard UART signals are used: ?? ?? ?? ?? ?? TXD: Transmit data. RXD: Receive data. CTS: Clear to send. RTS: Ready to send. The additional MRDY and SRDY signals are not used with UART transport as low power operation is not supported in this mode. The CC2480 CPU will always remain in active mode when UART transport is used.
    5.2.4 Signal Operation UART transport sends and receives data asynchronously. Data can be sent and received simultaneously and the transfer of a frame can be initiated at any time by either the host processor or the CC2480.
    5.3 General Frame Format The general frame format is shown in the following figure. The left-most field is transmitted first over the wire. For multi-byte fields, the lowest order byte is transmitted first.
    CC2480 Interface Specification SWRA175A
    Page 13 of 57
    CC2480
    Figure 5 Length: The length of the data field of the frame. The length can range from 0-253. Command: The command of the frame. Data: The frame data. This depends on the command field and is described for each command in Section 6. 5.3.1 Command Field The command field is constructed of two bytes. The bytes are formatted as shown in the following figure. The Cmd0 byte is transmitted first in a frame.
    Figure 6 Type: The command type has one of the following values: ?? 0: POLL. A POLL command is used to retrieve queued data. This command is only applicable to SPI transport. For a POLL command the subsystem and ID are set to zero and data length is zero. 1: SREQ: A synchronous request that requires an immediate response. For example, a function call with a return value would use an SREQ command. 2: AREQ: An asynchronous request. For example, a callback event or a function call with no return value would use an AREQ command. 3: SRSP: A synchronous response. This type of command is only sent in response to a SREQ command. For an SRSP command the subsystem and ID are set to the same values as the corresponding SREQ. The length of an SRSP is generally nonzero, so an SRSP with length=0 can be used to indicate an error.
    ?? ?? ??
    ?? 4-7: Reserved. Subsystem: The subsystem of the command. Values are shown below:
    Subsystem Value 0 1 2 3 4 5
    Subsystem Name Reserved SYS interface Reserved Reserved AF interface ZDO interface
    CC2480 Interface Specification SWRA175A
    Page 14 of 57
    CC2480
    6 7-32 Simple API interface Reserved
    ID: The command ID. The ID maps to a particular interface message. Value range: 0-255.
    CC2480 Interface Specification SWRA175A
    Page 15 of 57
    CC2480
    6 CC2480 Application Interface
    The following subsections describe the CC2480 application command interface. They are subdivided into the following categories ?? The SYS interface provides the application processor with a low level interface to the CC2480 hardware and software. The CC2480 functions that are accessible over this interface include the ADC ( analog-to-digital converter ), NV memory, GPIO pins, software timers and the hardware random number generator. The Configuration interface allows the application processor to configure various parameters of the CC2480 device. The Simple API interface is a simplified ZigBee interface that can be used to quickly create simple ZigBee compliant networked applications. It allows for easy device configuration, network formation, binding and data transfer. The AF and ZDO interfaces feature the complete ZigBee interface and can be used to create a full range of ZigBee compliant applications. The AF ( Application Framework ) interface allows the application processor to register its application with the CC2480 and send and receive data. The ZDO ( ZigBee Device Objects ) interface provides various ZigBee management functions like device and service discovery.
    ?? ??
    ??
    In all the message formats shown below, the left-most field is transmitted first over the wire. For multi-byte fields, the lowest order byte is transmitted first. 6.1 6.1.1 6.1.1.1 SYS interface SYS_RESET_REQ Description
    This command is issued by the application processor to reset the CC2480 device. The reset is achieved through an internal watchdog reset on the CC2480. Note that the hardware reset interface is recommended over using this interface. 6.1.1.2
    AREQ:
    1 Length = 0x01 1 Cmd0 = 0x41 1 Cmd1 = 0x00 1 Type
    Usage
    Type ¨C 1 byte ¨C This should be set to value of 0.
    6.1.2 6.1.2.1
    SYS_RESET_IND Description
    This command is generated by the CC2480 device automatically immediately after a reset. 6.1.2.2
    AREQ:
    1 Length = 0x06 1 Cmd0 = 0x41 1 Cmd1 = 0x80 1 Reason 1 TransportRev 1 ProductId
    Usage
    1 MajorRel
    1 MinorRel
    1 HwRev
    Reason ¨C 1 byte ¨C One of the following values indicating the reason for the reset.
    CC2480 Interface Specification SWRA175A
    Page 16 of 57
    CC2480
    Resolution Power-up External Watch-dog Value 0x00 0x01 0x02
    TransportRev ¨C 1 byte ¨C Transport protocol revision. This is set to value of 2. Product ¨C 1 byte ¨C Product ID. This is set to value of 1. MajorRel ¨C 1 byte ¨C Major release number. MinorRel ¨C 1 byte ¨C Minor release number. HwRev ¨C 1 byte ¨C Hardware revision number.
    6.1.3 6.1.3.1
    SYS_VERSION Description
    This command is issued by the application processor to request for the CC2480 software version information. 6.1.3.2
    SREQ:
    1 Length = 0x00 1 Cmd0 = 0x21 1 Cmd1 = 0x02
    Usage
    SRSP:
    1 Length = 0x05 1 Cmd0 = 0x61 1 Cmd1 = 0x02 1 TransportRev 1 Product 1 MajorRel 1 MinorRel 1 HwRev
    TransportRev ¨C 1 byte ¨C The transport protocol revision number. This is set to value of 2. Product ¨C 1 byte ¨C Product ID. This is set to value of 1. MajorRel ¨C 1 byte ¨C Software major release number. MinorRel ¨C 1 byte ¨C Software minor release number. HwRev ¨C 1 byte ¨C Chip hardware revision.
    6.1.4 6.1.4.1
    SYS_OSAL_NV_READ Description
    This command is used by the application processor to read an item stored in the CC2480 NV memory. The command accepts an attribute ID value and returns the value for that attribute ID. 6.1.4.2
    SREQ:
    t Length = 0x03 1 Cmd0 = 0x21 1 Cmd1 = 0x08 2 Id 1 Offset
    Usage
    Id ¨C 2 bytes ¨C The attribute id of the NV item. It can take one of the following values
    NV Item ZP_NV_APP_ITEM_1 ZP_NV_APP_ITEM_2 ZP_NV_APP_ITEM_3 Size 2 bytes 2 bytes 2 bytes Value 0x0300 0x0301 0x0302 Page 17 of 57
    CC2480 Interface Specification SWRA175A
    CC2480
    ZP_NV_APP_ITEM_4 ZP_NV_APP_ITEM_5 ZP_NV_APP_ITEM_6 2 bytes 16 bytes 16 bytes 0x0303 0x0304 0x0305
    Offset ¨C 1 byte ¨C Number of bytes offset from the beginning or the NV value.
    SRSP:
    1 Length = 0x020x12 1 Cmd0 = 0x61 1 Cmd1 = 0x08 1 Status 1 Len 0-16 Value
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. Len ¨C 1 byte ¨C The length of the NV value. Value ¨C 0-16 bytes ¨C The value of the NV item.
    6.1.5 6.1.5.1
    SYS_OSAL_NV_WRITE Description
    This command is used by the application processor to write to an NV item in the CC2480 NV memory. 6.1.5.2
    SREQ:
    1 Length = 0x04-0x14 1 Cmd0 = 0x21 1 Cmd1 = 0x09 2 Id 1 Offset 1 Len 0-16 Value
    Usage
    Id ¨C 2 bytes ¨C The attribute id of the NV item. It can take one of the following values
    NV Item ZP_NV_APP_ITEM_1 ZP_NV_APP_ITEM_2 ZP_NV_APP_ITEM_3 ZP_NV_APP_ITEM_4 ZP_NV_APP_ITEM_5 ZP_NV_APP_ITEM_6
    Size 2 bytes 2 bytes 2 bytes 2 bytes 16 bytes 16 bytes
    Value 0x0300 0x0301 0x0302 0x0303 0x0304 0x0305
    Offset ¨C 1 byte - Number of bytes offset from the beginning or the NV value. Len ¨C 1 byte ¨C Length of the NV value. Value ¨C 0-128 bytes ¨C Value of the NV item.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x61 1 Cmd1 = 0x09 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.1.6
    SYS_OSAL_START_TIMER
    CC2480 Interface Specification SWRA175A
    Page 18 of 57
    CC2480
    6.1.6.1 Description This command is used by the application processor to start a software timer event in the CC2480. The event will expire after the indicated amount of time and a notification will be sent back to the application processor. Upto 4 software timers may be scheduled on the device. 6.1.6.2
    SREQ:
    1 Length = 0x03 1 Cmd0 = 0x21 1 Cmd1 = 0x0A 1 Id 2 Timeout
    Usage
    Id ¨C 1 byte ¨C The id of the timer event (0-3) Timeout ¨C 2 bytes ¨C Amount of time ( in milliseconds ) before the event expires.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x61 1 Cmd1 = 0x0A 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.1.7 6.1.7.1
    SYS_OSAL_STOP_TIMER Description
    This command is used by the application processor to stop a previously scheduled software timer event on the CC2480. 6.1.7.2
    SREQ:
    1 Length = 0x01 1 Cmd0 = 0x21 1 Cmd1 = 0x0B 1 Id
    Usage
    Id ¨C 1 byte ¨C The id of the timer event. It takes values form 0 through 3.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x61 1 Cmd1 = 0x0B 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.1.8 6.1.8.1
    SYS_OSAL_TIMER_EXPIRED Description
    This command is sent by the CC2480 device to the application processor to indicate that a scheduled software timer event has expired. 6.1.8.2
    AREQ:
    1 Length = 0x01 1 Cmd0 = 0x41 1 Cmd1 = 0x81 1 Id
    Usage
    Id ¨C 1 byte ¨C The id of the timer event. It takes values form 0 through 3.
    6.1.9
    SYS_RANDOM
    CC2480 Interface Specification SWRA175A
    Page 19 of 57
    CC2480
    6.1.9.1 Description This command is used by the application processor to read a 16-bit random number from the CC2480 hardware random number generator. 6.1.9.2
    SREQ:
    1 Length = 0x00 1 Cmd0 = 0x21 1 Cmd1 = 0x0C
    Usage
    SRSP:
    1 Length = 0x02 1 Cmd0 = 0x61 1 Cmd1 = 0x0C 2 Value
    Value ¨C 2 bytes ¨C The random value.
    6.1.10 SYS_ADC_READ 6.1.10.1 Description
    This command is used by the application processor to read from the CC2480 ADC (analog-todigital converter). 6.1.10.2
    SREQ:
    1 Length = 0x02 1 Cmd0 = 0x21 1 Cmd1 = 0x0D 1 Channel 1 Resolution
    Usage
    Channel ¨C 1 byte ¨C The following channels are available.
    Channel AIN0 AIN1 AIN0-1 ( differential input ) Temperature Sensor Voltage Reading Value 0x06 0x07 0x0B 0x0E 0x0F
    Resolution ¨C 1byte ¨C The resolution of the ADC conversion. It can be 7-bit, 9-bit, 10-bit or 12-bit.
    Resolution 7-bit 9-bit 10-bit 12-bit Value 0x00 0x01 0x02 0x03
    SRSP:
    1 Length = 0x02 1 Cmd0 = 0x61 1 Cmd1 = 0x0D 2 Value
    Value ¨C 2 bytes ¨C Value of the ADC conversion based on the specified information. This is a signed value in two¡¯s complement representation. Depending on the resolution of the conversion, the appropriate number of lowest order bits should be ignored. For example, for a 7-bit resolution, the lowest 9 bits should be ignored.
    CC2480 Interface Specification SWRA175A
    Page 20 of 57
    CC2480
    6.1.11 SYS_GPIO 6.1.11.1 Description
    This command is used by the application processor to configure the accessible GPIO pins on the CC2480 device. There are four accessible GPIO pins (GPIO0-3) on the CC2480 device. 6.1.11.2
    SREQ:
    1 Length = 0x02 1 Cmd0 = 0x21 1 Cmd1 = 0x0E 1 Operation 1 Value
    Usage
    Operation - 1 byte - The type of operation to perform on the GPIO pins. It can take following values
    Operation Set direction Value 0x00 Description Configures the direction of the GPIO pins. A value of 0 in a bit position configures the corresponding GPIO pin as an Input while a value of 1 configures it as Output. Configures the Input mode of the GPIO pins. A value of 0 in a bit position configures it as pull-up mode while a 1 configures it in tri-state Input mode. ( Note: GPIO0 and GPIO1 can only be set in tri-state input mode ). A value of 1 in a bit position will set the corresponding GPIO pin ( writes a 1 ). A value of 0 in a bit position will clear the corresponding GPIO pin ( writes a 0 ). A value of 1 in a bit position will toggle the corresponding GPIO pin. Reads the GPIO pins.
    Set Input mode Set Clear Toggle Read
    0x01
    0x02 0x03 0x04 0x05
    Value ¨C 1 byte ¨C Each bit position in this field contains the requested value for one of the GPIO pins. The GPIO pins are mapped to the bit positions as follows. The rest of the bit positions are ignored.
    GPIO 0 1 2 3 Bit position 0 1 4 5
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x61 1 Cmd1 = 0x0E 1 Value
    Value ¨C 1 byte ¨C The value after the requested operation is performed. Note: The state of the GPIO pins after a reset is an Input with pull-up. When the device is in sleep mode, the GPIO pins maintain their output value and I/O mode.
    6.1.12 SYS_TEST_RF 6.1.12.1 Description
    This command is used by the application processor to configure the CC2480 device RF test modes. The test modes configure the frequency and transmit power of the CC2480 device and transmit either an unmodulated carrier or a carrier modulated with pseudo-random data or configure the radio for receive mode.
    CC2480 Interface Specification SWRA175A Page 21 of 57
    CC2480
    6.1.12.2
    AREQ:
    1 Length = 0x04 1 Cmd0 = 0x41 1 Cmd1 = 0x40 1 Test mode 2 Frequency 1 TxPower
    Usage
    Test mode ¨C 1 byte - The type of test mode to configure the CC2480 device. It can take one of the following values
    Test mode 0x00 0x01 0x02 Description The CC2480 device will transmit unmodulated carrier with the specified frequency and transmit power The CC2480 device will transmit pseudo-random data with the specified frequency and transmit power The CC2480 device will have the radio placed in receive mode on the specified frequency.
    Frequency ¨C 2 bytes ¨C The frequency of operation. The valid range is from 0 to 1023. The CC2480 device will set to (2048 + frequency) MHz. TxPower ¨C 1byte ¨C The RF transmit power is determined by this parameter as described in the table below. This parameter is ignored in test mode 0x02.
    TxPower 0xFF 0xDF 0xBF 0x9F 0x7F 0x5F 0x3F 0x1F 0x1B 0x17 0x13 0x0F 0x0B 0x07 0x06 0x03 Output power [dBm] 0.6 0.5 0.3 0.2 -0.1 -0.4 -0.9 -1.5 -2.7 -4.0 -5.7 -7.9 -10.8 -15.4 -18.6 -25.2
    Note that executing this command will leave the radio in a different configuration than is needed for regular operation. It is expected that the device will have to be reset before it can be used again for regular RF operations.
    6.1.13 SYS_TEST_LOOPBACK 6.1.13.1 Description
    This command is used by the application processor to test the physical interface (SPI or UART) to the CC2480.
    CC2480 Interface Specification SWRA175A Page 22 of 57
    CC2480
    6.1.13.2
    SREQ:
    1 Length = variable 1 Cmd0 = 0x21 1 Cmd1 = 0x41 variable Test data
    Usage
    Test data ¨C variable bytes ¨C This data will be returned by CC2480 in the response.
    SRSP:
    1 Length = variable 1 Cmd0 = 0x61 1 Cmd1 = 0x41 variable Test data
    Test data ¨C variable bytes ¨C The Test data from the request is returned.
    6.2
    Configuration interface
    The CC2480 device has several parameters that can be configured by the host processor. These configuration parameters are stored in non volatile memory on the CC2480 device and their values persist across a device reset. The configuration parameters are divided into ¡°network-specific¡± and ¡°device-specific¡± parameters. The ¡°network-specific¡± configuration parameters should be set to the same value for all CC2480 devices in a ZigBee network to ensure proper network operation. The ¡°device-specific¡± parameters can be set to different values on each device. These parameters are listed in detail in 6.2.3 and 6.2.4. When the CC2480 device powers up, it reads two of the configuration parameters immediately. These are the STARTOPT_CLEAR_CONFIG bit (part of the ZCD_NV_STARTUP_OPTION parameter) and the ZCD_NV_LOGICAL_TYPE parameters. Any modification of these parameters will require a CC2480 device reset before they can take effect. The rest of the configuration parameters are read when the CC2480 device starts operation of the ZigBee stack (when the ZB_START_REQUEST is issued). Each of the configuration parameters has a default value that is used if it is not explicitly configured. It is possible to erase all the configuration settings and restore the device to this initial configuration by setting the STARTOPT_CLEAR_CONFIG bit option. This is useful if it is necessary to bring the CC2480 device configuration to a known state.
    6.2.1 6.2.1.1
    ZB_READ_CONFIGURATION Description
    This command is used to read the value of a configuration parameter from the CC2480 device. 6.2.1.2
    SREQ:
    1 Length = 0x01 1 Cmd0 = 0x26 1 Cmd1 = 0x04 1 ConfigId
    Usage
    ConfigId ¨C 1 byte ¨C Specifies the identifier for the configuration property.
    SRSP:
    1 Length = 0x03-0x83 1 Cmd0 = 0x66 1 Cmd1 = 0x04 Status 1 1 ConfigId Len 1 0-128 Value
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. ConfigId ¨C 1 byte ¨C Specifies the identifier for the configuration property. Len ¨C 1 byte ¨C Specifies the size of the Value buffer in bytes.
    CC2480 Interface Specification SWRA175A Page 23 of 57
    CC2480
    Value ¨C 0-128 bytes ¨C A buffer to hold the configuration property. 6.2.2 6.2.2.1 ZB_WRITE_CONFIGURATION Description
    This command is used to write a configuration parameter to the CC2480 device. 6.2.2.2
    SREQ:
    1 Length = 0x03-0x83 1 Cmd0 = 0x26 1 Cmd1 = 0x05 1 ConfigId 1 Len 1-128 Value
    Usage
    ConfigId ¨C 1 byte ¨C The identifier for the configuration property Len ¨C 1 byte ¨C Specifies the size of the Value buffer in bytes. Value ¨C 1-128 bytes ¨C The buffer containing the new value of the configuration property
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x66 1 Cmd1 = 0x05 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.2.3 6.2.3.1
    Device specific configuration parameters ZCD_NV_STARTUP_OPTION
    Configuration ID: 0x0003; Size: 1byte; Default value: 0 This parameter controls the device startup options. This is a bit mask of the following values
    Bit position Description 7-2 Reserved 1 STARTOPT_CLEAR_STATE 0 STARTOPT_CLEAR_CONFIG
    ??
    STARTOPT_CLEAR_CONFIG ¨C If this option is set, the device will overwrite all the configuration parameters (except this one) with the ¡°default¡± values that it is programmed with. This is used to erase the existing configuration and bring the device into a known state.
    Note: The STARTOPT_CLEAR_CONFIG bit is read by the CC2480 device immediately when it powers up after a reset. When the configuration parameters are restored to defaults, the ZCD_NV_STARTUP_OPTION itself is not restored except for clearing the STARTOPT_CLEAR_CONFIG bit.
    ??
    STARTOPT_CLEAR_STATE ¨C If this option is set, the device will clear its previous network state (which would exist if the device had been operating on a network prior to the reset). This is typically used during application development. During regular device operation, this flag is typically not set, so that an accidental device reset will not cause loss of network state.
    Notes: The CC2480 device has two kinds of information stored in non-volatile memory. The configuration parameters (listed in this section) and network state information. The configuration parameters are configured by the user before start of ZigBee operation. The network state information is collected by the device after it joins a network and creates bindings etc. (at runtime). This is not set by the application processor. This information is stored so that if the device were to reset accidentally, it can restore itself without going through all the network joining and binding process again. If the application processor does not wish to continue operating in the previous ZigBee network, it needs to instruct the CC2480 device to clear the network state information and start again based on
    CC2480 Interface Specification SWRA175A Page 24 of 57
    CC2480
    the configuration parameters. This is done by setting the STARTOPT_CLEAR_STATE bit in the startup option.
    6.2.3.2
    ZCD_NV_LOGICAL_TYPE
    Configuration ID: 0x0087; Size: 1byte; Default value: 0x00 This is the logical type of the device in the ZigBee network. This can be set to either a COORDINATOR (0x00), ROUTER (0x01) or ENDDEVICE (0x02).
    Note: This parameter is read by the CC2480 device immediately when it powers up after a reset.
    6.2.3.3
    ZCD_NV_POLL_RATE
    Configuration ID: 0x0024; Size: 2byte; Default value: 2000 If this parameter is set to a non-zero value, a CC2480 device that is configured as an end-device will wake up periodically with this duration to check for data with its parent device. This value is specified in milliseconds and can range from 1 to 65000. If this parameter is set to zero, the device will not automatically wake up to poll for data. Instead, an external trigger or an internal event (for example, via a software timer event) can be used to wake up the device.
    6.2.3.4
    ZCD_NV_QUEUED_POLL_RATE
    Configuration ID: 0x0025; Size: 2bytes; Default value: 100 When an end-device polls for data with its parent and finds that it does have data, it can poll again with a shorter duration in case there is more data queued for it at its parent device. This value is specified in milliseconds. This feature can be turned off by setting this value to zero.
    6.2.3.5
    ZCD_NV_RESPONSE_POLL_RATE
    Configuration ID: 0x0026; Size: 2byte; Default value: 100 When an end-device sends a data packet, it can poll again with a shorter duration, specified by this parameter, if the application is expecting to receive an application level packet in response. This value is specified in milliseconds. This feature can be turned off by setting the value to zero. Note: The setting of the queued and response poll rates has to be done with caution if the device is sending and receiving at the same time or if the device is sending data too fast. If the device is sending data too fast, setting a queued poll rate with a higher duration than the sending rate will cause the poll event to be continuously rescheduled to the future. Then the device will never poll for data with its parent and consequently it may miss any packets destined for it.
    6.2.3.6
    ZCD_NV_POLL_FAILURE_RETRIES
    Configuration ID: 0x0029; Size: 1byte; Default value: 2. The number of times an end-device will fail when communicating with its parent before invoking the rejoin mechanism to find and join a new parent.
    6.2.3.7
    ZCD_NV_INDIRECT_MSG_TIMEOUT
    Configuration ID: 0x002B; Size: 1byte; Default value: 7 The amount of time (in seconds) that a router or coordinator device will buffer messages destined to their end-device child nodes. It is recommended that this is at least greater than the poll rate
    CC2480 Interface Specification SWRA175A Page 25 of 57
    CC2480
    (ZCD_NV_POLL_RATE ) to ensure that end-device will have a chance to wakeup and poll for the data.
    6.2.3.8
    ZCD_NV_APS_FRAME_RETRIES
    Configuration ID: 0x0043; Size: 1bytes; Default value: 3 The number of retransmissions performed on a data packet at the application layer if the packet was transmitted with the end-to-end acknowledgement option enabled.
    6.2.3.9
    ZCD_NV_APS_ACK_WAIT_DURATION
    Configuration ID: 0x0044; Size: 2bytes; Default value: 3000 The amount of time (in milliseconds) a device will wait transmitting a packet with end-to-end acknowledgement option set for the acknowledgement packet to arrive from the destination device. If the acknowledgement packet is not received by this time, the sending device will assume a failure and attemp a retransmission. Note: This is recommended to be set to approximately the expected round trip time for the packet. Note that if the destination (or source) device is an end-device, the round trip time for the packet will include an additional delay upto the poll duration. This is in addition to the delay normally caused by the network.
    6.2.3.10
    ZCD_NV_BINDING_TIME
    Configuration ID: 0x0046; Size: 2bytes; Default value: 8000 The amount of time (in milliseconds) a device will wait for a response to a binding request.
    6.2.3.11
    ZCD_NV_USERDESC
    Configuration ID: 0x0081; Size: 17bytes; Default value: ¡°CC2480 x¡­¡­¡± ( dots represent the device IEEE address ) An optional user-defined data (upto 16bytes ) that can be configured in a CC2480 device so that it can easily identified or described later. The first byte is the length of the user descriptor data and must not be greater than 16.
    6.2.4 6.2.4.1
    Network specific configuration parameters ZCD_NV_PANID
    Configuration ID: 0x0083; Size: 2bytes; Default value: 0xFFFF This parameter identifies the ZigBee network. This should be set to a value between 0 and 0x3FFF. Networks that exist in the same vicinity must have different values for this parameter. It can be set to a special value of 0xFFFF to indicate ¡°don¡¯t care¡±.
    6.2.4.2
    ZCD_NV_CHANLIST
    Configuration ID: 0x0084; Size: 4bytes; Default value: 0x00000800 This parameter is a bit mask of the channels on which this network can operate (note that multiple channels can be selected). Multiple networks that exist in the same vicinity are encouraged to have different values. If multiple channels are selected, the coordinator will pick one of the channels for network operation. First, an energy scan is performed on each channel and those channels with a high energy level are discarded. Then, the coordinator deteremines the number of existing ZigBee networks on each of the remaining channels and picks the one with the fewest networks. For
    CC2480 Interface Specification SWRA175A Page 26 of 57
    CC2480
    routers and end-devices, the device will simply scan all the selected channels until it finds the ZigBee network. 6.2.4.3 ZCD_NV_PRECFGKEY
    Configuration ID: 0x0062; Size: 16bytes; Default value: [0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F] This is used for securing and un-securing packets in the network, if security is enabled for the network.
    6.2.4.4
    ZCD_NV_PRECFGKEYS_ENABLE
    Configuration ID: 0x0063; Size: 1byte; Default value: TRUE If security functionality is enabled, there are two options to distribute the security key to all devices in the network. If this parameter is true, the same security key is assumed to be pre-configured in all devices in the network. If it is set to false, then the key only needs to be configured on the coordinator device. In this case, the key is distributed to each device upon joining by the coordinator. This key distribution will happen in the ¡°clear¡± on the last hop of the packet transmission and this constitutes a brief ¡°period of vulnerability¡± during which a malicious device can capture the key. Hence it is not recommended unless it can be ensured that there are no malicious devices in the vicinity at the time of network formation.
    6.2.4.5
    ZCD_NV_SECURITY_MODE
    Configuration ID: 0x0064; Size: 1byte; Default value: 0 This parameter determines if security is used or not in this network. It can be set to 0 ( to turn off security ) or 1 ( to turn on security ).
    6.2.4.6
    ZCD_NV_BCAST_RETRIES
    Configuration ID: 0x002E; Size: 1byte; Default value: 2. The maximum number of retransmissions that a device will attempt when trying to transmit a broadcast packet. The typical range is from 1 through 3.
    6.2.4.7
    ZCD_NV_PASSIVE_ACK_TIMEOUT
    Configuration ID: 0x002F; Size: 1byte; Default value: 5 The amount of time (in units of 100milliseconds) a device will wait before retransmitting a broadcast packet. The retransmission will not happen if the node hears that each of its neighbor nodes have all transmitted that packet.
    6.2.4.8
    ZCD_NV_BCAST_DELIVERY_TIME
    Configuration ID: 0x0030; Size: 1byte; Default value: 30. The maximum amount of time (in units of 100ms) that it can take for a broadcast packet to propagate through the entire network. This includes time for all retransmissions.
    Note: This parameter must be set with caution. It must be set to a value of at least (ZCD_NV_BCAST_RETRIES + 1) * ZCD_NV_PASSIVE_ACK_TIMEOUT To be safe, the actual value should be higher than the above minimum by about 500ms or more.
    CC2480 Interface Specification SWRA175A Page 27 of 57
    CC2480
    6.2.4.9 ZCD_NV_ROUTE_EXPIRY_TIME Configuration ID: 0x002C; Size: 1byte; Default value: 60. The amount of time (in seconds) for which a route must be idle ( i.e. no packets are transmitted on that route ) before that routing entry is marked as expired. An expired entry may be deleted if the table is full and the space is needed for another new routing entry. This can be set to a special value of 0 to turn off route expiry. In this case, route entries are not expired.
    6.3
    Simple API interface
    The Simple API interface is intended to present a simplified ZigBee API to the application developer. The complete ZigBee interface is provided via the AF and ZDO interfaces. But since the majority of the applications do not use the full feature set available in ZigBee, this simplified interface is an easy way for the developer to begin ZigBee application development. It contains the necessary interface to commission a ZigBee network, perform bindings between devices and send and receive data.
    6.3.1 6.3.1.1
    ZB_APP_REGISTER_REQUEST Description
    This command enables the application processor to register its application with the CC2480 device. 6.3.1.2
    SREQ:
    1 Length = variable 1 Cmd0 = 0x26 1 Cmd1 = 0x0A 1 AppEndPoint 2 AppProfileID 2 DeviceId 1 DeviceVersion
    Usage
    1 Unused
    1 InputCommandsNum
    2 x Input commands InputCommandsList
    1 OutputCommandsNum
    2 x Output commands OutputCommandsList
    AppEndPoint ¨C 1 byte ¨C Specifies the endpoint of the device. This should be in the range of 1 through 240 and should be set to same value for all devices in the network. AppProfileID ¨C 2 bytes ¨C Specifies the profile id of the application. This should be set to same value to all devices in the network. This number is assigned by the ZigBee Alliance. DeviceId ¨C 2 bytes ¨C This is an application-specific identifier. It identifies the device type within the particular profile id. This is not used by the ZigBee stack in any way other than to identify itself when requested. DeviceVersion ¨C 1 byte ¨C This is an application-specific identifier. It identifies the version of the device. This is not used by the ZigBee stack in any way other than to identify itself when requested. Unused ¨C 1 byte ¨C Unused parameter. InputCommandsNum ¨C 1 byte ¨C Specifies the number of Input commands that this application will process. InputCommandsList ¨C variable ¨C List of input command identifiers that are processed by this application. OutputCommandsNum ¨C 1 byte ¨C Specifies the number of Output commands that this application will generate.
    CC2480 Interface Specification SWRA175A
    Page 28 of 57
    CC2480
    OutputCommandsList ¨C variable ¨C List of output command identifiers that are generated by this application.
    Note: It is mandatory that the application register itself with the CC2480 device after every reset if it wishes to use the simple api interface. The AppEndPoint and AppProfileId fields should be populated with the same values for all devices in the network. This list of input and output commands are only used by the ZigBee stack when performing binding. If the binding feature is not used, these may be ignored. The DeviceId and DeviceVersion are not used by the ZigBee stack and may be ignored. SRSP:
    1 Length = 0x01 1 Cmd0 = 0x66 1 Cmd1 = 0x0A 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.3.2 6.3.2.1
    ZB_START_REQUEST Description
    This command starts the ZigBee stack in the CC2480 device. When the ZigBee stack starts, the device reads the programmed configuration parameters and operates accordingly. After the start request process completes, the device is ready to send, receive, and route network traffic. 6.3.2.2
    SREQ:
    1 Length = 0x00 1 Cmd0 = 0x26 1 Cmd1 = 0x00
    Usage
    SRSP:
    1 Length = 0x00 1 Cmd0 = 0x66 1 Cmd1 = 0x00
    6.3.3 6.3.3.1
    ZB_START_CONFIRM Description
    This command is issued by the CC2480 device to return the results from a ZB_START_REQUEST command. 6.3.3.2
    AREQ:
    1 Length = 0x01 1 Cmd0 = 0x46 1 Cmd1 = 0x80 1 Status
    Usage
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.3.4 6.3.4.1
    ZB_PERMIT_JOINING_REQUEST Description
    This command is used to control the joining permissions and thus allow or disallow new devices from joining the network. 6.3.4.2
    SREQ:
    Usage
    CC2480 Interface Specification SWRA175A
    Page 29 of 57
    CC2480
    1 Length = 0x03 1 Cmd0 = 0x26 1 Cmd1 = 0x08 2 Destination 1 Timeout
    Destination ¨C 2 bytes ¨C The destination parameter indicates the address of the device for which the joining permissions should be set. This is usually the local device address or the special broadcast address that denotes all routers and coordinator (0xFFFC). This way the joining permissions of a single device or the whole network can be controlled. Timeout ¨C 1 byte ¨C Indicates the amount of time in seconds for which the joining permissions should be turned on. If timeout is set to 0x00, the device will turn off the joining permissions indefinitely. If it is set to 0xFF, the joining permissions will be turned on indefinitely.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x66 1 Cmd1 = 0x08 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.3.5 6.3.5.1
    ZB_BIND_DEVICE Description
    This command is used to create or delete a ¡®binding¡¯ to another device on the network. Once bound, an application can send messages to a device by referencing the commandId for the binding. This command can also be issued with a NULL destination address ( set to all zeros ). In that case, a binding will be established with another device that is in the Allow Bind mode.
    6.3.5.2
    SREQ:
    1 Length = 0x0B
    Usage
    1 Cmd0 = 0x26
    1 Cmd1 = 0x01
    1 Create
    2 CommandId
    8 Destination
    Create ¨C 1 byte ¨C TRUE to create a binding, FALSE to remove a binding. CommandId ¨C 2 bytes ¨C The identifier of the binding. Destination ¨C 8 bytes ¨C Specifies the 64-bit IEEE address of the device to bind to. Set to NULL if the destination address is unknown and instead the destination device is set to Allow Bind mode.
    SRSP:
    1 Length = 0x00 1 Cmd0 = 0x66 1 Cmd1 = 0x01
    6.3.6 6.3.6.1
    ZB_BIND_CONFIRM Description
    This command is issued by the CC2480 device to return the results from a ZB_BIND_DEVICE command. 6.3.6.2
    AREQ:
    1 Length = 0x03 1 Cmd0 = 0x46 1 Cmd1 = 0x81 2 CommandId 1 Status
    Usage
    CommandId ¨C 2 bytes ¨C The command ID of the binding being confirmed. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    CC2480 Interface Specification SWRA175A
    Page 30 of 57
    CC2480
    6.3.7 6.3.7.1 ZB_ALLOW_BIND Description This command puts the device into the Allow Binding Mode for a given period of time. This allows a peer device to establish a binding with this device ( in the Allow Binding Mode ) by issuing the zb_BindDevice with a destination address of NULL. 6.3.7.2
    SREQ:
    1 Length = 0x01 1 Cmd0 = 0x26 1 Cmd1 = 0x02 1 Timeout
    Usage
    Timeout ¨C 1 byte ¨C The number of seconds to remain in the allow binding mode. Valid values range from 1 through 65. If 0, the Allow Bind mode will be set false without timeout. If greater than 64, the Allow Bind mode will be true indefinitely.
    SRSP:
    1 Length = 0x00 1 Cmd0 = 0x66 1 Cmd1 = 0x02
    6.3.8 6.3.8.1
    ZB_ALLOW_BIND_CONFIRM Description
    This command is issued by the CC2480 device when it responds to a bind request from a remote device. 6.3.8.2
    AREQ:
    1 Length = 0x02 1 Cmd0 = 0x46 1 Cmd1 = 0x82 2 Source
    Usage
    Source ¨C 2 bytes ¨C Contains the address of the device attempted to bind to this device.
    6.3.9 6.3.9.1
    ZB_SEND_DATA_REQUEST Description
    This command initiates transmission of data to another device in the network. This command can only be issued after the host processor has registered its application using the ZB_APP_REGISTER_REQUEST and the device has successfully created or joined a network. 6.3.9.2
    SREQ:
    1 Length = 0x08-0x5C 1 Cmd0 = 0x26 1 Cmd1 = 0x03 2 Destination 2 CommandId 1 Handle
    Usage
    1 Ack
    1 Radius
    1 Len
    0-84 Data
    Destination ¨C 2 bytes ¨C The destination address of the data packet. It can be one of the following values.
    Address 0 ¨C 0xFFF7 0xFFFC Description 16-bit short address of the destination device Group of all routers and coordinator
    CC2480 Interface Specification SWRA175A
    Page 31 of 57
    CC2480
    0xFFFD 0xFFFE Group of all devices with receiver turned on This is the binding address and should be used when a binding entry has been previously created for this particular CommandId. The destination address will be determined from the binding table by the CC2480 Broadcast group of all devices in the network
    0xFFFF
    CommandId ¨C 2 bytes ¨C The command ID to send with the message. If the binding address is used for destination, this parameter also indicates the binding to use. Handle ¨C 1 byte ¨C A handle used to identify the send data request. Ack ¨C 1 byte ¨C TRUE if requesting acknowledgement from the destination. Radius ¨C 1 byte ¨C The max number of hops the packet can travel through before it is dropped. Len ¨C 1 byte ¨C Specifies the size of the Data buffer in bytes. Data ¨C 0-84 bytes ¨C Data.
    SRSP:
    1 Length = 0x00 1 Cmd0 = 0x66 1 Cmd1 = 0x03
    6.3.10 ZB_SEND_DATA_CONFIRM 6.3.10.1 Description CC2480 device to return the results from a
    This command is issued by the ZB_SEND_DATA_REQUEST command. 6.3.10.2
    AREQ:
    1 Length = 0x02 1 Cmd0 = 0x46 1
    Usage
    1 Handle
    1 Status
    Cmd1 = 0x83
    Handle ¨C 1 byte ¨C Specifies the handle. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.3.11 ZB_RECEIVE_DATA_INDICATION 6.3.11.1 Description
    This callback is called asynchronously by the CC2480 device when it has received a packet from a remote device. 6.3.11.2
    AREQ:
    1 Length = 0x06-5A 1 Cmd0 = 0x46 1 Cmd1 = 0x87 2 Source 2 Command 2 Len 0-84 Data
    Usage
    Source ¨C 2 bytes ¨C Specifies the short address of the peer device that sent the data. Command ¨C 2 bytes ¨C The command ID associated with the data. Len ¨C 2 bytes ¨C Specifies the number of bytes in the Data parameter. Data ¨C Array of bytes ¨C The data sent by the peer device
    6.3.12 ZB_GET_DEVICE_INFO
    CC2480 Interface Specification SWRA175A Page 32 of 57
    CC2480
    6.3.12.1 Description This command retrieves a Device Information Property. 6.3.12.2
    SREQ:
    1 Length = 0x01 1 Cmd0 = 0x26 1 Cmd1 = 0x06 1 Param
    Usage
    Param ¨C 1 byte ¨C The identifier of the device information. It can take one of the following values.
    Parameter 0 1 2 3 4 5 6 7
    Size 1 byte 8 bytes 2 bytes 2 bytes 8 bytes 1 byte 2 bytes 8 bytes Device state Device IEEE address Device short address
    Description
    Short address of the parent device IEEE address of the parent device Channel on which the ZigBee network is operating PAN ID of the ZigBee network Extended PAN Id of the ZigBee network
    SRSP:
    1 Length = 0x09 1 Cmd0 = 0x66 1 Cmd1 = 0x06 1 Param 8 Value
    Param ¨C 1 byte ¨C The identifier of the requested device information. Value ¨C 8 byte ¨C The value of the requested device information. This is always 8bytes in length even though the actual value may be smaller in size.
    6.3.13 ZB_FIND_DEVICE_REQUEST 6.3.13.1 Description
    This command is used to determine the short address for a device in the network. The device initiating a call to zb_FindDeviceRequest and the device being discovered must both be a member of the same network. When the search is complete, the zv_FindDeviceConfirm callback function is called.
    SREQ:
    1 Length = 0x08 1 Cmd0 = 0x26 1 Cmd1 = 0x07 8 SearchKey
    SearchKey ¨C 8 bytes ¨C Specifies the value to search on.
    SRSP:
    1 Length = 0x00 1 Cmd0 = 0x66 1 Cmd1 = 0x07
    6.3.14 ZB_FIND_DEVICE_CONFIRM 6.3.14.1 Description device to return the results from a
    This command is issued by the CC2480 ZB_FIND_DEVICE_REQUEST command.
    CC2480 Interface Specification SWRA175A
    Page 33 of 57
    CC2480
    6.3.14.2
    AREQ:
    1 Length = 0x0B 1 Cmd0 = 0x46 1 Cmd1 = 0x85 1 SearchType = 0x01 2 SearchKey 8 Result
    Usage
    SearchType ¨C 1 byte ¨C The type of search that was performed. SearchKey ¨C 2 bytes ¨C Value that the search was executed on. Result ¨C 8 bytes ¨C The result of the search.
    6.4 6.4.1
    AF interface AF_REGISTER Description
    6.4.1.1
    This command enables the host processor to register an application endpoint description with the CC2480. 6.4.1.2
    SREQ:
    1 Length = 0x09-0x49 1 Cmd0 = 0x24 1 Cmd1 = 0x00 1 EndPoint 2 AppProfId 2 AppDeviceId 1 AppDevVer
    Usage
    1 Unused
    1 AppNumInClusters
    0-32 AppInClusterList
    1 AppNumOutClusters
    0-32 AppOutClusterList
    EndPoint ¨C 1 byte ¨C Specifies the endpoint of the device. AppProfId ¨C 2 bytes ¨C Specifies the profile id of the application. AppDeviceId ¨C 2 bytes ¨C Specifies the device description id for this endpoint. AppDevVer ¨C 1 byte ¨C Specifies the device version number. Unused ¨C 1 byte ¨C Set this field to zero. AppNumInClusters ¨C 1 byte ¨C Specifies the number of Input cluster Ids following in the AppInClusterList AppInClusterList ¨C 0-32 bytes ¨C Specifies the list of Input Cluster Ids. AppNumOutClusters ¨C 1 byte ¨C Specifies the number of Output cluster Ids following in the AppOutClusterList AppOutClusterList ¨C 0-32 bytes ¨C Specifies the list of Output Cluster Ids.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x64 1 Cmd1 = 0x00 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.4.2 6.4.2.1
    AF_DATA_REQUEST Description
    This command will cause the CC2480 device to send an application data packet to a remote device.
    CC2480 Interface Specification SWRA175A
    Page 34 of 57
    CC2480
    6.4.2.2
    SREQ:
    1 Length = 0x0A-0x5E 1 Cmd0 = 0x24 1 Cmd1 = 0x01 2 DstAddr 1 DestEndpoint 1 SrcEndpoint
    Usage
    2 ClusterID
    1 TransID
    1 Options
    1 Radius
    1 Len
    0-128 Data
    DstAddr ¨C 2 bytes ¨C Specifies the destination address of the message DestEndpoint ¨C 1 byte ¨C Specifies the destination endpoint of the message. SrcEndpoint ¨C 1 byte ¨C Specifies the source endpoint of the message. ClusterID ¨C 2 bytes ¨C Specifies the cluster ID. TransID ¨C 1 byte ¨C Specifies the transaction sequence number of the message. Options ¨C 1 byte ¨C Transmit options. Radius ¨C 1 byte ¨C Specifies the number of hops allowed delivering the message; usually using 7. Len ¨C 1 byte ¨C Length of the data. Data ¨C 0-128 bytes ¨C The data.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x64 1 Cmd1 = 0x01 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.4.3 6.4.3.1
    AF_DATA_CONFIRM Description CC2480 device to return the results from a
    This command is issued by the AF_SEND_DATA_REQUEST command. 6.4.3.2
    AREQ:
    1 Length = 0x03 1 Cmd0 = 0x44 1
    Usage
    1 Status
    1 Endpoint
    1 TransID
    Cmd1 = 0x80
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. Endpoint ¨C 1 byte ¨C Endpoint of the device TransId ¨C 1 byte ¨C Specified the transaction sequence number of the message.
    6.4.4 6.4.4.1
    AF_INCOMING_MSG Description
    This command is issued by the CC2480 device when it has received an incoming packet (addressed to one of the registered endpoints) from a remote device. 6.4.4.2
    AREQ:
    1 Length = 0x11-0x65 1 Cmd0 = 0x44 1 Cmd1 = 0x81 2 GroupID 2 ClusterID 2 SrcAddr Page 35 of 57
    Usage
    CC2480 Interface Specification SWRA175A
    CC2480
    1 SrcEndpoint 1 DestEndpoint 1 WasBroadcast 1 LinkQuality 1 SecurityUse 4 Timestamp
    1 TransSeqNumber
    1 Len
    0-128 Data
    GroupID ¨C 2 bytes ¨C Specifies the group ID of the device. ClusterID ¨C 2 bytes ¨C Specifies the cluster ID (only the LSB is used in V1.0 networks.) SrcAddr ¨C 2 bytes ¨C Specifies the ZigBee network address of the source device sending the message. SrcEndpoint ¨C 1 byte ¨C Specifies the source endpoint of the message. DestEndpoint ¨C 1 byte ¨C Specifies the destination endpoint of the message. WasBroadcast ¨C 1 byte ¨C Specifies if the message was a broadcast or not. LinkQuality ¨C 1 byte ¨C Indicates the link quality measured during reception. SecurityUse ¨C 1 byte ¨C Specifies if the security is used or not. TimeStamp ¨C 4 bytes ¨C Specifies the timestamp of the message. TransSeqNumber ¨C 1 byte ¨C Specifies transaction sequence number of the message. Len ¨C 1 byte ¨C Specifies the length of the data. Data ¨C 0-128 bytes ¨C Contains 0 to 128 bytes of data.
    6.5 6.5.1
    ZDO interface ZDO_NWK_ADDR_REQ Description
    6.5.1.1
    This command will cause the CC2480 device to send a ¡°Network Address Request¡± packet to request a remote device¡¯s short address. This message sends a broadcast message looking for a 16 bit address with a known 64 bit IEEE address. The results of this request are returned by CC2480 via a ZDO_NWK_ADDR_RSP command. 6.5.1.2
    SREQ:
    1 Length = 0x0A 1 Cmd0 = 0x25 1 Cmd1 = 0x00 8 IEEEAddress 1 ReqType 1 StartIndex
    Usage
    IEEEAddress ¨C 8 bytes ¨C 64 bit IEEE address of the device. ReqType ¨C 1 byte ¨C Request type:
    Value 0 1 Description Single device response Extended ¨C include associated devices
    StartIndex ¨C 1 byte ¨C Starting index into the list of children. This is used to get more of the list if the list is too large for one message.
    SRSP:
    1 1 1 1
    CC2480 Interface Specification SWRA175A
    Page 36 of 57
    CC2480
    Length = 0x01 Cmd0 = 0x65 Cmd1 = 0x00 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.2 6.5.2.1
    ZDO_NWK_ADDR_RSP Description
    This command is issued by the CC2480 to return the results from a ZDO_NWK_ADDR_REQ. 6.5.2.2
    AREQ:
    1 Length = 0x0D-0x53 1 Cmd0 = 0x45 1 Cmd1 = 0x80 1 Status 8 IEEEAddr 2 NwkAddr
    Usage
    1 StartIndex
    1 NumAssocDev
    0-70 AssocDevList
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. IEEEAddr ¨C 8 bytes ¨C 64 bit IEEE address of source device. NwkAddr ¨C 2 bytes ¨C Specifies the short network address of responding device. StartIndex ¨C 1 byte ¨C Specifies the starting index into the list of associated devices for this report. NumAssocDev ¨C 1 byte ¨C Specifies the number of associated devices AssocDevList ¨C 0-70 bytes ¨CContains the list of network address for associated devices. This list can be a partial list if the entire list doesn¡¯t fit into a packet. If it is a partial list, the starting index is StartIndex.
    6.5.3 6.5.3.1
    ZDO_IEEE_ADDR_REQ Description
    This command will cause the CC2480 device to issue an ¡°IEEE address request¡± packet to request a remote device¡¯s IEEE 64-bit address. The results of this request are returned by CC2480 via a ZDO_IEEE_ADDR_RSP command. 6.5.3.2
    SREQ:
    1 Length = 0x04 1 Cmd0 = 0x25 1 Cmd1 = 0x01 2 ShortAddr 1 ReqType 1 StartIndex
    Usage
    ShortAddr ¨C 2 bytes ¨C Specifies the short address of the device. ReqType ¨C 1 byte ¨C Request type:
    Value 0 1 Description Single device response Extended ¨C include associated devices
    StartIndex ¨C 1 byte ¨C Starting index into the list of children. This is used to get more of the list if the list is too large for one message.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x01 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    CC2480 Interface Specification SWRA175A Page 37 of 57
    CC2480
    6.5.4 6.5.4.1 ZDO_IEEE_ADDR_RSP Description
    This command is issued by the CC2480 to return the results from a ZDO_IEEE_ADDR_REQ. 6.5.4.2
    AREQ:
    1 Length = 0x0D-0x53 1 Cmd0 = 0x45 1 Cmd1 = 0x81 1 Status 8 IEEEAddr 2 NwkAddr
    Usage
    1 StartIndex
    1 NumAssocDev
    0-70 AssocDevList
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. IEEEAddr ¨C 8 bytes ¨C 64 bit IEEE address of source device. NwkAddr ¨C 2 bytes ¨C Specifies the short network address of responding device. StartIndex ¨C 1 byte ¨C Specifies the starting index into the list of associated devices for this report. NumAssocDev ¨C 1 byte ¨C Specifies the number of associated devices AssocDevList ¨C 0-70 bytes ¨CContains the list of network address for associated devices. This list can be a partial list if the entire list doesn¡¯t fit into a packet. If it is a partial list, the starting index is StartIndex.
    6.5.5 6.5.5.1
    ZDO_NODE_DESC_REQ Description
    This command will cause the CC2480 device to issue an ¡°Node descriptor request¡± packet to request a remote device¡¯s node descriptor. The results of this request are returned by CC2480 via a ZDO_NODE_DESC_RSP command. 6.5.5.2
    SREQ:
    1 Length = 0x04 1 Cmd0 = 0x25 1 Cmd1 = 0x02 2 DstAddr 2 NWKAddrOfInterest
    Usage
    DstAddr ¨C 2 bytes ¨C Specifies NWK address of the device generating the inquiry. NWKAddrOfInterest ¨C 2 ¨C Specifies NWK address of the destination device being queried.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x02 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.6 6.5.6.1
    ZDO_NODE_DESC_RSP Description
    This command is issued by the CC2480 to return the results from a ZDO_NODE_DESC_REQ. 6.5.6.2
    AREQ:
    Usage
    CC2480 Interface Specification SWRA175A
    Page 38 of 57
    CC2480
    1 Length = 0x0F 1 Cmd0 = 0x45 1 Cmd1 = 0x82 2 SrcAddr 1 Status 2 NwkAddr
    1 LogicalType/ ComplexDescAvailable/ UserDescAvailable
    1 APSFlags/ FrequencyBand
    1 MACCapabilityFlags
    2 ManufacturerCode
    1 MaxBufferSize
    2 MaxTransferSize
    2 ServerMask
    SrcAddr ¨C 2 bytes ¨C the message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. NWKAddrOfInterest ¨C 2 bytes ¨C Device¡¯s short address of this Node descriptor LogicalType/ ComplexDescriptorAvailable/ UserDescriptorAvailable ¨C 1 byte ¨C defined as follows: LogicalType: Bit 0-2:
    Description ZigBee Coordinator ZigBee Router ZigBee End Device Value 0 1 2
    -
    ComplexDescriptorAvailable ¨C Bit 4 ¨C Indicates if complex descriptor is available for the node
    UserDescriptorAvailable ¨C Bit 5 ¨C Indicates if user descriptor is available for the node APSFlags/ NodeFrequencyBand ¨C 1 byte - APSFlags ¨C Bit 0-4 ¨C Node Flags assigned for APS. For V1.0 all bits are reserved. - NodeFrequencyBand ¨C Bit 5-7 ¨C Identifies node frequency band capabilities Capabilities ¨C byte ¨C Capability flags stored for the MAC ManufacturerCode ¨C 2 bytes ¨C specifies a manufacturer code that is allocated by the ZigBee Alliance, relating to the manufacturer to the device. MaxBufferSize ¨C 1 byte - Indicates size of maximum NPDU. This field is used as a high level indication for management. MaxTransferSize ¨C 2 bytes ¨C Indicates maximum size of Transfer up to 0x7fff (This field is reserved in version 1.0 and shall be set to zero). ServerMask ¨C 2 bytes ¨C Specifies the system server capability. It is defined as follows:
    Bit 0 1 2 3 4 5 6¨C 15
    Assignment Primary Trust Center Backup Trust Center Primary Binding Table Cache Backup Binding Table Cache Primary Discovery Cache Backup Discovery Cache Reserved
    CC2480 Interface Specification SWRA175A
    Page 39 of 57
    CC2480
    6.5.7 6.5.7.1 ZDO_SIMPLE_DESC_REQ Description This command will cause the CC2480 device to issue an ¡°Simple descriptor request¡± packet to request a remote device¡¯s endpoint simple descriptor. The results of this request are returned by CC2480 via a ZDO_SIMPLE_DESC_RSP command. 6.5.7.2
    SREQ:
    1 Length = 0x05 1 Cmd0 = 0x25 1 Cmd1 = 0x04 2 DstAddr 2 NWKAddrOfInterest 1 Endpoint
    Usage
    DstAddr ¨C 2 bytes ¨C Specifies NWK address of the device generating the inquiry. NWKAddrOfInterest ¨C 2 ¨C Specifies NWK address of the destination device being queried. Endpoint ¨C 1 byte ¨C Specifies the application endpoint the data is from.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x04 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.8 6.5.8.1
    ZDO_SIMPLE_DESC_RSP Description by the CC2480 device to return the results from a
    This command is issued ZDO_SIMPLE_DESC_REQ. 6.5.8.2
    AREQ:
    1 Length = 0x06-4E 1 Cmd0 = 0x45
    Usage
    1 Cmd1 = 0x84
    2 SrcAddr
    1 Status
    2 NwkAddr
    1 Len
    1 Endpoint
    2 ProfileID
    2 DeviceID
    1 DeviceVersion
    1 NumInClusters
    0-32 InClusterList
    1 NumOutClusters
    0-32 OutClusterList
    SrcAddr ¨C 2 bytes ¨C Specifies the message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. NWKAddr ¨C 2 bytes ¨C Specifies Device¡¯s short address that this response describes. Len ¨C 1 byte ¨C Specifies the length of the simple descriptor Endpoint ¨C 1 byte ¨C ProfileId ¨C 2 bytes ¨C The profile ID for this endpoint. DeviceID ¨C 2 bytes ¨C The Device Description ID for this endpoint. DeviceVersion ¨C 1 byte ¨C Defined as the following format
    Description
    Value
    CC2480 Interface Specification SWRA175A
    Page 40 of 57
    CC2480
    Version 1.00 Reserved 0 0x1 ¨C 0xf
    NumInClusters ¨C 1 byte ¨C The number of input clusters in the InClusterList. InClusterList ¨C 0-32 bytes ¨C List of input cluster IDs supported. NumOutClusters ¨C 1 byte ¨C The number of output clusters in the OutClusterList. OutClusterList ¨C 0-32 bytes ¨C List of output cluster IDs supported.
    6.5.9 6.5.9.1
    ZDO_ACTIVE_EP_REQ Description
    This command will cause the CC2480 device to issue an ¡°Active endpoint request¡± packet to request the list of active endpoints on a remote device. The results of this request are returned by CC2480 via a ZDO_ACTIVE_EP_RSP command. 6.5.9.2
    SREQ:
    1 Length = 0x04 1 Cmd0 = 0x25 1 Cmd1 = 0x05 2 DstAddr 2 NWKAddrOfInterest
    Usage
    DstAddr ¨C 2 bytes ¨C Specifies NWK address of the device generating the inquiry. NWKAddrOfInterest ¨C 2 ¨C Specifies NWK address of the destination device being queried.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x05 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.10 ZDO_ACTIVE_EP_RSP 6.5.10.1 Description by the CC2480 device to return the results from a
    This command is issued ZDO_ACTIVE_EP_REQ. 6.5.10.2
    AREQ:
    1 Length = 0x06-0x53 1
    Usage
    1 Cmd1 = 0x85
    2 SrcAddr
    1 Status
    2 NwkAddr
    1 ActiveEPCount
    Cmd0 = 0x45
    0-77 ActiveEPList
    SrcAddr ¨C 2 bytes ¨C the message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. NWKAddr ¨C 2 bytes ¨C Device¡¯s short address that this response describes. ActiveEPCount ¨C 1 byte ¨C Number of active endpoint in the list ActiveEPList ¨C 0-77 bytes ¨C Array of active endpoints on this device.
    CC2480 Interface Specification SWRA175A
    Page 41 of 57
    CC2480
    6.5.11 ZDO_MATCH_DESC_REQ 6.5.11.1 Description This command will cause the CC2480 device to issue an ¡°Match descriptor request¡± packet to find remote device¡¯s that match a given list of clusters. The results of this request are returned by CC2480 via a ZDO_MATCH_DESC_RSP command. 6.5.11.2
    SREQ:
    1 Length = 0x08-0x48 1 Cmd0 = 0x25 1 Cmd1 = 0x06 2 DstAddr 2 NwkAddrOfInterest 2 ProfileID
    Usage
    1 NumInClusters
    0-32 InClusterList
    1 NumOutClusters
    0-32 OutClusterList
    DstAddr ¨C 2 bytes ¨C Specifies NWK address of the device generating the inquiry. NWKAddrOfInterest ¨C 2 bytes ¨C Specifies NWK address of the destination device being queried. ProfileID ¨C 2 bytes ¨C Specifies NumInClusters ¨C 1 byte ¨C Specifies the number of IDs in the InClusterList. InClusterList ¨C 0-32 bytes ¨C Contains the input cluster IDs. NumOutClusters ¨C 1 byte ¨C Specifies the number of IDs in the OutClusterList. OutClusterList ¨C 0-32 bytes ¨C Contains the output cluster IDs.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x06 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.12 ZDO_MATCH_DESC_RSP 6.5.12.1 Description by the CC2480 device to return the results from a
    This command is issued ZDO_MATCH_DESC_REQ. 6.5.12.2
    AREQ:
    1 Length = 0x06-0x53 1
    Usage
    1 Cmd1 = 0x86
    2 SrcAddr
    1 Status
    2 NwkAddr
    1 MatchLength
    Cmd0 = 0x45
    0-77 MatchList
    SrcAddr ¨C 16 bit ¨C the message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. NWKAddr ¨C 2 bytes ¨C Device¡¯s short address that this response describes. MatchCount ¨C 1 byte ¨C Number of descriptors in the list. MatchList ¨C 0-77 bytes ¨C Array of match descriptor on this device.
    CC2480 Interface Specification SWRA175A
    Page 42 of 57
    CC2480
    6.5.13 ZDO_MATCH_DESC_RSP_SENT 6.5.13.1 Description This command is issued by the CC2480 device if it has responded to a ¡°Match descriptor request¡± packet from a remote device. 6.5.13.2
    AREQ:
    1 Length = 0x04-0x24 1 Cmd0 = 0x45 1 Cmd1 = 0xC2 2 NwkAddr
    Usage
    1 NumInClusters
    0-32 InClusterList
    1 NumOutClusters
    0-32 OutClusterList
    NwkAddr ¨C 2 bytes ¨C Specifies the device¡¯s short address NumInClusters ¨C 1 byte ¨C The number of input clusters in the InClusterList. InClusterList ¨C 0-32 bytes ¨C List of input cluster IDs supported. NumOutClusters ¨C 1 byte ¨C The number of output clusters in the OutClusterList. OutClusterList ¨C 0-32 bytes ¨C List of output cluster IDs supported.
    6.5.14 ZDO_USER_DESC_REQ 6.5.14.1 Description
    This command will cause the CC2480 device to issue an ¡°User descriptor request¡± packet to request a remote device¡¯s user descriptor. The results of this request are returned by CC2480 via a ZDO_USER_DESC_RSP command. 6.5.14.2
    SREQ:
    1 Length = 0x04 1 Cmd0 = 0x25 1 Cmd1 = 0x08 2 DstAddr 2 NWKAddrOfInterest
    Usage
    DstAddr ¨C 2 bytes ¨C Specifies NWK address of the device generating the inquiry. NWKAddrOfInterest ¨C 2 bytes ¨C Specifies NWK address of the destination device being queried.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x08 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.15 ZDO_USER_DESC_RSP 6.5.15.1 Description by the CC2480 device to return the results from a
    This command is issued ZDO_USER_DESC_REQ. 6.5.15.2
    AREQ:
    1 Length 0x16 = 0x061 Cmd0 = 0x45
    Usage
    1 Cmd1 = 0x88
    2 SrcAddr
    1 Status
    2 NwkAddr
    1 Len
    0-77 UserDescriptor
    CC2480 Interface Specification SWRA175A
    Page 43 of 57
    CC2480
    SrcAddr ¨C 2 bytes ¨C the message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. NWKAddr ¨C 2 bytes ¨C Device¡¯s short address that this response describes. Len ¨C 1 byte ¨C Length, in bytes, of the user descriptor UserDescriptor ¨C 0-77 bytes ¨C User descriptor array (can be up to 77 bytes).
    6.5.16 ZDO_USER_DESC_SET 6.5.16.1 Description
    This command will cause the CC2480 device to issue an ¡°User descriptor set¡± packet to set a remote device¡¯s user descriptor. The results of this request are returned by CC2480 via a ZDO_USER_DESC_CONF command. 6.5.16.2
    SREQ:
    1 Length = 0x05-0x15 1 Cmd0 = 0x25 1 Cmd1 = 0x0B 2 DstAddr 2 NWKAddrOfInterest 1 Len 0-16 UserDescriptor
    Usage
    DstAddr ¨C 2 bytes ¨C Specifies network address of the device generating the set request. NWKAddrOfInterest ¨C 2 bytes ¨C Specifies NWK address of the device targeted for the set request. Len ¨C 1 byte ¨C Specifies the length of the user descriptor. UserDescriptor ¨C 0-16 bytes ¨C User descriptor array (can be up to 16 bytes).
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x0B 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.17 ZDO_USER_DESC_CONF 6.5.17.1 Description by the CC2480 device to return the results from a
    This command is issued ZDO_USER_DESC_SET. 6.5.17.2
    AREQ:
    1 Length = 0x05 1 Cmd0 = 0x45
    Usage
    1 Cmd1 = 0x89
    2 SrcAddr
    1 Status
    2 NwkAddr
    SrcAddr ¨C 2 bytes ¨C The message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. NWKAddr ¨C 2 bytes ¨C Device¡¯s short address that this response describes.
    6.5.18 ZDO_END_DEVICE_ANNCE 6.5.18.1 Description
    This command will cause the CC2480 device to issue an ¡°End device announce¡± broadcast packet to the network. This is typically used by an end-device to announce itself to the network. 6.5.18.2
    SREQ:
    CC2480 Interface Specification SWRA175A Page 44 of 57
    Usage
    CC2480
    1 Length = 0x0B 1 Cmd0 = 0x25 1 Cmd1 = 0x0A 2 NwkAddr 8 IEEEAddr 1 Capabilites
    NwkAddr ¨C 2 bytes ¨C Specifies network address of the device generating the request. IEEEAddr ¨C 8 bytes ¨C Specifies the 64 bit IEEE Address of the device being announced Capabilites ¨C 1 byte ¨C Specifies MAC capabilities
    Bit 0 1
    Description Alternate PAN Coordinator Device type: 1 ¨C ZigBee Router 0 ¨C End Device Power Source: 1 ¨C Mains powered Receiver on when idle Reserved Security capability Reserved
    2 3 4-5 6 7
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x0A 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.19 ZDO_END_DEVICE_ANNCE_IND 6.5.19.1 Description
    This command is issued by the CC2480 device when it has received an ¡°End device announce¡± packet from a remote device. 6.5.19.2
    AREQ:
    1 Length = 0x0D 1 Cmd0 = 0x45 1 Cmd1 = 0xC1 2 SrcAddr 2 NwkAddr 8 IEEEAddr 1 Capabilites
    Usage
    SrcAddr ¨C 2 bytes ¨C Source address of the message. NwkAddr ¨C 2 bytes ¨C Specifies the device¡¯s short address. IEEEAddr ¨C 8 bytes ¨C Specifies the 64 bit IEEE address of source device. Capabilites ¨C 1 byte ¨C Specifies the MAC capabilities of the device.
    Bit
    0 1
    Description
    Alternate PAN Coordinator Device type: 1 ¨C ZigBee Router 0 ¨C End Device Power Source: 1 ¨C Mains powered Receiver on when idle
    2 3
    CC2480 Interface Specification SWRA175A
    Page 45 of 57
    CC2480
    4-5 6 7 Reserved Security capability Reserved
    6.5.20 ZDO_END_DEVICE_BIND_REQ 6.5.20.1 Description
    This command is generated to request an End Device Bind with the destination device. 6.5.20.2
    SREQ:
    1 Length = 0x09-0x49 1 Cmd0 = 0x25 1 Cmd1 = 0x20 2 DstAddr 2 LocalCoordinator 1 Endpoint
    Usage
    2 ProfileID
    1 NumInClusters
    0-32 InClusterList
    1 NumOutClusters
    0-32 OutClusterList
    DstAddr ¨C 2 bytes ¨C Specifies NWK address of the device generating the inquiry. LocalCoordinator ¨C 2 bytes ¨C Specifies local coordinator¡¯s short address. In the case of source binding, it¡¯s the short address of the source address Endpoint ¨C 1 byte ¨C Device¡¯s endpoint. ProfileID ¨C 2 bytes ¨C Specifies the profile ID of the device. NumInClusters ¨C 1 byte ¨C Specifies the number of IDs in the InClusterList. InClusterList ¨C 0-32 bytes ¨C Contains the input cluster IDs. NumOutClusters ¨C 1 byte ¨C Specifies the number of IDs in the OutClusterList. OutClusterList ¨C 0-32 bytes ¨C Contains the output cluster IDs.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x20 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.21 ZDO_END_DEVICE_BIND_RSP 6.5.21.1 Description
    This callback message is in response to the ZDO End Device Bind Request 6.5.21.2
    AREQ:
    1 Length = 0x03 1 Cmd0 = 0x45 1 Cmd1 = 0xA0 2 SrcAddr 1 Status
    Usage
    SrcAddr ¨C 2 bytes ¨C The message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.22 ZDO_BIND_REQ 6.5.22.1 Description
    This command is generated to request a Bind.
    CC2480 Interface Specification SWRA175A Page 46 of 57
    CC2480
    6.5.22.2
    SREQ:
    1 Length = 0x10-0x17 1 Cmd0 = 0x25 1 Cmd1 = 0x21 2 DstAddr 8 SrcAddress 1 SrcEndpoint 2 ClusterID
    Usage
    1 DstAddrMode
    2/8 DstAddress
    0/1 DstEndpoint
    DstAddr ¨C 2 bytes ¨C Specifies the destination address of the device generating the bind request SrcAddress ¨C 8 bytes ¨C 64 bit Binding source IEEE address SrcEndpoint ¨C 1 byte ¨C Specifies the binding source endpoint. ClusterID ¨C 2 byte2 ¨C Specifies the cluster ID to match in messages. DstAddrMode ¨C 1 byte ¨C Specifies destination address mode: 01 for Group address; 03 for Extended address. DstAddress ¨C 8 bytes / 2bytes ¨C Binding destination IEEE address. Not to be confused with DstAddr. DstEndpoint¨C 1 byte / 0 byte ¨C Specifies the binding destination endpoint. It is used only when DstAddrMode is 64 bits extended address
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x21 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.23 ZDO_BIND_RSP 6.5.23.1 Description
    This callback message is in response to the ZDO Bind Request. 6.5.23.2
    AREQ:
    1 Length = 0x03 1 Cmd0 = 0x45 1 Cmd1 = 0xA1 2 SrcAddr 1 Status
    Usage
    SrcAddr ¨C 2 bytes ¨C The message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.24 ZDO_UNBIND_REQ 6.5.24.1 Description
    This command is generated to request an UnBind 6.5.24.2
    SREQ:
    1 Length = 0x10-0x17 1 Cmd0 = 0x25 1 Cmd1 = 0x22 2 DstAddr 8 SrcAddress 1 SrcEndpoint 2 ClusterID
    Usage
    1
    2/8
    0/1
    CC2480 Interface Specification SWRA175A
    Page 47 of 57
    CC2480
    DstAddrMode DstAddress DstEndpoint
    DstAddr ¨C 16 bits ¨C Specifies destination address of the device generating the bind request. SrcAddress ¨C 8 bytes ¨C Specifies 64 bit Binding source IEEE address SrcEndpoint ¨C 1 byte ¨C Specifies the binding source endpoint. ClusterID ¨C 2 byte ¨C Specifies cluster ID to match in messages. DstAddrMode ¨C 1 byte ¨C Specifies destination address mode: 01 for Group address; 03 for Extended address. DstAddress ¨C 8 bytes ¨C Specifies 64 bit Binding destination IEEE address. Not to be confused with DstAddr. DstEndpoint ¨C 1 byte ¨C Specifies the binding destination endpoint.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x22 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.25 ZDO_UNBIND_RSP 6.5.25.1 Description
    This callback message is in response to the ZDO Unbind Request. 6.5.25.2
    AREQ:
    1 Length = 0x03 1 Cmd0 = 0x45 1 Cmd1 = 0xA2 2 SrcAddr 1 Status
    Usage
    SrcAddr ¨C 2 bytes ¨C The message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.26 ZDO_MGMT_LQI_REQ 6.5.26.1 Description
    This command is generated to request the destination device to perform a LQI query of other devices in the network. 6.5.26.2
    SREQ:
    1 Length = 0x03 1 Cmd0 = 0x25 1 Cmd1 = 0x31 2 DstAddr 1 StartIndex
    Usage
    DstAddr ¨C 2 bytes ¨C Specifies the network address the device generating the query. StartIndex ¨C 1 byte ¨C Specifies where to start in the response array list. The result may contain more entries than can be reported, so this field allows the user to retrieve the responses anywhere in the array list.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x31 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    CC2480 Interface Specification SWRA175A
    Page 48 of 57
    CC2480
    6.5.27 ZDO_MGMT_LQI_RSP 6.5.27.1 Description This callback message is in response to the ZDO Management LQI Request 6.5.27.2
    AREQ:
    1 Length 0x48 = 0x061 Cmd0 = 0x45 1 Cmd1 = 0xB1 2 SrcAddr 1 Status 1 NeighborTableEntries 1 StartIndex
    Usage
    1 NeighborTableListCount
    0-66 NeighborTableList Records
    SrcAddr ¨C 2 bytes ¨C Source address of the message. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values. NeighborTableEntries ¨C 1 byte ¨C Total number of entries available in the device. StartIndex ¨C 1 byte ¨C Where in the total number of entries this response starts. NeighborTableListCount ¨C 1 byte ¨C Number of entries in this response. NeighborTableListRecords ¨C 0-66 bytes ¨C an array of NeighborLqiList items. NeighborLQICount contains the number of items in this table.
    Name ExtendedPanID
    Size 8 bytes
    Description PAN ID of the neighbor device
    ExtendedAddress NetworkAddress DeviceType/ RxOnWhenIdle/ Relationship
    8 bytes 2 bytes 1 byte
    Network extended address Device short address DeviceType: bits 1-0 RxOnWhenIdle: bits 3-2 Relationship: bits 6-4
    PermitJoining Depth LQI
    1 byte 1 byte 1 byte
    PermitJoining: bits 1-0
    6.5.28 ZDO_MGMT_LEAVE_REQ 6.5.28.1 Description
    This command is generated to request the destination device to perform a LQI query of other devices in the network. 6.5.28.2
    SREQ:
    1 Length = 0x03 1 Cmd0 = 0x25 1 Cmd1 = 0x34 2 DstAddr 8 DeviceAddress 1 Optio ns
    Usage
    DstAddr ¨C 2 bytes ¨C Specifies the network address the device generating the query.
    CC2480 Interface Specification SWRA175A Page 49 of 57
    CC2480
    StartIndex ¨C 1 byte ¨C Specifies where to start in the response array list. The result may contain more entries than can be reported, so this field allows the user to retrieve the responses anywhere in the array list.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x34 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.29 ZDO_MGMT_LEAVE_RSP 6.5.29.1 Description
    This callback message is in response to the ZDO Management Leave Request. 6.5.29.2
    AREQ:
    1 Length = 0x03 1 Cmd0 = 0x45 1 Cmd1 = 0xB4 2 SrcAddr 1 Status
    Usage
    SrcAddr ¨C 2 bytes ¨C The message¡¯s source network address. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.30 ZDO_MGMT_PERMIT_JOIN_REQ 6.5.30.1 Description
    This command is generated to set the Permit Join for the destination device 6.5.30.2
    SREQ:
    1 Length = 0x04 1 Cmd0 = 0x25 1 Cmd1 = 0x36 2 DstAddr 1 Duration 1 TCSignificance
    Usage
    DstAddr ¨C 2 bytes ¨C Specifies the network address of the destination device whose Permit Join information is to be modified. Duration ¨C 1 byte ¨C Specifies the duration to permit joining. 0 = join disabled. 0xff = join enabled. 0x01-0xfe = number of seconds to permit joining. TC Significance ¨C 1 byte - Trust Center Significance.
    SRSP:
    1 Length = 0x01 1 Cmd0 = 0x65 1 Cmd1 = 0x36 1 Status
    Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.31 ZDO_MGMT_PERMIT_JOIN_RSP 6.5.31.1 Description
    This callback message is in response to the ZDO Management Permit Join Request 6.5.31.2
    AREQ:
    1 Length = 0x03 1 Cmd0 = 0x45 1 Cmd1 = 0xB6 2 SrcAddr 1 Status Page 50 of 57
    Usage
    CC2480 Interface Specification SWRA175A
    CC2480
    SrcAddr ¨C 2 bytes ¨C Source address of the message. Status ¨C 1 byte ¨C See 6.6 for a listing of the status values.
    6.5.32 ZDO_STATE_CHANGE_IND 6.5.32.1 Description
    This callback message indicates the ZDO state change. 6.5.32.2
    AREQ:
    1 Length = 0x01 1 Cmd0 = 0x45 1 Cmd1 = 0xC0 1 State
    Usage
    State ¨C 1 byte ¨C Specifies the changed ZDO state.
    6.6 Return Status Values The status parameter that is returned from the CC2480 device may take one of the following values.
    Name ZSuccess ZFailure ZInvalidParameter ZMemError ZBufferFull ZUnsupportedMode ZUnsupportedMode ZMacMemError ZSecNoKey ZSecMaxFrmCount zdoInvalidRequestType zdoInvalidEndpoint zdoUnsupported zdoTimeout zdoNoMatch zdoTableFull zdoNoBindEntry ZApsFail ZApsTableFull ZApsIllegalRequest ZApsInvalidBinding ZApsUnsupportedAttrib ZApsNotSupported ZApsNoAck ZApsDuplicateEntry
    Value 0x00 0x01 0x02 0x10 0x11 0x12 0x12 0x13 0xa1 0xa3 0x80 0x82 0x84 0x85 0x86 0x87 0x88 0xb1 0xb2 0xb3 0xb4 0xb5 0xb6 0xb7 0xb8
    CC2480 Interface Specification SWRA175A
    Page 51 of 57
    CC2480
    ZApsNoBoundDevice zdoInvalidEndpoint zdoUnsupported zdoTimeout zdoNoMatch zdoTableFull zdoNoBindEntry ZApsFail ZApsTableFull ZApsIllegalRequest ZApsInvalidBinding ZApsUnsupportedAttrib ZApsNotSupported ZApsNoAck ZApsDuplicateEntry ZApsNoBoundDevice ZNwkInvalidParam ZNwkInvalidRequest ZNwkNotPermitted ZNwkStartupFailure ZNwkTableFull ZNwkUnknownDevice ZNwkUnsupportedAttribute ZNwkNoNetworks ZNwkLeaveUnconfirmed ZNwkNoAck ZNwkNoRoute 0xb9 0x82 0x84 0x85 0x86 0x87 0x88 0xb1 0xb2 0xb3 0xb4 0xb5 0xb6 0xb7 0xb8 0xb9 0xc1 0xc2 0xc3 0xc4 0xc7 0xc8 0xc9 0xca 0xcb 0xcc 0xcd
    CC2480 Interface Specification SWRA175A
    Page 52 of 57
    CC2480
    7
    7.1
    Miscellaneous
    CC2480 power-up procedure
    The recommended power-up procedure is as follows: 1. Host processor and CC2480 power up. 2. Host processor sets CC2480 RESET_N pin low, holding CC2480 in reset. 3. The host processor sets the optional CC2480 CFG0 and CFG1 pins ( if these pins are controlled by the host processor ). 4. The host processor initializes its UART or SPI interface. 5. The host processor sets CC2480 RESET_N pin high and CC2480 starts operation. 6. CC2480 sends a SYS_RESET_IND message to the host processor. When SPI transport is used CC2480 will set SRDY low to indicate a message is available and the host processor should retrieve the message. 7. The host processor receives the SYS_RESET_IND message. If the CC2480 device was configured as an end-device (and using SPI transport), it will automatically enter low power state after the host processor retrieves the SYS_RESET_IND command from the CC2480. CC2480 can also be reset when the host processor sends a SYS_RESET_REQ message. However, resetting CC2480 with the RESET_N pin is recommended because it is faster and more reliable. 7.2 CC2480 configuration procedure
    After the CC2480 power-up, the host processor should configure it according to its application needs. The exact configuration sequence can vary depending on the cause of the reset and which parameters need to be configured on the CC2480. Some of the common scenarios are described below. 7.2.1 Scenario 1 The typical configuration sequence when the host processor powers-up for the first time Reset CC2480 device during host processor power-up sequence Receive SYS_RESET_IND Configure device type and reset CC2480 Receive SYS_RESET_IND again Configure other parameters if necessary Set ZCD_NV_STARTUP_OPTION to 0x02
    7.2.2 Scenario 2 If CC2480 device has accidentally reset and the host wishes for it to continue operating as before in the same network ( this could also be because the host has reset accidentally and, in its startup sequence, caused CC2480 to reset ) Receive SYS_RESET_IND Set ZCD_NV_STARTUP_OPTION to 0x00
    7.2.3 Scenario 3 If a CC2480 device is already operating in a network and the host wishes to clear its state and, possibly reconfigure some parameters, and go into a new network Configure device type ( if necessary ) and reset CC2480
    CC2480 Interface Specification SWRA175A Page 53 of 57
    CC2480
    Receive SYS_RESET_IND Configure other parameters if necessary Set ZCD_NV_STARTUP_OPTION to 0x02
    7.2.4 Scenario 4 The host wishes to clear CC2480 of all configuration and restore them to default values Set ZCD_NV_STARTUP_OPTION to 0x01 and reset CC2480 Receive SYS_RESET_IND
    Note that the host processor must be aware of the state of the CC2480 device and its configuration so that it can operate properly. It is recommended that this state parameter is itself stored in non volatile memory so that a host processor reset will not cause it to lose information on the CC2480 state. 7.3 CC2480 ZigBee stack startup procedure
    After configuration of the CC2480 device, the host processor should register its application and then start the operation of the ZigBee stack. The host processor can register its application through either the ZB_APP_REGISTER_REQUEST or the AF_REGISTER commands. The former is used to register the application to use the simple api interface. The latter is used if the application would use the full AF and ZDO interface. After registering the application, the host processor issues the ZB_START_REQUEST command to start the ZigBee stack on the CC2480 device. Once the ZigBee stack has successfully started (indicated by a successful ZB_START_CONFIRM), the CC2480 is part of the ZigBee network. The host processor may now issue commands to perform discovery, binding and sending and receiving of packets.
    CC2480 Interface Specification SWRA175A
    Page 54 of 57
    CC2480
    8
    8.1
    General Information
    Document History Table 1: Document History
    Revision 1.0 Date 2008-04-03 Description/Changes First Version of documents for release
    9
    Address Information
    Texas Instruments Norway AS Gaustadall¨¦en 21 N-0349 Oslo NORWAY Tel: +47 22 95 85 44 Fax: +47 22 95 85 46 Web site: http://www.ti.com/lpw
    10 TI Worldwide Technical Support Internet
    TI Semiconductor Product Information Center Home Page: TI Semiconductor KnowledgeBase Home Page: support.ti.com support.ti.com/sc/knowledgebase
    Product Information Centers
    Americas Phone: Fax: Internet/Email: +1(972) 644-5580 +1(972) 927-6377 support.ti.com/sc/pic/americas.htm
    Europe, Middle East and Africa Phone: Belgium (English) Finland (English) France Germany Israel (English) Italy Netherlands (English) Russia Spain Sweden (English) United Kingdom Fax: Internet: +32 (0) 27 45 54 32 +358 (0) 9 25173948 +33 (0) 1 30 70 11 64 +49 (0) 8161 80 33 11 180 949 0107 800 79 11 37 +31 (0) 546 87 95 45 +7 (0) 95 363 4824 +34 902 35 40 28 +46 (0) 8587 555 22 +44 (0) 1604 66 33 99 +49 (0) 8161 80 2045 support.ti.com/sc/pic/euro.htm
    CC2480 Interface Specification SWRA175A
    Page 55 of 57
    CC2480
    Japan Fax Internet/Email International Domestic International Domestic +81-3-3344-5317 0120-81-0036 support.ti.com/sc/pic/japan.htm www.tij.co.jp/pic
    Asia Phone International Domestic Australia China Hong Kon India Indonesia Korea Malaysia New Zealand Philippines Singapore Taiwan Thailand +886-2-23786800 Toll-Free Number 1-800-999-084 800-820-8682 800-96-5941 +91-80-51381665 (Toll) 001-803-8861-1006 080-551-2804 1-800-80-3973 0800-446-934 1-800-765-7404 800-886-1028 0800-006800 001-800-886-0010 +886-2-2378-6808 tiasia@ti.com or ti-china@ti.com support.ti.com/sc/pic/asia.htm
    Fax Email Internet
    CC2480 Interface Specification SWRA175A
    Page 56 of 57
    CC2480
    IMPORTANT NOTICE
    Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI¡¯s terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI¡¯s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Information of third parties may be subject to additional restrictions. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. TI products are not authorized for use in safety-critical applications (such as life support) where a failure of the TI product would reasonably be expected to cause severe personal injury or death, unless officers of the parties have executed an agreement specifically governing such use. Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications, and acknowledge and agree that they are solely responsible for all legal, regulatory and safety-related requirements concerning their products and any use of TI products in such safety-critical applications, notwithstanding any applications-related information or support that may be provided by TI. Further, Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products in such safetycritical applications. TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products are specifically designated by TI as military-grade or "enhanced plastic." Only products designated by TI as military-grade meet military specifications. Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is solely at the Buyer's risk, and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use. TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are designated by TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they use any non-designated products in automotive applications, TI will not be responsible for any failure to meet such requirements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions: Products Amplifiers Data Converters DSP Interface Logic Power Mgmt Microcontrollers amplifier.ti.com dataconverter.ti.com dsp.ti.com interface.ti.com logic.ti.com power.ti.com microcontroller.ti.com Applications Audio Automotive Broadband Digital Control Military Optical Networking Security Telephony Video & Imaging Wireless www.ti.com/audio www.ti.com/automotive www.ti.com/broadband www.ti.com/digitalcontrol www.ti.com/military www.ti.com/opticalnetwork www.ti.com/security www.ti.com/telephony www.ti.com/video www.ti.com/wireless
    Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright 2008, Texas Instruments Incorporated
    CC2480 Interface Specification SWRA175A
    Page 57 of 57
  • ÏÂÔصØÖ· (ÍƼöʹÓÃѸÀ×ÏÂÔصØÖ·£¬Ëٶȿ죬֧³Ö¶ÏµãÐø´«)
  • Ãâ·ÑÏÂÔØ PDF¸ñʽÏÂÔØ
  • Äú¿ÉÄܸÐÐËȤµÄ
  • finaldata  datasheet  applicationdata  talkingdata  anedata  alldatasheet  programdata  dataeye  bigdata