User's Manual

Table Of Contents
61
Data Frames
4.4.4. Data Frames
The data frames (payload) are the blocks of data extracted from the radio frames,
after the CRC and other information (source address) was checked. The data frame
and its length are passed to the upper layers of the software.
Figure 25. Generic Data Frame structure.
A data frame is composed of two main parts: a header, containing the frame type as
well as the routing information, and a data block. The length of the data block can
be easily computed by subtracting the header length (HLEN + 1 byte for the TYPE)
from the original data frame length received from the lower layer of the software (the
radio frame length). Additional explanations on the notation used in the diagram:
TYPE is the type of frame.
HLEN is the header length: it represents the number of bytes used to de-
scribe the route the frame will go (or went). The maximum number of hops is
8, that is, 8 intermediate stations plus source and destination. Each station is
described by its unique 16-bit address.
SRC, HOP and DEST, are the source, the hops and the destination addresses.
While the hops may be missing (no routing stations between source and des-
tination), the source and destination are mandatory.
DATA is the data proper field. It is limited in length, its maximum size being
dependent also on the particular route: if the route is longer (8 hops) then the
data block is limited to 48 bytes. Depending on the frame type, the data block
may be nonexistent (zero length).
TYPE HLEN SRC-H
SRC-L
.......
HOP1-H HOP1-L HOPn-H HOPn-L DEST-LDEST-H DATA1 DATA2 DATAn
.......
Header (Frame Type + Routing Information)
Data