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

Implement some details of USBTMC specification - helps to recover from read timeout #50

Closed
wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 9, 2019

Three changes to follow the USBTMC specification more closely:

Joris van Rantwijk added 3 commits January 9, 2019 10:53
The USBTMC specification requires that pending Bulk-IN data
are read during the abort_bulk_in sequence.

Without this change, several tested USBTMC devices become fully
unresponsive after a read timeout. With this change, the device
responds correctly to subsequent commands after a timeout.
The USBTMC specification requires that the Bulk-OUT endpoint is
stalled by the device during abort_bulk_out, then explicitly
cleared by the host.
The USBTMC specificiation requires that the host ignore the EOM flag
unless the device sends a complete data transfer.
@jag213
Copy link

jag213 commented May 29, 2019

Thanks, this fixed my issue with Aglient 33410A. If there were any errors in the code I would have to power cycle my DMMs to get them to work properly. Not anymore!

@ferdymercury
Copy link

Thanks so much! It fixed it for me too
@alexforencich could you merge this PR? Or maybe add @jorisvr as collaborator so he can do it?

Cheers!

@ghost ghost closed this by deleting the head repository Oct 26, 2023
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants