]> sigrok.org Git - libsigrok.git/log
libsigrok.git
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>
7 years agobeaglelogic: Update scan() to return all 14 channels by default
Kumar Abhishek [Thu, 20 Jul 2017 14:29:48 +0000 (14:29 +0000)]
beaglelogic: Update scan() to return all 14 channels by default

This is unlike the previous behavior to return 8 channels and then
use logic_channels to get all the 14 channels

Signed-off-by: Kumar Abhishek <redacted>
7 years agosr_parse_rational(): Make is_negative a bool.
Uwe Hermann [Sun, 24 Sep 2017 19:05:10 +0000 (21:05 +0200)]
sr_parse_rational(): Make is_negative a bool.

7 years agostrutil: Fix sr_parse_rational for integral parts between -0 and -1
Stefan Brüns [Sat, 23 Sep 2017 20:16:24 +0000 (22:16 +0200)]
strutil: Fix sr_parse_rational for integral parts between -0 and -1

Values like '-0.1' would be parsed as being positive, as the integral
type does not discern +0 and -0. Also allow values without leading
integral value, to match behaviour of strtod/sr_atof.

7 years agodreamsourcelab-dslogic: Fixed enabling of triggers
Joel Holdsworth [Mon, 18 Sep 2017 02:11:47 +0000 (20:11 -0600)]
dreamsourcelab-dslogic: Fixed enabling of triggers

7 years agodreamsourcelab-dslogic: Moved devc and usb assignment into initializers
Joel Holdsworth [Mon, 18 Sep 2017 01:51:15 +0000 (19:51 -0600)]
dreamsourcelab-dslogic: Moved devc and usb assignment into initializers

7 years agodreamsourcelab-dslogic: Improved naming of variables in fpga_configure
Joel Holdsworth [Mon, 18 Sep 2017 01:45:29 +0000 (19:45 -0600)]
dreamsourcelab-dslogic: Improved naming of variables in fpga_configure

7 years agodreamsourcelab-dslogic: Fixed trigger-stages field in trig_glb
Joel Holdsworth [Sun, 17 Sep 2017 23:59:44 +0000 (17:59 -0600)]
dreamsourcelab-dslogic: Fixed trigger-stages field in trig_glb

7 years agodreamsourcelab-dslogic: Simplified trigger population
Joel Holdsworth [Sun, 17 Sep 2017 21:52:11 +0000 (15:52 -0600)]
dreamsourcelab-dslogic: Simplified trigger population

7 years agoDrop libftdi 0.x support, require libftdi 1.x.
Uwe Hermann [Sun, 17 Sep 2017 14:55:50 +0000 (16:55 +0200)]
Drop libftdi 0.x support, require libftdi 1.x.

There were some issues when using libftdi 0.x recently that are fixed
when switching to libftdi 1.x (not really worth the effort to investigate).

libftdi 1.x has been around several years now and should be available
in most recent distros and OSes. For the rare cases where it is not,
it's easy enough to get it via backport packages, or build from source,
or sigrok users can just use our binary installers for most OSes.

This also "fixes"/obsoletes bug #959.

7 years agoserial-dmm: Add PeakTech 4390A alias.
Uwe Hermann [Fri, 15 Sep 2017 20:03:32 +0000 (22:03 +0200)]
serial-dmm: Add PeakTech 4390A alias.

This is a rebadged Metex M-3860M.

7 years agodreamsourcelab-dslogic: Fix incorrect default threshold setting.
Uwe Hermann [Thu, 14 Sep 2017 09:15:06 +0000 (11:15 +0200)]
dreamsourcelab-dslogic: Fix incorrect default threshold setting.

This was leading to an invalid threshold config value and indirectly
to frontend issues.

Slightly modified patch from James Churchill <redacted>, thanks!

7 years agoconrad-digi-35-cpu: Fix key names for setting voltage and current
Frank Stettner [Wed, 13 Sep 2017 11:30:24 +0000 (13:30 +0200)]
conrad-digi-35-cpu: Fix key names for setting voltage and current

7 years agoserial-dmm: Add Metex M-3860M
Frank Stettner [Thu, 7 Sep 2017 14:12:17 +0000 (16:12 +0200)]
serial-dmm: Add Metex M-3860M

7 years agoconrad-digi-35-cpu: Add and use missing dev_context structure
Frank Stettner [Thu, 7 Sep 2017 14:09:10 +0000 (16:09 +0200)]
conrad-digi-35-cpu: Add and use missing dev_context structure

7 years agodreamsourcelab-dslogic: config_list: Handle SR_CONF_TRIGGER_MATCH.
Uwe Hermann [Wed, 13 Sep 2017 11:05:42 +0000 (13:05 +0200)]
dreamsourcelab-dslogic: config_list: Handle SR_CONF_TRIGGER_MATCH.

This fixes bug #1032.

7 years agochronovu-la: Silence overly verbose log message.
Uwe Hermann [Tue, 12 Sep 2017 20:15:32 +0000 (22:15 +0200)]
chronovu-la: Silence overly verbose log message.

This triggered all kinds of unrelated / confusing log messages
for unrelated hardware devices, e.g.:

  sr: [00:00.613080] chronovu-la: Unknown iProduct string 'USB-based Instrument'.
  sr: [00:00.614374] chronovu-la: Unknown iProduct string 'GL3220      '.
  sr: [00:00.614907] chronovu-la: Unknown iProduct string 'USB 3.0 HUB      '.
  sr: [00:00.615558] chronovu-la: Unknown iProduct string 'USB 2.0 HUB      '.
  sr: [00:00.619846] chronovu-la: Unknown iProduct string 'Bluetooth USB Host Controller'.
  sr: [00:00.620411] chronovu-la: Unknown iProduct string 'USB 3.0 HUB      '.
  sr: [00:00.624293] chronovu-la: Unknown iProduct string 'UAC1 DAC'.
  sr: [00:00.627849] chronovu-la: Unknown iProduct string 'BRCM20702 Hub'.
  sr: [00:00.628640] chronovu-la: Unknown iProduct string 'USB 2.0 HUB      '.
  sr: [00:00.674777] chronovu-la: Unknown iProduct string 'USB2223'.
  sr: [00:00.675034] chronovu-la: Unknown iProduct string ''.
  sr: [00:00.675180] chronovu-la: Unknown iProduct string ''.
  sr: [00:00.675205] hwdriver: Scan found 0 devices (chronovu-la).

7 years agodrivers: Remove dependency on linker implementation specific behaviour
Marcus Comstedt [Sun, 20 Aug 2017 07:53:06 +0000 (09:53 +0200)]
drivers: Remove dependency on linker implementation specific behaviour

7 years agoz60_libsigrok.rules: Add Brymen BU-86X adapter IDs.
Uwe Hermann [Mon, 21 Aug 2017 16:23:45 +0000 (18:23 +0200)]
z60_libsigrok.rules: Add Brymen BU-86X adapter IDs.

7 years agomanson-hcs-3xxx: enabled output guaranteed write
turboaffe [Tue, 3 Jan 2017 11:06:32 +0000 (12:06 +0100)]
manson-hcs-3xxx: enabled output guaranteed write

7 years agomanson-hcs-3xxx: added new name for 3304, adjustment to new manson fw
turboaffe [Tue, 3 Jan 2017 10:32:11 +0000 (11:32 +0100)]
manson-hcs-3xxx: added new name for 3304, adjustment to new manson fw

7 years agobrymen-bm86x: support channel selection (enable/disable channels)
Gerhard Sittig [Fri, 18 Aug 2017 19:43:42 +0000 (21:43 +0200)]
brymen-bm86x: support channel selection (enable/disable channels)

The previous implementation unconditionally submitted analog data
whenever values could get extracted out of received serial packets.
This commit checks the channels' enabled state before submission. Care
is taken to obey the user's acquisition limits, exclusively counting
submitted not received values.

7 years agolsr/es51919: support channel selection (enable/disable P1/P2)
Gerhard Sittig [Fri, 18 Aug 2017 19:11:05 +0000 (21:11 +0200)]
lsr/es51919: support channel selection (enable/disable P1/P2)

Upon reception of serial data from the ES51919 LCR chipset, the data for
channels P1 and P2 was extracted from the packet, and unconditionally got
sent to the sigrok session.

Do check the channels' enabled state before submission. This fixes for
serial-lcr what recently got reported for a Brymen DMM. Tested with

  $ sigrok-cli -d peaktech-2170:conn=/dev/ttyUSB0 --channels P2

and other --channels specifications.

7 years agolcr/es51919: clean but don't free dev context in cleanup callback
Gerhard Sittig [Fri, 18 Aug 2017 18:07:23 +0000 (20:07 +0200)]
lcr/es51919: clean but don't free dev context in cleanup callback

The es51919_serial_clean() routine is called by std_dev_clear_with_callback().
Common code unconditionally frees the 'priv' part. The cleanup callback only
shall release descending resources which are local to the callee and opaque
to the caller.

This fixes a double free error. Tested with PeakTech 2170.

  $ sigrok-cli -d peaktech-2170:conn=/dev/ttyUSB0 --show

7 years agoresource: Also check $SIGROK_FIRMWARE_DIR for firmware files.
Uwe Hermann [Tue, 15 Aug 2017 20:15:47 +0000 (22:15 +0200)]
resource: Also check $SIGROK_FIRMWARE_DIR for firmware files.

If the SIGROK_FIRMWARE_DIR environment variable is specified, look there
first for firmware files.

7 years agoasix-sigma: download sample data upon user initiated stop, too
Gerhard Sittig [Sat, 29 Jul 2017 14:09:36 +0000 (16:09 +0200)]
asix-sigma: download sample data upon user initiated stop, too

When the acquisition was stopped before a configured limit was reached,
no sample data was retrieved. This is because the api.c stop routine did
unregister the receive callback.

Pass the stop request to the receive routine instead when stop is called
while the acquisition is still running. Have sample data downloaded very
much like it's done for reached limits, and existing logic will run the
stop routine again after state was advanced to "idle".

Extend the 'state' tracking while we are here, mark sample download as
well (that was omitted in the previous implementation). Though the
omission was non-fatal. Move the release of 'dram_line' to some earlier
location (as soon as the resource is not needed any longer), before some
rather complex calls to other routines will execute.

Reported-By: Michael Kaplan <redacted>
7 years agodrivers: Use serial_write_blocking() everywhere.
Uwe Hermann [Thu, 15 Jun 2017 17:55:15 +0000 (19:55 +0200)]
drivers: Use serial_write_blocking() everywhere.

This fixes bug #962.

7 years agosr_voltage_string(): Add a space before the unit.
Uwe Hermann [Sun, 6 Aug 2017 17:45:45 +0000 (19:45 +0200)]
sr_voltage_string(): Add a space before the unit.

This makes the output consistent with most of the other functions
in libsigrok.

7 years agoAdd sr_voltage_string() unit tests.
Uwe Hermann [Sun, 6 Aug 2017 17:38:00 +0000 (19:38 +0200)]
Add sr_voltage_string() unit tests.

7 years agodrivers: Use g_strdup_printf() where possible.
Uwe Hermann [Sun, 6 Aug 2017 16:22:26 +0000 (18:22 +0200)]
drivers: Use g_strdup_printf() where possible.

7 years agodrivers: Random whitespace fixes.
Uwe Hermann [Sun, 6 Aug 2017 14:42:35 +0000 (16:42 +0200)]
drivers: Random whitespace fixes.

7 years agodrivers: Simplify some more trigger slope settings.
Uwe Hermann [Sun, 6 Aug 2017 13:58:52 +0000 (15:58 +0200)]
drivers: Simplify some more trigger slope settings.

7 years agodrivers: Reduce unnecessarily high indentation in some places.
Uwe Hermann [Fri, 4 Aug 2017 21:24:15 +0000 (23:24 +0200)]
drivers: Reduce unnecessarily high indentation in some places.

7 years agodrivers: Consistently use the same method to check for !cg.
Uwe Hermann [Fri, 4 Aug 2017 21:09:04 +0000 (23:09 +0200)]
drivers: Consistently use the same method to check for !cg.

7 years agodrivers: Factor out std_cg_idx().
Uwe Hermann [Thu, 3 Aug 2017 21:18:01 +0000 (23:18 +0200)]
drivers: Factor out std_cg_idx().

7 years agodrivers: Start counting at 0 for some loops.
Uwe Hermann [Thu, 3 Aug 2017 20:22:40 +0000 (22:22 +0200)]
drivers: Start counting at 0 for some loops.

7 years agodrivers: Use NUM_CHANNELS in favor of hardcoded values.
Uwe Hermann [Thu, 3 Aug 2017 19:08:44 +0000 (21:08 +0200)]
drivers: Use NUM_CHANNELS in favor of hardcoded values.

7 years agodrivers: Use std_*idx*() helpers in some more places.
Uwe Hermann [Wed, 2 Aug 2017 21:40:18 +0000 (23:40 +0200)]
drivers: Use std_*idx*() helpers in some more places.

7 years agolecroy-xstream: Use array-based approach for timebases/vdivs.
Uwe Hermann [Wed, 2 Aug 2017 18:40:18 +0000 (20:40 +0200)]
lecroy-xstream: Use array-based approach for timebases/vdivs.

This makes the driver more consistent with the rest of the code-base
and allows us to use the new array helpers in a few more places.

7 years agodrivers: Use array-based approach in some places.
Uwe Hermann [Tue, 1 Aug 2017 19:12:04 +0000 (21:12 +0200)]
drivers: Use array-based approach in some places.

This allows us to use the new array helpers in a few more places.

7 years agodrivers: Consistently name SCPI helper functions 'probe_device'.
Uwe Hermann [Mon, 31 Jul 2017 06:43:57 +0000 (08:43 +0200)]
drivers: Consistently name SCPI helper functions 'probe_device'.

7 years agodrivers: Drop some unneeded voltage_/volt_ prefixes.
Uwe Hermann [Mon, 31 Jul 2017 06:30:19 +0000 (08:30 +0200)]
drivers: Drop some unneeded voltage_/volt_ prefixes.