SoftwareDefinedBuildings/pybacnet

Name: pybacnet

Owner: Software Defined Buildings

Description: BACnet sMAP support for python

Created: 2014-05-28 18:28:41.0

Updated: 2016-03-25 23:58:52.0

Pushed: 2014-06-17 22:46:10.0

Homepage: null

Size: 199

Language: C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

sMAP BACnet support

This repository contains simple Python bindings for the Steve Karg's bacnet-stack; in particular, it supports the use of the ReadProperty, WriteProperty, and Who-Is BACnet services.

Build instructions

In order to build the python support, you must first build the BACnet c library. Download bacnet-stack-0.6 from here: http://sourceforge.net/projects/bacnet/files/bacnet-stack/bacnet-stack-0.6.0/ and place it in src/. We recommend using version 0.6.0; later versions may work too. Build that source for your platform (on OSX, make sure you do everything with CC=gcc; none of this works wtih LLVM).

After that, you should be able to do the usual python setup.py build in order to swig and compile the python module.

Scanning instructions

To use the sMAP driver, you first need to discover the points on your subnet. the bacnet-scan tool will help you with that. Run with no arguments, it will dump a list of all devices, as well as all objects present in each device to the output file as a json data structure.

sMAP Driver

You can then use the pybacnet.driver.BACnetDriver module to poll your BACnet points and send data to a sMAP server. The driver contains several options for cleaning up BACnet names.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.