Bert Vermeulen
91e406b921
scpi/usbtmc: Prototype fixes.
2013-12-05 00:16:11 +01:00
Bert Vermeulen
bc03a7cc2c
scpi/serial: Use stubs for all SCPI functions.
...
Avoids some gcc warnings, since the SCPI prototypes don't exactly
match serial_*.
2013-12-05 00:09:34 +01:00
Martin Ling
962af1a379
rigol-ds: Support VS5000 series devices.
2013-12-04 21:38:05 +00:00
Martin Ling
b8705e99e4
scpi_tcp: Adjust to observed protocol for Rigol VS5000 series.
2013-12-04 21:32:47 +00:00
Martin Ling
3520422fc7
rigol-ds: Support TCP connection.
2013-12-04 20:59:24 +00:00
Martin Ling
08a359138b
Add implementation for SCPI over TCP.
2013-12-04 20:59:20 +00:00
Martin Ling
56868b5d6b
rigol-ds: Handle partial analog frame reads.
...
Reading a frame over the DS1xx2 RS232 connection now sometimes works,
but most of the time stalls part way through with g_poll showing the
fd as not ready.
2013-12-04 13:31:42 +00:00
Martin Ling
9dfeb81b09
scpi_serial: Flush buffers after opening port.
2013-12-04 13:03:23 +00:00
Martin Ling
0dc7b43eb7
rigol-ds: Support RS232 connection.
...
Probing tested OK over RS232 for DS1052E and DS1102D. Capture needs work.
2013-12-04 12:50:12 +00:00
Martin Ling
4d7a9a14a3
rigol-ds: Eliminate fixed-size buffer in set_cfg.
2013-12-04 10:56:09 +00:00
Martin Ling
87c410830d
Add sr_scpi_send_variadic() function.
2013-12-04 10:53:51 +00:00
Martin Ling
17b5b20264
Replace rigol_ds_send() function with sr_scpi_send().
2013-12-04 10:30:46 +00:00
Martin Ling
504f40a574
Make sr_scpi_send() take printf-style arguments.
2013-12-04 10:30:43 +00:00
Martin Ling
ae1bc1cc26
Port rigol-ds driver to use common SCPI functions.
2013-12-03 23:19:40 +00:00
Martin Ling
a1ff9c1897
Add sr_scpi_read() operation for reading arbitrary data.
2013-12-03 23:18:37 +00:00
Martin Ling
31034792da
Implement SCPI over USBTMC.
2013-12-03 22:25:33 +00:00
Martin Ling
23f43dff15
Make SCPI functions device independent, with separate serial backend.
2013-12-03 22:00:31 +00:00
Uwe Hermann
082972e8c5
hameg-hmo: Reduce unnecessarily high nesting level.
2013-12-03 17:13:50 +01:00
Uwe Hermann
719eff68ad
hameg-hmo: Use hmo_ prefix for driver-local SR_PRIV functions.
2013-12-03 16:58:34 +01:00
Uwe Hermann
89280b1a4c
hameg-hmo: Minor cosmetics, coding-style fixes.
2013-12-03 16:48:21 +01:00
Uwe Hermann
d5976d8be5
scpi.c: Minor cleanups, cosmetics.
2013-12-03 16:08:59 +01:00
poljar (Damir Jelić)
13f2b9d789
hameg-hmo: Add initial working driver version.
...
This patch adds initial support for Hameg's HMO oscilloscopes. It currently
supports only the HMO compact series (70MHz-200MHz).
2013-12-03 15:13:30 +01:00
poljar (Damir Jelić)
06a3e78adb
hameg-hmo: Initial driver skeleton.
2013-12-03 15:13:30 +01:00
poljar (Damir Jelić)
1bd9e678ac
serial: Add function to extract serial options.
...
This patch adds a function for a common operation of all serial based drivers.
It extracts the serial options from the options linked list that is passed down
to every hardware driver.
2013-12-03 15:10:01 +01:00
poljar (Damir Jelić)
1a323dd887
scpi: Add function to fetch uint8_t.
...
This patch adds a function to read and parse a SCPI response which contains a
comma separated list of unsignet 8-bit integer numbers (e.g "1,0,64").
This is particularly useful if the instrument sends digital measurement data
in this format.
2013-12-03 15:10:01 +01:00
poljar (Damir Jelić)
8acbb89a1d
scpi: Add function to get an array of floats.
...
This patch adds a function to read and parse a SCPI response which contains a
comma-separated list of floating-point numbers (e.g. "1.0e-5,2.0e-4,3.0e-3").
This is particularly useful if the instrument sends analog measurement
data in this format.
2013-12-03 15:10:01 +01:00
poljar (Damir Jelić)
f5922adef5
scpi: Add a function to read and wait on a *OPC? reply.
...
The SCPI standard specifies the "*OPC?" command (Operation complete query) which
queries the instrument for its operative state. When all pending operations are
complete, the instrument responds with a "1".
Some manufacturers block before completing all operations and don't respond
with anything and some of them respond with a "0". This function handles both
cases uniformly.
2013-12-03 15:10:01 +01:00
poljar (Damir Jelić)
d730f70e06
scpi: Add more functions (getting int/bool/float/double).
...
This patch adds helper functions to read an SCPI response and parse the response
as an integer, boolean, floating-point or double-precision floating-point number.
2013-12-03 15:10:01 +01:00
poljar (Damir Jelić)
aa1e3b400b
scpi: Add function to strictly parse bool strings.
...
This patch adds a function that is similar to sr_parse_boolstring but its
matching rules are more strict.
2013-12-03 15:10:00 +01:00
poljar (Damir Jelić)
7b9d732031
scpi: Add helper functions for SCPI communication.
...
The Standard Commands for Programmable Instruments (SCPI) defines a standard
for syntax and commands to use in controlling programmable test and measurement
devices.
SCPI documentation:
http://www.ivifoundation.org/docs/scpi-99.pdf
This patch adds helper functions for sending SCPI commands, reading a SCPI
response and reading and parsing a SCPI "*IDN?" response.
2013-12-03 15:10:00 +01:00
Uwe Hermann
66a4357667
serial-dmm: No error message upon 0 new bytes.
2013-12-01 19:30:35 +01:00
Martin Ling
9647ce694b
Use new libserialport blocking/nonblocking API calls.
2013-12-01 18:51:24 +01:00
Martin Ling
b3916147a5
rigol-ds: Fix duplicated "LA" probe group.
2013-11-29 01:40:50 +00:00
Martin Ling
ae67644fe5
Create & use new sr_usbtmc_dev_inst for Rigol DS driver.
2013-11-29 01:13:22 +00:00
Martin Ling
babab6225b
DS2000 sample memory capture patches from Mathias Grimmberger.
2013-11-29 00:57:55 +00:00
Martin Ling
355de5a110
Fix handling second channel on DS2000 series.
...
Patch from Mathias Grimmberger.
2013-11-29 00:55:21 +00:00
Martin Ling
6ff1394ed1
rigol-ds: brown paper bag, using timebases instead of vdivs.
2013-11-29 00:55:20 +00:00
Martin Ling
7cc1a55091
rigol-ds: fix calls to config_list with NULL sdi/devc.
2013-11-29 00:55:20 +00:00
Martin Ling
bafd489094
rigol-ds: Add support for DS2xx2 series.
...
Based on patch by Mathias Grimmberger <mgri@zaphod.sax.de>.
2013-11-29 00:53:34 +00:00
Martin Ling
3086efdd73
Rename rigol-ds1xx2 driver to rigol-ds.
2013-11-29 00:50:59 +00:00
Uwe Hermann
c4d85a4026
serial.c: Re-enable serial_read() error reporting.
...
libserialport now returns 0 (not SP_ERR_FAIL) as return value when a
non-blocking read would return EAGAIN.
This fixes bug #188 .
2013-11-26 16:29:43 +01:00
Martin Ling
25b66c3c61
Use new libserialport opaque configuration structure.
2013-11-26 15:53:40 +01:00
Martin Ling
3182932d36
Use accessor for new libserialport opaque port structure.
2013-11-26 15:53:40 +01:00
Bert Vermeulen
79b9a237bd
uni-t-dmm: Drop unnecessary DMM count.
2013-11-23 15:24:40 +01:00
Bert Vermeulen
5e1f7c890d
uni-t-dmm: Add support for the Tenma 72-7745.
...
This is a rebadged UNI-T UT60E.
2013-11-23 12:50:33 +01:00
Uwe Hermann
a147c7b416
hantek-dso: config_list(): Only SR_CONF_BUFFERSIZE needs sdi.
2013-11-22 22:31:24 +01:00
Uwe Hermann
7c07a1783e
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 .
2013-11-22 22:31:08 +01:00
Matthias Heidbrink
f57924179d
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).
2013-11-22 02:42:04 +01:00
Matthias Heidbrink
a970522b6d
serial: Allow 5 and 6 data bits.
2013-11-22 02:31:17 +01:00
Matthias Heidbrink
7b4edcb654
gmc_mh_1x_2x: Inital driver skeleton.
2013-11-22 02:31:17 +01:00
Martin Ling
13cd8197eb
Update for libserialport v0.1 API.
2013-11-22 02:14:16 +01:00
Bert Vermeulen
c4650aca12
Suppress compile warning
2013-11-20 22:06:01 +01:00
Uwe Hermann
61bab807f4
DT4000ZC/TP4000ZC: Force DTR=1 on the serial port.
...
This fixes the driver e.g. on NetBSD.
2013-11-20 00:42:08 +01:00
Uwe Hermann
4403c39fe4
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.
2013-11-19 23:22:46 +01:00
Uwe Hermann
1a54044299
serial.c: Minor cosmetic fix.
2013-11-19 20:09:59 +01:00
Martin Ling
a82635f252
Use new sp_port_config fields.
2013-11-19 14:26:18 +01:00
Martin Ling
e385e2ed90
serial: Use new sp_set_config instead of sp_set_params.
2013-11-19 14:26:18 +01:00
poljar (Damir Jelić)
066d42b1c8
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.
2013-11-19 10:29:24 +01:00
poljar (Damir Jelić)
1130e4229b
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.
2013-11-15 17:00:07 +01:00
Uwe Hermann
449cc16bb2
serial.c: Temporary quickfix until a libserialport fix is done.
2013-11-15 12:23:09 +01:00
Uwe Hermann
26e0361cc6
uni-t-dmm: Drop unused packet_request callback.
2013-11-15 09:36:51 +01:00
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
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
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
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
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
45311368de
rigol-ds1xx2: Skip obsolete fields
2013-11-08 01:03:18 +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
8f996b8948
probe_groups: API changes required to implement probe groups.
2013-11-08 01:03:16 +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
Uwe Hermann
e790bd5cda
norma-dmm: Minor cosmetics, coding-style, consistency fixes.
...
Also, add a missing "%" in an sr_err() and a missing parameter in
another sr_err().
2013-10-25 21:25:26 +02:00
Matthias Heidbrink
f8e76e2e74
norma dmm: Implemented driver.
2013-10-25 21:25:26 +02:00
Matthias Heidbrink
bfd48770fc
norma dmm: Initial driver skeleton.
2013-10-25 21:25:26 +02:00
Matthias Heidbrink
50a9aba21b
serial: Removed flag OPOST (turn off all output processing).
2013-10-25 19:11:15 +02:00
Matthias Heidbrink
a510d55571
serial: Added flags CLOCAL (ignore modem status lines) and CREAD (start receiver).
2013-10-25 19:11:15 +02:00
Matthias Heidbrink
1b943b6d8b
serial: Added flag IXANY (any char will restart) to XON/XOFF handshaking.
2013-10-25 19:11:14 +02:00
Sean Young
0c30b35fce
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
2013-10-24 16:01:46 +01:00
Aurelien Jacobs
5542bee61b
teleinfo: actual parser implementation
2013-10-24 15:41:11 +01:00
Aurelien Jacobs
8e796cb438
teleinfo: Initial driver skeleton.
2013-10-24 15:41:11 +01:00
Uwe Hermann
c02dc3e261
metex14: Add support for pF (picofarad).
...
This is used on some Metex DMMs.
2013-10-23 18:41:13 +02:00
Uwe Hermann
ee6cb5a417
metex14: Use case-insensitive string compares.
...
This allows some other DMMs to be supported that use e.g. "kOhm" vs.
"KOhm", and so on.
2013-10-23 18:07:54 +02:00
Uwe Hermann
1a807c13fc
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.
2013-10-23 18:06:15 +02:00
Uwe Hermann
71f1302b4b
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.
2013-10-23 17:31:14 +02:00
Matthias Heidbrink
b21d7eebe2
serial: Changed order of flags PARENB and PARODD in deletion to same order as in setting (cosmetic).
2013-10-18 16:58:33 +02:00
Aurelien Jacobs
df6b0f99af
ISO-TECH IDM103N: remove the useless -ser postfix
2013-10-13 14:54:54 +02:00
Aurelien Jacobs
94e9021b3e
es519xx: correct initialization of es519xx_info structure
2013-10-13 14:54:54 +02:00
Uwe Hermann
93d719cde6
es519xx: Fix incorrect packet size, and a typo.
2013-10-07 00:36:18 +02:00
Uwe Hermann
72e1672fc9
es519xx: Cosmetics, coding style, minor fixes.
2013-10-07 00:36:18 +02:00
Aurelien Jacobs
de737bfc11
add ISO-TECH IDM103N serial-dmm driver
2013-10-07 00:36:18 +02:00
Aurelien Jacobs
c01bdebc57
add cyrustek es519xx generic protocol parser
2013-10-07 00:36:18 +02:00
Uwe Hermann
2f9376117c
fx2lafw: Organize driver into api.c / protocol.[ch].
...
This now matches the naming conventions of the other drivers.
2013-10-06 22:28:45 +02:00
Daniel Thompson
fbf07e0209
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 <daniel@redfelineninja.org.uk>
2013-10-04 13:30:49 +02:00
Daniel Thompson
5715e84fe3
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 <daniel@redfelineninja.org.uk>
2013-09-26 14:57:37 +02:00
Uwe Hermann
45c0841b25
uni-t-ut32x: Shorten dev_list().
2013-09-25 14:26:35 +02:00
Matt Ranostay
6ebe003985
ols: fixed demux mode disable noise filter
...
Demux flag wasn't getting set off if one non-demux sample was ran
beforehand.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
2013-09-07 20:17:16 +02:00
Matt Ranostay
6a53bde671
ols: Moved FLAG_FILTER to demux check
...
Demux mode was having filter mode set which it doesn't
support per FPGA demon core docs.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
2013-09-06 11:42:25 +02:00
Uwe Hermann
e52bb9be83
Voltcraft VC-830: Fix diode mode handling.
...
This DMM is not using the standard bits in the FS9922 protocol/structure
to indicate the "volt" and "diode mode" flags. Instead, it only sets the
user-defined bit "z1" to indicate both "diode mode" and "volt".
This fixes #142 .
2013-09-01 15:27:21 +02:00
Uwe Hermann
a6ed50f405
es51922/fs9721/fs9922/metex14: Use diode MQFLAG.
...
This fixes #141 .
2013-09-01 15:27:07 +02:00
Uwe Hermann
98494dc8a3
fs9922: Fix typo.
2013-09-01 13:41:13 +02:00
Uwe Hermann
045e9a9918
serial.c: Drop unneeded <glob.h>.
...
This is no longer used, and also it is not available on Android and thus
breaks cross-compilation for Android.
Thanks Marcus Comstedt <marcus@mc.pp.se> for reporting.
2013-08-30 16:35:56 +02:00
Matt Ranostay
b1de040700
ols: fixed channel limit check
...
For demux mode we half the channels. Previous check method broke
the OLS randomly and but it in a bad state.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
2013-08-30 13:58:36 +02:00
Bert Vermeulen
da970d24ec
rigol-ds1xx2: newer Linux kernels have USBTMC in /sys/class/usbmisc
2013-08-30 13:57:45 +02:00
Matt Ranostay
f51acd69d7
ols: combine demux samples
...
demux mode allows DDR sampling which disables group 2 & 3
and thus samples group 0 & 1 to sample on rising and falling of
the clock.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
2013-08-28 10:21:59 +02:00
Matt Ranostay
7b0a57fd1c
ols: add swap channels feature
...
Allow channel groups to be swapped. This is useful
for demux at 200mhz with the unbuffered channels.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
2013-08-28 10:21:59 +02:00
Matt Ranostay
de52409982
ols: Display noise filter flag
...
Show if noise filter is on. This is important to be
sure is off for demux mode.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
2013-08-28 10:21:59 +02:00
Bert Vermeulen
00d04d3b0e
ols: Fix RLE count handling
...
The high bit of the sample, denoting this is a count, was not getting
properly cleared. This resulted in an inevitably negative count, and
corruption of the sample buffer before it was transferred to the
frontend.
2013-08-27 00:33:20 +02:00
Bert Vermeulen
abb39e6b8c
ols: Properly initialize entire single-sample buffer before start
...
The single sample buffer, up to 4 bytes long, was not getting initialized
on (every) acquisition start, only after the first full sample was in.
This caused the first sample to potentially hold garbage.
2013-08-26 23:42:09 +02:00
Matt Ranostay
eb1b610b12
ols: add external clock support
...
Add external clock support that allows you to use the tracing
targets bus clock line for sampling.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
2013-08-26 10:28:45 +02:00
Matt Ranostay
967760a893
ols: add test mode support
...
ols allows both external and internal test patterns at ~20khz
which are helpful for unit tests and demos.
pattern=internal -> route pattern internally to all 32 pins
(input otherwise disabled)
pattern=external -> generates pattern on unbuffered pins 16:31
(which can be looped back to the buffered pins 0:15)
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
2013-08-26 09:52:24 +02:00
Matt Ranostay
503133bb5f
ols: fixed parallel stage triggers
...
Stage count was always getting incremented one more than
actual stages, and this caused a extra stage with zero'ed data
probe lines to have the start bit field.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
2013-08-26 09:48:41 +02:00
Uwe Hermann
d0107565c1
saleae-logic16: Drop unneeded NUM_PROBES.
2013-08-21 11:41:21 +02:00
Uwe Hermann
87b537ced0
saleae-logic16: Shorten dev_list() implementation.
2013-08-21 11:37:40 +02:00
Uwe Hermann
96484e22b4
saleae-logic16: Whitespace fixes, cosmetics.
2013-08-21 11:33:37 +02:00
Marcus Comstedt
186dde8d72
saleae-logic16: Cleanup the prime_fpga function
...
The driver should now work on any Logic16.
2013-08-20 19:55:57 +02:00
Marcus Comstedt
fec7aa6a44
saleae-logic16: Update copyright blurbs.
...
Copied copyright lines from fx2lafw driver, since much of the code is
taken from there.
2013-08-20 19:55:57 +02:00
Marcus Comstedt
db11d7d2d0
saleae-logic16: Add voltage threshold conf.
2013-08-20 19:55:57 +02:00
Marcus Comstedt
b117363ad7
saleae-logic16: Declare confs.
2013-08-20 19:55:57 +02:00
Marcus Comstedt
7b5daad45c
saleae-logic16: Implemented acquisition.
2013-08-20 19:55:57 +02:00
Marcus Comstedt
15abcf0f58
saleae-logic16: Initialize the FPGA.
...
The map_eeprom_data function is currently unknown. The map entries
provided were observed via bus-snooping of the vendor software on my
device. Other devices may need additional values.
2013-08-20 19:55:57 +02:00
Marcus Comstedt
5eea4305ad
saleae-logic16: Reworked scan/open to handle FW upload.
...
The new code is based on code from the fx2lafw driver.
2013-08-20 19:55:57 +02:00
Marcus Comstedt
f6a21fa50c
saleae-logic16: Detect the hardware.
2013-08-20 19:55:57 +02:00
Marcus Comstedt
c463dcf06c
saleae-logic16: Initial driver skeleton.
2013-08-20 19:55:22 +02:00
Bert Vermeulen
56e76981bc
uni-t-dmm: Require conn parameter for scan
...
Since the uni-t-ut32x series handles devices with the same USB VID.PID,
which is linked to the WCH CH9325 USB/HID-UART interface chip, this
driver can no longer assume it can handle anything with this VID.PID.
2013-08-11 10:52:43 +02:00
Bert Vermeulen
d6ff054ae5
uni-t-ut32x: Full acquisition support
2013-08-11 10:46:36 +02:00
Bert Vermeulen
6513f97fbe
uni-t-ut32x: Flesh out driver
2013-08-11 10:46:36 +02:00
Bert Vermeulen
3877dde43a
uni-t-ut32x: Initial driver skeleton.
2013-08-11 10:46:36 +02:00
Uwe Hermann
4a8bbed76d
center-3xx: Initial Center 309 / Voltcraft K204 support.
2013-08-08 19:59:49 +02:00
Uwe Hermann
4433145f48
center-3xx: Initial driver skeleton.
2013-08-08 19:58:48 +02:00
Uwe Hermann
ce95428cca
Consistent use of "IKALOGIC" spelling.
...
The company name is written all-caps pretty consistently on the
vendor website and docs, so use that spelling everywhere.
2013-08-07 16:21:57 +02:00
Uwe Hermann
b07b42f319
Cosmetics, typos.
2013-08-07 16:21:57 +02:00
Uwe Hermann
e11a1ebacc
alsa: Fix double-free issue.
...
This fixes bug #129 .
2013-08-07 16:21:56 +02:00
Uwe Hermann
4d7ddff75b
uni-t-dmm: Fix UT61E bug related to the UNI-T UD-D04 cable.
...
This fixes bug #136 .
2013-08-06 23:36:16 +02:00
Uwe Hermann
c51bbdec34
Drop nexus-osciprime skeleton for now.
...
This is mostly just a skeleton driver framework at the moment, we'll
bring it back when the driver is fully implemented.
2013-08-05 12:59:23 +02:00
Uwe Hermann
c93ebace30
uni-t-dmm: Drop DMM table (comment).
...
This info is in the wiki already, no need to duplicate in the code.
2013-08-02 01:02:03 +02:00
Bert Vermeulen
faf720246a
ols: Workaround for mac os X stray events
2013-08-01 19:48:07 +02:00
Uwe Hermann
ce4d26ddf9
Various cosmetics, whitespace, consistency fixes.
2013-07-31 13:09:48 +02:00
Uwe Hermann
2b691be806
serial-dmm/uni-t-dmm: Drop Tecpel DMM-8060.
...
The Tecpel DMM-8060 was added since we assumed it would be a rebadged
Voltcraft VC-820 (since we know the Tecpel DMM-8061 is a rebadged VC-840).
However, according to the vendor webpage it doesn't have PC connectivity
at all, so drop it for now (until someone can confirm that it does or does
not actually have RS232/USB connectivity).
2013-07-18 12:43:07 +02:00
Bert Vermeulen
e84e0096db
Fix build
2013-07-16 17:18:20 +02:00
Bert Vermeulen
b979d0c9cb
kecheng-kc-330b: Code cleanup
2013-07-16 17:17:54 +02:00
Bert Vermeulen
d406dccd6a
lascar-el-usb: Don't close device after acquisition
2013-07-16 16:08:38 +02:00
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
Bert Vermeulen
a3df166f02
rigol-ds1xx2: better debugging
2013-04-11 18:32:08 +02:00
Bert Vermeulen
75d8a4e576
rigol-ds1xx2: properly send frame begin/end packets
2013-04-11 18:32:08 +02:00
Bert Vermeulen
7991784841
hantek-dso: Support SR_CONF_NUM_TIMEBASE/SR_CONF_NUM_VDIV
2013-04-11 18:32:08 +02:00
Bert Vermeulen
d62d7ad151
rigol-ds1xx2: Support SR_CONF_NUM_TIMEBASE/SR_CONF_NUM_VDIV
2013-04-11 18:32:08 +02:00
Bert Vermeulen
861c447bfb
rigol-ds1xx2: SR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples
2013-04-11 18:32:08 +02:00
Bert Vermeulen
3973ee26f5
hantek-dso: SR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples
2013-04-11 18:32:08 +02:00
Bert Vermeulen
034accb512
hantek-dso: move buffer sizes to device context
...
There are only two sizes for every device: 10k and the complete
per-channel buffer size. This can be doubled if one channel is disabled.
2013-04-11 18:32:08 +02:00
Bert Vermeulen
fe9ac25250
ols: Get rid of gcc warnings
2013-04-11 18:32:08 +02:00
Bert Vermeulen
1bec72d2ac
chronovu-la8: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
afdf6d6a20
tondaj-sl-814: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
7d93a62ea3
uni-t-dmm: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
ede25f4e6f
serial-dmm: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
f6a0ac9f62
rigol-ds1xx2: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
2c2be40189
mic-985xx: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
a9ed6877f7
link-mso19: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
510b3e692a
brymen-dmm: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
2c9c0df86e
asix-sigma: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
aa0dbd683c
alsa: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
3316e149d0
zeroplus-logic-cube: fix samplerate setting
2013-04-11 18:32:07 +02:00
Bert Vermeulen
8386096f01
zeroplus-logic-cube: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
c8733a2bbb
nexus-osciprime: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
e44ac12a29
agilent-dmm: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
a59b4eef55
victor-dmm: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
70424328c1
fluke-dmm: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
dccda194db
colead-slm: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
7faf69da10
lascar-el-usb: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
d40073113b
hantek-dso: Small debug fix
2013-04-11 18:32:07 +02:00
Bert Vermeulen
86bb3f4a86
hantek-dso: deprecate struct sr_rational
2013-04-11 18:32:07 +02:00
Bert Vermeulen
d00088ca6d
demo: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:06 +02:00
Bert Vermeulen
f627afd65b
hantek-dso: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:06 +02:00
Bert Vermeulen
aeea057220
ols: allow for disabling of RLE as well
2013-04-11 18:32:06 +02:00
Bert Vermeulen
e46aa4f611
ols: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:06 +02:00
Bert Vermeulen
d6836bf129
fx2lafw: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:06 +02:00
Bert Vermeulen
13d8e03c4f
Bump copyright year
2013-04-11 18:32:06 +02:00
Uwe Hermann
3fd1d0ee1c
configure.ac: Improve USB/EZUSB/serial checks.
...
- If libusb-1.0 is not found, do not compile in ezusb.c and usb.c since
they require libusb.h. The respective hardware drivers that use
libusb-1.0, and usb.c and/or ezusb.c will be excluded from the build
elsewhere in configure.ac. Rename NEED_EZUSB to NEED_USB.
- Drop the NEED_SERIAL check and always compile in serial.c. This is a
very small chunk of code, it does not depend on any external
libraries that might be missing, and it compiles on all architectures.
Thus there's no need to conditionally include or exclude it.
2013-04-09 17:49:13 +02:00
Bert Vermeulen
3f98bf7017
Fix kernel driver attached check
...
The check is really only broken on darwin, but useful on all other
platforms, even if only Linux can actually detach a driver.
2013-04-07 14:14:16 +02:00
Bert Vermeulen
8c971b6e5c
hantek-dso: cosmetics
2013-04-07 14:01:03 +02:00
Bert Vermeulen
7b78b2f78f
hantek-dso: use per-device firmware filenames
2013-04-02 14:20:29 +02:00
Uwe Hermann
3ebce226a2
s/sr_config_make/sr_config_new/.
...
This matches the naming of other/similar functions better.
2013-03-23 14:16:00 +01:00
Uwe Hermann
333bf022e3
rigol-ds1xx2: Use ARRAY_SIZE.
2013-03-23 14:14:58 +01:00
Alexandru Gagniuc
3864648bb6
serial-dmm: Add support for RadioShack 22-805
...
Protocol-wise, this is identical to the 22-168, except that it communicates at
600 baud instead of 1200 baud.
2013-03-20 20:36:56 -05:00
Uwe Hermann
cc840ab618
serial.c: FreeBSD and OpenBSD don't have OFILL either.
2013-03-17 15:07:50 +01:00
Bert Vermeulen
8e77bc20b9
lascar-el-usb: push samplerate before data log
2013-03-16 21:52:02 +01:00
Bert Vermeulen
361d15110c
lascar-el-usb: support for SR_CONF_DATALOG
2013-03-11 16:37:02 +01:00
Bert Vermeulen
9857276261
ols: use ptr to int dereference for SR_T_BOOL
...
This mad ptr to int casting has to go.
2013-03-11 16:37:02 +01:00
Bert Vermeulen
2474d87e8c
demo: sync get/set options
2013-03-03 21:21:08 +01:00
lelazary
365f04d61f
mso-19: Initial analog probe support (unfinished).
...
- Added the analog probe (unfinished).
- Reset trigger to state to 0 before capture, just incase the scope is in
the middle of a capture.
2013-03-03 17:59:06 +01:00
lelazary
5952553f56
mso-19: Fixed warning.
2013-03-03 17:58:46 +01:00