116 lines
3.6 KiB
Plaintext
116 lines
3.6 KiB
Plaintext
|
MAC capability
|
|||
|
Packet Type
|
|||
|
Optional additional error information
|
|||
|
Log level
|
|||
|
Power source
|
|||
|
Battery
|
|||
|
AC Power
|
|||
|
MIC
|
|||
|
Event status
|
|||
|
Server mask
|
|||
|
Descriptor capability
|
|||
|
Mac flags
|
|||
|
|
|||
|
|
|||
|
|
|||
|
startStatus
|
|||
|
restartStatus
|
|||
|
// *****************************************************************************
|
|||
|
* 0 - STARTUP
|
|||
|
* 2 - NFN_START
|
|||
|
* 6 - RUNNING
|
|||
|
* The node is not yet provisioned.
|
|||
|
// ******************************************************************************
|
|||
|
|
|||
|
networkJoinedStatus
|
|||
|
// ****************************************************************************
|
|||
|
// Status:
|
|||
|
// 0 = Joined existing network
|
|||
|
// 1 = Formed new network
|
|||
|
// 128 – 244 = Failed (ZigBee event codes)
|
|||
|
// *******************************************************************************
|
|||
|
|
|||
|
permitJoinStatus
|
|||
|
// ****************************************************************************
|
|||
|
// 0 - Off
|
|||
|
// 1 - On
|
|||
|
// *******************************************************************************
|
|||
|
|
|||
|
Bit fields (8042, 8043, 8044)
|
|||
|
/*
|
|||
|
// ****************************************************************************
|
|||
|
// Bitfields:
|
|||
|
// Logical type (bits 0-2
|
|||
|
// 0 - Coordinator
|
|||
|
// 1 - Router
|
|||
|
// 2 - End Device)
|
|||
|
// Complex descriptor available (bit 3)
|
|||
|
// User descriptor available (bit 4)
|
|||
|
// Reserved (bit 5-7)
|
|||
|
// APS flags (bit 8-10 – currently 0)
|
|||
|
// Frequency band(11-15 set to 3 (2.4Ghz))
|
|||
|
// Server mask bits:
|
|||
|
// 0 - Primary trust center
|
|||
|
// 1 - Back up trust center
|
|||
|
// 2 - Primary binding cache
|
|||
|
// 3 - Backup binding cache
|
|||
|
// 4 - Primary discovery cache
|
|||
|
// 5 - Backup discovery cache
|
|||
|
// 6 - Network manager
|
|||
|
// 7 to15 - Reserved
|
|||
|
// MAC capability
|
|||
|
// Bit 0 - Alternate PAN Coordinator
|
|||
|
// Bit 1 - Device Type
|
|||
|
// Bit 2 - Power source
|
|||
|
// Bit 3 - Receiver On when Idle
|
|||
|
// Bit 4-5 - Reserved
|
|||
|
// Bit 6 - Security capability
|
|||
|
// Bit 7 - Allocate Address
|
|||
|
// Descriptor capability:
|
|||
|
// 0 - extended Active endpoint list available
|
|||
|
// 1 - Extended simple descriptor list available
|
|||
|
// 2 to 7 - Reserved
|
|||
|
// *******************************************************************************
|
|||
|
|
|||
|
8043
|
|||
|
// ****************************************************************************
|
|||
|
// Bit fields:
|
|||
|
// Device version: 4 bits (bits 0-4)
|
|||
|
// Reserved: 4 bits (bits4-7)
|
|||
|
// *******************************************************************************
|
|||
|
|
|||
|
8044
|
|||
|
// ****************************************************************************
|
|||
|
// Bit fields
|
|||
|
// 0 to 3: current power mode
|
|||
|
// 4 to 7: available power source
|
|||
|
// 8 to 11: current power source
|
|||
|
// 12 to 15: current power source level
|
|||
|
// *******************************************************************************
|
|||
|
|
|||
|
804E
|
|||
|
// ****************************************************************************
|
|||
|
// Note: If Neighbour Table list count is 0, there are no elements in the list.
|
|||
|
// NWK Address : uint16_t
|
|||
|
// Extended PAN ID : uint64_t
|
|||
|
// IEEE Address : uint64_t
|
|||
|
// Depth : uint_t
|
|||
|
// Link Quality : uint8_t
|
|||
|
// Bit map of attributes Described below: uint8_t
|
|||
|
// bit 0-1 Device Type
|
|||
|
// (0-Coordinator 1-Router 2-End Device)
|
|||
|
// bit 2-3 Permit Join status
|
|||
|
// (1- On 0-Off)
|
|||
|
// bit 4-5 Relationship
|
|||
|
// (0-Parent 1-Child 2-Sibling)
|
|||
|
// bit 6-7 Rx On When Idle status
|
|||
|
// (1-On 0-Off)
|
|||
|
// *******************************************************************************
|
|||
|
|
|||
|
8140
|
|||
|
// ****************************************************************************
|
|||
|
// Complete:
|
|||
|
// 0 – more attributes to follow
|
|||
|
// 1 – this was the last attribute
|
|||
|
//*******************************************************************************
|