Skip to content

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