Hallo, ich bräuchte da mal eure Hilfe,
ich versuche mich gerade an dem Modbus Binding und komme einfach nicht weiter. Ich schaffe es zwar mich, per USB zu verbinden, bekomme aber nur folgende Fehlermeldung:
given modbus-slave-config-key 'slave1.host' does not follow the expected pattern or 'serial.<slaveId>.<connection|id|start|length|type |valuetype|rawdatamultiplier|writemultipleregister s>'
Meine openhab.cfg sieht so aus:
############################### Modbus Binding ########################################
#
# sets refresh interval to Modbus polling service.
# Value in milliseconds (optional, defaults to 200)
modbus
oll=2000
# host (mandatory)
modbus:serial.slave1.connection=com9:baud=9600:dat aBits=8
arity=even:stopBits=1:encoding=rtu
# The data type, can be "coil" "discrete" "holding" "input"
modbus:serial.slave1.type=holding
# the TCP port (optional, defaults to '502')
#modbus:tcp.slave1.port=6000
# The slave id (optional, defaults to '1')
modbus:serial.slave1.id=1
# The slave start address (optional, defaults to '0')
modbus:serial.slave1.start=2000
# The number of data item to read
# (optional, defaults to '0' - but set it to something meaningful)
modbus:serial.slave1.length=2
# Value type, required for combined registers (details: http://www.simplymodbus.ca/FAQ.htm#Types)
# Can be "bit", "int8", "uint8", "int16", "uint16", "int32", "uint32", "float32"
# (optional, defaults to 'uint16')
modbus:serial.slave1.valuetype=float32
Mit Modbus Poll funktioniert alle einwandfrei,
Ich teste im Moment auf meinem windows Rechner möchte aber später meinen Raspberry dafür nutzen.
Gruß Mike
ich versuche mich gerade an dem Modbus Binding und komme einfach nicht weiter. Ich schaffe es zwar mich, per USB zu verbinden, bekomme aber nur folgende Fehlermeldung:
given modbus-slave-config-key 'slave1.host' does not follow the expected pattern or 'serial.<slaveId>.<connection|id|start|length|type |valuetype|rawdatamultiplier|writemultipleregister s>'
Meine openhab.cfg sieht so aus:
############################### Modbus Binding ########################################
#
# sets refresh interval to Modbus polling service.
# Value in milliseconds (optional, defaults to 200)
modbus

# host (mandatory)
modbus:serial.slave1.connection=com9:baud=9600:dat aBits=8

# The data type, can be "coil" "discrete" "holding" "input"
modbus:serial.slave1.type=holding
# the TCP port (optional, defaults to '502')
#modbus:tcp.slave1.port=6000
# The slave id (optional, defaults to '1')
modbus:serial.slave1.id=1
# The slave start address (optional, defaults to '0')
modbus:serial.slave1.start=2000
# The number of data item to read
# (optional, defaults to '0' - but set it to something meaningful)
modbus:serial.slave1.length=2
# Value type, required for combined registers (details: http://www.simplymodbus.ca/FAQ.htm#Types)
# Can be "bit", "int8", "uint8", "int16", "uint16", "int32", "uint32", "float32"
# (optional, defaults to 'uint16')
modbus:serial.slave1.valuetype=float32
Mit Modbus Poll funktioniert alle einwandfrei,
Ich teste im Moment auf meinem windows Rechner möchte aber später meinen Raspberry dafür nutzen.
Gruß Mike
Kommentar