Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anotherdave opened this issue Aug 21, 2010 · 1 comment
Open

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

anotherdave opened this issue Aug 21, 2010 · 1 comment

Comments

@anotherdave
Copy link

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);
        }
@rngtng
Copy link
Owner

rngtng commented Aug 30, 2010

cool, thx, I'll consider it with next release...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants