| Package | Description |
|---|---|
| com.ghgande.j2mod.modbus.facade | |
| com.ghgande.j2mod.modbus.io | |
| com.ghgande.j2mod.modbus.net |
| Modifier and Type | Method and Description |
|---|---|
AbstractSerialConnection |
ModbusSerialMaster.getConnection() |
| Modifier and Type | Method and Description |
|---|---|
AbstractSerialConnection |
ModbusSerialTransport.getCommPort()
Returns the comms port being used for this transport
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractSerialTransportListener.afterMessageWrite(AbstractSerialConnection port,
ModbusMessage msg)
Will be called whenever a message has been written either successfully or unsuccessfully
Although a message may not be sent (throws and error), this even is guaranteed to occur
|
void |
AbstractSerialTransportListener.afterRequestRead(AbstractSerialConnection port,
ModbusRequest req)
Called whenever a request has been received
|
void |
AbstractSerialTransportListener.afterResponseRead(AbstractSerialConnection port,
ModbusResponse res)
Called whenever a response has been received
|
void |
AbstractSerialTransportListener.beforeMessageWrite(AbstractSerialConnection port,
ModbusMessage msg)
Will be called whenever a message is about to be written
|
void |
AbstractSerialTransportListener.beforeRequestRead(AbstractSerialConnection port)
Called before a request is read
|
void |
AbstractSerialTransportListener.beforeResponseRead(AbstractSerialConnection port)
Called before a response is read
|
void |
AbstractSerialTransportListener.disconnected(AbstractSerialConnection port)
Called whenever a device is disconnected
|
void |
ModbusSerialTransport.setCommPort(AbstractSerialConnection cp)
setCommPort sets the comm port member and prepares the input
and output streams to be used for reading from and writing to. |
void |
ModbusSerialTransaction.setSerialConnection(AbstractSerialConnection con)
Sets the port on which this ModbusTransaction
should be executed.
|
| Constructor and Description |
|---|
ModbusSerialTransaction(AbstractSerialConnection con)
Constructs a new ModbusSerialTransaction
instance with a given ModbusRequest to
be send when the transaction is executed.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SerialConnection
Class that implements a serial connection which can be used for master and
slave implementations.
|
| Modifier and Type | Method and Description |
|---|---|
static AbstractSerialConnection |
SerialConnection.getCommPort(String commPort)
Returns a JSerialComm implementation for the given comms port
|
| Constructor and Description |
|---|
ModbusSerialListener(AbstractSerialConnection serialCon)
Constructs a new ModbusSerialListener instance specifying the serial connection interface
|
Copyright © 2025. All Rights Reserved.