Hallo Dirk,
ich habe mich wohl etwas zu Früh gefreut. Leider ist das Problem nicht beseitigt.
Ich habe mit Netstap -tulpen einmal die Komunikation ausgelesen.
Code: Select all
Proto Recv-Q Send-Q Local Address Foreign Address State Benutzer Inode PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 19483 2081/sshd: /usr/sbi
tcp 0 0 0.0.0.0:1534 0.0.0.0:* LISTEN 0 17970 2140/RTSLoader
tcp6 0 0 :::80 :::* LISTEN 0 19509 2139/apache2
tcp6 0 0 :::41080 :::* LISTEN 0 19521 2139/apache2
tcp6 0 0 :::22 :::* LISTEN 0 19485 2081/sshd: /usr/sbi
tcp6 0 0 :::41443 :::* LISTEN 0 19527 2139/apache2
tcp6 0 0 :::443 :::* LISTEN 0 19513 2139/apache2
udp 0 0 0.0.0.0:54102 0.0.0.0:* 0 17969 2140/RTSLoader
udp 0 0 0.0.0.0:1534 0.0.0.0:* 0 18790 2140/RTSLoader
udp6 0 0 fe80::ca3e:a7ff:fe0:546 :::* 0 18726 1321/NetworkManager
Wie du sehen kannst fehlt dort der Port 502 vom RevPi Slave.
Dann habe ich die log Datei angeschaut
Code: Select all
Feb 2 17:39:33 RevPi100102 piModbusMaster[2175]: piModbusMaster started
Feb 2 17:39:33 RevPi100102 piModbusMaster[2175]: Modbus connection established to ip=192.168.178.12 port=4502
Feb 2 17:39:33 RevPi100102 piModbusMaster[2175]: Modbus connection established to ip=192.168.178.11 port=3502
Feb 2 17:39:33 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:39:33 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:39:34 RevPi100102 piModbusMaster[2175]: piModbusMaster: ./src/ComAndDataProcessor.c:175: processModbusAction: Assertion `mb_event->ptModbusAction->i16uRegisterCount == 1' failed.
Feb 2 17:39:34 RevPi100102 systemd[1]: pimodbus-master.service: Main process exited, code=killed, status=6/ABRT
Feb 2 17:39:34 RevPi100102 systemd[1]: pimodbus-master.service: Failed with result 'signal'.
Feb 2 17:39:34 RevPi100102 systemd[1]: pimodbus-master.service: Scheduled restart job, restart counter is at 5.
Feb 2 17:39:34 RevPi100102 systemd[1]: Stopped Revolution Pi Modbus master.
Feb 2 17:39:34 RevPi100102 systemd[1]: pimodbus-master.service: Start request repeated too quickly.
Feb 2 17:39:34 RevPi100102 systemd[1]: pimodbus-master.service: Failed with result 'signal'.
Feb 2 17:39:34 RevPi100102 systemd[1]: Failed to start Revolution Pi Modbus master.
Feb 2 17:39:34 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:39:34 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:39:37 RevPi100102 systemd[1]: Created slice User Slice of UID 1000.
Feb 2 17:39:37 RevPi100102 systemd[1]: Starting User Runtime Directory /run/user/1000...
Feb 2 17:39:37 RevPi100102 systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Feb 2 17:39:37 RevPi100102 systemd[1]: Finished User Runtime Directory /run/user/1000.
Feb 2 17:39:37 RevPi100102 systemd[1]: Starting User Manager for UID 1000...
Feb 2 17:39:38 RevPi100102 systemd[2179]: Queued start job for default target Main User Target.
Feb 2 17:39:38 RevPi100102 systemd[2179]: Created slice User Application Slice.
Feb 2 17:39:38 RevPi100102 systemd[2179]: Reached target Paths.
Feb 2 17:39:38 RevPi100102 systemd[2179]: Reached target Timers.
Feb 2 17:39:38 RevPi100102 systemd[2179]: Listening on GnuPG network certificate management daemon.
Feb 2 17:39:38 RevPi100102 systemd[2179]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Feb 2 17:39:38 RevPi100102 systemd[2179]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Feb 2 17:39:38 RevPi100102 systemd[2179]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Feb 2 17:39:38 RevPi100102 systemd[2179]: Listening on GnuPG cryptographic agent and passphrase cache.
Feb 2 17:39:38 RevPi100102 systemd[2179]: Reached target Sockets.
Feb 2 17:39:38 RevPi100102 systemd[2179]: Reached target Basic System.
Feb 2 17:39:38 RevPi100102 systemd[2179]: Reached target Main User Target.
Feb 2 17:39:38 RevPi100102 systemd[2179]: Startup finished in 747ms.
Feb 2 17:39:38 RevPi100102 systemd[1]: Started User Manager for UID 1000.
Feb 2 17:39:38 RevPi100102 systemd[1]: Started Session 1 of user pi.
Feb 2 17:39:41 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:39:48 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:39:51 RevPi100102 systemd[1]: systemd-fsckd.service: Succeeded.
Feb 2 17:39:54 RevPi100102 systemd[1]: systemd-hostnamed.service: Succeeded.
Feb 2 17:39:56 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:40:03 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:40:11 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:40:19 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:40:27 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:40:34 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:40:42 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:40:50 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:40:57 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:05 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:13 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:14 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:21 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:28 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:36 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:38 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:38 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:38 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:38 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:38 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:38 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:38 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:38 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:40 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:40 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:40 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:40 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:40 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:40 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:40 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:40 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:44 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:52 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:54 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:54 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:54 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:54 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:54 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:54 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:54 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:54 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:56 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:56 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:56 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:56 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:56 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:56 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:56 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:56 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:41:59 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:42:07 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:42:14 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:42:15 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:42:22 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:42:30 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:42:38 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:42:46 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:42:53 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:43:01 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:43:09 RevPi100102 piModbusSlave[2062]: modbus receive failed
Feb 2 17:43:11 RevPi100102 piModbusSlave[2062]: cleanupTcpSlaveThread
Feb 2 17:43:11 RevPi100102 piModbusSlave[2062]: No modbus slave configuration found in config file
Feb 2 17:43:11 RevPi100102 piModbusSlave[2062]: close socket 5
Auch hier ist der Slave nicht mehr Vorhanden. Ich habe das System schon einpaarmal neu gestartet ab und zu ist der Slave da, aber hat Probleme mit einem Gerät zu Komunizieren.
Solange nur ein Gerät den Slave Befüllt geht es, aber wenn dann ein zweites Gerät dazu kommt geht das nicht mehr. So habe ich es jedenfalls bemerkt.
Die Komunikation zwischen RevPi und dem Raspberry geht. Die Komumunikation zwischen RevPi , Raspberry und B&R Funktioniert dann nicht mehr.
gruß
Ingo