Re: [sigrok-devel] File handling in decoder

2021-12-15 Thread Ivan Wick
Protocol decoders can use the OUTPUT_BINARY type to emit arbitrary data. https://sigrok.org/wiki/Protocol_decoder_output#Binary_output Then invoking sigrok-cli with option "-B, --protocol-decoder-binary " outputs this data to stdout where you can pipe or redirect to a file. Is it possible to writ

[sigrok-devel] File handling in decoder

2021-12-14 Thread Helge Kruse
My protocol decoder shall write some data to a file during invocation of the decode method. For that purpose I create the file once in the start method: class Decoder(srd.Decoder): inputs = ['uart'] options = ( {'id':'path', 'desc':'', 'default':'/tmp/dat'}, ) def start(self):