]>
sigrok.org Git - sigrok-cli.git/log
Uwe Hermann [Sun, 4 May 2014 14:49:01 +0000 (16:49 +0200)]
Use a non-recursive automake setup.
(fewer files, less clutter)
Bert Vermeulen [Sat, 26 Apr 2014 19:11:16 +0000 (12:11 -0700)]
Fix compile without decoding support.
This fixes bug 351.
Uwe Hermann [Fri, 25 Apr 2014 17:32:01 +0000 (19:32 +0200)]
session: Show unitsize of the received data.
Also, minor consistency fixes.
Bert Vermeulen [Thu, 24 Apr 2014 18:58:35 +0000 (20:58 +0200)]
Fix saving to session file.
Bert Vermeulen [Tue, 22 Apr 2014 21:37:14 +0000 (23:37 +0200)]
Don't output anything else when decoding.
Bert Vermeulen [Sun, 20 Apr 2014 21:13:16 +0000 (23:13 +0200)]
Use new output module API wrappers.
Bert Vermeulen [Sat, 19 Apr 2014 13:34:14 +0000 (15:34 +0200)]
Drop obsolete output API support.
Uwe Hermann [Sat, 12 Apr 2014 11:42:30 +0000 (13:42 +0200)]
Rename 'probe' to 'channel' (libsigrokdecode change).
The -p|--probes option is renamed to -C|--channels.
Variables of type 'struct srd_channel *' are consistently named 'pdch' to
make them easily distinguishable from libsigrok's 'struct sr_channel *'
variables that are consistently named 'ch'.
Bert Vermeulen [Sun, 13 Apr 2014 18:51:59 +0000 (20:51 +0200)]
Always get samplerate at the start of acquisition.
Bert Vermeulen [Mon, 7 Apr 2014 13:26:39 +0000 (15:26 +0200)]
Deal with empty sessions nicely.
Uwe Hermann [Sun, 13 Apr 2014 16:17:04 +0000 (18:17 +0200)]
configure.ac: Clearly mark required and optional libs.
Uwe Hermann [Fri, 4 Apr 2014 17:57:23 +0000 (19:57 +0200)]
nsis: Drop embedded Python installer, ship local DLL and modules.
Uwe Hermann [Mon, 24 Mar 2014 21:32:47 +0000 (22:32 +0100)]
Rename 'probe' to 'channel' in most places.
This is an update related to bug #259.
Uwe Hermann [Fri, 14 Mar 2014 20:46:10 +0000 (21:46 +0100)]
Rename 'probe group' to 'channel group' everywhere.
This is required to adapt to the same rename in libsigrok.
The --probe-group command-line option is now called --channel-group
(however, the short version -g remains the same as it means "group").
This is an update related to bug #259.
Bert Vermeulen [Thu, 20 Mar 2014 23:50:30 +0000 (00:50 +0100)]
Add support for setting double ranges.
This is used for SR_CONF_VOLTAGE_THRESHOLD.
Uwe Hermann [Thu, 20 Mar 2014 13:01:22 +0000 (14:01 +0100)]
configure.ac: Only check for things we actually use.
Drop checks where we don't use the result (yet). We might bring back
some of those once we start actually using the result in the code.
Uwe Hermann [Thu, 20 Mar 2014 12:15:50 +0000 (13:15 +0100)]
nsis: Put sigrok-dumps *.sr files into the installer.
These are useful for people to have around for conveniently testing
various frontend features and protocol decoders etc.
Bert Vermeulen [Thu, 13 Mar 2014 18:31:28 +0000 (19:31 +0100)]
decode: Show possible values for decoder options.
Bert Vermeulen [Thu, 13 Mar 2014 15:39:16 +0000 (16:39 +0100)]
decode: Allow for specifying multiple annotations.
Bert Vermeulen [Thu, 13 Mar 2014 09:54:10 +0000 (10:54 +0100)]
Sort probes by index.
Bert Vermeulen [Wed, 12 Mar 2014 18:12:20 +0000 (19:12 +0100)]
session: Always save in chunks, including in continuous mode.
Uwe Hermann [Tue, 11 Mar 2014 22:43:20 +0000 (23:43 +0100)]
nsis: Fix the "working dir" path for sigrok-cli.
For now, start the "DOS box" in the sigrok-cli installation directory,
so that the firmware files and decoder files are found correctly.
We'll probably use another solution that sets %PATH% later on, though.
Thanks to Peter Newman for bringing up this issue.
Uwe Hermann [Tue, 11 Mar 2014 21:09:53 +0000 (22:09 +0100)]
nsis: contrib/sigrok-cli.nsi.in: Drop obsolete file.
We're only using the cross-compile version sigrok-cli_cross.nsi.in these
days since it is much more convenient, and the old native build file
was not working and/or up-to-date anyway.
Bert Vermeulen [Tue, 11 Mar 2014 10:23:47 +0000 (11:23 +0100)]
show: Sort ALL the things.
Bert Vermeulen [Mon, 10 Mar 2014 19:29:56 +0000 (20:29 +0100)]
Don't try to set up probes for stacked protocol decoders.
Bert Vermeulen [Mon, 24 Feb 2014 00:35:31 +0000 (01:35 +0100)]
decode: Remove debug output.
Daniel Elstner [Fri, 21 Feb 2014 21:56:44 +0000 (22:56 +0100)]
session: Do not derive unit size from enabled probes.
Daniel Elstner [Fri, 21 Feb 2014 21:40:38 +0000 (22:40 +0100)]
session: Remove call to sr_filter_probes()
Daniel Elstner [Fri, 21 Feb 2014 19:10:09 +0000 (20:10 +0100)]
decode: Defer probe setup until after the input probes are known
Daniel Elstner [Fri, 21 Feb 2014 00:12:26 +0000 (01:12 +0100)]
parse_probestring: Return list of all probes by default.
Daniel Elstner [Thu, 20 Feb 2014 23:50:22 +0000 (00:50 +0100)]
parse_probestring: Fix memory leak on error.
Daniel Elstner [Thu, 20 Feb 2014 23:34:12 +0000 (00:34 +0100)]
session: Allow probe selection for session files.
Daniel Elstner [Thu, 20 Feb 2014 05:31:40 +0000 (06:31 +0100)]
Pass new unit_size argument to srd_inst_probe_set_all()
Uwe Hermann [Fri, 31 Jan 2014 17:33:51 +0000 (18:33 +0100)]
show: Cosmetics and consistency fixes.
Uwe Hermann [Fri, 31 Jan 2014 17:23:13 +0000 (18:23 +0100)]
show: Add support for showing PD annotation rows.
Uwe Hermann [Fri, 31 Jan 2014 13:41:07 +0000 (14:41 +0100)]
manpage: Break line that's too long.
Otherwise "man" will auto-break it and add a confusing dash, etc. etc.
Karl Palsson [Fri, 31 Jan 2014 11:13:52 +0000 (11:13 +0000)]
man: Update uart decode example syntax
"parity" is no longer a valid option, it's parity_type
Uwe Hermann [Tue, 28 Jan 2014 14:55:24 +0000 (15:55 +0100)]
Fix more warnings when building without libsigrokdecode.
Dan Horák [Sat, 25 Jan 2014 13:15:24 +0000 (14:15 +0100)]
fix build without libsigrokdecode
When built with libsigrokdecode additional headers are automagically included
via the Python.h header. When built without they must included explicitly.
Bert Vermeulen [Sun, 19 Jan 2014 16:22:19 +0000 (17:22 +0100)]
Don't use SR_CONF_MAX_UNCOMPRESSED_SAMPLES.
This uses the new sr_config_list(SR_CONF_LIMIT_SAMPLES) method to
get the same information.
Bert Vermeulen [Sun, 12 Jan 2014 21:52:36 +0000 (22:52 +0100)]
Remove special handling of pattern mode options.
It's just a standard list of strings, better handled by the regular
mechanism.
Bert Vermeulen [Thu, 9 Jan 2014 15:48:17 +0000 (16:48 +0100)]
Don't leak GVariant.
Bert Vermeulen [Thu, 9 Jan 2014 12:23:32 +0000 (13:23 +0100)]
Check device uncompressed memory size before running.
Bert Vermeulen [Mon, 23 Dec 2013 23:11:32 +0000 (00:11 +0100)]
Binary output type now contains [name, description]
Uwe Hermann [Sun, 5 Jan 2014 10:42:34 +0000 (11:42 +0100)]
nsis: Install zadig (used for driver switching).
Uwe Hermann [Sun, 5 Jan 2014 00:59:32 +0000 (01:59 +0100)]
nsis: Install libusb0.dll with the application.
This fixes bug #243.
Uwe Hermann [Thu, 2 Jan 2014 13:39:19 +0000 (14:39 +0100)]
nsis: Mention firmware files in description.
Uwe Hermann [Wed, 1 Jan 2014 19:42:18 +0000 (20:42 +0100)]
nsis: Fix File/RMDir copy-paste error.
Uwe Hermann [Wed, 1 Jan 2014 18:09:58 +0000 (19:09 +0100)]
nsis: Also put firmware files into the installer.
Bert Vermeulen [Thu, 26 Dec 2013 11:08:34 +0000 (12:08 +0100)]
Add support for config keys of type G_VARIANT_TYPE_INT32.
Martin Ling [Fri, 6 Dec 2013 01:39:50 +0000 (01:39 +0000)]
Fix hardcoded home directory (pass -DHOME=$HOME to makensis).
Bert Vermeulen [Sun, 1 Dec 2013 10:55:36 +0000 (11:55 +0100)]
Clean up annotation output.
Bert Vermeulen [Wed, 27 Nov 2013 10:24:45 +0000 (11:24 +0100)]
Rearrange protocol decoder output levels.
The protocol decoder output now varies according to --loglevel:
WARN (--loglevel 2, default):
- show only the first annotation string, without quotes
INFO (--loglevel 3):
- add sample numbers
- quotes around annotation
DBG (--loglevel 4 and up):
- add protocol decoder id
- add annotation class
- show all annotation strings, not just the first
In all cases, all annotation classes are shown, unless restricted with
the --protocol-decoder-annotations (-A) option.
Uwe Hermann [Tue, 19 Nov 2013 10:48:06 +0000 (11:48 +0100)]
Fix a bunch of compiler warnings.
We need to ensure that libsigrokdecode.h is always the first #include,
otherwise some versions of Python will cause all kinds of compiler
warnings like these:
CC device.o
In file included from /usr/include/python3.2mu/Python.h:8:0,
from [...]/include/libsigrokdecode/libsigrokdecode.h:25,
from sigrok-cli.h:26,
from device.c:23:
/usr/include/python3.2mu/pyconfig.h:1182:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
#define _POSIX_C_SOURCE 200112L
^
In file included from /usr/include/limits.h:26:0,
from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:168,
from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/syslimits.h:7,
from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:34,
from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:11,
from /usr/include/glib-2.0/glib/gtypes.h:34,
from /usr/include/glib-2.0/glib/galloca.h:34,
from /usr/include/glib-2.0/glib.h:32,
from device.c:21:
/usr/include/features.h:231:0: note: this is the location of the previous definition
# define _POSIX_C_SOURCE 200809L
^
Since sigrok-cli.h already #includes libsigrok.h and libsigrokdecode.h,
just ensure that the latter is always the first #include by _only_
including it in sigrok-cli.h and nowhere else.
poljar (Damir Jelić) [Tue, 19 Nov 2013 10:28:09 +0000 (11:28 +0100)]
sigrok-cli: Fix memory leak if we save the default output format to a file.
g_free_byte_array accepts as the second argument a gboolean which determines if
the actual byte data should also be freed:
https://developer.gnome.org/glib/2.28/glib-Byte-Arrays.html#g-byte-array-free
If we pass a FALSE here the data should be freed with g_free(), instead just
pass TRUE and the data will be automatically freed.
Bert Vermeulen [Sun, 17 Nov 2013 18:19:55 +0000 (19:19 +0100)]
Fix autoconf after refactoring
Bert Vermeulen [Sun, 17 Nov 2013 17:51:15 +0000 (18:51 +0100)]
Reduce reliance on globals
Bert Vermeulen [Sun, 17 Nov 2013 12:15:38 +0000 (13:15 +0100)]
Refactor main source into separate files
Bert Vermeulen [Sun, 10 Nov 2013 11:50:52 +0000 (12:50 +0100)]
Show only one output type at the same time.
OUTPUT_BINARY takes precedence if specified, and is always output
'raw', without extra information, so it can be piped into other programs.
Otherwise, if specified, OUTPUT_META is shown. If none of these is
specified, the default is to show OUTPUT_ANN (all classes) of the
top PD in the stack.
Bert Vermeulen [Sun, 10 Nov 2013 11:49:38 +0000 (12:49 +0100)]
Use new option -B for OUTPUT_BINARY
Bert Vermeulen [Sun, 10 Nov 2013 11:55:23 +0000 (12:55 +0100)]
Show only the longest PD annotation.
Bert Vermeulen [Sun, 10 Nov 2013 11:54:58 +0000 (12:54 +0100)]
if no PD annotation class is specified, show all of them by default.
Bert Vermeulen [Sat, 9 Nov 2013 10:04:39 +0000 (11:04 +0100)]
New option -M for OUTPUT_META
poljar (Damir Jelić) [Thu, 14 Nov 2013 19:01:18 +0000 (20:01 +0100)]
sigrok-cli: Fix two memory leaks in parse_probestring().
This patch fixes two memory leaks if multiple probe names or probe ranges are
specified.
Bert Vermeulen [Thu, 7 Nov 2013 21:46:40 +0000 (22:46 +0100)]
Use annotation-specific struct
Uwe Hermann [Mon, 11 Nov 2013 09:03:03 +0000 (10:03 +0100)]
Revert "Use annotation-specific struct".
This reverts commit
fa498bbb3baf5d9bf62fe0e013aaf434cb2732fd (which
was accidentally committed).
Bert Vermeulen [Mon, 11 Nov 2013 08:40:15 +0000 (09:40 +0100)]
Update man page for --probe-group
Bert Vermeulen [Thu, 7 Nov 2013 21:46:40 +0000 (22:46 +0100)]
Use annotation-specific struct
Bert Vermeulen [Sun, 3 Nov 2013 13:18:19 +0000 (14:18 +0100)]
Report options requiring probe groups by passing them in if given
Bert Vermeulen [Sat, 2 Nov 2013 21:44:14 +0000 (22:44 +0100)]
New --probe-group option
Devices that don't use probe groups don't need this option at all;
it only needs to be specified when using a device that has probe
groups, and then only for options that require it.
Bert Vermeulen [Sat, 2 Nov 2013 21:43:32 +0000 (22:43 +0100)]
Report probe groups with --show
Bert Vermeulen [Sat, 2 Nov 2013 02:20:47 +0000 (03:20 +0100)]
Probe group API fixes
Bert Vermeulen [Fri, 1 Nov 2013 01:38:50 +0000 (02:38 +0100)]
Use new probe_groups API
poljar (Damir Jelić) [Wed, 30 Oct 2013 22:04:02 +0000 (23:04 +0100)]
sigrok-cli: Fix leaks in device_scan().
If a bogus driver name is specified on the command line or for some reason we
fail to initialize a driver device_scan() leaks data.
This patch adds appropriate free calls.
Bert Vermeulen [Wed, 30 Oct 2013 21:39:00 +0000 (22:39 +0100)]
Adjust to libsigrokdecode API changes
Bert Vermeulen [Wed, 30 Oct 2013 13:39:59 +0000 (14:39 +0100)]
Actually exit when a fatal error is logged
Bert Vermeulen [Thu, 12 Sep 2013 22:02:23 +0000 (00:02 +0200)]
Use the new libsigrokdecode session API
Matt Ranostay [Wed, 11 Sep 2013 05:38:05 +0000 (22:38 -0700)]
sigrok-cli: Allow both hex and decimals parameters
When strtoll() base parameter is set to 0 it can handle both hex and
decimals values.
Signed-off-by: Matt Ranostay <redacted>
Uwe Hermann [Sun, 8 Sep 2013 17:59:05 +0000 (19:59 +0200)]
Fix issue with optional PD probes.
Running (or showing info about) PDs with optional probes was not working
and causing segfaults.
The reason was a g_slist_concat() call that was applied to a list,
whereas it needs to be applied to a copy of the list.
This fixes #138.
Bert Vermeulen [Thu, 5 Sep 2013 22:30:38 +0000 (00:30 +0200)]
List dummy "sigrok" file format, and accept it as option
See bug 131
Marc Schink [Mon, 5 Aug 2013 12:40:23 +0000 (14:40 +0200)]
Remove datafeed callbacks to prevent memory leak.
Bert Vermeulen [Mon, 2 Sep 2013 09:28:22 +0000 (11:28 +0200)]
Avoid trying to save to a file if there's nothing to save
This works around the division by zero when trying to save analog
data.
Uwe Hermann [Wed, 31 Jul 2013 20:16:33 +0000 (22:16 +0200)]
NEWS: Fix typo in the year.
Thanks codyps1 on IRC for the report.
Bert Vermeulen [Thu, 20 Jun 2013 15:06:42 +0000 (17:06 +0200)]
More generic handling of SR_T types, and SR_T_UINT64 support
Uwe Hermann [Thu, 13 Jun 2013 23:50:39 +0000 (01:50 +0200)]
manpage: Escape minus characters.
Bert Vermeulen [Thu, 9 May 2013 11:49:37 +0000 (13:49 +0200)]
Fix error message and compiler warning
Thanks to Christian Deussen for the patch.
Bert Vermeulen [Tue, 7 May 2013 13:46:29 +0000 (15:46 +0200)]
Fix various memory leaks
Uwe Hermann [Sat, 4 May 2013 19:37:41 +0000 (21:37 +0200)]
configure.ac: Update version number to 0.4.0.
Uwe Hermann [Sat, 4 May 2013 13:51:06 +0000 (15:51 +0200)]
NEWS: Add changes since the last release.
Uwe Hermann [Fri, 3 May 2013 18:42:41 +0000 (20:42 +0200)]
Adapt to new <libsigrokdecode/libsigrokdecode.h> header.
Uwe Hermann [Fri, 3 May 2013 17:53:09 +0000 (19:53 +0200)]
sigrok-cli depends on libsigrokdecode >= 0.2.0.
Bert Vermeulen [Tue, 30 Apr 2013 13:15:13 +0000 (15:15 +0200)]
Update man page
Bert Vermeulen [Tue, 30 Apr 2013 11:58:04 +0000 (13:58 +0200)]
Update cmdline options to better reflect functionality
Bert Vermeulen [Mon, 29 Apr 2013 22:07:16 +0000 (00:07 +0200)]
Remove anykey input source after it fired
Bert Vermeulen [Sun, 28 Apr 2013 23:14:43 +0000 (01:14 +0200)]
Fix error message
Bert Vermeulen [Sat, 27 Apr 2013 15:34:00 +0000 (17:34 +0200)]
Use new output API receive() function
Bert Vermeulen [Mon, 22 Apr 2013 23:15:32 +0000 (01:15 +0200)]
Open device before adding it to the session
Uwe Hermann [Tue, 23 Apr 2013 20:10:41 +0000 (22:10 +0200)]
GPL headers: Use correct project name.
Uwe Hermann [Tue, 23 Apr 2013 19:39:46 +0000 (21:39 +0200)]
README: Add "Copyright and license" section.
Uwe Hermann [Mon, 22 Apr 2013 11:46:13 +0000 (13:46 +0200)]
Add NSIS file for use with cross-compiled sigrok-cli.