@homoran
Die Verbindungsdaten sind
port /dev/ttyUSB0
9600 baud
8 Bit
1 Stopbit
none Parity
wenn ich die Instanz installiere und starte meldet das Protokoll:
modbus.1
2023-08-20 10:26:19.419 info Disconnected from slave
modbus.1
2023-08-20 10:26:19.409 info Connected to slave
modbus.1
2023-08-20 10:25:19.397 info Disconnected from slave
modbus.1
2023-08-20 10:25:19.390 info Connected to slave
modbus.1
2023-08-20 10:25:18.546 info starting. Version 5.0.11 in /opt/iobroker/node_modules/iobroker.modbus, node: v18.17.0, js-controller: 4.0.24
host.raspberry-pi-FN
2023-08-20 10:25:14.359 info instance system.adapter.modbus.1 started with pid 20727
host.raspberry-pi-FN
2023-08-20 10:25:11.822 info instance system.adapter.modbus.1 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
admin.0
2023-08-20 10:25:11.700 info <== Disconnect system.user.admin from ::ffff:192.168.178.48 modbus
host.raspberry-pi-FN
2023-08-20 10:25:11.261 info stopInstance system.adapter.modbus.1 send kill signal
modbus.1
2023-08-20 10:25:11.218 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
modbus.1
2023-08-20 10:25:11.214 info terminating
modbus.1
2023-08-20 10:25:11.207 info Got terminate signal TERMINATE_YOURSELF
host.raspberry-pi-FN
2023-08-20 10:25:11.196 info stopInstance system.adapter.modbus.1 (force=false, process=true)
modbus.1
2023-08-20 10:24:46.953 info List of port: [{"path":"/dev/ttyAMA0"},{"path":"/dev/ttyUSB0"}]
modbus.1
2023-08-20 10:24:46.952 info Check /dev/ttyUSB0 : true
modbus.1
2023-08-20 10:24:46.951 info Check /dev/ttyAMA0 : true
modbus.1
2023-08-20 10:24:46.943 info Verify [{"path":"/dev/ttyAMA0"},{"path":"/dev/ttyUSB0","manufacturer":"1a86","pnpId":"usb-1a86_USB_Serial-if00-port0","vendorId":"1a86","productId":"7523"}]
modbus.1
2023-08-20 10:24:41.417 warn On error: {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":502}
modbus.1
2023-08-20 10:24:41.414 error Client in error state.
modbus.1
2023-08-20 10:24:41.412 error Socket Error
modbus.1
2023-08-20 10:24:40.601 info starting. Version 5.0.11 in /opt/iobroker/node_modules/iobroker.modbus, node: v18.17.0, js-controller: 4.0.24
admin.0
2023-08-20 10:24:36.432 info ==> Connected system.user.admin from ::ffff:192.168.178.48
host.raspberry-pi-FN
2023-08-20 10:24:36.409 info instance system.adapter.modbus.1 started with pid 20710
host.raspberry-pi-FN
2023-08-20 10:24:34.419 info iobroker exit 0
host.raspberry-pi-FN
2023-08-20 10:24:33.331 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1 created
host.raspberry-pi-FN
2023-08-20 10:24:33.304 info iobroker host.raspberry-pi-FN Set default value of modbus.1.info.connection: false
host.raspberry-pi-FN
2023-08-20 10:24:33.294 info iobroker host.raspberry-pi-FN object modbus.1.info.connection created
host.raspberry-pi-FN
2023-08-20 10:24:33.281 info iobroker host.raspberry-pi-FN object modbus.1.info created
host.raspberry-pi-FN
2023-08-20 10:24:33.268 info iobroker host.raspberry-pi-FN object modbus.1 created
host.raspberry-pi-FN
2023-08-20 10:24:33.254 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.logLevel created
host.raspberry-pi-FN
2023-08-20 10:24:33.233 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.sigKill created
host.raspberry-pi-FN
2023-08-20 10:24:33.217 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.eventLoopLag created
host.raspberry-pi-FN
2023-08-20 10:24:33.201 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.outputCount created
host.raspberry-pi-FN
2023-08-20 10:24:33.186 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.inputCount created
host.raspberry-pi-FN
2023-08-20 10:24:33.169 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.uptime created
host.raspberry-pi-FN
2023-08-20 10:24:33.151 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.memRss created
host.raspberry-pi-FN
2023-08-20 10:24:33.134 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.memHeapTotal created
host.raspberry-pi-FN
2023-08-20 10:24:33.119 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.memHeapUsed created
host.raspberry-pi-FN
2023-08-20 10:24:33.098 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.cputime created
host.raspberry-pi-FN
2023-08-20 10:24:33.078 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.cpu created
host.raspberry-pi-FN
2023-08-20 10:24:33.060 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.compactMode created
host.raspberry-pi-FN
2023-08-20 10:24:33.044 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.connected created
host.raspberry-pi-FN
2023-08-20 10:24:33.027 info iobroker host.raspberry-pi-FN object system.adapter.modbus.1.alive created
host.raspberry-pi-FN
2023-08-20 10:24:32.997 info iobroker host.raspberry-pi-FN create instance modbus
Der Hersteller des Adapters ist unbekant (China); unter Windows meldet er sich mit "USB CH340"
Frage zur Fehlersuche:
Wenn die Kennung "Verbunden mit Gerät oder Dienst" nicht bestätigt wird, ist dann der Adapter oder das Gerät am seriellen Bus (RS485) gemeint