Coder Social home page Coder Social logo

tux2000 / serialprotocol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from victorhurdugaci/serialprotocol

0.0 3.0 0.0 212 KB

A protocol for sending data between two Arduino devices, or between an Arduino and another device through a serial port

Home Page: http://victorhurdugaci.com

License: Apache License 2.0

C++ 100.00%

serialprotocol's Introduction

Serial Protocol

SerialProtocol is a protocol for sending data between two Arduino and/or Raspberry PI devices over serial.

Message structure

  • Message start marker: 1 byte
  • Message size: 1 byte
  • Payload (message body): variable number of bytes (max 255)
  • Checksum: 1 byte

Total message size (bytes): Payload + 3

Install Arduino Libraries

Copy the src\SerialProtocol folder to:

  • Windows: %USERPROFILE%\Victor\Documents\Arduino
  • Linux: ~/sketchbook/libraries or /usr/share/arduino/libraries
  • Mac: Documents/Arduino/libraries

Note: You must restart the Arduino IDE if it was running before you copied the files.

Samples

The samples folder contains examples for both Arduino and Raspberry PI. If you upload the Arduino sketch and then run the Raspberry PI application, you should see the two devices exchanging a data structure with different numeric types.

Acknowledgements

SerialProtocol is inspired by Arduino-EasyTransfer. It brings a few improvements (over v2.1):

  • The start marker (header) is one byte shorter
  • A detailed error code is given in case of communication failures

License

Copyright Victor Hurdugaci. All rights reserved.
Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

serialprotocol's People

Contributors

victorhurdugaci avatar

Watchers

James Cloos avatar  avatar  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.