This stems back from a post regarding BACnet/IP in Feb
I was needing a BACnet/IP solution for integrating to a Mitsubishi VRF system with their BAC-HD150 device. From tmcculloh’s reply i could have purchased a S2 and a BASRT-B router, get the integration kit from the Opto22 site and that would provided an adequate solution. The reason i did not pursue this path was the high price of controllers, limited budget, no need for full BACnet integration and we already have some 13 controllers on the hospital site (all S1’s and R2’s). plus i knew that more BACnet systems were being installed in future and i was hoping to utilize the existing controllers and their Ethernet connections.
So after cutting my teeth on the VRF interface i got the hang of BACnet (as much as i needed to get me out of trouble ;)) and just recently had to interface to some Trane chillers. The chillers were MS/TP and after deciding to stick with BACnet/IP, lashed out and brought a BASRT-B router (thanks tmcculloh. very neat device, and cheap!).
I cleaned up the existing BACnet code i had and have provided a sample strategy with some subs attached to do some simple discovering, reading and writing of devices on a BACnet/IP network. It works really well with gateways or routers, not really sure about individual devices.
the level of integration is very basic, fairly rigid and rough (just like homebrew :p) and really should be used for interrogating the BACnet network for data and the occasional write. i have been using similar code for the Mitsubishi VRF system since march and it has not been a problem. just keeps on getting and setting the data.
if you have some BACnet/IP stuff that you need to get data in and out of without getting too heavy then this may help.
Definitely a little more than a snippet but i kinda thought code like this may be worth something to someone out there. And it might provide a decent enough base for someone to build on for their own requirements (hopefully opto22 will provide a BACnet/IP integration kit soon??).
I hope this is OK to upload a sample strategy?