Follow One Lamp Command Through the Layers

Follow One Lamp Command Through the Layers

animation
zigbee
protocols
Zigbee stack for an On Off command with endpoint and key custody, network route repair, 802.15.4 MAC frame and optional ACK, PHY channel and RSSI evidence.
Figure 1: Zigbee stack with application, APS and ZDO, network, MAC, and PHY jobs beside a five-item evidence rail.
Beacon superframe with slots zero through fifteen, CAP slotted CSMA CA, CFP with at most seven GTS allocations, and an inactive sleep period before the next beacon.
Figure 2: Beacon-enabled IEEE 802.15.4 superframe with sixteen slots, CAP, CFP, GTS limit, and inactive period.

Block one link, use the wrong endpoint, remove a binding, restart the lamp, and repeat the command. Check the frame record, route record, service record, and final lamp state. A radio reply alone must not be reported as completed action.

Separate a Clear Channel from a Completed Lamp Command

Follow Figure 1 from application meaning through APS and network routing to MAC and PHY. The application owns the On/Off command and the intended lamp endpoint. The network supplies the route. The MAC frame and optional acknowledgement establish a narrower local exchange, while PHY observations describe channel and signal conditions. A valid frame does not prove the correct endpoint acted.

For a timing calculation, use the chapter’s beacon-enabled example with beacon order 6 and superframe order 3. The beacon interval is 983.04 ms and the active period is 122.88 ms. The inactive period is 983.04 − 122.88 = 860.16 ms. Sixteen equal active slots therefore last 122.88 divided by 16 = 7.68 ms each. These timings apply to the stated superframe configuration, not every Zigbee network.

Read Figure 2 from beacon through CAP and any CFP allocation into the inactive period. The numbered slots divide time; they do not promise a separate guaranteed allocation for every possible user. A command becoming ready during inactivity may wait for an opportunity, and reservation still cannot remove radio loss or application checks.

Predict what a clear-channel assessment establishes. It indicates the sender’s local channel observation at that moment, not that a hidden transmitter is absent at the receiver. Next, receive an acknowledgement but direct the command to an unsupported endpoint. The application result should remain rejected or unconfirmed rather than being promoted to completed by the radio trace.

Repeat the test after route repair and after a lamp restart. Retain source and destination endpoints, command identity, route evidence, frame result and final lamp state. Separating channel-access backoffs from missing-acknowledgement retries helps identify which stage is under pressure.

This module’s layered review prevents a mesh join or good signal level from standing in for useful lighting control. The numerical superframe explains one timing boundary; the application response and observed state explain whether the requested action crossed the rest of the stack successfully.

Back to the chapter