ela-compil / BACnet

BACnet protocol library for .NET :satellite:
https://www.nuget.org/packages/bacnet/
MIT License
215 stars 95 forks source link

Problem in Discovering devices in a network from docker container running in Ubuntu 18 #133

Open Zedstron opened 8 months ago

Zedstron commented 8 months ago

Hi, I wrote a console application which can discover the devices using WhoIs/IAM and can read properties from objects, but it is completely working fine in windows, but when a container is executed in Linux ubuntu 18, only BACnet/IP devices are discovered and the devices that are behind a MS/TP over IP are not discovered. e.g. devices with same/different network number and unique ID's but same Ip address

Host Machine Config

Docker Config

BACnet Server Config

Zedstron commented 8 months ago

I would like to add one thing, I used tshark to test the packets just in case the IAM responses are received from the equipment's but not get processed by the app, but tshark only shows the response from those devices being detected and not other equipment's

Zedstron commented 8 months ago

This is another update I just noticed that Wireshark is showing IAM responses are being captured from other equipment's too, but they are sent as broadcast which is not being processed but the responses which are sent as unicast, they get processed. One more thing to add when destination is broadcast address then the UDP receive message handler is not even fired, I though message is being received in some stage and get either trashed or rejected due to some reason but it's not the case.