-
Notifications
You must be signed in to change notification settings - Fork 27
Home
jeroendoggen edited this page Oct 4, 2013
·
2 revisions
Library to exchange short messages (sensordata, commands) between an Arduino and a software application running on a PC. (Linux, embedded Linux, Windows, OS X) (clients currently under development)
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.
- Command messages: start motor, blink LED, go to sleep mode,...
- "Command Reply": e.g. motor started, LED blinking, going to sleep mode now,...
- Sensor data messages: e.g. temperature is 25 C, distance is 50 cm, humidity is 56%
- 8-bit Data: (standard Arduino Byte type): e.g. temperature is 25 C, distance is 50 cm, humidity is 56%
- 16-bit Data: (standard Arduino int type): e.g. temperature is -25 C, distance is 310 cm, time is 16200 seconds, ...
- Data array: send multiple sensor measurements in one burst (useful when sampling very rapidly)
- Data request: e.g. send me the temperature, distance, humidity, ...
- Data array request: e.g. send me a burst of measurements