I was using PySerial when I typed
serialObject.read()
And the execution hanged waiting for some serial data.
How to abort this command? I want to type new commands and ignore this one.
I’m using IDLE on Windows and Ctrl+C doesn’t seem to work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Configure PySerial to timeout if no data is received before the time limit. If you don’t have a timeout, then your only option is to ask the OS to kill the process.