Iztok Jeras [Tue, 17 Jul 2012 19:50:08 +0000 (21:50 +0200)]
onewire: fixed an issue caused by renaming a transport layer command
Iztok Jeras [Tue, 17 Jul 2012 19:42:53 +0000 (21:42 +0200)]
onewire: added new transport layer commands
Iztok Jeras [Tue, 17 Jul 2012 17:33:44 +0000 (19:33 +0200)]
onewire: updated documentation
Iztok Jeras [Sun, 15 Jul 2012 15:46:20 +0000 (17:46 +0200)]
onewire: added transport layer decoder, it does not do much for now
Iztok Jeras [Fri, 13 Jul 2012 21:55:44 +0000 (23:55 +0200)]
onewire: updates to link layer timing
Iztok Jeras [Fri, 13 Jul 2012 20:59:12 +0000 (22:59 +0200)]
onewire: combined reset and presence detect events, avoid unneeded overdrive exit message
Iztok Jeras [Tue, 10 Jul 2012 21:14:35 +0000 (23:14 +0200)]
onewire: the split of the protocol into layers works now
Iztok Jeras [Tue, 10 Jul 2012 20:06:58 +0000 (22:06 +0200)]
onewire: placing protocol layers into separate directories
Iztok Jeras [Mon, 9 Jul 2012 21:29:34 +0000 (23:29 +0200)]
onewire: preparations for protocol separation between link and network layers
Uwe Hermann [Wed, 11 Jul 2012 20:27:07 +0000 (22:27 +0200)]
srd: Drop 'usb' PD, replaced by two others.
The new 'usb_signalling' and the 'usb_protocol' PD which stacks on top
of it, replace the old 'usb' decoder.
Uwe Hermann [Wed, 11 Jul 2012 20:19:31 +0000 (22:19 +0200)]
srd: Performance improvements for various PDs.
Ignore/skip identical samples in most (low-level) PDs, as we're usually
(but not necessarily always) only interested in pin changes.
This yields a significant performance improvement for the PDs.
The mechanism was already used in the 'i2s', 'jtag', and 'lpc' PDs, but not
yet in all supported low-level decoders. The following PDs now also use
this mechanism: 'dcf77', 'i2c', 'spi', 'uart', and 'usb_signalling'.
Thanks Lars-Peter Clausen <redacted> for bringing this to our
attention.
Uwe Hermann [Wed, 4 Jul 2012 20:03:34 +0000 (22:03 +0200)]
srd: lm75: Output min/max/avg temperature in report().
This is just a preparation for later, the report() is not hooked up
anywhere, yet.
Uwe Hermann [Wed, 4 Jul 2012 17:52:29 +0000 (19:52 +0200)]
srd: lm75: Warn about temperature reg. being read-only.
Uwe Hermann [Wed, 4 Jul 2012 17:35:59 +0000 (19:35 +0200)]
srd: lm75: Generic handling of register reads/writes.
Uwe Hermann [Tue, 3 Jul 2012 23:58:46 +0000 (01:58 +0200)]
srd: onewire: Fix copyright line, and PD name/description.
Iztok Jeras [Mon, 2 Jul 2012 21:54:52 +0000 (23:54 +0200)]
some white space changes, changed handling of normal/overdrive timing, annotations now show duration
Iztok Jeras [Sun, 1 Jul 2012 16:35:43 +0000 (18:35 +0200)]
added some ducumentation, shortened the ROM command decoder code
Iztok Jeras [Sat, 30 Jun 2012 20:09:47 +0000 (22:09 +0200)]
added some untested overdrive functionality, added some comments, modified timing values in annotations
Iztok Jeras [Thu, 28 Jun 2012 21:07:16 +0000 (23:07 +0200)]
commented out most of the TRANSPORT layer code, added some code for an improved timing calculation
Iztok Jeras [Mon, 25 Jun 2012 22:42:03 +0000 (00:42 +0200)]
decoder onewire: added conditional network commands, some fixex to the transport layer
Iztok Jeras [Mon, 25 Jun 2012 20:03:37 +0000 (22:03 +0200)]
decoder onewire: separated transport layer code from network layer
Iztok Jeras [Mon, 25 Jun 2012 19:27:02 +0000 (21:27 +0200)]
decoder onewire: some annotation cleanup
Iztok Jeras [Sat, 23 Jun 2012 20:06:47 +0000 (22:06 +0200)]
onewire decoder: removed some debug code, preparations for the next protocol layer
Iztok Jeras [Sat, 23 Jun 2012 19:29:03 +0000 (21:29 +0200)]
onewire decoder: added search support
Iztok Jeras [Sat, 23 Jun 2012 16:06:09 +0000 (18:06 +0200)]
onewire decoder: added some byte related code
Iztok Jeras [Sat, 2 Jun 2012 18:06:45 +0000 (20:06 +0200)]
some fixex to the link layer, not final
Uwe Hermann [Tue, 3 Jul 2012 23:19:35 +0000 (01:19 +0200)]
unfinished update to onewire protocol decoder
Uwe Hermann [Thu, 28 Jun 2012 19:43:12 +0000 (21:43 +0200)]
srd: i2cfilter: Output actual I2C packets.
Change this PD from an I2C->databytes converter/filter to an actual
pure I2C filter in the sense that both input and output is a valid I2C
protocol stream.
Also, change the EDID decoder accordingly, to use the new i2cfilter
output.
Uwe Hermann [Wed, 27 Jun 2012 18:02:25 +0000 (20:02 +0200)]
srd: Add National LM75 protocol decoder.
This shall support the original National LM75 I2C-based temperature sensor,
as well as various compatible devices of other vendors, such as the
Fairchild FM75, Dallas DS75, and so on.
Currently only 9bit resolution is supported, and not all commands are
decoded, yet. The register contents and temperatures are decoded
correctly though, and can be output in both Celsius and Kelvin.
Bert Vermeulen [Fri, 22 Jun 2012 23:17:36 +0000 (01:17 +0200)]
sr/srd/cli: require glib version >= 2.28
Needed for g_get_monotonic_time(). Thanks to Tomaž Šolc.
Uwe Hermann [Tue, 19 Jun 2012 15:29:18 +0000 (17:29 +0200)]
srd: Split USB decoder in two PDs (which stack).
The 'usb_signalling' decoder just decodes symbols from D+/D- levels,
handles bit stuffing and outputs the symbols and (potential) packets.
The 'usb_protocol' decoder takes that output and tried to parse USB
packets from it (SOF, SETUP, IN, OUT, DATA0, and so on).
This is the base decoder on top of which various others will stack
later on.
The two new PDs are work in progress, so we still keep the old 'usb' PD
around for a little while, until the two new ones are fully working and
well-tested.
Uwe Hermann [Fri, 15 Jun 2012 13:21:06 +0000 (15:21 +0200)]
srd: usb: Add long description of the PIDs.
Also, add missing ones which are mentioned in the USB spec. However, not
all may be relevant for LS/FS signalling. But they're still useful to
have in the table, so we can output warnings like
"Warning: HS PID encountered, but device is FS???"
Uwe Hermann [Thu, 14 Jun 2012 20:46:52 +0000 (22:46 +0200)]
srd: usb: Preliminary USB low-speed support.
Some of the differences of USB low-speed (compared to full-speed) are:
- 1.5Mb/s datarate, not 12MBit/s.
- The J and K states are swapped/inverted.
Note: This is work in progress, further changes may still be needed.
Add a 'signalling' option, which allows the user to select whether the
PD should decode using the low-speed or full-speed signalling protocol.
If unspecified, the default is full-speed.
Uwe Hermann [Thu, 14 Jun 2012 00:06:36 +0000 (02:06 +0200)]
srd: uart_dump: Small simplification.
Uwe Hermann [Thu, 14 Jun 2012 00:02:42 +0000 (02:02 +0200)]
srd: uart_dump: Fix file output (flush).
We need to flush the file output buffer(s), lacking a stop() call in
PDs at the moment, which could do the flush (or file close()) only once
at the end of the PD "session".
Uwe Hermann [Wed, 13 Jun 2012 23:14:10 +0000 (01:14 +0200)]
srd: Add experimental uart_dump decoder.
This PD stacks on top of the UART protocol decoder, and ouputs the
decoded UART data in the "canonical" format, one byte after the other
without any metadata (start bits, stop bits, parity bits, errors) and
without any sample-numbers and such. This is basically what you would
see in a terminal program, such as minicom.
Per default it outputs to stdout, but using the 'filename' option
and/or the 'filename_rx'/'filename_tx' options it can also output to
files.
Using the 'tx' and 'rx' options you can also select whether both, or
only one of the data direction's data should be output.
Example:
sigrok-cli -i foo.sr \
-a uart:rx=0:tx=1,uart_dump:rx=no:tx=yes:filename=foo.txt \
-s uart,uart_dump
This PD is just an experiment for now, it's possible that it will be
replaced / reimplemented via a different sigrok facility later on.
Uwe Hermann [Wed, 13 Jun 2012 17:34:11 +0000 (19:34 +0200)]
srd: pan1321: Add 'Text' (short) annotation format.
Rename the old 'Text' format to 'Text (verbose)'.
Uwe Hermann [Wed, 13 Jun 2012 17:26:02 +0000 (19:26 +0200)]
srd: pan1321: Output correct start/end sample values.
Uwe Hermann [Wed, 13 Jun 2012 17:09:05 +0000 (19:09 +0200)]
srd: Fix non-working PAN1321 decoder.
Uwe Hermann [Tue, 12 Jun 2012 18:38:08 +0000 (20:38 +0200)]
srd: Cosmetics.
Uwe Hermann [Sat, 9 Jun 2012 16:34:24 +0000 (18:34 +0200)]
srd: jtag: Document current (WIP) protocol output format.
Uwe Hermann [Sat, 9 Jun 2012 15:57:30 +0000 (17:57 +0200)]
srd: usb: Fix bugs in the USB decoder.
The samplenum/scount handling was broken recently (mea culpa), and the
DP/DM probes were swapped.
Uwe Hermann [Fri, 8 Jun 2012 19:39:09 +0000 (21:39 +0200)]
srd: dcf77: Initial PON handling.
Uwe Hermann [Fri, 8 Jun 2012 19:06:59 +0000 (21:06 +0200)]
srd: dcf77: Bugfix, PD was broken.
Uwe Hermann [Fri, 8 Jun 2012 17:44:44 +0000 (19:44 +0200)]
srd: mx25lxx05d: 'Verbose decode' & 'Warnings' annotations.
Uwe Hermann [Fri, 8 Jun 2012 14:14:31 +0000 (16:14 +0200)]
srd: mx25lxx05d: Add empty handlers for TODO cmds.
Uwe Hermann [Fri, 8 Jun 2012 14:07:02 +0000 (16:07 +0200)]
srd: mx25lxx05d: Further fixes/simplifications.
Also handle (not yet implemented) special-case command names such as
'RDP/RES' and 'FAST/READ' correctly.
Uwe Hermann [Fri, 8 Jun 2012 12:58:47 +0000 (14:58 +0200)]
srd: mx25lxx05d: Simplify/generify cmd handling.
Uwe Hermann [Wed, 30 May 2012 23:15:55 +0000 (01:15 +0200)]
srd: mlx90614: Small bugfix.
Uwe Hermann [Wed, 30 May 2012 23:03:54 +0000 (01:03 +0200)]
srd: nunchuk: Enable PD now, it works fine.
Uwe Hermann [Mon, 28 May 2012 12:57:51 +0000 (14:57 +0200)]
srd: nunchuk: Support for the Nunchuk init sequence.
Uwe Hermann [Mon, 28 May 2012 12:17:55 +0000 (14:17 +0200)]
srd: nunchuk: Add verbose summary annotation.
Uwe Hermann [Sun, 27 May 2012 14:22:59 +0000 (16:22 +0200)]
srd: nunchuk: Only output summary annotation if possible.
Uwe Hermann [Sun, 27 May 2012 14:15:06 +0000 (16:15 +0200)]
srd: nunchuk: Fix most annotation samplenumbers.
Also, add a self.putx() helper method, as most annotations we have right
now are exactly one I2C packet long (there will also be others later, though).
Uwe Hermann [Sun, 27 May 2012 14:05:34 +0000 (16:05 +0200)]
srd: Wii Nunchuk: Complete rewrite, PD works now.
The Nintendo Wii Nunchuk protocol decoder, while it was in the repo for
a while, didn't really work yet (among other things, due to lack of
dumps for testing the code).
This is fixed now, the rewritten decoder works fine with most dump
files in the sigrok-dumps repo. A few minor issues remain to be
added/fixed, though.
Uwe Hermann [Tue, 29 May 2012 23:04:48 +0000 (01:04 +0200)]
srd: Cosmetics.
Uwe Hermann [Tue, 29 May 2012 23:04:29 +0000 (01:04 +0200)]
srd: Disable 'onewire' PD for now, until it's working.
Uwe Hermann [Tue, 29 May 2012 18:30:15 +0000 (20:30 +0200)]
sr/srd/cli/gtk: ChangeLog -> MAINTAINERCLEANFILES.
If the (generated) ChangeLog file is marked for DISTCLEANFILES, it'll be
removed whenever "make distclean" is called (and is then gone forever if
you use the tarballs, for example).
Uwe Hermann [Tue, 22 May 2012 23:12:11 +0000 (01:12 +0200)]
srd: onewire: Fix incorrect format for annotation output.
Should be a list containing:
- Annotation format number (e.g. 0, or ANN_DEC, etc).
- A list of strings (the annotation). If more than one string is
supplied, the other ones should be short versions of the string.
Example: [ANN_DEC, ["Foobarbaz", "Foo", "F"]]
This is optional, and mostly useful for GUIs.
Uwe Hermann [Tue, 22 May 2012 23:09:49 +0000 (01:09 +0200)]
srd: onewire: Fix %d and %s mismatch.
Uwe Hermann [Tue, 22 May 2012 23:01:03 +0000 (01:01 +0200)]
srd: onewire: Get optional 'pwr' probe value, too.
Uwe Hermann [Tue, 22 May 2012 22:59:50 +0000 (00:59 +0200)]
srd: onewire: Drop UART leftover comments.
Iztok Jeras [Tue, 22 May 2012 20:27:25 +0000 (22:27 +0200)]
removed some code copied from UART decoder, fixed some Python syntax issues
Iztok Jeras [Wed, 16 May 2012 20:01:32 +0000 (22:01 +0200)]
unfinished update to onewire protocol decoder
Iztok Jeras [Tue, 15 May 2012 21:15:26 +0000 (23:15 +0200)]
commiting new unfinished 1-wire decoder
Uwe Hermann [Fri, 18 May 2012 19:42:29 +0000 (21:42 +0200)]
srd: MX25Lxx05D: Fix inverted SRWD bit handling.
Uwe Hermann [Fri, 18 May 2012 17:58:58 +0000 (19:58 +0200)]
srd: MX25Lxx05D: Decode status register bits.
Uwe Hermann [Fri, 18 May 2012 13:28:52 +0000 (15:28 +0200)]
srd: MX25Lxx05D: Fix SE command.
Uwe Hermann [Fri, 18 May 2012 13:05:03 +0000 (15:05 +0200)]
srd: MX25Lxx05D: Implement READ command.
Uwe Hermann [Wed, 16 May 2012 21:06:21 +0000 (23:06 +0200)]
srd: MX25Lxx05D: Implement RDSR and PP commands.
Also, some small fixes and additional debug code/output.
Uwe Hermann [Wed, 16 May 2012 20:48:47 +0000 (22:48 +0200)]
srd: spi: Document output protocol, send CS# changes.
As per guidelines in HACKING, the protocol "commands"/items should be ALLCAPS,
thus change 'data' to 'DATA'. Also, fix MX25Lxx05D protocol decoder
accordingly, currently the only one we have which stacks on top of SPI.
Add a new 'CS-CHANGE' output protocol item, which is sent upon every
change of the CS# pin value (either 0->1, or vice versa). This is needed
by various higher-level PDs.
Pekka Nikander [Fri, 11 May 2012 16:23:21 +0000 (19:23 +0300)]
sr/srd/cli: Fix compiling with Homebrew.
Add ACLOCAL_DIR setting and AM_PROG_AR macro for compiling with Homebrew
under Mac OS X.
Applies essentially the same change to
{libsigrok,libsigrokdecode,sigrok-cli}/{autogen.sh,configure.ac}
It may be that the same fix is needed for the other autogen.sh and/or
configure.ac files, but that hasn't been tested and therefore not in
this commit.
Uwe Hermann [Thu, 10 May 2012 07:38:54 +0000 (09:38 +0200)]
srd: JTAG: Enavble and get/use optional probes.
Uwe Hermann [Thu, 10 May 2012 07:34:13 +0000 (09:34 +0200)]
srd: Support for one or more optional probes.
In the protocol decoder you always get all required probes, then _all_
optional probes in the list of probes in the decode() call.
Example:
(r1, r2, r3, o1, o2, o3, o4) = pins
In this case r1-r3 are required probes, o1-o4 are optional probes.
However, the value of valid/used/specified probes will be 0 or 1,
whereas the value of probes that were not specified/assigned by the user
will be (at the moment) 42.
The PD can check for a valid probe like this:
if p in (0, 1):
...
Or check for an invalid probe:
if (p > 1):
...
The value of 42 could change to be -1 or None later.
Uwe Hermann [Tue, 8 May 2012 23:06:01 +0000 (01:06 +0200)]
srd: Fix a few Doxygen errors.
Uwe Hermann [Tue, 8 May 2012 22:35:30 +0000 (00:35 +0200)]
srd: Add usable one-liner descriptions for all PDs.
Uwe Hermann [Tue, 8 May 2012 21:53:48 +0000 (23:53 +0200)]
srd: Remove TODOs from annotation format names.
Also, fix minor consistency issues, cosmetics, typos.
Uwe Hermann [Sat, 5 May 2012 17:51:30 +0000 (19:51 +0200)]
srd: JTAG/SMT32: Some more improvements.
Add APB-AP register offsets/names, refactor and fix some code, handle
in/out APACC/DPACC better.
Thomas Jarosch [Fri, 4 May 2012 08:18:22 +0000 (10:18 +0200)]
Fix bracket placing
Make it consistent with the rest of the code
Signed-off-by: Thomas Jarosch <redacted>
Uwe Hermann [Thu, 3 May 2012 19:22:03 +0000 (21:22 +0200)]
srd: JTAG/STM32: Factor out dpacc_data_in/out.
Also, add a few code comments.
Uwe Hermann [Thu, 3 May 2012 17:19:01 +0000 (19:19 +0200)]
srd: JTAG/STM32: Decode IDCODE[31:0] parts.
Uwe Hermann [Wed, 2 May 2012 23:39:30 +0000 (01:39 +0200)]
srd: JTAG: Also show the bitstrings in hex (for now).
Uwe Hermann [Wed, 2 May 2012 23:39:16 +0000 (01:39 +0200)]
srd: JTAG/STM32: Various improvements, fixes.
Add APACC register handling, fix DPACC handling (esp. 'A' register size),
ouput a warning upon reserved DAPABORT bits being non-zero, implement
preliminary state machine, add various TODOs.
This is still work in progress, not yet finished or working properly.
Uwe Hermann [Sat, 28 Apr 2012 17:24:57 +0000 (19:24 +0200)]
srd: Add initial JTAG/STM32 protocol decoder.
(not yet finished)
This protocol decoder can decode ST STM32 specific JTAG accesses, knows
about the STM32-specific registers and bits.
Uwe Hermann [Sat, 28 Apr 2012 22:46:02 +0000 (00:46 +0200)]
srd: JTAG: Add some more docs.
Uwe Hermann [Sat, 28 Apr 2012 22:35:52 +0000 (00:35 +0200)]
srd: JTAG: The TRST# (and SRST#) signals are optional.
Don't handle them for now, will do this later.
Uwe Hermann [Sat, 28 Apr 2012 17:24:14 +0000 (19:24 +0200)]
srd: jtag: Various bugfixes.
Most importantly, both TDI and TDO are sampled at the rising TCK edge,
and only upon transitions from SHIFT-DR to SHIFT-DR and SHIFT-IR to SHIFT-IR
are we to save the TDI/TDO values (if I understood this correcly).
Also, start out in RUN-TEST/IDLE state for now. This is useful if you
have JTAG dumps which start "in the middle" somewhere, not in the
TEST-LOGIC-RESET state. For full dumps, the JTAG software usually issues
five TMS=1 cycles to force the JTAG state machine into TEST-LOGIC-RESET
anyway, so this works fine too.
Uwe Hermann [Thu, 26 Apr 2012 20:51:26 +0000 (22:51 +0200)]
srd: Add initial JTAG protocol decoder.
This is unfinished, needs some more work.
Uwe Hermann [Wed, 25 Apr 2012 16:44:50 +0000 (18:44 +0200)]
srd: lpc: Minor additions/fixes.
Uwe Hermann [Sat, 21 Apr 2012 17:58:47 +0000 (19:58 +0200)]
srd: MXC6225XU: Bugfixes, add missing bits/registers.
Uwe Hermann [Thu, 19 Apr 2012 18:18:10 +0000 (20:18 +0200)]
srd: Initial MEMSIC MXC6225XU protocol decoder.
Not quite finished yet, but relatively close.
Uwe Hermann [Tue, 17 Apr 2012 21:28:12 +0000 (23:28 +0200)]
Initial LPC protocol decoder implementation.
This is unfinished and not tested, and probably not really working, yet.
Uwe Hermann [Mon, 16 Apr 2012 22:12:56 +0000 (00:12 +0200)]
srd: Initial 0.1.0 release.
Uwe Hermann [Mon, 16 Apr 2012 21:16:00 +0000 (23:16 +0200)]
sr/srd: SR_API/SRD_API/etc. is a no-op on MinGW.
This avoids warnings on a MinGW build. The feature depends on ELF files,
but MinGW/Windows uses PE files.
Uwe Hermann [Mon, 16 Apr 2012 21:10:26 +0000 (23:10 +0200)]
srd: Quickfix for MinGW build issue.
Uwe Hermann [Sun, 15 Apr 2012 18:58:08 +0000 (20:58 +0200)]
srd: Add functions to query srd version(s).
Uwe Hermann [Sat, 7 Apr 2012 16:14:39 +0000 (18:14 +0200)]
sr/srd: Use/fix SR(D)_MAX_NUM_PROBES.
Joel Holdsworth [Fri, 6 Apr 2012 21:29:31 +0000 (22:29 +0100)]
srd/i2s: Added links to documentation
Joel Holdsworth [Fri, 6 Apr 2012 21:01:30 +0000 (22:01 +0100)]
srd/i2s: Added sample-rate and bit-depth to report
Joel Holdsworth [Fri, 6 Apr 2012 19:11:01 +0000 (20:11 +0100)]
srd/i2s: Print a warning on receiving a malformed word