![CIRCUIT DESIGN SLR-434M Скачать руководство пользователя страница 12](http://html1.mh-extra.com/html/circuit-design/slr-434m/slr-434m_operation-manual_2608049012.webp)
OPERATION GUIDE
OG_SLR-434M_v10e
Circuit Design, Inc.
12
9. Serial communication commands
The table below shows examples of the basic commands and responses.
See the operation guide
"SLR-434M Serial Communication"
for details and other command values.
Item
Commands
Value
(hex)
Options
Response example
Content (with a response example)
Radio
communication
mode setting
@MO
00
*WR=PS
*MO=00
FSK BIN MODE
Sets the
communication mode
to FSK binary mode.
The value set is
automatically saved and
the device restarts.
A character string that
indicates the mode of
the response example
is output after
restarting.
In the binary mode, it is
not possible to receive
any commands,
therefore it is necessary
to set the INI terminal to
Low for more than 3
seconds to return to the
command mode.
01
*WR=PS
*MO=01
FSK CMD MODE
Sets the
communication mode
to FSK command
mode.
02
*WR=PS
*MO=02
LORA BIN MODE
Sets the
communication mode
to LoRa binary mode.
03
*WR=PS
*MO=03
LORA CMD MODE
Sets the
communication mode
to LoRa command
mode.
LoRa
Number of chips
setting
@SF
00
*SF00
Sets the number of chips with LoRa to 128 chips.
/W
*WR=PS
*SF00
Channel setting
@CH
4A
*CH1B
Sets the communication frequency to 434.000
MHz (See '7.Communication frequency table'.)
/W
*WR=PS
*CH1B
ID setting
(Equipment,
Target station,
Group ID)
@EI
@DI
@GI
0A
(With Equipment ID)
*EI=0A
Sets the Equipment ID (local station) to “0A”
(Sets the ID for identifying each radio station and
the other party in communication.)
/W
*WR=PS
*EI=0A
Transmit data
@DT
05abcde
*DT=05
Sends the 5-byte data “abcde”.
Receive data
*DR=05abcde
Indicates that the 5-byte data “abcde” was
received.
RSSI acquisition
for the last data
received.
@RS
*RS=-100dBm
Acquires the RSSI level (strength of the radio
waves of the received signal) for the last data
received.
Current RSSI
acquisition
@RA
*RA=-120dBm
Acquires the current RSSI level (radio wave
strength) of the channel set.
Contact function
IO setting
@PS
0F
*PS =0F
Sets contacts DIO1 to DIO4 as input ports and
DIO5 to DIO8 as output ports.
/W
*WR=PS
*PS=0F
Contact state
check and
setting
@PO
10
*PO=10
Sets contact DIO5 to Hi. Acquires the status if it
is the input port.
/W
*WR=PS
*PO=10
Target station
contact state
check and
setting
@PT
*PT=10
*PR=040280
Acquires the contact information of the target
station.
(“* PR =...” shows the response from the target
station.)
20
*PT=20
*PR=040220
Sets the contact status of the target station.
(“* PR =...” shows the response from the target
station.)
Contact
communication
mode setting
@PM
01
*PM=01
If the status of the contacts set to input changes,
the contact information is transmitted
automatically (once).
If the target station receives this signal, the
status of the corresponding contact output
changes.
/W
*WR=PS
*PM=01