-
Notifications
You must be signed in to change notification settings - Fork 199
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
Large arbitrary block of data #95
Comments
I just figured out one strategy to do this. I will send one chunk of data with one SCPI command, i.e. each chunk will be different SCPI command. For example, to transfer file from PC to device, I will do the following:
|
Hi! |
This is good workaround. Current library design dos not support messages larger then the buffer. This is also the reason, I can't support indefinite format of arbitrary data, see issue #24. Another approach would be, to add another API to the library. User will define user handler just for
Detection of correct command will be on responsibility of the user of the library. This is how another parsers works e.g. https://github.com/nodejs/http-parser |
I think I can live with the workaround. Thanks! |
Hi!
I would like to transfer a large arbitrary block data to the device, chunk by chunk, since it can't fit all at once inside device RAM memory. Currently, I think, SCPI_ParamArbitraryBlock expects whole block to be inside the memory. Is there any other strategy to do this?
For the other way around, when I need to transfer large arbitrary block from device, I can use SCPI_ResultArbitraryBlockHeader and then SCPI_ResultArbitraryBlockData multiple times and it works fantastic!
For the context, let me tell you that I transfer data from PC to the SD card on the device, and vice versa.
The text was updated successfully, but these errors were encountered: