1 FPC embedded stack {#stack}
4 The communication stack implemented on the embedded devices by FPC follows the following
7 \image html stack.svg "HCP embedded stack"
8 \image latex stack.eps "HCP embedded stack"
12 The physical layer have a fixed size buffer of 256 bytes.
16 The link layer handles packet consistency.
18 Each packet received is acknowledged on the link layer, if an error occurs no retransmission is
19 done on this level, instead the error is propagated upwards.
21 Channel | Size | Payload | CRC |
22 ------- | ------- | ---------- | ------- |
23 2 bytes | 2 bytes | size bytes | 4 bytes |
25 All fields are using unsigned data types.
27 \section tsp Transport
29 The transport layer handles packet segmentation.
31 As the PHY MTU is 256 bytes the maximum payload per segment is 242 bytes.
33 Errors are propagated upwards.
35 Size | Seq Nr | Seq Len | Payload |
36 ------- | ------- | ------- | ---------- |
37 2 bytes | 2 bytes | 2 bytes | size bytes |
39 All fields are using unsigned data types.
41 \section app Application
43 The application layer is a optional security layer, the default implementation is clear text
46 If a security solution is used it will be part of that products documentation.
50 The HCP frame is described in the \link hcpf \endlink HCP frame format section.