As a university lecturer, I was annoyed by the fact that, every year, all my students were implementing their own very simple protocols to connect Arduino & pc applications. As a results it was hard to reuse their code and most of the time it is hard to interconnect applications from different teams.
This library was developed to allow multiple teams of students to work together on Arduino/embedded Linux projects Some teams working on the embedded Arduino side, other teams working on Python applications running on the Raspberry PI. The goal is to have a standardised “communication protocol” to ensure interoperability between software/hardware blocks. Hopefully this will allow future student to start from the current code base to develop their projects.
We are developing a library to exchange short messages (sensordata, commands) between an Arduino and software applications running on a PC. (Linux, embedded Linux, Windows, OS X)
Both sides are able send and receive a range of “standardised” messages over the serial port. All communication is done by sending short human readable ASCII messages. We define several standard command and data packet IDs to provide interoperability between different applications.
The protocol was designed to be relatively easy to comprehend and process by both human and computer:
The library support seven basic packet types.
Command message T01N00I12PFFQ21 : “set motor speed of ‘Arduino zero’ to +100%:
Data message T12N00I10P08Q0A : “temperature of ‘Arduino zero’ is 8 degrees”