]> sigrok.org Git - libsigrok.git/log
libsigrok.git
6 years agomaynuo-m97: fix potential NULL dereference
Gerhard Sittig [Fri, 9 Feb 2018 18:15:51 +0000 (19:15 +0100)]
maynuo-m97: fix potential NULL dereference

Check pointers' validity before dereferencing them.

This was reported by clang's scan-build.

6 years agomanson-hcs-3xxx: fix potential NULL dereference
Gerhard Sittig [Fri, 9 Feb 2018 18:14:31 +0000 (19:14 +0100)]
manson-hcs-3xxx: fix potential NULL dereference

Check pointers' validity before dereferencing them.

This was reported by clang's scan-build.

6 years agolecroy-xstream: fix several compiler warnings (assignment, memory)
Gerhard Sittig [Fri, 9 Feb 2018 18:12:12 +0000 (19:12 +0100)]
lecroy-xstream: fix several compiler warnings (assignment, memory)

Remove an assignment that won't take effect. Check pointers' validity
before dereferencing. Fix a memory leak.

This was reported by clang's scan-build.

6 years agolascar-el-usb: fix potential NULL dereference and memory leak
Gerhard Sittig [Fri, 9 Feb 2018 18:09:27 +0000 (19:09 +0100)]
lascar-el-usb: fix potential NULL dereference and memory leak

Check for successful allocation of multiple memory ranges, and release
partial allocations in the error path when one of them failed. This
fixes a potential memory leak, as well as avoids NULL dereferences.

This was reported by clang's scan-build.

6 years agokorad-kaxxxxp: fix potential NULL dereference
Gerhard Sittig [Fri, 9 Feb 2018 18:08:11 +0000 (19:08 +0100)]
korad-kaxxxxp: fix potential NULL dereference

Check pointers' validity before dereferencing them.

This was reported by clang's scan-build.

6 years agohp-3457a: fix potential NULL dereference
Gerhard Sittig [Fri, 9 Feb 2018 18:05:38 +0000 (19:05 +0100)]
hp-3457a: fix potential NULL dereference

Check the active channels' list for not being empty, before
dereferencing pointers.

This was reported by clang's scan-build.

6 years agohantek-6xxx: fix potential NULL dereference
Gerhard Sittig [Fri, 9 Feb 2018 18:03:06 +0000 (19:03 +0100)]
hantek-6xxx: fix potential NULL dereference

Check pointers' validity before dereferencing.

This was reported by clang's scan-build.

6 years agohameg-hmo: fix several compiler warnings (assignments, memory)
Gerhard Sittig [Fri, 9 Feb 2018 17:57:49 +0000 (18:57 +0100)]
hameg-hmo: fix several compiler warnings (assignments, memory)

Silence warnings about assigned values that never get used, potential
NULL deference, and potential memory leaks.

This was reported by clang's scan-build.

6 years agogmc-mh-1x-2x: fix potential memory leak
Gerhard Sittig [Fri, 9 Feb 2018 17:50:53 +0000 (18:50 +0100)]
gmc-mh-1x-2x: fix potential memory leak

The scan_2x_bd232() routine used to always prepare one spare context,
and filled it in when a device was found, just to allocate another one
and continue scanning.

Free the last allocated context unconditionally, as it was allocated
unconditionally, and never used.

This was reported by clang's scan-build.

6 years agofx2lafw: silence "NULL dereference" compiler warning
Gerhard Sittig [Fri, 9 Feb 2018 17:48:29 +0000 (18:48 +0100)]
fx2lafw: silence "NULL dereference" compiler warning

Check pointers' validity before dereferencing them.

This was reported by clang's scan-build.

6 years agoftdi-la: silence "assigned but never used" compiler warning
Gerhard Sittig [Thu, 8 Feb 2018 22:19:00 +0000 (23:19 +0100)]
ftdi-la: silence "assigned but never used" compiler warning

Stick with the prepared but unfinished "limit msec" code path, but
silence the warning about an unused variable value.

This was reported by clang's scan-build.

6 years agodreamsourcelab-dslogic: avoid division by zero
Gerhard Sittig [Thu, 8 Feb 2018 22:16:40 +0000 (23:16 +0100)]
dreamsourcelab-dslogic: avoid division by zero

Do not align to block_size when its value is zero.

This was reported by clang's scan-build.

6 years agodreamsourcelab-dslogic: avoid NULL pointer dereference
Gerhard Sittig [Thu, 8 Feb 2018 22:11:59 +0000 (23:11 +0100)]
dreamsourcelab-dslogic: avoid NULL pointer dereference

Check pointers' validity before dereferencing them.

This was reported by clang's scan-build.

6 years agochronovu-la: avoid NULL pointer dereference
Gerhard Sittig [Thu, 8 Feb 2018 21:44:16 +0000 (22:44 +0100)]
chronovu-la: avoid NULL pointer dereference

Check pointers' validity before dereferencing them.

This was reported by clang's scan-build.

6 years agobeaglelogic: fixup use of uninitialized data in TCP routines
Gerhard Sittig [Thu, 8 Feb 2018 21:31:48 +0000 (22:31 +0100)]
beaglelogic: fixup use of uninitialized data in TCP routines

Make sure that failure to communicate via TCP results in access to
uninitialized data.

This was reported by clang's scan-build.

6 years agobeaglelogic: fixup memory leak in the TCP command send routine
Gerhard Sittig [Thu, 8 Feb 2018 21:22:56 +0000 (22:22 +0100)]
beaglelogic: fixup memory leak in the TCP command send routine

Release allocated memory in an error code path.

This was reported by clang's scan-build.

6 years agoatten-pps3xxx: silence NULL dereference compiler warnings
Gerhard Sittig [Thu, 8 Feb 2018 21:02:59 +0000 (22:02 +0100)]
atten-pps3xxx: silence NULL dereference compiler warnings

Check pointers' validity before dereferencing them.

This was reported by clang's scan-build.

6 years agosession_driver: avoid division by zero, catch API violation
Gerhard Sittig [Thu, 8 Feb 2018 21:18:02 +0000 (22:18 +0100)]
session_driver: avoid division by zero, catch API violation

Avoid a division by zero, by not using a zero unitsize in a modulo
operation. As a byproduct, avoid processing and counting input that
neither has analog nor logic data. This should never have happened,
but the change now catches the error if invalid input is seen.

This was reported by clang's scan-build.

6 years agosession: fixup access to uninitialized memory
Gerhard Sittig [Thu, 8 Feb 2018 21:11:58 +0000 (22:11 +0100)]
session: fixup access to uninitialized memory

The sr_packet_copy() routine could have written to an arbitrary memory
location. Make sure to allocate the space before writing to it, and
check for successful allocation before accessing the memory.

It's assumed that this error never took effect, as the routine appears
to be unused.

This was reported by clang's scan-build.

6 years agoscpi: avoid uninitialized use of a variable
Gerhard Sittig [Thu, 8 Feb 2018 21:08:54 +0000 (22:08 +0100)]
scpi: avoid uninitialized use of a variable

The 'opc' variable was only conditionally assigned to (depends on
successful SCPI communication). Ensure there always is a known value.

This was reported by clang's scan-build.

6 years agooutput/srzip: silence "use after free" compiler warning
Gerhard Sittig [Thu, 8 Feb 2018 21:06:53 +0000 (22:06 +0100)]
output/srzip: silence "use after free" compiler warning

Defer memory g_free() until after the data gets accessed one last time.

This was reported by clang's scan-build.

6 years agooutput/csv: silence NULL dereference compiler warnings
Gerhard Sittig [Thu, 8 Feb 2018 21:04:49 +0000 (22:04 +0100)]
output/csv: silence NULL dereference compiler warnings

Check pointers' validity before dereferencing them.

This was reported by clang's scan-build.

6 years agoinput/raw_analog: silence "use after free" compiler warning
Gerhard Sittig [Thu, 8 Feb 2018 20:47:21 +0000 (21:47 +0100)]
input/raw_analog: silence "use after free" compiler warning

The cleanup() call will void the memory which 'inc' points to. Move the
dereference before the release.

This was reported by clang's scan-build.

6 years agolecroy-xstream: Wait for trigger before acquiring additional frames
Soeren Apel [Wed, 3 Jan 2018 23:23:12 +0000 (00:23 +0100)]
lecroy-xstream: Wait for trigger before acquiring additional frames

6 years agolecroy-xstream: Properly handle a stopping acquisition
Soeren Apel [Wed, 3 Jan 2018 22:44:27 +0000 (23:44 +0100)]
lecroy-xstream: Properly handle a stopping acquisition

6 years agolecroy-xstream: Keep acquiring infinitely if no frame limit is set
Soeren Apel [Sun, 3 Dec 2017 21:10:56 +0000 (22:10 +0100)]
lecroy-xstream: Keep acquiring infinitely if no frame limit is set

6 years agohantek-dso: Capture ratio is a uint64_t.
Uwe Hermann [Wed, 10 Jan 2018 21:20:45 +0000 (22:20 +0100)]
hantek-dso: Capture ratio is a uint64_t.

From src/hwdriver.c:

  {SR_CONF_CAPTURE_RATIO, SR_T_UINT64, "captureratio",
          "Pre-trigger capture ratio", NULL},

6 years agohantek-dso: config_set(): Shorten SR_CONF_CAPTURE_RATIO case.
Uwe Hermann [Wed, 10 Jan 2018 21:16:37 +0000 (22:16 +0100)]
hantek-dso: config_set(): Shorten SR_CONF_CAPTURE_RATIO case.

The sr_config_set() wrapper already checks for SR_CONF_CAPTURE_RATIO
being 0..100.

6 years agohantek-dso: Add missing SR_PRIV.
Uwe Hermann [Wed, 10 Jan 2018 19:05:20 +0000 (20:05 +0100)]
hantek-dso: Add missing SR_PRIV.

6 years agohantek-dso: Sample rate is a uint64_t.
Uwe Hermann [Wed, 10 Jan 2018 19:03:54 +0000 (20:03 +0100)]
hantek-dso: Sample rate is a uint64_t.

Also make 'base' uint64_t, otherwise there'll be compiler warnings.

6 years agohantek-dso: Random cosmetics, drop unneeded debug output.
Uwe Hermann [Wed, 10 Jan 2018 19:01:40 +0000 (20:01 +0100)]
hantek-dso: Random cosmetics, drop unneeded debug output.

6 years agohantek-dso: dso2250: Fix capture runaway, only do the requested number of frames.
Philipp Marek [Wed, 20 Dec 2017 15:10:59 +0000 (16:10 +0100)]
hantek-dso: dso2250: Fix capture runaway, only do the requested number of frames.

After the first capture ->num_frames never got to be _equal_
to ->limit_frames; fixed by resetting to zero in dev_acquisition_stop(),
and protected against similar problems in the future by switching to
greater-or-equal instead.

6 years agohantek-dso: dso2250: Allow setting TRIGGER_LEVEL as well.
Philipp Marek [Wed, 20 Dec 2017 14:32:42 +0000 (15:32 +0100)]
hantek-dso: dso2250: Allow setting TRIGGER_LEVEL as well.

6 years agohantek-dso: Fix a memory leak.
Philipp Marek [Tue, 21 Nov 2017 15:10:33 +0000 (16:10 +0100)]
hantek-dso: Fix a memory leak.

6 years agohantek-dso: Fix segfault when accessing already free()d memory.
Philipp Marek [Tue, 21 Nov 2017 13:50:18 +0000 (14:50 +0100)]
hantek-dso: Fix segfault when accessing already free()d memory.

This fix was guessed from other drivers' code.

This fixes bug #458.

6 years agohantek-dso: dso2250: It's not HORIZ_TRIGGERPOS but CAPTURE_RATIO.
Philipp Marek [Sun, 19 Nov 2017 18:44:29 +0000 (19:44 +0100)]
hantek-dso: dso2250: It's not HORIZ_TRIGGERPOS but CAPTURE_RATIO.

Seems a bit unfortunately named; if my current guess is right,
perhaps it should be
  :%s/SR_CONF_HORIZ_TRIGGERPOS/SR_CONF_HORIZ_DISPLAYOFFSET/g

6 years agohantek-dso: dso2250: Support sample rates correctly.
Philipp Marek [Sat, 18 Nov 2017 15:02:02 +0000 (16:02 +0100)]
hantek-dso: dso2250: Support sample rates correctly.

Fast mode not done yet, only 125MHz allowed right now.

6 years agohantek-dso: dso2250: Report the sample rate back.
Philipp Marek [Sat, 18 Nov 2017 14:04:03 +0000 (15:04 +0100)]
hantek-dso: dso2250: Report the sample rate back.

So that cursor (and other) measurements and the time axis are correct.

6 years agohantek-dso: dso2250: Initial support for the Hantek DSO 2250.
Philipp Marek [Fri, 17 Nov 2017 09:29:24 +0000 (10:29 +0100)]
hantek-dso: dso2250: Initial support for the Hantek DSO 2250.

Crashes after first acquiration, but at least it _does_ acquire data.

6 years agoudev rules: Add Hantek 4032L IDs.
Uwe Hermann [Fri, 5 Jan 2018 18:36:01 +0000 (19:36 +0100)]
udev rules: Add Hantek 4032L IDs.

6 years agohantek-4032l: Add initial driver implementation.
Andreas Zschunke [Sat, 5 Mar 2016 20:55:02 +0000 (21:55 +0100)]
hantek-4032l: Add initial driver implementation.

[Note: This patch is basically a squashed version of the initial driver
commits by Andreas Zschunke <redacted>, two fixes by
Andrej Valek <redacted>, and various coding style / cosmetic
fixes by Uwe Hermann <redacted> to make the driver a lot more
consistent with the rest of the libsigrok code-base.]

6 years agohantek-4032l: Initial driver skeleton.
Andreas Zschunke [Sat, 5 Mar 2016 06:56:33 +0000 (07:56 +0100)]
hantek-4032l: Initial driver skeleton.

6 years agozeroplus-logic-cube: Add LAP-16032U
Michał Janiszewski [Mon, 1 Jan 2018 13:37:39 +0000 (14:37 +0100)]
zeroplus-logic-cube: Add LAP-16032U

6 years agorigol-ds: Fix crash when fetching logic channels
Stefan Brüns [Mon, 11 Dec 2017 03:17:26 +0000 (04:17 +0100)]
rigol-ds: Fix crash when fetching logic channels

When refactoring the code, some places where sr_scpi_send was replaced
by rigol_ds_config_set the first argument was not changed from sdi->conn
to sdi. Fix the remaining ones.

Fix: https://sigrok.org/bug/1073

Signed-off-by: Stefan Brüns <redacted>
6 years agozeroplus-logic-cube: Fix Logian-16L metadata.
Uwe Hermann [Mon, 25 Dec 2017 14:42:06 +0000 (15:42 +0100)]
zeroplus-logic-cube: Fix Logian-16L metadata.

According to a vendor software screenshot of a user on IRC, this
device is detected as having 200MHz max. samplerate and 128kBit
memory per channel.

6 years agozeroplus: Add support for Meilhaus Logian-16L.
Uwe Hermann [Mon, 25 Dec 2017 13:30:00 +0000 (14:30 +0100)]
zeroplus: Add support for Meilhaus Logian-16L.

Untested yet, but pretty likely to work.

6 years agosysclk-lwla: Fix a regression with (at least) the LWLA1034.
Uwe Hermann [Sun, 24 Dec 2017 14:42:27 +0000 (15:42 +0100)]
sysclk-lwla: Fix a regression with (at least) the LWLA1034.

This regression was introduced in f1ba6b4b2c9a8ecf90bb31efb218752aa7e49d1a.

Due to how the sysclk-lwla driver does up to 3 open/close operations in
one dev_open() API callback we cannot rely on the sr_dev_open() and
sr_dev_close() wrappers setting the sdi->status variable in this case.

Tested on LWLA1034.

6 years agosysclk-lwla: Fix a segfault in dev_close().
Uwe Hermann [Sun, 24 Dec 2017 14:24:35 +0000 (15:24 +0100)]
sysclk-lwla: Fix a segfault in dev_close().

6 years agosr_dev_close(): Drop unneeded variable.
Uwe Hermann [Sun, 24 Dec 2017 14:23:40 +0000 (15:23 +0100)]
sr_dev_close(): Drop unneeded variable.

6 years agoinput/vcd: fixup VCD timestamp to sigrok samplenum mapping
Gerhard Sittig [Mon, 13 Mar 2017 12:17:05 +0000 (13:17 +0100)]
input/vcd: fixup VCD timestamp to sigrok samplenum mapping

When processing of large VCD input files was spread across multiple
parse_contents() invocations, the resulting sigrok stream of sample data
had gaps in them and total timing was off. For instance 74ms of input
data were interpreted as spanning some 600ms or 300ms, depending on the
number of channels in the input stream.

Move the "previous timestamp" variable to the input module context. This
eliminates the inappropriate gaps and fixes the translation of VCD file
timestamps to sigrok sample numbers.

This fixes bug #1075.

6 years agooutput/csv: Fix a typo.
Uwe Hermann [Thu, 21 Dec 2017 15:06:48 +0000 (16:06 +0100)]
output/csv: Fix a typo.

6 years ago60-libsigrok.rules: Add note about sigrok-androidutils.
Uwe Hermann [Sun, 17 Dec 2017 19:38:27 +0000 (20:38 +0100)]
60-libsigrok.rules: Add note about sigrok-androidutils.

6 years agofx2lafw: Update comments listing supported devices.
Uwe Hermann [Sun, 17 Dec 2017 19:19:13 +0000 (20:19 +0100)]
fx2lafw: Update comments listing supported devices.

6 years ago60-libsigrok.rules: Add missing entries and comments.
Uwe Hermann [Sun, 17 Dec 2017 19:17:22 +0000 (20:17 +0100)]
60-libsigrok.rules: Add missing entries and comments.

6 years agozeroplus-logic-cube: Add LAP-C(16128+) USB VID/PID.
Uwe Hermann [Sun, 17 Dec 2017 18:46:23 +0000 (19:46 +0100)]
zeroplus-logic-cube: Add LAP-C(16128+) USB VID/PID.

Untested, so we don't know for sure it'll work.

This fixes bug #1045.

6 years agohameg-hmo: Forward internal channel state to sigrok channel state
Stefan Brüns [Sat, 9 Dec 2017 21:19:30 +0000 (22:19 +0100)]
hameg-hmo: Forward internal channel state to sigrok channel state

This fixes bug #883.

6 years agokorad-kaxxxxp: Add support for Korad KD3005P
Holger Müller [Thu, 30 Nov 2017 20:53:40 +0000 (21:53 +0100)]
korad-kaxxxxp: Add support for Korad KD3005P

7 years agoMakefile.am: Add/update udev rules files.
Uwe Hermann [Wed, 22 Nov 2017 07:45:52 +0000 (08:45 +0100)]
Makefile.am: Add/update udev rules files.

7 years agocleanup udev part of README.devices, reflect split rules
Stefan Brüns [Sun, 29 Oct 2017 19:57:11 +0000 (20:57 +0100)]
cleanup udev part of README.devices, reflect split rules

Remove vague statements from the README. On all current distributions,
the udev paths are identical, anyone deliberately deviating from the
defaults should be able to handle it by themselves.

Rules in /etc/udev/rules.d/ should only be used for customization, or
for locally built packages.

7 years agocontrib: Split device access policy from the device database
Stefan Brüns [Sun, 29 Oct 2017 19:03:53 +0000 (20:03 +0100)]
contrib: Split device access policy from the device database

Split the distribution independent database from the access policy rules.
This avoids warnings due to granting permissions to the commonly unknown
plugdev group, and allows simple overrides of the used access policy.

7 years agocontrib: remove duplicate rules for fx2lafw DSOs
Stefan Brüns [Sun, 29 Oct 2017 18:21:38 +0000 (19:21 +0100)]
contrib: remove duplicate rules for fx2lafw DSOs

7 years agocontrib: rename udev rules for correct rule ordering on systemd systems
Stefan Brüns [Sun, 29 Oct 2017 17:35:06 +0000 (18:35 +0100)]
contrib: rename udev rules for correct rule ordering on systemd systems

The "uaccess" tag has to be added before the "seat" rule is evaluated.
The upstream default for the seat rule is "71-seat.rules", so use
60-libsigrok.rules for appropriate lexicographical sorting.

Also use a dash instead of underscore, the latter is commonly used as a
replacement character of unsafe characters in autogenerated identifiers.

This fixes bug #1059.

7 years agoscpi-pps: Channel group device options for HP 663xx
Frank Stettner [Sat, 11 Nov 2017 13:30:36 +0000 (14:30 +0100)]
scpi-pps: Channel group device options for HP 663xx

7 years agodrivers: Fix locale dependent string to float conversion
Frank Stettner [Thu, 2 Nov 2017 17:04:59 +0000 (18:04 +0100)]
drivers: Fix locale dependent string to float conversion

Some drivers used locale dependent functions for converting strings
to float/double values. These functions fail when the decimal mark
is a "," in the locale settings but the string contains a ".".

This fixes bug #1064.

7 years agooutput/analog: Display META packets
Frank Stettner [Thu, 26 Oct 2017 10:56:02 +0000 (12:56 +0200)]
output/analog: Display META packets

7 years agoarachnid-labs-re-load-pro: Add SR_DF_META packets for changed values/states
Frank Stettner [Thu, 26 Oct 2017 10:44:33 +0000 (12:44 +0200)]
arachnid-labs-re-load-pro: Add SR_DF_META packets for changed values/states

7 years agoarachnid-labs-re-load-pro: Stop monitoring when open/close device
Frank Stettner [Thu, 26 Oct 2017 10:32:21 +0000 (12:32 +0200)]
arachnid-labs-re-load-pro: Stop monitoring when open/close device

7 years agoconrad-digi-35-cpu: Add SR_CONF_LIST for voltage_target and current_limit. Change...
Frank Stettner [Thu, 26 Oct 2017 10:24:57 +0000 (12:24 +0200)]
conrad-digi-35-cpu: Add SR_CONF_LIST for voltage_target and current_limit. Change current_limit lower limit.

7 years agolipgpib: Enhanced error message
Frank Stettner [Thu, 26 Oct 2017 10:21:00 +0000 (12:21 +0200)]
lipgpib: Enhanced error message

7 years agodemo: Properly handle low samplerates
Soeren Apel [Wed, 11 Oct 2017 16:14:56 +0000 (18:14 +0200)]
demo: Properly handle low samplerates

A "low samplerate" in this case means anything where
samples_todo is less than SAMPLES_PER_FRAME. This case
wasn't handled properly before, resulting in wrong
amounts of data being sent out.

7 years agolecroy-xstream: Fix sample rate
Soeren Apel [Mon, 9 Oct 2017 05:32:31 +0000 (07:32 +0200)]
lecroy-xstream: Fix sample rate

We can't use the memory size command because it returns
the *maximum* memory used, not the *actual* memory used.
Hence, we only know the number of samples per div once
sample data actually comes in.

7 years agolecroy-xstream: Perform acquisition if no data is available
Soeren Apel [Sat, 7 Oct 2017 20:36:06 +0000 (22:36 +0200)]
lecroy-xstream: Perform acquisition if no data is available

7 years agolecroy-xstream: Comment/style fixes
Soeren Apel [Wed, 4 Oct 2017 17:28:14 +0000 (19:28 +0200)]
lecroy-xstream: Comment/style fixes

7 years agohantek-6xxx: use lower MAX_PACKET_SIZE on Windows
Timo Rothenpieler [Wed, 11 Oct 2017 13:08:50 +0000 (15:08 +0200)]
hantek-6xxx: use lower MAX_PACKET_SIZE on Windows

WinUSB seems to have a maximum size of 2M, reads of a larger size fail.

This fixes bug #1048.

7 years agolecroy-xstream: Implement config_channel_set API callback
Soeren Apel [Tue, 3 Oct 2017 15:07:27 +0000 (17:07 +0200)]
lecroy-xstream: Implement config_channel_set API callback

7 years agolecroy-xstream: Fix trigger source/slope
Soeren Apel [Tue, 3 Oct 2017 14:48:57 +0000 (16:48 +0200)]
lecroy-xstream: Fix trigger source/slope

7 years agolecroy-xstream: Random whitespace/style fixes
Soeren Apel [Tue, 3 Oct 2017 15:29:53 +0000 (17:29 +0200)]
lecroy-xstream: Random whitespace/style fixes

7 years agolecroy-xstream: Use best-effort strategy for unknown models
Soeren Apel [Tue, 3 Oct 2017 11:29:46 +0000 (13:29 +0200)]
lecroy-xstream: Use best-effort strategy for unknown models

As there is a huge range of supported LeCroy scopes, naming
the IDN response for every single one of them is going to be
impossible. Hence, it makes more sense to treat all LeCroy
devices as if they were scopes and supported. This approach
lets users try to see how far they get and if they run into
issues, they can then be treated separately - e.g. by creating
a custom device profile.
Unless we do this, the vast majority of LeCroy scopes will
not be recognized by the driver.

7 years agolecroy-xstream: Fix COMM_HEADER and COMM_FORMAT
Sylvain Pelissier [Mon, 2 Oct 2017 07:01:31 +0000 (09:01 +0200)]
lecroy-xstream: Fix COMM_HEADER and COMM_FORMAT

7 years agoSCPI: Ignore IDN header in *IDN? response
Sylvain Pelissier [Mon, 2 Oct 2017 07:01:31 +0000 (09:01 +0200)]
SCPI: Ignore IDN header in *IDN? response

7 years agoDemo: Implement multi-frame development feature
Soeren Apel [Sun, 1 Oct 2017 22:25:57 +0000 (00:25 +0200)]
Demo: Implement multi-frame development feature

7 years agoAdd std_session_send_frame_begin/end helpers
Soeren Apel [Sat, 12 Aug 2017 13:50:13 +0000 (15:50 +0200)]
Add std_session_send_frame_begin/end helpers

7 years agodreamsourcelab-dslogic: Fixed deinterleaving when non-contiguous set of channels...
Joel Holdsworth [Mon, 25 Sep 2017 04:07:30 +0000 (22:07 -0600)]
dreamsourcelab-dslogic: Fixed deinterleaving when non-contiguous set of channels are enabled

7 years agobeaglelogic: Inline beaglelogic_devc_alloc().
Uwe Hermann [Tue, 26 Sep 2017 17:50:12 +0000 (19:50 +0200)]
beaglelogic: Inline beaglelogic_devc_alloc().

7 years agobeaglelogic: Minor whitespace and consistency fixes.
Uwe Hermann [Tue, 26 Sep 2017 17:47:55 +0000 (19:47 +0200)]
beaglelogic: Minor whitespace and consistency fixes.

7 years agobeaglelogic: No need to check g_free() argument.
Uwe Hermann [Tue, 26 Sep 2017 17:44:01 +0000 (19:44 +0200)]
beaglelogic: No need to check g_free() argument.

glib's g_free() function will gracefully handle NULL as input.

7 years agobeaglelogic: Coding style fixes
Kumar Abhishek [Sat, 23 Sep 2017 13:29:39 +0000 (18:59 +0530)]
beaglelogic: Coding style fixes

In beaglelogic_native.c and beaglelogic_tcp.c

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Fix regression in continuous sampling
Kumar Abhishek [Sat, 23 Sep 2017 12:49:13 +0000 (18:19 +0530)]
beaglelogic: Fix regression in continuous sampling

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Update copyright notices in all files
Kumar Abhishek [Sat, 23 Sep 2017 11:45:51 +0000 (17:15 +0530)]
beaglelogic: Update copyright notices in all files

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Fix compiler warnings in beaglelogic_tcp.c
Kumar Abhishek [Sat, 23 Sep 2017 07:00:33 +0000 (12:30 +0530)]
beaglelogic: Fix compiler warnings in beaglelogic_tcp.c

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Close device after detection, and reopen upon open
Kumar Abhishek [Sat, 23 Sep 2017 06:57:52 +0000 (12:27 +0530)]
beaglelogic: Close device after detection, and reopen upon open

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Changes for proper operation in PulseView
Kumar Abhishek [Sat, 23 Sep 2017 06:38:21 +0000 (12:08 +0530)]
beaglelogic: Changes for proper operation in PulseView

Set samplelimit to a sane value (was causing PulseView to
crash earlier), as well as advertise samplerate using SR_CONF_LIST
so that PulseView can show the sample rates.

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Fix PulseView crash on close
Kumar Abhishek [Sat, 23 Sep 2017 05:51:15 +0000 (11:21 +0530)]
beaglelogic: Fix PulseView crash on close

Use dev_clear instead of std_dev_clear to clean up our private
data structure.

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Add beaglelogic_tcp_drain function
Kumar Abhishek [Sat, 23 Sep 2017 05:39:14 +0000 (11:09 +0530)]
beaglelogic: Add beaglelogic_tcp_drain function

The function drains off all the remaining data in the receive socket
and is triggered before starting a capture and after a capture is
completed. In the absence of this function, there is a possibility of
data corruption and also the NodeJS TCP server throws an error if the
buffer is not completely read out before the socket is closed.

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Implement TCP protocol
Kumar Abhishek [Thu, 21 Sep 2017 16:24:17 +0000 (21:54 +0530)]
beaglelogic: Implement TCP protocol

BeagleLogic now supports two modes of interface - one being the
native mode running on an ARM system like the BeagleBone Black
and the other mode acting like a TCP client for the BeagleLogic
server running off a BeagleBone compatible system. This makes it
convenient for desktop users to retrieve samples from BeagleLogic,
no more copying files and SSHing into the BeagleBone hardware in
order to use BeagleLogic.

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Re-organize to prepare for TCP support
Kumar Abhishek [Fri, 15 Sep 2017 18:31:53 +0000 (00:01 +0530)]
beaglelogic: Re-organize to prepare for TCP support

Organize driver functions into an ops structure (there will be
separate structures for both native and TCP mode of operation).

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Split beaglelogic code into .h and .c file
Kumar Abhishek [Mon, 24 Jul 2017 14:46:05 +0000 (14:46 +0000)]
beaglelogic: Split beaglelogic code into .h and .c file

The code earlier was in a single .h file, so it's now separated into a C file
and H file

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Flexible sampleunit depending on enabled channels
Kumar Abhishek [Thu, 20 Jul 2017 14:43:10 +0000 (14:43 +0000)]
beaglelogic: Flexible sampleunit depending on enabled channels

If a channel in the higher-than-8-bit group is enabled then use
16-bit captures. Otherwise just do 8-bit captures.

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Remove 'as root' from warning message
Kumar Abhishek [Thu, 20 Jul 2017 14:39:00 +0000 (14:39 +0000)]
beaglelogic: Remove 'as root' from warning message

Starting with Linux kernel version 4.9, BeagleLogic attributes
setting does not require root permissions.

Signed-off-by: Kumar Abhishek <redacted>
7 years agobeaglelogic: Enable seamless continuous capturing
Kumar Abhishek [Thu, 20 Jul 2017 14:37:02 +0000 (14:37 +0000)]
beaglelogic: Enable seamless continuous capturing

This is done by setting triggerflags to 1 unless SR_CONF_LIMIT_SAMPLES is set

Signed-off-by: Kumar Abhishek <redacted>