Websocket Loses Connection

Home Forums Conduit: AEP Model Websocket Loses Connection

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18119
    Paul Chilton
    Participant

    I’ve got a simple Node-RED flow setup to send and receive packets over a websocket and this generally works quite well however the connection drops out at times (presumably because of a 3G glitch) and then takes a long time before it reconnects (maybe an hour!).

    Is there any reason for this or a way I can get it to reconnect straight away after the connection has been dropped? Ideally the first time it tries to send a message over the stale connection it should just reconnect itself…

    #18130
    Peter Ferland
    Blocked

    On the cellular page of the admin dashboard do you have keep alives enabled?

    #18139
    Paul Chilton
    Participant

    Hi, no I haven’t at the moment. I did look into those settings but couldn’t figure out what to set as the hostname. Is this just any old web server that it can ping or does it need to be running a specific service?

    Thanks

    #18141
    Peter Ferland
    Blocked

    Its a simple ping, so just entering google.com would work.

    • This reply was modified 7 years, 7 months ago by Peter Ferland.
    #18143
    Paul Chilton
    Participant

    Ok thanks, I’ll give that a go and see if it helps.

    #18144
    Tom Hill
    Participant

    Hi Peter,

    Enabling the keep alive on the cellular connection, does it have any performance impact, or is it just to ensure the cellular connection is kept alive? I use http request node in my node-red flows extensively and so I check if the PPP connection is up using the internal web api provided by multitech using the URL http://127.0.0.1/api/ppp and look at the JSON result if the PPP link is up or down and I do this every 10 minutes.

    However if enabling the keep alive in the cellular configuration tab is a better way to check this, I would rather use that? Do you have any suggestions?

    Thanks,
    Yogesh

    #18157
    Peter Ferland
    Blocked

    The keep alive feature periodically sends the a small amount of data to keep the cell connection up. If the connection fails, the ppp link is restarted. If you take different actions based on the ppp status (e.g. storing more data) then you should keep checking. If the only action you’re taking is to reset the ppp link, then you can rely on the built in keep alive feature to do that.

    #18159
    Tom Hill
    Participant

    Thanks Peter, that is exactly what I am doing, when the cell connection is down, I backup the data I am sending via the http request node, so when it is back up and I can send all the packets that were missed out from being transmitted. However I am not sure how I would reset the PPP link from node-red and I don’t do that currently.

    So it seems like the keep alive feature seems to be OOB feature that I could use to reset the PPP link. Should I be using the defaults for the settings? I see that I could hit a public portal such as google.com as you suggested earlier, how often does it ping?

    Thanks,
    Yogesh

    #18165
    Peter Ferland
    Blocked

    Its configurable. The ICMP/TCP Check interval field defaults to 10 minutes.

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