Domnev: Difference between revisions

From Teltonika Networks Wiki
No edit summary
No edit summary
Line 3: Line 3:
This article contains instructions on how to set up BACnet on Teltonika Networks devices.
This article contains instructions on how to set up BACnet on Teltonika Networks devices.


BACnet provides a standardized way for devices from different manufacturers to communicate with each other and integrate seamlessly into a building automation system. This allows building managers and operators to monitor and control various building systems from a central location, optimizing energy efficiency, reducing operating costs, and improving occupant comfort and safety.
==Configuration overview and prerequisites==
==Configuration overview and prerequisites==


Line 18: Line 19:
'''Note''': This is additional software that can be installed from the '''Services → [[RUT955_Package_Manager|Package Manager]]''' page.
'''Note''': This is additional software that can be installed from the '''Services → [[RUT955_Package_Manager|Package Manager]]''' page.


== BACnet/IP configuration==
== BACnet/Ethernet configuration==


[[File:BACnet Topology 1.png|border|center|class=tlt-border|576x221px|]]
[[File:BACnet Topology 1.png|border|center|class=tlt-border|800x260px|]]


The controller is directly connected to RUT955 via RS485; The router forwards the data from the controller to the BACnet server to the PC.
The controller is directly connected to RUT955 via RS485; The router forwards the data from the controller to the BACnet server to the PC.
Line 48: Line 49:


== BACnet/IP via LTE configuration ==
== BACnet/IP via LTE configuration ==
Bacnet BBMD – stands for "BACnet Broadcast Management Device." A BBMD is a device that manages the routing of BACnet broadcast messages across different IP subnets. When a BACnet device sends a broadcast message, it is typically sent to all devices on the same subnet, but not to devices on other subnets. However, sometimes it is necessary for broadcast messages to be sent to devices on multiple subnets. This is where a BBMD comes in.


[[File:BACnet Topology 2.png|border|center|class=tlt-border|619x230px]]
[[File:BACnet Topology 2.png|border|center|class=tlt-border|876x321px]]


In this topology, there are two RUT955 routers - RUT1 and RUT2. RUT1 is connected to the server via LAN, and RUT2 is connected to the controller via RS485. RUT2 transmits data to RUT1, which then forwards it to the BACnet server.
In this topology, there are two RUT955 routers - RUT1 and RUT2. RUT1 is connected to the server via LAN, and RUT2 is connected to the controller via RS485. RUT2 transmits data to RUT1, which then forwards it to the BACnet server.
Line 61: Line 63:
----
----
Install the BACnet package on RUT1, then go to '''Services → BACnet''' and '''enable''' the instance. Everything else can be left as is or changed to suit your needs.
Install the BACnet package on RUT1, then go to '''Services → BACnet''' and '''enable''' the instance. Everything else can be left as is or changed to suit your needs.
 
[[File:BACnet router1.png|border|center|class=tlt-border|746x222px]]
[[File:BACnet enable instance.png|border|center|class=tlt-border|818x210px]]


==== Firewall ====
==== Firewall ====
Line 137: Line 138:
A guide on how to set up an RMS VPN hub can be found [https://youtu.be/dfAudZR2wPY here].
A guide on how to set up an RMS VPN hub can be found [https://youtu.be/dfAudZR2wPY here].


[[File:RMS VPN BACnet.png|border|center|class=tlt-border|902x612px]]
[[File:RMS VPN BACnet fixed.png|border|center|class=tlt-border|995x500px]]


Both RUT1 and RUT2 have to be added to the RMS VPN Hub.
Both RUT1 and RUT2 have to be added to the RMS VPN Hub.

Revision as of 09:52, 9 March 2023

The information in this page is updated in accordance with 00.07.03.4 firmware version .

Introduction

This article contains instructions on how to set up BACnet on Teltonika Networks devices.

BACnet provides a standardized way for devices from different manufacturers to communicate with each other and integrate seamlessly into a building automation system. This allows building managers and operators to monitor and control various building systems from a central location, optimizing energy efficiency, reducing operating costs, and improving occupant comfort and safety.

Configuration overview and prerequisites

Before we begin, let's take a look at the configuration that we are attempting to achieve and the prerequisites that make it possible.

Prerequisites:

  • Two RUT955;
  • Controller;
  • BACnet Server;
  • An end device (PC, Laptop) for configuration;

If you're having trouble finding any page or some of the parameters described here on your device's WebUI, you should turn on "Advanced WebUI" mode. You can do that by clicking the "Basic" button under "Mode," which is located at the top-right corner of the WebUI.

Note: This is additional software that can be installed from the Services → Package Manager page.

BACnet/Ethernet configuration

The controller is directly connected to RUT955 via RS485; The router forwards the data from the controller to the BACnet server to the PC.

BACnet


Install the BACnet package on RUT955 and navigate to Services → BACnet and enable the instance. Everything else can be left as is or changed to suit your needs.

Server


For the server, Yet Another BACnet Explorer (YABE) is used. YABE is an open-source BACnet Explorer that is designed to be lightweight, fast, and easy to use.

Open the software and click on the green plus sign to add a new device. Then a new window will pop up; there, select the local endpoint IP address and click Start. Everything else can be left as is or changed to suit your needs.

Select the newly created communication node and right-click on it to send WhoIs request (application might send these automatically).

Results


In cases of success, you see the connected BACnet device and its parameters.

BACnet/IP via LTE configuration

Bacnet BBMD – stands for "BACnet Broadcast Management Device." A BBMD is a device that manages the routing of BACnet broadcast messages across different IP subnets. When a BACnet device sends a broadcast message, it is typically sent to all devices on the same subnet, but not to devices on other subnets. However, sometimes it is necessary for broadcast messages to be sent to devices on multiple subnets. This is where a BBMD comes in.

In this topology, there are two RUT955 routers - RUT1 and RUT2. RUT1 is connected to the server via LAN, and RUT2 is connected to the controller via RS485. RUT2 transmits data to RUT1, which then forwards it to the BACnet server.

For this configuration, you must have a public IP address. You can read more on this in our article on Private and Public IP Addresses.

Router 1


BACnet


Install the BACnet package on RUT1, then go to Services → BACnet and enable the instance. Everything else can be left as is or changed to suit your needs.

Firewall


The configuration will also require you to add a port-forward rule to the firewall configuration. To do that, open RouUT1ebUI and navigate to Network → Firewall → Port Forwards. Create a port forward rule to forward UDP packets from RUT2 WAN to the RUT1 LAN address port.

  1. Enable instance
  2. Name - enter desired name
  3. Protocol - UDP
  4. Source zone - WAN
  5. External port - YABE port
  6. Internal zone - LAN
  7. Internal IP address - PC LAN IP
  8. Internal port - YABE port

Note: When YABE sends registration packets you will need to find out which port YABE is using (One way is to look through the traffic with wireshark on your PC or TCP dump on RUT1 or RUT2)

If you restart the YABE software or delete and recreate a new communication device, YABE may use a different port number, in which case you must change the port forward configuration in the router connected to your PC.

Router 2


BACnet


Navigate to Services → BACnet, there:

  1. Enable BACnet
  2. Enable BBMD
  3. BBMD interface - select the interface with Public IP.
  4. Enable Port forward - this will automatically create a port forward rule.

Everything else can be left as default or changed according to your needs.

Firewall


If you would like manually creating a port forward rule, navigate to Network → Firewall → Port Forwards.

File:BACnet firewall router2.png
  1. Enable instance
  2. Name - enter desired name
  3. Protocol - UDP
  4. Source zone - WAN
  5. External port - 47808
  6. Internal zone - LAN
  7. Internal IP address - Router LAN IP
  8. Internal port - 47808

Server


Open the software and click on the green plus sign to add a new device. Then a new window will pop up; there, select the local endpoint IP address and click start. Everything else cane be left as default or changed according to your needs.

Then select the node and go to Meniu → Functions → IP services → Foreign device registration and enter the public IP address of RUT2 (the one connected to controller).

Results


In case of success, you see the device connected via gateway.

BACnet/IP via RMS VPN configuration

If having a public IP is not an option, RMS VPN could be used as an alternative to access your device over the internet. RMS VPN is a service designed for remote efficient, low-cost management of large-scale networks. In contrast to point-to-point VPN services, RMS VPN enables the instant creation of encrypted VPN tunnels for secure access to multiple endpoints.

RMS VPN


A guide on how to set up an RMS VPN hub can be found here.

Both RUT1 and RUT2 have to be added to the RMS VPN Hub.

RUT1 & RUT2


Once RMS VPN Hub is set up, follow the RUT1 and RUT2 configuration described above.

See also

BACnet on RUT955

Port-forward on RUT955

External links

Yabe

RMS