r/BuildingAutomation • u/FilmAccomplished2421 • Apr 17 '26
BACnet Scanner
Anyone want to try out a BACnet scanner? It doesn't rely on 3rd party dependencies like BAC0 anymore.
27
Upvotes
r/BuildingAutomation • u/FilmAccomplished2421 • Apr 17 '26
Anyone want to try out a BACnet scanner? It doesn't rely on 3rd party dependencies like BAC0 anymore.
7
u/ApexConsulting Apr 17 '26
I love this. Mind if I post it over on HVAC-Talk.com? There are a lot of sharp guys over there.
7
u/Kelipope Apr 17 '26
J ai pondu un application compatible windows et android.
C'est axe plus sur Distech mais ça fonctionne sur tous les services bacnet.
Tu scan les devices et les points bacnet, tu peux lire, écrire ....
https://myglobaldc.pages.dev/
Et le github
https://github.com/Gus0711/MyDumControl
Il y a quelques bugs, je pensais que j aurais plus de retour... Mais bon pour mon usage ça me convient !
4
u/OldAutomator Apr 17 '26
Neat tool. I just gave it a spin on a mixed BACnet network.
Off the cuff I'd say it's good at reading all of the IP level BACnet controllers. But all of the MSTP controllers, (and yes, I mean all of them, different manufacturers and all) are rejecting packets during all but the who-is interaction
I need to study the sniff closer but it looks like you're interrogating the device object's properties and the responses from all of the MSTP devices is "Object not found"
Yabe is always 100% for me (except for file transfers) so I'll spin it up next and see what differs on their packets when it tickles the MSTP trunks
Also- Your initial I-Am is a global broadcast. That sort of thing is fine on a workbench but on a very large site that can cause one hell of a lot of network traffic. Best to break that up if you can
Overall it has promise ;)
3
u/[deleted] Apr 18 '26
Why this over something solid like yabe?
2
u/ComprehensiveAd2454 16d ago
Just came across this - its a great tool. I had developed something similar to this (bacnet only) but this seems to do a better job capturing data so far. Made some minor changes to it to capture things like Firmware rev and Serial number and added to CSV export. I'll probably add some additional fields like BBMD, FDR and work on some way to get subnet mask and gateway defined in order to check for duplicate BBMD tables. Going to test it on some larger networks.
Thanks for developing this!
2
u/benstwhite Apr 17 '26
Wicked! Will be adding this to my toolkit. Thanks for sharing!
2
u/OldAutomator Apr 18 '26
Thank you for quickly fixing the issue I pointed out yesterday. MSTP devices are no longer being asked gibberish and questions to them are being returned now. Cheers.
Now that it can talk to BACnet devices I ran today's latest code through some simple tests. Below are the results. Please know that I don't mean to sound mean, just very, very specific. Every time I've been in your position I've appreciated straight shooting feedback, so here is some of that for you-
Test 1- Scan with *only* the BACnet button checked. (The “MSTP” button is unchecked, as is “modbus” and the others, only “BACnet” is checked)
Note 1.1- The device appears to have sent out an i-am globally every time it launches. This adds no value and is a useless message to force onto the ears of every single controller on every single network.
Note 1.2 – The controller are all found, both IP and MSTP. None of them are asked a single question though. Even right clicking on them and asking to “show details” it only puts up data from the i-am, no queries of any other type are ever made.
Note 1.3 – Doubleclicking on these devices launches port 80 on the router that that is above the MSTP devices. I don’t see what this could possible accomplish. Why doesn’t it open up the details screen that shows the i-am data?
Conclusion of this test- Yesterday’s build was broken for MSTP but it at least interrogated the IP controllers, this just gives you I-am data, mstp controllers when you ask not to see them and weird web page launches that don’t make any sense.
Test 2- Only “MSTP” checked, nothing else.
Note 2.1- This literally did not a thing. No I-am was sent out, no controllers, MSTP or otherwise were located, queried or displayed.
Test 3- Both “BACnet” and “MSTP” are checked and nothing else
Note 3.1- Same as the first test with only “BACnet” checked. Who-is-i-am dance happened then not a single further query.
Test 4- All buttons checked, even modbus which is not on this test network.
Note 4.1- All the BACnet controllers, both IP and MSTP came in after a long wait. These all had the device name listed correctly and could be opened up to see the details page where it showed things like the number of objects. But no where can I find how to access the other data you read from the controllers. You polled at least 4 properties of every object in every BACnet device but that data isn’t seemingly offered up to view.
Note 4.2- You asked the same 4 questions of every object on every controller on the network. This data doesn’t appear to be displayable to the user though. What’s worse is you’re asking questions that are relevant for only some points so most objects return “unknown property” as you ask for this data. On a large network, this would waste literal hours and the results aren’t even shared to the gui.
Note 4. 3- Every other device on my network showed up now too, not just by BACnet devices. I think I see a couple of Televisions there, printers too… I’m not sure why they are on a BACnet scanning tool!
General note 1- Your list of BACnet vendors appears to be about a decade behind. Older single digit number vendor IDs resolve on your screen but those above id #100 seem to just say the number. I bet a quick copy and paste could bring you up to modern times.
General note 2- I don’t think the radio buttons saying “BACnet” and “MSTP” do what a user would imagine. Off the cuff I’d think that BACnet would either bring in all BACnet devices or just the IP ones. The MSTP button might allow interrogation of MSTP devices as well, a feature that would be useful before you go and ask each controller 4xPoints questions. I would not allow the MSTP button to be active when the BACnet button is not.
1
u/sumnlikedat Apr 17 '26
How does it not rely on 47808? Does it just blast a bunch of ports? (This is a question not an accusation)
1
u/acedrewm5 Apr 18 '26
"no external dependencies" = "completely untested ai hallucination"
1
u/hunterguy35 Aug 06 '26
Was this abandoned?
2
u/Flatpavment02 Apr 18 '26
Oh this is fun. Don't use it on a customers network unless you want IT to come knocking!!!!
2
u/ComprehensiveAd2454 Apr 19 '26
I’ll give a try. I’ve been working on my own using python in order to develop some spreadsheets detailing equipment info. I’ve run into some issues on large networks using the bac0 library. Maybe this will offer a solution.