![Digi S6B Скачать руководство пользователя страница 47](http://html.mh-extra.com/html/digi/s6b/s6b_user-manual_2496668047.webp)
Modes
Modes of operation
XBee Wi-Fi RF Module User Guide
47
Receive mode
This is the default mode for the XBee Wi-Fi RF Module. The device is in Receive mode when it is not
transmitting data. If a destination node receives a valid RF packet, the destination node transfers the
data to its serial transmit buffer.
Configuration mode
You may not always know the parameters that the XBee Wi-Fi RF Module is configured with. If those
parameters affect how the XBee Wi-Fi RF Module enters Command mode, and if the parameters were
previously written to non-volatile memory, then Command mode is not available to either read the
parameters or to set them to known values. This makes configuring the device difficult unless you can
successfully guess the configuration to allow it to enter Command mode.
An example of this problem is when the UART baud rate is unknown. In this case, the
+++
sequence to
enter Command mode is not recognized due to a baud rate mismatch, preventing the device from
entering Command mode.
Force the device to enter Configuration mode
To overcome the issue of unknown configuration parameters, you can force the XBee Wi-Fi RF Module
into Command mode with a known configuration as follows:
While holding DIN low (asserting the break key), reset the device.
Rather than coming up in Transparent mode, which is normal, it comes up in Command mode and
issues the
OK
prompt with the following default parameters applied for operation while in Command
mode:
Parameter setting
Meaning
P3
= 1,
P4
= 1
UART enabled—only set for SPI-enabled devices
BD
= 3
9600 baud rate
SB
= 0
One stop bit
NB
= 0
No parity
RO
= 3
Three character times with no change on DIN before transmission
D6
= 0
No RTS flow control
D7
= 1
CTS flow control
FT
65 characters left in transmission buffer before CTS is turned off
CC
= 0x2b
+
is used for Command mode character
GT
= 0x3e8
One second guard time
CT
= 0x64
Ten second Command mode timeout
If the XBee Wi-Fi RF Module exits Configuration mode without changing any parameter values, then all
parameters revert to their previous unknown state after it exits Command mode. Also, any values
that you query return the previously written settings rather than the temporarily applied default
settings described above.