EmbeddedBlue 500
63
Copyright ©2003 A7 Engineering, Inc.
eb500 Commands
The eb500 command set is comprised of visible ASCII characters. Therefore, a command
can be issued from a terminal application, such as HyperTerminal, or directly from a custom
application program, written in a programming language such as C++ or Visual Basic,
running on a PC, using the eb600 PC Adapter. From a BASIC Stamp application, these
commands can be issued by using the PBASIC™ SERIN and SEROUT commands.
Command Basics
Commands may only be sent to the eb500 when the module is in Command Mode. White
spaces are used to separate parameters of the command and a carriage-return is used to
mark the end of the command. Upon receipt of a command the eb500 begins to parse the
parameters. If the syntax of the command is correct the eb500 returns an ACK string, not
the ACK character (0x06); otherwise, a NAK string is returned. Following the ACK or NAK
string is a carriage-return (0x0D) character. If an error occurs while processing the
command an error string is returned followed by a carriage-return followed by the prompt (
>
)
character. If the command executed successfully the eb500 will issue the prompt (
>
)
character. Please see the eb500 Error Codes section for a description of the error codes.
The following example shows the basic structure of a command. A prompt (
>
) is issued by
the eb500. A command followed by a carriage-return is sent to the eb500. The eb500
responds with either an ACK or NAK string followed by a carriage-return. If an error occurs,
the eb500 responds with an Err string followed by a space followed by an ASCII string
numeric value followed by a carriage-return. A prompt (
>
) is then issued by the eb500.
>
command
<CR>
ACK | NAK<CR>
Err
number
<CR>
>