SH2SC-EDT
Self-Healing Hardware and Software Complex for Encrypted Data Transmission
Loading...
Searching...
No Matches
Synchronisation Preamble Bytes

Two-byte magic sequence prepended to every packet on the wire. More...

Variables

const uint8_t SYNC_BYTE_1 = 0xAA
 First synchronisation byte (preamble marker).
 
const uint8_t SYNC_BYTE_2 = 0x55
 Second synchronisation byte (preamble marker).
 
const uint8_t SYNC_BYTE_1 = 0xAA
 First synchronisation byte (preamble marker).
 
const uint8_t SYNC_BYTE_2 = 0x55
 Second synchronisation byte (preamble marker).
 

Detailed Description

Two-byte magic sequence prepended to every packet on the wire.

The receiver scans for this pattern to re-lock onto the frame boundary after a noise burst. Two distinct bytes reduce the false-sync rate compared to a single repeated byte.

Variable Documentation

◆ SYNC_BYTE_1 [1/2]

const uint8_t SYNC_BYTE_1 = 0xAA

First synchronisation byte (preamble marker).

Definition at line 74 of file protocol.h.

◆ SYNC_BYTE_1 [2/2]

const uint8_t SYNC_BYTE_1 = 0xAA

First synchronisation byte (preamble marker).

Definition at line 74 of file protocol.h.

Referenced by processReceivedByte(), sendFinPacket(), sendHelloPacket(), and sendPacket().

◆ SYNC_BYTE_2 [1/2]

const uint8_t SYNC_BYTE_2 = 0x55

Second synchronisation byte (preamble marker).

Definition at line 75 of file protocol.h.

◆ SYNC_BYTE_2 [2/2]

const uint8_t SYNC_BYTE_2 = 0x55

Second synchronisation byte (preamble marker).

Definition at line 75 of file protocol.h.

Referenced by processReceivedByte(), sendFinPacket(), sendHelloPacket(), and sendPacket().