Coder Social home page Coder Social logo

Comments (2)

JoelBender avatar JoelBender commented on August 15, 2024

There are some challenging parts to this problem, taking the last bit first.

Because you are using a VPN connection the BACnet address used by your application needs to be the one provided to you by the VPN server and provided to your workstation as an interface and address. For example, my device in my office has an IPv4 address on eth0 has something like 192.168.0.15/24 but when authenticated with the VPN server there is an additional interface csctun0 (Cisco AnyConnect Client) with an address like 10.0.99.16/24.

You are probably not going to be connected to a network that has a BBMD, so for broadcast traffic (like Who-Is-Router-To-Network) your application needs to register as a foreign device with an existing BBMD and you need to use the foreign device version of the application.

Assume you need to send a read request to MAC address 12 on BACnet network 75 and there is an IPv4 router to that network at address 10.0.75.17. The usual address form is 75:12 and the library will find the router, bind the router address to the network, and then send a unicast message to the router saying please forward this packet. If you register as a foreign device the library will send the routing request wrapped inside a Distribute-Broadcast-To-Network message to the BBMD which will forward it.

If for some reason you don't want to or can't register as a foreign device, there is a "route aware" option you can turn on and then specify the router directly in the address, in this case 75:[email protected]. The routing table lookup is bypassed and your request is unicast directly to the router.

from bacpypes.

venusjain2003 avatar venusjain2003 commented on August 15, 2024

Awesome! thank you so much for this information @JoelBender . I'll try the "route aware" option and let you know.

from bacpypes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.