BACnet
Table of Contents:
1. BACnet
1.1 Introduction
1.1.1 What is BACnet
BACnet, short for Building Automation and Control networks.
The BACnet communication protocol defines a number of services for communication between devices, and services can be divided into five categories: services related to device object management including Who-Is, I-Am, Who-Has, and other services, services related to object access including reading attributes, writing attributes and other services, and services related to alarms and events include acknowledgment alarms, change of state reports, etc. In addition, there are services related to file reading and writing and virtual terminals.
1.1.2 List supported products and requirements
Gateway model: LPS8v2,LG01v2,MS20,MS48-LR
2. Bridge LoRaWAN network to BACnet network
By following the steps below in the configuration example, Users can convert the uplink data of the lorawan sensor to BACnet data
LPS8v2 includes a local ChirpStack Server. This example shows how to configure SN50V3_LB to use with BACnet. This example assumes users already have:
- SN50V3_LB register on LPS8v2 Built-In ChirpStack server already
- The user is able to see the data on the built-in ChirpStack server device page.
Below are the steps to configure lps8v2 BACnet.
2.1 Register gateway
For information on how to register a gateway connection to chirpstack, please refer to the link:
2.2 Register Node
For information on how to register a Node connection to chirpstack, please refer to the link:
https://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H2.A0Nodeusageintroduction
2.3 Configure BACnet
After completing the steps of registering the gateway and nodes as mentioned above, start configuring BACnet
Video on the configuration of BACnet:
Step 1. Enable BACnet
First, Uesrs need to click "BACnet-->BACnet Server" in the page
1.Enable BACnet:enable/ disable the BACnet mode
2.Mode:Configure the UDP mode
3.UDP Port:UDP/IP port number for BACnet/IP communications.
4.Device ID:This is the unique BACnet device identifier. The user has to be careful to avoid conflicts, by choosing an identifier, that is not currently used on the network.
5.Device Name:Determined by the manufacturer, indicating the device model.
6.Enable BBMD:BBMD is a "BACnet/IP Broadcast Management Device" and is used to distribute BACnet broadcast messages throughout a BACnet/IP network consisting of interconnected TCP/IP sub-networks. A BBMD forwards BACnet/IP broadcast messages sent by devices connected to its subnet to peer BBMDs. Upon arrival at a destination BBMD, the message is then re-broadcast on that subnet. BACnet/IP broadcast messages are also sent to registered BACnet/IP Foreign Devices.
7.BBMD IP Address:IPv4 address of BBMD or external device registrar.
8.BBMD IP Port:UDP/IP port number for external device registration
9.BBMD Subnet Mask:UDP/IP Subnet Mask number for external device registration
10.BBMD TimeToLive:Number of seconds used in Foreign Device Registration.
11.Save&Apply:Click after the configuration is completed
12.Refresh:Refresh the configuration
After starting BACnet, use Yabe BACnet tool to check
Click the "" to configure the connection to BACnet. Note that the Port needs to match the previous step, and the local endpoint is the address of the local host
Step 2. Configure BACnet Object
The user returns to the "BACnet-->BACnet Object" interface to generate object data
Object Name:Show the name of the BACnet object already created.
Object Type:Show the type of the BACnet object already created.
Object Value:Show the Object value of the BACnet object already created.
Object Units:Show the units of the BACnet object already created.
Object Description:Set the description of the BACnet object.
Last Seen:Show the latest update time of the current value of the BACnet object already created.
When the chirpstack built into the gateway can view the decoded data, click "Create Objects" in the "BACnet-->BACnet Object" page to check the sensor data and add it to the BACnet Object.
For example, configure the BACnet sensor data as follows
1.Create Objects:Create Object
2.LoRa Device:Select the sensor device DevEUI that needs to be added
3.Decode key:Select the required sensor decoding data
4.Object Name:Configure object Name
5.Object Type:Select Object Type
6.Object Units:Select the Object unit
7.Object Descripyion:Set the description of the BACnet object.
8.Create
step 3. Check Result
After completing all the above configurations, check the BACnet data