JoelBender / bacpypes-mqtt

Exploring MQTT as a virtual link layer for BACnet
MIT License
8 stars 2 forks source link

BACnet over IP #4

Open andreapx opened 1 year ago

andreapx commented 1 year ago

Hi! Is there a way to use this gateway with BACnet over IP? Thanks!

JoelBender commented 1 year ago

Yes, checkout the mqtt2ip sample application which acts as a router between a broker and a BACnet/IPv4 network. This is conceptually the same as an IPv4-to-SC router, so if you have two of these applications running on two different BACnet networks (like two different IPv4 subnets) you can route traffic between them going through the broker. By running the console_client application you will be a BACnet device on the virtual network inside the broker and you can talk to any of the other MQTT clients or through the routers to BACnet/IPv4 devices.

This is designed to be able to use any broker you would like, like a commercial cloud service that uses TLS and authentication.

andreapx commented 1 year ago

Thanks!!! I'll try that!

andreapx commented 1 year ago

Hi Joel, I'm trying to use your software, but I'm having some troubles (I'm not an expert in python/pip/etc.), let's see if you can give me a hand! If I run pipenv run python console_client.py and I run the command whois, in MQTT I just get some garbage:

07-07-2023_11-03-36_6_MQTT_Explorer

and no response on the console. I've tried running YABE (Yet Another Bacnet Explorer) I can see the BacNet device (server) and all the data. What am I doing wrong? Thanks!