
Page
38
of
60
©
2019 Radiocrafts AS
MBUS User Manual (ver 2.01)
MBUS USER MANUAL
Example 6
– Read mailbox
Example
This example shows how to read back from mailbox #1 with the R-command.
Before sending the R-command you must set the module in configuration mode and wait for prompt
(>).
Command
Hex
Response
Comment/Note
Enter
0x00
‘>’
Enter CONFIG mode.
Wait for ‘>’ prompt.
Alternative
: Assert CONFIG pin.
De-
assert CONFIG after ‘>’ prompt
‘R’
0x52
‘>’
R-command entered.
Wait for ‘>’ prompt.
1
0x01
Contents
+
‘>’
Command argument.
Wait for ‘>’ prompt.
(A new command can be issued here)
‘X’
0x58
(none)
Exit CONFIG mode.
Module returns to IDLE state
Example 7
– Encrypt mailbox #1
Example
To encrypt the contents of mailbox #1 make sure that destination address in message matches a
message that is bound to the master. Also make sure that encryption methode and number of bytes
to be encrypted is set in the message itself.
Command
Hex
Response
Comment/Note
Enter
0x00
‘>’
Enter CONFIG mode.
Wait for ‘>’ prompt.
Alternative
: Assert CONFIG pin.
De-
assert CONFIG after ‘>’ prompt
‘E’
0x45
‘>’
E-command entered.
Wait for ‘>’ prompt.
1
0x01
‘>’
Mailbox #1 is being encrypted.
Wait for ‘>’ prompt.
(A new command can be issued here)
‘X’
0x58
(none)
Exit CONFIG mode.
Module returns to IDLE state