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

Check RTS/CTS status in case of send timeout #3

Open
rambo opened this issue Nov 24, 2015 · 2 comments
Open

Check RTS/CTS status in case of send timeout #3

rambo opened this issue Nov 24, 2015 · 2 comments

Comments

@rambo
Copy link
Member

rambo commented Nov 24, 2015

And maybe wait a bit more ? (or check CD or similar that Lotta is actually there)

@tanelikaivola
Copy link
Member

Is this supposed to mitigate a failed send?

If so, this should be fixed by sending stuff line by line and terminating immediately if CD drops.

@rambo
Copy link
Member Author

rambo commented Nov 26, 2015

And general flow-control, I'm fairly sure pyserial already waits for CTS if rtscts=True (either forever or until set timeout) but as discussed yesterday we definitely should wait a moment (maybe 500/bps seconds ?) after each line and check that CD is still asserted before continuing. If we lose CD then abort and show error to user.

http://pyserial.readthedocs.org/en/latest/pyserial_api.html#serial.Serial.write says it raises SerialTimeoutException if it times out (due to CTS for example)

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