# Bacnet IP integration with node red

**URL:** <https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298>\
**Category:** General\
**Created:** [22 March 2019 04:02 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298 "2019-03-22T04:02:24Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjpkt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sjpkt/32/7002_2.png) [@sjpkt](https://discourse.nodered.org/u/sjpkt)\
**Post date:** [22 March 2019 04:02 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/1 "2019-03-22T04:02:24Z")

</div>

Error Reason 6 when I use bacnet write command to overwrite present value of analog value. Any idea how to fix the problem? Thanks in advance

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 March 2019 08:16 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/2 "2019-03-22T08:16:30Z")

</div>

Is that a Bacnet error? If so then you need someone who knows about Bacnet rather than node-red.

---

<div class="post-metadata">

**Author:** ![fordarn](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@fordarn](https://discourse.nodered.org/u/fordarn)\
**Post date:** [28 June 2019 07:48 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/3 "2019-06-28T07:48:15Z")

</div>

Hi SJPKT  
Did you have any luck with this? I am having the same issue

---

<div class="post-metadata">

**Author:** ![sjpkt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sjpkt/32/7002_2.png) [@sjpkt](https://discourse.nodered.org/u/sjpkt)\
**Post date:** [15 July 2019 15:39 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/4 "2019-07-15T15:39:25Z")

</div>

Nope, I don't have any luck with node red barnet IP. I decided to use another software.  
Good luck tho!

---

<div class="post-metadata">

**Author:** ![UdoUSA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udousa/32/12293_2.png) [@UdoUSA](https://discourse.nodered.org/u/UdoUSA)\
**Post date:** [18 October 2019 19:59 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/5 "2019-10-18T19:59:59Z")

</div>

I did get the same error message when trying to write to our BACnet controllers. I did a WireShark capture and what I see is that the BACnet write node sends commands with a priority "0" which is rejected by our controller with an "parameter-out-of-range (6)" error message. Now according to the BACnet specifications the priority should be between 1 and 16 if send or 16 is assumed if no value is send. I wonder if there is a way to suppress sending the priority or even better if a priority could be specified. I did try to plug in a priority in the payload msg but without success. Any one has a better idea?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [18 October 2019 20:31 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/6 "2019-10-18T20:31:45Z")

</div>

This is down to the contrib node, check the issues on the nodes github page, if it’s not there open an issue.

---

<div class="post-metadata">

**Author:** ![UdoUSA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udousa/32/12293_2.png) [@UdoUSA](https://discourse.nodered.org/u/UdoUSA)\
**Post date:** [18 October 2019 21:15 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/7 "2019-10-18T21:15:24Z")

</div>

I did some more digging through the js bacstack used for these nodes and I found the syntax to set priority.  
It is an option parameter and when I added it to my message object I was able to write successfully to our controllers in my lab.  
I used the following object to pump into the BACnet write block:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/baaa83c0bbb5dc7d51bb6bdd8eed5c0fb284131d.png)

I am writing to an analog value (type:2) and instance 9. The property id of 85 is for present value and the type 4 is for type "real" number. I did the value of 22.5 just for the test hard coded, but this can be replaced with a variable for real world usage. Finally priority is set to 8 for my test.  
In WireShark what got send looks like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/ed69193385aa1b18ed3226554cb18102c9b8b69f.png)

This finally got rid of my issue with BACnet error "6".

I hope this will help other running into the same problem with BACnet commanding.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [18 October 2019 21:18 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/8 "2019-10-18T21:18:15Z")

</div>

As previously suggested - please contact the author and ask them to either add docs to show these options (either in README or in the info side bar panel) - or indeed to make it settable via the config panel.

---

<div class="post-metadata">

**Author:** ![UdoUSA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udousa/32/12293_2.png) [@UdoUSA](https://discourse.nodered.org/u/UdoUSA)\
**Post date:** [18 October 2019 21:22 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/9 "2019-10-18T21:22:20Z")

</div>

I will try to figure out how to get it to the right person. I am not a programmer and pretty new to node-red but work with BACnet every day here at work. I can help with the feature documentation and usability, that is what I am doing for living.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [18 October 2019 21:25 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/10 "2019-10-18T21:25:52Z")

</div>

Ah right - it's probably this node ? [https://github.com/BiancoRoyal/node-red-contrib-bacnet](https://github.com/BiancoRoyal/node-red-contrib-bacnet)  
Sadly the author of those nodes has had to step away so yeah - maybe not.

---

<div class="post-metadata">

**Author:** ![UdoUSA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udousa/32/12293_2.png) [@UdoUSA](https://discourse.nodered.org/u/UdoUSA)\
**Post date:** [18 October 2019 21:34 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/11 "2019-10-18T21:34:03Z")

</div>

Yes that's it but it links to a company not a person and I did not see activity for the last 18 month. This is a great start for a great package and hopefully someone will continue the work. I am not a coder just an applications engineer but I could help in writing specs and or testing. I have a relative large set-up of BACnet devices to my disposition.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 October 2019 01:00 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/12 "2019-10-19T01:00:03Z")

</div>

Then perhaps you could...

- fork the repo to your GitHub account (create one if necessary)
- Update the built in help info & readme
- Do a pull request to the original repo.

If the developer is not responsive, you could...  
Publish your alterations on NPM (with a new name e.g. node-red-contrib-bacnet2 or node-red-contrib-bacnet-mod or similar) and everyone will gain from your work.

Perhaps add an importable example/demo file or update your forks readme to include this pertinent info?

I am aware you said you're not a developer but you obviously have a certain level of "savvy" to get this far so even if everything I've said above is alien to you, I have a feeling you could figure it out.

Good work either way

👍

---

<div class="post-metadata">

**Author:** ![UdoUSA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udousa/32/12293_2.png) [@UdoUSA](https://discourse.nodered.org/u/UdoUSA)\
**Post date:** [20 October 2019 05:16 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/13 "2019-10-20T05:16:55Z")

</div>

Thank you for the vote of confidence. I did already step one of your suggestion after following the tutorial of how to create a branch in my account. I do work closely with developers and some things rub off if you pay attention in project meetings. So I should be able to do the other steps as well and we will see.  
Thanks !

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [17 May 2024 13:15 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/14 "2024-05-17T13:15:17Z")

</div>

A post was split to a new topic: [Read the room temperature from BACnet room simulator](https://discourse.nodered.org/t/read-the-room-temperature-from-bacnet-room-simulator/88062)  
Close and moved to new topic as this topic is 5 years old. It also make it easier for others to search for solutions when not having to trawl through other topics.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [17 May 2024 13:15 UTC](https://discourse.nodered.org/t/bacnet-ip-integration-with-node-red/9298/15 "2024-05-17T13:15:38Z")

</div>


