]>
sigrok.org Git - libsigrok.git/log
Bert Vermeulen [Fri, 22 Jun 2012 23:17:36 +0000 (01:17 +0200)]
sr/srd/cli: require glib version >= 2.28
Needed for g_get_monotonic_time(). Thanks to Tomaž Šolc.
Lars-Peter Clausen [Thu, 21 Jun 2012 08:30:39 +0000 (10:30 +0200)]
sr: fx2lafw: Fix memory leaks in receive_transfer
There are a few memory leaks in the receive_transfer transfer function. The most
serve of them is that a sample buffer is not freed if the triggered has not
matched yet, which causes a sigrok process which is waiting for a trigger to
consume several megabytes of memory within seconds. The other leaks are on the
error paths in that function.
Signed-off-by: Lars-Peter Clausen <redacted>
Uwe Hermann [Thu, 21 Jun 2012 21:59:27 +0000 (23:59 +0200)]
sr: ols: Fix incorrect comment.
Uwe Hermann [Wed, 20 Jun 2012 17:56:54 +0000 (19:56 +0200)]
sr: Unfinished Mastech VA18B (DMM) support.
Uwe Hermann [Thu, 21 Jun 2012 20:36:13 +0000 (22:36 +0200)]
sr: chronovu-la8: Split code into api.c and driver.c.
We should generally use api.c for API related functions and put the other
functions (mostly hardware-specific low-level code) into other C file(s)
for better readability.
Uwe Hermann [Wed, 20 Jun 2012 21:55:23 +0000 (23:55 +0200)]
sr: analog: Add MQ and UNIT enums.
MQ is the measured quantity, e.g. voltage, current, temperature.
UNIT is the unit in which these quantities are measured, e.g. volt,
ampere, celsius, kelvin, etc. etc.
The same MQ can be specified in different UNITs by the driver, depending
on what the hardware reports. Conversion is left to the frontends.
Uwe Hermann [Tue, 19 Jun 2012 21:33:50 +0000 (23:33 +0200)]
sr: backend/zeroplus: Improve debug output.
Bert Vermeulen [Tue, 19 Jun 2012 00:05:28 +0000 (02:05 +0200)]
sr: new output format 'float', just floating point values
Also outputs FRAME-BEGIN and FRAME-END, if present in the stream.
Bert Vermeulen [Tue, 19 Jun 2012 00:04:18 +0000 (02:04 +0200)]
sr: remove unused code
Bert Vermeulen [Mon, 18 Jun 2012 23:06:02 +0000 (01:06 +0200)]
sr: only handling analog voltage units for now
Bert Vermeulen [Mon, 18 Jun 2012 21:09:37 +0000 (23:09 +0200)]
hantek-dso: capturestate packet also contains the trigger point
Not yet used, but it's the key to knowing where in the frame to
start displaying; the frame is used as a circular buffer, and what
is sent is effectively a snapshot.
Bert Vermeulen [Mon, 18 Jun 2012 21:05:02 +0000 (23:05 +0200)]
hantek-dso: relays now set properly
They appear to be arranged to switch on/off a hierarchical series of
devices that attenuate the channel by an order of magnitude.
Uwe Hermann [Wed, 13 Jun 2012 16:58:24 +0000 (18:58 +0200)]
sr: hantek-dso: Use portable g_ntohs() function.
The ntohs() from <arpa/inet.h> is not available on MinGW/Windows. There
are ways to work around this, but as we use glib already, using g_ntohs()
is the best option anyway.
Bert Vermeulen [Tue, 5 Jun 2012 16:17:01 +0000 (18:17 +0200)]
hantek-dso: calculate voltage based on vdiv setting
Bert Vermeulen [Tue, 5 Jun 2012 16:16:23 +0000 (18:16 +0200)]
hantek-dso: default to DC coupling
Bert Vermeulen [Tue, 5 Jun 2012 16:15:58 +0000 (18:15 +0200)]
hantek-dso: fix CH2 vdiv setting
Bert Vermeulen [Tue, 5 Jun 2012 16:15:04 +0000 (18:15 +0200)]
sr: add udev entry for Victor 70C multimeter
Bert Vermeulen [Tue, 5 Jun 2012 16:14:23 +0000 (18:14 +0200)]
sr: fix udev rules for Hantek DSO-2090
Bert Vermeulen [Tue, 5 Jun 2012 15:37:28 +0000 (17:37 +0200)]
sr: add unit field to sr_df_analog packet
Uwe Hermann [Thu, 31 May 2012 23:12:09 +0000 (01:12 +0200)]
sr: hantek-dso: Consistency renames, constification.
Uwe Hermann [Thu, 31 May 2012 22:23:47 +0000 (00:23 +0200)]
cli/gtk/qt: Now all require libsigrok >= 0.2.0 (API changes).
Uwe Hermann [Thu, 31 May 2012 22:16:42 +0000 (00:16 +0200)]
sr: Increase pkg version to 0.2.0, increase lib version.
Uwe Hermann [Thu, 31 May 2012 20:46:28 +0000 (22:46 +0200)]
sr: fx2lafw: Use gboolean, cosmetics, fix gcc warning.
Uwe Hermann [Thu, 31 May 2012 20:43:12 +0000 (22:43 +0200)]
hantek-dso: Update to constified libsigrok API.
Uwe Hermann [Thu, 31 May 2012 20:40:41 +0000 (22:40 +0200)]
hantek-dso: Quickfix for build issue (will be removed later).
Joel Holdsworth [Thu, 10 May 2012 15:34:24 +0000 (16:34 +0100)]
fx2lafw: Added a check to limit the sample rate during 16-bit sampling
Joel Holdsworth [Mon, 7 May 2012 15:01:10 +0000 (16:01 +0100)]
fx2lafw: Added device caps and added support for wide sampling
Joel Holdsworth [Mon, 7 May 2012 14:07:06 +0000 (15:07 +0100)]
sr: Made sample rate lists const
Joel Holdsworth [Mon, 7 May 2012 14:02:02 +0000 (15:02 +0100)]
sr: Made the dev_config_set parameter a const pointer
Joel Holdsworth [Mon, 7 May 2012 12:35:56 +0000 (13:35 +0100)]
sr: Made the dev_info_get return value const
Joel Holdsworth [Mon, 7 May 2012 12:57:43 +0000 (13:57 +0100)]
sr: Made hwcap const
Bert Vermeulen [Sat, 19 May 2012 23:14:37 +0000 (01:14 +0200)]
hantek-dso: hopefully handle endianness in voltage setting
Bert Vermeulen [Sat, 19 May 2012 23:11:09 +0000 (01:11 +0200)]
hantek-dso: enable SR_HWCAP_COUPLING
Bert Vermeulen [Thu, 17 May 2012 01:17:09 +0000 (03:17 +0200)]
hantek-dso: support for SR_HWCAP_COUPLING
Bert Vermeulen [Thu, 17 May 2012 01:16:01 +0000 (03:16 +0200)]
sr: support for SR_HWCAP_COUPLING and SR_DI_COUPLING
Bert Vermeulen [Thu, 17 May 2012 00:03:12 +0000 (02:03 +0200)]
hantek-dso: support SR_HWCAP_VDIV
Bert Vermeulen [Wed, 16 May 2012 23:55:59 +0000 (01:55 +0200)]
sr: support for SR_HWCAP_VDIV and SR_DI_VDIVS
Bert Vermeulen [Wed, 16 May 2012 23:54:57 +0000 (01:54 +0200)]
sr: add voltage parser and prettyprinter
Bert Vermeulen [Wed, 16 May 2012 00:07:51 +0000 (02:07 +0200)]
sr: use SR_T_RATIONAL_PERIOD (new-style types)
SR_T_<type>_<parsehint>
Bert Vermeulen [Tue, 15 May 2012 20:41:00 +0000 (22:41 +0200)]
hantek-dso: support for SR_HWCAP_FILTER
Bert Vermeulen [Tue, 15 May 2012 20:39:32 +0000 (22:39 +0200)]
sr: support for SR_HWCAP_FILTER and SR_DI_FILTERS
Bert Vermeulen [Tue, 15 May 2012 18:56:29 +0000 (20:56 +0200)]
hantek-dso: support for setting all CMD_SET_TRIGGER_SAMPLERATE params
Bert Vermeulen [Tue, 15 May 2012 18:46:14 +0000 (20:46 +0200)]
sr: add period parser
Bert Vermeulen [Tue, 15 May 2012 18:45:46 +0000 (20:45 +0200)]
sr: add support for sr_rational and various HWCAPs and DIs
Bert Vermeulen [Mon, 14 May 2012 00:33:37 +0000 (02:33 +0200)]
hantek-dso: proper protocol implementation of trigger/samplerate setting
Bert Vermeulen [Tue, 1 May 2012 18:35:04 +0000 (20:35 +0200)]
hantek-dso: fix channel selection
Bert Vermeulen [Mon, 30 Apr 2012 20:29:31 +0000 (22:29 +0200)]
hantek-dso: delimit frames with SR_DF_FRAME_* packets
Bert Vermeulen [Mon, 30 Apr 2012 17:55:06 +0000 (19:55 +0200)]
support for frame begin/end packets
Bert Vermeulen [Sun, 22 Apr 2012 23:05:58 +0000 (01:05 +0200)]
sr: initial support for Hantek 2xxx/5200 USB oscilloscopes
Bert Vermeulen [Sun, 22 Apr 2012 18:06:19 +0000 (20:06 +0200)]
sr: change all drivers to use SR_DF_META_LOGIC
Bert Vermeulen [Sun, 22 Apr 2012 16:11:31 +0000 (18:11 +0200)]
sr: SR_DF_ANALOG type, and meta types for analog+logic
Uwe Hermann [Wed, 30 May 2012 21:31:03 +0000 (23:31 +0200)]
sr: fx2lafw: Forgot to add (C) line to fx2lafw.h in recent commit.
Uwe Hermann [Wed, 30 May 2012 21:15:23 +0000 (23:15 +0200)]
sr: fx2lafw: Only check for correct major FW version.
Changes in the minor version number are OK, as those should never
contain any incompatible/API changes.
Uwe Hermann [Wed, 30 May 2012 20:55:03 +0000 (22:55 +0200)]
sr: Consistently use ZEROPLUS spelling.
This is the version used throughout their website, let's use it.
Uwe Hermann [Wed, 30 May 2012 20:42:19 +0000 (22:42 +0200)]
sr: Fix typos.
Uwe Hermann [Wed, 30 May 2012 20:40:59 +0000 (22:40 +0200)]
sr: fx2lafw: Add (C) line from old saleae driver it's based on.
Uwe Hermann [Wed, 30 May 2012 20:23:36 +0000 (22:23 +0200)]
sr: README: Add section about firmware files.
Uwe Hermann [Wed, 30 May 2012 19:48:40 +0000 (21:48 +0200)]
sr: udev file: Minor fixes/additions.
Uwe Hermann [Wed, 30 May 2012 19:36:28 +0000 (21:36 +0200)]
sr: NEWS: Minor updates/fixes.
Uwe Hermann [Wed, 30 May 2012 07:26:15 +0000 (09:26 +0200)]
sr: Increase version number to 0.1.1.
Uwe Hermann [Wed, 30 May 2012 07:25:11 +0000 (09:25 +0200)]
sr: Update NEWS in preparation of upcoming 0.1.1 release.
Uwe Hermann [Wed, 30 May 2012 07:24:01 +0000 (09:24 +0200)]
sr: fx2lafw: s/MAX_RENUM_DELAY/MAX_RENUM_DELAY_MS/.
Uwe Hermann [Wed, 30 May 2012 07:10:41 +0000 (09:10 +0200)]
sr: fx2lafw: Fix a firmware upload bug on 32bit systems.
The glib GTimeVal data type (and some functions using it) will be faded
out from glib sooner or later, so it's not a good idea to use them anyway.
In this specific case GTimeVal.tv_sec was overflowing, leading a check in
libsigrok to fail, and thus to FX2 firmware upload errors, i.e.
non-working fx2lafw devices.
http://thread.gmane.org/gmane.comp.debugging.sigrok.devel/166
The root cause is that GTimeVal.tv_sec is a 'glong' (8 bytes on 64bit
systems, but only 4 on 32bit systems).
We now use an int64_t (and g_get_monotonic_time() instead of the more
problematics g_get_current_time() which uses a GTimeVal).
This has been verified to fix the issue on a 32bit system.
Other uses of GTimeVal in libsigrok will be removed in a later release.
Also, drop unneeded GTV_TO_MSEC.
Uwe Hermann [Wed, 30 May 2012 00:27:30 +0000 (02:27 +0200)]
sr: input/chronovu_la8.c: Add missing #include.
This fixes a compiler warning.
Uwe Hermann [Tue, 29 May 2012 22:00:33 +0000 (00:00 +0200)]
sr: New default firmware dir: $prefix/share/sigrok-firmware.
We no longer expect firmware files to be in the
$prefix/share/libsigrok/firmware directory, as that would require an
additional (distro) package 'sigrok-firmware' or the like to install
files into another package's (libsigrok) path, which can be problematic.
The current 'sigrok-firmware' repo's "make install" will already install
all files into $prefix/share/sigrok-firmware.
Uwe Hermann [Tue, 29 May 2012 18:30:15 +0000 (20:30 +0200)]
sr/srd/cli/gtk: ChangeLog -> MAINTAINERCLEANFILES.
If the (generated) ChangeLog file is marked for DISTCLEANFILES, it'll be
removed whenever "make distclean" is called (and is then gone forever if
you use the tarballs, for example).
Uwe Hermann [Mon, 28 May 2012 22:21:21 +0000 (00:21 +0200)]
sr: la8 in: Files must be exactly
8388613 bytes.
All ChronoVu LA8 files (*.kdt extension usually) are exactly
8388613
bytes in size (8MB + 5 bytes). Check this, when trying to autodetect the
file format, to reduce the likelihood of 'chronovu-la8' being
autodetected on all binary files (instead of 'binary').
Uwe Hermann [Mon, 28 May 2012 21:40:12 +0000 (23:40 +0200)]
sr: ARMFLY AX-Pro is supported by fx2lafw (LA only).
Pekka Nikander [Fri, 11 May 2012 16:23:21 +0000 (19:23 +0300)]
sr/srd/cli: Fix compiling with Homebrew.
Add ACLOCAL_DIR setting and AM_PROG_AR macro for compiling with Homebrew
under Mac OS X.
Applies essentially the same change to
{libsigrok,libsigrokdecode,sigrok-cli}/{autogen.sh,configure.ac}
It may be that the same fix is needed for the other autogen.sh and/or
configure.ac files, but that hasn't been tested and therefore not in
this commit.
Uwe Hermann [Thu, 10 May 2012 19:27:17 +0000 (21:27 +0200)]
NEWS: Add some news items.
Uwe Hermann [Thu, 10 May 2012 22:19:01 +0000 (00:19 +0200)]
fx2lafw: Cosmetics.
Joel Holdsworth [Mon, 7 May 2012 15:44:25 +0000 (16:44 +0100)]
fx2lafw: Added a gpif delay debug message
Joel Holdsworth [Mon, 7 May 2012 15:42:50 +0000 (16:42 +0100)]
fx2lafw: Added support for 20kHz and 25kHz sampling
Joel Holdsworth [Mon, 7 May 2012 11:40:52 +0000 (12:40 +0100)]
fx2lafw: Added support for 100kHz and 50kHz sampling
Uwe Hermann [Sun, 6 May 2012 17:54:46 +0000 (19:54 +0200)]
sr: fx2lafw: Get/display FX2 REVID.
Uwe Hermann [Sun, 6 May 2012 15:13:49 +0000 (17:13 +0200)]
sr: fx2lafw: Braintechnology USB-LPS support.
Uwe Hermann [Wed, 2 May 2012 17:02:03 +0000 (19:02 +0200)]
sr: We support both SIGMA and SIGMA2.
Also, a few minor coding-style fixes etc.
Uwe Hermann [Tue, 1 May 2012 17:09:06 +0000 (19:09 +0200)]
sr: udev: Add Ideofy LA-08 entry.
Uwe Hermann [Tue, 1 May 2012 17:05:09 +0000 (19:05 +0200)]
sr: udev: Add Velleman PCSU1000 entry.
Uwe Hermann [Tue, 1 May 2012 17:03:44 +0000 (19:03 +0200)]
sr: udev: Fix alphabetical order.
Uwe Hermann [Tue, 1 May 2012 17:00:28 +0000 (19:00 +0200)]
sr: udev: Add Robomotic BugLogic 3.
Bert Vermeulen [Thu, 26 Apr 2012 23:28:47 +0000 (01:28 +0200)]
fx2lafw: use iManufacturer/iProduct fields to identify our firmware
It's more deterministic than the endpoint profile check we did before. Which
was also broken.
Uwe Hermann [Thu, 26 Apr 2012 21:18:05 +0000 (23:18 +0200)]
sr: zeroplus: Fix segfault, add debug output.
There are various ZEROPLUS models with different probe numbers. For now
hardcode to 16 (for the popular LAP-C(16032)). This will need to be
fixed in a dynamic way later.
This fixes a segfault due to only 16 probe-names being defined, but the
drivers returning 32 as probecount.
Also, add some additional debug output.
Bert Vermeulen [Mon, 23 Apr 2012 13:31:41 +0000 (15:31 +0200)]
sr: don't use deprecated glib functions
As of the recent glib 2.32 release, these produce deprecation warnings
at compile time.
Håvard Espeland [Mon, 23 Apr 2012 11:36:17 +0000 (13:36 +0200)]
sigma: Fix segfault when no Sigma present.
Håvard Espeland [Sun, 22 Apr 2012 13:10:46 +0000 (15:10 +0200)]
sigma: Bump copyright notice.
Håvard Espeland [Sun, 22 Apr 2012 12:31:40 +0000 (14:31 +0200)]
sr: Remove zlib dependency.
No longer needed by Sigma driver.
Håvard Espeland [Sun, 22 Apr 2012 12:24:02 +0000 (14:24 +0200)]
sigma: Add support for SIGMA2 (req. new firmware).
Håvard Espeland [Sun, 22 Apr 2012 11:08:16 +0000 (13:08 +0200)]
sigma: Use heap for datafeed packet and header.
Håvard Espeland [Sun, 22 Apr 2012 11:05:10 +0000 (13:05 +0200)]
sigma: Fix bugs in receive_data callback.
- Poll data position on Sigma for every iteration.
- Return TRUE when no data ready.
Uwe Hermann [Wed, 18 Apr 2012 22:55:29 +0000 (00:55 +0200)]
fx2lafw: supported_samplerates[] should be 0-terminated.
Joel Holdsworth [Wed, 18 Apr 2012 21:28:52 +0000 (22:28 +0100)]
fx2lafw: Added support for default Cypess FX2 without EEPROM
Joel Holdsworth [Wed, 18 Apr 2012 18:17:25 +0000 (19:17 +0100)]
sr: Deleted the saleae-logic driver, fx2lafw has superceded it.
Joel Holdsworth [Wed, 18 Apr 2012 18:10:15 +0000 (19:10 +0100)]
sr: Disable saleae-logic driver by default and enable fx2lafw
Joel Holdsworth [Wed, 18 Apr 2012 18:07:30 +0000 (19:07 +0100)]
fx2lafw: Added slower sample rates
Uwe Hermann [Mon, 16 Apr 2012 22:12:33 +0000 (00:12 +0200)]
sr: Initial 0.1.0 release.
Uwe Hermann [Mon, 16 Apr 2012 21:16:00 +0000 (23:16 +0200)]
sr/srd: SR_API/SRD_API/etc. is a no-op on MinGW.
This avoids warnings on a MinGW build. The feature depends on ELF files,
but MinGW/Windows uses PE files.
Uwe Hermann [Sun, 15 Apr 2012 18:33:45 +0000 (20:33 +0200)]
sr: Add functions to query sr version(s).
Uwe Hermann [Sat, 7 Apr 2012 15:40:52 +0000 (17:40 +0200)]
sr: sr_err() et. al. don't need trailing \n.
Uwe Hermann [Sat, 7 Apr 2012 15:35:14 +0000 (17:35 +0200)]
sr: sr_parse_triggerstring docs/improvements.
Also fix smaller typos and cosmetics.