NREL / BuildingMOTIF

Building Metadata OnTology Interoperability Framework (BuildingMOTIF)
https://buildingmotif.readthedocs.io/
Other
48 stars 6 forks source link

Issue on page /guides/ingress-bacnet-to-brick.html #257

Closed RozitaTeymourzadeh closed 1 year ago

RozitaTeymourzadeh commented 1 year ago

Running after put docker up from virtual_bacnet.py:

2023-05-26 14:46:17,779 - INFO | Starting BAC0 version 22.9.21 (Lite) 2023-05-26 14:46:17,780 - INFO | Use BAC0.log_level to adjust verbosity of the app. 2023-05-26 14:46:17,780 - INFO | Ex. BAC0.log_level('silence') or BAC0.log_level('error') 2023-05-26 14:46:17,781 - INFO | Starting TaskManager 2023-05-26 14:46:17,783 - INFO | Using ip : 172.24.0.1

bacnet = BACnetNetwork("172.24.0.1/32") # don't change this if you are using the docker compose setup for rec in bacnet.records: print(rec) return InitializationError: IP Address provided (172.24.0.1) invalid. Check if another software is using port 47808 on this network interface. If so, you can define multiple IP per interface. Or specify another IP using BAC0.lite(ip='IP/mask')

haneslinger commented 1 year ago

hi there, did you run the code above this in the "BACnet Network Setup" section? What was the result? 🙂

gtfierro commented 1 year ago

Wanted to follow up on this regarding our email conversation, @RozitaTeymourzadeh -- I think the issue here was that the network setup wasn't run in a separate VM, causing issues with binding to the UDP port. BACnet needs UDP multicast so it can be tricky to set up the networking