- dataCopy() - Method in interface net.solarnetwork.io.modbus.RegistersModbusMessage
-
Get a copy of the raw register data.
- dataDecode() - Method in interface net.solarnetwork.io.modbus.RegistersModbusMessage
-
Get the register data as signed 16-bit values.
- dataDecodeUnsigned() - Method in interface net.solarnetwork.io.modbus.RegistersModbusMessage
-
Get the register data as unsigned 16-bit values.
- decode(byte[]) - Static method in class net.solarnetwork.io.modbus.ModbusByteUtils
-
Get raw data as signed 16-bit values.
- decode(byte[], int, int) - Static method in class net.solarnetwork.io.modbus.ModbusByteUtils
-
Get raw data as signed 16-bit values.
- decodeHexPadStart(char[]) - Static method in class net.solarnetwork.io.modbus.ModbusByteUtils
-
Convert a hex-encoded string to a byte array.
- decodeHexString(String) - Static method in class net.solarnetwork.io.modbus.ModbusByteUtils
-
Convert a hex-encoded string to a byte array.
- decodeUnsigned(byte[]) - Static method in class net.solarnetwork.io.modbus.ModbusByteUtils
-
Get raw data as unsigned 16-bit values.
- decodeUnsigned(byte[], int, int) - Static method in class net.solarnetwork.io.modbus.ModbusByteUtils
-
Get raw data as unsigned 16-bit values.
- DEFAULT_AUTO_RECONNECT - Static variable in interface net.solarnetwork.io.modbus.ModbusClientConfig
-
The default automatic reconnection setting.
- DEFAULT_BAUD_RATE - Static variable in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
A default baud rate.
- DEFAULT_DATA_BITS - Static variable in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
The default databits value.
- DEFAULT_PARITY - Static variable in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
The default parity value.
- DEFAULT_READ_TIMEOUT - Static variable in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
The default read timeout.
- DEFAULT_RECONNECT_DELAY_SECS - Static variable in interface net.solarnetwork.io.modbus.ModbusClientConfig
-
The default reconnection delay seconds.
- DEFAULT_RS485_AFTER_SEND_DELAY - Static variable in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
The default RS-485 RTS before send delay.
- DEFAULT_RS485_BEFORE_SEND_DELAY - Static variable in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
The default RS-485 RTS before send delay.
- DEFAULT_RS485_RTS_HIGH_ENABLED - Static variable in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
The default RS-485 RTS high enabled value.
- DEFAULT_STOP_BITS - Static variable in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
The default stopbits value.
- DIAGNOSTICS - Static variable in class net.solarnetwork.io.modbus.ModbusFunctionCodes
-
Diagnostics.
- DSR_FLOW_CONTROL - Static variable in enum net.solarnetwork.io.modbus.serial.SerialFlowControl
-
Code value for DSR flow control.
- DSR_FLOW_CONTROL_ABBREVIATION - Static variable in enum net.solarnetwork.io.modbus.serial.SerialFlowControl
-
Abbreviation value for DSR flow control.
- DTR_FLOW_CONTROL - Static variable in enum net.solarnetwork.io.modbus.serial.SerialFlowControl
-
Code value for DTR flow control.
- DTR_FLOW_CONTROL_ABBREVIATION - Static variable in enum net.solarnetwork.io.modbus.serial.SerialFlowControl
-
Abbreviation value for DTR flow control.
- GATEWAY_PATH_UNAVAILABLE - Static variable in class net.solarnetwork.io.modbus.ModbusErrorCodes
-
Specialized for Modbus gateways.
- GATEWAY_TIMEOUT - Static variable in class net.solarnetwork.io.modbus.ModbusErrorCodes
-
Specialized for Modbus gateways.
- GET_COMM_EVENT_COUNTER - Static variable in class net.solarnetwork.io.modbus.ModbusFunctionCodes
-
Get the communication event counter.
- GET_COMM_EVENT_LOG - Static variable in class net.solarnetwork.io.modbus.ModbusFunctionCodes
-
Get the communication event log.
- getAbbreviation() - Method in enum net.solarnetwork.io.modbus.serial.SerialParity
-
Get an abbreviation for this parity.
- getAddress() - Method in interface net.solarnetwork.io.modbus.AddressedModbusMessage
-
Get the starting address.
- getAndMask() - Method in interface net.solarnetwork.io.modbus.MaskWriteRegisterModbusMessage
-
Get the 16-bit logical and mask value.
- getAutoReconnectDelaySeconds() - Method in interface net.solarnetwork.io.modbus.ModbusClientConfig
-
- getBaudRate() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getBaudRate() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the baud rate.
- getBitCount() - Method in enum net.solarnetwork.io.modbus.ModbusBlockType
-
Get the number of bits registers of this type use.
- getBits() - Method in interface net.solarnetwork.io.modbus.BitsModbusMessage
-
Get the bits.
- getClientConfig() - Method in interface net.solarnetwork.io.modbus.ModbusClient
-
Get the client configuration.
- getCode() - Method in enum net.solarnetwork.io.modbus.ModbusBlockType
-
Get the function code.
- getCode() - Method in interface net.solarnetwork.io.modbus.ModbusError
-
Get the error code value.
- getCode() - Method in enum net.solarnetwork.io.modbus.ModbusErrorCode
-
- getCode() - Method in interface net.solarnetwork.io.modbus.ModbusFunction
-
Get the function code.
- getCode() - Method in enum net.solarnetwork.io.modbus.ModbusFunctionCode
-
- getCode() - Method in enum net.solarnetwork.io.modbus.serial.SerialFlowControl
-
Get the code value.
- getCode() - Method in enum net.solarnetwork.io.modbus.serial.SerialParity
-
Get the code value.
- getCode() - Method in enum net.solarnetwork.io.modbus.serial.SerialStopBits
-
Get the code value.
- getCode() - Method in class net.solarnetwork.io.modbus.UserModbusError
-
- getCode() - Method in class net.solarnetwork.io.modbus.UserModbusFunction
-
- getCount() - Method in interface net.solarnetwork.io.modbus.AddressedModbusMessage
-
Get the data value count.
- getDataBits() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getDataBits() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the data bits.
- getDescription() - Method in interface net.solarnetwork.io.modbus.ModbusClientConfig
-
Get a description of this Modbus client configuration.
- getError() - Method in interface net.solarnetwork.io.modbus.ModbusMessage
-
Get the Modbus error code.
- getFlowControl() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getFlowControl() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the flow control.
- getFunction() - Method in interface net.solarnetwork.io.modbus.ModbusMessage
-
Get the Modbus function code.
- getInputStream() - Method in interface net.solarnetwork.io.modbus.serial.SerialPort
-
Get the serial input stream.
- getName() - Method in interface net.solarnetwork.io.modbus.serial.SerialPort
-
Get the name of the serial port, such as /dev/ttyUSB0 or
COM1.
- getOrMask() - Method in interface net.solarnetwork.io.modbus.MaskWriteRegisterModbusMessage
-
Get the 16-bit logical or mask value.
- getOutputStream() - Method in interface net.solarnetwork.io.modbus.serial.SerialPort
-
Get the serial output stream.
- getParity() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getParity() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the parity.
- getReadTimeout() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getReadTimeout() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the read timeout.
- getRequest() - Method in interface net.solarnetwork.io.modbus.ModbusMessageReply
-
Get the original request message this message is a reply to.
- getRs485AfterSendDelay() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getRs485AfterSendDelay() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get a time to wait after sending data before disabling transmit mode when
in RS-485 mode.
- getRs485BeforeSendDelay() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getRs485BeforeSendDelay() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get a time to wait after enabling transmit mode before sending data when
in RS-485 mode.
- getRs485ModeEnabled() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getRs485ModeEnabled() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the RS-485 mode.
- getSendMinimumDelayMs() - Method in interface net.solarnetwork.io.modbus.ModbusClientConfig
-
Get a minimum delay between sending messages, in milliseconds.
- getSerialPort(String) - Method in interface net.solarnetwork.io.modbus.serial.SerialPortProvider
-
Get a serial port.
- getStopBits() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getStopBits() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the stop bits.
- getUnitId() - Method in interface net.solarnetwork.io.modbus.ModbusMessage
-
Get the device unit ID.
- getWaitTime() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- getWaitTime() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the wait time.
- getWriteAddress() - Method in interface net.solarnetwork.io.modbus.ReadWriteRegistersModbusMessage
-
Get the write starting address.
- ILLEGAL_DATA_ADDRESS - Static variable in class net.solarnetwork.io.modbus.ModbusErrorCodes
-
Data address of some or all the required entities are not allowed or do
not exist in server.
- ILLEGAL_DATA_VALUE - Static variable in class net.solarnetwork.io.modbus.ModbusErrorCodes
-
Value is not accepted by server.
- ILLEGAL_FUNCTION - Static variable in class net.solarnetwork.io.modbus.ModbusErrorCodes
-
Function code received in the query is not recognized or allowed by
server.
- isAutoReconnect() - Method in interface net.solarnetwork.io.modbus.ModbusClientConfig
-
Get the "auto reconnect" setting.
- isBitEnabled(int) - Method in interface net.solarnetwork.io.modbus.BitsModbusMessage
-
Test if a specific bit is enabled.
- isBitType() - Method in enum net.solarnetwork.io.modbus.ModbusBlockType
-
Get the "bit type-ness" of this register block type.
- isConnected() - Method in interface net.solarnetwork.io.modbus.ModbusClient
-
Test if the client is started and connected to the Modbus network.
- isException() - Method in interface net.solarnetwork.io.modbus.ModbusMessage
-
Test if this message is an exception (error).
- isOpen() - Method in interface net.solarnetwork.io.modbus.serial.SerialPort
-
Test if the stream is open.
- isReadFunction() - Method in interface net.solarnetwork.io.modbus.ModbusFunction
-
Return true if this function represents a read operation.
- isReadFunction() - Method in enum net.solarnetwork.io.modbus.ModbusFunctionCode
-
- isReadFunction() - Method in class net.solarnetwork.io.modbus.UserModbusFunction
-
- isReadOnly() - Method in enum net.solarnetwork.io.modbus.ModbusBlockType
-
Get the read-only flag.
- isRs485EchoEnabled() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- isRs485EchoEnabled() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the RS-485 "echo" mode.
- isRs485RtsHighEnabled() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- isRs485RtsHighEnabled() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the RS-485 RTS "high" mode.
- isRs485TerminationEnabled() - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
- isRs485TerminationEnabled() - Method in interface net.solarnetwork.io.modbus.serial.SerialParameters
-
Get the RS-485 termination mode.
- isSameAs(ModbusMessage) - Method in interface net.solarnetwork.io.modbus.ModbusMessage
-
Compare the "sameness" of this message to another.
- isStarted() - Method in interface net.solarnetwork.io.modbus.ModbusClient
-
- MARK_PARITY - Static variable in enum net.solarnetwork.io.modbus.serial.SerialParity
-
Code value for mark parity.
- MARK_PARITY_ABBREVIATION - Static variable in enum net.solarnetwork.io.modbus.serial.SerialParity
-
Abbreviation value for mark parity.
- MASK_WRITE_HOLDING_REGISTER - Static variable in class net.solarnetwork.io.modbus.ModbusFunctionCodes
-
Mask write holding register.
- MaskWriteRegisterModbusMessage - Interface in net.solarnetwork.io.modbus
-
A Modbus message related to a holding register mask write.
- MEMORY_PARITY_ERROR - Static variable in class net.solarnetwork.io.modbus.ModbusErrorCodes
-
Server detected a parity error in memory.
- ModbusBlockType - Enum in net.solarnetwork.io.modbus
-
Modbus register block types.
- ModbusByteUtils - Class in net.solarnetwork.io.modbus
-
Utilities for Modbus byte manipulation.
- ModbusClient - Interface in net.solarnetwork.io.modbus
-
API for a Modbus client application.
- ModbusClientConfig - Interface in net.solarnetwork.io.modbus
-
API for Modbus client configuration.
- ModbusClientConnectionObserver - Interface in net.solarnetwork.io.modbus
-
API for an observer of ModbusClient connection state.
- ModbusError - Interface in net.solarnetwork.io.modbus
-
API for a Modbus exception code.
- ModbusErrorCode - Enum in net.solarnetwork.io.modbus
-
Modbus error codes.
- ModbusErrorCodes - Class in net.solarnetwork.io.modbus
-
Modbus error codes utilities and constants.
- ModbusException - Exception in net.solarnetwork.io.modbus
-
A general Modbus exception.
- ModbusException() - Constructor for exception net.solarnetwork.io.modbus.ModbusException
-
Constructor.
- ModbusException(String) - Constructor for exception net.solarnetwork.io.modbus.ModbusException
-
Constructor.
- ModbusException(Throwable) - Constructor for exception net.solarnetwork.io.modbus.ModbusException
-
Constructor.
- ModbusException(String, Throwable) - Constructor for exception net.solarnetwork.io.modbus.ModbusException
-
Constructor.
- ModbusFunction - Interface in net.solarnetwork.io.modbus
-
API for a Modbus function.
- ModbusFunctionCode - Enum in net.solarnetwork.io.modbus
-
Modbus function codes.
- ModbusFunctionCodes - Class in net.solarnetwork.io.modbus
-
Function code utilities and constants.
- ModbusMessage - Interface in net.solarnetwork.io.modbus
-
API for a Modbus message.
- ModbusMessageReply - Interface in net.solarnetwork.io.modbus
-
A Modbus request/response pair.
- ModbusTimeoutException - Exception in net.solarnetwork.io.modbus
-
A Modbus timeout exception.
- ModbusTimeoutException() - Constructor for exception net.solarnetwork.io.modbus.ModbusTimeoutException
-
Constructor.
- ModbusTimeoutException(String) - Constructor for exception net.solarnetwork.io.modbus.ModbusTimeoutException
-
Constructor.
- ModbusTimeoutException(Throwable) - Constructor for exception net.solarnetwork.io.modbus.ModbusTimeoutException
-
Constructor.
- ModbusTimeoutException(String, Throwable) - Constructor for exception net.solarnetwork.io.modbus.ModbusTimeoutException
-
Constructor.
- ModbusValidationException - Exception in net.solarnetwork.io.modbus
-
An exception thrown when a Modbus validation fails.
- ModbusValidationException(String) - Constructor for exception net.solarnetwork.io.modbus.ModbusValidationException
-
Constructor.
- ModbusValidationException(Throwable) - Constructor for exception net.solarnetwork.io.modbus.ModbusValidationException
-
Constructor.
- ModbusValidationException(String, Throwable) - Constructor for exception net.solarnetwork.io.modbus.ModbusValidationException
-
Constructor.
- send(ModbusMessage) - Method in interface net.solarnetwork.io.modbus.ModbusClient
-
Send a request and receive a response, synchronously.
- sendAsync(ModbusMessage) - Method in interface net.solarnetwork.io.modbus.ModbusClient
-
Send a request and receive a response, asynchronously.
- SerialFlowControl - Enum in net.solarnetwork.io.modbus.serial
-
Enumeration of serial flow control settings.
- SerialParameters - Interface in net.solarnetwork.io.modbus.serial
-
Serial configuration parameters.
- SerialParity - Enum in net.solarnetwork.io.modbus.serial
-
Enumeration of serial parity settings.
- SerialPort - Interface in net.solarnetwork.io.modbus.serial
-
API for a serial port.
- SerialPortProvider - Interface in net.solarnetwork.io.modbus.serial
-
- SerialStopBits - Enum in net.solarnetwork.io.modbus.serial
-
Enumeration of serial "stopbit" settings.
- SERVER_DEVICE_BUSY - Static variable in class net.solarnetwork.io.modbus.ModbusErrorCodes
-
Server is engaged in processing a long-duration command.
- SERVER_DEVICE_FAILURE - Static variable in class net.solarnetwork.io.modbus.ModbusErrorCodes
-
Unrecoverable error occurred while server was attempting to perform
requested action.
- setBaudRate(int) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the baud rate.
- setConnectionObserver(ModbusClientConnectionObserver) - Method in interface net.solarnetwork.io.modbus.ModbusClient
-
Configure a connection observer.
- setDataBits(int) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the data bits.
- setFlowControl(Set<SerialFlowControl>) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the flow control.
- setParity(SerialParity) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the parity.
- setReadTimeout(int) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the read timeout.
- setRs485AfterSendDelay(int) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set a time to wait after sending data before disabling transmit mode when
in RS-485 mode
- setRs485BeforeSendDelay(int) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set a time to wait after enabling transmit mode before sending data when
in RS-485 mode.
- setRs485EchoEnabled(boolean) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the RS-485 "echo" mode.
- setRs485ModeEnabled(Boolean) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the RS-485 mode.
- setRs485RtsHighEnabled(boolean) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the RS-485 RTS "high" mode.
- setRs485TerminationEnabled(boolean) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the RS-485 termination mode.
- setStopBits(SerialStopBits) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the stop bits.
- setWaitTime(int) - Method in class net.solarnetwork.io.modbus.serial.BasicSerialParameters
-
Set the wait time.
- SPACE_PARITY - Static variable in enum net.solarnetwork.io.modbus.serial.SerialParity
-
Code value for space parity.
- SPACE_PARITY_ABBREVIATION - Static variable in enum net.solarnetwork.io.modbus.serial.SerialParity
-
Abbreviation value for space parity.
- start() - Method in interface net.solarnetwork.io.modbus.ModbusClient
-
Start the client.
- stop() - Method in interface net.solarnetwork.io.modbus.ModbusClient
-
Stop the client.
- validate() - Method in interface net.solarnetwork.io.modbus.ModbusMessage
-
Validate this message in some way.
- valueOf(String) - Static method in enum net.solarnetwork.io.modbus.ModbusBlockType
-
Returns the enum constant of this type with the specified name.
- valueOf(int) - Static method in enum net.solarnetwork.io.modbus.ModbusBlockType
-
Get an enumeration instance for a code value.
- valueOf(String) - Static method in enum net.solarnetwork.io.modbus.ModbusErrorCode
-
Returns the enum constant of this type with the specified name.
- valueOf(byte) - Static method in enum net.solarnetwork.io.modbus.ModbusErrorCode
-
- valueOf(String) - Static method in enum net.solarnetwork.io.modbus.ModbusFunctionCode
-
Returns the enum constant of this type with the specified name.
- valueOf(byte) - Static method in enum net.solarnetwork.io.modbus.ModbusFunctionCode
-
Get a function instance for a code value.
- valueOf(String) - Static method in enum net.solarnetwork.io.modbus.serial.SerialFlowControl
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.solarnetwork.io.modbus.serial.SerialParity
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.solarnetwork.io.modbus.serial.SerialStopBits
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum net.solarnetwork.io.modbus.ModbusBlockType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum net.solarnetwork.io.modbus.ModbusErrorCode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum net.solarnetwork.io.modbus.ModbusFunctionCode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum net.solarnetwork.io.modbus.serial.SerialFlowControl
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum net.solarnetwork.io.modbus.serial.SerialParity
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum net.solarnetwork.io.modbus.serial.SerialStopBits
-
Returns an array containing the constants of this enum type, in
the order they are declared.