From bigfug
Jump to: navigation, search


Data Encoding and Decoding

Network streams, such as TCP (also Serial connections) send raw bytes of data from one place to another. If you need to send a message over a stream, you need to be able to reliably encode it to the stream and decode it at the other end, regardless of the type of data it contains.

These nodes provide encoding and decoding functionality.

SLIP is an older protocol that uses more overhead than COBS. Unless you need to use SLIP to exchange data with other applications, use COBS.

Consistent Overhead Byte Stuffing (COBS)

  • Cobs Decode - decode raw data into packets using COBS
  • Cobs Encode - encode packets into a raw stream using COBS

Serial Line Internet Protocol (SLIP)

  • Slip Decode - decode raw data into packets using SLIP
  • Slip Decode - encode packets into a raw stream using SLIP

Transmission Control Protocol (TCP)

TCP provides a 'reliable' network connection for sending streams of data.

Fugio can use TCP to automatically send and receive pins

Fugio also supports sending and receive raw data over TCP

User Datagram Protocol (UDP)

UDP sends data in packets without knowing if the data was received or not.

Hypertext Transfer Protocol (HTTP)

  • Get (HTTP) - request files and data over a network using the HTTP protocol


Generic Packet Encoding

If you are working with some custom data transmission method and would like a generalised packet encoding scheme, the following two nodes provide encoding and decoding.

Currently work in progress and subject to incompatible changes.