Hi there,
I’m having trouble getting Modbus RTU over USB to work with my RCT POWER DC8 system.
I’m using openHAB version 4.3.4 and the following USB/RS485 converter:
USB RS485 Converter from BerryBase
Here’s my current Modbus configuration in things file:
Bridge modbus:serial:rct_usb "RCT DC8.0" @ "Modbus"[
port="/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0",
id=80,
baud=9600,
dataBits=8,
stopBits="1.0",
parity="none",
encoding="rtu",
timeBetweenTransactionsMillis=60,
connectMaxTries=3,
echo=false
] {
// Poller: Register 40032 to 40091
Bridge poller inverterBlock1 [ start=40032, length=60, refresh=10000, type="holding" ] {
Thing data lineFrequency "RCT Line Frequency" [ readStart="40043", readValueType="uint16", transform="JS(divide1000.js)", unit="Hz" ]
}
}
However, I’m getting the following error:
Status:
OFFLINE
COMMUNICATION_ERROR
Error with read: org.openhab.core.io.transport.modbus.exception.ModbusConnectionException: Error connecting to endpoint ModbusSerialSlaveEndpoint [getPortName()=/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0]
According to the supplier documentation, the RS485 port settings are as follows:
Baud rate: 9600
Coding system: 8-bit binary
Data format: 1 start bit, 8 data bits (LSB first), no parity, 1 stop bit
CRC: Polynomial 0xA001, initial value 0xFFFF
Register 40043 (Line Frequency) is of type uint16 and has a scaling factor of 0.001 Hz (read-only).
Any ideas on what could be causing the connection issue?
Could it be a driver issue, wrong device ID, wiring, or something else?
Thanks in advance!
Greetings,
Julian