victorhurdugaci / SerialProtocol

A protocol for sending data between two Arduino devices, or between an Arduino and another device through a serial port
http://victorhurdugaci.com
Apache License 2.0
41 stars 12 forks source link
arduino c-plus-plus protocol raspberry-pi serial serial-ports

Arduino Serial Protocol

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

Message structure

Total message size (bytes): Payload + 3

Install Arduino Libraries

  1. Download the Repository as a .zip file.
  2. In Arduino IDE, go to Sketch> Include Library> Add .zip Library.
  3. Select the Downloaded .zip File.

Examples

Arduino Instructions

Open the arduino_app in the Arduino IDE and upload to your Arduino.

Raspberry Pi Instructions

  1. Clone this repository and navigate to the SerialProtocol/extras/raspberry_app folder.
  2. Make the file raspberry_app.cpp
  3. Run the new file. 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):

License

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

Contributors

Victor Hurdugaci

James Head