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

Refactored SCPITMCTransport #950

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zevv
Copy link

@zevv zevv commented Jan 11, 2025

I took the liberty of throwing most of the code and logic out and re-implementing the bare minimum. This works fine for me on unstable debian with an agilent MSGO-x 3014A. Not tested on any other platform or with any other hardware.

This change drops the 150MB scratch buffer and rather convoluted logic for chunked reading and doing 1-byte read()s for reading responses. It still allows the user to specify the max read chunk size to work around usbtmc issues with some devices. The default chunk size is still 2032, this can be reduced for buggy devices or increased to reduce system call overhead.

There was a "TODO" in the previous version noting that timeouts were not yet implemented. If this is a requirement I can add this as well, let me know.

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.

1 participant