EZSP (EmberZNet Serial Protocol) frame encoding/decoding for the v8+ frame format (frame format version 1), as used by EZSP v13 firmware on the ZBT-2.
Command frame
[ seq ][ FC low = 0x00 ][ FC high = 0x01 ][ frame id : u16-le ][ params… ]Response frame
[ seq ][ FC low (bit7=1) ][ FC high = 0x01 ][ frame id : u16-le ][ params… ]The NCP echoes the command's sequence number in its response, which is how the
Zigbee.EZSP server correlates the two. Unsolicited callbacks (e.g. a device
joining, an incoming message) arrive as frames whose sequence number does not
match any outstanding command; the response bit in the frame-control low byte
distinguishes a command response from a callback.
Summary
Functions
Decode a raw EZSP payload (the de-randomized ASH DATA field) into a frame.
Encode a command frame.
Types
Functions
Decode a raw EZSP payload (the de-randomized ASH DATA field) into a frame.
Encode a command frame.
seq: EZSP sequence number (0..255), assigned by the callerframe_id: 16-bit EZSP command IDparams: already-encoded parameter bytes