Page
22
of
60
©
2019 Radiocrafts AS
MBUS User Manual (ver 2.01)
MBUS USER MANUAL
5 Installation and Binding
In order to use encryption or two-way communication (or both), slaves must be installed at the gateway. The
installation feature can also be used to filter out messages from the slaves of interest. When INSTALL_MODE =
0x00 (Filter on), only messages from the installed slaves will be output on UART.
5.1 Available address registers, key registers and flag registers
To bind a slave to a master, the slave’s address must be stored in an address register on the master. MBUS3 has
64 such address registers, numbered 1-64. MBUS4 has 254 address registers, 4 of which are in RAM only.
MBUS3 has the same number of address registers, key registers and flag registers, and an installed slave must
use the same number for address, key and flags.
MBUS4 has 254 address registers, 254 key registers and 132 flag registers. However, MBUS4 has additional
commands and features so that slave addresses and keys can be stored in the host MCU. It also has 4 RAM-
based address/key/flag numbers that can be used to set up two-way communication to any slave. You can read
more about this in chapter 7.9. The table below shows an overview of address register numbers, key and flag
registers.
#
Address register
Key register
Flag register
1
MBUS3 & MBUS4
(NVM)
MBUS3 & MBUS4
(NVM)
MBUS3 & MBUS4
(NVM)
64
65
MBUS4
(NVM)
MBUS4
(NVM)
MBUS4
(NVM)
128
129
MBUS4
(RAM)
MBUS4
(RAM)
MBUS4
(RAM)
132
133
MBUS4
(NVM)
MBUS4
(NVM)
254
5.2 The installation and binding process
The installation and binding process can be devided as such:
o
Gateway is set into INSTALL_MODE = 0x01.
This can be done by using the ‘I’-command. In this mode all
incoming messages of type SND-IR will be output on UART TXD. Other message types will be ignored.
o
Host MCU evaluates SND-IR message and extracts address.
o
Host MCU has control over which installation addresses that are available and decides on which Installation
address to install the slave.
o
The host MCU sends a Bind command (‘B’) to Radiocrafts module with installation address and slave
address.
o
The host MCU sets INSTALL_MODE = 0x00 (Filter on).
o
The host MCU sets up two way communication so that next time the same slave sends SND-IR message it
will be replied automatically with CNF-IR (optional)