Skip to content
Discussion options

You must be logged in to vote

I found a workaround: I can always read the maximum length that a register can be (64 Bytes), independently of the reported byte count N. I get a bunch of extra zero-bytes that can be thrown away after the read is complete. It is quite wasteful, as most registers are only 4...8 bytes, but it does seem to work.

Alternately, I could do two register reads: First, read only a single byte (the byte count). Then read the same register number again with the determined length. That should work unless the register length changes in the meantime, which should be very rare.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by electronicayciencia
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sebastian-sms
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants