Commit Graph

2033 Commits

Author SHA1 Message Date
Uwe Hermann c4f2dfd0f0 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.
2013-11-15 09:36:51 +01:00
Uwe Hermann 0dcb0c981e README: Document new libserialport requirement. 2013-11-14 23:48:29 +01:00
Uwe Hermann 6a76efebc1 serial.c: Fix a few return values. 2013-11-14 23:48:28 +01:00
Uwe Hermann a0dfaa6c4c serial.c: Cosmetics, coding-style. 2013-11-14 23:48:28 +01:00
Martin Ling 0d4405ce5e Update for renamed libserialport header file. 2013-11-14 23:48:16 +01:00
Martin Ling f2b830f71d Fix silly copy-paste error. 2013-11-14 23:48:16 +01:00
Martin Ling c9bc57b6bc Update to new libserialport API. 2013-11-14 23:48:16 +01:00
Martin Ling a9bce5a561 Use libserialport for serial port access. 2013-11-14 23:48:16 +01:00
Uwe Hermann 3220827c57 error.c: Add SR_ERR_PROBE_GROUP handling. 2013-11-11 07:53:52 +01:00
Uwe Hermann a0dc461d7b doxygen: Fix/improve 'struct sr_probe_group' documentation. 2013-11-11 07:42:51 +01:00
Uwe Hermann 57d0a2e195 unittests: Update for probe-groups changes. 2013-11-10 23:22:18 +01:00
Bert Vermeulen 58f4336963 rigol-ds1xx2: Unbreak listing of _VDIV and _COUPLING 2013-11-08 01:03:19 +01:00
Bert Vermeulen 5f77dffc02 rigol-ds1xx2: Unbreak listing of SR_CONF_DEVICE_OPTIONS 2013-11-08 01:03:19 +01:00
Bert Vermeulen be60a9e4a9 rigol-ds1xx2: Better error reporting when probe groups are required 2013-11-08 01:03:19 +01:00
Bert Vermeulen 78bcc55afa rigol-ds1xx2: Minor coding style fixes 2013-11-08 01:03:19 +01:00
Bert Vermeulen bdc955bc06 Add SR_ERR_PROBE_GROUP, denoting a probe group requirement 2013-11-08 01:03:18 +01:00
Bert Vermeulen d3c74a6fb0 probe_groups: API changes required to implement probe groups. 2013-11-08 01:03:18 +01:00
Bert Vermeulen ba358ffd83 rigol-ds1xx2: fix bitrot in device cleanup code 2013-11-08 01:03:18 +01:00
Bert Vermeulen e43fdd8d4f rigol-ds1xx2: Don't assume valid sdi 2013-11-08 01:03:18 +01:00
Bert Vermeulen 57ecdbd742 Update API documentation 2013-11-08 01:03:18 +01:00
Bert Vermeulen 45311368de rigol-ds1xx2: Skip obsolete fields 2013-11-08 01:03:18 +01:00
Martin Ling af54bac90a python: Map probe group configuration to ProbeGroup attributes. 2013-11-08 01:03:17 +01:00
Martin Ling 417e9f3ab4 python: Add classes for probes and probe groups. 2013-11-08 01:03:17 +01:00
Martin Ling f48e0249b4 rigol-ds1xx2: implement probe group specific options. 2013-11-08 01:03:17 +01:00
Martin Ling 3d3a601e80 rigol-ds1xx2: create probe groups. 2013-11-08 01:03:17 +01:00
Martin Ling 5150ef336b probe_groups: Add a name field to sr_probe_group. 2013-11-08 01:03:17 +01:00
Martin Ling 909cc050bf probe_groups: initialise sdi->probe_groups to NULL. 2013-11-08 01:03:17 +01:00
Martin Ling 54e7a3d0d7 probe_groups: Update Python bindings for API change. 2013-11-08 01:03:16 +01:00
Bert Vermeulen 5daed4bc6d Use priv for consistency 2013-11-08 01:03:16 +01:00
Martin Ling 8f996b8948 probe_groups: API changes required to implement probe groups. 2013-11-08 01:03:16 +01:00
Dan Horák 8dce54f7aa update udev rules
With usbtmc driver being classified under usbmisc in newer kernels the udev rules
need an update.
2013-11-04 10:56:19 +01:00
Uwe Hermann 360079e78e 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.
2013-11-04 01:28:12 +01:00
Uwe Hermann 3f6549307b configure.ac: Bump package version to 0.2.2. 2013-11-04 01:24:49 +01:00
Uwe Hermann 8e2da1a650 NEWS: Update for upcoming 0.2.2 release. 2013-11-04 01:24:49 +01:00
Uwe Hermann d69d26429f output/analog: SR_UNIT_REVOLUTIONS_PER_MINUTE: Add missing break. 2013-11-04 01:14:57 +01:00
Uwe Hermann 21d464a7e5 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.
2013-11-04 01:14:57 +01:00
Uwe Hermann 8823146edf contrib/z60_libsigrok.rules: Add entry for the Saleae Logic16. 2013-11-04 01:14:57 +01:00
Uwe Hermann 5724a20af7 configure.ac: Fix list sorting (cosmetic). 2013-11-04 01:14:57 +01:00
Uwe Hermann 122d33d47d configure.ac: Move a teleinfo snippet to the correct place.
This breaks some configure use-cases otherwise.
2013-11-04 01:14:57 +01:00
Uwe Hermann 9b2f03bbd2 README.devices: uni-t-dmm devices need VID/PID now. 2013-11-04 01:14:57 +01:00
Uwe Hermann 5fa12e93e3 README.devices: Updates. 2013-11-04 01:14:57 +01:00
Uwe Hermann 53f05fa80f 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.
2013-11-04 01:14:56 +01:00
Uwe Hermann ef1020f9cb HACKING: Updates, some additions. 2013-11-04 01:14:56 +01:00
Dan Horák b775d753e3 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
2013-11-03 14:20:47 +01:00
Uwe Hermann 3a8cad9137 metex14: Handle a few missing cases for overflow. 2013-10-31 13:47:30 +01:00
Uwe Hermann 88f544f27e Add support for the Metex M-4650CR.
(the Voltcraft M-4650CR is a rebadged Metex M-4650CR)
2013-10-30 14:44:44 +01:00
Uwe Hermann 2b83d7fee1 Add support for the Voltcraft M-4650CR. 2013-10-30 14:44:44 +01:00
Marc Schink 4a35548bbe Initial Comma-separated values (CSV) input support. 2013-10-30 14:43:56 +01:00
Uwe Hermann 6bf4273ee8 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.
2013-10-28 22:59:32 +01:00
Uwe Hermann 71185b48a1 Unit tests for 'binary' input format & version APIs. 2013-10-28 22:08:34 +01:00