Universal Packet Format

General Packet Format

Ping Protocol comprises a binary packet format. All packets have the same structure which is defined in the table below.

Byte indexData TypeNameDescription

0

u8

B

hex value 0x66

1

u8

R

hex value 0x82

2-3

u16

payload_length

number of bytes in the payload

4-5

u16

packet_id

unique id for each packet type

6

u8

reserved

set to 0

7

u8

reserved

set to 0

8 to n

u8[]

payload

payload specific to each packet_id

(n+1) to (n+2)

u16

checksum

sum of all the bytes in the packet from 0 to n, truncated to 16 bits

Last updated