Skip to content

Decoder sdcard decoding fix and speed improvement#383

Merged
DreamSourceLab merged 2 commits intoDreamSourceLab:masterfrom
lambdaconcept:master
Oct 27, 2021
Merged

Decoder sdcard decoding fix and speed improvement#383
DreamSourceLab merged 2 commits intoDreamSourceLab:masterfrom
lambdaconcept:master

Conversation

@povauboin
Copy link
Copy Markdown
Contributor

2 patches:

  • Decoder sdcard: trigger the decoding on clock raising edge

    This improves the decoding speed a lot (~8x faster), especially
    when using a high sampling rate.

  • Decoder sdcard: look at the transmission bit for command or response decoding

    Description of the bug fix:
    When a command is not supported by the sdcard, the command is silently
    dropped with no response. The host will then either reemit the same command
    or give up. This causes the previous decoder implementation to go out of
    sync and wrongly decode the next message as a response even though it's not.

    This patch looks at the transmission bit instead to make sure the
    decoding is correct.

This improves the decoding speed a lot (~8x faster), especially
when using a high sampling rate.
…decoding

Description of the bug fix:
When a command is not supported by the sdcard, the command is silently
dropped with no response. The host will then either reemit the same command
or give up. This causes the previous decoder implementation to go out of
sync and wrongly decode the next message as a response even though it's not.

This patch looks at the transmission bit instead to make sure the
decoding is correct.
@DreamSourceLab DreamSourceLab merged commit a80c82d into DreamSourceLab:master Oct 27, 2021
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