Hi, On Tue, May 01, 2018 at 10:11:07PM +0200, Lorenzo Cappelletti wrote: > I was thinking if it's possibile to generate .sr files to use ad dumps.
In theory, yes. The file format is relatively simple currently, you can create the logic-1 (etc.) files in the .sr (ZIP format) via some scripts if you like... https://sigrok.org/wiki/File_format:Sigrok/v2 > The reason is that the SPI protocol for FT8xx I'm decoding comprises > many commands which are hard to record with a logic analyzer. I don't > use all commands in my real-world project which I use as testbench for > sigrok. > > If I could mimic the SPI bus, e.g., with a bunch of python commands, > it'd be easy to make the building blocks for more complex SPI > transactions. ... however, while generating example files is a nice way to get *some* data, I personally would always prefer actual data of actual chips or communication traces (in sigrok-dumps) for purposes of testing protocol decoders against this data. The reason is that in many cases you'll have "strange" things in the real-world data that you would miss when generating it programmatically (different timing, certain pins not toggling as you'd expect them to according to assumptions/datasheet, missing bytes, unexpected ordering of commands, various glitches, unexpectedly overlapping commands, etc.). We generally want to have as many real-world traces as possible in order to make all of our protocol decoders decode correctly (or at all) under real-world circumstances. Uwe. -- http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

