An open API service indexing awesome lists of open source software.

https://github.com/steveohara/j2mod

Enhanced Modbus library implemented in the Java programming language
https://github.com/steveohara/j2mod

modbus modbus-master modbus-rtu modbus-serial modbus-slave modbus-tcp

Last synced: about 1 month ago
JSON representation

Enhanced Modbus library implemented in the Java programming language

Awesome Lists containing this project

README

          

# Overview
This project is a fork of the [j2mod](https://sourceforge.net/projects/j2mod/) library which began life as [jamod](http://jamod.sourceforge.net/).
A huge amount of refactoring and code fixing has been carried out on this library, with the addition of supporting JUnit tests, to ensure the library is fit for production use.

This implementation supports Modbus TCP, UDP, RTU over TCP, Serial RTU and Serial ASCII in both Master and Slave configurations.
The serial comms is implemented using [jSerialComm](http://fazecast.github.io/jSerialComm/) and does not require any outside dependencies over and above the logging facade [slf4j](https://www.slf4j.org/).

For instructions on how to use the library, visit the wiki [here](https://github.com/steveohara/j2mod/wiki)

# Releases
Stable releases can be downloaded here

https://mvnrepository.com/artifact/com.ghgande/j2mod

**Note**: _Snapshot releases are no longer supported - they exist up until 3.2.2 but Sonatype have made them non-browsable
and thanks to the way Maven works, they are not retrievable. The world has moved on and stable releases are the way to go._

# Known Issues

* There are no unit tests for the RTU over TCP transport
* There is no way of adding `AbstractSerialTransportListener` to a `ModbusSlave` which means you cannot get informed of when the library is switching between send and receive
* A refactor is overdue to hide package components to encourage best practise usage patterns

# Dependencies

* [jSerialComm](http://fazecast.github.io/jSerialComm/)
The serial comms is handled by JSerialComm that includes native implementations for most platforms.
* [slf4j](https://www.slf4j.org/)
Logging facade to fit in with your application logging framework
* JRE 1.8 (JRE 1.6 for v2.70 and lower)

# Including j2mod


com.ghgande
j2mod
LATEST


# Announcements