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
Adding field for HW-provided sample count. #98
Conversation
This allows you to track things like dropped packets and data overruns in the SigMF recording.
?!? Why is 'length' not good enough ? |
Arf, just saw the other PR removing 'length' so you're essentially renaming a field ... then I'd suggest 'sample_count' instead of 'sample_number' since that's the nomenclature used already at other places of the spec. |
@smunaut - So the You're right, we could simply re-purpose the |
It's not quite the same, though. sample_count is used to indicate how many
samples a segment applies to (more like 'length'). Here we are indicating
an index provided by the sampling HW.
I think those are distinct and should be named differently. Agree /
disagree?
Sent from my mobile.
On Oct 1, 2018 16:53, "smunaut" <notifications@github.com> wrote:
Arf, just saw the other PR removing 'length' so you're essentially renaming
a field ... then I'd suggest 'sample_count' instead of 'sample_number'
since that's the nomenclature used already at other places of the spec.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#98 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAiw42MB8laLV6d66kVg5wVlngc2i1Baks5ugoDOgaJpZM4XC1hA>
.
|
Arf ok ... I was confused because the very title of this PR is "Adding field for HW-provided sample count.". 'number' still feels a bit weird. 'index' ? 'timestamp' ? |
To confirm, is the idea that this can be any monotonic sample counter, and doesn't have to start at zero? |
Huh no ... _count is a terrible name because we already used "count" elsewhere ( in annotation IIRC ) to note the length of the annotation. (so it's a length and not index). Where else in the spec is 'index' used ? or hwindex ? |
@smunaut - Argh, you're right. That's actually why I didn't use If you search through the spec, you'll see that we use Something like Thoughts? Is using |
Okay, we discussed this here at DeepSig, and I'm going to change it to I think |
This allows you to track things like dropped packets and data overruns
in the SigMF recording.
Per our discussion at GRCon. Please review @pwicks86 and/or @storborg?