Skip to content
프로젝트

소개

Java 17 이상을 위한 Modbus TCP, Modbus TCP Security, 직렬 통신 기반 Modbus RTU 및 TCP 기반 Modbus RTU입니다.

보안 및 개인정보 보호

이 수치를 측정하는 방법

What you can do

  • Modbus TCP - Yes - Yes - Optional mutual TLS
  • Modbus RTU over serial - Yes - Yes - No
  • Modbus RTU over TCP - Yes - Yes - Optional mutual TLS

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

digitalpetri Modbus

Maven Central

digitalpetri Modbus is a Java 17 client and server library for Modbus TCP, Modbus TCP Security (TLS), Modbus RTU over serial, and Modbus RTU over TCP. It provides typed request and response PDUs, pluggable transports and codecs, and both synchronous and asynchronous client operations.

Reading holding registers from a Modbus TCP device looks like this:

var transport = NettyTcpClientTransport.create(cfg -> cfg.setHostname("10.0.0.100"));
var client = ModbusTcpClient.create(transport);

try (var ignored = client.open()) {
  var response = client.readHoldingRegisters(1, new ReadHoldingRegistersRequest(0, 2));
  System.out.println("register bytes: " + HexFormat.of().formatHex(response.registers()));
}

Installation and modules

Most applications depend on the transport module they use; Maven brings in the core modbus module transitively.

Module Use it for
modbus Core client/server APIs, PDUs, framing, services, and transport interfaces
modbus-tcp Netty transports for Modbus TCP, TCP with TLS, and RTU over TCP
modbus-serial jSerialComm transports for Modbus RTU over a serial port

For a Modbus TCP application:

<dependency>
  <groupId>com.digitalpetri.modbus</groupId>
  <artifactId>modbus-tcp</artifactId>
  <version>2.2.0</version>
</dependency>

See Installation and modules for serial coordinates, Java requirements, and module details.

Transport capabilities

Transport Client Server TLS
Modbus TCP Yes Yes Optional mutual TLS
Modbus RTU over serial Yes Yes No
Modbus RTU over TCP Yes Yes Optional mutual TLS

See the feature and transport matrix for typed function-code, raw-PDU, and broadcast support.

Documentation

The documentation index lists every how-to, concept, and reference page.

Common tasks:

Concepts and reference:

License

digitalpetri Modbus is licensed under the Eclipse Public License 2.0.

관련 프로젝트 살펴보기

불러오는 중…