Page
8
of
29
©
2019 Radiocrafts AS
RC1180-MPC1/RC1701HP-MPC1 User Manual (rev. 1.1)
RC1180-MPC1
USER MANUAL RC1701HP-MPC1
7 Set up and use encryption
The module supports security mode 5, using AES-128-CBC encryption.
The ENCRYPT_FLAG and DECRYPT_FLAG parameters are used to set the flags to enable / disable the
encryption when transmitting and receiving messages.
The 16 byte encryption key is set as part of the configuration memory and can be configured either by UART or
OTA123.
Example 1
– Set encryption key via UART
Example
To set the encryption key to 00112233445566778899AABBCCDDEEFF, send the follow sequence
to the MPC1 using the UART interface:
Command
Hex
Response Comment/Note
(Wake up)
0xFF
Wake up the UART interface
Enter
0x00
‘>’
Enter CONFIG mode.
Wait for ‘>’ prompt.
‘M’
0x4D
‘>’
M-command entered.
Wait for ‘>’ prompt.
0x40 0x00
(none)
Key’s MSB address and value
0x41 0x11
…
0x4F 0xFF
(none)
Additional address and value pairs
Key’s LSB address and value
(Exit ‘M’)
0xFF
‘>’
Exit M-command
Wait for ‘>’ prompt.
‘Z’
0x5A
(none)
Exit CONFIG mode.
Module returns to SLEEP state
Note!
The module does not support encrypted messages for the OTA123 update procedure.