Arduino Serial Protocol
ArduinoSerialProtocol is a protocol for sending data between two Arduino and/or Raspberry PI devices over serial.
- 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
- Download the Repository as a .zip file.
- In Arduino IDE, go to Sketch> Include Library> Add .zip Library.
- Select the Downloaded .zip File.
arduino_app in the Arduino IDE and upload to your Arduino.
Raspberry Pi Instructions
- Clone this repository and navigate to the
- Make the file
- Run the new file. You should see the two devices exchanging a data structure with different numeric types.
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
Copyright Victor Hurdugaci. All rights reserved.
Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.