Zigbee Event Logger APIs#
This file describes functionality for the Zigbee Event Logger feature. This feature is used to record salient events in the stack and application layer. The system event data is stored in a buffer, with hooks for the application to print and decode the logged data.
See zigbee-event-logger-gen.h for source code.
Enumerations#
A list of identifiers for system events.
A list of facilities for system events, identifying which layer they occurred in.
Functions#
Record an event indicating that the device has booted.
Record an event indicating that a network was successfully joined.
Record an event indicating that a trust center rejoin was attempted.
Record an event indicating that a secure rejoin was attempted.
Record an event indicating that a device has left-without-rejoin.
Record an event indicating that a device has left-with-rejoin.
Record an event indicating that an attempt was made to update the trust center link key.
Record an event indicating that the network key sequence number has changed.
Record an event indicating that the local device has reset.
Record an event indicating that the network's channel has changed.
Record an event indicating that the local device's parent has changed.
Record an event indicating that the duty cycle has changed.
Record an event indicating that a child device has joined the local device.
Record an event indicating that a child device has been removed from the local device.
Record an event indicating that a child device has been timed out by the local device.
Record an event indicating that the stack status has changed.
Record an event indicating that the clock time has been synchronized.
Record an event indicating that a device has attempted to join or rejoin the network.
Macros#
The version of this feature.
The length of the Boot Event event data.
The length of the Join Network event data.
The length of the Trust Center Rejoin event data.
The length of the Secure Rejoin event data.
The length of the Leave Without Rejoin event data.
The length of the Leave With Rejoin event data.
The length of the Trust Center Link Key Change event data.
The length of the Network Key Sequence Number Change event data.
The length of the Reset event data.
The length of the Channel Change event data.
The length of the Parent Change event data.
The length of the Duty Cycle Change event data.
The length of the Child Added event data.
The length of the Child Removed event data.
The length of the Child Timed Out event data.
The length of the Stack Status event data.
The length of the Time Sync event data.
The length of the Trust Center Join Decision event data.
Enumeration Documentation#
EmberZigbeeLoggerEventTypes#
EmberZigbeeLoggerEventTypes
A list of identifiers for system events.
Enumerator | |
---|---|
EMBER_LOGGER_ZIGBEE_BOOT_EVENT_ID | |
EMBER_LOGGER_ZIGBEE_JOIN_NETWORK_ID | |
EMBER_LOGGER_ZIGBEE_TRUST_CENTER_REJOIN_ID | |
EMBER_LOGGER_ZIGBEE_SECURE_REJOIN_ID | |
EMBER_LOGGER_ZIGBEE_LEAVE_WITHOUT_REJOIN_ID | |
EMBER_LOGGER_ZIGBEE_LEAVE_WITH_REJOIN_ID | |
EMBER_LOGGER_ZIGBEE_TRUST_CENTER_LINK_KEY_CHANGE_ID | |
EMBER_LOGGER_ZIGBEE_NETWORK_KEY_SEQUENCE_NUMBER_CHANGE_ID | |
EMBER_LOGGER_ZIGBEE_RESET_ID | |
EMBER_LOGGER_ZIGBEE_CHANNEL_CHANGE_ID | |
EMBER_LOGGER_ZIGBEE_PARENT_CHANGE_ID | |
EMBER_LOGGER_ZIGBEE_DUTY_CYCLE_CHANGE_ID | |
EMBER_LOGGER_ZIGBEE_CHILD_ADDED_ID | |
EMBER_LOGGER_ZIGBEE_CHILD_REMOVED_ID | |
EMBER_LOGGER_ZIGBEE_CHILD_TIMED_OUT_ID | |
EMBER_LOGGER_ZIGBEE_STACK_STATUS_ID | |
EMBER_LOGGER_ZIGBEE_TIME_SYNC_ID | |
EMBER_LOGGER_ZIGBEE_TRUST_CENTER_JOIN_DECISION_ID | |
EMBER_LOGGER_ZIGBEE_NULL_ID |
45
of file stack/include/zigbee-event-logger-gen.h
EmberZigbeeLoggerFacilityTypes#
EmberZigbeeLoggerFacilityTypes
A list of facilities for system events, identifying which layer they occurred in.
Enumerator | |
---|---|
EMBER_LOGGER_ZIGBEE_FACILITY_BASE | |
EMBER_LOGGER_ZIGBEE_FACILITY_MAC | |
EMBER_LOGGER_ZIGBEE_FACILITY_NETWORK | |
EMBER_LOGGER_ZIGBEE_FACILITY_APS | |
EMBER_LOGGER_ZIGBEE_FACILITY_SECURITY | |
EMBER_LOGGER_ZIGBEE_FACILITY_ZDO | |
EMBER_LOGGER_ZIGBEE_FACILITY_ZCL | |
EMBER_LOGGER_ZIGBEE_FACILITY_BDB | |
EMBER_LOGGER_ZIGBEE_FACILITY_SMART_ENERGY |
71
of file stack/include/zigbee-event-logger-gen.h
Function Documentation#
emberAfPluginZigBeeEventLoggerAddBootEvent#
void emberAfPluginZigBeeEventLoggerAddBootEvent (uint32_t bootCount, uint16_t resetType)
Record an event indicating that the device has booted.
N/A | bootCount | The number of times the device has booted. |
N/A | resetType | A reset cause. See micro.h and reset-def.h. |
Note
This API only works on SoC. It does not work on host or NCP.
125
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddJoinNetwork#
void emberAfPluginZigBeeEventLoggerAddJoinNetwork (EmberPanId panId, uint8_t channelNumber, uint8_t page, uint8_t * extendedPanId)
Record an event indicating that a network was successfully joined.
N/A | panId | The PAN ID of the network. |
N/A | channelNumber | The channel of the network. |
N/A | page | The page of the network joined. |
N/A | extendedPanId | The extended PAN ID of the network. |
133
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddTrustCenterRejoin#
void emberAfPluginZigBeeEventLoggerAddTrustCenterRejoin (uint32_t channelMask, EmberRejoinReason reason)
Record an event indicating that a trust center rejoin was attempted.
N/A | channelMask | The channel mask used when searching for the network. |
N/A | reason | An EmberRejoinReason enumeration, indicating why the rejoin was initiated. |
Note
This event only indicates that a rejoin was attempted, not that it was successful. A Join Network event, following this event, indicates success.
139
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddSecureRejoin#
void emberAfPluginZigBeeEventLoggerAddSecureRejoin (uint32_t channelMask, EmberRejoinReason reason)
Record an event indicating that a secure rejoin was attempted.
N/A | channelMask | The channel mask used when searching for the network. |
N/A | reason | An EmberRejoinReason enumeration, indicating why the rejoin was initiated. |
Note
This event only indicates that a rejoin was attempted, not that it was successful. A Join Network event, following this event, indicates success.
145
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddLeaveWithoutRejoin#
void emberAfPluginZigBeeEventLoggerAddLeaveWithoutRejoin (EmberNodeId sourceNode, EmberLeaveReason reason)
Record an event indicating that a device has left-without-rejoin.
N/A | sourceNode | The node ID of the device leaving. |
N/A | reason | An EmberLeaveReason enumeration, indicating why the device left. |
151
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddLeaveWithRejoin#
void emberAfPluginZigBeeEventLoggerAddLeaveWithRejoin (EmberNodeId sourceNode, EmberLeaveReason reason)
Record an event indicating that a device has left-with-rejoin.
N/A | sourceNode | The node ID of the device leaving-and-rejoining. |
N/A | reason | An EmberLeaveReason enumeration, indicating why the device left. |
157
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddTrustCenterLinkKeyChange#
void emberAfPluginZigBeeEventLoggerAddTrustCenterLinkKeyChange (void )
Record an event indicating that an attempt was made to update the trust center link key.
N/A |
161
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddNetworkKeySequenceChange#
void emberAfPluginZigBeeEventLoggerAddNetworkKeySequenceChange (uint8_t sequence)
Record an event indicating that the network key sequence number has changed.
N/A | sequence | The new network key sequence number. |
166
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddReset#
void emberAfPluginZigBeeEventLoggerAddReset (uint8_t resetCode, uint8_t extendedReason)
Record an event indicating that the local device has reset.
N/A | resetCode | The reset code. See reset-def.h. |
N/A | extendedReason | The extended reset reason. See reset-def.h. |
172
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddChannelChange#
void emberAfPluginZigBeeEventLoggerAddChannelChange (uint8_t page, uint8_t channel)
Record an event indicating that the network's channel has changed.
N/A | page | The new page number. |
N/A | channel | The new channel number. |
178
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddParentChange#
void emberAfPluginZigBeeEventLoggerAddParentChange (EmberNodeId parentNodeId, EmberEUI64 parentEui64)
Record an event indicating that the local device's parent has changed.
N/A | parentNodeId | The new parent's short address. |
N/A | parentEui64 | The new parent's long address. |
184
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddDutyCycleChange#
void emberAfPluginZigBeeEventLoggerAddDutyCycleChange (EmberDutyCycleState state, EmberDutyCycleHectoPct limitThreshold, EmberDutyCycleHectoPct criticalThreshold, EmberDutyCycleHectoPct suspendedLimit)
Record an event indicating that the duty cycle has changed.
N/A | state | An EmberDutyCycleState state. |
N/A | limitThreshold | An EmberDutyCycleHectoPct limit. |
N/A | criticalThreshold | An EmberDutyCycleHectoPct critical threshold. |
N/A | suspendedLimit | An EmberDutyCycleHectoPct suspend limit. |
192
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddChildAdded#
void emberAfPluginZigBeeEventLoggerAddChildAdded (EmberNodeId childNodeId, EmberEUI64 childEui64)
Record an event indicating that a child device has joined the local device.
N/A | childNodeId | The child's short address. |
N/A | childEui64 | The child's long address. |
198
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddChildRemoved#
void emberAfPluginZigBeeEventLoggerAddChildRemoved (EmberNodeId childNodeId, EmberEUI64 childEui64)
Record an event indicating that a child device has been removed from the local device.
N/A | childNodeId | The child's short address. |
N/A | childEui64 | The child's long address. |
204
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddChildTimedOut#
void emberAfPluginZigBeeEventLoggerAddChildTimedOut (EmberNodeId childNodeId, EmberEUI64 childEui64)
Record an event indicating that a child device has been timed out by the local device.
N/A | childNodeId | The child's short address. |
N/A | childEui64 | The child's long address. |
210
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddStackStatus#
void emberAfPluginZigBeeEventLoggerAddStackStatus (EmberStatus status)
Record an event indicating that the stack status has changed.
N/A | status | An EmberStatus value indicating the change. |
215
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddTimeSync#
void emberAfPluginZigBeeEventLoggerAddTimeSync (uint32_t utcTime, uint32_t secondsSinceBoot)
Record an event indicating that the clock time has been synchronized.
N/A | utcTime | The updated UTC time. |
N/A | secondsSinceBoot | The number of seconds that have elapsed since boot. |
221
of file stack/include/zigbee-event-logger-gen.h
emberAfPluginZigBeeEventLoggerAddTrustCenterJoinDecision#
void emberAfPluginZigBeeEventLoggerAddTrustCenterJoinDecision (EmberNodeId nodeId, uint8_t decision)
Record an event indicating that a device has attempted to join or rejoin the network.
N/A | nodeId | The short address of the device attempting to join or rejoin. |
N/A | decision | The join or rejoin decision taken by the local device. |
Note
This event is only recorded on a trust center device.
227
of file stack/include/zigbee-event-logger-gen.h