Skip to main content

SLIP Codec

Frames binary packets with SLIP (RFC 1055). Each frame ends with an END byte 0xC0. Inside the data, 0xC0 is sent as 0xDB 0xDC and 0xDB as 0xDB 0xDD.

Received bytes are split at each END, and the bytes in between are unescaped into the message payload. Empty frames (back-to-back END bytes) are skipped. A frame with an invalid escape sequence is discarded, together with the rest of the receive buffer.

When sending, the payload is escaped and END is appended. With Push Leading END (on by default), an END byte is also sent before the frame, so the receiver discards any line noise that came before it. Enter the plain data in the message input; the codec adds the escaping.

Use it for devices that speak SLIP over a serial port, for example the ESP32 / ESP8266 ROM bootloader protocol. For COBS framing with 0x00 delimiters, use COBS.

Configuration reference​

Config IDslip_codec
Selected byapp_codec = "slip_codec"
PlatformsLinux, Windows, Android
LicenseFree

Serial Line Internet Protocol - simple framing protocol using special delimiter bytes (END=0xC0, ESC=0xDB) for packet separation

SettingKeyTypeDefaultNotes
Push Leading ENDslip_push_leading_endBooleantrue

Setting details​

Push Leading END​

Send an END byte before the frame to flush accumulated noise (recommended for noisy connections)

Example config​

Default values as they appear in a saved configuration (for example the JSON block at the end of a cycbox/examples/*.lua file). Settings detected at runtime are omitted.

{
"app": {
"app_codec": "slip_codec"
},
"slip": {
"slip_push_leading_end": true
}
}