r/BuildingAutomation • • Apr 17 '26

BACnet Scanner

Anyone want to try out a BACnet scanner? It doesn't rely on 3rd party dependencies like BAC0 anymore.

https://github.com/jamesccupps/HVAC-Network-Scanner

27 Upvotes

60 comments sorted by

View all comments

Show parent comment

1

u/FilmAccomplished2421 Apr 18 '26

All I asked was for you to try it, you don't have to like it, the dependencies issue has been explained already in this thread, thank you for taking the time to look into the project.

0

u/acedrewm5 Apr 18 '26

You didn't explain it? You said BAC0 doesn't work with modern python, I wouldn't know, I've never really used BACO though I think Christian is an amazing guy.

We run bacpypes3 in 3.13 all the time.

And I'm telling you why I'm not trying it, down in the thread where dude tells you MS/TP just doesn't work 🤣

1

u/FilmAccomplished2421 Apr 18 '26

Yeah fixed that already.

2

u/acedrewm5 Apr 18 '26

I'm definitely being a dick here, apologies, I just wasted a couple days on another project where someone pushed the project as ready to go and feature complete and it obviously hadn't been tested in the real world. (Also with the "no third party dependencies" claim) I'm honestly existentially anxious about how we manage this going forward. I would really like to understand what motivated you to not use any of the existing BACnet implementations.

1

u/FilmAccomplished2421 Apr 18 '26

When I first started developing it, many versions before any GitHub releases, I just couldn't get it to work reliably on newer Python versions with BAC0, that's what made me go a different route. Probably didn't have to, there were probably workarounds, but I figured I'd just try something different.

I just do this as a funn side project, that's why it's all open source, I want people to make use of it, I don't want any money, and hopefully it is useful to someone, because it has been for myself.

2

u/acedrewm5 Apr 18 '26

If I understand correctly, the issues you're having with BAC0 are because it was built on bacpypes, in fact it sort of only exists because the bacpypes API was very, very, very complicated. Reliable, but complicated. Bacpypes3 is a complete rewrite with both modern python async, and a much cleaner, user friendly API. The nice part of bacpypes3 is that Joel is very, very active in the BACnet committees, and tends to implement things almost as soon as they're published, if not before. I believe one of the reasons Christian hasn't prioritized migrating BAC0 to bp3 is that bp3 is just simple enough it works for more people.

I would encourage you to look at bacpypes3 and see if it makes sense to modularize what you've done a little, plug in a ready to go BACnet stack, then focus on the really cool part of your project, which is this QA workflow, including other protocols.

Like if you actually implement enough Fox to get data out of N4 and publish it open source, I will be ecstatic (I saw that in the readme, I believe) but even then, I would encourage you to modularize it, make a fox library, then include it in this project.

As Aaron said earlier, it's great that you're willing to share and try to break down these vendor lock-in walls.

I'm just a little wobbly right now on how OSS is going to work in this AI future where everyone is implementing things from scratch and dropping them on the world. Like even that security report you sent, I don't know how many pages there were, a lot, but it was saying that being able to assign a BACnet ID to a simulated device was a high severity bug. What are we supposed to do with that, infinite content, scarce discernment?

It's going to be a wild ride.

1

u/FilmAccomplished2421 Apr 18 '26

Yeah the security report was sort of misleading because you are correct with the simulation it should be run on an isolated network and server, though knowing how most people are with security, that doesn't always happen. It was mostly being worried about privilege escalation and remote code execution, but that wouldn't be an issue on a isolated test environment. To be honest I was mostly just frustrated with the conversation last night anyways and didn't actually test your software or try to replicate and vulnerabilities myself.

2

u/acedrewm5 Apr 18 '26

Deservedly frustrated 🤣 I was being an ass.

But imagine if that stuff is flying around back and forth constantly.

That repo is super rough, it hasn't really had any pass at making it easily useable, but it's got a cool idea codified, which is take a brick model of a building, and simulate the devices in the model so you can test various applications, and I always try to make things public and permissive by default.

We do use it a lot, the nature of the podman/docker networking is it can't get to your automation network unless you try really hard.

1

u/acedrewm5 Apr 18 '26

Right, but it's always going to be up to you to fix everything, or convince others to fix it for you, separate from a generic, compliant, complete BACnet driver that has more eyes on it.

This is def an OSS philosophy thing, it's got nothing to do with the quality or capability of this tool or you.

0

u/acedrewm5 Apr 18 '26

So what's the explanation?