Welcome to BACØ - BACnet Test Tool
BAC0
BAC0 is an asynchronous Python 3 (3.10 and over) scripting application that uses BACpypes3 to process BACnet™ messages on an IP network. This library brings out simple commands to browse a BACnet network, read properties from BACnet devices, or write to them.
Python is a simple language to learn and a very powerful tool for data processing. Coupled with BACnet, it becomes a great tool to test devices and interact with controllers.
BAC0 takes its name from the default IP port used by BACnet/IP communication which is port 47808. In hexadecimal, it’s written 0xBAC0.
Test driven development (TDD) for DDC controls
BAC0 is made for building automation system (BAS) programmers. Controllers used in this field are commonly called DDC Controllers (Direct Digital Control).
Typical controllers can be programmed in different ways, depending on the manufacturer selling them (block programming, basic “kinda” scripts, C code, etc…). BAC0 is a unified way, using Python language and BACnet/IP communication, to interact with those controllers once their sequence is built.
BAC0 allows users to simply test an application even if sensors are not connected to the controller. Using the out_of_service property, it’s easy to write a value to the input so the controller will think an input is connected.
Table of contents
- Getting started
- How to start BAC0
- Read from network
- Write to network
- Time Sync
- How to define a device and interact with points
- Proprietary Objects
- Histories in BAC0
- TrendLog
- Trends
- Schedules in BAC0
- COV in BAC0
- Callback
- Saving your data
- Database
- Local Objects
- Models
- State Text
- Engineering units
- Web Interface
- Demo in a Jupyter Notebook
- Testing and simulating with BAC0
- Using tasks to automate simulation
- Using Pytest
- Logging and debugging