Specifications
4
MaxStream XStream-PKG Wireless Modem Operation Manual
4.0 MaxStream Commands
The MaxStream XStream-PKG is available with advanced power-down and addressing options. These options can
be configured through either of the two command modes, binary, or AT commands. By default, all data received on
the RX pin is transmitted on the RF channel. The command modes differentiate commands from the data and allow
various operating parameters to be changed. These parameters that are changed can be saved in volatile memory to
be discarded when the modem powers off or is reset, or in non-volatile memory to be saved and used until they are
rewritten again.
4.1 Binary Commands
Send a binary command by asserting the RTS pin (pin 7) high and send the binary bytes that represent a command
and its parameters. Binary command bytes are organized as follows:
<Command><Parameter 1><Parameter...><Parameter N>
A command is one byte long. Parameters are two bytes long. “<” and “>” characters are used to indicate parameters
and are not actually part of the command.
The command type should be sent with RTS asserted. Do not de-assert RTS until after the stop bit of the last byte is
sent. It does not matter whether RTS is asserted when the parameters are sent. The command executes when all the
parameters associated with the command are sent. If all parameters haven’t been sent within 0.5 seconds, the
modem returns to data mode.
Commands can be queried for their current value by sending the command logically ORed with the value 0x80
hexadecimal with RTS asserted. No parameters are sent and the current value of the parameter is immediately sent
out the serial port. If the parameter is 2 bytes long the least significant bit is sent first.
Note:
When parameters are sent, they are always two bytes long; when they are read they are one or two bytes
long as indicated in the command table shown on page 5.
An example of binary commands include:
To set sleep mode to pin power down and store to non-volatile memory:
•Assert RTS
•Send bytes: 0x01, 0x00, 0x08
•De-assert RTS
4.2 AT Commands
AT commands are accessed through ASCII commands and parameters that can be sent from a terminal program
such as HyperTerminal. AT commands are sent as follows:
<AT><2 character command><space><parameter><CR>
•All characters must be ASCII displayable characters
•All alphabetic characters can be sent upper and lower
case
•All parameters must be made from ASCII
hexadecimal characters (0-9, a-f, A-F). Parameters
can be up to four characters long. All parameters are
specified as hex values.
•A space can be any non-alpha-numeric character.
•Carriage return (CR) is a byte value of 13 decimal
(0x0D).
Example:Send the following sequence of characters to change the user-defined address to 1A0D (hex).
+++
ATDT 1A0D<CR>
ATWR<CR>
ATCN<CR>