CAS BACnet Stack
Intro to the Stack
BACnet is a communications protocol for Building Automation and Control (BAC) networks that leverage the ASHRAE, ANSI, and ISO 16484-5 standard protocol. It is currently the most popular protocol use in Building Automation systems (BAS).
Chipkin’s BACnet Stack (CAS BACnet Stack) is a software library that allows you to add a native BACnet interface to your embedded devices or applications. The BACnet stack supports both BACnet server (Field device, power meter, gas detector, etc.) and BACnet client (HMI, Utilities, data loggers, etc.) services giving you the flexibility you need to succeed.
The CAS BACnet Stack is a transport layer independent library, making it easy to use with any transport layer such as MSTP, IP, Ethernet and even PTP and ARCnet. By giving you control of the transport layer you can optimize bandwidth and performance by exploiting the resources at your disposal such as multi-threading and multiple simultaneous connections. See the diagram below of the BACnet Stack Layers which shows what portions are provided by the stack and what by the client:
*Area in the border is provided by the CAS BACnet Stack. The area outside is provided by the client.
Benefit from our 20+ years of BACnet experience!!!
Take it from us, we have been working with BACnet for 20+ years. Our BACnet Stack Resume includes 10+ years of development, 25,000+ commits, 50,000+ lines of code, 2,500 unit tests, 50+ devices using the stack and among other capabilities, 1,000,000+
device installations. We know what we are are doing. On top of that, we are also part of the BACnet Testing Laboratory Working Group. Purchasing the CAS BACnet Stack from us will
Chipkin’s BACnet Stack (CAS BACnet Stack) is an application layer BACnet library for embedded systems and application development. The stack allows applicable devices to communicate using several of the BACnet flavours and can function both as a server (Field Device, etc…) or as a client (HMI, etc…).
Because we have also built the stack to be BACnet spec compliant (we do things according to the BACnet spec.), No device that used our stack has ever failed to receive the BTL Certification (BACnte International BLT) by the BACnet Testing laboratories. We do things the right way from the start!
To ensure our stack is well tested and compatible with industrial leaders, Chipkin attends the yearly BACnet Plugfest to test new features and services from all of the leading manufacturers.
Furthermore, the CAS BACnet Stack is particularly well-suited to most contemporary programming styles as the API uses XML to transfer requests for packet building as well as for handling back-parsed packets.
- Supports both BACnet server and BACnet client functionality.
- Network layer independent supporting; BACnet IP, BACnet MSTP, and other BACnet network flavors.
- Interfaces to a wide array of different programing language. C, Python, C#, Java, Delphi, Node.JS, etc...
- Supports BACnet router functionality to create multiple virtual BACnet devices on a single physical device. Allowing your data to be grouped in a logical manner.
- Supports Windows, Linux, MacOS, RTOS, and embedded platforms.
- Supports decoding BACnet messages as XML.
- Supports BBMD, and Foreign device registration.
- Designed for maximum portability across a wide range of different architectures and operating systems. X86, 32-bit, 64-bit, ARM, AVR, Microchip, Freescale ColdFire, etc…
- Supports a wide range of compilers. GCC, Microsoft Visual C++, Borland C++, Code Warrior, IAR, CrossWorks, MicroChip MPLab.
- Need More Features, Contact us!!
Source Code and Code Quality
The Chipkin BACnet stack source code confromes to the C++98 standard, and is built for portability to many different operating systems and architectures.
Extensive unit tests have been written for the Chipkin BACnet stack in Google's C++ test framework. The source code has been tested with Valgrind to detect any memory leaks, threading issues, and performance profiling.
The Chipkin BACnet stack is thread safe, and can be used on systems that do not support threading.
The Chipkin BACnet Stack source code has been compiled and tested with the following compilers:
The Chipkin BACnet Stack interfaces support building applications in your preferred programing language:
Other compilers and programming languages may be supported as well. Please Contact Us for more information
Example Source Code
See below for a simplified example of creating a BACnet IP server. A full example can be found in the downloads section.
Supported Architectures and Operating systems
The CAS BACnet stack is designed for maximum portability and compatibility with as many different architectures and operating systems as possible.
The Chipkin BACnet stack uses a series of callbacks for accessing operating systems and network functionality. A operating systems Interface has been created for the standard operating systems such as Windows, Linux and RTOS and can be ported to other operating systems and embedded systems. The Chipkin BACnet stack can be considered network layer and operating systems independent.
Operating systems Interface have been created for the following OS:
The CAS BACnet stack has been ported to many different architectures. Below is a list of all tested functional architectures.
- Intel x86, 32-bit, 64-bit
- AMD 32-bit, 64-bit
- ARM (ARM Cortex-M4, ARMv7E-M, etc…)
- Freescale ColdFire
Porting to other systems and architecture is supported. Please Contact Us for more information
BACnet services supported!
The Chipkin BACnet Stack supports more BIBBs than almost any other BACnet Stack on the market.
- DS-RP-A: Data Sharing - ReadProperty-A
- DS-RP-B: Data Sharing - ReadProperty-B
- DS-RPM-A: Data Sharing - ReadPropertyMultiple-A
- DS-RPM-B: Data Sharing - ReadPropertyMultiple-B
- DS-WP-A: Data Sharing - WriteProperty-A
- DS-WP-B: Data Sharing - WriteProperty-B
- DS-WPM-A: Data Sharing - WritePropertyMultiple-A
- DS-WPM-B: Data Sharing - WritePropertyMultiple-B
- DS-COV-A: Data Sharing - Change Of Value-A
- DS-COV-B: Data Sharing - Change Of Value-B
- DS-COVP-A: Data Sharing - Change Of Value Property-A
- DS-COVP-B: Data Sharing - Change Of Value Property-B
- DS-COVU-A: Data Sharing - Change Of Value Unsubscribed-A
- DS-COVU-B: Data Sharing - Change Of Value Unsubscribed-B
- DS-V-A: Data Sharing - View-A
- DS-AV-A: Data Sharing - Advanced View-A
- DS-M-A: Data Sharing - Modify-A
- DS-AM-A Data Sharing - Advanced Modify-A
- AE-N-A Alarm and Event Management - Notification-A
- AE-N-I-B Alarm and Event Management - Notification-Internal-B
- DM-DDB-A Device and Network Management - Dynamic Device Binding-A
- DM-DDB-B Device and Network Management - Dynamic Device Binding-B
- DM-DOB-A Device and Network Management - Dynamic Object Binding-A
- DM-DOB-B Device and Network Management - Dynamic Object Binding-B
- DM-TS-A Device and Network Management - TimeSynchronization-A
- DM-TS-B Device and Network Management - TimeSynchronization-B
- DM-UTC-A Device and Network Management - UTCTimeSynchronization-A
- DM-UTC-B Device and Network Management - UTCTimeSynchronization-B
Supported BACnet device profiles:
- B-ASC: BACnet Application Specific Controller
- B-SA: BACnet Smart Actuator
- B-SS: BACnet Smart Sensors
Requirements and dependency
The Chipkin BACnet stack is designed to have minimum requirements to maximize the portability of the source code across as many platforms and architectures as possible. It has the ability to run on devices with very low resources by disabling BACnet services to reduce the required resources and dependencies.
- A relative millisecond timer
- C++ compiler
- Standard Template Library (STL)
- Networking: UDP for BACnet IP or RS485 Serial for BACnet MSTP
The amount of ram that the Chipkin BACnet stack requires depends on several factors including; BACnet Services supported, Object types supported, Object count, COV limits, etc...
BACnet objects supported
The Chipkin BACnet stack fully supports most commonly used BACnet objects, and partially supports some of the rarely used, advanced BACnet objects. See list below:
FREE CAS BACNET EXPLORER WITH THE PURCHASE OF A BACNET STACK!
Purchase a FieldServer or CAS Gateway from us that contains any BACnet protocol and we will help you test and document the BACnet interface by providing a free full license to the CAS BACnet Explorer and a Hardcopy of the BACnet booklet.
The USB key and booklet ships with the FieldServer.
Learning about BACnet? Want to update your BACnet knowledge? This free EBook will guide you through basic and advanced BACnet topics.
CAS BACnet Explorer is the perfect utility for testing, debugging and discovering BACnet® networks and devices. It is great for network diagnostics and discovering who is the problem. No more pointing fingers.
CAS BACnet Explorer performs the following functions within BACnet Networks: