Binary Command Mode - Digi XTend User Manual

Rf module
Table of Contents

Advertisement

All of the parameter values in the sequence can be modified to reflect user preferences.
Send AT commands and parameters using the syntax shown below.
To read a parameter value stored in the module register, leave the parameter field blank.
The preceding example would change the module's Destination Address to "0x1F". To store the new value to non-
volatile (long term) memory, the Write (ATWR) command must subsequently be sent before powering off the module.
System Response. When a command is sent to the module, the module will parse and execute the command. Upon
successful execution of a command, the module returns an "OK" message. If execution of a command results in an
error, the module returns an "ERROR" message.
To Exit AT Command Mode:
1. If no valid AT Commands are received within the time specified by CT (Command Mode Timeout) Command, the
module automatically returns to Idle Mode.
[OR]
2. Send ATCN (Exit Command Mode) Command.

Binary Command mode

Sending and receiving parameter values using binary commands is the fastest way to change operating parameters
of the module. Binary commands are used most often to sample signal strength [refer to DB (Received Signal
Strength) parameter] and/or error counts; or to change module addresses and channels for polling systems when a
quick response is necessary. Since the sending and receiving of parameter values takes place through the same serial
data path as 'live' data (received RF payload), interference between the two types of data can be a concern.
Common questions about using binary commands:
What are the implications of asserting CMD while live data is being sent or received?
After sending serial data, is there a minimum time delay before CMD can be asserted?
Is a time delay required after CMD is de-asserted before payload data can be sent?
How does one discern between live data and data received in response to a command?
The CMD pin (pin 10) must be asserted in order to send binary commands to the module. The CMD pin can be asserted
to recognize binary commands anytime during the transmission or reception of data. The status of the CMD signal is
only checked at the end of the stop bit as the byte is shifted into the serial port. The application does not allow control
over when data is received, except by waiting for dead time between bursts of communication.
If the command is sent in the middle of a stream of payload data to be transmitted, the command will essentially be
executed in the order it is received. If the module is continuously receiving data, the radio will wait for a break in the
received data before executing the command. The CTS signal will frame the response coming from the binary
command request [refer to figure below].
A minimum time delay of 100 µs (after the stop bit of the command byte has been sent) must be observed before the
CMD pin can be de-asserted. The command executes after all parameters associated with the command have been
sent. If all parameters are not received within 0.5 seconds, the module returns to Idle Mode.
Note: When parameters are sent, they are two bytes long with the least significant byte sent first. Binary commands
that return one parameter byte must be written with two parameter bytes.
XTend RF Module User Guide
Modes of operation
23

Advertisement

Table of Contents
loading

Table of Contents