]> sigrok.org Git - libsigrok.git/log
libsigrok.git
9 years agoRefactor scan options check.
Bert Vermeulen [Fri, 14 Nov 2014 19:24:43 +0000 (20:24 +0100)]
Refactor scan options check.

9 years agobindings: Fix out-of-tree build.
Uwe Hermann [Fri, 14 Nov 2014 19:01:12 +0000 (20:01 +0100)]
bindings: Fix out-of-tree build.

This closes #473.

9 years agobindings: Re-enable Java, but ignore create_analog_packet().
Uwe Hermann [Fri, 14 Nov 2014 15:47:46 +0000 (16:47 +0100)]
bindings: Re-enable Java, but ignore create_analog_packet().

This will need some fixing.

9 years agosr_driver_scan: Enforce options passed in by client.
Bert Vermeulen [Fri, 14 Nov 2014 11:22:54 +0000 (12:22 +0100)]
sr_driver_scan: Enforce options passed in by client.

9 years agodemo: Use allocation for model string.
Bert Vermeulen [Fri, 14 Nov 2014 10:37:11 +0000 (11:37 +0100)]
demo: Use allocation for model string.

9 years agomic-985xx: Convert to use SR_DF_ANALOG2.
Uwe Hermann [Wed, 12 Nov 2014 22:34:20 +0000 (23:34 +0100)]
mic-985xx: Convert to use SR_DF_ANALOG2.

9 years agovictor-dmm: Convert to use SR_DF_ANALOG2.
Uwe Hermann [Wed, 12 Nov 2014 15:31:30 +0000 (16:31 +0100)]
victor-dmm: Convert to use SR_DF_ANALOG2.

9 years agooutput/analog: Add SR_DF_ANALOG2 support.
Bert Vermeulen [Wed, 12 Nov 2014 16:05:13 +0000 (17:05 +0100)]
output/analog: Add SR_DF_ANALOG2 support.

9 years agoAdd sr_analog_to_float().
Bert Vermeulen [Wed, 12 Nov 2014 16:05:13 +0000 (17:05 +0100)]
Add sr_analog_to_float().

9 years agoAdd SR_DF_ANALOG2 and related structs.
Bert Vermeulen [Wed, 12 Nov 2014 13:46:51 +0000 (14:46 +0100)]
Add SR_DF_ANALOG2 and related structs.

New structs:
 - sr_rational
 - sr_datafeed_analog2
 - sr_analog_encoding
 - sr_analog_meaning
 - sr_analog_spec

9 years agobindings: Fix enums.py compatibility with Python 3.
Martin Ling [Thu, 13 Nov 2014 20:38:56 +0000 (20:38 +0000)]
bindings: Fix enums.py compatibility with Python 3.

9 years agobindings: Add Session::context().
Uwe Hermann [Thu, 13 Nov 2014 18:15:37 +0000 (19:15 +0100)]
bindings: Add Session::context().

9 years agoconfigure.ac: Temporarily disable Java bindings.
Uwe Hermann [Thu, 13 Nov 2014 17:40:44 +0000 (18:40 +0100)]
configure.ac: Temporarily disable Java bindings.

Those need a bugfix to make them build again:

  bindings/java/org/sigrok/core/classes/Context.java:92: error: method Context_create_analog_packet in class classesJNI cannot be applied to given types;
        long cPtr = classesJNI.Context_create_analog_packet(swigCPtr, this, ChannelVector.getCPtr(tempchannels), SWIGTYPE_p_float.getCPtr(data_pointer), num_samples, Quantity.getCPtr(mq), mq, Unit.getCPtr(unit), unit, QuantityFlagVector.getCPtr(mqflags), mqflags);
                              ^
    required: long,Context,Vector<Channel>,long,long,long,Quantity,long,Unit,long,QuantityFlagVector
    found: long,Context,long,long,long,long,Quantity,long,Unit,long,QuantityFlagVector
    reason: actual argument long cannot be converted to Vector<Channel> by method invocation conversion
  1 error
  Makefile:3352: recipe for target 'bindings/java/sigrok-core.jar' failed

9 years agobindings: Add packet constructors.
Martin Ling [Wed, 12 Nov 2014 12:37:22 +0000 (12:37 +0000)]
bindings: Add packet constructors.

9 years agobindings: Add QuantityFlag::mask_from_flags() method.
Martin Ling [Wed, 12 Nov 2014 11:08:22 +0000 (11:08 +0000)]
bindings: Add QuantityFlag::mask_from_flags() method.

9 years agobindings: Add UserDevice wrapping.
Martin Ling [Wed, 12 Nov 2014 02:23:02 +0000 (02:23 +0000)]
bindings: Add UserDevice wrapping.

9 years agoChange sr_dev_inst_new() to take no parameters.
Uwe Hermann [Wed, 12 Nov 2014 01:06:15 +0000 (02:06 +0100)]
Change sr_dev_inst_new() to take no parameters.

Change all callers to set the fields manually as needed.

9 years agoHACKING: Document the new malloc related guidelines.
Uwe Hermann [Tue, 11 Nov 2014 23:04:28 +0000 (00:04 +0100)]
HACKING: Document the new malloc related guidelines.

9 years agoHACKING: Minor updates.
Uwe Hermann [Tue, 11 Nov 2014 22:52:53 +0000 (23:52 +0100)]
HACKING: Minor updates.

9 years agopython: Wrap Analog::data() as a NumPy array.
Martin Ling [Wed, 12 Nov 2014 01:00:17 +0000 (01:00 +0000)]
python: Wrap Analog::data() as a NumPy array.

9 years agobindings: Expose Analog::channels() as an attribute.
Martin Ling [Tue, 11 Nov 2014 23:54:39 +0000 (23:54 +0000)]
bindings: Expose Analog::channels() as an attribute.

9 years agopython: Return correct PacketPayload subclasses from Packet.payload()
Martin Ling [Tue, 11 Nov 2014 23:44:26 +0000 (23:44 +0000)]
python: Return correct PacketPayload subclasses from Packet.payload()

9 years agopython: Fix error handling for callbacks.
Martin Ling [Tue, 11 Nov 2014 21:04:44 +0000 (21:04 +0000)]
python: Fix error handling for callbacks.

9 years agopython: Implement equality checks for EnumValue derived classes.
Martin Ling [Tue, 11 Nov 2014 20:11:32 +0000 (20:11 +0000)]
python: Implement equality checks for EnumValue derived classes.

Fixes bug #443.

9 years agobindings: Support per-language extensions to EnumValue wrappers.
Martin Ling [Tue, 11 Nov 2014 18:26:50 +0000 (18:26 +0000)]
bindings: Support per-language extensions to EnumValue wrappers.

9 years agopython: Fix mapping of vector & map attributes to Python types.
Martin Ling [Tue, 11 Nov 2014 15:29:35 +0000 (15:29 +0000)]
python: Fix mapping of vector & map attributes to Python types.

Fixes bug #382.

9 years agobindings: Use new %attributevector and %attributemap macros.
Martin Ling [Tue, 11 Nov 2014 14:50:55 +0000 (14:50 +0000)]
bindings: Use new %attributevector and %attributemap macros.

9 years agobindings: Expose ConfigKey::identifier as an attribute.
Martin Ling [Tue, 11 Nov 2014 01:24:19 +0000 (01:24 +0000)]
bindings: Expose ConfigKey::identifier as an attribute.

9 years agobindings: Expose EnumValue::id and EnumValue::name as attributes.
Martin Ling [Tue, 11 Nov 2014 01:18:58 +0000 (01:18 +0000)]
bindings: Expose EnumValue::id and EnumValue::name as attributes.

9 years agobindings: Wrap EnumValue base class.
Martin Ling [Wed, 29 Oct 2014 14:36:45 +0000 (14:36 +0000)]
bindings: Wrap EnumValue base class.

9 years agobindings: Rename ConfigKey::get(string) to get_by_identifier().
Martin Ling [Wed, 29 Oct 2014 14:33:46 +0000 (14:33 +0000)]
bindings: Rename ConfigKey::get(string) to get_by_identifier().

The polymorphism with get(int) causes problems here when a char * is passed.

9 years agocxx: Implement more of EnumValue in template.
Martin Ling [Wed, 29 Oct 2014 14:31:31 +0000 (14:31 +0000)]
cxx: Implement more of EnumValue in template.

9 years agooutput: Add srzip, the session file format.
Bert Vermeulen [Tue, 11 Nov 2014 22:23:09 +0000 (23:23 +0100)]
output: Add srzip, the session file format.

The 'filename' option is required: this module creates the zip file
itself, and never actually outputs anything back to the calling frontend.

9 years agounit tests: Add a test case for sr_dev_inst_channel_add().
Uwe Hermann [Tue, 11 Nov 2014 21:45:20 +0000 (22:45 +0100)]
unit tests: Add a test case for sr_dev_inst_channel_add().

9 years agounit tests: Add a test case for sr_dev_inst_user_new().
Uwe Hermann [Tue, 11 Nov 2014 20:59:23 +0000 (21:59 +0100)]
unit tests: Add a test case for sr_dev_inst_user_new().

9 years agoAdd sr_dev_inst_user_new(), sr_dev_inst_channel_add().
Uwe Hermann [Tue, 11 Nov 2014 20:58:49 +0000 (21:58 +0100)]
Add sr_dev_inst_user_new(), sr_dev_inst_channel_add().

9 years agouni tests: Use sr_dev_inst_channels_get() to fix the build.
Uwe Hermann [Tue, 11 Nov 2014 20:28:16 +0000 (21:28 +0100)]
uni tests: Use sr_dev_inst_channels_get() to fix the build.

9 years agobindings: Use getters now that 'struct sr_dev_inst' is opaque.
Uwe Hermann [Tue, 11 Nov 2014 15:55:37 +0000 (16:55 +0100)]
bindings: Use getters now that 'struct sr_dev_inst' is opaque.

9 years agoConstify the sdi parameter of all sr_dev_inst_*() getters.
Uwe Hermann [Tue, 11 Nov 2014 11:44:37 +0000 (12:44 +0100)]
Constify the sdi parameter of all sr_dev_inst_*() getters.

9 years agoMake 'struct sr_dev_inst' opaque.
Uwe Hermann [Tue, 11 Nov 2014 11:24:08 +0000 (12:24 +0100)]
Make 'struct sr_dev_inst' opaque.

9 years agoAdd sr_dev_inst_channels_get() and sr_dev_inst_channel_groups_get().
Uwe Hermann [Tue, 11 Nov 2014 10:51:53 +0000 (11:51 +0100)]
Add sr_dev_inst_channels_get() and sr_dev_inst_channel_groups_get().

9 years agosession_driver.c: Allow querying of SR_CONF_CAPTURE_UNITSIZE.
Uwe Hermann [Sun, 9 Nov 2014 19:04:09 +0000 (20:04 +0100)]
session_driver.c: Allow querying of SR_CONF_CAPTURE_UNITSIZE.

9 years agoBrymen BM25x: Drop unneeded _ser/_SER suffix.
Uwe Hermann [Sun, 2 Nov 2014 15:40:40 +0000 (16:40 +0100)]
Brymen BM25x: Drop unneeded _ser/_SER suffix.

There's only one cable for this DMM, thus there's no need for a
_ser/_SER suffix or for specifying the cable name.

9 years agools: Fix a serial port related issue on FreeBSD.
Uffe Jakobsen [Sat, 1 Nov 2014 18:35:30 +0000 (19:35 +0100)]
ols: Fix a serial port related issue on FreeBSD.

Add sp_drain() to ensure bytes have actually been transmitted
over the wire.

This fixes bug #414.

9 years agoOnly sr_dev_inst_free() should free channel groups.
Bert Vermeulen [Sat, 1 Nov 2014 12:18:09 +0000 (13:18 +0100)]
Only sr_dev_inst_free() should free channel groups.

9 years agofx2lafw: Fix wide (16bit) sampling case.
Uwe Hermann [Wed, 29 Oct 2014 21:46:57 +0000 (22:46 +0100)]
fx2lafw: Fix wide (16bit) sampling case.

This fixes bug #373.

9 years agozeroplus-logic-cube: Add support for AKIP-9101.
Bert Vermeulen [Wed, 29 Oct 2014 12:26:57 +0000 (13:26 +0100)]
zeroplus-logic-cube: Add support for AKIP-9101.

Thanks to Nikita Nazarenko for the patch.

9 years agoMake sr_dev_inst_connid_get() available without libusb
Soeren Apel [Sun, 26 Oct 2014 19:51:21 +0000 (20:51 +0100)]
Make sr_dev_inst_connid_get() available without libusb

9 years agohantek-dso: Fix driver/global/channel group config keys.
Bert Vermeulen [Mon, 27 Oct 2014 16:03:02 +0000 (17:03 +0100)]
hantek-dso: Fix driver/global/channel group config keys.

This was way behind and did not yet support channel groups.

9 years agoChange SR_CONF_FILTER key to a boolean type.
Bert Vermeulen [Mon, 27 Oct 2014 15:59:01 +0000 (16:59 +0100)]
Change SR_CONF_FILTER key to a boolean type.

This was an ill-defined string before, now it's simply something
you turn on or off on a channel.

9 years agoasix-sigma: Publish driver options.
Bert Vermeulen [Sun, 26 Oct 2014 23:46:19 +0000 (00:46 +0100)]
asix-sigma: Publish driver options.

9 years agoscpi-pps: Publish driver options.
Bert Vermeulen [Sun, 26 Oct 2014 23:37:04 +0000 (00:37 +0100)]
scpi-pps: Publish driver options.

9 years agodemo: Rearrange driver and device options.
Bert Vermeulen [Sun, 26 Oct 2014 22:54:55 +0000 (23:54 +0100)]
demo: Rearrange driver and device options.

9 years agocem-dt-885x: Publish driver options.
Bert Vermeulen [Sun, 26 Oct 2014 22:36:10 +0000 (23:36 +0100)]
cem-dt-885x: Publish driver options.

9 years agoatten-pps3xxx: Publish driver options.
Bert Vermeulen [Sun, 26 Oct 2014 22:33:46 +0000 (23:33 +0100)]
atten-pps3xxx: Publish driver options.

9 years agoMore robust searching for config keys.
Bert Vermeulen [Mon, 27 Oct 2014 15:58:33 +0000 (16:58 +0100)]
More robust searching for config keys.

9 years agoAdd config info for device type and limit config keys.
Bert Vermeulen [Sun, 26 Oct 2014 22:32:29 +0000 (23:32 +0100)]
Add config info for device type and limit config keys.

9 years agoAdd support for the UNI-T UT71x series (aka Voltcraft VC-920/940/960).
Uwe Hermann [Sat, 25 Oct 2014 15:14:30 +0000 (17:14 +0200)]
Add support for the UNI-T UT71x series (aka Voltcraft VC-920/940/960).

Tested on the Voltcraft VC-920 and VC-940 (both UT-D02 and UT-D04
cables), but it should work for all devices in this series without
any changes.

9 years agoAdd UNI-T UT71x DMM parser.
Uwe Hermann [Sat, 25 Oct 2014 09:36:58 +0000 (11:36 +0200)]
Add UNI-T UT71x DMM parser.

9 years agosr_dev_inst_connid_get() requires libusb.
Bert Vermeulen [Wed, 22 Oct 2014 22:22:07 +0000 (00:22 +0200)]
sr_dev_inst_connid_get() requires libusb.

9 years agohantek-dso: Properly zero out MQ flags.
Bert Vermeulen [Wed, 22 Oct 2014 20:19:41 +0000 (22:19 +0200)]
hantek-dso: Properly zero out MQ flags.

9 years agoAccept subtype of expected GVariant values.
Bert Vermeulen [Wed, 22 Oct 2014 20:18:52 +0000 (22:18 +0200)]
Accept subtype of expected GVariant values.

9 years agoExport LCR meter 'auto' bits as config keys instead of mqflags.
Janne Huttunen [Mon, 20 Oct 2014 20:03:20 +0000 (23:03 +0300)]
Export LCR meter 'auto' bits as config keys instead of mqflags.

The automatic selections of the measured quantity and equivalent circuit
model are more part of the configuration of the meter than attributes
of the measurement result. To reflect this, model them as config keys
instead of mqflags. This allows a driver that supports remote control to
implement 'set' method for them and has the additional benefit of saveing
two flag bits.

9 years agoinput/csv: Skip header line.
Jens Steinhauser [Sun, 19 Oct 2014 17:53:08 +0000 (19:53 +0200)]
input/csv: Skip header line.

9 years agoscpi-pps: Add support for Fluke/Philips PM2800 series.
Bert Vermeulen [Sat, 18 Oct 2014 21:20:47 +0000 (23:20 +0200)]
scpi-pps: Add support for Fluke/Philips PM2800 series.

9 years agoscpi-pps: Move non-standard data type processing to SCPI parser.
Bert Vermeulen [Sat, 18 Oct 2014 21:18:48 +0000 (23:18 +0200)]
scpi-pps: Move non-standard data type processing to SCPI parser.

9 years agoscpi-pps: Add channel probe facility to scan.
Bert Vermeulen [Sat, 18 Oct 2014 21:12:56 +0000 (23:12 +0200)]
scpi-pps: Add channel probe facility to scan.

If the number and specs of the device's channels are not static, i.e.
need to be probed, this facility is needed.

Initially this will be used for the Philips PM2800 series, where only
the model returned by *IDN? is needed. However this could also be used
to do actual discovery with vendor-specific SCPI commands.

9 years agoFix typos.
Bert Vermeulen [Sat, 18 Oct 2014 21:10:46 +0000 (23:10 +0200)]
Fix typos.

9 years agoFree channel group private storage when clearing device instance.
Bert Vermeulen [Sat, 18 Oct 2014 21:09:47 +0000 (23:09 +0200)]
Free channel group private storage when clearing device instance.

9 years agoRename "SERIAL" -> "SERIES".
Janne Huttunen [Mon, 13 Oct 2014 15:56:16 +0000 (18:56 +0300)]
Rename "SERIAL" -> "SERIES".

Use the more correct term "SERIES" for the corresponding equivalent
circuit model.

9 years agoAllow building libsigrok without libserialport.
Janne Huttunen [Mon, 13 Oct 2014 15:51:32 +0000 (18:51 +0300)]
Allow building libsigrok without libserialport.

Since the DER EE DE-5000 driver is currently the only user of
the es51919 module and it depends on the libserialport, compile
the module only if the DER EE DE-5000 driver is enabled. This
allows libsigrok to be built without libserialport again.

9 years agoAuto-set sdi->connection_id for serial devices in the getter
Soeren Apel [Thu, 16 Oct 2014 20:44:31 +0000 (22:44 +0200)]
Auto-set sdi->connection_id for serial devices in the getter

9 years agoyokogawa-dlm: Populate sdi->serial_num and sdi->version
Soeren Apel [Thu, 16 Oct 2014 20:43:05 +0000 (22:43 +0200)]
yokogawa-dlm: Populate sdi->serial_num and sdi->version

9 years agorigol-ds: Populate sdi->serial_num
Soeren Apel [Thu, 16 Oct 2014 20:42:50 +0000 (22:42 +0200)]
rigol-ds: Populate sdi->serial_num

9 years agohameg-hmo: Populate sdi->serial_num
Soeren Apel [Thu, 16 Oct 2014 20:42:38 +0000 (22:42 +0200)]
hameg-hmo: Populate sdi->serial_num

9 years agoscpi-pps: Populate sdi->serial_num and fix hw_info mem leak
Soeren Apel [Thu, 16 Oct 2014 20:42:19 +0000 (22:42 +0200)]
scpi-pps: Populate sdi->serial_num and fix hw_info mem leak

9 years agoscpi: Populate sdi->connection_id
Soeren Apel [Thu, 16 Oct 2014 20:41:57 +0000 (22:41 +0200)]
scpi: Populate sdi->connection_id

9 years agosysclk-lwla: Let the sdi getter populate sdi->connection_id
Soeren Apel [Thu, 16 Oct 2014 20:40:58 +0000 (22:40 +0200)]
sysclk-lwla: Let the sdi getter populate sdi->connection_id

This fixes bug #441.

9 years agoikalogic-scanalogic2: Let the sdi getter popuplage sdi->connection_id
Soeren Apel [Thu, 16 Oct 2014 20:15:54 +0000 (22:15 +0200)]
ikalogic-scanalogic2: Let the sdi getter popuplage sdi->connection_id

This fixes bug #440.

9 years agoProvide getters for sr_dev_inst member access
Soeren Apel [Thu, 16 Oct 2014 18:17:04 +0000 (20:17 +0200)]
Provide getters for sr_dev_inst member access

9 years agoscpi-pps: Start acquisition on the first enabled channel.
Bert Vermeulen [Fri, 17 Oct 2014 01:00:55 +0000 (03:00 +0200)]
scpi-pps: Start acquisition on the first enabled channel.

9 years agoscpi-pps: Optimize channel selection.
Bert Vermeulen [Fri, 17 Oct 2014 01:00:05 +0000 (03:00 +0200)]
scpi-pps: Optimize channel selection.

This avoids sending a channel selection command to the device if
the channel we're working on is already on the same underlying
output channel.

9 years agoscpi-pps: Disable beeper during session.
Bert Vermeulen [Thu, 16 Oct 2014 13:24:27 +0000 (15:24 +0200)]
scpi-pps: Disable beeper during session.

At least the Rigol DP800 series trigger the beeper when changing
channels remotely. Which gets rather annoying when doing acquisition
on three channels as fast as you can.

9 years agoscpi-pps: Properly clean up acquisition session.
Bert Vermeulen [Thu, 16 Oct 2014 12:55:56 +0000 (14:55 +0200)]
scpi-pps: Properly clean up acquisition session.

9 years agoscpi-pps: Use only standard SCPI for Rigol DP800 series.
Bert Vermeulen [Thu, 16 Oct 2014 11:23:21 +0000 (13:23 +0200)]
scpi-pps: Use only standard SCPI for Rigol DP800 series.

9 years agoFix short names for SR_CONF_OUTPUT_VOLTAGE_TARGET/_CURRENT_LIMIT.
Bert Vermeulen [Thu, 16 Oct 2014 11:22:51 +0000 (13:22 +0200)]
Fix short names for SR_CONF_OUTPUT_VOLTAGE_TARGET/_CURRENT_LIMIT.

9 years agobindings: Remove Device::description().
Martin Ling [Sun, 12 Oct 2014 16:57:27 +0000 (17:57 +0100)]
bindings: Remove Device::description().

9 years agobindings: Add Session::filename() and corresponding SWIG attribute.
Martin Ling [Sun, 12 Oct 2014 16:53:10 +0000 (17:53 +0100)]
bindings: Add Session::filename() and corresponding SWIG attribute.

9 years agobindings: Add accessor to obtain parent object.
Martin Ling [Sun, 12 Oct 2014 16:48:44 +0000 (17:48 +0100)]
bindings: Add accessor to obtain parent object.

9 years agobindings: add SWIG attribute for Packet::type.
Martin Ling [Fri, 10 Oct 2014 18:37:47 +0000 (19:37 +0100)]
bindings: add SWIG attribute for Packet::type.

9 years agoC++: Don't clear Session::_owned_devices() in Session::remove_devices().
Martin Ling [Sun, 12 Oct 2014 15:18:30 +0000 (16:18 +0100)]
C++: Don't clear Session::_owned_devices() in Session::remove_devices().

Owned devices are freed only when the session is destroyed.

9 years agoTrack sdis created by sr_session_load(), and free in sr_session_destroy().
Martin Ling [Sun, 12 Oct 2014 14:56:36 +0000 (15:56 +0100)]
Track sdis created by sr_session_load(), and free in sr_session_destroy().

9 years agoCorrect description of sr_session.devs.
Martin Ling [Sun, 12 Oct 2014 14:39:36 +0000 (15:39 +0100)]
Correct description of sr_session.devs.

9 years agoUse SR_CONF_OUTPUT_VOLTAGE_TARGET and _CURRENT_LIMIT.
Bert Vermeulen [Wed, 15 Oct 2014 10:03:00 +0000 (12:03 +0200)]
Use SR_CONF_OUTPUT_VOLTAGE_TARGET and _CURRENT_LIMIT.

These describe them better; the two are fundamentally different
things to set.

9 years agoconfigure.ac: Drop ols Windows exception, should be obsolete.
Uwe Hermann [Mon, 13 Oct 2014 14:23:48 +0000 (16:23 +0200)]
configure.ac: Drop ols Windows exception, should be obsolete.

(see #205)

9 years agoscpi-pps: Split boolean set options into enable/disable.
Bert Vermeulen [Fri, 10 Oct 2014 14:00:33 +0000 (16:00 +0200)]
scpi-pps: Split boolean set options into enable/disable.

This makes it easier to support devices that need something else
than "ON" or "OFF".

9 years agoRename SR_CONF_LCR_METER to SR_CONF_LCRMETER.
Uwe Hermann [Mon, 13 Oct 2014 09:39:15 +0000 (11:39 +0200)]
Rename SR_CONF_LCR_METER to SR_CONF_LCRMETER.

(to be consistent with some other key names)

9 years agolibsigrok-internal.h: Fix some outdated comments.
Uwe Hermann [Sun, 12 Oct 2014 23:06:09 +0000 (01:06 +0200)]
libsigrok-internal.h: Fix some outdated comments.

9 years agoAdd driver for DER EE DE-5000 LCR meter.
Janne Huttunen [Sat, 11 Oct 2014 12:47:35 +0000 (15:47 +0300)]
Add driver for DER EE DE-5000 LCR meter.

Add a driver for the DER EE DE-5000 LCR meter. This meter is based on
the Cyrustek ES51919/ES51920 chipset and communicates with the host
computer via an optional connectivity kit.

The kit uses an optoisolated unidirectional link to connect to the
meter and an USB cable on the host side. Internally the connection is
using the FTDI FT232R USB UART chip i.e. from the host computer point
of view the meter is connected into an RS-232 serial port.

This driver implements just a thin shim layer for registering the
driver and uses the es51919 module for all the actual work.

9 years agoAdd protocol decoder for Cyrustek ES51919 LCR meter chip.
Janne Huttunen [Sat, 11 Oct 2014 12:47:34 +0000 (15:47 +0300)]
Add protocol decoder for Cyrustek ES51919 LCR meter chip.

Add a protocol decoder for the Cyrustek ES51919 LCR meter chip.
This chipset (together with ES51920 front-end) is supposedly used
by multiple different portable LCR meters including at least
DER EE DE-5000, Yihua V&A VA520, Mastech MS5308, Uni-T UT612,
CEM DT-9935 and various OEM rebadges of them.

The communication protocol seems to be implemented on the Cyrustek
chip itself so all the different models are expected to use the
same protocol if they implement a host connection. Unfortunately
the protocol is not available in the public documentation of the
chipset, so this implementation is based on reverse engineering it
from traffic captures.

The actual connection between the meter and the host computer may be
different from meter to meter even when based on the same chip. This
module implements a decoder for the protocol and some common helper
functions for interfacing with the meter via an RS-232 serial port.