Page
28
of
60
©
2019 Radiocrafts AS
MBUS User Manual (ver 2.01)
MBUS USER MANUAL
Example 4
– Message with Transport Layer encryption
Example
Given that the conditions below are met, the packet shown below can be sent over the air
and will be encrypted.
•
Slave is registered on master at slave address #1
•
Slave has it’s own key in key register #1
•
Master has the slave key at the register where slave is installed (#1)
•
Encrypt/decrypt flags are set in flag registers
L C
LL_HEADER
TPL_LONG_HEADER
APPLICATION DATA
M
ID
1
M
ID
2
UID
1
UID
2
UID
3
UID
4
VE
R
D
EV
CI
UID4
UID3
UID2
UID1
M
ID2
M
ID1
VE
R
D
EV
AN
ST
A
T
CF2
CF1
P
A
D
1
P
A
D
1
CI
D
IF
VIF
D
A
TA
D
A
TA
D
IF
VIF
D
A
TA
D
A
TA
P
A
D
2
P
A
D
2
P
A
D
2
P
A
D
2
P
A
D
2
P
A
D
2
R
SS
I
C
R
C
Field
Hex
Comment/Note
L
0x26
Length of MBUS packet.
C
0x44
C-field (0x44 = SND-NR). Added automatically.
Set value in configuration mode during initialization
MAN_ID1
MAN_ID2
0xAB
0xCD
Manufacturer ID. MSB first. Added automatically.
Set value in configuration mode during initialization
.
U_ID1
U_ID2
U_ID3
U_ID4
0x12
0x34
0x56
0x78
Unique ID. MSB first. Added automatically.
Set value in configuration mode during initialization
.
VER
0x01
Version. Added automatically.
Set value in configuration mode during initialization
.
DEV
0x04
Device Type (0x04 = Heat meter). Added automatically
Set value in configuration mode during initialization.
CI
0x72
CI field (0x72 = Long header).
UID4
UID3
UID2
UID1
0x78
0x56
0x34
0x12
Unique ID. LSB first.
Not
added automatically.
MID2
MID1
0xCD
0xAB
Manufacturer ID. LSB first.
Not
added automatically.
VER
0x01
Version.
Not
added automatically.
DEV
0x04
Device Type.
Not
added automatically.
AN
0x01
Access Number
STAT
0x00
Status
CF2
0x10
Configuration Word 2
CF1
0xC5
Configuration Word 1