-
Notifications
You must be signed in to change notification settings - Fork 417
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
Add libsigrokdecoder uart decoder #429
base: master
Are you sure you want to change the base?
Conversation
2bf7223
to
e5d4840
Compare
Have done. |
@dreamsource-tai what do you mean by "have done"? I stil see the 2 half broken uart decoders on master, any reason we can't get this PR merged? |
@fornellas |
e5d4840
to
322a7a9
Compare
322a7a9
to
718db8e
Compare
@dreamsource-tai the problem still exists, as both implementations of UART decoders we have ATM are BROKEN in different ways. Please refer to the PR description for more details. The decoder I was working on can be found here. As I failed to wirte the decoder stacked on top either Unfortunately, the cherry on the cake of all this mess, is that it seems a regression was introduced and stacking decoders functionality has been broken for a long time, so I had to keep my decoder branch on top of v1.1.2 (as v1.2.0 and v1.2.1 have stacked decoders functionality broken). IMHO, the root of all evil, is that DSView is doing a half broken fork of sigrok libraries, which breaks decoders API interface, so various decoders are completely broken, and on top of that, DSView's own decoders (eg: the 2 UART in question here) are broken. It seems at least 5 other users who thumbed up here agree with that. So, using Sigrork's vanilla libraries & decoders would fix all these big issues. This is more medium term though. ASAP, we sohuld IMHO:
To at least restore basic decoder functionality and provide a working UART decoder, enabling me to cut a PR to merge my new decoder on top. |
@fornellas As for the replacement of UART decoder, you can refer to the reply to #429. DSView has made some important performance improvements. There is no reason to reuse the original decoder. |
@DreamSourceLab perhaps there's some miscommunication here. Let's try starting over, as other PRs have merged. ATM we have:
So, as the protocol decoder I wrote does require access to knowing about RX and TX, After a lot of debugging / investigation, I concluded that 2 options were possible:
This PR opted for the latter, as it was just a LOT simpler. I've updated the PR to:
This would leave us with at leaset 1 fully working uart decoder, 100% compatible with Sigrok's uart decoder interface. What do you think? Please let me know if you need more clarification. |
@fornellas |
DSView has 2 uart decoders:
0:UART
says it outputsuart
, documents it atOUTPUT_PYTHON
but does NOT output anything.1:UART
says it outputsuart
, documents it atOUTPUT_PYTHON
and DOES output it.This PR adds a snapshot of upstream uart decoder which has none of these issues.
It includes a required patch to
self.matched
due to this issue #430.