Description

Niagara® is a building management system that utilizes an HTML framework to connect embedded devices or systems across a large number of manufacturers and communication protocols.This article will describe how to integrate Milesight LoRaWAN gateways to Niagara platform via BACnet/IP protocol, and achieve the uplinks and downlinks.

 

Requirement

  • Milesight LoRaWAN Gateway: UG56, UG65, UG67
  • LoRaWAN End Device: take UC300 as example
  • Niagara BMS Platform

 

Configuration

1. Add LoRaWAN Device to Gateway

Refer to How to Connect LoRaWAN Nodes to Milesight Gateway to add LoRaWAN end devices to gateway.

 

 

2. Gateway BACnet Configuration

Refer to How to Integrate LoRaWAN Sensor to BACnet BMS System via Milesight Gateway to enable BACnet feature and add BACnet objects of UC300 to the gateway.

 

Please note that the gpio_output_1 and gpio_output_2 of the UC300 are crucial, as these objects will be used later to implement downlink control functionality.

 

3. Connect Niagara to Gateway BACnet Server

Use the Tridium EMEA Workbench tool to log into the Niagara platform. After installation, there is usually a default Station. In this case, the Station name is "Milesight." Right-click and select connect, then follow the prompts to fill in the login information. Typically, the username is admin, and the password should be provided as per your setup.

 

 After logging into the Station:

 

 

 

Navigate to Station > Config > Drivers > BacnetNetwork. Double-click the BacnetNetwork button, which will display the Database interface as shown:

Click the Discover button to search for the gateway BACnet server:

 

Please note that already added servers are displayed in the lower section, while newly discovered ones appear in the upper section. Locate your UG65 gateway by matching the Device Name with your gateway's ID, then select it and click the Add button (In this example the ID is UG65-6221C4766809).

 

After add, double-click "UG65-6221C4766809" in the navigation panel to view the BACnet Server information (which corresponds to the BACnet Server configured on your gateway).

 

 

 

 

4. Import BACnet Object Information

Double-click Points, then click Discover in the interface. After a few seconds, you will see the BACnet object information added on the gateway.

 

 Select the objects you need, then click Add. Once added, you will see them in the Database section at the bottom.

 

5. Remotely Control the UC300 DO Output

Double-click Virtual, and you will see a list of properties for the imported BACnet objects. Find the object you want to control. In this example, it's named binaryOutput_0.

 

Expand this object and locate presentValue. Manually modify the value, for example, switch from "High" to "Low." After modifying, click the Save button, and check the if the DO status of  UC300 changes after a while. If changed, it means the command was successfully sent from the Niagara platform to the LoRaWAN device through the gateway.

 

You can also see in the gateway's data stream that a downlink command was sent to the UC300 device:

 

 

 

6. Check UC300 Reported Data

Double-click Points, and you will find the corresponding real-time values in the Name and Out columns of the Database interface. This indicates that Niagara has successfully received and is updating the BACnet object values in real-time.

 

 

---END---