CmdMessenger  3.0
CmdMessenger is a serial port messaging library for the Arduino

A serial messaging library for the Arduino and .NET/Mono platform

Introduction

CmdMessenger is a messaging library for the Arduino Platform (and .NET/Mono platform). Ituses the serial port as it's transport layer**

The message format is: ``` Cmd Id, param 1, [...] , param N; ```

Although the field separator ',' and command separator ';' can be changed

The library can

The library supports any primary data types, and zero to many multiple arguments. Arguments can either be sent in plain text (to be human readable) or in binary form (to be efficient).

With version 3 also comes a full implementation of the toolkit in C#, which runs both in Mono (http://monodevelop.com/Download) and Visual Studio (http://www.microsoft.com/visualstudio/eng#downloads) This allows for full 2-way communication between the arduino controller and the PC.

** but it could easily be modified to work over Bluetooth or a web interface.

Requirements

Getting Started

Get to know the library, by trying the examples,from simple to complex:

Receive

The 1st example will make the PC toggle the integrated led on the arduino board.

SentandReceive

This example expands the previous Receive example. The Arduino will now send back a status. On the arduino side,

SendandReceiveArguments

This example expands the previous SendandReceive example. The Arduino will now receive multiple and sent multiple float values.

SendandReceiveBinaryArguments

This example expands the previous SendandReceiveArguments example. The Arduino will receive and send multiple Binary values, demonstrating that this is more efficient way of communication.

All samples are heavily documented and should be self explanatory.

  1. Open the Example sketch in the Arduino IDE and compile and upload it to your board.
  2. Open de CmdMessenger.sln solution in Visual Studio or Mono DevelopXamarin Studio
  3. Set example project with same name as the Arduino sketch as startup project, and run
  4. Enjoy!

Trouble shooting

Notes

An example for use with Max5 / MaxMSP was included up until version 2. (it can still be found here https://github.com/dreamcat4/CmdMessenger). Since we have not been able to check it wil Max/MaxMSP, the example was removed.

Changelog

CmdMessenger v3

CmdMessenger v2

Credit

Copyright

CmdMessenger is provided Copyright © 2013 under MIT License.