urh icon indicating copy to clipboard operation
urh copied to clipboard

Feature request: Feed data rows to external decoder via stdin

Open Semnodime opened this issue 2 years ago • 1 comments

Is your feature request related to a problem?

I have written a python script to decode the incoming radio data. As I have hundreds of data rows, starting evaluating the /usr/bin/env python3 and starting the interpreter takes long, ...very long.

Describe the solution you'd like

Instead of feeding a single row via the first command line argument (which, as a minor side note, is prone to fail for gigantuous amounts of data per row), I suggest to provide the decoder with the data rows via stdin. Note that I strongly suggest to first input all the data rows (one row per line, terminated by a single newline \n) and only start reading the decodeded data rows after all data has been written to stdin.

Doing so provides the decoder with the new (and optional) opportunity to process all data lines in context of each other, which even allows to tune parameters and reference previous or future data rows.

Describe alternatives you've considered
  • Writing the decoder as native binary.
  • Removing data rows by hand by selecting and deleting relevant input samples
  • Doing some other work while waiting for urh to finish

Semnodime avatar Jan 30 '22 04:01 Semnodime

I have written a python script to decode the incoming radio data.

Is there a link to the python script ?

luzpaz avatar Feb 02 '24 14:02 luzpaz