Skip to content

Delay of 3 seconds before ping() on COM port is too short #2

Description

@anotherdave

When the board is connected through the Seeedstudio USART it gets reset when the serial port is opened, and can take up to 20 seconds to wake up and respond to the ping(). Possible fix in openPort():

        if (!check) return true;
        for (int tries=0; tries < 6; tries++) {
            if (ping()) {
                return true;
            }
            sleep(1000);
        }

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