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

SUMP devices able to provide over 512kB of samples #236

Open
tudorp opened this issue Sep 19, 2016 · 2 comments
Open

SUMP devices able to provide over 512kB of samples #236

tudorp opened this issue Sep 19, 2016 · 2 comments

Comments

@tudorp
Copy link
Contributor

tudorp commented Sep 19, 2016

SUMP devices able to provide over 512kB of samples can't be used at full potential due to an internal software limit set in device.logicsniffer/src/main/java/org/sump/device/logicsniffer/LogicSnifferConfig.java that states "the number of samples to take, must be between 4 and 256*1024".
The limit seems artificial and limits the possible functionality of other SUMP devices.

tudorp added a commit to tudorp/ols that referenced this issue Sep 19, 2016
@jawi
Copy link
Owner

jawi commented Sep 22, 2016

If you take a look at the SUMP protocol, esp. command 0x81h, you get 16-bits for the read count (= the number of samples times 4 returned to the PC). So: 65536 * 4 = 256k.

@tudorp
Copy link
Contributor Author

tudorp commented Sep 22, 2016

Thank you for pointing out the specific issue.

At the heart of my mistake is the fact that in my device I do not implement
at all support for 0x81, fact that made me not to notice its implications on
one hand and on the other hand to realize now that the protocol is quite
limited given the syntax of 0x81.

Referring strictly to the existing implementation, I still do not think
that trimming the expected sample count value by anding with a mask is the
best choice here; maybe comparing the value with the specific limit and
saturating it when needed would be better given the fact that command 0x81
still needs to be carried out properly?

On Thu, Sep 22, 2016 at 8:49 PM, Jan Willem Janssen <
notifications@github.com> wrote:

If you take a look at the SUMP protocol
http://www.sump.org/projects/analyzer/protocol/, esp. command 0x81h,
you get 16-bits for the read count (= the number of samples times 4
returned to the PC). So: 65536 * 4 = 256k.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#236 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACyxVAXEBLuHXiXVoxlS2doauVRTzPKTks5qsr-hgaJpZM4KAQes
.

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

No branches or pull requests

2 participants