# Bacnet addressing mstp through ip router

**URL:** <https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979>\
**Category:** Industrial\
**Created:** [28 October 2020 20:26 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979 "2020-10-28T20:26:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![afssElite](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@afssElite](https://discourse.nodered.org/u/afssElite)\
**Post date:** [28 October 2020 20:26 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/1 "2020-10-28T20:26:35Z")

</div>

I am developing a ui for a bacnet network on a single subnet: 10.252.252.24/24 is the ip of the bacnet ip mstp router. I have 1 mstp device on mac address 1, mstp network number 3, mac address of router is 0, router device instance is 0.

I send a whois through node-red-contrib-bacnet, returns the objects and properties for the router, I can see its instance number etc. I can also view the roomsimulator running on my local machine 10.252.252.5:65322, with the client set at 10.252.252.24:47808 I can use node red to read and write properties when that address is set as my device in the bacnet read and write nodes, respectively.

I am trying to figure out what to put in the device section of the bacnet read or write nodes to reflect the mstp address of network 3, device 1.

I can view the connected sensor on yabe, connected to the router, I use yabe to see its device instance 1176856, and subscribe to the analog inputs/values. This tells me that the router is storing the mstp address somewhere.

I have probably read every bacnet publication on the internet, and before delving into bacpypes I thought it would be prudent to check here first. This is also my first post so forgive me if it is in the wrong section, I've searched every topic here under term "bacnet" and "mstp".

I've attached screenshots of the configurations used.

 ![node2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/6/f687fcbb4bf2b979bc958c34637e7205ebfcc162.png)  
 ![node4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/2/d28379f96eb82f0f4709d7883919c686aee4b66e.png)

---

<div class="post-metadata">

**Author:** ![afssElite](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@afssElite](https://discourse.nodered.org/u/afssElite)\
**Post date:** [30 October 2020 02:36 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/2 "2020-10-30T02:36:40Z")

</div>

It appears as if node red is sending a global broadcast address on 255.255.255.255 instead of my local broadcast address of 10.252.252.255 also on the whois request. Possibly willing to contribute cash, beer, bacnet testing lab fees.

 ![bac1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/0/60df06b1bebdf6d5f9636d421116b4d5b70b7f9d.png)  
 ![bac2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fb93612ddcd57d343863b1d956d6f85cfca6b4f0.png)

---

<div class="post-metadata">

**Author:** ![afssElite](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@afssElite](https://discourse.nodered.org/u/afssElite)\
**Post date:** [30 October 2020 02:37 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/3 "2020-10-30T02:37:25Z")

</div>

![bac3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/d/fd1e33b3caf8c244908094247e56a39d1473c343.png)

---

<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:** [31 October 2020 12:06 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/4 "2020-10-31T12:06:18Z")

</div>

I think you will ned to contact the author of that node directly as it's not one of the core ones and not often used by most of the folk here.

---

<div class="post-metadata">

**Author:** ![afssElite](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@afssElite](https://discourse.nodered.org/u/afssElite)\
**Post date:** [31 October 2020 22:39 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/5 "2020-10-31T22:39:36Z")

</div>

I was figuring that would be the way to go after posting, I have implemented the bacpypes application on my pi and will use the exec command to run a script. Was having trouble in the past with it because my loop back address was nonstandard.

Thanks,

---

<div class="post-metadata">

**Author:** ![bbartling](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bbartling](https://discourse.nodered.org/u/bbartling)\
**Post date:** [9 December 2020 16:06 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/6 "2020-12-09T16:06:17Z")

</div>

Hi I was curious if you ever got this to work on reading an sensor value from a BACnet controller through an MSTP router on node red??? OR are you just going all Python bacpypes method?

---

<div class="post-metadata">

**Author:** ![Frescoboy18](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/frescoboy18/32/36280_2.png) [@Frescoboy18](https://discourse.nodered.org/u/Frescoboy18)\
**Post date:** [31 January 2021 18:28 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/7 "2021-01-31T18:28:27Z")

</div>

Could you please let us know if it was successful. Were you able to read MSTP over node-red.

---

<div class="post-metadata">

**Author:** ![afssElite](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@afssElite](https://discourse.nodered.org/u/afssElite)\
**Post date:** [12 February 2021 17:13 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/8 "2021-02-12T17:13:15Z")

</div>

I was able to detect and write to / read from the mstp device through a router, using route aware notation of the python bacpypes commands using an exec node in node red.

---

<div class="post-metadata">

**Author:** ![deme](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@deme](https://discourse.nodered.org/u/deme)\
**Post date:** [13 February 2021 21:51 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/9 "2021-02-13T21:51:20Z")

</div>

Hey,

could you provide this as an example flow?

Thanks!

---

<div class="post-metadata">

**Author:** ![Frescoboy18](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/frescoboy18/32/36280_2.png) [@Frescoboy18](https://discourse.nodered.org/u/Frescoboy18)\
**Post date:** [27 February 2021 09:54 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/10 "2021-02-27T09:54:55Z")

</div>

Could you please share your solution

---

<div class="post-metadata">

**Author:** ![MxD](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@MxD](https://discourse.nodered.org/u/MxD)\
**Post date:** [27 February 2021 14:22 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/11 "2021-02-27T14:22:34Z")

</div>

Since this node is based on bacstack there is an open issue, but someone in the thread got it to work by specifying the network number. Worked me also.

Look here: [Using with MSTP Router · Issue #140 · fh1ch/node-bacstack · GitHub](https://github.com/fh1ch/node-bacstack/issues/140)

And here: [Using with MS/TP Router · Issue #28 · BiancoRoyal/node-bacstack · GitHub](https://github.com/BiancoRoyal/node-bacstack/issues/28)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 March 2021 14:23 UTC](https://discourse.nodered.org/t/bacnet-addressing-mstp-through-ip-router/34979/12 "2021-03-13T14:23:25Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
