LINKTYPE_ZBOSS_NCP
Packet structure
+---------------------------+ | Signature | | (5 Octets) | +---------------------------+ | Version | | (1 Octet) | +---------------------------+ | Type | | (1 Octet) | +---------------------------+ | Options | | (1 Octet, bitfield) | +---------------------------+ | Payload | | (Variable length) | +---------------------------+
Description
The Signature field contains ASCII string "ZBNCP".
The Version field is set to 0 (only this value is defined now).
The Type field is set to 6.
Options bitfield
7 6 5 4 3 2 1 0 . . . . . . . . . 0 +---+---+---+---+---+---+---+---+ | reserved |b02|b01|b00| +1 +---+---+---+---+---+---+---+---+
-
b00
is set to 1 if transmitting from device to host, else 0 -
b01
is set to 1 if host interrupt occurs -
b02
is set to 1 if both sides are transmitting at the same time -
b03
–b07
are reserved for future use
Payload
The payload begins with the "Low-level protocol" header, as described in
section 3.2 of
ZBOSS
NCP Serial Protocol, so that the first two bytes of the payload are
0xde
0xad
, in order.