Wie kann ich eine Thing Textdatei erstellen??
Über die Oberfläche wie folgt:
Gateway
Code: Alles auswählen
UID: modbus:tcp:d48353e327
label: PV Gateway
thingTypeUID: modbus:tcp
configuration:
rtuEncoded: false
connectMaxTries: 1
reconnectAfterMillis: 50
timeBetweenTransactionsMillis: 60
port: 502
timeBetweenReconnectMillis: 0
connectTimeoutMillis: 10000
host: 192.168.178.198
afterConnectionDelayMillis: 0
id: 1
enableDiscovery: false
Poller:
Code: Alles auswählen
UID: modbus:poller:d48353e327:df09fb732e
label: PV poll
thingTypeUID: modbus:poller
configuration:
length: 100
start: 1000
refresh: 3000
maxTries: 3
cacheMillis: 50
type: input
bridgeUID: modbus:tcp:d48353e327
Und Beispiel Thing SOC
Code: Alles auswählen
UID: modbus:data:df09fb732e:7a73715b8e
label: PV Akku
thingTypeUID: modbus:data
configuration:
readValueType: uint16
readTransform: default
writeTransform: default
readStart: "1014"
updateUnchangedValuesEveryMillis: 1000
writeMultipleEvenWithSingleRegisterOrCoil: false
writeMaxTries: 3
bridgeUID: modbus:poller:d48353e327:df09fb732e
Es ist ja so, das die Liste gefühlt einfacher zu erstellen ist, als die Textdatei, aber irgendwie Stockt es.
Code: Alles auswählen
Bridge modbus:tcp:localhostTCP [ host="192.168.178.198", port=502, id=1 ] {
Bridge poller inputRegisters [ start=1000, length=100, refresh=5000, type="input" ] {
Thing data Akku_watt [ readStart="1010", readValueType="uint16"]
Thing data PV_SOC [ readStart="1014", readValueType="uint16"]
Thing data von_Netz [ readStart="1022", readValueType="uint16"]
Thing data ins_Netz [ readStart="1030", readValueType="uint16"]
}
}
Es gibt immer eine Warnmeldung wenn ich das Thing über die Text datei aktiviere...
Code: Alles auswählen
2023-05-06 13:46:06.102 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=1, functionCode=READ_INPUT_REGISTERS, start=1000, length=100, maxTries=3]). Will try again soon. Error was I/O error, so resetting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 4c6507b4-8087-4e08-8d5d-9dfb8d8e5c61]
hat jemand eine idee, was ich falsch mache?? wie gesagt, über die UI läuft es ohne fehler...

danke und gruss