]> sigrok.org Git - libsigrok.git/log
libsigrok.git
8 years agoftdi-la: Properly cleanup in scan_all()
Lars-Peter Clausen [Fri, 29 Apr 2016 16:07:54 +0000 (18:07 +0200)]
ftdi-la: Properly cleanup in scan_all()

Make sure to free the FTDI device list and the FTDI context in scan_all()
otherwise memory leaks can be observed. Also make sure to free the FTDI
context in scan_device() on the error path.

Signed-off-by: Lars-Peter Clausen <redacted>
8 years agodev_open(): Don't check for sdi != NULL.
Uwe Hermann [Sat, 23 Apr 2016 18:58:46 +0000 (20:58 +0200)]
dev_open(): Don't check for sdi != NULL.

The wrapper guarantees that sdi is not NULL.

8 years agoDrop some unused or duplicated code.
Uwe Hermann [Sat, 23 Apr 2016 18:59:38 +0000 (20:59 +0200)]
Drop some unused or duplicated code.

8 years agocem-dt-885x/colead-slm: Use std_serial_dev_open().
Uwe Hermann [Sun, 24 Apr 2016 18:17:49 +0000 (20:17 +0200)]
cem-dt-885x/colead-slm: Use std_serial_dev_open().

8 years agoRandom cosmetics and whitespace fixes.
Uwe Hermann [Fri, 22 Apr 2016 15:55:44 +0000 (17:55 +0200)]
Random cosmetics and whitespace fixes.

8 years agouni-t-ut32x: Fix copy-paste error.
Uwe Hermann [Wed, 20 Apr 2016 20:12:52 +0000 (22:12 +0200)]
uni-t-ut32x: Fix copy-paste error.

8 years agodev_acquisition_start(): Ensure that sdi is always != NULL.
Uwe Hermann [Fri, 15 Apr 2016 14:26:43 +0000 (16:26 +0200)]
dev_acquisition_start(): Ensure that sdi is always != NULL.

8 years agoDrop some obsolete and unneeded comments.
Uwe Hermann [Wed, 13 Apr 2016 20:28:44 +0000 (22:28 +0200)]
Drop some obsolete and unneeded comments.

8 years agostd_serial_dev_acquisition_stop(): Drop unneeded parameter.
Uwe Hermann [Wed, 13 Apr 2016 20:11:22 +0000 (22:11 +0200)]
std_serial_dev_acquisition_stop(): Drop unneeded parameter.

8 years agodev_acquisition_{start,stop}(): Drop duplicate 'cb_data' parameter.
Uwe Hermann [Sun, 27 Mar 2016 22:40:16 +0000 (00:40 +0200)]
dev_acquisition_{start,stop}(): Drop duplicate 'cb_data' parameter.

These are always 'sdi', which is passed in already.

8 years agoConsistently don't check sdi->priv in dev_acquisition_start().
Uwe Hermann [Sun, 27 Mar 2016 21:16:59 +0000 (23:16 +0200)]
Consistently don't check sdi->priv in dev_acquisition_start().

Most drivers already assume this to be != NULL anyway, and the check
should probably be in the API wrappers anyway.

8 years agoDrop unneeded std_session_send_df_header() comments.
Uwe Hermann [Sun, 27 Mar 2016 20:53:02 +0000 (22:53 +0200)]
Drop unneeded std_session_send_df_header() comments.

8 years agoFactor out std_session_send_df_end() helper.
Uwe Hermann [Sat, 26 Mar 2016 18:45:04 +0000 (19:45 +0100)]
Factor out std_session_send_df_end() helper.

This makes the code shorter, simpler and more consistent, and also
ensures that the (same) debug messages are always emitted and the
packet.payload field is consistently set to NULL always, etc.

8 years agofx2lafw: Add working glue layer for frontends
Benjamin Larsson [Mon, 25 Apr 2016 21:46:19 +0000 (23:46 +0200)]
fx2lafw: Add working glue layer for frontends

8 years agofx2lafw: Add analog sampling handler
Joel Holdsworth [Mon, 25 Apr 2016 19:41:57 +0000 (21:41 +0200)]
fx2lafw: Add analog sampling handler

This will be needed for the MSO support of the CWAV USBee AX and clones.

8 years agofx2lafw: Factor out packet sending
Joel Holdsworth [Sun, 24 Apr 2016 21:06:28 +0000 (23:06 +0200)]
fx2lafw: Factor out packet sending

This will make it possible to use different senders based on
driver mode. This is needed for USBee AX support.

8 years agofx2lafw: Add CTL2 clocking command flag to header
Joel Holdsworth [Sun, 24 Apr 2016 18:38:12 +0000 (20:38 +0200)]
fx2lafw: Add CTL2 clocking command flag to header

The USBee AX hardware needs a sampling clock that is lower than
the 30MHz or 48MHz that the FX2 has to offer. This flag will enable
clocking via the CTL2 pin that is an even divisor of the main clock.

8 years agofx2lafw: Add support for AX analog channel probing
Joel Holdsworth [Sun, 24 Apr 2016 18:35:07 +0000 (20:35 +0200)]
fx2lafw: Add support for AX analog channel probing

8 years agohwdriver.c: Add missing SR_MQFLAG_FOUR_WIRE entry.
Uwe Hermann [Sat, 23 Apr 2016 15:45:49 +0000 (17:45 +0200)]
hwdriver.c: Add missing SR_MQFLAG_FOUR_WIRE entry.

8 years agohp-3457a: Implement support for rear terminals and plug-in cards
Alexandru Gagniuc [Mon, 4 Apr 2016 01:45:25 +0000 (18:45 -0700)]
hp-3457a: Implement support for rear terminals and plug-in cards

8 years agohp-3457a: Implement AC, ACDC, and four-wire resistance modes
Alexandru Gagniuc [Mon, 4 Apr 2016 01:38:53 +0000 (18:38 -0700)]
hp-3457a: Implement AC, ACDC, and four-wire resistance modes

The driver did not look at the mq_flags provided with the
SR_CONF_MEASURED_QUANTITY key, and it defaulted to DC measurements.
Use the second member of the tuple provided by the config key, which
represents the flags for the measurement, and set the instrument's
measurement mode accordingly.

8 years agoanalog: Add MQ Flag for four-wire measurements
Alexandru Gagniuc [Mon, 4 Apr 2016 01:04:42 +0000 (18:04 -0700)]
analog: Add MQ Flag for four-wire measurements

On the high-end bench multimeters, resistance can be measured with a
kelvin connection as well as the more common two wire method. Provide
a flag which can indicate if four-wire mode is used.

8 years agohp-3457a: Do not retrigger new measurement after the last sample
Alexandru Gagniuc [Sat, 9 Apr 2016 17:07:55 +0000 (10:07 -0700)]
hp-3457a: Do not retrigger new measurement after the last sample

Due to a PEBKAC error, after the last sample was sent, a new
measurement was triggered, but its value was never sent down the
session bus. This is easily fixed by incrementing devc->num_samples
right after a measurement is sent instead of when a measurement is
retriggered.

8 years agoftdi-la: added support for the device selection
Sergey Alirzaev [Mon, 18 Apr 2016 22:38:51 +0000 (01:38 +0300)]
ftdi-la: added support for the device selection

Tested on FT232RL and FT2232H both attached to the same PC.

8 years agohantek-6xxx: fix memory leaks
Benjamin Larsson [Tue, 12 Apr 2016 21:47:34 +0000 (23:47 +0200)]
hantek-6xxx: fix memory leaks

Free the first flush packet and the driver context when closing.

8 years agomemory leak fix: g_variant_print() usage fix
Benjamin Larsson [Tue, 12 Apr 2016 18:25:01 +0000 (20:25 +0200)]
memory leak fix: g_variant_print() usage fix

g_variant_print() allocates memory during call. Save the pointer
so that it can be free'd afterwards.

==10048== 16 bytes in 1 blocks are definitely lost in loss record 17 of 37
==10048==    at 0x4C2DEAE: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10048==    by 0x536C85D: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x53877C6: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x5388B60: g_string_append_vprintf (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x5388D83: g_string_append_printf (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x539D034: g_variant_print_string (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x539C92C: g_variant_print (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x4E5F713: log_key (hwdriver.c:597)
==10048==    by 0x4E5FCD5: sr_config_set (hwdriver.c:752)
==10048==    by 0x408C1A: run_session (session.c:661)
==10048==    by 0x404FC5: main (main.c:267)
==10048==
==10048== 16 bytes in 1 blocks are definitely lost in loss record 18 of 37
==10048==    at 0x4C2DEAE: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10048==    by 0x536C85D: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x53877C6: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x5388B60: g_string_append_vprintf (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x5388D83: g_string_append_printf (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x539D034: g_variant_print_string (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x539C92C: g_variant_print (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==10048==    by 0x4E5F713: log_key (hwdriver.c:597)
==10048==    by 0x4E5FBDD: sr_config_get (hwdriver.c:709)
==10048==    by 0x4080D7: datafeed_in (session.c:196)
==10048==    by 0x4E5D47E: sr_session_send (session.c:1192)
==10048==    by 0x4E62682: std_session_send_df_header (std.c:101)

8 years agohantek-6xxx: Use power of 2 usb packet sizes
Markus Siegert [Mon, 11 Apr 2016 19:54:10 +0000 (21:54 +0200)]
hantek-6xxx: Use power of 2 usb packet sizes

Using non power of 2 sizes causes the driver to not work on OS X.
Depending on the usb transfer mode the buffer sizes will map
perfectly to the underlying transport protocol.

8 years agohantek-6xxx: use 1D50:608E for Sainsmart DDS-120
Markus Siegert [Sun, 10 Apr 2016 20:27:11 +0000 (22:27 +0200)]
hantek-6xxx: use 1D50:608E for Sainsmart DDS-120

8 years agohantek-6xxx: add coupling support
Benjamin Larsson [Mon, 4 Apr 2016 19:44:00 +0000 (21:44 +0200)]
hantek-6xxx: add coupling support

Sainsmart DDS-120 supports AC or DC coupling. Add driver support
to control that feature.

8 years agohantek-6xxx: store the amount samples received
Benjamin Larsson [Mon, 4 Apr 2016 17:57:50 +0000 (19:57 +0200)]
hantek-6xxx: store the amount samples received

8 years agohantek-6xxx: positive return code is not an error
Benjamin Larsson [Mon, 4 Apr 2016 17:55:07 +0000 (19:55 +0200)]
hantek-6xxx: positive return code is not an error

8 years agohantek-6xxx: Add support for Sainsmart DDS120
Benjamin Larsson [Fri, 1 Apr 2016 21:26:00 +0000 (23:26 +0200)]
hantek-6xxx: Add support for Sainsmart DDS120

8 years agoFix two compiler warnings.
Uwe Hermann [Sat, 23 Apr 2016 15:37:01 +0000 (17:37 +0200)]
Fix two compiler warnings.

8 years agohameg-hmo: Also start reading on timeout (workaround for USBTMC)
Stefan Brüns [Sun, 17 Apr 2016 17:14:27 +0000 (19:14 +0200)]
hameg-hmo: Also start reading on timeout (workaround for USBTMC)

scpi_serial generate an POLLIN event after the requested data is returned
by the instrument. For USBTMC it is necessary to
1. send an REQUEST_DEV_DEP_MSG_IN request
2. submit an USB bulk read transfer asynchronously.

Using the synchronous libusb_bulk_read() does not generate an POLLIN event.

Solving this properly needs major surgery in spci_usbtmc_libusb.

8 years agospci: Terminate all commands with a linefeed for all transports
Stefan Brüns [Sat, 16 Apr 2016 21:38:05 +0000 (23:38 +0200)]
spci: Terminate all commands with a linefeed for all transports

While some transports add a terminating (carriagereturn+)linefeed
unconditionally, the USBTMC transport does not. At least the R&S HMO1002
requires the linefeed and locks up otherwise. Fixes bug #784.

This changes the TCP and VXI transport from CR+LF to LF only.

Also fixes a possible memory leak for VXI, where the temporary command
buffer was not freed in case of a write error.

8 years agoscpi/usbtmc: fix remote locking according to USBTMC spec
Stefan Brüns [Sat, 16 Apr 2016 21:37:40 +0000 (23:37 +0200)]
scpi/usbtmc: fix remote locking according to USBTMC spec

According to USBTMC usb488 subclass spec, wValue hast to be 0 for both
LOCAL_LOCKOUT and GO_TO_LOCAL. At least required for R&S HMO1002, the
bad request results in a STALL. Fixes bug #783.

8 years agoWorking trigger on rising and falling edges.
Diego F. Asanza [Tue, 19 Apr 2016 20:27:15 +0000 (22:27 +0200)]
Working trigger on rising and falling edges.

8 years agofx2lafw: Only run dslogic_stop_acquisition() on DSLogic.
Uwe Hermann [Sun, 17 Apr 2016 13:49:47 +0000 (15:49 +0200)]
fx2lafw: Only run dslogic_stop_acquisition() on DSLogic.

8 years agoEnsure DSLogic can be stopped.
Diego F. Asanza [Wed, 13 Apr 2016 18:50:37 +0000 (20:50 +0200)]
Ensure DSLogic can be stopped.

After acquisition start, DSLogic stores samples in memory, and when done it
sends a USB packet with the trigger position.

This initial fillup can take some time. If the user requests a session stop
in between, the USB transfer is cancelled and the session hangs because it
is not closed properly.

This commit manages this case and closes the session properly when
acquisition is stopped by the user.

Signed-off-by: Diego F. Asanza <redacted>
8 years agoftdi-la: order the channels properly
Sergey Alirzaev [Thu, 14 Apr 2016 11:17:49 +0000 (14:17 +0300)]
ftdi-la: order the channels properly

8 years agoudev: Add DSLogic Pro rule
Andrew Bradford [Fri, 15 Apr 2016 15:28:51 +0000 (11:28 -0400)]
udev: Add DSLogic Pro rule

Signed-off-by: Andrew Bradford <redacted>
8 years agocontrib: add udev rules for HAMEG HO720/HO730
Stefan Brüns [Tue, 12 Apr 2016 02:17:28 +0000 (04:17 +0200)]
contrib: add udev rules for HAMEG HO720/HO730

8 years agocontrib: add udev rules for R&S HMO1002 in VCP and USBTMC mode
Stefan Brüns [Fri, 15 Apr 2016 20:46:18 +0000 (22:46 +0200)]
contrib: add udev rules for R&S HMO1002 in VCP and USBTMC mode

8 years agoscpi/serial: Add USB IDs for R&S HMO 1002 Series
Stefan Brüns [Fri, 15 Apr 2016 20:45:57 +0000 (22:45 +0200)]
scpi/serial: Add USB IDs for R&S HMO 1002 Series

8 years agohameg-hmo: support triggering on either falling or rising edge
Stefan Brüns [Fri, 15 Apr 2016 20:45:22 +0000 (22:45 +0200)]
hameg-hmo: support triggering on either falling or rising edge

At least the HMO 1002 allows triggering on rising or falling edge, the
corresponding SCPI value is "EITH"

See also bug #740

8 years agohameg-hmo: fix "invalid argument" exception when setting trigger edges
Stefan Brüns [Sun, 10 Apr 2016 20:52:30 +0000 (22:52 +0200)]
hameg-hmo: fix "invalid argument" exception when setting trigger edges

The hameg-hmo driver uses the values from the trigger_slopes array.

8 years agohameg-hmo: Add Rohde&Schwarz HMO 1002
Stefan Brüns [Sun, 10 Apr 2016 16:41:47 +0000 (18:41 +0200)]
hameg-hmo: Add Rohde&Schwarz HMO 1002

Hameg is a R&S measurement instruments subsidiary. The HMO 1002 is an
entry level scope, compatible with the SCPI commands of the larger models.

8 years agosanity_check_all_drivers(): Add some code comments.
Uwe Hermann [Sun, 17 Apr 2016 12:50:18 +0000 (14:50 +0200)]
sanity_check_all_drivers(): Add some code comments.

8 years agogmc-mh-1x-2x: Make two functions static.
Uwe Hermann [Sun, 17 Apr 2016 12:24:05 +0000 (14:24 +0200)]
gmc-mh-1x-2x: Make two functions static.

8 years agoscpi-pps: Drop unused function prototype.
Uwe Hermann [Sun, 17 Apr 2016 12:22:37 +0000 (14:22 +0200)]
scpi-pps: Drop unused function prototype.

8 years agoFix #786 by checking for opts in the bindings
EJ [Sun, 17 Apr 2016 07:30:54 +0000 (09:30 +0200)]
Fix #786 by checking for opts in the bindings

8 years agoinput: vcd: skip BOM at beginning of file
Wolfram Sang [Sun, 10 Apr 2016 19:02:52 +0000 (21:02 +0200)]
input: vcd: skip BOM at beginning of file

According to the infos I have, VCD files should be plain ASCII, but we
got report of a version adding a UTF8 BOM at the beginning of the file,
so we need to skip it.

This fixes bug #755.

Signed-off-by: Wolfram Sang <redacted>
8 years agoSet DSLogic in logic analyzer mode.
Diego F. Asanza [Thu, 31 Mar 2016 20:16:12 +0000 (22:16 +0200)]
Set DSLogic in logic analyzer mode.

It was being initialized in DSO mode.

Signed-off-by: Diego F. Asanza <redacted>
8 years agoFix DSLogic FPGA binary image upload and signal acquisition.
Diego Asanza [Wed, 30 Mar 2016 17:04:54 +0000 (19:04 +0200)]
Fix DSLogic FPGA binary image upload and signal acquisition.

For some reason, uploading the FPGA binary into DSLogic in small chunks
does not work. In this commit, the whole binary image is loaded into memory
and transfer is done in one chunk.

Furthermore, the FPGA configuration structure was not initialized
properly. This was changed with the initialization values taken from the
original DSLogic software.

Signed-off-by: Diego Asanza <redacted>
8 years agoDemo: Use 20Vpp as amplitude instead of 50Vpp
Soeren Apel [Wed, 6 Apr 2016 19:10:22 +0000 (21:10 +0200)]
Demo: Use 20Vpp as amplitude instead of 50Vpp

8 years agoftdi-la: Move ftdi_la_set_samplerate() to protocol.c.
Uwe Hermann [Sun, 3 Apr 2016 15:22:05 +0000 (17:22 +0200)]
ftdi-la: Move ftdi_la_set_samplerate() to protocol.c.

8 years agoRename 'ft2232h' driver to 'ftdi-la'.
Uwe Hermann [Sat, 2 Apr 2016 16:36:52 +0000 (18:36 +0200)]
Rename 'ft2232h' driver to 'ftdi-la'.

The driver already supports more than just the FT2232H chip.

8 years agoconfigure.ac: The ft2232h driver also depends on libusb.
Uwe Hermann [Wed, 30 Mar 2016 11:38:55 +0000 (13:38 +0200)]
configure.ac: The ft2232h driver also depends on libusb.

8 years agoft2232h: Add support for FTDI FT2232H/FT232R chip as LA.
Sergey Alirzaev [Thu, 30 Jul 2015 04:27:43 +0000 (07:27 +0300)]
ft2232h: Add support for FTDI FT2232H/FT232R chip as LA.

This closes bug #780.

8 years agohp-3457a: Implement workaround for double-precision data
Alexandru Gagniuc [Wed, 30 Mar 2016 02:21:55 +0000 (19:21 -0700)]
hp-3457a: Implement workaround for double-precision data

Certain output modules do not understand double-precision data.
Although we need double precision to represent the full resolution
of 7.5 digit readings, temporarily convert data to single precision
so that the output modules understand it. While the reasing might be
off by a few counts, we ensure the output modules do not display
completely bogus data.

For details, see bug #779.

8 years agohp-3457a: Implement basic configuration and sampling
Alexandru Gagniuc [Sun, 28 Feb 2016 18:55:18 +0000 (10:55 -0800)]
hp-3457a: Implement basic configuration and sampling

KNOWN ISSUES:
- When sampling with 100 NPLC, the poll function will timeout a few
times before the first sample is acquired. Increasing the timeout
passed to sr_scpi_source_add() will cause all the other commands to
be processed slowly, producing a sampling rate of about one sample
every ten seconds.
- Support for plug-in cards (44491A and 44492A) is not implemented.
- Support for AC, AC+DC and four-wire resistance measurements is not
implemented.
- Support for configuring the frequency measurement source is not
implemented.

8 years agohwdriver: Add configuration key for number of powerline cycles
Alexandru Gagniuc [Sat, 5 Mar 2016 07:25:15 +0000 (23:25 -0800)]
hwdriver: Add configuration key for number of powerline cycles

High precision multimeters have a special setting, called "number of
powerline cycles" (NPLC) which determines the integration time of the
ADC in terms of the power line period. Some devices need their NPLC
adjusted from the default value before they can measure at their full
rated precision.

8 years agoscpi/libgpib: Place device in local mode before closing handle
Alexandru Gagniuc [Sun, 28 Feb 2016 18:32:19 +0000 (10:32 -0800)]
scpi/libgpib: Place device in local mode before closing handle

Devices connected on a real GPIB bus are placed in remote mode when
opening them. libgpib does not automatically place devices back in
local mode when closing the handle. It is thus possible to lock out a
GPIB device by probing it with libsigrok.

This happens on the HP 3457A meter, which does not have a "LOCAL"
command, and must be put back in local mode via GPIB handshake.
ibloc() takes care of this, and it does it on a per-device basis,
such that other devices on the GPIB bus are not affected.

8 years agoscpi/libgpib: Print error string instead of number on errors
Alexandru Gagniuc [Sat, 5 Mar 2016 19:33:56 +0000 (11:33 -0800)]
scpi/libgpib: Print error string instead of number on errors

libgpib has an error_string which formats a numeric error code into a
human-readable description. Use that instead of printing the numeric
code, as it makes debugging easier.

8 years agohp-3457a: Initial driver skeleton.
Alexandru Gagniuc [Sun, 28 Feb 2016 06:05:27 +0000 (22:05 -0800)]
hp-3457a: Initial driver skeleton.

8 years agosrzip: Optimize analog output saving
Soeren Apel [Sun, 27 Mar 2016 21:25:30 +0000 (23:25 +0200)]
srzip: Optimize analog output saving

 - Don't set capturefile if no logic channels are saved
 - Don't set total probes if no logic channels are saved
 - Save analog channels without index gaps (e.g. probe1/probe4)

8 years agoEnable loading of session files without total probes defined
Soeren Apel [Sun, 27 Mar 2016 21:09:05 +0000 (23:09 +0200)]
Enable loading of session files without total probes defined

8 years agoEnable loading of session files without the unit size defined
Soeren Apel [Sun, 27 Mar 2016 20:55:19 +0000 (22:55 +0200)]
Enable loading of session files without the unit size defined

8 years agoEnable loading of session files without the capture file defined
Soeren Apel [Thu, 24 Mar 2016 07:56:14 +0000 (08:56 +0100)]
Enable loading of session files without the capture file defined

8 years agoanalog save: Avoid index duplication between analog & logic channels.
Soeren Apel [Thu, 24 Mar 2016 07:55:42 +0000 (08:55 +0100)]
analog save: Avoid index duplication between analog & logic channels.

8 years agoinput/raw_analog: Prevent "duplicate const decl specifier" warning
Soeren Apel [Tue, 22 Mar 2016 07:29:25 +0000 (08:29 +0100)]
input/raw_analog: Prevent "duplicate const decl specifier" warning

Warnings emitted by gcc before this patch:
src/input/raw_analog.c:51:13: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
        const char const *fmt_name;
                   ^
src/input/raw_analog.c:55:35: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const struct sample_format const sample_formats[] =
                                  ^

8 years agoBindings: Update create_analog_packet() to the new analog format
Soeren Apel [Tue, 22 Mar 2016 07:25:08 +0000 (08:25 +0100)]
Bindings: Update create_analog_packet() to the new analog format

8 years agooutput/srzip: Minor whitespace fixes.
Uwe Hermann [Tue, 15 Mar 2016 17:40:50 +0000 (18:40 +0100)]
output/srzip: Minor whitespace fixes.

8 years agosession_driver: Process analog chunks into analog packets.
Martin Ling [Mon, 28 Dec 2015 22:29:25 +0000 (22:29 +0000)]
session_driver: Process analog chunks into analog packets.

8 years agosession_driver: Read analog chunks from file.
Martin Ling [Mon, 28 Dec 2015 21:47:25 +0000 (21:47 +0000)]
session_driver: Read analog chunks from file.

8 years agosr_session_load(): Create analog channels from loaded file.
Martin Ling [Mon, 28 Dec 2015 19:47:54 +0000 (19:47 +0000)]
sr_session_load(): Create analog channels from loaded file.

8 years agosrzip: Renumber analog channels from zero in output file.
Martin Ling [Mon, 28 Dec 2015 21:20:07 +0000 (21:20 +0000)]
srzip: Renumber analog channels from zero in output file.

8 years agosrzip: Save analog data.
Martin Ling [Mon, 28 Dec 2015 19:36:06 +0000 (19:36 +0000)]
srzip: Save analog data.

8 years agosrzip: Store total number of analog channels.
Martin Ling [Mon, 28 Dec 2015 19:04:28 +0000 (19:04 +0000)]
srzip: Store total number of analog channels.

8 years agosrzip: Count only logic channels in "total probes".
Martin Ling [Mon, 28 Dec 2015 19:01:57 +0000 (19:01 +0000)]
srzip: Count only logic channels in "total probes".

8 years agoudev rules file: Add entry for Hantek 6022BE.
Uwe Hermann [Thu, 10 Mar 2016 22:50:24 +0000 (23:50 +0100)]
udev rules file: Add entry for Hantek 6022BE.

8 years agohantek-6xxx: libusb_get_device_descriptor() cannot fail.
Uwe Hermann [Wed, 9 Mar 2016 21:41:58 +0000 (22:41 +0100)]
hantek-6xxx: libusb_get_device_descriptor() cannot fail.

8 years agohantek-6xxx: Initial driver implementation.
Chriter [Wed, 16 Sep 2015 19:18:07 +0000 (22:18 +0300)]
hantek-6xxx: Initial driver implementation.

Note: This commit is based on the initial implementation by
Christer Ekholm (but stashed into one commit), with some adaptations
(forward porting, coding style and consistency fixes) by Uwe Hermann.

8 years agohantek-6xxx: Initial driver skeleton.
Chriter [Wed, 16 Sep 2015 17:41:22 +0000 (20:41 +0300)]
hantek-6xxx: Initial driver skeleton.

8 years agomaynuo-m97: Fix a typo in an error message.
Uwe Hermann [Sat, 5 Mar 2016 17:51:39 +0000 (18:51 +0100)]
maynuo-m97: Fix a typo in an error message.

8 years agoscpi-pps: Add profile for Agilent N5763A 12.5V 120A supply
Alexandru Gagniuc [Sat, 5 Mar 2016 17:16:26 +0000 (09:16 -0800)]
scpi-pps: Add profile for Agilent N5763A 12.5V 120A supply

8 years agofluke-dmm: Add support for the Fluke 289.
Uwe Hermann [Fri, 4 Mar 2016 08:37:16 +0000 (09:37 +0100)]
fluke-dmm: Add support for the Fluke 289.

Thanks to Julien Bresciani <redacted> for providing
the information about the required changes!

8 years agosession: allocate correct amount of memory in sr_packet_copy
Wolfram Sang [Sun, 21 Feb 2016 09:06:10 +0000 (10:06 +0100)]
session: allocate correct amount of memory in sr_packet_copy

We want the size of the struct, not of a pointer to the struct. And to
be absolutely future proof, dereference the pointer we are assigning the
memory to (not the one we are copying the data from). Found by Coverity,
CID 50858.

Signed-off-by: Wolfram Sang <redacted>
8 years agoarachnid-labs-re-load-pro: Handle undervoltage condition.
Uwe Hermann [Tue, 9 Feb 2016 00:09:39 +0000 (01:09 +0100)]
arachnid-labs-re-load-pro: Handle undervoltage condition.

Support the SR_CONF_UNDER_VOLTAGE_CONDITION* keys.

Undervoltage (and overtemperature) conditions now emit a
warning-level message as well.

8 years agoAdd SR_CONF_UNDER_VOLTAGE_CONDITION* config keys.
Uwe Hermann [Tue, 9 Feb 2016 00:28:38 +0000 (01:28 +0100)]
Add SR_CONF_UNDER_VOLTAGE_CONDITION* config keys.

Add two new config keys:

 - SR_CONF_UNDER_VOLTAGE_CONDITION

 - SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE

8 years agoarachnid-labs-re-load-pro: Only support firmware >= 1.10.
Uwe Hermann [Mon, 8 Feb 2016 20:03:40 +0000 (21:03 +0100)]
arachnid-labs-re-load-pro: Only support firmware >= 1.10.

The "on\n" and "off\n" commands require this.

8 years agoarachnid-labs-re-load-pro: Add support for setting SR_CONF_ENABLED.
Uwe Hermann [Mon, 8 Feb 2016 07:52:23 +0000 (08:52 +0100)]
arachnid-labs-re-load-pro: Add support for setting SR_CONF_ENABLED.

The firmware has "on\n" and "off\n" commands since 1.10, so use them.

Apparently you can only set the state (on/off) of the load, but it's
not possible to query the current state.

8 years agoarachnid-labs-re-load-pro: Convert to SR_DF_ANALOG.
Uwe Hermann [Mon, 8 Feb 2016 07:24:48 +0000 (08:24 +0100)]
arachnid-labs-re-load-pro: Convert to SR_DF_ANALOG.

8 years agoarachnid-labs-re-load-pro: Add initial driver.
Uwe Hermann [Wed, 30 Dec 2015 17:44:40 +0000 (18:44 +0100)]
arachnid-labs-re-load-pro: Add initial driver.

8 years agoarachnid-labs-re-load-pro: Initial driver skeleton.
Uwe Hermann [Tue, 29 Dec 2015 00:58:05 +0000 (01:58 +0100)]
arachnid-labs-re-load-pro: Initial driver skeleton.

8 years agobeaglelogic: use standard # operator instead of ugly __STRING macro
Aurelien Jacobs [Mon, 1 Feb 2016 21:37:36 +0000 (22:37 +0100)]
beaglelogic: use standard # operator instead of ugly __STRING macro

Also note that the __ namespace is reserved by POSIX for its private
usage, so user land software should never rely on any kind of API
with a __ prefix.

8 years agoconfigure.ac: Bump package version to 0.5.0.
Uwe Hermann [Sat, 6 Feb 2016 14:19:06 +0000 (15:19 +0100)]
configure.ac: Bump package version to 0.5.0.

0.5.0 will be the next major, API-changing release. Bump now, so that
there is no confusion of tarball 0.4.0 and 0.5.0-git snapshots.

8 years agoBump libtool version (not package version) to 3:0:0.
Uwe Hermann [Fri, 29 Jan 2016 21:57:48 +0000 (22:57 +0100)]
Bump libtool version (not package version) to 3:0:0.

The last release (0.3.0) had the libtool version (current:revision:age)
set to 2:0:0. Since this release adds, removes, and changes interfaces,
the new version is 3:0:0.

http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info

This changes the library filename (e.g. on Linux) from libsigrok.so.2.0.0
to libsigrok.so.3.0.0, the SONAME (+symlink) becomes libsigrok.so.3.

8 years agoNEWS: Update for upcoming 0.4.0 release.
Uwe Hermann [Sun, 16 Aug 2015 22:48:13 +0000 (00:48 +0200)]
NEWS: Update for upcoming 0.4.0 release.

8 years agohameg-hmo/yokogawa-dlm: Fix warning about pointer typecast
Soeren Apel [Fri, 29 Jan 2016 22:13:32 +0000 (23:13 +0100)]
hameg-hmo/yokogawa-dlm: Fix warning about pointer typecast