Code Monkey home page Code Monkey logo

modbus-mini's Introduction

modbus-mini - Simple Modbus protocol implementation for Java 1.7+
https://github.com/sp20/modbus-mini/

Modbus RTU, TCP and UDP clients with functions 1, 2, 3, 4, 5, 6, 15, 16 are implemented at the moment.

For Modbus RTU there are three possible options:

  - jSerialComm (https://fazecast.github.io/jSerialComm/) - recommended.

  - jSSC (https://github.com/scream3r/java-simple-serial-connector) - is very stable and has worked in real 
    systems for years, but its development stopped and it does not work with the latest updates of JRE 8.

  - nrjavaserial (https://github.com/NeuronRobotics/nrjavaserial) - was not tested in long-running applications.

For logging the slf4j is used (http://www.slf4j.org/)

The code is working in real systems since 2014 on Windows and Linux (Ubuntu, Debian, Raspbian).

--------------------------------------------------------------------------------------------------------------

There is also a simple but handy console Modbus RTU sniffer.

https://github.com/sp20/modbus-mini/tree/master/release/modbus-sniffer.jar

Just connect the RS485/USB adapter to the existing Modbus RTU network and start the command:

In Windows:
java -jar modbus-sniffer.jar COM1 38400 N 2 modbus-log.txt

In Linux (the user must be in dialout group):
java -jar modbus-sniffer.jar /dev/ttyUSB0 38400 N 2 modbus-log.txt

modbus-mini's People

Contributors

sp20 avatar

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.