Logo
1.47.0
  • ← Software Documentation

Device to Device Specification

  • Introduction
  • Architecture
    • Physical Layer
    • Link Layer
      • Example for Framing
    • Application Layer Protobuf
  • API
  • Examples
  • D2D Client Demo App
  • Protobuf Tutorials
Device to device specification
  • Architecture
  • Link Layer
  • View page source

Link Layer

The following special characters are reserved to structure the frames

Start

0x02

Stop

0x03

Escape

0x10

The message frame is structured as follows

Field

Start

Escaped data

Stop

Size in Bytes

1

n

1

To prevent any Start or Stop characters from appearing the escaped data, the following substitutions are performed on the original data

Replace

With

0x02

0x10 0x22

0x03

0x10 0x23

0x10

0x10 0x30

Example for Framing

The original, unframed message

0x56

0x10

0xaa

0x30

0x03

is escaped and framed into the following message

0x02

0x56

0x10

0x30

0xaa

0x30

0x10

0x23

0x03

Previous Next

© Copyright 2025, Thermoplan.