]>
sigrok.org Git - libsigrok.git/log
Uwe Hermann [Sun, 21 Oct 2012 20:41:39 +0000 (22:41 +0200)]
We now require libusb >= 1.0.9.
This is due to the use of libusb_error_name().
Uwe Hermann [Sun, 21 Oct 2012 20:40:43 +0000 (22:40 +0200)]
sr_init/sr_exit: Improve docs, add error checks.
Peter Stuge [Sun, 21 Oct 2012 18:23:36 +0000 (20:23 +0200)]
Add and init libusb_context * in struct sr_context when using libusb-1.0
This allows hardware drivers to use a common libusb_context.
Peter Stuge [Sun, 21 Oct 2012 18:23:14 +0000 (20:23 +0200)]
Add a struct sr_context * parameter to sr_init() and sr_exit()
Uwe Hermann [Fri, 19 Oct 2012 08:35:11 +0000 (10:35 +0200)]
Move 'struct drv_context' to sigrok-internal.h.
It's not meant to be visible to frontends.
Alexandru Gagniuc [Sat, 20 Oct 2012 01:40:50 +0000 (20:40 -0500)]
radioshack-dmm: Implement support for "LOGIC" mode
LOGIC mode sends the following data:
V < 0 : actual voltage
0 <= V < 1 : LOW
1 <= V < 2 : actual voltage
2 <= V : HIGH
We follow the same idea, and set our unit to BOOLEAN for the crazy
case (HIGH or LOW).
Signed-off-by: Alexandru Gagniuc <redacted>
Alexandru Gagniuc [Sat, 20 Oct 2012 01:31:19 +0000 (20:31 -0500)]
libsigrok: (Trivial) fix packet type in datafeed_dump
datafeed_dump would print SR_DF_META_LOGIC when a SR_DF_META_ANALOG
was recieved. Fix that.
Signed-off-by: Alexandru Gagniuc <redacted>
Alexandru Gagniuc [Fri, 19 Oct 2012 22:50:20 +0000 (17:50 -0500)]
libsigrok: (Trivial) Add support for 2400 baud
Signed-off-by: Alexandru Gagniuc <redacted>
Bert Vermeulen [Thu, 18 Oct 2012 20:43:03 +0000 (22:43 +0200)]
add SR_HWOPT_* documentation
Bert Vermeulen [Tue, 16 Oct 2012 21:32:39 +0000 (23:32 +0200)]
fluke-dmm: add support for Fluke 187
Bert Vermeulen [Tue, 16 Oct 2012 21:31:18 +0000 (23:31 +0200)]
analog: add pretty-printer for dBu and dBV
Bert Vermeulen [Tue, 16 Oct 2012 21:28:04 +0000 (23:28 +0200)]
add SR_UNIT_DECIBEL_VOLT (dBu)
Bert Vermeulen [Tue, 16 Oct 2012 12:03:40 +0000 (14:03 +0200)]
analog: sane printing of very small and negative values
Uwe Hermann [Tue, 16 Oct 2012 12:48:39 +0000 (14:48 +0200)]
HACKING: Cosmetics.
Uwe Hermann [Tue, 16 Oct 2012 10:08:01 +0000 (12:08 +0200)]
Build fix for Windows/MinGW.
On Window/MinGW 'recv' seems to be already defined in some headers.
Use 'receive' instead, for now.
Uwe Hermann [Tue, 16 Oct 2012 09:24:03 +0000 (11:24 +0200)]
Re-add HACKING file after repo split.
Alexandru Gagniuc [Tue, 16 Oct 2012 06:23:50 +0000 (01:23 -0500)]
radioshack-dmm: (Trivial) Convenience fixes
While testing the new radioshack-dmm driver with pulseview, I found
a few inconvenients.
1. Print an info message when a port is probed, and when a device is
found. This makes it easy to tell if and where the driver is looking.
2. num_samples was not reset after the first aquisition, so the
second aquisition would quit right away. Reset num_samples at start
of a new aquisition.
3. There's no need to open the serial port RW, so change O_RDWR to
O_RDONLY when opening the port.
These changes are too trivial to split into different patches.
Signed-off-by: Alexandru Gagniuc <redacted>
Bert Vermeulen [Mon, 15 Oct 2012 16:25:48 +0000 (18:25 +0200)]
radioshack-dmm: build fixes
Alexandru Gagniuc [Mon, 15 Oct 2012 06:17:32 +0000 (01:17 -0500)]
radioshack-dmm: Add support for Radioshack 22-812 DMM
Signed-off-by: Alexandru Gagniuc <redacted>
Alexandru Gagniuc [Mon, 15 Oct 2012 06:14:04 +0000 (01:14 -0500)]
libsigrok.h: Add measured quantity and units used by Radioshack 22-812
The Radioshack 22-812 can measure parameters such as transistor gain,
dbm, etc. Add those to libsigrok.h.
The SR_UNIT_UNITLESS is for quantities that do not have units. Any
ratio or gain are just factors, whic do not have units. Specifically,
a transistor's gain, or hFE, is a unitless quantity.
Signed-off-by: Alexandru Gagniuc <redacted>
Alexandru Gagniuc [Mon, 15 Oct 2012 06:12:53 +0000 (01:12 -0500)]
serial: (Trivial) add support for 4800 baud
Signed-off-by: Alexandru Gagniuc <redacted>
Alexandru Gagniuc [Mon, 15 Oct 2012 06:11:39 +0000 (01:11 -0500)]
.qitignore: Ignore KDE backup files
*.kate-swp files can become annoying, so ignore them.
Signed-off-by: Alexandru Gagniuc <redacted>
Bert Vermeulen [Mon, 15 Oct 2012 09:32:36 +0000 (11:32 +0200)]
analog: support AC+DC unit modifier
Bert Vermeulen [Mon, 8 Oct 2012 21:56:06 +0000 (23:56 +0200)]
don't accept numbers as probe identifiers in trigger string
Only the probe name, as supplied by the device driver, is accepted.
Uwe Hermann [Thu, 11 Oct 2012 21:46:30 +0000 (23:46 +0200)]
Quick workaround for g_match_info_unref().
Uwe Hermann [Wed, 10 Oct 2012 21:08:32 +0000 (23:08 +0200)]
README: Add status, update URL, small fixes.
Bert Vermeulen [Mon, 8 Oct 2012 16:52:36 +0000 (18:52 +0200)]
updated URLs and description
Bert Vermeulen [Mon, 8 Oct 2012 13:53:00 +0000 (15:53 +0200)]
restore pre-split ignores
Uwe Hermann [Thu, 27 Sep 2012 21:29:33 +0000 (23:29 +0200)]
sr: struct drv_context is global now.
Bert Vermeulen [Tue, 25 Sep 2012 17:38:59 +0000 (19:38 +0200)]
fluke-dmm: support for all basic 287 functionality
Bert Vermeulen [Tue, 25 Sep 2012 17:34:53 +0000 (19:34 +0200)]
sr: add support for conductance measurements in Siemens
Bert Vermeulen [Tue, 25 Sep 2012 16:33:42 +0000 (18:33 +0200)]
sr: add support for pulse width measurements
Bert Vermeulen [Sat, 22 Sep 2012 22:03:24 +0000 (00:03 +0200)]
fluke-dmm: definitely use CR as line terminator
Bert Vermeulen [Sat, 22 Sep 2012 21:52:23 +0000 (23:52 +0200)]
fluke-dmm: add Fluke 287 to supported list
Bert Vermeulen [Sat, 22 Sep 2012 21:50:51 +0000 (23:50 +0200)]
sr: always turn off ICRNL on serial ports
It does rather screw with protocols that use CR.
Bert Vermeulen [Mon, 17 Sep 2012 14:31:15 +0000 (16:31 +0200)]
fluke-dmm: flesh out the driver API
Bert Vermeulen [Mon, 17 Sep 2012 13:40:41 +0000 (15:40 +0200)]
fluke-dmm: auto-discover serial bitrate if not provided
Bert Vermeulen [Sun, 16 Sep 2012 19:27:06 +0000 (21:27 +0200)]
fluke-dmm: don't log anything if no conn params given
Bert Vermeulen [Sun, 16 Sep 2012 19:07:17 +0000 (21:07 +0200)]
fluke-dmm: fix discovery
Bert Vermeulen [Sun, 16 Sep 2012 12:07:21 +0000 (14:07 +0200)]
sr: turn off canonical mode and echo ion serial ports by default
Bert Vermeulen [Sat, 15 Sep 2012 16:28:43 +0000 (18:28 +0200)]
fluke-dmm: build fixes
Bert Vermeulen [Tue, 11 Sep 2012 18:11:13 +0000 (20:11 +0200)]
fluke-dmm: basic scan functionality
Bert Vermeulen [Mon, 10 Sep 2012 20:31:29 +0000 (22:31 +0200)]
fluke-dmm: initial driver skeleton
Bert Vermeulen [Sun, 16 Sep 2012 21:43:47 +0000 (23:43 +0200)]
agilent-dmm: don't log anything if no conn params given
Bert Vermeulen [Tue, 11 Sep 2012 19:27:26 +0000 (21:27 +0200)]
sr: make struct drv_context global
Bert Vermeulen [Tue, 11 Sep 2012 19:20:50 +0000 (21:20 +0200)]
fx2lafw: use default libusb context
Bert Vermeulen [Tue, 11 Sep 2012 19:16:16 +0000 (21:16 +0200)]
hantek-dso: use default libusb context
Bert Vermeulen [Mon, 10 Sep 2012 20:14:37 +0000 (22:14 +0200)]
sr: enable genericdmm and agilent-dmm drivers by default
Bert Vermeulen [Mon, 10 Sep 2012 19:27:50 +0000 (21:27 +0200)]
agilent-dmm: fix model identifiers
Bert Vermeulen [Sun, 9 Sep 2012 23:00:48 +0000 (01:00 +0200)]
agilent-dmm: tentative support for all U123x and U125x models
Only tested on U1233A, but it just might work.
The U125x protocol decoding only supports voltage, current, resistance,
capacitance and diode measurements for now.
Bert Vermeulen [Sun, 9 Sep 2012 22:13:26 +0000 (00:13 +0200)]
agilent-dmm: code cleanup
This should make it easier to support other Agilent U12xx models
Bert Vermeulen [Sun, 9 Sep 2012 20:49:07 +0000 (22:49 +0200)]
agilent-dmm: fix AC/DC mode detection
Bert Vermeulen [Sun, 9 Sep 2012 20:48:22 +0000 (22:48 +0200)]
agilent-dmm: make parser deal with input better
Bert Vermeulen [Sat, 8 Sep 2012 12:53:49 +0000 (14:53 +0200)]
agilent-dmm: remove IDN check at 1Hz, we just don't need it.
Some debug message cleanup.
Bert Vermeulen [Sat, 8 Sep 2012 11:24:48 +0000 (13:24 +0200)]
sr: add new analog output module
This outputs text representation of SR_DF_ANALOG packets. Unlike the
float module however, it also outputs the standard abbreviations of
SI units corresponding to the packet's MQ and unit.
It also makes an effort to multiply or divide the floating point value
as needed to the nearest multiple or fraction, and inserts the
appropriate SI prefix to match.
Bert Vermeulen [Sat, 8 Sep 2012 01:06:45 +0000 (03:06 +0200)]
agilent-dmm: support for submodes
Bert Vermeulen [Sat, 8 Sep 2012 00:31:08 +0000 (02:31 +0200)]
sr: add recv/cleanup calls to output module API
The new output module callbacks will be init, recv and cleanup. The
existing data and event callbacks still work, but will be phased out
as existing modules get converted.
The recv() callback gets a copy of every packet on the session bus,
and thus has visibility of all metadata, allowing it to properly
output any acquired data.
Bert Vermeulen [Sat, 8 Sep 2012 00:28:41 +0000 (02:28 +0200)]
genericdmm/victor-70c: fix resistance and frequency measurements
Joel Holdsworth [Sat, 7 Jul 2012 08:32:00 +0000 (09:32 +0100)]
sr: Refactored sr_samplerate_string into a more general function: sr_si_string_u64
Lars-Peter Clausen [Sun, 2 Sep 2012 17:02:42 +0000 (19:02 +0200)]
sr: session_driver: Remove source on completion
Remove the session source once we are done loading the file, otherwise we'll
spin forever in sr_session_run.
Reported-by: Joel Holdsworth <redacted>
Signed-off-by: Lars-Peter Clausen <redacted>
Bert Vermeulen [Sun, 2 Sep 2012 13:41:19 +0000 (15:41 +0200)]
sr: output up to 12 significant digits for floats
Bert Vermeulen [Sun, 2 Sep 2012 13:39:56 +0000 (15:39 +0200)]
generic-dmm: cosmetics
Bert Vermeulen [Sun, 2 Sep 2012 13:13:00 +0000 (15:13 +0200)]
genericdmm/victor-70c: warn if detaching kernel driver fails
Bert Vermeulen [Sun, 2 Sep 2012 13:11:52 +0000 (15:11 +0200)]
sr: mostly finished Agilent DMM driver
Bert Vermeulen [Sun, 2 Sep 2012 13:02:24 +0000 (15:02 +0200)]
serial: add serial_set_paramstr()
Bert Vermeulen [Sun, 2 Sep 2012 13:01:23 +0000 (15:01 +0200)]
serial: fix flow control setting
Bert Vermeulen [Sun, 2 Sep 2012 13:00:02 +0000 (15:00 +0200)]
serial: set speed in both directions
Bert Vermeulen [Sun, 2 Sep 2012 09:58:29 +0000 (11:58 +0200)]
sr: add new agilent-dmm driver (Agilent U12xxA multimeters)
Bert Vermeulen [Sat, 18 Aug 2012 14:22:36 +0000 (16:22 +0200)]
genericdmm: Victor 70C multimeter support
Bert Vermeulen [Sat, 18 Aug 2012 14:21:21 +0000 (16:21 +0200)]
genericdmm: finish basic USB support
Bert Vermeulen [Sat, 18 Aug 2012 12:34:29 +0000 (14:34 +0200)]
sr: corrected VID for Victor 70C
Bert Vermeulen [Sat, 18 Aug 2012 12:33:51 +0000 (14:33 +0200)]
sr: added mqflags field to sr_datafeed_analog
Bert Vermeulen [Sat, 18 Aug 2012 12:26:43 +0000 (14:26 +0200)]
sr: add fahrenheit and boolean MQ units
Bert Vermeulen [Sat, 18 Aug 2012 12:25:21 +0000 (14:25 +0200)]
sr: add continuity MQ
Bert Vermeulen [Sun, 5 Aug 2012 22:59:25 +0000 (00:59 +0200)]
sr/drivers: add API calls sr_dev_inst_list() and sr_dev_inst_clear()
These are used to list the device instances currently known to the driver,
and clear that list.
Drivers that don't necessarily clear their list of instances on every scan,
such as genericdmm, need to provide these to the frontend to keep instance
management sane.
Bert Vermeulen [Sun, 5 Aug 2012 16:56:12 +0000 (18:56 +0200)]
sr/drivers: obsolete SR_HWCAP_PROBECONFIG
Since probes now live in a struct sr_dev_inst owned by the driver, it
already knows about them. Instead of a frontend telling the driver to
configure probes, all driver now do this just before starting acquisition.
Bert Vermeulen [Sun, 5 Aug 2012 13:53:04 +0000 (15:53 +0200)]
sr: new API call sr_dev_config_set()
This is a wrapper around the driver dev_config_set() call, to avoid
frontends needing visibility into drivers.
Bert Vermeulen [Sun, 5 Aug 2012 01:18:07 +0000 (03:18 +0200)]
sr: replace published static option data with API calls
To find a driver or device option by name, the sr_drvopt_name_get() and
sr_devopt_name_get() calls are now available. This was the only reason the
driver and device struct sr_hwcap_option arrays were published.
Bert Vermeulen [Sat, 4 Aug 2012 12:35:40 +0000 (14:35 +0200)]
sr: rename sr_hw_hwcap_get() to sr_devopt_get()
Bert Vermeulen [Sat, 4 Aug 2012 10:21:02 +0000 (12:21 +0200)]
sr: drivers using sr_usb_dev_inst_new() must free it properly as well
sr_usb_dev_inst_free() doesn't really do anything, but it might one
day.
Bert Vermeulen [Sat, 4 Aug 2012 10:03:05 +0000 (12:03 +0200)]
sr: properly free probes when freeing their device instance
Bert Vermeulen [Fri, 3 Aug 2012 12:19:00 +0000 (14:19 +0200)]
asix-sigma: fix double free
Bert Vermeulen [Fri, 3 Aug 2012 12:18:02 +0000 (14:18 +0200)]
chronovu-la8: fix double free
Bert Vermeulen [Fri, 3 Aug 2012 11:50:31 +0000 (13:50 +0200)]
chronovu-la8: code cleanup
Bert Vermeulen [Fri, 3 Aug 2012 08:17:31 +0000 (10:17 +0200)]
chronovu-la8: remove session source when done
Bert Vermeulen [Fri, 3 Aug 2012 08:12:54 +0000 (10:12 +0200)]
asix-sigma: remove session source when done
Bert Vermeulen [Fri, 3 Aug 2012 08:09:02 +0000 (10:09 +0200)]
demo: remove sources from session when done
Bert Vermeulen [Thu, 2 Aug 2012 23:05:40 +0000 (01:05 +0200)]
hantek-dso: remove sources from session when done
Bert Vermeulen [Thu, 2 Aug 2012 23:05:01 +0000 (01:05 +0200)]
ols: remove serial source from session when done
Bert Vermeulen [Thu, 2 Aug 2012 23:04:05 +0000 (01:04 +0200)]
sr: drivers should remove their sources from the session when done
Bert Vermeulen [Thu, 2 Aug 2012 23:01:38 +0000 (01:01 +0200)]
zeroplus: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 22:09:33 +0000 (00:09 +0200)]
ols: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 21:54:11 +0000 (23:54 +0200)]
genericdmm: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 21:53:31 +0000 (23:53 +0200)]
demo: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 21:51:47 +0000 (23:51 +0200)]
fx2lafw: minor cleanup
Bert Vermeulen [Thu, 2 Aug 2012 19:54:21 +0000 (21:54 +0200)]
chronovu-la8: don't try to clean up unless we've initialized
Bert Vermeulen [Thu, 2 Aug 2012 19:42:37 +0000 (21:42 +0200)]
asix-sigma: properly init driver-private storage
Bert Vermeulen [Thu, 2 Aug 2012 19:35:25 +0000 (21:35 +0200)]
chronovu-la8: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 19:20:41 +0000 (21:20 +0200)]
asix-sigma: use driver-private storage for instances
Bert Vermeulen [Tue, 31 Jul 2012 22:42:19 +0000 (00:42 +0200)]
fx2lafw: use driver-private storage for instances and libusb_context