SCADAComm stop attempt to reconnect when communication failed

Forum Home Forums Communicating with Devices SCADAComm stop attempt to reconnect when communication failed

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4731
    jkb
    Participant

    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.

    #4732
    Mikhail
    Moderator

    Hi,

    Please provide logs where we can see it.

    #4733
    jkb
    Participant

    Hi 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.

    #4734
    Mikhail
    Moderator

    An 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.

    #4786
    jkb
    Participant

    posted 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.

    #4790
    Mikhail
    Moderator

    If you send me an email to info@ , I will forward your message to bersim.

    #4828
    jkb
    Participant

    sorry for late reply. just emailed to info@

    #4834
    Mikhail
    Moderator

    OK, I added the author to email thread. Hope he will answer.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.