ChristianTremblay / BAC0

BAC0 - Library depending on BACpypes3 (Python 3) to build automation script for BACnet applications
GNU Lesser General Public License v3.0
170 stars 98 forks source link

BAC0 running in docker is not able to discover devices in network #449

Closed shivangishakya closed 3 months ago

shivangishakya commented 5 months ago

I am not able to discover bacnet devices if runs BAC0 script in docker. It is working fine in local machine (windows). Tried: network_mode = host and creating a network with gateway as my router's IP.

ChristianTremblay commented 5 months ago

This is a common issue with docker as UDP broadcast are not passing through...

Discovery will fail but I think you will be able to connect directly to a device (unicast)

shivangishakya commented 5 months ago

Any way of bacnet discovery?

ChristianTremblay commented 5 months ago

Using docker, it's hard and I haven't done a lot of tests.

Last time I worked on that, I found this : https://www.youtube.com/watch?v=bKFMS5C4CG0

But I haven't had time to fully test everything. Basically, it really is down to the UDP broadcast that need to travel to the container and from the container.

github-actions[bot] commented 3 months ago

This issue had no activity for a long period of time. If this issue is still required, please update the status or else, it will be closed. Please note that an issue can be reopened if required.