frangoteam / FUXA

Web-based Process Visualization (SCADA/HMI/Dashboard) software
https://frangoteam.org
MIT License
2.59k stars 769 forks source link

Bacnet Device connection error #949

Open diegomardev opened 9 months ago

diegomardev commented 9 months ago

Describe the bug Hi, I was testing a bacnet device but I couldn't read anything, neither devices nor variables. From the YABE program I can now read this device correctly. Can you tell me what I should be doing wrong? image image image image

Environment

Thanks!

Staybik commented 8 months ago

Hi I also have same problem with connection.

i looked in console and i’m guessing something is wrong with timeout becouse no matter wich value of pull or timeout i set in webUI, An timeout error on console is displayed every 5sec.

So i’m guessing a node-bacnet is starting making connection but it cannot get whole data.

Environment

FUXA version: 1.1.15-1324 Node.js version: 14.21.3

Thanks for your help.

unocelli commented 8 months ago

HI, I just tested with 'ProtoSense Technologies BACnet/IP Device Server Simulator' and for me work as expected you have set as interface the IP address where FUXA server runs?

bacnet

diegomardev commented 7 months ago

Yes I have configured the IP as seen in the screenshots or is it somewhere else where I should configure it? Is it possible that you are using another version of node? Thanks

unocelli commented 7 months ago

I tested with v14.21.3

Staybik commented 7 months ago

Hi I’m doing config just like you But also I’ve tried to change adpu timeout to 60000, change broadcast IP to 192.168.19.255, change broadcast IP accorded to BACnet device, change pool time to 1,10,30sec and I still got communication error.

I don’t know why when i’m changing timeout or pool on web ui on console I still got timeout after 5sec no matter what time i set on ui IMG_5477

Thanks for your help !

nelumeh commented 6 months ago

Has anyone found a solution to the problem?

acloaf commented 6 months ago

I'm also experiencing the same problem.

I have exactly the same settings as you do; interface is the FUXA server IP, port 47808, adpu 60000. I had a machine running OrcaView go down and am trying to get a quick system in place until it's replaced.

Edit: I have been trying to run it in a docker container. I set up the network so that the docker container runs on the same subnet as the BACnet system. Just to test, I installed using npm on a different machine and BACnet immediately connected. My issue seems to be related to connecting to BACnet from a docker container.

diegomardev commented 5 months ago

I'm also experiencing the same problem.

I have exactly the same settings as you do; interface is the FUXA server IP, port 47808, adpu 60000. I had a machine running OrcaView go down and am trying to get a quick system in place until it's replaced.

Edit: I have been trying to run it in a docker container. I set up the network so that the docker container runs on the same subnet as the BACnet system. Just to test, I installed using npm on a different machine and BACnet immediately connected. My issue seems to be related to connecting to BACnet from a docker container.

I have tried to test this on a new machine without Docker with directly npm, but the result is the same, and it doesn't connect via BACnet. Has anyone managed to solve this?

unocelli commented 5 months ago

Hi, is there a freeware simulator for pc so that the problem can be reproduced?

nelumeh commented 5 months ago

Hi, is there a freeware simulator for pc so that the problem can be reproduced?

Try to use BACnet Simulator from CBMS (https://www.cbmsstudio.com/downloads.html).

In my case, the issue arises in the Linux system where FUXA is running. However, if I use the Windows system with FUXA installed, BACNet devices are properly detected.

diegomardev commented 5 months ago

Hola, ¿existe algún simulador gratuito para pc para poder reproducir el problema?

Intente utilizar BACnet Simulator de CBMS ( https://www.cbmsstudio.com/downloads.html ).

En mi caso, el problema surge en el sistema Linux donde se ejecuta FUXA. Sin embargo, si uso el sistema Windows con FUXA instalado, los dispositivos BACNet se detectan correctamente.

I tested both on Linux and on Windows with docker and I have the same problem.

unocelli commented 5 months ago

Hi, fuxa uses the node-bacnet library, do you know of a working project that uses the same library?

nelumeh commented 5 months ago

Hi,

One of the solutions to the problem in the Linux system may be ignoring the address '0.0.0.0'. The changes should be made in the file /runtime/devices/bacnet/index.js:325. After such an operation, BACnet starts correctly, and it is possible to connect to devices.

I don't know how to solve this in proper way.

obraz_2024-03-11_144142212

obraz_2024-03-11_144753323

unocelli commented 4 months ago

I have updated the bacnet branch, which now becomes the reference branch for try to fix the problems