]> sigrok.org Git - libsigrok.git/log
libsigrok.git
10 years agoCode drop from DreamSourceLabs first source release. dslogic
Bert Vermeulen [Mon, 16 Dec 2013 00:31:46 +0000 (01:31 +0100)]
Code drop from DreamSourceLabs first source release.

11 years agoNEWS: Minor update.
Uwe Hermann [Sat, 4 May 2013 13:17:50 +0000 (15:17 +0200)]
NEWS: Minor update.

11 years agoFix libsigrok lib version (current:revision:age).
Uwe Hermann [Sat, 4 May 2013 13:12:20 +0000 (15:12 +0200)]
Fix libsigrok lib version (current:revision:age).

The last release (libsigrok 0.1.1) had a lib version of 0:0:0.

This release thus gets 1:0:0 according to the libtool manual guidelines.

11 years agouni-t-dmm: Add missing SR_CONF_LIMIT_MSEC support.
Uwe Hermann [Fri, 3 May 2013 22:07:34 +0000 (00:07 +0200)]
uni-t-dmm: Add missing SR_CONF_LIMIT_MSEC support.

11 years agos/DRIVER_LOG_DOMAIN/LOG_PREFIX/.
Uwe Hermann [Fri, 3 May 2013 19:59:32 +0000 (21:59 +0200)]
s/DRIVER_LOG_DOMAIN/LOG_PREFIX/.

This is more correct anyway, and also a bit shorter and more readable.

11 years agoMinor whitespace fixes.
Uwe Hermann [Fri, 3 May 2013 12:03:49 +0000 (14:03 +0200)]
Minor whitespace fixes.

11 years agoREADME.devices: Document how to make some DMMs log.
Uwe Hermann [Thu, 2 May 2013 21:37:23 +0000 (23:37 +0200)]
README.devices: Document how to make some DMMs log.

11 years agoNEWS: Various updates and minor fixes.
Uwe Hermann [Thu, 2 May 2013 17:03:47 +0000 (19:03 +0200)]
NEWS: Various updates and minor fixes.

11 years agoFix the build when libusb is not available.
Uwe Hermann [Thu, 2 May 2013 15:37:55 +0000 (17:37 +0200)]
Fix the build when libusb is not available.

Thanks Simon Richter <redacted> for reporting.

11 years agoDeal with uninitialized drivers
Bert Vermeulen [Wed, 1 May 2013 12:54:44 +0000 (14:54 +0200)]
Deal with uninitialized drivers

11 years agoserial-dmm: Add Tecpel DMM-8060 support.
Uwe Hermann [Wed, 1 May 2013 01:16:47 +0000 (03:16 +0200)]
serial-dmm: Add Tecpel DMM-8060 support.

11 years agoserial-dmm: Add Tecpel DMM-8061 support.
Uwe Hermann [Wed, 1 May 2013 01:13:15 +0000 (03:13 +0200)]
serial-dmm: Add Tecpel DMM-8061 support.

11 years agouni-t-dmm: Add Tecpel DMM-8060 support.
Uwe Hermann [Wed, 1 May 2013 01:04:46 +0000 (03:04 +0200)]
uni-t-dmm: Add Tecpel DMM-8060 support.

This is _very_ likely to be a rebadged Voltcraft VC-820, treating as such.

11 years agouni-t-dmm: Add Tecpel DMM-8061 support.
Uwe Hermann [Wed, 1 May 2013 01:00:08 +0000 (03:00 +0200)]
uni-t-dmm: Add Tecpel DMM-8061 support.

11 years agofs9721: Factor out common code from serial-dmm.
Uwe Hermann [Wed, 1 May 2013 00:10:56 +0000 (02:10 +0200)]
fs9721: Factor out common code from serial-dmm.

These functions are FS9721 specific (and DMM specific), and can be used
from various drivers (e.g. serial-dmm or uni-t-dmm or possibly others).

11 years agouni-t-dmm/serial-dmm: Handle Voltcraft VC-840 temperature.
Uwe Hermann [Tue, 30 Apr 2013 23:56:30 +0000 (01:56 +0200)]
uni-t-dmm/serial-dmm: Handle Voltcraft VC-840 temperature.

11 years agofs9922: Fix beep mode.
Uwe Hermann [Tue, 30 Apr 2013 23:02:46 +0000 (01:02 +0200)]
fs9922: Fix beep mode.

11 years agofs9922: Fix diode mode parsing.
Uwe Hermann [Tue, 30 Apr 2013 23:00:54 +0000 (01:00 +0200)]
fs9922: Fix diode mode parsing.

11 years agouni-t-dmm: Fix incorrect UNI-T UT61D baudrate.
Uwe Hermann [Tue, 30 Apr 2013 18:28:29 +0000 (20:28 +0200)]
uni-t-dmm: Fix incorrect UNI-T UT61D baudrate.

11 years agouni-t-dmm: Add support for the Voltcraft VC-840.
Uwe Hermann [Tue, 30 Apr 2013 18:27:04 +0000 (20:27 +0200)]
uni-t-dmm: Add support for the Voltcraft VC-840.

This DMM is already supported via the serial-dmm driver when using the
RS232 cable. The uni-t-dmm support makes it usable with the USB/HID
cable too.

11 years agouni-t-dmm: Add support for the UNI-T UT61E.
Uwe Hermann [Mon, 29 Apr 2013 18:23:21 +0000 (20:23 +0200)]
uni-t-dmm: Add support for the UNI-T UT61E.

This DMM is already supported via the serial-dmm driver when using the
RS232 cable. The uni-t-dmm support makes it usable with the USB/HID
cable too.

11 years agoserial-dmm: Add support for the UNI-T UT61D.
Uwe Hermann [Mon, 29 Apr 2013 18:15:02 +0000 (20:15 +0200)]
serial-dmm: Add support for the UNI-T UT61D.

This DMM is already supported via the uni-t-dmm driver when using the
USB/HID cable. The serial-dmm support makes it usable with the RS232
cable too.

11 years agouni-t-dmm: Use sr_dev_inst to store connection handle.
Uwe Hermann [Sun, 28 Apr 2013 06:13:15 +0000 (08:13 +0200)]
uni-t-dmm: Use sr_dev_inst to store connection handle.

11 years agobrymen-dmm: Use sr_dev_inst to store connection handle.
Uwe Hermann [Sun, 28 Apr 2013 06:01:51 +0000 (08:01 +0200)]
brymen-dmm: Use sr_dev_inst to store connection handle.

11 years agooutput: Use sr_config_get() wrapper
Bert Vermeulen [Tue, 30 Apr 2013 14:03:37 +0000 (16:03 +0200)]
output: Use sr_config_get() wrapper

This obviates the need for a valid driver, and thus makes converting
from any (non-sr) input format to any output format possible; the only
thing missing is the samplerate.

Fixes bug 105.

11 years agofx2lafw: Keep track of our own libusb fds
Bert Vermeulen [Tue, 30 Apr 2013 07:55:44 +0000 (09:55 +0200)]
fx2lafw: Keep track of our own libusb fds

11 years agoDon't remove stray source from the session after stopping
Bert Vermeulen [Mon, 29 Apr 2013 22:04:39 +0000 (00:04 +0200)]
Don't remove stray source from the session after stopping

It's up to the drivers and frontends to remove the sources they
added to the session.

Also don't tell the driver about a forced session stop more than
once, because it's sloppy.

Fixes bug 62.

11 years agofx2lafw: Properly initialize operational state before acquisition
Bert Vermeulen [Mon, 29 Apr 2013 17:02:26 +0000 (19:02 +0200)]
fx2lafw: Properly initialize operational state before acquisition

11 years agools: Don't close serial port after acquisition is done
Bert Vermeulen [Mon, 29 Apr 2013 10:39:26 +0000 (12:39 +0200)]
ols: Don't close serial port after acquisition is done

11 years agoDon't try to close devices when removing them from the session
Bert Vermeulen [Sun, 28 Apr 2013 20:35:42 +0000 (22:35 +0200)]
Don't try to close devices when removing them from the session

That's the frontend's job.

11 years agoNEWS: Add most important items since last release.
Uwe Hermann [Mon, 22 Apr 2013 19:57:51 +0000 (21:57 +0200)]
NEWS: Add most important items since last release.

11 years agotondaj-sl-814: Use sr_dev_inst to store connection handle.
Uwe Hermann [Wed, 24 Apr 2013 17:14:52 +0000 (19:14 +0200)]
tondaj-sl-814: Use sr_dev_inst to store connection handle.

11 years agounittests: Disable a broken test for now.
Uwe Hermann [Sat, 27 Apr 2013 17:06:27 +0000 (19:06 +0200)]
unittests: Disable a broken test for now.

11 years agoDon't automatically clear known instances from USB drivers on scan
Bert Vermeulen [Sat, 27 Apr 2013 16:27:32 +0000 (18:27 +0200)]
Don't automatically clear known instances from USB drivers on scan

This invalidates previously returned sr_dev_inst pointers, which a
frontend may be holding. It's the frontend's responsibility to clear
the list of instances a driver keeps track of by calling

sr_dev_clear(driver);

if it wants a completely new scan done.

11 years agoExplicitly initialize all struct parameters on init
Bert Vermeulen [Sat, 27 Apr 2013 16:24:50 +0000 (18:24 +0200)]
Explicitly initialize all struct parameters on init

11 years agoFix output API receive() function
Bert Vermeulen [Sat, 27 Apr 2013 15:29:46 +0000 (17:29 +0200)]
Fix output API receive() function

This changes the new output API's recv() to receive(), and has it
return an integer status code. The output of the function, if any,
is stored in a new parameter as a pointer to a newly allocated GString.

All output modules using this API have been adjusted.

11 years agoRemove SR_MAX_NUM_PROBES, which is now no longer used.
Martin Ling [Fri, 26 Apr 2013 22:20:33 +0000 (23:20 +0100)]
Remove SR_MAX_NUM_PROBES, which is now no longer used.

11 years agovcd output: Replace fixed length array of indices with GArray.
Martin Ling [Fri, 26 Apr 2013 22:16:30 +0000 (23:16 +0100)]
vcd output: Replace fixed length array of indices with GArray.

11 years agovcd output: Eliminate unnecessary array of probe names.
Martin Ling [Fri, 26 Apr 2013 22:00:51 +0000 (23:00 +0100)]
vcd output: Eliminate unnecessary array of probe names.

11 years agognuplot: Eliminate fixed-size header buffer based on max probes.
Martin Ling [Fri, 26 Apr 2013 21:50:09 +0000 (22:50 +0100)]
gnuplot: Eliminate fixed-size header buffer based on max probes.

11 years agognuplot: Remove unnecessary array of probe names.
Martin Ling [Fri, 26 Apr 2013 21:29:41 +0000 (22:29 +0100)]
gnuplot: Remove unnecessary array of probe names.

11 years agocsv: Remove unnecessary array of probe names.
Martin Ling [Fri, 26 Apr 2013 21:26:14 +0000 (22:26 +0100)]
csv: Remove unnecessary array of probe names.

11 years agochronovu-l8: remove unused array of probe names.
Martin Ling [Fri, 26 Apr 2013 21:20:05 +0000 (22:20 +0100)]
chronovu-l8: remove unused array of probe names.

11 years agotext: Use a GSList of enabled probe names, not an array.
Martin Ling [Fri, 26 Apr 2013 21:14:57 +0000 (22:14 +0100)]
text: Use a GSList of enabled probe names, not an array.

11 years agovcd input: Use a GSList rather than fixed size array of probes.
Martin Ling [Fri, 26 Apr 2013 19:52:25 +0000 (20:52 +0100)]
vcd input: Use a GSList rather than fixed size array of probes.

11 years agovcd output: fix for big-endian architectures.
Martin Ling [Fri, 26 Apr 2013 23:13:02 +0000 (00:13 +0100)]
vcd output: fix for big-endian architectures.

11 years agognuplot: fix for big-endian architectures.
Martin Ling [Fri, 26 Apr 2013 22:57:44 +0000 (23:57 +0100)]
gnuplot: fix for big-endian architectures.

11 years agooutput/ols: Use new API
Bert Vermeulen [Sat, 27 Apr 2013 12:24:47 +0000 (14:24 +0200)]
output/ols: Use new API

This now properly supports samplerate changes coming in from
SR_DF_META packets, and also fixes bug 99.

11 years agoerror.c: Add SR_ERR_DEV_CLOSED.
Uwe Hermann [Sat, 27 Apr 2013 08:49:52 +0000 (10:49 +0200)]
error.c: Add SR_ERR_DEV_CLOSED.

11 years agoascii: fix for big-endian architectures.
Martin Ling [Fri, 26 Apr 2013 20:35:18 +0000 (21:35 +0100)]
ascii: fix for big-endian architectures.

11 years agobits: Remove unused code.
Martin Ling [Fri, 26 Apr 2013 20:22:36 +0000 (21:22 +0100)]
bits: Remove unused code.

11 years agohex: fix for big-endian architectures.
Martin Ling [Fri, 26 Apr 2013 20:17:36 +0000 (21:17 +0100)]
hex: fix for big-endian architectures.

11 years agobits: fix for big-endian architectures.
Martin Ling [Fri, 26 Apr 2013 20:14:00 +0000 (21:14 +0100)]
bits: fix for big-endian architectures.

11 years agoRemove sr_rational
Bert Vermeulen [Fri, 26 Apr 2013 20:17:41 +0000 (22:17 +0200)]
Remove sr_rational

11 years agouni-t-dmm: Do proper detection of packets in the stream.
Uwe Hermann [Sat, 26 Jan 2013 22:39:24 +0000 (23:39 +0100)]
uni-t-dmm: Do proper detection of packets in the stream.

Also, various fixups in the driver.

11 years agouni-t-dmm: Make driver more similar to serial-dmm.
Uwe Hermann [Wed, 19 Dec 2012 18:01:54 +0000 (19:01 +0100)]
uni-t-dmm: Make driver more similar to serial-dmm.

11 years agocommon/dmm: Drop obsolete *is_packet_start() functions.
Uwe Hermann [Fri, 26 Apr 2013 17:56:02 +0000 (19:56 +0200)]
common/dmm: Drop obsolete *is_packet_start() functions.

11 years agofs9922: Use common DMM API.
Uwe Hermann [Wed, 19 Dec 2012 21:47:26 +0000 (22:47 +0100)]
fs9922: Use common DMM API.

Use the same functions and structs as the other DMM protocol parsers
in hardware/common/dmm. Among other things, this allows the functions
to be used from drivers in a generic way, e.g. in serial-dmm, uni-t-dmm,
and possibly other drivers.

11 years agoREADME: Add "Copyright and license" section.
Uwe Hermann [Fri, 26 Apr 2013 11:35:19 +0000 (13:35 +0200)]
README: Add "Copyright and license" section.

11 years agoBring back link-mso19/nexus-osciprime for now.
Uwe Hermann [Fri, 26 Apr 2013 08:47:34 +0000 (10:47 +0200)]
Bring back link-mso19/nexus-osciprime for now.

This patch will be re-introduced later.

11 years agoDrop link-mso19/nexus-osciprime in preparation for release.
Uwe Hermann [Thu, 25 Apr 2013 17:01:54 +0000 (19:01 +0200)]
Drop link-mso19/nexus-osciprime in preparation for release.

These two drivers are currently unfinished and don't work, so disable
and "unhook" them for now in preparation of the next libsigrok release.

They're still in the git repository, but not hooked up to the build
system, so that they won't get detected or built, and also don't end up
in the release tarball.

Since link-mso19 is the only driver that currently requires libudev,
drop any reference to that, too.

It should be relatively easy to apply this patch in reverse after the
release to bring back both drivers.

11 years agoREADME.devices: Fix typo.
Uwe Hermann [Thu, 25 Apr 2013 15:42:20 +0000 (17:42 +0200)]
README.devices: Fix typo.

11 years agopython: Add Session.open_device().
Uwe Hermann [Wed, 24 Apr 2013 22:15:49 +0000 (00:15 +0200)]
python: Add Session.open_device().

11 years agopython: sr_config's value field is called 'data'.
Uwe Hermann [Wed, 24 Apr 2013 21:43:56 +0000 (23:43 +0200)]
python: sr_config's value field is called 'data'.

11 years agopython: Support keyword arguments to scan()
Martin Ling [Wed, 24 Apr 2013 16:48:04 +0000 (17:48 +0100)]
python: Support keyword arguments to scan()

11 years agopython: Add a ConfigKey class.
Martin Ling [Wed, 24 Apr 2013 16:47:40 +0000 (17:47 +0100)]
python: Add a ConfigKey class.

11 years agopython: Add conversion functions to/from GSList *
Martin Ling [Wed, 24 Apr 2013 13:47:07 +0000 (14:47 +0100)]
python: Add conversion functions to/from GSList *

11 years agoOpen virtual device before loading file
Bert Vermeulen [Wed, 24 Apr 2013 21:06:50 +0000 (23:06 +0200)]
Open virtual device before loading file

11 years agoEnforce open device before config_set()/dev_acquisition_start()
Bert Vermeulen [Tue, 23 Apr 2013 13:14:42 +0000 (15:14 +0200)]
Enforce open device before config_set()/dev_acquisition_start()

11 years agoAdd sr_dev_open()/sr_dev_close()
Bert Vermeulen [Mon, 22 Apr 2013 22:21:57 +0000 (00:21 +0200)]
Add sr_dev_open()/sr_dev_close()

Frontends will be required to open a device before using
sr_config_set() or starting acquisition.

11 years agoWhitespace fixes
Bert Vermeulen [Wed, 24 Apr 2013 17:07:46 +0000 (19:07 +0200)]
Whitespace fixes

Damn editor.

11 years agofx2lafw: Minor cleanup
Bert Vermeulen [Wed, 24 Apr 2013 01:05:25 +0000 (03:05 +0200)]
fx2lafw: Minor cleanup

11 years agohantek-dso: Support conn scan parameter
Bert Vermeulen [Wed, 24 Apr 2013 01:04:12 +0000 (03:04 +0200)]
hantek-dso: Support conn scan parameter

11 years agorigol-ds1xx2: Code cleanup
Bert Vermeulen [Wed, 24 Apr 2013 00:09:49 +0000 (02:09 +0200)]
rigol-ds1xx2: Code cleanup

11 years agorigol-ds1xx2: Use common serial code.
Martin Ling [Mon, 22 Apr 2013 15:12:06 +0000 (16:12 +0100)]
rigol-ds1xx2: Use common serial code.

11 years agorigol-ds1xx2: Accept SR_CONF_CONN.
Martin Ling [Mon, 22 Apr 2013 13:59:55 +0000 (14:59 +0100)]
rigol-ds1xx2: Accept SR_CONF_CONN.

11 years agomic-985xx: Use sr_dev_inst to store connection handle.
Uwe Hermann [Tue, 23 Apr 2013 21:06:02 +0000 (23:06 +0200)]
mic-985xx: Use sr_dev_inst to store connection handle.

11 years agoFix minor warning with some compilers.
Uwe Hermann [Tue, 23 Apr 2013 20:54:02 +0000 (22:54 +0200)]
Fix minor warning with some compilers.

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

11 years agoserial-dmm: Use sr_dev_inst to store connection handle.
Uwe Hermann [Tue, 23 Apr 2013 17:07:15 +0000 (19:07 +0200)]
serial-dmm: Use sr_dev_inst to store connection handle.

11 years agoMore python build stuff to ignore
Bert Vermeulen [Tue, 23 Apr 2013 08:05:48 +0000 (10:05 +0200)]
More python build stuff to ignore

11 years agosr_dev_inst_*() -> sr_dev_*()
Bert Vermeulen [Mon, 22 Apr 2013 13:55:06 +0000 (15:55 +0200)]
sr_dev_inst_*() -> sr_dev_*()

11 years agozeroplus-logic-cube: Use sr_dev_inst to store connection handle
Bert Vermeulen [Mon, 22 Apr 2013 13:00:04 +0000 (15:00 +0200)]
zeroplus-logic-cube: Use sr_dev_inst to store connection handle

11 years agools: Use sr_dev_inst to store connection handle
Bert Vermeulen [Mon, 22 Apr 2013 11:40:40 +0000 (13:40 +0200)]
ols: Use sr_dev_inst to store connection handle

11 years agools: Fix stack clobbering at start of acquisition
Bert Vermeulen [Mon, 22 Apr 2013 11:33:31 +0000 (13:33 +0200)]
ols: Fix stack clobbering at start of acquisition

This off-by-one was clobbering the stack since introduced in a803c0db4d58.
However it only set one bit, and that generally appears to have been set
already, so this rarely affected anything. But when it did, it affected
a pointer, causing a segfault.

11 years agofluke-dmm: Use sr_dev_inst to store connection handle
Bert Vermeulen [Sun, 21 Apr 2013 23:07:35 +0000 (01:07 +0200)]
fluke-dmm: Use sr_dev_inst to store connection handle

11 years agocolead-slm: Use sr_dev_inst to store connection handle
Bert Vermeulen [Sun, 21 Apr 2013 22:27:11 +0000 (00:27 +0200)]
colead-slm: Use sr_dev_inst to store connection handle

11 years agoagilent-dmm: Use sr_dev_inst to store connection handle
Bert Vermeulen [Sun, 21 Apr 2013 19:44:31 +0000 (21:44 +0200)]
agilent-dmm: Use sr_dev_inst to store connection handle

11 years agorigol-ds1xx2: fix delay time.
Martin Ling [Sun, 21 Apr 2013 19:42:22 +0000 (20:42 +0100)]
rigol-ds1xx2: fix delay time.

11 years agopython: fix Fraction -> GVariant tuple conversion.
Martin Ling [Sun, 21 Apr 2013 18:52:09 +0000 (19:52 +0100)]
python: fix Fraction -> GVariant tuple conversion.

11 years agorigol-ds1xx2: better error handling in hw_scan.
Martin Ling [Sun, 21 Apr 2013 12:17:40 +0000 (13:17 +0100)]
rigol-ds1xx2: better error handling in hw_scan.

11 years agovictor-dmm: Allow configuration before the device is opened
Bert Vermeulen [Fri, 19 Apr 2013 19:19:54 +0000 (21:19 +0200)]
victor-dmm: Allow configuration before the device is opened

11 years agoDrop obsolete g_match_info_unref() workaround.
Uwe Hermann [Sat, 20 Apr 2013 11:43:48 +0000 (13:43 +0200)]
Drop obsolete g_match_info_unref() workaround.

We hard-depend on glib >= 2.32.0 now anyway, so this is no longer needed.

11 years agoAdd initial, lowlevel Ruby bindings.
Uwe Hermann [Fri, 19 Apr 2013 18:19:14 +0000 (20:19 +0200)]
Add initial, lowlevel Ruby bindings.

11 years agopython: unify pkg-config calls in setup.py.
Martin Ling [Fri, 19 Apr 2013 16:41:44 +0000 (17:41 +0100)]
python: unify pkg-config calls in setup.py.

11 years agopython: Use --cflags-only-I to get includes in setup.py.
Martin Ling [Fri, 19 Apr 2013 16:30:44 +0000 (17:30 +0100)]
python: Use --cflags-only-I to get includes in setup.py.

11 years agopython: Add classes for values of API enums.
Martin Ling [Fri, 19 Apr 2013 15:57:13 +0000 (16:57 +0100)]
python: Add classes for values of API enums.

11 years agopython: Add a Log class to control libsigrok logging.
Uwe Hermann [Fri, 19 Apr 2013 11:15:51 +0000 (13:15 +0200)]
python: Add a Log class to control libsigrok logging.

11 years agopython: config_get() now returns SR_ERR_NA.
Uwe Hermann [Fri, 19 Apr 2013 09:58:40 +0000 (11:58 +0200)]
python: config_get() now returns SR_ERR_NA.

11 years agovictor-dmm: Support SR_CONF_CONN
Bert Vermeulen [Thu, 18 Apr 2013 20:48:09 +0000 (22:48 +0200)]
victor-dmm: Support SR_CONF_CONN