Morning Lads,
i finally give up.
I dont get the Serial Connection to work (or at least the Modbus binding).
Doing exactly the same setup with the “modpoll” tool, everything works like a charm.
Here some more Infos:
Setup: Raspberry Pi 4 - Openhabian - 3.4.3
Modbus USB Device: This
SYMLINK:
SUBSYSTEM==“tty”, ATTRS{idVendor}==“1a86”, ATTRS{idProduct}==“7523”, SYMLINK+=“ttyUSB-MODBUS”, GROUP=“dialout”, MODE=“0660”
(which works like a charm with modpooll)
EXTRA_JAVA_OPTS=
What else to say? I even did this:
sudo usermod -a -G tty openhab
sudo usermod -a -G dialout openhab
Error Message:
2023-05-05 15:26:52.502 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - Connect reached max tries 1, throwing last error: Could not get port identifier, maybe insufficient permissions. null. Connection SerialConnection [m_SerialPort=null, m_Parameters.getPortName()=/dev/ttyUSB-MODBUS]. Endpoint ModbusSerialSlaveEndpoint [getPortName()=/dev/ttyUSB-MODBUS]
2023-05-05 15:26:52.503 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - Error connecting connection SerialConnection [m_SerialPort=null, m_Parameters.getPortName()=/dev/ttyUSB-MODBUS] for endpoint ModbusSerialSlaveEndpoint [getPortName()=/dev/ttyUSB-MODBUS]: Could not get port identifier, maybe insufficient permissions. null
2023-05-05 15:26:52.505 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusSerialSlaveEndpoint [getPortName()=/dev/ttyUSB-MODBUS] – aborting request ModbusReadRequestBlueprint [slaveId=41, functionCode=READ_INPUT_REGISTERS, start=40, length=100, maxTries=1] [operation ID e50a9a94-e52a-4691-ba5e-54ef4b5cca64]
Screenshots:
I am done with this. I have no idea what else i can do.
I really hope for some help here. If you need anything else, just ask me. I can provide everything you want and maybe i forget something.
Thank you very much.
Marcel