GithubHelp home page GithubHelp logo

ModbusTCP about arduinomodbusslave HOT 8 OPEN

yaacov avatar yaacov commented on June 13, 2024
ModbusTCP

from arduinomodbusslave.

Comments (8)

ysmilda avatar ysmilda commented on June 13, 2024 1

My idea is to incorporate a similar method as used with this rewrite: https://github.com/AdvancedClimateSystems/sps30

I'm just not yet sure if the different server classes can be used just like a Stream object.

from arduinomodbusslave.

ysmilda avatar ysmilda commented on June 13, 2024 1

I did start working on it, but currently I don't have much time or need for it to finish it.

The memory aspect was one thing I ran into, but it seems possible to reuse the space for the RTU messages for TCP messages as the only difference are the headers. Managing this however in a neat fashion asked for a more structured data tagging which needed a bit more rewriting than I anticipated.

from arduinomodbusslave.

yaacov avatar yaacov commented on June 13, 2024

Hi, thanks for the question.

Would it be worth the effort to fix that library, or would it be better to change this one to also accept TCP messages?

I think the easier approach will be to make the esp8266 version work for you hardware.
I think the better solution ( will require more work ) is to add pluggable h/w options to this lib, starting with whatever h/w you have :-)

from arduinomodbusslave.

ysmilda avatar ysmilda commented on June 13, 2024

I would like to make this work for all situations (as far as possible). So I will try and change this lib. If I get this working, would that be a feature you would want to add to the library?

from arduinomodbusslave.

yaacov avatar yaacov commented on June 13, 2024

would that be a feature you would want to add to the library?

Sure 👍

from arduinomodbusslave.

yaacov avatar yaacov commented on June 13, 2024

p.s.

So I will try and change this lib

Try to make it easy to add support for other h/w with you hardware as first example, so you will not need to change current code.

from arduinomodbusslave.

yaacov avatar yaacov commented on June 13, 2024

have fun 💚

from arduinomodbusslave.

falahati avatar falahati commented on June 13, 2024

@proace,
If you decided to go with this library for Modbus TCP make sure to keep the memory aspect of the program in mind. Parsing TCP can easily get out of hand especially when the library is created to handle both serial and TCP. Personally I suggest a separate fork for TCP if you decided to do so.

from arduinomodbusslave.

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.