Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bacnet Device connection error #949

Open
diegomardev opened this issue Nov 6, 2023 · 14 comments
Open

Bacnet Device connection error #949

diegomardev opened this issue Nov 6, 2023 · 14 comments
Labels
need investigation need investigation

Comments

@diegomardev
Copy link

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

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

Thanks!

@unocelli unocelli added the need investigation need investigation label Nov 12, 2023
@Staybik
Copy link

Staybik commented Dec 21, 2023

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

I tested with v14.21.3

@Staybik
Copy link

Staybik commented Jan 3, 2024

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
Copy link

nelumeh commented Jan 31, 2024

Has anyone found a solution to the problem?

@acloaf
Copy link

acloaf commented Feb 12, 2024

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
Copy link
Author

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
Copy link
Member

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

@nelumeh
Copy link

nelumeh commented Feb 26, 2024

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
Copy link
Author

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
Copy link
Member

unocelli commented Mar 2, 2024

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

@nelumeh
Copy link

nelumeh commented Mar 11, 2024

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need investigation need investigation
Projects
None yet
Development

No branches or pull requests

5 participants