Git Product home page Git Product logo

Comments (3)

nickma82 avatar nickma82 commented on July 18, 2024

Hi @mgalemin
mbusd accesses a modbus RTU instance (i.e. reading its values) and provides a Modbus TCP server (serving the read out values).

For example, can mbusd work as a TCP client and connect to a remote TCP server?

I think that is exactly the other way around - right?

from mbusd.

deneskelenyi avatar deneskelenyi commented on July 18, 2024

NO, this won't work. You would need something that creates a map to begin with.
RTU master wants so send something to NODE 1. So it emits an RS-485 packet, addressing NODE 1.

Your gateways should know to listen to NODE 1, then it should know what TCP address NODE 1 is on.

You would need something like a translation map:

Node1, 192.168.11.1:502
Node2, 192.168.11.2:502

No such mapping exists in mbusd. The good news is, that you can put something together like this pretty easily using a library. I achieved a TCP:RTU mapping via j2mod (Java) where the Java host (Raspberry PI) is acting as an RTU slave for (near) real time sensors and acting as a TCP master for "slower" data requests (e.g. what's the temperature in the toilet).

Funny thing is that I use mbusd with this too, so the TCP request goes back to a serial link. The rationale in this, is that I can kill a master and start a developer master without pluggin 2-3 serial dongles over to an other host on the other side of a house.

from mbusd.

stale avatar stale commented on July 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from mbusd.

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.