FPC embedded stack

The communication stack implemented on the embedded devices by FPC follows the following specification.

HCP embedded stack

# Physical

The physical layer have a fixed size buffer of 256 bytes.

# Link

The link layer handles packet consistency.

Each packet received is acknowledged on the link layer, if an error occurs no retransmission is done on this level, instead the error is propagated upwards.

Channel | Size | Payload | CRC
--- | --- | --- | ---
2 bytes | 2 bytes | size bytes | 4 bytes

All fields are using unsigned data types.

# Transport

The transport layer handles packet segmentation.

As the PHY MTU is 256 bytes the maximum payload per segment is 242 bytes.

Errors are propagated upwards.

Size | Seq Nr | Seq Len | Payload
--- | --- | --- | ---
2 bytes | 2 bytes | 2 bytes | size bytes

All fields are using unsigned data types.

# Application

The application layer is a optional security layer, the default implementation is clear text (unsecure).

If a security solution is used it will be part of that products documentation.

# HCP

The HCP frame is described in the HCP frame format section.