--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/53b9f2c9-89fd-4774-9571-3c74fdd58256%40googlegroups.com.
i solved first some file rights errofs on the openhab installation by apt-get
[DEBUG] [.b.modbus.internal.ModbusSlave] - ModbusSlave:Error Code = 1
2015-05-25 18:11:16.991 [INFO ] [.b.modbus.internal.ModbusSlave] - ModbusSlave error getting responce from slave
[DEBUG][modbus.internal.
ModbusTcpSlave] - ModbusSlave: Error connecting to master: Connexion refusée
2015-05-26 01:28:45.690 [INFO ] [.b.modbus.internal.ModbusSlave] - ModbusSlave not connected
i can read properly with mbtget but not with openhab
On Tuesday, 26 May 2015 17:39:54 UTC+2, Xavier Lebrun wrote:
[DEBUG][modbus.internal.ModbusTcpSlave] - ModbusSlave: Error connecting to master: Connexion refusée
2015-05-26 01:28:45.690 [INFO ] [.b.modbus.internal.ModbusSlave] - ModbusSlave not connected
i can read properly with mbtget but not with openhabCould you try to set the modbus:poll in the openhab.cfg to
modbus:poll=5200
this is the modbus timeout of your target device +200ms buffer.
Is there no other error than the connection refused thing, just that line?
by the way
thank you for supporting
my configuration is :
modbus:poll=6000
modbus:tcp.slave1.connection=192.168.1.31
modbus:tcp.slave1.type=input
modbus:tcp.slave1.port=502
modbus:tcp.slave1.id=1
modbus:tcp.slave1.start=22
modbus:tcp.slave1.length=3
modbus:tcp.slave1.valuetype=uint16
items :
Number engine_errorstate "engine errorstate" (gState) {modbus="slave1:22"}
Number engine_mode "engine mode" (gState) {modbus="slave1:23"}
Number engine_state "engine state" (gState) {modbus="slave1:24"}
whenn startin start_debug.sh
still i have the error :
[INFO ] [.b.modbus.internal.ModbusSlave:305 ] - ModbusSlave error getting responce from slave
is there something wrong in my config ?
a new test result
[DEBUG] [o.b.m.internal.ModbusActivator:30 ] - Modbus binding has been started.
12:09:32.804 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item 'engine_errorstate (Type=NumberItem, State=Uninitialized)' with 'ModbusGenericBindingProvider' reader.
12:09:32.805 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item 'engine_mode (Type=NumberItem, State=Uninitialized)' with 'ModbusGenericBindingProvider' reader.
12:09:32.806 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item 'engine_state (Type=NumberItem, State=Uninitialized)' with 'ModbusGenericBindingProvider' reader.
12:09:32.844 [DEBUG] [.modbus.internal.ModbusBinding:282 ] - modbusSlave 'slave1' instanciated
12:09:32.845 [DEBUG] [.modbus.internal.ModbusBinding:344 ] - config looked good, proceeding with slave-connections
12:09:32.860 [INFO ] [.service.AbstractActiveService:169 ] - Modbus Polling Service has been started
12:09:32.892 [INFO ] [.b.modbus.internal.ModbusSlave:305 ] - ModbusSlave error getting responce from slave
still i can read with mbtget
is see no difference with the offset value
to me, it seems wireshark is able to read the modbus connection that openhab is not able to read
could it be an openhab issue ?
or an issue in my installation ?
here is the results with wireshark :
- mbtget
- command : mbtget -r4 -n 4 -a 20 192.168.1.11
- values:
1 (ad 00020): 50
2 (ad 00021): 0
3 (ad 00022): 0
4 (ad 00023): 8965
- wireshark computer > slave :
- function code : read input register (4)
- reference number : 20
- word count : 4
- wireshark slave > computer
- function code : read input register (4)
- Byte count : 8
- register 0 (UINT16) : 50
- Register 1 (unint16) : 0
- register 2 (unint16) : 0
- register 3 : (unint16) : 8965
- openhab
- debug :
- DEBUG] [.modbus.internal.ModbusBinding:282 ] - modbusSlave 'slave1' instanciated
16:49:42.757 [DEBUG] [.modbus.internal.ModbusBinding:344 ] - config looked good, proceeding with slave-connections
16:49:42.767 [INFO ] [.service.AbstractActiveService:169 ] - Modbus Polling Service has been started
16:49:42.847 [INFO ] [.b.modbus.internal.ModbusSlave:305 ] - ModbusSlave error getting responce from slave
- wireshark
- openhab > slave :
- function code : read input register (4)
- reference number : 20
- word count : 3
- slave> openhab
- ireshark slave > computer
- function code : read input register (4)
- Byte count : 6
- register 0 (UINT16) : 50
- Register 1 (unint16) : 0
- register 2 (unint16) : 0
could it be an openhab issue ?
but i have no idea about the possible origins