User guide
BB2-7040 User Guide – Rev. 1.2 Page 21
for transmission to the ZigBee device. After conversion to integer, the data is ANDed with the AND mask, and then
ORed with the OR mask. The resulting data is then inserted into the format string (see below).
Delete will remove the rule number shown in the "Map #" box. Insert will insert a new map before the map number
shown, and is used for placing maps between existing maps. It is not necessary to use Insert to add maps to the bottom of
the list or to define any map presently having zero for a source object or "none" for remote type.
Selecting "none" for remote device effectively deletes the map even though it will still appear in the list until deleted.
Unused maps at the end of the list will always show none as the type. If you wish to prevent these from being displayed,
reduce the number of maps enabled.
The number of maps enabled simply limits the scope of map review so that you do not have to review a lot of unused
maps. If the displayed maps are used up and you need more, increase the enabled number.
DATA FORMAT MASK
As of v3.01, the BB2-7040 is parepared to format raw binary (integer) data transmitted in ZigBee packets. Most ZigBee
devices have very limited resources (keeping power consumption low), and therefore will not support floating point. The
BB2-7040 is prepared to send binary/integer data and scale and convert as necessary to convert from analog floating
point data. In the event devices are found which do use IEEE754 floating point, support for that format will be added in a
later revision (contact tech support).
An example of a format mask is as follows:
[17][F][A][N][02]D4[X]
For this particular example, we select a device from the list which names a Digi International Smart Plug. Further, we
use a value of 1 for the AND mask, and 4 for the OR mask. The result of this configuration is that we will send D4=4 or
D4=5 to switch the Smart Plug's relay on and off. In our example, we are taking data from a local Binary Output object.
The result is that we now have BACnet control of the Smart Plug's relay being operated via ZigBee.
The fields available for a format mask are as follows:
[nn] is interpreted as a hex number producing 1 byte in the transmit packet
[F] is replaced with the next auto-generated frame ID as 1 byte, hex 0x0F as a number must be [0F]
[A] is replaced with the 64-bit address (as 8 bytes) of the device named in the map
[N] is replaced with 16-bit address (as 2 bytes) of the device named in the map
[X] is replaced with object data producing one byte (8-bit) from the value
[XX] is replaced with object data producing 2 bytes (16-bit)
[XXXX] is replaced with object data producing 4 bytes (32-bit) - data is big endian as required by ZigBee
All other ASCII characters are copied verbatim with their ASCII code placed in the respective byte position in the
packet.