@homoran
Hallo Homoran!
Wie gebe ich denn die USB Schnittstelle wieder frei?
Reicht das wenn den ModbusMechanic schließe, oder kann ich irgendwo abfragen, ob die Schnittstelle frei oder belegt ist?
Aufgrund des ModbusMechanic sollten alle unsigned 16 sein. Habe aber auch schon verschiedene andere Einstellungen versucht.
wenn ich den Modbusadapter starte, sieht das log folgendermassen aus:
modbus.0
2024-11-01 14:34:19.557 debug [DevID_1] Poll start ---------------------
modbus.0
2024-11-01 14:34:19.406 debug [DevID_1] Poll start ---------------------
modbus.0
2024-11-01 14:34:19.254 debug [DevID_1] Poll start ---------------------
modbus.0
2024-11-01 14:34:19.102 debug [DevID_1] Poll start ---------------------
modbus.0
2024-11-01 14:34:18.952 debug [DevID_1] Poll start ---------------------
modbus.0
2024-11-01 14:34:18.800 debug [DevID_1] Poll start ---------------------
modbus.0
2024-11-01 14:34:18.745 silly States user redis pmessage modbus.0.*/modbus.0.info.pollTime:{"val":2,"ack":true,"ts":1730468058743,"q":0,"from":"system.adapter.modbus.0","user":"system.user.admin","lc":1730468058743}
modbus.0
2024-11-01 14:34:18.666 silly States user redis pmessage modbus.0.*/modbus.0.info.connection:{"val":true,"ack":true,"ts":1730468058660,"q":0,"from":"system.adapter.modbus.0","user":"system.user.admin","lc":1730468058660}
modbus.0
2024-11-01 14:34:18.662 silly States user redis pmessage modbus.0.*/modbus.0.info.connection:{"val":false,"ack":true,"ts":1730468058659,"q":0,"from":"system.adapter.modbus.0","user":"system.user.admin","lc":1730468052144}
modbus.0
2024-11-01 14:34:18.651 silly Keepalive is disabled!
modbus.0
2024-11-01 14:34:18.646 debug [DevID_1] Poll start ---------------------
modbus.0
2024-11-01 14:34:18.645 info Connected to slave
modbus.0
2024-11-01 14:34:18.635 debug connect to serial /dev/ttyUSB0 with 9600
modbus.0
2024-11-01 14:34:18.418 debug Add holdingRegisters.209_Versuch: {"_id":"holdingRegisters.209_Versuch","type":"state","common":{"name":"","role":"level","type":"number","read":false,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":209,"deviceId":1,"type":"uint16le","len":1,"offset":0,"factor":1,"poll":""}}
modbus.0
2024-11-01 14:34:18.417 debug Initialize Objects for holdingRegs: [{"_address":209,"name":"Versuch","description":"","unit":"","type":"uint16le","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":"","wp":"","cw":"","isScale":"","address":209,"deviceId":1,"id":"holdingRegisters.209_Versuch"}]
modbus.0
2024-11-01 14:34:18.416 debug Initialize Objects for inputRegs: []
modbus.0
2024-11-01 14:34:18.416 debug Initialize Objects for coils: []
modbus.0
2024-11-01 14:34:18.415 debug Initialize Objects for disInputs: []
modbus.0
2024-11-01 14:34:18.397 silly States system redis pmessage system.adapter.modbus.0.logLevel/system.adapter.modbus.0.logLevel:{"val":"silly","ack":true,"ts":1730468058376,"q":0,"from":"system.adapter.modbus.0","lc":1730468058376}
modbus.0
2024-11-01 14:34:18.264 info starting. Version 6.3.2 in /opt/iobroker/node_modules/iobroker.modbus, node: v20.18.0, js-controller: 6.0.11
modbus.0
2024-11-01 14:34:17.810 debug Plugin sentry Initialize Plugin (enabled=true)
modbus.0
2024-11-01 14:34:12.548 info terminating
modbus.0
2024-11-01 14:34:12.062 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
modbus.0
2024-11-01 14:34:12.058 info terminating
modbus.0
2024-11-01 14:34:12.040 info Got terminate signal TERMINATE_YOURSELF
modbus.0
2024-11-01 14:34:06.359 info Connected to slave
modbus.0
2024-11-01 14:34:05.981 info starting. Version 6.3.2 in /opt/iobroker/node_modules/iobroker.modbus, node: v20.18.0, js-controller: 6.0.11
Das mit dem Poll Start geht dann laufend so weiter bis ich ihn wieder beende!