Forum Home › Forums › Communicating with Devices › SCADAComm stop attempt to reconnect when communication failed
Tagged: SCADAComm
- This topic has 7 replies, 2 voices, and was last updated 5 years, 3 months ago by Mikhail.
-
AuthorPosts
-
December 11, 2018 at 4:42 pm #4731jkbParticipant
Hello,
I have been testing the latest version of rapidscada with KPMQTT. I found out that scadacomm (KPLogics) stop reconnecting after several retries. The only way to recover is to restart the service. Is that correct behavior?Best regards,
jkb.December 12, 2018 at 2:07 pm #4732MikhailModeratorHi,
Please provide logs where we can see it.
December 12, 2018 at 6:16 pm #4733jkbParticipantHi Mikhail,
After looking at the code further. It is KpMQTT implementation that does not reconnect and resubscribe to MQTT Broker once the communication failed.here is the log by the way.
2018-12-12 17:00:20 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:20 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:20 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:20 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:21 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:21 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:21 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:21 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:21 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:21 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:21 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:21 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:21 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:21 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:22 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:22 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:22 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:22 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:23 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:23 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:23 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:23 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:24 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:24 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:24 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:24 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:24 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:24 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:24 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:24 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:24 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:24 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:25 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:25 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.2018-12-12 17:00:25 Communication session with the Device 42 “MQTT Driver”, type: KpMQTT
2018-12-12 17:00:25 Error communicating with the device: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.Thanks.
December 13, 2018 at 6:57 pm #4734MikhailModeratorAn established connection was aborted by the software in your host machine.
May be an MQTT bus initiates disconnect. I’m not sure, because the author of the driver is bersim. You can try asking him or debug the driver by yourself. Also you can involve me in debugging on commercial base.
December 27, 2018 at 6:36 am #4786jkbParticipantposted to him in the github. no reply so far. I did some small changes to the code to have it reconnect. It works like a charm.
December 28, 2018 at 7:51 am #4790MikhailModeratorIf you send me an email to info@ , I will forward your message to bersim.
January 9, 2019 at 10:00 am #4828jkbParticipantsorry for late reply. just emailed to info@
January 9, 2019 at 1:16 pm #4834MikhailModeratorOK, I added the author to email thread. Hope he will answer.
-
AuthorPosts
- You must be logged in to reply to this topic.