USB Serial Driver - Suggestions #1498
Unanswered
RakshanPremsagar
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Are you sure that your device connected via serial is returning bytes in all cases? The call to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have connected the embedded device via the USB port. In my YAML file, I have defined the configuration as
resources: USBSerialPort: match: ID_SERIAL_SHORT: 'XXXX' ID_USB_INTERFACE_NUM: 'XX' speed: 115200
I have written a pytest case, where data is read from the serial driver.
I have a conftest.py which does the following :
`
`
and I have a method which captures serial responses :
But I observe an inconsistent error ( not always the case) which says :
pexpect.exceptions.TIMEOUT: Timeout of 1.00 seconds exceeded or connection closed by peer
I used a retry mechanism, to execute the function 5 more times when an exception occurs, but still the same response. How to counter this? Any suggestions could be really helpful
Beta Was this translation helpful? Give feedback.
All reactions