Ok. After I wrote my post I have add:
timeBetweenTransactionsMillis=900
Then after restart I have connected with MOdbus device and updated items
Anyway it was once and then even refresh was set to 2s, items has not been refreshed. From the log I dont see any errors:
15-Oct-2018 12:17:16.349 [DEBUG] [org.openhab.io.transport.modbus ] - BundleEvent [unknown:512] - org.openhab.io.transport.modbus 15-Oct-2018 12:17:16.372 [DEBUG] [org.openhab.io.transport.modbus ] - ServiceEvent REGISTERED - {org.openhab.io.transport.modbus.ModbusManager}={service.id=119, service.bundleid=273, service.scope=bundle, component.name=org.openhab.io.transport.modbus.internal.ModbusManagerImpl, component.id=18} - org.openhab.io.transport.modbus 15-Oct-2018 12:17:16.380 [DEBUG] [org.openhab.io.transport.modbus ] - BundleEvent STARTING - org.openhab.io.transport.modbus 15-Oct-2018 12:17:16.383 [DEBUG] [org.openhab.io.transport.modbus ] - BundleEvent STARTED - org.openhab.io.transport.modbus 15-Oct-2018 12:17:16.431 [INFO ] [hab.io.transport.modbus.internal.ModbusManagerImpl] - Modbus manager activated 15-Oct-2018 12:17:16.489 [DEBUG] [org.openhab.binding.modbus ] - BundleEvent [unknown:512] - org.openhab.binding.modbus 15-Oct-2018 12:17:16.511 [DEBUG] [org.openhab.binding.modbus ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=120, service.bundleid=275, service.scope=bundle, component.name=org.openhab.binding.modbus.internal.ModbusHandlerFactory, component.id=19} - org.openhab.binding.modbus 15-Oct-2018 12:17:16.710 [DEBUG] [org.openhab.binding.modbus ] - BundleEvent STARTING - org.openhab.binding.modbus 15-Oct-2018 12:17:16.725 [DEBUG] [org.openhab.binding.modbus ] - BundleEvent STARTED - org.openhab.binding.modbus 15-Oct-2018 12:17:16.747 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - Setting manager: org.openhab.io.transport.modbus.internal.ModbusManagerImpl@2dbc7f 15-Oct-2018 12:17:21.032 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - Setting manager: org.openhab.io.transport.modbus.internal.ModbusManagerImpl@2dbc7f 15-Oct-2018 12:18:27.588 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - createHandler Modbus serial 15-Oct-2018 12:18:27.705 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - createHandler Modbus poller 15-Oct-2018 12:18:27.732 [DEBUG] [dbus.internal.handler.ModbusPollerThingHandlerImpl] - Registering polling with ModbusManager 15-Oct-2018 12:18:27.757 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - createHandler Modbus poller 15-Oct-2018 12:18:27.774 [DEBUG] [dbus.internal.handler.ModbusPollerThingHandlerImpl] - Registering polling with ModbusManager 15-Oct-2018 12:18:27.778 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - createHandler data 15-Oct-2018 12:18:27.802 [DEBUG] [hab.io.transport.modbus.internal.ModbusManagerImpl] - Executing scheduled (20000ms) poll task BasicPollTaskImpl@172b58f[request=ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@668128[slaveId=10,functionCode=READ_MULTIPLE_REGISTERS,start=4208,length=3,maxTries=3],endpoint=ModbusSerialSlaveEndpoint@1a2b8f3[portName=/dev/ttyUSB0],callback=org.openhab.binding.modbus.internal.handler.ModbusPollerThingHandlerImpl$ReadCallbackDelegator@ab484b7d]. Current millis: 1539598707776 15-Oct-2018 12:18:27.804 [DEBUG] [hab.io.transport.modbus.internal.ModbusManagerImpl] - Executing scheduled (20000ms) poll task BasicPollTaskImpl@1cdb63c[request=ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@1e16add[slaveId=10,functionCode=READ_INPUT_REGISTERS,start=16,length=3,maxTries=3],endpoint=ModbusSerialSlaveEndpoint@1a2b8f3[portName=/dev/ttyUSB0],callback=org.openhab.binding.modbus.internal.handler.ModbusPollerThingHandlerImpl$ReadCallbackDelegator@ab4b55ae]. Current millis: 1539598707748 15-Oct-2018 12:18:27.823 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - createHandler data 15-Oct-2018 12:18:27.837 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - createHandler data 15-Oct-2018 12:18:27.851 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - createHandler data 15-Oct-2018 12:18:27.865 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - createHandler data 15-Oct-2018 12:18:27.881 [DEBUG] [enhab.binding.modbus.internal.ModbusHandlerFactory] - createHandler data 15-Oct-2018 12:18:28.188 [DEBUG] [hab.io.transport.modbus.internal.ModbusManagerImpl] - Execution of scheduled (20000ms) poll task BasicPollTaskImpl@1cdb63c[request=ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@1e16add[slaveId=10,functionCode=READ_INPUT_REGISTERS,start=16,length=3,maxTries=3],endpoint=ModbusSerialSlaveEndpoint@1a2b8f3[portName=/dev/ttyUSB0],callback=org.openhab.binding.modbus.internal.handler.ModbusPollerThingHandlerImpl$ReadCallbackDelegator@ab4b55ae] finished at 1539598708187. Was started at millis: 1539598707748 (=duration of 439 millis) 15-Oct-2018 12:18:28.201 [DEBUG] [dbus.internal.handler.ModbusPollerThingHandlerImpl] - Thing modbus:poller:went:Temp received registers RegisterArrayWrappingInputRegister(00 94 00 ca 00 cf) for request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@1e16add[slaveId=10,functionCode=READ_INPUT_REGISTERS,start=16,length=3,maxTries=3] 15-Oct-2018 12:18:28.347 [DEBUG] [ing.modbus.internal.handler.ModbusDataThingHandler] - Thing modbus:data:went:Temp:TempZ channels updated: {modbus:data:went:Temp:TempZ:lastReadSuccess=2018-10-15T12:18:28.279+0200}. readValueType=int16, readIndex=Optional[16], readSubIndex(or 0)=0, extractIndex=0 -> numeric value 148 and boolValue=true. Registers RegisterArrayWrappingInputRegister(00 94 00 ca 00 cf) for request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@1e16add[slaveId=10,functionCode=READ_INPUT_REGISTERS,start=16,length=3,maxTries=3] 15-Oct-2018 12:18:28.353 [DEBUG] [ing.modbus.internal.handler.ModbusDataThingHandler] - Thing modbus:data:went:Temp:Temp_Nawiew channels updated: {modbus:data:went:Temp:Temp_Nawiew:lastReadSuccess=2018-10-15T12:18:28.350+0200}. readValueType=int16, readIndex=Optional[17], readSubIndex(or 0)=0, extractIndex=1 -> numeric value 202 and boolValue=true. Registers RegisterArrayWrappingInputRegister(00 94 00 ca 00 cf) for request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@1e16add[slaveId=10,functionCode=READ_INPUT_REGISTERS,start=16,length=3,maxTries=3] 15-Oct-2018 12:18:28.358 [DEBUG] [ing.modbus.internal.handler.ModbusDataThingHandler] - Thing modbus:data:went:Temp:Temp_Wywiew channels updated: {modbus:data:went:Temp:Temp_Wywiew:lastReadSuccess=2018-10-15T12:18:28.355+0200}. readValueType=int16, readIndex=Optional[18], readSubIndex(or 0)=0, extractIndex=2 -> numeric value 207 and boolValue=true. Registers RegisterArrayWrappingInputRegister(00 94 00 ca 00 cf) for request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@1e16add[slaveId=10,functionCode=READ_INPUT_REGISTERS,start=16,length=3,maxTries=3] 15-Oct-2018 12:18:29.284 [DEBUG] [dbus.internal.handler.ModbusPollerThingHandlerImpl] - Thing modbus:poller:went:Mode received registers RegisterArrayWrappingInputRegister(00 00 00 01 00 46) for request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@668128[slaveId=10,functionCode=READ_MULTIPLE_REGISTERS,start=4208,length=3,maxTries=3] 15-Oct-2018 12:18:29.284 [DEBUG] [hab.io.transport.modbus.internal.ModbusManagerImpl] - Execution of scheduled (20000ms) poll task BasicPollTaskImpl@172b58f[request=ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@668128[slaveId=10,functionCode=READ_MULTIPLE_REGISTERS,start=4208,length=3,maxTries=3],endpoint=ModbusSerialSlaveEndpoint@1a2b8f3[portName=/dev/ttyUSB0],callback=org.openhab.binding.modbus.internal.handler.ModbusPollerThingHandlerImpl$ReadCallbackDelegator@ab484b7d] finished at 1539598709284. Was started at millis: 1539598707776 (=duration of 1508 millis) 15-Oct-2018 12:18:29.291 [DEBUG] [ing.modbus.internal.handler.ModbusDataThingHandler] - Thing modbus:data:went:Mode:ModeW channels updated: {modbus:data:went:Mode:ModeW:lastReadSuccess=2018-10-15T12:18:29.288+0200}. readValueType=uint16, readIndex=Optional[4208], readSubIndex(or 0)=0, extractIndex=0 -> numeric value 0 and boolValue=false. Registers RegisterArrayWrappingInputRegister(00 00 00 01 00 46) for request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@668128[slaveId=10,functionCode=READ_MULTIPLE_REGISTERS,start=4208,length=3,maxTries=3] 15-Oct-2018 12:18:29.314 [DEBUG] [ing.modbus.internal.handler.ModbusDataThingHandler] - Thing modbus:data:went:Mode:Season channels updated: {modbus:data:went:Mode:Season:lastReadSuccess=2018-10-15T12:18:29.294+0200}. readValueType=uint16, readIndex=Optional[4209], readSubIndex(or 0)=0, extractIndex=1 -> numeric value 1 and boolValue=true. Registers RegisterArrayWrappingInputRegister(00 00 00 01 00 46) for request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@668128[slaveId=10,functionCode=READ_MULTIPLE_REGISTERS,start=4208,length=3,maxTries=3] 15-Oct-2018 12:18:29.320 [DEBUG] [ing.modbus.internal.handler.ModbusDataThingHandler] - Thing modbus:data:went:Mode:Flow channels updated: {modbus:data:went:Mode:Flow:lastReadSuccess=2018-10-15T12:18:29.317+0200}. readValueType=uint16, readIndex=Optional[4210], readSubIndex(or 0)=0, extractIndex=2 -> numeric value 70 and boolValue=true. Registers RegisterArrayWrappingInputRegister(00 00 00 01 00 46) for request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@668128[slaveId=10,functionCode=READ_MULTIPLE_REGISTERS,start=4208,length=3,maxTries=3]
From binding point of view I have uninstall 1.12 ver via PaperUI and put 2.4 version in addons folder.
Karaf see those bindings and I can restart them:
openhab> bundle:list -s | grep modb 273 │ Active │ 80 │ 2.4.0.M4 │ org.openhab.io.transport.modbus 275 │ Active │ 80 │ 2.4.0.201810101532 │ org.openhab.binding.modbus
Do I need both of them (before was just modbus) ?
If it is not proper way of adding snapshot version, so how to do this ?