4
MAS7.1 Suplemental Guide, Rev 1.1, 9/28/07
MAS7.1 Quick Reference
Command Syntax
The MAS7.1 serial command set uses an ASCII based protocol and a terminal emulator, like Hyperterm, can
be used to test the serial port of the MAS7.1.
Each serial command is formatted as:
CMD param1,param2,...<CR>
Where:
CMD
= The name of the command.
param
= Any number of parameters can follow a command.
<CR>
= The carriage return character, usually the character associated with the “Enter” key.
For instance the name of the command turn power on and off is ‘P’ (must be capitalized) therefore,
to turn on the MAS7.1 send a:
P 1<CR>
to turn off the MAS7.1 send a:
P 0<CR>
the commands will not be echoed back, but instead you will receive a command response string.
Command Responses
The MAS7.1 will always respond to a command, there are no “time-out” modes, if you send a command and
don’t get a response in 100ms, something’s wrong with the connection.
There are three different types of responses: Acknowledgements, Errors and Query Strings.
The Acknowledgement Response
Every command will get either an acknowledgement or error response.
Anytime you issue a command and there are no errors, you will receive the acknowledgement response.
Which is:
+<CR><LF>
which is the ‘+’ character followed by a carriage return (hex=0Dh) and a line feed (hex=0Ah).
The Error Response
Every command will get either an acknowledgement or error response.
If something is wrong with the command, you will get an error response. Which is
!<err><CR><LF>
which is the ‘!’ followed by an error number (in ASCII), followed by a carriage return and line feed.
For instance ‘2’ is not allowed as a parameter in the ‘P’ (power) command, so:
P 2<CR>
would cause the MAS7.1 to respond with:
!2<CR><LF>
the ‘2’ being the error code for “Parameter out of range”.
For the full listing of error codes, see: