summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-10-08onewire_link: Drop PD info not useful for the user.Uwe Hermann
2013-10-08onewire_link: Use annotation types.Uwe Hermann
This fixes bug #147.
2013-10-08onewire_link: Add/use annotation helpers.Uwe Hermann
2013-10-08i2s: Add shorter and longer annotations for GUI use.Uwe Hermann
This fixes (the remaining parts of) bug #162.
2013-10-08i2s: Define/use common proto out format.Uwe Hermann
2013-10-08i2s: Add helper methods for annotation/proto output.Uwe Hermann
2013-10-08i2s: Use annotation types.Uwe Hermann
This fixes parts of bug #162.
2013-10-06Add initial MIDI protocol decoder.Uwe Hermann
This supports a certain number of MIDI messages already, but not yet all of them. More will be added later.
2013-09-29usb_signalling: Fix packet annotation.Uwe Hermann
2013-09-29usb_signalling: Fix EOP handling and annotation.Uwe Hermann
2013-09-29usb_signalling: Properly use different annotation types.Uwe Hermann
2013-09-29usb_signalling: Fix decode of individual bits.Uwe Hermann
After a Start of Packet (SOP) has been detected, "sample" the individual USB symbolѕ/bits in the middle of the respective bittime (depending on whether full-speed or low-speed signalling is used). This fixes various incorrectly decoded cases (bug #158).
2013-09-20usb_signalling: Simplify symbols handling a bit.Uwe Hermann
2013-09-20usb_signalling: Refactor/simplify bitrate/bitwidth handling.Uwe Hermann
2013-09-15usb_signalling: Fix start/end sample numbers.Uwe Hermann
This makes the decoder suitable for GUI usage. This fixes bug #155.
2013-09-15dcf77: Fix date parity check.Uwe Hermann
The parity check for certain DCF77 fields/bits was incorrect. It has to be an even parity over bits 36-58. This is fixed now. This fixes bug #157.
2013-09-15dcf77: Provide short and long annotations.Uwe Hermann
2013-09-15dcf77: Fix multi-bit DCF77 field annotations.Uwe Hermann
2013-09-15dcf77: Consistency renames.Uwe Hermann
2013-09-15dcf77: Drop PON pin handling.Uwe Hermann
The PON pin is specific to the Pollin "DCF1 module", but has nothing to do with DCF77 itself. Thus, drop it from this PD. It can be part of another stacked PD if needed. This fixes bug #153.
2013-09-15dcf77: Use proper annotations for DCF77 components.Uwe Hermann
2013-09-15dcf77: Fix bug in handling of DCF77 bit 0.Uwe Hermann
2013-09-15dcf77: Fix start-/end-sample numbers.Uwe Hermann
This fixes bug #154.
2013-09-14i2c: Drop unneeded 'addressing' option.Uwe Hermann
This (unimplemented so far) option is not needed at all, since the decoder will be able to detect 7/10 bit slave addresses automatically, the user doesn't have to specify slave address sizes.
2013-09-14i2c: Drop obsolete TODOs.Uwe Hermann
2013-09-14i2c: Move OUTPUT_PROTO docs to pd.py.Uwe Hermann
2013-09-14i2c: Moved extensive protocol docs to the wiki.Uwe Hermann
2013-09-14i2c: Various fixes to make the PD suitable for GUIs.Uwe Hermann
The output format of the slave address is now a PD option. It can be "shifted" or "unshifted", i.e. bit 0 (which contains a read/write marker) is either shifted out or not, i.e., the slave address is displayed as 8bit or 7bit number (or 11bit/10bit number for 10bit slave addresses). Data bytes (not address bytes) are always shown as 8bit values, of course. Add annotation types for the individual I2C components such as start conditions, stop conditions, ACK/NACK, address read/writes, data read/writes and so on. This fixes bug #151.
2013-09-12spi: Add some documentation, move OUTPUT_PROTO docs.Uwe Hermann
Add a short help text for the PD and move the OUTPUT_PROTO docs to pd.py since they're not meant for the user too see.
2013-09-12spi: Make CS# optional and use it if supplied.Uwe Hermann
The CS# pin is now optional, it can either be supplied to the PD or not. If it _is_ supplied, reset the PD state every time it changes. This has the effect that "incomplete" SPI frames and those where CS# is not asserted are ignored and not decoded. This fixes bug #152.
2013-09-12spi: Refactor code, use a state machine.Uwe Hermann
2013-09-12spi: Provide multiple annotation types.Uwe Hermann
For now SPI gets the following annotation types: - MISO/MOSI SPI data - MISO SPI data - MOSI SPI data (i.e. you can see either MISO, or MOSI, or both; the latter is most useful for CLI usage) Also, show the hex values as e.g. F5 (upper-case letters, no "0x" prefix).
2013-09-12spi: Fix start-/end-sample numbers.Uwe Hermann
This now makes the SPI decoder suitable for use in GUIs. This fixes bug #150.
2013-09-12spi: Make data format a PD option, add annotation types.Uwe Hermann
The data format can be specified via the PD's "format" option now, it is no longer an annotation type. Also, add and use two annotation types: "Data" and "Warnings".
2013-09-12can: Use proper annotation types for the CAN fields.Uwe Hermann
This allows GUIs to show different fields in different colors.
2013-09-12uart: Output data in separate RX and TX annotation types.Uwe Hermann
There is one annotation type for the RX side of the communication/data output now, and another one for the TX side. This allows GUIs to show them in two different traces, and/or show them in the same trace but with different colors. This also has the additional benefit that it is clear which databyte belongs to which direction. Previously the annotations had to look like "RX: 5F" or "TX: 11001011", but the "RX: " and "TX: " prefixes are now no longer required, making the GUI traces (and CLI output too) much more readable.
2013-09-12uart: Use same length for data output in all cases.Uwe Hermann
Until now you could get e.g. "d" or "df" as hex output from the UART PD. This will now be a common-length "0D" and "DF". When all data byte annotations are of the same lengths the readability in GUI traces is a lot better. Also, hardcode hex characters to be upper-case (for now). The same applies to oct ("021" instead of "21") and bin output ("00001001" instead of "1001").
2013-09-12uart: Put annotations into proper annotation types.Uwe Hermann
There are now extra annotation types for data, start/stop/parity bits and for warnings (e.g. "invalid parity" or "frame error" or such). This allows users to select which of the annotation types they want to see (they can select one/multiple/all annotations as needed), and also allows them to use different visual representation for the different annotation types in GUIs (e.g. different colors for the blobs, different fonts, rectangle/round/elliptic blobs, and so on; how the annotation blobs are displayed is entirely up to the GUI and its configuration by the user).
2013-09-12uart: Move OUTPUT_PROTO format description to pd.py.Uwe Hermann
This is information that a user (when viewing PD info in a GUI/CLI) should not see (and doesn't care to see), it is meant for developers only. Thus, make it a comment in pd.py instead.
2013-09-12uart: Drop extensive protocol info (moved to wiki).Uwe Hermann
Move the full details of the protocol to the wiki, the docs in the PD itself should only be a short description and/or a collection of notes that could be useful for a user in a GUI (or CLI) to decide which PD to select, which options to set how, what PDs to stack where, and so on. The full protocol description (including photos, examples, ...) is here: http://sigrok.org/wiki/Protocol_decoder:Uart
2013-09-12uart: Make data format selection a PD option.Uwe Hermann
Until now we (ab)used annotation types for outputting the same data (numbers) in different formats (hex, ascii, binary, and so on). Turn this into a proper PD option, since annotation types should rather be used for different _types_ of annotations (e.g. "CRC", "Stop bit", "Preamble", "Sequence counter", "Warnings", and similar things), not different _formats_ for the same annotation type. Old sigrok-cli invocation for hex output: sigrok-cli ... -P uart:rx=0:tx=1 -A uart=hex New: sigrok-cli ... -P uart:rx=0:tx=1:format=hex In GUIs there is now a new "Data format" option where the user can select the output format for UART data (default is 'ascii').
2013-09-12uart: Use T for stop bit, P for parity bit.Uwe Hermann
The short(est) annotations for "Stop bit" and "Parity bit" have both been "P" until now, which is confusing for users (on certain zoom levels in GUIs). Use "T" for stop bits now instead.
2013-09-12uart: Don't prefix databyte output numbers.Uwe Hermann
Previously the output was 0x41 or 0o101 or 0b1000001, now it is 41 or 101 or 1000001. We drop these prefixes, since they decrease the readability of the PD output (especially when displayed in GUIs) and are not needed anyway since the user knowingly selected the number format before running the respective PD.
2013-09-12uart: Fix corner-case that can occur with LA triggers.Uwe Hermann
Assume that the initial pin state is 1/high for the RX and TX lines. This fixes the decode when an LA triggers on e.g. TX=low (the first sample would be low in that case, so the falling edge for the start bit would be missed by the decoder).
2013-09-12uart: Fix start-/end-sample numbers.Uwe Hermann
This now makes the UART decoder suitable for use in GUIs. This fixes bug #148.
2013-09-10can: Use annotation abbreviations.Uwe Hermann
Supply long, middle, and short versions for most annotations, so that GUIs can show nicely readable and useful annotations on various zoom levels.
2013-09-10can: Fix annotation start/end samples.Uwe Hermann
With this change pretty much all CAN annotations that are currently output should have the correct values, including single-bit and multi-bit fields, standard and extended CAN frames, and so on. This fixes #146.
2013-09-10can: Prepare for fixing annotation start/end samples.Uwe Hermann
2013-09-08i2c: Fix corner-case that can occur with LA triggers.Uwe Hermann
Until now the I2C PD was basically ignoring the very first sample, and using that as the initial 'oldscl'/'oldsda' value. However, if your logic analyzers trigger on, say, SDA=low that will result in a file where the first sample is really important since it is the one which the PD will need to know that there's a falling edge on SDA. Thus, assume both SCL and SDA are high/1 when the PD starts. This is a good assumption since both pins have pullups on them in practice and are thus high/1 when the bus is idle. Later on we might want to have config options to let the PD assume other states of SDA/SCL initially.
2013-09-03i2s: Fixed annotation sample numbersJoel Holdsworth