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 ID | slip_codec |
| Selected by | app_codec = "slip_codec" |
| Platforms | Linux, Windows, Android |
| License | Free |
Serial Line Internet Protocol - simple framing protocol using special delimiter bytes (END=0xC0, ESC=0xDB) for packet separation
| Setting | Key | Type | Default | Notes |
|---|---|---|---|---|
| Push Leading END | slip_push_leading_end | Boolean | true |
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
}
}