Commit Graph

1147 Commits

Author SHA1 Message Date
Bert Vermeulen 85ed4ab3ba kecheng-kc-330b: Acquisition from stored logs 2013-07-16 16:08:38 +02:00
Bert Vermeulen f336618c3d kecheng-kc-330b: Check device status before acquisition
Can't really count on it either way though, the device is just
too flaky to conclude whether it's going to work or not, regardless
of the status returned.
2013-07-16 16:08:38 +02:00
Bert Vermeulen df03552894 kecheng-kc-330b: Live SPL acquisition 2013-07-16 16:08:38 +02:00
Bert Vermeulen bc7be4a9f4 kecheng-kc-330b: Implement all SR_CONF options 2013-07-16 16:08:38 +02:00
Bert Vermeulen a8806f032c kecheng-kc-330b: Flesh out driver, add scan functionality 2013-07-16 16:08:38 +02:00
Bert Vermeulen ed759a0835 kecheng-kc-330b: Initial driver skeleton. 2013-07-16 16:08:38 +02:00
Uwe Hermann ab4bb6eb7c ikalogic-scanaplus: Initial driver implementation. 2013-07-16 01:01:11 +02:00
Uwe Hermann fdf4a1f5a0 ikalogic-scanaplus: Initial driver skeleton. 2013-07-15 12:20:53 +02:00
Florian Knodt a7a163a795 Support for UNI-T UT60A/E multimeters via RS232 or USB 2013-07-09 22:57:55 +02:00
Marc Schink fb8d593cfe Use GET_REPORT request for device to host transfer. 2013-07-05 14:01:06 +02:00
Uwe Hermann c134574938 uni-t-dmm: Add support for the Voltcraft VC-830. 2013-06-23 10:23:21 +02:00
Uwe Hermann 6045b91aa4 serial-dmm: Add support for the Voltcraft VC-830. 2013-06-23 10:23:21 +02:00
Bert Vermeulen cea26f6e9f cem-dt-885x: Support for retrieving stored samples 2013-06-20 14:35:34 +02:00
Bert Vermeulen 662172d4f4 cem-dt-885x: Support for SR_CONF_DATA_SOURCE
This device can do both live and memory-based acquisition.
2013-06-19 12:23:30 +02:00
Bert Vermeulen 4c22355f04 cem-dt-885x: Support for powering off the device 2013-06-17 16:17:39 +02:00
Bert Vermeulen f157b2eebb cem-dt-885x: Support for sound pressure level measurement range 2013-06-17 16:17:39 +02:00
Bert Vermeulen 0cd9107dfb cem-dt-885x: Fix datalog on/off setting in max/min hold mode
As it turns out, the device randomly decides to send no logging state
info when max hold or min hold mode is enabled.
2013-06-17 16:17:39 +02:00
Bert Vermeulen a90e480cdc cem-dt-885x: Support for max/min hold modes 2013-06-17 16:17:39 +02:00
Bert Vermeulen 1487ce4fbc cem-dt-885x: Support for changing time weighting 2013-06-17 16:17:39 +02:00
Bert Vermeulen be73391982 cem-dt-885x: Support for changing frequency weighting 2013-06-17 16:17:39 +02:00
Bert Vermeulen e1af0e85b9 cem-dt-885x: Support for turning data logging on/off 2013-06-17 16:17:38 +02:00
Florian Steinhardt 5f2a4aff4b added Voltcraft M-3650D Multimeter 2013-06-14 01:03:29 +02:00
Bert Vermeulen 14cf708fef cem-dt-885x: Send last measurement at normal rate in hold mode
The device only sends the "hold" token otherwise, which clashes somewhat
with other devices. This makes the device more predictable for frontends.
2013-06-12 18:34:42 +02:00
Bert Vermeulen bc1143280f cem-dt-885x: Hold off measurements in max/min hold mode 2013-06-12 18:34:42 +02:00
Bert Vermeulen e37c4b3959 cem-dt-885x: Live SPL acquisition 2013-06-12 18:34:42 +02:00
Bert Vermeulen 7fb8279c9b cem-dt-885x: Flesh out driver, add scan functionality 2013-06-12 18:34:42 +02:00
Bert Vermeulen 8fa9368eb4 cem-dt-885x: Initial driver skeleton. 2013-06-12 18:34:42 +02:00
Uwe Hermann 28083961fb scanalogic2: Only print actual state changes in the log. 2013-06-11 18:39:55 +02:00
Uwe Hermann 9526f2d4f8 scanalogic2: Replace %i with %s where needed. 2013-06-11 18:39:54 +02:00
Uwe Hermann 79914b3a62 scanalogic2: Shorten a few function name prefixes.
The driver-private helper functions in protocol.c can have a shorter
prefix to make the code look nicer.
2013-06-11 18:39:54 +02:00
Uwe Hermann c824eb6323 scanalogic2: Cosmetics, whitespace, typos, etc. 2013-06-11 18:39:54 +02:00
Marc Schink e52e712d05 Initial driver for IKALOGIC Scanalogic-2 2013-06-11 18:39:54 +02:00
Marc Schink 16e76baec9 ikalogic-scanalogic2: Initial driver skeleton. 2013-06-11 18:39:54 +02:00
Uwe Hermann eea49cf10d ols/link-mso19: Consistency fixes.
Use the same setup/ordering/naming for the cleanup/dev_clear functions
as all other drivers do.
2013-06-02 17:03:40 +02:00
Uwe Hermann 1c2d542df2 demo: Use std_dev_clear(). 2013-06-02 16:57:07 +02:00
Uwe Hermann 3b412e3a30 s/clear_instances/dev_clear/.
Consistently use the same name for the dev_clear() API callback
everywhere.
2013-06-02 16:56:41 +02:00
Uwe Hermann f6beaac55c std: Drop hw_ from function names.
The per-driver API calls no longer have a hw_ prefix (e.g. hw_init()
became init() and so on), so drop the 'hw_' from the std versions
for those API callbacks too.
2013-06-02 16:46:18 +02:00
Uwe Hermann 3678cf73fe asix-sigma: Use std_dev_clear(). 2013-06-02 16:46:18 +02:00
Uwe Hermann c43cf4d40e alsa: Use std_dev_clear(). 2013-06-02 16:46:17 +02:00
Uwe Hermann fa85f37630 rigol-ds1xx2: Use std_dev_clear(). 2013-06-02 13:52:40 +02:00
Uwe Hermann dec6c583a2 hantek-dso: Simplify cleanup(). 2013-06-02 13:52:40 +02:00
Uwe Hermann 658636f1c9 nexus-osciprime: Use std_dev_clear(). 2013-06-02 13:52:40 +02:00
Uwe Hermann c9d622a420 lascar-el-usb: Use std_dev_clear(). 2013-06-02 13:52:40 +02:00
Uwe Hermann 771bd216fa fluke-dmm: Use std_dev_clear(). 2013-06-02 13:52:39 +02:00
Uwe Hermann 732899f8cf colead-slm: Use std_dev_clear(). 2013-06-02 13:52:39 +02:00
Uwe Hermann 676c28a846 agilent-dmm: Use std_dev_clear(). 2013-06-02 13:52:39 +02:00
Uwe Hermann 8d18d266f5 victor-dmm: Use std_dev_clear(). 2013-06-02 13:52:39 +02:00
Uwe Hermann 40bbc64293 brymen-dmm: Use std_dev_clear(). 2013-06-02 13:52:39 +02:00
Uwe Hermann 6078d2c996 Use consistent API callback function names.
This now matches what the 'new-driver' tool generates.
2013-05-10 20:01:37 +02:00
Uwe Hermann 8111446ae0 zeroplus: Properly set inst_type to SR_INST_USB. 2013-05-10 19:16:25 +02:00
Uwe Hermann d6445cb0da zeroplus: Use std_dev_clear(). 2013-05-10 19:06:47 +02:00
Uwe Hermann 8dca646ef9 uni-t-dmm: Use std_dev_clear(). 2013-05-10 18:59:46 +02:00
Uwe Hermann 3f0513bac1 serial-dmm: Use std_dev_clear(). 2013-05-10 18:53:42 +02:00
Uwe Hermann 9790079961 chronovu-la8: Use std_dev_clear(). 2013-05-10 18:40:13 +02:00
Uwe Hermann decfe89d4e Drop some lines that are no longer needed. 2013-05-10 18:30:32 +02:00
Uwe Hermann 0bdb4f2e4a tondaj-sl-814: Use std_dev_clear(). 2013-05-10 17:56:53 +02:00
Uwe Hermann 25e7adada7 mic-985xx: Use std_dev_clear(). 2013-05-10 17:54:53 +02:00
Uwe Hermann 2a052cc4d6 Use consistent naming for internal libtool helper libs.
This now also matches what the 'new-driver' tool generates.
2013-05-10 17:44:01 +02:00
Uwe Hermann 9e165e742f Use consistent HW_ name prefixes everywhere.
Older drivers used LA_* previously, we now use HW_* everywhere though.
2013-05-10 17:18:42 +02:00
Uwe Hermann 7ab89f4827 Re-enable link-mso19 and nexus-osciprime drivers. 2013-05-08 16:40:45 +02:00
Bert Vermeulen 9dc7a75e3d fx2lafw: Fix memory leak 2013-05-06 20:44:26 +02:00
Bert Vermeulen 03f4de8cf2 ols: Code cleanup
This also fixes a memory leak.
2013-05-06 00:42:18 +02:00
Uwe Hermann 26aec7fdc4 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.
2013-05-04 15:59:40 +02:00
Uwe Hermann c5ffac4148 uni-t-dmm: Add missing SR_CONF_LIMIT_MSEC support. 2013-05-04 00:13:25 +02:00
Uwe Hermann 29a27196a1 s/DRIVER_LOG_DOMAIN/LOG_PREFIX/.
This is more correct anyway, and also a bit shorter and more readable.
2013-05-03 21:59:32 +02:00
Uwe Hermann 06c45a66f7 Minor whitespace fixes. 2013-05-03 14:03:49 +02:00
Uwe Hermann c2fa697afa serial-dmm: Add Tecpel DMM-8060 support. 2013-05-01 03:16:47 +02:00
Uwe Hermann b38e08fbb7 serial-dmm: Add Tecpel DMM-8061 support. 2013-05-01 03:13:43 +02:00
Uwe Hermann 4554314c4f uni-t-dmm: Add Tecpel DMM-8060 support.
This is _very_ likely to be a rebadged Voltcraft VC-820, treating as such.
2013-05-01 03:04:46 +02:00
Uwe Hermann b6bad47c91 uni-t-dmm: Add Tecpel DMM-8061 support. 2013-05-01 03:00:41 +02:00
Uwe Hermann 2451a20ff5 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).
2013-05-01 02:16:55 +02:00
Uwe Hermann 4853559466 uni-t-dmm/serial-dmm: Handle Voltcraft VC-840 temperature. 2013-05-01 01:58:42 +02:00
Uwe Hermann ad00a54da6 fs9922: Fix beep mode. 2013-05-01 01:02:46 +02:00
Uwe Hermann 649a4cd672 fs9922: Fix diode mode parsing. 2013-05-01 01:00:54 +02:00
Uwe Hermann 767aae30ed uni-t-dmm: Fix incorrect UNI-T UT61D baudrate. 2013-04-30 20:22:18 +02:00
Uwe Hermann 695d0e1efa 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.
2013-04-30 20:22:17 +02:00
Uwe Hermann bbef5e326d 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.
2013-04-30 20:22:17 +02:00
Uwe Hermann ae3a59de62 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.
2013-04-30 20:22:17 +02:00
Uwe Hermann 3ece1dff6c uni-t-dmm: Use sr_dev_inst to store connection handle. 2013-04-30 20:22:17 +02:00
Uwe Hermann d9a7c349ed brymen-dmm: Use sr_dev_inst to store connection handle. 2013-04-30 20:22:17 +02:00
Bert Vermeulen 0a7da5f8c9 fx2lafw: Keep track of our own libusb fds 2013-04-30 09:55:44 +02:00
Bert Vermeulen 2a67abfe34 fx2lafw: Properly initialize operational state before acquisition 2013-04-29 19:02:26 +02:00
Bert Vermeulen 0f75d6f5a9 ols: Don't close serial port after acquisition is done 2013-04-29 12:39:26 +02:00
Uwe Hermann a5e44c3247 tondaj-sl-814: Use sr_dev_inst to store connection handle. 2013-04-27 21:22:15 +02:00
Bert Vermeulen 50c604f50b 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.
2013-04-27 18:27:32 +02:00
Bert Vermeulen b9470914d0 Remove sr_rational 2013-04-26 22:51:12 +02:00
Uwe Hermann bc653a5678 uni-t-dmm: Do proper detection of packets in the stream.
Also, various fixups in the driver.
2013-04-26 20:54:21 +02:00
Uwe Hermann c885268777 uni-t-dmm: Make driver more similar to serial-dmm. 2013-04-26 20:05:44 +02:00
Uwe Hermann 7381251e33 common/dmm: Drop obsolete *is_packet_start() functions. 2013-04-26 20:05:44 +02:00
Uwe Hermann 913abe8321 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.
2013-04-26 20:05:44 +02:00
Uwe Hermann 695f32d89d Bring back link-mso19/nexus-osciprime for now.
This patch will be re-introduced later.
2013-04-26 10:47:34 +02:00
Uwe Hermann 9d1164f9a1 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.
2013-04-25 19:16:13 +02:00
Bert Vermeulen e73ffd4238 Enforce open device before config_set()/dev_acquisition_start() 2013-04-24 22:03:50 +02:00
Bert Vermeulen 46a743c1fa Whitespace fixes
Damn editor.
2013-04-24 19:07:46 +02:00
Bert Vermeulen a31a4d371f fx2lafw: Minor cleanup 2013-04-24 03:23:23 +02:00
Bert Vermeulen 294dbac724 hantek-dso: Support conn scan parameter 2013-04-24 03:23:23 +02:00
Bert Vermeulen cc9fd2d29c rigol-ds1xx2: Code cleanup 2013-04-24 03:23:11 +02:00
Martin Ling 9bd4c95606 rigol-ds1xx2: Use common serial code. 2013-04-24 02:10:25 +02:00
Martin Ling ca55277ca8 rigol-ds1xx2: Accept SR_CONF_CONN. 2013-04-24 02:10:25 +02:00
Uwe Hermann 886bd5e056 mic-985xx: Use sr_dev_inst to store connection handle. 2013-04-23 23:06:02 +02:00
Uwe Hermann 31e5377250 Fix minor warning with some compilers. 2013-04-23 22:54:02 +02:00
Uwe Hermann 50985c2019 GPL headers: Use correct project name. 2013-04-23 22:24:30 +02:00
Uwe Hermann 1e1bfcd0fe serial-dmm: Use sr_dev_inst to store connection handle. 2013-04-23 20:55:04 +02:00
Bert Vermeulen 609bfd753c zeroplus-logic-cube: Use sr_dev_inst to store connection handle 2013-04-22 15:00:04 +02:00
Bert Vermeulen 459a0f2623 ols: Use sr_dev_inst to store connection handle 2013-04-22 13:40:40 +02:00
Bert Vermeulen 2e5b73c00c ols: Fix stack clobbering at start of acquisition
This off-by-one was clobbering the stack since introduced in a803c0db4d.
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.
2013-04-22 13:33:31 +02:00
Bert Vermeulen 919681f0e8 fluke-dmm: Use sr_dev_inst to store connection handle 2013-04-22 01:07:35 +02:00
Bert Vermeulen aa7066353c colead-slm: Use sr_dev_inst to store connection handle 2013-04-22 01:01:10 +02:00
Bert Vermeulen fb3a150599 agilent-dmm: Use sr_dev_inst to store connection handle 2013-04-21 21:49:15 +02:00
Martin Ling e31d410d26 rigol-ds1xx2: fix delay time. 2013-04-21 20:42:22 +01:00
Martin Ling d2e0b1fa71 rigol-ds1xx2: better error handling in hw_scan. 2013-04-21 19:48:34 +01:00
Bert Vermeulen 8bb2981df0 victor-dmm: Allow configuration before the device is opened 2013-04-20 15:26:16 +02:00
Bert Vermeulen ac046ef8cf victor-dmm: Support SR_CONF_CONN 2013-04-18 22:48:29 +02:00
Bert Vermeulen 0f1506497b lascar-el-usb: Support SR_CONF_CONN 2013-04-18 22:48:29 +02:00
Bert Vermeulen e2033d4917 hantek-dso: Consistently return SR_ERR_ARG if sdi is needed 2013-04-18 22:48:29 +02:00
Bert Vermeulen 38ab8dbec8 fx2lafw: Consistently return SR_ERR_ARG if sdi is needed 2013-04-18 22:48:29 +02:00
Bert Vermeulen 624f5b4c1e hantek-dso: Support config_get(SR_CONF_CONN) 2013-04-18 01:24:42 +02:00
Bert Vermeulen 89befd46a8 fx2lafw: Support config_get(SR_CONF_CONN)
This generates a bus.address conn string which can be used to
uniquely identify the given sr_dev_inst.
2013-04-18 01:24:42 +02:00
Bert Vermeulen d0eec1eea1 hantek-dso: Mark connection as USB 2013-04-17 01:08:18 +02:00
Bert Vermeulen 949b3dc091 hantek-dso: Use std_dev_clear() 2013-04-17 00:49:41 +02:00
Bert Vermeulen 72f9d6dc5e fx2lafw: No device context internals to clear 2013-04-17 00:49:41 +02:00
Bert Vermeulen c118080b1d hantek-dso: Store USB connection in sr_dev_inst 2013-04-17 00:49:41 +02:00
Uwe Hermann 415e6389ce chronovu-la8: Fix incorrect 0Hz samplerate being reported.
This closes bug #93.
2013-04-16 22:35:17 +02:00
Bert Vermeulen 250a78c7d5 fx2lafw: Use standard dev_clear() instead 2013-04-16 17:57:08 +02:00
Bert Vermeulen bd6fbf628a drivers: return SR_ERR_NA on unsupported config key
Fixes bug 89.
2013-04-16 11:00:55 +02:00
Bert Vermeulen 72cd99b876 ols: Report when a device doesn't support metadata
Not an error, but it does mean it's either a really old or really
basic device, and will help us to debug people's problems with
these.

Fixes bug 92.
2013-04-16 00:23:34 +02:00
Bert Vermeulen 754b5ff2b4 fx2lafw: Support conn scan parameter
This takes a USB specification. Fixes bug 82.
2013-04-15 23:56:33 +02:00
Bert Vermeulen 1eb0a0df66 usb: Fix bus.address format detection 2013-04-15 23:47:04 +02:00
Bert Vermeulen e5d15bd2a2 ols: Allow configuration before the device is opened 2013-04-15 20:05:43 +02:00
Bert Vermeulen a7be14ada2 rigol-ds1xx2: Don't assume there's a valid sdi 2013-04-15 18:45:38 +02:00
Bert Vermeulen bf25678359 ols: Properly initialize operational state before start 2013-04-15 18:28:43 +02:00
Uwe Hermann e45ad6e24f demo: Fix compiler warning, cosmetics. 2013-04-15 12:27:55 +02:00
Bert Vermeulen 1d16675769 lascar-el-usb: Use two probes for temp/humidity loggers 2013-04-15 01:30:24 +02:00
Joel Holdsworth 2150a69b76 demo: Unref the IO channel when it is no longer used 2013-04-14 23:39:15 +02:00
Joel Holdsworth ed20a42803 demo: Free dev_contexts 2013-04-14 23:39:15 +02:00
Joel Holdsworth a76842947f demo: Moved demo configuration variables into dev_context 2013-04-14 23:39:15 +02:00
Joel Holdsworth 33ef757383 demo: Keep a pointer to dev_context in sr_dev_inst and vice-versa 2013-04-14 23:39:15 +02:00
Joel Holdsworth e053204700 demo: Only one GIOChannel is needed 2013-04-14 23:39:15 +02:00
Joel Holdsworth bbd7ef0f18 demo: Fixed glitching in increment signal 2013-04-14 23:39:15 +02:00
Joel Holdsworth f0b6ae19a8 alsa: Set the probe index 2013-04-14 23:39:15 +02:00
Jan Luebbe 9e5670d0ab zeroplus-logic-cube: add USB ID for LAP-16128U 2013-04-14 17:06:57 +02:00
Martin Ling 6bb192bc05 rigol-ds1xx2: support digital channels. 2013-04-14 16:57:02 +02:00
Martin Ling a789b61087 rigol-ds1xx2: doesn't actually support SR_CONF_LIMIT_SAMPLES 2013-04-14 16:57:01 +02:00
Martin Ling ee7e9bee5d rigol-ds1xx2: fix handling of partial frames. 2013-04-14 16:57:01 +02:00
Bert Vermeulen 0c05591abf ols: Support get/set/list on all device options
Where it makes sense: _LOGIC_ANALYZER and _TRIGGER_TYPE don't have much
use for all of them.
2013-04-14 00:36:05 +02:00
Bert Vermeulen 8f35be72b4 rigol-ds1xx2: Use g_usleep() for portability 2013-04-12 19:42:44 +02:00
Uwe Hermann 169dbe8577 rigol-ds1xx2: Whitespace, minor fix.
Return SR_ERR_MALLOC for failed malloc, not SR_ERR.
2013-04-12 18:44:28 +02:00
Uwe Hermann ff08a52a0f Fix two minor compiler warnings. 2013-04-12 17:45:01 +02:00
Bert Vermeulen 254dd102e8 rigol-ds1xx2: Support for all channels, proper defaults
Since this driver supports devices with a control panel and display,
we take the defaults from the device -- not a set of sensible
defaults as usual.
2013-04-11 18:32:08 +02:00
Bert Vermeulen 88e429c97f rigol-ds1xx2: fix channel numbers
Copyright bump, too.
2013-04-11 18:32:08 +02:00