12.07.2015 Views

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Communications ProtocolDescriptionThe Protocol for the rMP3 employs a simple but robust asynchronous <strong>se</strong>rial control protocol.A command prompt ”>” (“greater than” symbol, ASCII 62, HEX 0x3E) indicates that the rMP3is ready to accept a command. A command can be <strong>se</strong>nt, a respon<strong>se</strong> will be returned, and thecommand prompt will be <strong>se</strong>nt again.Example:FC F«cr»1>If an error occurs while processing a command, an error is returned in the format ”Enn”. Seethe table of error codes.Example:>PC F /MP3/MISSING.MP3«cr»EF2>Command FormatCC«sp»Parameter1«sp»Parameter2«sp»…«cr»Where:• CC is the command character(s).• «sp» is a single space character (ASCII 32, HEX 0x20).• Parameter1, Parameter2, … are parameters associated with the command• «cr» is a carriage return character (ASCII 13, HEX 0x0d)Command Listing FormatCC Parameter1 [Parameter2 [Parameter3]]…• CC is the command character(s).• Parameter1 is the first parameter for the command. Often, this is a sub-command.• Parameter2 is the <strong>se</strong>cond parameter for the command. If it is listed inside of square brackets [] then the parameter is optional.Any parameters listed inside of square brackets [ ] are optional. Most commands that haveoptional parameters will require the previous parameter to be given.Command Respon<strong>se</strong> FormatIn general, respon<strong>se</strong>s are of the format:Bart Huyskens <strong>Manual</strong> <strong>Elektor</strong> <strong>Proton</strong> V1.0 3 April 2011 95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!