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

Do we need to modify our code if we are prefering BACnet port as TCP over UDP? #512

Open
SRikinR opened this issue Dec 4, 2023 · 1 comment

Comments

@SRikinR
Copy link

SRikinR commented Dec 4, 2023

Hi @JoelBender,

BACnet (Building Automation and Control Networks) can work over both UDP (User Datagram Protocol) and TCP (Transmission Control Protocol). The default port for BACnet is often associated with UDP, which is UDP port 47808. However, BACnet can also operate over TCP/IP, using port 47808 as the default for TCP communication.

So, do we need to make any specific changes in our bacpypes code for this? I checked the code from my end, and I do not see any need to change but, I still want to confirm this from you before performing any experiments.

The code uses port over here:

address_with_port = <addr and port.>
local_address = Address(address_with_port)

I am looking forward to your comments on this. Please let me know.

Regards,
Rikin

@bbartling
Copy link

If you want to run your bacpypes application on a unique port other than UDP 47808 look at the documentation where you can update your BACpypes.ini file in CIDR notation. See this link for an example:
https://bacpypes.readthedocs.io/en/latest/gettingstarted/gettingstarted001.html#:~:text=192.168.0.11%3A47809/16.

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

No branches or pull requests

2 participants