Chengdu Ebyte Electronic Technology Co.,Ltd.
E150-400T30S user manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
19
Chapter 6 working mode
The module has three working modes, which are controlled and set by the device mode register; Details
are shown in the table below:
Mode (0-2)
Mode introduction
Remark
Instruction (take
address 01 as an
example)
0 normal mode
1. The serial port is turned on, the
wireless port is turned on, and all kinds
of peripherals are turned on
2. If the receiver is operating in mode 1,
the
preamble
register
needs
to
be
configured to use Lora for remote access
Receiver works in
mode 0 and 1
01 06 07 EB 00 00 F8 8A
(1) Wor mode
1. According to the wor cycle register,
periodically wake up the MCU to enter the
receiving mode
2. Wor mode cannot actively transmit RF, but
can passively reply RF data
3. The serial port must be awakened
according to the sequence to work
Receiver works in
mode 0 and 1
01 06 07 EB 00 01 39 4A
(2) sleep
mode
1
. The serial port must be awakened
according to the sequence to work
2. All peripherals sleep
3. All IO states are forced to change,
please refer to the pin state of sleep mode
All peripherals go
to sleep
01 06 07 EB 00 02 79 4B
6.1 UART sleep wake
when working in wor mode or sleep mode, you need to wake up the module according to a specific
timing. You can use any baud rate before entering sleep. If the baud rate is less than 9600,
it is recommended to directly use the command of switching mode to wake up. The wake-up process
is as follows:
Wake up process: (the module is already working in wor mode or sleep mode, taking address 01 as an
example)
① Send MODBUS command (command to switch mode to normal mode: 01 06 07 EB 00 00 F8 8a);
② After a delay of 50ms, send this command again to complete the mode switching. (Note 1)
matters needing attention:
1. If the baud rate of the customer is 1200 BPs, a delay of 100ms is required, and the delay of 50ms
is uniformly adopted for other baud rates;
2. After the client wakes up by sending the first packet of data, the module will remain awake for
about 500ms, and the client needs to complete the sending of serial port data within this time interval;