Skip to content

pinging multiple targets - socket problem #9

Description

@dmnc-net

Hi folks,
thanks to @BlakeFoster for this library, good work, also thanks to @psychogenic for the async feature. I'd like to use Arduino as a watchdog for multiple targets. When I'm using this library for just one target everything is ok but with more (i.e. 8) I'm loosing too many packets - when I'm pinging Arduino itself but also (and this is bad) I'm getting false timeouts while pinging targets. With async pinging it is little bit stable but still unusable as a watchdog.

I'm doing ping in a cycle, one target by one with a delay between them and some delay after a round, I'm trying to set more retries and various timeouts but still with packet loss. Btw. in the async mode and multiple targets, Arduino is no longer responding to the icmp. I've also tried multiple sockets but in this scenario I have to turn off the async mode (not working with it) and results are still bad. I'm using MegaADK with Eth. Shield and/or Ethernet board rev. 3, both with the same results.

I know that Arduino is very limited hw and tcp/ip stack is not robust but anyway, do you please have some advice for me or do you think that this application is not able to handle it? Maybe if I should empty some buffer after a while, it can work ... In other case I'll try to port this application to the linux side of the Arduino Yun or some RPi. Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions