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

On devices with multiple comports, the program exits with an EOFError #33

Open
eric-wieser opened this issue Jan 21, 2016 · 3 comments
Open

Comments

@eric-wieser
Copy link
Contributor

The background process does not have an stdin, so when you call raw_input() to choose a com port, the process crashes

@mitchgu
Copy link
Owner

mitchgu commented Jan 21, 2016

Can you think of a good solution that still lets the user choose? Right now I'm considering just quitting and asking the user to specify a port in config.yaml or unplug multiple devices.

@eric-wieser
Copy link
Contributor Author

Unplugging devices isn't enough, unfortunately, since on our HP stream 7 there seems to be an internal hardware com port. A little overkill, but a tkinter window? Or just look for a port that responds to teensy packets

@mitchgu
Copy link
Owner

mitchgu commented Jan 21, 2016

I've actually been considering some tkinter windows that continuously display rtt times or the timeout or the syncedsketch ratio or throughput. Unfortunately I'm not that familar with it so it'd probably take some time to get it working right with the multiprocessing.

I do like your second idea though. Could just try establish() on all the ports found

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