]> sigrok.org Git - sigrok-cli.git/log
sigrok-cli.git
10 years agoDon't leak GVariant.
Bert Vermeulen [Thu, 9 Jan 2014 15:48:17 +0000 (16:48 +0100)]
Don't leak GVariant.

10 years agoCheck device uncompressed memory size before running.
Bert Vermeulen [Thu, 9 Jan 2014 12:23:32 +0000 (13:23 +0100)]
Check device uncompressed memory size before running.

10 years agoBinary output type now contains [name, description]
Bert Vermeulen [Mon, 23 Dec 2013 23:11:32 +0000 (00:11 +0100)]
Binary output type now contains [name, description]

10 years agonsis: Install zadig (used for driver switching).
Uwe Hermann [Sun, 5 Jan 2014 10:42:34 +0000 (11:42 +0100)]
nsis: Install zadig (used for driver switching).

10 years agonsis: Install libusb0.dll with the application.
Uwe Hermann [Sun, 5 Jan 2014 00:59:32 +0000 (01:59 +0100)]
nsis: Install libusb0.dll with the application.

This fixes bug #243.

10 years agonsis: Mention firmware files in description.
Uwe Hermann [Thu, 2 Jan 2014 13:39:19 +0000 (14:39 +0100)]
nsis: Mention firmware files in description.

10 years agonsis: Fix File/RMDir copy-paste error.
Uwe Hermann [Wed, 1 Jan 2014 19:42:18 +0000 (20:42 +0100)]
nsis: Fix File/RMDir copy-paste error.

10 years agonsis: Also put firmware files into the installer.
Uwe Hermann [Wed, 1 Jan 2014 18:09:58 +0000 (19:09 +0100)]
nsis: Also put firmware files into the installer.

10 years agoAdd support for config keys of type G_VARIANT_TYPE_INT32.
Bert Vermeulen [Thu, 26 Dec 2013 11:08:34 +0000 (12:08 +0100)]
Add support for config keys of type G_VARIANT_TYPE_INT32.

10 years agoFix hardcoded home directory (pass -DHOME=$HOME to makensis).
Martin Ling [Fri, 6 Dec 2013 01:39:50 +0000 (01:39 +0000)]
Fix hardcoded home directory (pass -DHOME=$HOME to makensis).

10 years agoClean up annotation output.
Bert Vermeulen [Sun, 1 Dec 2013 10:55:36 +0000 (11:55 +0100)]
Clean up annotation output.

11 years agoRearrange protocol decoder output levels.
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.

11 years agoFix a bunch of compiler warnings.
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.

11 years agosigrok-cli: Fix memory leak if we save the default output format to a file.
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.

11 years agoFix autoconf after refactoring
Bert Vermeulen [Sun, 17 Nov 2013 18:19:55 +0000 (19:19 +0100)]
Fix autoconf after refactoring

11 years agoReduce reliance on globals
Bert Vermeulen [Sun, 17 Nov 2013 17:51:15 +0000 (18:51 +0100)]
Reduce reliance on globals

11 years agoRefactor main source into separate files
Bert Vermeulen [Sun, 17 Nov 2013 12:15:38 +0000 (13:15 +0100)]
Refactor main source into separate files

11 years agoShow only one output type at the same time.
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.

11 years agoUse new option -B for OUTPUT_BINARY
Bert Vermeulen [Sun, 10 Nov 2013 11:49:38 +0000 (12:49 +0100)]
Use new option -B for OUTPUT_BINARY

11 years agoShow only the longest PD annotation.
Bert Vermeulen [Sun, 10 Nov 2013 11:55:23 +0000 (12:55 +0100)]
Show only the longest PD annotation.

11 years agoif no PD annotation class is specified, show all of them by default.
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.

11 years agoNew option -M for OUTPUT_META
Bert Vermeulen [Sat, 9 Nov 2013 10:04:39 +0000 (11:04 +0100)]
New option -M for OUTPUT_META

11 years agosigrok-cli: Fix two memory leaks in parse_probestring().
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.

11 years agoUse annotation-specific struct
Bert Vermeulen [Thu, 7 Nov 2013 21:46:40 +0000 (22:46 +0100)]
Use annotation-specific struct

11 years agoRevert "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).

11 years agoUpdate man page for --probe-group
Bert Vermeulen [Mon, 11 Nov 2013 08:40:15 +0000 (09:40 +0100)]
Update man page for --probe-group

11 years agoUse annotation-specific struct
Bert Vermeulen [Thu, 7 Nov 2013 21:46:40 +0000 (22:46 +0100)]
Use annotation-specific struct

11 years agoReport options requiring probe groups by passing them in if given
Bert Vermeulen [Sun, 3 Nov 2013 13:18:19 +0000 (14:18 +0100)]
Report options requiring probe groups by passing them in if given

11 years agoNew --probe-group option
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.

11 years agoReport probe groups with --show
Bert Vermeulen [Sat, 2 Nov 2013 21:43:32 +0000 (22:43 +0100)]
Report probe groups with --show

11 years agoProbe group API fixes
Bert Vermeulen [Sat, 2 Nov 2013 02:20:47 +0000 (03:20 +0100)]
Probe group API fixes

11 years agoUse new probe_groups API
Bert Vermeulen [Fri, 1 Nov 2013 01:38:50 +0000 (02:38 +0100)]
Use new probe_groups API

11 years agosigrok-cli: Fix leaks in device_scan().
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.

11 years agoAdjust to libsigrokdecode API changes
Bert Vermeulen [Wed, 30 Oct 2013 21:39:00 +0000 (22:39 +0100)]
Adjust to libsigrokdecode API changes

11 years agoActually exit when a fatal error is logged
Bert Vermeulen [Wed, 30 Oct 2013 13:39:59 +0000 (14:39 +0100)]
Actually exit when a fatal error is logged

11 years agoUse the new libsigrokdecode session API
Bert Vermeulen [Thu, 12 Sep 2013 22:02:23 +0000 (00:02 +0200)]
Use the new libsigrokdecode session API

11 years agosigrok-cli: Allow both hex and decimals parameters
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>
11 years agoFix issue with optional PD probes.
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.

11 years agoList dummy "sigrok" file format, and accept it as option
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

11 years agoRemove datafeed callbacks to prevent memory leak.
Marc Schink [Mon, 5 Aug 2013 12:40:23 +0000 (14:40 +0200)]
Remove datafeed callbacks to prevent memory leak.

11 years agoAvoid trying to save to a file if there's nothing to save
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.

11 years agoNEWS: Fix typo in the year.
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.

11 years agoMore generic handling of SR_T types, and SR_T_UINT64 support
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

11 years agomanpage: Escape minus characters.
Uwe Hermann [Thu, 13 Jun 2013 23:50:39 +0000 (01:50 +0200)]
manpage: Escape minus characters.

11 years agoFix error message and compiler warning
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.

11 years agoFix various memory leaks
Bert Vermeulen [Tue, 7 May 2013 13:46:29 +0000 (15:46 +0200)]
Fix various memory leaks

11 years agoconfigure.ac: Update version number to 0.4.0. sigrok-cli-0.4.0
Uwe Hermann [Sat, 4 May 2013 19:37:41 +0000 (21:37 +0200)]
configure.ac: Update version number to 0.4.0.

11 years agoNEWS: Add changes since the last release.
Uwe Hermann [Sat, 4 May 2013 13:51:06 +0000 (15:51 +0200)]
NEWS: Add changes since the last release.

11 years agoAdapt to new <libsigrokdecode/libsigrokdecode.h> header.
Uwe Hermann [Fri, 3 May 2013 18:42:41 +0000 (20:42 +0200)]
Adapt to new <libsigrokdecode/libsigrokdecode.h> header.

11 years agosigrok-cli depends on libsigrokdecode >= 0.2.0.
Uwe Hermann [Fri, 3 May 2013 17:53:09 +0000 (19:53 +0200)]
sigrok-cli depends on libsigrokdecode >= 0.2.0.

11 years agoUpdate man page
Bert Vermeulen [Tue, 30 Apr 2013 13:15:13 +0000 (15:15 +0200)]
Update man page

11 years agoUpdate cmdline options to better reflect functionality
Bert Vermeulen [Tue, 30 Apr 2013 11:58:04 +0000 (13:58 +0200)]
Update cmdline options to better reflect functionality

11 years agoRemove anykey input source after it fired
Bert Vermeulen [Mon, 29 Apr 2013 22:07:16 +0000 (00:07 +0200)]
Remove anykey input source after it fired

11 years agoFix error message
Bert Vermeulen [Sun, 28 Apr 2013 23:14:43 +0000 (01:14 +0200)]
Fix error message

11 years agoUse new output API receive() function
Bert Vermeulen [Sat, 27 Apr 2013 15:34:00 +0000 (17:34 +0200)]
Use new output API receive() function

11 years agoOpen device before adding it to the session
Bert Vermeulen [Mon, 22 Apr 2013 23:15:32 +0000 (01:15 +0200)]
Open device before adding it to the session

11 years agoGPL headers: Use correct project name.
Uwe Hermann [Tue, 23 Apr 2013 20:10:41 +0000 (22:10 +0200)]
GPL headers: Use correct project name.

11 years agoREADME: Add "Copyright and license" section.
Uwe Hermann [Tue, 23 Apr 2013 19:39:46 +0000 (21:39 +0200)]
README: Add "Copyright and license" section.

11 years agoAdd NSIS file for use with cross-compiled sigrok-cli.
Uwe Hermann [Mon, 22 Apr 2013 11:46:13 +0000 (13:46 +0200)]
Add NSIS file for use with cross-compiled sigrok-cli.

11 years agoShow driver name and optional conn string
Bert Vermeulen [Wed, 17 Apr 2013 23:17:20 +0000 (01:17 +0200)]
Show driver name and optional conn string

11 years agoUpdate for libsigrok datafeed callback API changes.
Martin Ling [Mon, 15 Apr 2013 20:17:23 +0000 (21:17 +0100)]
Update for libsigrok datafeed callback API changes.

11 years agoSmall variable naming fix to avoid confusion.
Uwe Hermann [Mon, 15 Apr 2013 10:35:51 +0000 (12:35 +0200)]
Small variable naming fix to avoid confusion.

11 years agoconfigure.ac: Show $build, $host, and lib versions.
Uwe Hermann [Mon, 15 Apr 2013 10:30:31 +0000 (12:30 +0200)]
configure.ac: Show $build, $host, and lib versions.

11 years agoSR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples
Bert Vermeulen [Sun, 7 Apr 2013 19:04:35 +0000 (21:04 +0200)]
SR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples

11 years agoMore GVariant conversions
Bert Vermeulen [Sun, 31 Mar 2013 08:21:11 +0000 (10:21 +0200)]
More GVariant conversions

11 years agofix options setting to use GVariant
Bert Vermeulen [Sat, 30 Mar 2013 14:44:56 +0000 (15:44 +0100)]
fix options setting to use GVariant

11 years agoavoid deprecated struct sr_rational
Bert Vermeulen [Sat, 30 Mar 2013 14:28:28 +0000 (15:28 +0100)]
avoid deprecated struct sr_rational

11 years agoMore GVariant conversions
Bert Vermeulen [Tue, 26 Mar 2013 21:09:28 +0000 (22:09 +0100)]
More GVariant conversions

11 years agoAdjust to GVariant-based sr_config_* functions
Bert Vermeulen [Mon, 25 Mar 2013 19:55:42 +0000 (20:55 +0100)]
Adjust to GVariant-based sr_config_* functions

11 years agofix time-based limit logic
Bert Vermeulen [Tue, 19 Mar 2013 15:20:08 +0000 (16:20 +0100)]
fix time-based limit logic

11 years agouse new libsigrok GVariant-based option/probe passing
Bert Vermeulen [Tue, 19 Mar 2013 00:57:52 +0000 (01:57 +0100)]
use new libsigrok GVariant-based option/probe passing

11 years agoREADME: Refer to INSTALL and new Building wiki page.
Uwe Hermann [Sun, 17 Mar 2013 12:02:09 +0000 (13:02 +0100)]
README: Refer to INSTALL and new Building wiki page.

11 years agoautotools: Don't use "foreign" option.
Uwe Hermann [Sun, 17 Mar 2013 12:09:35 +0000 (13:09 +0100)]
autotools: Don't use "foreign" option.

This adds INSTALL and allows for a few more sanity checks being done.

11 years agoshow SR_CONF_SAMPLE_INTERVAL (debug)
Bert Vermeulen [Sat, 16 Mar 2013 20:51:32 +0000 (21:51 +0100)]
show SR_CONF_SAMPLE_INTERVAL (debug)

11 years agomake libsigrokdecode optional
Bert Vermeulen [Tue, 12 Mar 2013 21:49:16 +0000 (22:49 +0100)]
make libsigrokdecode optional

Only if you really need to compile without libsigrokdecode.

11 years agosupport for live status of SR_CONF_DATALOG
Bert Vermeulen [Mon, 11 Mar 2013 15:30:14 +0000 (16:30 +0100)]
support for live status of SR_CONF_DATALOG

11 years agoadd --set option
Bert Vermeulen [Mon, 11 Mar 2013 15:29:27 +0000 (16:29 +0100)]
add --set option

11 years agodump obsolete multiple-device leftover code
Bert Vermeulen [Mon, 11 Mar 2013 14:32:45 +0000 (15:32 +0100)]
dump obsolete multiple-device leftover code

11 years agofix SR_DF_END flow
Bert Vermeulen [Tue, 5 Mar 2013 20:48:34 +0000 (21:48 +0100)]
fix SR_DF_END flow

Output modules were getting SR_DF_END after their object was already
free()d, and the output channel closed.

11 years agoproperly check for result after output module data()
Bert Vermeulen [Tue, 5 Mar 2013 20:31:50 +0000 (21:31 +0100)]
properly check for result after output module data()

11 years agouse input API properly
Bert Vermeulen [Fri, 22 Feb 2013 21:21:39 +0000 (22:21 +0100)]
use input API properly

11 years agoUpdate, fix, and extend manpage.
Uwe Hermann [Tue, 5 Feb 2013 17:23:02 +0000 (18:23 +0100)]
Update, fix, and extend manpage.

 - Probe indices start at 0 now (not 1).
 - Update manpage date.
 - Mention the 'analog' output format.
 - Various smaller cosmetic fixes.
 - Add more examples for some options.
 - Document all possible suffixes for --time/--samples values.
 - Mention the PulseView(1) manpage in "SEE ALSO".
 - Mention Bugzilla for bugreports.

11 years agoUse sr_dev_has_option() where appropriate.
Bert Vermeulen [Fri, 25 Jan 2013 19:42:43 +0000 (20:42 +0100)]
Use sr_dev_has_option() where appropriate.

11 years agoUse sr_dev_has_option().
Bert Vermeulen [Fri, 25 Jan 2013 15:21:04 +0000 (16:21 +0100)]
Use sr_dev_has_option().

11 years agoUse sr_config_get().
Bert Vermeulen [Fri, 25 Jan 2013 14:49:21 +0000 (15:49 +0100)]
Use sr_config_get().

11 years agoUse sr_config_set()
Bert Vermeulen [Fri, 25 Jan 2013 14:39:24 +0000 (15:39 +0100)]
Use sr_config_set()

11 years agoDeprecate SR_DI_HWOPTS.
Bert Vermeulen [Fri, 25 Jan 2013 14:10:22 +0000 (15:10 +0100)]
Deprecate SR_DI_HWOPTS.

11 years agoDeprecate SR_DI_HWCAPS.
Bert Vermeulen [Fri, 25 Jan 2013 14:02:30 +0000 (15:02 +0100)]
Deprecate SR_DI_HWCAPS.

11 years agoDeprecate SR_DI_TRIGGER_TYPES.
Bert Vermeulen [Fri, 25 Jan 2013 10:52:55 +0000 (11:52 +0100)]
Deprecate SR_DI_TRIGGER_TYPES.

11 years agoDeprecate SR_DI_TRIGGER_SOURCES.
Bert Vermeulen [Fri, 25 Jan 2013 10:26:59 +0000 (11:26 +0100)]
Deprecate SR_DI_TRIGGER_SOURCES.

11 years agoDeprecate SR_DI_TIMEBASES.
Bert Vermeulen [Fri, 25 Jan 2013 10:22:38 +0000 (11:22 +0100)]
Deprecate SR_DI_TIMEBASES.

11 years agoDeprecate SR_DI_FILTERS.
Bert Vermeulen [Fri, 25 Jan 2013 10:20:01 +0000 (11:20 +0100)]
Deprecate SR_DI_FILTERS.

11 years agoDeprecate SR_DI_VDIVS.
Bert Vermeulen [Fri, 25 Jan 2013 10:15:47 +0000 (11:15 +0100)]
Deprecate SR_DI_VDIVS.

11 years agoDeprecate SR_DI_COUPLING.
Bert Vermeulen [Fri, 25 Jan 2013 10:04:57 +0000 (11:04 +0100)]
Deprecate SR_DI_COUPLING.

11 years agoDeprecate SR_DI_BUFFERSIZES.
Bert Vermeulen [Fri, 25 Jan 2013 10:00:53 +0000 (11:00 +0100)]
Deprecate SR_DI_BUFFERSIZES.

11 years agoDeprecate SR_DI_PATTERNS.
Bert Vermeulen [Fri, 25 Jan 2013 02:39:18 +0000 (03:39 +0100)]
Deprecate SR_DI_PATTERNS.

11 years agoDeprecate SR_DI_CUR_SAMPLERATE.
Bert Vermeulen [Fri, 25 Jan 2013 02:18:27 +0000 (03:18 +0100)]
Deprecate SR_DI_CUR_SAMPLERATE.

11 years agodeprecate SR_DI_SAMPLERATES
Bert Vermeulen [Fri, 25 Jan 2013 02:04:59 +0000 (03:04 +0100)]
deprecate SR_DI_SAMPLERATES

11 years agoUse new SR_CONF_* keys.
Bert Vermeulen [Mon, 21 Jan 2013 22:24:18 +0000 (23:24 +0100)]
Use new SR_CONF_* keys.

11 years agoUse new sr_config_info*_get() calls.
Bert Vermeulen [Mon, 21 Jan 2013 21:00:29 +0000 (22:00 +0100)]
Use new sr_config_info*_get() calls.