Replies: 2 comments
-
Haha. Glutton for punishment!
Let me answer these in reverse.
I gave this a couple of very half-arsed attempts yonks ago. I did space encoding first because it was the most common, and the most pressing issue/reported thing. IIRC, it currently goes over the data to try to put things into buckets of "likely the same" timings, both for marks & then for spaces. Assuming "space" encoding meant I didn't need to backtrack. In order to do the other common protocols, we probably need to do a proper syntax parser, now that I think about it. If we parse the raw string into lexical tokens, we could then parse it with some grammar analysis. Obviously, that parser grammar isn't tested, it's just off the top of my head. (AND in no particular parser specification language ;-) |
Beta Was this translation helpful? Give feedback.
-
For the record, "duplicate" detection was in the original bash script. |
Beta Was this translation helpful? Give feedback.
-
Looking for input on what the best approach to implement this. (or at least pro/cons)
Currently
auto_analyse_raw_data.py
only has support for space encoded messages, and it is great at it.Now (mostly for fun) I was thinking off if there is any way to extend it with support for fixed length messages as well. (Such as the Amcor fixed length bit encoding)
Is there any smarter way to do this, than to first determine header, footers and gaps (can that be made to a separate function maybe) and than after that go over the remaining mark+space pairs again?
Another part is, can we make it better at displaying repeated messages. (maybe just say that it is repeated, instead of printing the same data sections multiple times, but the question then is, how to determine that it is repeated.)
Some faked 8 bit messages
Beta Was this translation helpful? Give feedback.
All reactions