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

Detect full 48 bits of last data frame in a D-Star transmission #306

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

timclassic
Copy link
Contributor

While testing new support for DV Fast Data in g4klx/MMDVMHost#667, I ran across a particular image that reliably generated a bit sequence that the MDMVM firmware interpreted as an end-of-transmission. I dug a bit and discovered that MMDVM only matches on 32 bits of the last data frame instead of the full 48 bits.

(I referenced http://www.arrl.org/files/file/D-STAR.pdf section 2.1.2, item (6))

I'm not convinced that this implementation is the best version of this change, but it does work for me. I tested this patch on both a ZUMSpot (by making the same change against https://github.com/juribeparada/MMDVM_HS) and a Raspberry Pi with a ZUM Radio MMDVM-Pi rev 1.0 board, and the test image no longer generated an early EOT on either system.

While testing new support for DV Fast Data, I ran across a particular
image that reliably generated a bit sequence that the MDMVM firmware
interpreted as an end-of-transmission.  I dug a bit and discovered
that MMDVM only matches on 32 bits of the last data frame instead of
the full 48 bits.

See http://www.arrl.org/files/file/D-STAR.pdf section 2.1.2, item (6)
for details.
@timclassic timclassic changed the title Detect full 48 bits of last data frame in a transmission Detect full 48 bits of last data frame in a D-Star transmission Dec 14, 2020
@g4klx
Copy link
Owner

g4klx commented Dec 14, 2020

That's excellent work. What I will do is merge this pull request and then modify the code and use only one 64-bit wide bit buffer rather than having two. This should be a transparent change and simplifies the code slightly.

@g4klx g4klx merged commit c06a836 into g4klx:master Dec 14, 2020
@timclassic
Copy link
Contributor Author

That sounds great!

@timclassic
Copy link
Contributor Author

@g4klx @juribeparada How do you normally share changes between MMDVM and MMDVM_HS? Should I prepare a PR for https://github.com/juribeparada/MMDVM_HS that includes this change and 9440b43? Or is there some other process that will pick this up?

@timclassic timclassic deleted the dstar-match-full-last-data-frame branch December 15, 2020 01:30
@g4klx
Copy link
Owner

g4klx commented Dec 15, 2020 via email

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.

2 participants