17:48:40.896 [DEBUG] [b.m.internal.ModbusSerialSlave:117 ] - connection was null, going to create a new one
17:48:41.131 [INFO ] [.b.modbus.internal.ModbusSlave:305 ] - ModbusSlave error getting responce from slave
17:48:41.334 [DEBUG] [b.m.internal.ModbusSerialSlave:117 ] - connection was null, going to create a new one
17:48:41.569 [INFO ] [.b.modbus.internal.ModbusSlave:305 ] - ModbusSlave error getting responce from slave
17:48:41.772 [DEBUG] [b.m.internal.ModbusSerialSlave:117 ] - connection was null, going to create a new one
17:48:42.007 [INFO ] [.b.modbus.internal.ModbusSlave:305 ] - ModbusSlave error getting responce from slave
Programms like modbuspoll bring the right Value.(32float)
If i delete the last line in my .cfg i get two registers with the right contense.
.items
/Modbus/
Group FF_Modbus “Modbus” (All)
Number MB_DT0 “DT0 [%d]” (FF_Modbus){modbus=“slave1:0”}
Number MB_DT1 “DT1 [%d]” (FF_Modbus){modbus=“slave1:1”}
event log:
2015-10-24 23:37:47 - MB_DT0 state updated to 17258
2015-10-24 23:37:48 - MB_DT1 state updated to 6554
2015-10-24 23:37:48 - MB_DT0 state updated to 17258
2015-10-24 23:37:48 - MB_DT1 state updated to 52429
so i can see it works but i cant get it like i want.
Yes you can test with those but please note that the linked issue is still unsolved. If you can paste your config here it is easier to know if this is something new or the old issue. Thanks
Thanks @moe_hutz for the configuration. You have only one slave configured in modbus? So this might be different issue…
What I can say is that “Error reading response” comes from getting EOF from the serial connection (when trying to read response to the request). Are you sure you have the correct serial port parameters?
I know this is a lot to ask but can you try to test the connection using some other tool, for example this python tool? If some other tools/software works (on the linux), then it means the openhab modbus binding has issue.
Also, have you verified the device address (/dev/ttyAMA0 or /dev/USB0)?
This debug -
2016-01-02 08:01:50.129 [DEBUG] [i.modbus.io.ModbusRTUTransport] - Sent: 01 03 20 20 00 02 ce 01
doesn’t seem to match up with config -
modbus:serial.slave1.start=8192
modbus:serial.slave1.length=2
8192 is 20 00 in hex, I’d expect to see a send 01 03 20 00 00 02 … …