Code Monkey home page Code Monkey logo

simple-serial-protocol-docs's Introduction

Simple Serial Protocol

This protocol is designed for general purpose serial computer-to-machine or machine-to-machine communication. It should be simple, robust, based on low-bytes-data-transfer and most of all user friendly. On one side it has to perform well on low resource devices like microcontrollers. On the other hand it needs to feel comfortable for Highlevel-Programming, powered by modern programming languages.

Let's close the gap!

Supported Platforms and Languages

Datatypes and Traffic Consumption

Byte values

  • byte: integer value (8 bit / 1 byte)

Logic values

  • boolean: true or false (8 bit / 1 byte)

Characters and Text - (printable ASCII only)

  • char: single character (8 bit / 1 byte)
  • text / string: char array / c-string (variable data size)
    • single character (8 bit / 1 byte)
    • plus end-of-string (8 bit / 1 byte) (non-printable ASCII char \0)

Numeric values

  • tiny integer: (8 bit / 1 byte)
    • signed -128 to 127
    • unsigned 0 to 255
  • small integer: (16 bit / 2 bytes)
    • signed -32,768 to 32,767
    • unsigned 0 to 65,523
  • integer: (32 bit / 4 bytes)
    • signed -2,147,483,648 to 2,147,483,647
    • unsigned 0 to 4,294,967,295
  • big integer: (64 bit / 8 bytes)
    • signed -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
    • unsigned 0 to 18,446,744,073,709,551,615
  • float: floating point values (32 bit / 4 bytes)
    • -3.402,823,4 * 10^38 to 3.402,823,4 * 10^38

Limitations

  • Text/Characters only printable ASCII

Shout out to Antonin Raffin

The Simple Serial Protocol is inspired by Antonin Raffin's minimalistic primitive datatypes approach. The author has written an article at Medium.com Simple and Robust Computer Arduino Serial Communication.

Links

__

simple-serial-protocol-docs's People

Contributors

einspunktnull avatar kappaj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.