SLIP library for Arduino
Simple packet communication for embedded devices


SLIP is a protocol for sending packets from one device to another. It’s incredibly simple and a handy protocol to use when communicating with embedded devices. While I have seen libraries for TCP/IP over SLIP for Arduino and Microchip, for a lot of applications this is more than is really needed. For a microchip with very limited memory not using TCP/IP can mean having a lot more space for the user application. While I have written the library for Arduino it’s so simple it can be modified for other microcontrollers (I used to use the same sort of thing for Microchip microprocessors).

For echoing back the packets an Arduino can run the following code.

slip-arduino.png

A Qt program that runs on a PC connected to the Arduino could run something like the following.

slip-qt.png

For a more useful example of using this library see JDDS which uses this library to create a square wave signal generator with a nice GUI. Also see BPSK_test_on_DDS which uses the SLIP library to use a DDS module for modulating BPSK in a test.

Downloads:

Arduino library

Slip.zip

Qt example

Slip-qt-eg1.zip

 

 

Jonti 2015
Home

 

 

Jonti. Last modified Fri, 3 Jul 2020 02:54:13 GMT.