On Mon, Jun 26, 2017 at 13:27 +0200, Matthias Weber wrote: > > Hi all, > I am aware that sigrok can decode and plot digitally-encoded > analog channels from logic anaylzers, scopes or other meters, > e.g. the Rigol DS1102E as shown in this screenshot [0] in the > wiki.
I'd rather not refer to this as "decoding", as it might lead to confusion. What you talk about is to communicate to a device and download its sample data to the PC. It's interesting to note that support for analog sources was added only later, while support for logic analyzers is the very origin of the sigrok project. > Is it also possible not to take only the (mostly proprietary) > formats of the scopes or meters and to decode their analog > measurement values, but also to take digitally-encoded values > from a digital stream? I mean interpreting specific data blocks > which are part of a higher-level protocol, e.g. TWI, UART, SPI, > etc.? > Really basic example: let's say there are some temperature > measurement ICs connected via TWI or UART. Can I use > sigrok/PulseView to display the measured values next to encoded > data by writing a protocol decoder (pd)? You might have gone to the sigrok.org site and followed the "Protocol decoders" navigation link in the upper left. http://sigrok.org/wiki/Protocol_decoders There is support for a lot of protocols that run on digital lines. The killer feature is that you can "stack" decoders, i.e. feed the output of a lower level (e.g. transport) protocol into another decoder that interprets a higher level protocol. Like UART -> MIDI, UART -> Modbus, I2C -> AT24 eeproms, SPI -> flash memory, etc. Another cool feature is the differing level of detail at different zoom levels. http://sigrok.org/wimg/3/36/Pd_i2c_example.png http://sigrok.org/wimg/b/bd/Pd_modbus.png http://sigrok.org/wimg/0/07/Pd-pdi-identify-x128a1.png Since sigrok protocol decoders are written in Python, it's rather straight forward to add more of them. Decoders work both in the GUI for interactive inspection, as well as from the command line for automated extraction. For an example see "Command line use" in http://sigrok.org/wiki/Protocol_decoder:Avr_pdi#Screenshots Does that answer your question? Notice that protocol decoders work best with digital input data. Interpretation of logic protocols on sample data that is captured on analog input devices is currently work in progress. virtually yours Gerhard Sittig -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. ------------------------------------------------------------------------------ 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 sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel