Readonlyaddress16Address lookup: 16-bit to 64-bit (synced with deviceTable)
ReadonlyappApplication link keys stored for device pairs (ordered by IEEE address)
MAC association permit flag
ReadonlyconfigConfiguration attributes
ReadonlydeviceMaster table of all known devices on the network (mapped by IEEE address)
ReadonlyindirectIndirect transmission for devices with rxOnWhenIdle=false (mapping by IEEE address)
ReadonlyinstallInstall code metadata per device (mapped by IEEE address)
Maximum observed LQI
Minimum observed LQI
ReadonlymacCount of MAC NO_ACK reported for each device (mapping by network address)
Network parameters
ReadonlypendingAssociations pending DATA_RQ from device (mapping by IEEE address)
Maximum observed RSSI
Minimum observed RSSI
ReadonlysourceSource routing table (mapped by 16-bit address)
Pre-computed hash of default TC link key for VERIFY_KEY
ReadonlytrustTrust Center policies
05-3474-23 #4.4.11.5 (Switch Key)
Activate the staged network key if the sequence number matches. Resets frame counters and re-registers hashed keys for cryptographic operations.
SPEC COMPLIANCE NOTES:
Sequence number referenced by SWITCH_KEY command
true when activation succeeded, false when no matching pending key exists
05-3474-23 #4.5.1 (Install Code processing)
SPEC COMPLIANCE NOTES:
IEEE address of device whose code is being stored
Install code or hashed key buffer (length varies)
Indicates that installCode already contains derived key material
Derived application link key associated with Trust Center
SPEC COMPLIANCE:
The length of time in seconds during which the trust center will allow joins. The value 0x00 and 0xff indicate that permission is disabled or enabled, respectively, without a specified time limit. 0xff is clamped to 0xfe for security reasons
If true, also allow association on coordinator itself. Ignored if duration 0.
05-3474-23 #3.6.1.10 (Network address allocation)
SPEC COMPLIANCE NOTES:
address16ToAddress64 map before assignmentHandle device association (initial join or rejoin)
SPEC COMPLIANCE:
Assumed valid if assocType === 0x00
If false, rejoin.
MAC capabilities
True if the device associating is a neighbor of the coordinator
OptionaldenyOverride: booleanTreat as MACAssociationStatus.PAN_ACCESS_DENIED
OptionalallowOverride: booleanTreat as MACAssociationStatus.SUCCESS
05-3474-23 #4.7.6 (Trust Center maintenance)
Remove the save file and clear tables (just in case)
SPEC COMPLIANCE NOTES:
05-3474-23 #2.4.4.2.3 (Neighbor table reporting)
Compute the median LQA for a device from recentLQAs or using signalStrength directly if device unknown.
If given, stores the computed LQA from given parameters in the recentLQAs list of the device before computing median.
SPEC COMPLIANCE NOTES:
Used to retrieve address64 if not given (must be valid if 64 is not)
The IEEE address of the device
OptionalsignalStrength: numberRSSI. Optional (only use existing entries if not given)
OptionalsignalQuality: numberLQI. Optional (only use existing entries if not given)
Number of entries to retain in rolling window (default 10)
Median LQA for the device or 0 when unavailable
05-3474-23 #3.3.4.3 (Link Quality Assessment)
LQA_raw (c, r) = 255 * (c - c_min) / (c_max - c_min) * (r - r_min) / (r_max - r_min)
SPEC COMPLIANCE NOTES:
RSSI value
OptionalsignalQuality: numberLQI value (optional, computed from RSSI if not provided)
Computed LQA value (0-255)
05-3474-23 #3.3.1.5 (NWK radius handling)
Decrement radius value for NWK frame forwarding. HOT PATH: Optimized computation
SPEC COMPLIANCE NOTES:
Current radius value
Decremented radius (minimum 1)
Revert allowing joins (keeps allowRejoinsWithWellKnownKey=true).
SPEC COMPLIANCE:
Handle device disassociation (leave)
SPEC COMPLIANCE:
THOROUGH CLEANUP: All device-related state properly removed DEVICE SCOPE: Coordinator, routers (N/A)
05-3474-23 #4.4.11 (Trust Center link/app keys)
SPEC COMPLIANCE NOTES:
05-3474-23 #4.7.6 (Trust Center start-up procedure)
Load state from file system if exists, else save "initial" state. Afterwards, various keys are pre-hashed and descriptors pre-encoded.
SPEC COMPLIANCE NOTES:
IEEE 802.15.4-2015 #10.2.1 (Link Quality Indication)
Apply logistic curve on standard mapping to LQI range [0..255]
LQI = (MAC_SPEC_ED_MAX * (RSSIdbm - ED_RF_POWER_MIN_DBM)) / (ED_RF_POWER_MAX_DBM - ED_RF_POWER_MIN_DBM);
where MAC_SPEC_ED_MAX = 255, ED_RF_POWER_MIN_DBM = -87, ED_RF_POWER_MAX_DBM = -10SPEC COMPLIANCE NOTES:
Get next network key frame counter. HOT PATH: Optimized counter increment
Incremented network key frame counter (wraps at 0xffffffff)
Get next Trust Center key frame counter. HOT PATH: Optimized counter increment
Incremented TC key frame counter (wraps at 0xffffffff)
05-3474-23 #4.7.6 (Trust Center persistent data)
Read the current network state in the save file, if any present.
SPEC COMPLIANCE NOTES:
05-3474-23 #4.5.1 (Install Code lifecycle)
SPEC COMPLIANCE NOTES:
05-3474-23 #4.7.6 (Trust Center maintenance)
SPEC COMPLIANCE NOTES:
05-3474-23 #4.7.6 (Trust Center persistent data)
Save state to file system in TLV format.
SPEC COMPLIANCE NOTES:
Format version 1:
05-3474-23 #4.4.11.1 (Application Link Key establishment)
SPEC COMPLIANCE NOTES:
05-3474-23 #2.3.2.3 (Node Descriptor)
Set the manufacturer code in the pre-encoded node descriptor
SPEC COMPLIANCE NOTES:
encodeCoordinatorDescriptors
DEVICE SCOPE: Coordinator, routers (N/A), end devices (N/A)Manufacturer code assigned by CSA
05-3474-23 #4.4.11.2 (Network Key transport)
Store a pending network key that will become active once a matching SWITCH_KEY is received.
SPEC COMPLIANCE NOTES:
Raw network key bytes (16 bytes)
Sequence number advertised for the pending key
05-3474-23 #4.7.6 (Trust Center maintenance)
SPEC COMPLIANCE NOTES:
05-3474-23 #4.7.6 (Trust Center maintenance)
SPEC COMPLIANCE NOTES:
05-3474-23 #3.6.1.11 / Table 3-54 (End Device Timeout)
Update the stored end device timeout metadata for a device.
SPEC COMPLIANCE NOTES:
IEEE address of the end device
Requested timeout index (0-14)
Optional timestamp override (for testing)
Updated timeout metadata or undefined if device/index invalid
05-3474-23 #3.7.3 (NWK security) / IEEE 802.15.4-2015 #9.4.2
Update and validate the incoming NWK security frame counter for a device.
SPEC COMPLIANCE NOTES:
false if the provided counter is a replay (<= stored value, excluding wrap).
Centralized shared state and counters for the Zigbee stack.
This context holds all shared state between protocol layers including: