]> sigrok.org Git - libsigrok.git/log
libsigrok.git
11 years agools: config_list(): Handle SR_CONF_PATTERN_MODE.
Uwe Hermann [Fri, 22 Nov 2013 18:56:20 +0000 (19:56 +0100)]
ols: config_list(): Handle SR_CONF_PATTERN_MODE.

SR_CONF_PATTERN_MODE was not handled in config_list(), yielding
non-working OLS support in PulseView (due to an assert), and a missing
pattern list in sigrok-cli's --show output.

This fixes bug #184.

11 years agoUpdate to 3-digit libserialport package version format.
Uwe Hermann [Fri, 22 Nov 2013 14:13:04 +0000 (15:13 +0100)]
Update to 3-digit libserialport package version format.

11 years agoMake struct sr_session opaque.
Uwe Hermann [Fri, 22 Nov 2013 14:02:12 +0000 (15:02 +0100)]
Make struct sr_session opaque.

The fields of this structure should not be used directly by frontends
(and none of the current ones do). Thus, make the struct opaque and hide
its contents from the API.

11 years agogmc_mh_1x_2x: Completed driver for Metrahit 1x/2x
Matthias Heidbrink [Thu, 21 Nov 2013 14:47:09 +0000 (15:47 +0100)]
gmc_mh_1x_2x: Completed driver for Metrahit 1x/2x

This driver supports devices with “RS232“ interface (Metrahit 16I,
18S, Siemens B1105 tested, 29S incomplete).

11 years agoAdded SR_MQ_TIME and SR_MQFLAG_DURATION.
Matthias Heidbrink [Tue, 19 Nov 2013 21:30:34 +0000 (22:30 +0100)]
Added SR_MQ_TIME and SR_MQFLAG_DURATION.

11 years agoserial: Allow 5 and 6 data bits.
Matthias Heidbrink [Tue, 19 Nov 2013 21:26:53 +0000 (22:26 +0100)]
serial: Allow 5 and 6 data bits.

11 years agogmc_mh_1x_2x: Inital driver skeleton.
Matthias Heidbrink [Tue, 19 Nov 2013 16:49:23 +0000 (17:49 +0100)]
gmc_mh_1x_2x: Inital driver skeleton.

11 years agoUpdate for libserialport v0.1 API.
Martin Ling [Thu, 21 Nov 2013 17:33:02 +0000 (17:33 +0000)]
Update for libserialport v0.1 API.

11 years agoSuppress compile warning
Bert Vermeulen [Wed, 20 Nov 2013 21:06:01 +0000 (22:06 +0100)]
Suppress compile warning

11 years agooutput/text: Fix memory leak of internal state buffers.
poljar (Damir Jelić) [Tue, 19 Nov 2013 11:03:20 +0000 (12:03 +0100)]
output/text: Fix memory leak of internal state buffers.

The text output module keeps buffers for internal state, upon receiving a DF_END
packet it frees the internal context but the buffers are never freed.

This adds a text_cleanup() helper function and registers it as the cleanup
function within all the text output modules.

11 years agoDT4000ZC/TP4000ZC: Force DTR=1 on the serial port.
Uwe Hermann [Tue, 19 Nov 2013 23:42:08 +0000 (00:42 +0100)]
DT4000ZC/TP4000ZC: Force DTR=1 on the serial port.

This fixes the driver e.g. on NetBSD.

11 years agools: Always open serial port in nonblocking mode.
Uwe Hermann [Tue, 19 Nov 2013 22:22:46 +0000 (23:22 +0100)]
ols: Always open serial port in nonblocking mode.

The scan() function was opening the port in non-blocking mode, the dev_open()
function however was not using the SERIAL_NONBLOCK flag. This led to hangs
in certain situations.

This fixes the OLS e.g. on NetBSD.

11 years agoserial.c: Minor cosmetic fix.
Uwe Hermann [Tue, 19 Nov 2013 19:09:59 +0000 (20:09 +0100)]
serial.c: Minor cosmetic fix.

11 years agoUse new sp_port_config fields.
Martin Ling [Fri, 15 Nov 2013 00:26:45 +0000 (00:26 +0000)]
Use new sp_port_config fields.

11 years agoserial: Use new sp_set_config instead of sp_set_params.
Martin Ling [Thu, 14 Nov 2013 18:52:57 +0000 (18:52 +0000)]
serial: Use new sp_set_config instead of sp_set_params.

11 years agoserial: Fix leak in serial_open.
poljar (Damir Jelić) [Tue, 19 Nov 2013 00:08:19 +0000 (01:08 +0100)]
serial: Fix leak in serial_open.

A new sp_port is created every time we call serial_open (sp_get_port_by_name
implicitly creates one for us), so free it every time we call serial_close.

11 years agodevice: Fix leak if probe groups are created.
poljar (Damir Jelić) [Tue, 19 Nov 2013 00:08:18 +0000 (01:08 +0100)]
device: Fix leak if probe groups are created.

11 years agorigol-ds1xx2: Send a SR_DF_END packet before acquisition stop.
poljar (Damir Jelić) [Fri, 15 Nov 2013 15:54:55 +0000 (16:54 +0100)]
rigol-ds1xx2: Send a SR_DF_END packet before acquisition stop.

Without a SR_DF_END samples could be cached in the internal buffer of an output
module and never flushed, therefore they would be missing in the final output.

By sending a SR_DF_END packet we force the output to be flushed.

11 years agoserial.c: Temporary quickfix until a libserialport fix is done.
Uwe Hermann [Fri, 15 Nov 2013 11:23:09 +0000 (12:23 +0100)]
serial.c: Temporary quickfix until a libserialport fix is done.

11 years agolibsigrok-internal.h: Fix libserialport.h name.
Uwe Hermann [Fri, 15 Nov 2013 08:48:34 +0000 (09:48 +0100)]
libsigrok-internal.h: Fix libserialport.h name.

11 years agouni-t-dmm: Drop unused packet_request callback.
Uwe Hermann [Wed, 13 Nov 2013 21:43:26 +0000 (22:43 +0100)]
uni-t-dmm: Drop unused packet_request callback.

11 years agoconfigure.ac: libserialport is optional.
Uwe Hermann [Wed, 13 Nov 2013 18:56:13 +0000 (19:56 +0100)]
configure.ac: libserialport is optional.

Disable drivers that need serial port support if libserialport is not found.

Also, disable building various other serial port related code in that case.

11 years agoREADME: Document new libserialport requirement.
Uwe Hermann [Wed, 13 Nov 2013 18:35:27 +0000 (19:35 +0100)]
README: Document new libserialport requirement.

11 years agoserial.c: Fix a few return values.
Uwe Hermann [Wed, 13 Nov 2013 18:09:46 +0000 (19:09 +0100)]
serial.c: Fix a few return values.

11 years agoserial.c: Cosmetics, coding-style.
Uwe Hermann [Wed, 13 Nov 2013 18:04:54 +0000 (19:04 +0100)]
serial.c: Cosmetics, coding-style.

11 years agoUpdate for renamed libserialport header file.
Martin Ling [Mon, 4 Nov 2013 12:54:27 +0000 (12:54 +0000)]
Update for renamed libserialport header file.

11 years agoFix silly copy-paste error.
Martin Ling [Sun, 3 Nov 2013 23:10:17 +0000 (23:10 +0000)]
Fix silly copy-paste error.

11 years agoUpdate to new libserialport API.
Martin Ling [Sun, 3 Nov 2013 22:53:04 +0000 (22:53 +0000)]
Update to new libserialport API.

11 years agoUse libserialport for serial port access.
Martin Ling [Sun, 27 Oct 2013 15:51:24 +0000 (15:51 +0000)]
Use libserialport for serial port access.

11 years agoerror.c: Add SR_ERR_PROBE_GROUP handling.
Uwe Hermann [Mon, 11 Nov 2013 06:53:52 +0000 (07:53 +0100)]
error.c: Add SR_ERR_PROBE_GROUP handling.

11 years agodoxygen: Fix/improve 'struct sr_probe_group' documentation.
Uwe Hermann [Mon, 11 Nov 2013 06:42:51 +0000 (07:42 +0100)]
doxygen: Fix/improve 'struct sr_probe_group' documentation.

11 years agounittests: Update for probe-groups changes.
Uwe Hermann [Sun, 10 Nov 2013 22:22:18 +0000 (23:22 +0100)]
unittests: Update for probe-groups changes.

11 years agorigol-ds1xx2: Unbreak listing of _VDIV and _COUPLING
Bert Vermeulen [Sun, 3 Nov 2013 13:16:10 +0000 (14:16 +0100)]
rigol-ds1xx2: Unbreak listing of _VDIV and _COUPLING

11 years agorigol-ds1xx2: Unbreak listing of SR_CONF_DEVICE_OPTIONS
Bert Vermeulen [Sun, 3 Nov 2013 13:15:35 +0000 (14:15 +0100)]
rigol-ds1xx2: Unbreak listing of SR_CONF_DEVICE_OPTIONS

11 years agorigol-ds1xx2: Better error reporting when probe groups are required
Bert Vermeulen [Sun, 3 Nov 2013 13:13:59 +0000 (14:13 +0100)]
rigol-ds1xx2: Better error reporting when probe groups are required

11 years agorigol-ds1xx2: Minor coding style fixes
Bert Vermeulen [Sun, 3 Nov 2013 13:11:43 +0000 (14:11 +0100)]
rigol-ds1xx2: Minor coding style fixes

11 years agoAdd SR_ERR_PROBE_GROUP, denoting a probe group requirement
Bert Vermeulen [Sun, 3 Nov 2013 13:04:15 +0000 (14:04 +0100)]
Add SR_ERR_PROBE_GROUP, denoting a probe group requirement

11 years agoprobe_groups: API changes required to implement probe groups.
Bert Vermeulen [Thu, 31 Oct 2013 22:58:33 +0000 (23:58 +0100)]
probe_groups: API changes required to implement probe groups.

11 years agorigol-ds1xx2: fix bitrot in device cleanup code
Bert Vermeulen [Thu, 31 Oct 2013 21:53:22 +0000 (22:53 +0100)]
rigol-ds1xx2: fix bitrot in device cleanup code

11 years agorigol-ds1xx2: Don't assume valid sdi
Bert Vermeulen [Sun, 28 Apr 2013 20:11:43 +0000 (22:11 +0200)]
rigol-ds1xx2: Don't assume valid sdi

11 years agoUpdate API documentation
Bert Vermeulen [Sun, 28 Apr 2013 20:11:05 +0000 (22:11 +0200)]
Update API documentation

11 years agorigol-ds1xx2: Skip obsolete fields
Bert Vermeulen [Sun, 28 Apr 2013 11:05:27 +0000 (13:05 +0200)]
rigol-ds1xx2: Skip obsolete fields

11 years agopython: Map probe group configuration to ProbeGroup attributes.
Martin Ling [Sun, 21 Apr 2013 15:02:12 +0000 (16:02 +0100)]
python: Map probe group configuration to ProbeGroup attributes.

11 years agopython: Add classes for probes and probe groups.
Martin Ling [Sun, 21 Apr 2013 14:46:48 +0000 (15:46 +0100)]
python: Add classes for probes and probe groups.

11 years agorigol-ds1xx2: implement probe group specific options.
Martin Ling [Sun, 21 Apr 2013 13:48:56 +0000 (14:48 +0100)]
rigol-ds1xx2: implement probe group specific options.

11 years agorigol-ds1xx2: create probe groups.
Martin Ling [Sun, 21 Apr 2013 12:44:34 +0000 (13:44 +0100)]
rigol-ds1xx2: create probe groups.

11 years agoprobe_groups: Add a name field to sr_probe_group.
Martin Ling [Sun, 21 Apr 2013 20:07:16 +0000 (21:07 +0100)]
probe_groups: Add a name field to sr_probe_group.

11 years agoprobe_groups: initialise sdi->probe_groups to NULL.
Martin Ling [Sun, 21 Apr 2013 20:05:03 +0000 (21:05 +0100)]
probe_groups: initialise sdi->probe_groups to NULL.

11 years agoprobe_groups: Update Python bindings for API change.
Martin Ling [Sun, 21 Apr 2013 20:11:32 +0000 (21:11 +0100)]
probe_groups: Update Python bindings for API change.

11 years agoUse priv for consistency
Bert Vermeulen [Sat, 20 Apr 2013 22:45:01 +0000 (00:45 +0200)]
Use priv for consistency

11 years agoprobe_groups: API changes required to implement probe groups.
Martin Ling [Sat, 20 Apr 2013 00:00:49 +0000 (01:00 +0100)]
probe_groups: API changes required to implement probe groups.

11 years agoupdate udev rules
Dan Horák [Mon, 4 Nov 2013 09:53:36 +0000 (10:53 +0100)]
update udev rules

With usbtmc driver being classified under usbmisc in newer kernels the udev rules
need an update.

11 years agoconfigure.ac: Bump libtool/library version from 1:1:0 to 1:2:0.
Uwe Hermann [Sun, 3 Nov 2013 22:34:21 +0000 (23:34 +0100)]
configure.ac: Bump libtool/library version from 1:1:0 to 1:2:0.

The libtool current:revision:age numbers change from 1:1:0 to 1:2:0
(i.e., revision is increased) since the library source code has changed,
but no interfaces were added or changed or removed.

Details:
http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info

This changes the library filename (e.g. on Linux) from libsigrok.so.1.0.1
to libsigrok.so.1.0.2, but the SONAME (+symlink) remains the same
(libsigrok.so.1) since this release is API- and ABI-compatible with the last.

11 years agoconfigure.ac: Bump package version to 0.2.2.
Uwe Hermann [Sun, 3 Nov 2013 22:32:23 +0000 (23:32 +0100)]
configure.ac: Bump package version to 0.2.2.

11 years agoNEWS: Update for upcoming 0.2.2 release.
Uwe Hermann [Sun, 3 Nov 2013 18:23:00 +0000 (19:23 +0100)]
NEWS: Update for upcoming 0.2.2 release.

11 years agooutput/analog: SR_UNIT_REVOLUTIONS_PER_MINUTE: Add missing break.
Uwe Hermann [Sun, 3 Nov 2013 23:18:47 +0000 (00:18 +0100)]
output/analog: SR_UNIT_REVOLUTIONS_PER_MINUTE: Add missing break.

11 years agocontrib/z60_libsigrok.rules: Also mention UNI-T UT325.
Uwe Hermann [Sun, 3 Nov 2013 23:46:45 +0000 (00:46 +0100)]
contrib/z60_libsigrok.rules: Also mention UNI-T UT325.

The same USB/HID based IC is used in the UNI-T UT-D04 cable (for various
multimeters) and the UNI-T UT325 thermometer.

11 years agocontrib/z60_libsigrok.rules: Add entry for the Saleae Logic16.
Uwe Hermann [Sun, 3 Nov 2013 23:41:56 +0000 (00:41 +0100)]
contrib/z60_libsigrok.rules: Add entry for the Saleae Logic16.

11 years agoconfigure.ac: Fix list sorting (cosmetic).
Uwe Hermann [Sun, 3 Nov 2013 22:28:55 +0000 (23:28 +0100)]
configure.ac: Fix list sorting (cosmetic).

11 years agoconfigure.ac: Move a teleinfo snippet to the correct place.
Uwe Hermann [Sun, 3 Nov 2013 22:28:03 +0000 (23:28 +0100)]
configure.ac: Move a teleinfo snippet to the correct place.

This breaks some configure use-cases otherwise.

11 years agoREADME.devices: uni-t-dmm devices need VID/PID now.
Uwe Hermann [Sun, 3 Nov 2013 17:18:44 +0000 (18:18 +0100)]
README.devices: uni-t-dmm devices need VID/PID now.

11 years agoREADME.devices: Updates.
Uwe Hermann [Sun, 3 Nov 2013 16:30:42 +0000 (17:30 +0100)]
README.devices: Updates.

11 years agodoxygen: @since tags document only last API change.
Uwe Hermann [Sun, 3 Nov 2013 15:08:38 +0000 (16:08 +0100)]
doxygen: @since tags document only last API change.

If a function existed before but the API changed, the @since
tag only reflects the release of the last API change.

11 years agoHACKING: Updates, some additions.
Uwe Hermann [Sun, 3 Nov 2013 15:06:15 +0000 (16:06 +0100)]
HACKING: Updates, some additions.

11 years agorigol-ds1xx2: detect Rigol DS1xx2 with upgraded bandwith
Dan Horák [Sat, 2 Nov 2013 15:47:11 +0000 (16:47 +0100)]
rigol-ds1xx2: detect Rigol DS1xx2 with upgraded bandwith

The bandwith in Rigol DS1xx2D/E scopes can be upgraded to 150 MHz in software.
So detect also scopes with the upgraded bandwith.

using libsigrok-0.2.1 + this change + commit da970d24ec (required for newer kernels):

[dan@eagle sigrok]$ sigrok-cli --scan -d rigol-ds1xx2 -l 5
sr: libsigrok loglevel set to 5.
sr: Sanity-checking all drivers.
sr: Sanity-checking all input modules.
sr: Sanity-checking all output modules.
srd: libsigrokdecode loglevel set to 5.
sr: hwdriver: Initializing driver 'rigol-ds1xx2'.
sr: serial: Opening serial port '/dev/usbtmc0' (flags 1).
sr: serial: Opened serial port '/dev/usbtmc0' (fd 7).
sr: serial: Wrote 5/5 bytes (fd 7).
sr: serial: Closing serial port /dev/usbtmc0 (fd 7).
sr: rigol-ds1xx2: response: /dev/usbtmc0 [Rigol Technologies,DS1152D,DS1EU150XXXXXX,00.04.01.00.02]
sr: hwdriver: Scan of 'rigol-ds1xx2' found 1 devices.
The following devices were found:
rigol-ds1xx2 - Rigol Technologies DS1152D 00.04.01.00.02 with 18 probes: CH1 CH2 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15

11 years agometex14: Handle a few missing cases for overflow.
Uwe Hermann [Thu, 31 Oct 2013 12:47:30 +0000 (13:47 +0100)]
metex14: Handle a few missing cases for overflow.

11 years agoAdd support for the Metex M-4650CR.
Uwe Hermann [Tue, 29 Oct 2013 19:31:24 +0000 (20:31 +0100)]
Add support for the Metex M-4650CR.

(the Voltcraft M-4650CR is a rebadged Metex M-4650CR)

11 years agoAdd support for the Voltcraft M-4650CR.
Uwe Hermann [Tue, 29 Oct 2013 17:10:10 +0000 (18:10 +0100)]
Add support for the Voltcraft M-4650CR.

11 years agoInitial Comma-separated values (CSV) input support.
Marc Schink [Wed, 23 Oct 2013 08:13:53 +0000 (10:13 +0200)]
Initial Comma-separated values (CSV) input support.

11 years agoFix two FreeBSD build issues related to libusb-1.0.
Uwe Hermann [Mon, 28 Oct 2013 21:59:32 +0000 (22:59 +0100)]
Fix two FreeBSD build issues related to libusb-1.0.

FreeBSD's libusb-1.0 compatible library has a few differences compared
to the "normal" libusb-1.0 from libusb.org which we have to work around.

LIBUSB_CLASS_APPLICATION doesn't exist in FreeBSD's libusb, and
libusb_handle_events_timeout_completed() doesn't exist either.
The latter is basically libusb_handle_events_timeout() with an extra
(unused by us) parameter, so the workaround is relatively simple.

This fixes bug #185.

11 years agoUnit tests for 'binary' input format & version APIs.
Uwe Hermann [Wed, 13 Mar 2013 08:46:08 +0000 (09:46 +0100)]
Unit tests for 'binary' input format & version APIs.

11 years agonorma-dmm: Minor cosmetics, coding-style, consistency fixes.
Uwe Hermann [Fri, 25 Oct 2013 18:10:01 +0000 (20:10 +0200)]
norma-dmm: Minor cosmetics, coding-style, consistency fixes.

Also, add a missing "%" in an sr_err() and a missing parameter in
another sr_err().

11 years agonorma dmm: Implemented driver.
Matthias Heidbrink [Thu, 17 Oct 2013 08:57:18 +0000 (10:57 +0200)]
norma dmm: Implemented driver.

11 years agonorma dmm: Initial driver skeleton.
Matthias Heidbrink [Thu, 17 Oct 2013 08:57:17 +0000 (10:57 +0200)]
norma dmm: Initial driver skeleton.

11 years agostd.c: Changed return value of std_dev_acquisition_stop_serial() for non-active devic...
Matthias Heidbrink [Thu, 17 Oct 2013 08:57:16 +0000 (10:57 +0200)]
std.c: Changed return value of std_dev_acquisition_stop_serial() for non-active device to SR_ERR_DEV_CLOSED for consistency with other functions.

11 years agoserial: Removed flag OPOST (turn off all output processing).
Matthias Heidbrink [Thu, 17 Oct 2013 08:57:14 +0000 (10:57 +0200)]
serial: Removed flag OPOST (turn off all output processing).

11 years agoserial: Added flags CLOCAL (ignore modem status lines) and CREAD (start receiver).
Matthias Heidbrink [Thu, 17 Oct 2013 08:57:13 +0000 (10:57 +0200)]
serial: Added flags CLOCAL (ignore modem status lines) and CREAD (start receiver).

11 years agoserial: Added flag IXANY (any char will restart) to XON/XOFF handshaking.
Matthias Heidbrink [Thu, 17 Oct 2013 08:57:12 +0000 (10:57 +0200)]
serial: Added flag IXANY (any char will restart) to XON/XOFF handshaking.

11 years agosaleae-logic16: claim device before using it
Sean Young [Sun, 13 Oct 2013 11:36:02 +0000 (12:36 +0100)]
saleae-logic16: claim device before using it

The kernel warns:

[ 7461.925685] usb 2-4: usbfs: process 11303 (sigrok-cli) did not claim interface 0 before use

11 years agoteleinfo: actual parser implementation
Aurelien Jacobs [Thu, 3 Oct 2013 19:20:18 +0000 (21:20 +0200)]
teleinfo: actual parser implementation

11 years agoteleinfo: Initial driver skeleton.
Aurelien Jacobs [Mon, 23 Sep 2013 20:02:02 +0000 (22:02 +0200)]
teleinfo: Initial driver skeleton.

11 years agoadd energy meter device type and related units
Aurelien Jacobs [Thu, 10 Oct 2013 20:28:35 +0000 (22:28 +0200)]
add energy meter device type and related units

11 years agometex14: Add support for pF (picofarad).
Uwe Hermann [Wed, 23 Oct 2013 16:41:13 +0000 (18:41 +0200)]
metex14: Add support for pF (picofarad).

This is used on some Metex DMMs.

11 years agometex14: Use case-insensitive string compares.
Uwe Hermann [Wed, 23 Oct 2013 16:07:54 +0000 (18:07 +0200)]
metex14: Use case-insensitive string compares.

This allows some other DMMs to be supported that use e.g. "kOhm" vs.
"KOhm", and so on.

11 years agometex14: Support DMMs with slightly different protocol.
Uwe Hermann [Sun, 20 Oct 2013 12:45:20 +0000 (14:45 +0200)]
metex14: Support DMMs with slightly different protocol.

This adds support for DMMs with 5 digits in the protocol (instead of 4)
and some more whitespace variants.

11 years agometex14: Support DMMs with whitespace differences.
Uwe Hermann [Sun, 29 Sep 2013 15:43:28 +0000 (17:43 +0200)]
metex14: Support DMMs with whitespace differences.

Most Metex DMMs use e.g. "  mV" as unit field, others use "mV  ",
though. Support these (and other) whitespace variants by stripping all
spaces and only comparing non-space characters.

11 years agoes519xx: restore correct packet size
Aurelien Jacobs [Thu, 10 Oct 2013 21:11:06 +0000 (23:11 +0200)]
es519xx: restore correct packet size

11 years agoserial: Changed order of flags PARENB and PARODD in deletion to same order as in...
Matthias Heidbrink [Thu, 17 Oct 2013 08:57:15 +0000 (10:57 +0200)]
serial: Changed order of flags PARENB and PARODD in deletion to same order as in setting (cosmetic).

11 years agoBump libzip requirement to >= 0.10.
Uwe Hermann [Wed, 16 Oct 2013 16:10:29 +0000 (18:10 +0200)]
Bump libzip requirement to >= 0.10.

We now use zip_int64_t and zip_get_num_entries() for example, which
requires at least libzip 0.10. This version was released in 03/2012,
which is old enough that we don't necessarily have to do a work-around
for older versions. Thus, simply bump the requirement to >= 0.10.

11 years agoBetter error reporting on session start failure
Bert Vermeulen [Wed, 16 Oct 2013 08:40:38 +0000 (10:40 +0200)]
Better error reporting on session start failure

11 years agoISO-TECH IDM103N: remove the useless -ser postfix
Aurelien Jacobs [Thu, 10 Oct 2013 23:36:52 +0000 (01:36 +0200)]
ISO-TECH IDM103N: remove the useless -ser postfix

11 years agoes519xx: correct initialization of es519xx_info structure
Aurelien Jacobs [Sat, 12 Oct 2013 15:25:29 +0000 (17:25 +0200)]
es519xx: correct initialization of es519xx_info structure

11 years agoes519xx: Fix incorrect packet size, and a typo.
Uwe Hermann [Sun, 6 Oct 2013 22:24:44 +0000 (00:24 +0200)]
es519xx: Fix incorrect packet size, and a typo.

11 years agoes519xx: Cosmetics, coding style, minor fixes.
Uwe Hermann [Sun, 6 Oct 2013 12:59:10 +0000 (14:59 +0200)]
es519xx: Cosmetics, coding style, minor fixes.

11 years agoadd ISO-TECH IDM103N serial-dmm driver
Aurelien Jacobs [Thu, 3 Oct 2013 20:10:25 +0000 (22:10 +0200)]
add ISO-TECH IDM103N serial-dmm driver

11 years agoadd cyrustek es519xx generic protocol parser
Aurelien Jacobs [Thu, 3 Oct 2013 20:00:22 +0000 (22:00 +0200)]
add cyrustek es519xx generic protocol parser

11 years agooutput/analog: add revolutions per minute unit
Aurelien Jacobs [Thu, 3 Oct 2013 19:37:14 +0000 (21:37 +0200)]
output/analog: add revolutions per minute unit

11 years agofx2lafw: Organize driver into api.c / protocol.[ch].
Uwe Hermann [Sat, 7 Sep 2013 12:48:38 +0000 (14:48 +0200)]
fx2lafw: Organize driver into api.c / protocol.[ch].

This now matches the naming conventions of the other drivers.

11 years agoagilent-dmm: Fix SEGV during incomplete reply from meter.
Daniel Thompson [Fri, 4 Oct 2013 07:34:05 +0000 (08:34 +0100)]
agilent-dmm: Fix SEGV during incomplete reply from meter.

If buf contains exactly the string "Agilent Technologies" (for example if
there are bugs in the timeout logic or serial driver causing the reply from
the meter to be abridged) then this code will SEGV. This is because tokens[1]
is NULL but only tokens[2] and tokens[3] (both of which are undefined) are
NULL checked.

Can be trivially corrected by NULL checking tokens[1] as well.

Signed-off-by: Daniel Thompson <redacted>
11 years agoserial: Only sleep when no characters are received.
Daniel Thompson [Thu, 19 Sep 2013 15:39:24 +0000 (16:39 +0100)]
serial: Only sleep when no characters are received.

g_usleep(XX) sleeps for *at least* XX microseconds but may sleep for
longers (on older kernels the sleep will typically be 10000us). Thus
byte receive loops containing an unconditional sleep will perform
very poorly (for example it causes the scan in agilent-dmm to timeout
prematurely).

Even on modern kernels serial_readline() has a 2ms sleep per byte which
means it will read at a maximum rate of half a character per millisecond
(~4800baud).

This is fixed by only sleeping when read() returns no data.

Signed-off-by: Daniel Thompson <redacted>