0

Available COM Ports ON PC: ATEN USB to Serial Bridge(COM10) -- Connected and giving response ATEN USB to Serial Bridge(COM11) -- Connected but not responding INTEL(R) xxx (COM3) Standard Serial xx (COM8) Standard Serial xx (COM9)

My interest is only the two ATEN COM, and only 1 of which can be connected and responding. I want to loop through all available port and find out which is responding..How should I do that?

try .isOpen() == True, but apparently all is True

1 Answer 1

0

Does “responding” mean actively sending something over UART? If so, you could use select() over each available port and see if the reading is ready. If responding means you can get some reply after sending something, you could loop and write(), then use select() or readline() to check.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.