Replies: 1 comment 1 reply
-
I use BAC0 for testing with bacnet stack, so yes, fundamentally there shouldn't be any problem. Keep in mind it must run on a different machine (or maybe at least different port) so bacnet stack can bind to the 47808 port |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Use Case: I have a BACnet service created using the bacnet-stack code which acts as a server and I as a client using BAC0 python library to read/write the object properties. Read requests are getting APDU timeout and who is request is not able to discover my BACnet service which is running. Below is my code, please let me know if there is any solution.
Code Snippet:
import BAC0
client_ip="10.16.91.65"
server_ip="10.16.91.69"
obj_name="device"
prop_name="objectName"
client_conn=BAC0.connect(ip=client_ip,port="47808")
print(client_conn)
who_is=client_conn.whois()
print("Who is =",who_is)
Console Output:
C:\Users\sneha.bati\PycharmProjects\bacnet_poc.venv\Scripts\python.exe C:\Users\sneha.bati\PycharmProjects\bacnet_poc\read_prop.py
2024-05-02 14:34:58,284 - INFO | Starting BAC0 version 23.07.03 (Lite)
2024-05-02 14:34:58,285 - INFO | Use BAC0.log_level to adjust verbosity of the app.
2024-05-02 14:34:58,285 - INFO | Ex. BAC0.log_level('silence') or BAC0.log_level('error')
2024-05-02 14:34:58,285 - INFO | Starting TaskManager
2024-05-02 14:34:58,287 - INFO | Using ip : 10.16.91.65 on port 47808 | broadcast : 10.16.91.255
2024-05-02 14:34:58,464 - INFO | Starting app...
2024-05-02 14:34:58,465 - INFO | BAC0 started
2024-05-02 14:34:58,465 - INFO | Registered as Simple BACnet/IP App
2024-05-02 14:34:58,465 - INFO | Device instance (id) : 3056866
2024-05-02 14:34:58,469 - INFO | Update Local COV Task started (required to support COV)
Bacnet Network using ip 10.16.91.65 with device id 3056866
Who is = []
Process finished with exit code 0
Beta Was this translation helpful? Give feedback.
All reactions