Page
37
of
60
©
2019 Radiocrafts AS
MBUS User Manual (ver 2.01)
MBUS USER MANUAL
7.10 Examples
Example 5
– Write to mailbox
Example
This example shows how to write a SND-UD2 message to mailbox #1 with the W-command.
Before sending the W-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
‘W’
0x57
‘>’
W-command entered.
Wait for ‘>’ prompt.
1
0x01
(none)
Write to mailbox #1
0x43
0x1D
0x6D
0x04 0x03
0x02 0x01
0xAE 0x0C
0x01 0x07
0x7D 0x00
0x10 0xC5
0x2F 0x2F
0x01 0x32
0x01 0x00
0x00 0x00
0x00 0x00
0x00 0x00
0x2F 0x2F
0x2F 0x2F
‘>’
C-field SND-UD2
Length excluding C-field and Length byte
CI-field
Address
Address
Address
Address
16 bytes to be encrypted, enc.method 5
1 block (16 bytes) user data, padded
with 0x2F.
Wait for ‘>’ prompt.
(A new command can be issued here)
‘X’
0x58
(none)
Exit CONFIG mode.
Module returns to IDLE state