Skip to main content

Module transport_service

Module transport_service 

Source
Expand description

Transport Service: frames longer than one radio frame, split into segments of a datagram with a CRC-16 each.

The command byte carries data: the top five bits are the command, the low three are the top of the datagram size (or, in Segment Request, the offset). Hence this module is written by hand.

Structs§

Reassembler
Reassembles datagrams from any number of peers.

Enums§

Error
Why a frame was rejected.
Reassembly
What the reassembler did with a segment.
Segment
A parsed Transport Service frame.

Constants§

CC
The Transport Service command class id.
DEFAULT_SEGMENT
Segment payload bytes per frame that fit any Z-Wave data rate with room for security.
FIRST_SEGMENT
First Segment.
MAX_DATAGRAM
Largest datagram the 11-bit size field can describe.
MAX_SESSIONS
Reassemblies kept at once (per stack); older ones are dropped.
SEGMENT_COMPLETE
Segment Complete.
SEGMENT_REQUEST
Segment Request.
SEGMENT_TIMEOUT
How long a reassembly waits for the next segment.
SEGMENT_WAIT
Segment Wait.
SUBSEQUENT_SEGMENT
Subsequent Segment.

Functions§

complete
Builds a Segment Complete.
parse
Parses a Transport Service frame (starting at 0x55).
request
Builds a Segment Request for the segment at offset.
segment
Splits datagram into Transport Service frames of at most segment payload bytes.