M4M Bacnet Communication
M4M Bacnet Communication
M4M Bacnet Communication
CO MM U NI CAT I O N PR OTOC O L
BACNET MANUAL
M4M Network analyzers
Table of Contents
1 General ......................................................................................................................................... 3
1.1 BACnet ............................................................................................................................................3
1.1.1 BACnet/IP data link layer ..........................................................................................3
1.1.2 Frame layout and data encoding ............................................................................3
1.1.3 Frame size and segmentation .................................................................................3
3 Objects ......................................................................................................................................... 7
3.1 Properties ...................................................................................................................................... 7
3.2 List of BACnet objects ................................................................................................................ 7
3.2.1 Device Object ............................................................................................................. 8
3.2.2 Analog value objects ................................................................................................ 8
3.2.3 Realtime measurements .......................................................................................... 8
3.2.4 Energies....................................................................................................................... 9
3.2.5 Power ........................................................................................................................... 9
3.2.6 Power quality.............................................................................................................10
3.2.7 Phase angle ...............................................................................................................10
3.2.8 Average/Max/Min .................................................................................................... 11
3.2.9 Harmonics.................................................................................................................. 13
3.2.10 Integer value objects ............................................................................................... 21
3.2.11 Multi-state value objects ........................................................................................ 21
3.2.12 Characteristing value objects ............................................................................... 21
2 /21
BACNET MA NUAL
1 General
M4M network analyzers offer includes versions with BACnet communication pro-
tocol (M4M 20 BACnet and M4M 30 BACnet)
1.1 BACnet
BACnet is data communication protocol for Building Automation and Control net-
works designed for building automation networks. It is defined by ANSI/ASHRAE-
135 standard document. The protocol defines standard for data exchange be-
tween devices present in building automation networks, including HVAC, lighting
control, access control. BACnet is object-oriented, client-server protocol.
ANSI/ASHRAE-135 defines list of standard object types and services that allow
accessing, modification and interactions with objects as well as discovering the
network devices and their capabilities. Also data-link/physical layers are defined
by the standard.
The standard allows sending messages above accepted length and defines seg-
mentation rules that should be followed when transmitting segmented mes-
sages. Segmentation support is not required by standard for each device and can
be supported for receive, transmission or in both directions. Each BACnet device
3/ 21
BACNET MA NUAL
M4M BACnet does not support segmentation, neither receive nor transmission.
4/2 1
BACNET MA NUAL
2 Supported features
2.1 Services
ANSI/ASHRAE-135 contains series of services that define how BACnet devices
with different capabilities interact with each other and exchange information
over network.
All services defined by BACnet standard have client-side and server-side imple-
mentation, called ‘initiate’ and ‘execute’ accordingly. Specific device profiles re-
quire implementation of particular services within ‘initiate’, ‘execute’ or both of
them. Table 2 contains summary information of services implemented by M4M
BACnet meters.
Services divide into two categories: confirmed and unconfirmed. In case of con-
firmed services BACnet server devices are required to send any kind of response,
accept, reject or error, while unconfirmed services does not have such require-
ment.
5 /2 1
BACNET MA NUAL
M4M BACnet implements all services required according to its BACnet profile, i.e. Who-Has, I-
Have, Who-Is, I-Am.
When client-side device sends Who-Is or Who-Has request device that resolves as requested
one shall respond with initiating I-Am or I-Have message respectively. Request for discovering
device or object can be called with given object-identifier or object-name.
M4M BACnet supports disabling communication for finite time duration only without pass-
word.
BACnet devices require exchanging broadcast datagrams between each-other for full opera-
tion of the network. Due to security reasons broadcast messages are usually blocked by net-
working routers and gateways. Thus ANSI/ASHRAE-135 defines foreign device that is outside
of its physical BACnet network or logical subnet, and is capable of communicating with the
remaining network. In order to do that BACnet network has to be equipped with BACnet
Broadcast Management Device (BBMD) which is gateway between BACnet subnets and for-
eign devices.
When configured, the device sends subscription request directly to the BBMD which stores
list of all registered foreign devices. Then BBMD is capable of forwarding all broadcast mes-
sages to foreign devices.
The subscription of foreign device is time-finite with period defined by device itself and has
to be renewed before expiration in order to maintain uninterrupted communication with the
device.
M4M BACnet is capable of registering as a foreign device when proper configuration is pro-
vided. In order to do that BBMD mode shall be enabled and proper parameters for BBMD IP
address, BBMD UDP port and BBMD TTL shall be set.
6/ 21
BACNET MA NUAL
3 Objects
BACnet standard defines object-oriented approach to access all information that
shall be exchanged over BACnet network. Each object is identified by its object-
identifier that consists of object-type and object instance. Object-identifier must
be unique for each object within one BACnet device. BACnet standard defines
some standard object types, vendors are allowed to create proprietary object
types with custom implementation as long as they meet basic requirements that
are applicable to objects of all types.
Each of regular device shall contain exactly one instance of device object-type.
Device object instance number and object-name shall be unique over BACnet net-
work.
3.1 Properties
BACnet has definition for available property types. Primitive data types include
Collection of properties can be presented as BACnet arrays or BACnet lists.
BACnet array is one-indexed collection of elements having the same data type
that allows accessing elements of the array by reading each individual of them
or accessing whole array. Reading array with given index equal to zero returns
size of the array. The array can be empty, i.e. its size can be equal to zero.
BACnet list is one-based collection of elements having the same data type. BAC-
net list can be accessed using special-purpose service read-range.
7/ 21
BACNET MA NUAL
8 /21
BACNET MA NUAL
3.2.4 Energies
3.2.5 Power
9/ 21
BACNET MA NUAL
1 0/2 1
BACNET MA NUAL
3.2.8 Average/Max/Min
1 1/2 1
BACNET MA NUAL
641 MIN_APPARENT_POWER_L1
642 MIN_APPARENT_POWER_L2
643 MIN_APPARENT_POWER_L3
701 MAX_VOLTAGE_L1
702 MAX_VOLTAGE_L2
703 MAX_VOLTAGE_L3
704 MAX_VOLTAGE_L1_L2
705 MAX_VOLTAGE_L2_L3
706 MAX_VOLTAGE_L1_L3
711 MAX_CURRENT_L1
712 MAX_CURRENT_L2
713 MAX_CURRENT_L3
714 MAX_CURRENT_NEUTRAL
720 MAX_ACTIVE_POWER_TOTAL
721 MAX_ACTIVE_POWER_L1
722 MAX_ACTIVE_POWER_L2
723 MAX_ACTIVE_POWER_L3
730 MAX_REACTIVE_POWER_TOTAL
731 MAX_REACTIVE_POWER_L1
732 MAX_REACTIVE_POWER_L2
733 MAX_REACTIVE_POWER_L3
740 MAX_APPARENT_POWER_TOTAL
741 MAX_APPARENT_POWER_L1
742 MAX_APPARENT_POWER_L2
743 MAX_APPARENT_POWER_L3
1 2/2 1
BACNET MA NUAL
3.2.9 Harmonics
13 /21
BACNET MA NUAL
1 4/ 21
BACNET MA N UAL
1 5/ 21
BACNET MA NUAL
16 /21
BACNET MA NUAL
1 7/21
BACNET MA NUAL
1 8/2 1
BACNET MA NUAL
19 /21
BACNET MA NUAL
2 0/2 1
BACNET MA NUAL
2 1/2 1