]> sigrok.org Git - libsigrok.git/log
libsigrok.git
12 years agosr: session: Moves sources to session struct
Lars-Peter Clausen [Fri, 6 Jul 2012 21:23:31 +0000 (23:23 +0200)]
sr: session: Moves sources to session struct

The sources really belong to the session, so move them into the session struct.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: demodevice: Make read channel non-blocking
Lars-Peter Clausen [Fri, 6 Jul 2012 21:23:30 +0000 (23:23 +0200)]
sr: demodevice: Make read channel non-blocking

Both pipe channels are currently configured as blocking. We read from the pipe
in receive_data. Since the channel is configured as blocking we'll block in
receive_data until all data has been received. receive_data will be called from
the mainloop, so as consequence the mainloop will be blocked until the demo
device has finished sampling. This is not so much of a problem if we are
sampling in blocking mode (using sr_session_run()) and the demo device is the
only device in the session, but it will fail badly for all other configurations
(e.g. multiple devices or async sampling).

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: session: Realloc correct array for pollfds in _sr_session_source_remove
Lars-Peter Clausen [Fri, 6 Jul 2012 21:23:29 +0000 (23:23 +0200)]
sr: session: Realloc correct array for pollfds in _sr_session_source_remove

Commit 7149ad7c ("sr: session: Keep a global pollfd array") contained a small
copy paste error. This patch fixes it.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: fx2lafw: Free transfers in reverse order
Lars-Peter Clausen [Thu, 5 Jul 2012 19:38:36 +0000 (21:38 +0200)]
sr: fx2lafw: Free transfers in reverse order

Free the USB transfers in the reverse order of which they were submitted. This
will avoid that while transfer 0 is cancelledd transfer 1 is started by the
host controller, and so on.

Reported-by: Peter Stuge <redacted>
Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: Minor cosmetics.
Uwe Hermann [Wed, 4 Jul 2012 23:47:44 +0000 (01:47 +0200)]
sr: Minor cosmetics.

12 years agosr: session/demo: Remove Windows specific hack
Lars-Peter Clausen [Sat, 30 Jun 2012 18:54:45 +0000 (20:54 +0200)]
sr: session/demo: Remove Windows specific hack

The session and demo device code contain a hack to make the demo device work on
Windows. This was neccessary since polling on windows requires special handling
and we can not just pass in the raw fd to poll.

With the previous patches which added support for non-fd based event sources
this hack is no longer required. The patch moves the GIOChannels used by the
demo device to the demo device context and uses sr_session_source_add_channel
to register a source for the channels instead of using the raw pipe fds.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: session: Add support for GPollFD or GIOChannel based sources
Lars-Peter Clausen [Sat, 30 Jun 2012 18:54:44 +0000 (20:54 +0200)]
sr: session: Add support for GPollFD or GIOChannel based sources

A raw file descriptor to poll on is not always available, this patch adds
support for adding a source for a GIOChannel or GPollFD.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: session: Keep a global pollfd array
Lars-Peter Clausen [Sat, 30 Jun 2012 18:54:43 +0000 (20:54 +0200)]
sr: session: Keep a global pollfd array

Currently we keep a file descriptor for each source and construct a pollfd array
from these during each loop iteration in sr_session_run(). This patch modifies
the code to keep a global pollfd array which is only modified when a source is
added or removed. On one hand this gets rid of the constant constructing and
subsequent freeing of the pollfd array in sr_session_run(), on the other hand it
will allow us to implement support for non-fd based pollfds.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: session: Use realloc to resize source array
Lars-Peter Clausen [Sat, 30 Jun 2012 18:54:42 +0000 (20:54 +0200)]
sr: session: Use realloc to resize source array

Use realloc to resize the source array when adding or removing a source. This
makes the code a bit smaller. In the remove function we now check whether the fd
is valid before doing anything else and if it is not simply do nothing. If it is
valid use memove to move the elements following the source one element down in
the array. Only after that has been done the array is re-allocated.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: moved sigrok.h so libsigrok/libsigrok.h
Bert Vermeulen [Wed, 4 Jul 2012 22:55:07 +0000 (00:55 +0200)]
sr: moved sigrok.h so libsigrok/libsigrok.h

All frontends will have to include <libsigrok/libsigrok.h> from now on.
This header includes proto.h and version.h, both installed from the
distribution into $INCLUDE/libsigrok/ as well.

The only dynamically changed header is now version.h, which has both
libsigrok and libtool compile-time versions in it.

12 years agosr: demodevice: Reset sample limit when setting time limit and vice versa
Lars-Peter Clausen [Tue, 3 Jul 2012 21:59:12 +0000 (23:59 +0200)]
sr: demodevice: Reset sample limit when setting time limit and vice versa

Only one limit should be active at a time. Make sure that the sample limit is
disabled when a time limit is set and vice versa.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: fx2lafw: Fix potential leaks in acquisition_start error paths
Lars-Peter Clausen [Tue, 3 Jul 2012 21:58:40 +0000 (23:58 +0200)]
sr: fx2lafw: Fix potential leaks in acquisition_start error paths

Call abort_acquisition if starting sampling fails in acquisition_start, this
will ensure that all already allocated resources are being freed again.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: fx2lafw: Do not start a new acquisition if the old is still running
Lars-Peter Clausen [Tue, 3 Jul 2012 21:58:39 +0000 (23:58 +0200)]
sr: fx2lafw: Do not start a new acquisition if the old is still running

This may happen if the acquisition_start is called right after calling
acquisition_stop and not all transfers have been freed or on repeated calls to
acquisition_start. If it happens we'll enter an undefined state and all kind of
strange behavior may occur, so error out in such a case.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: fx2lafw: Abort pending transfers when sampling is stopped
Lars-Peter Clausen [Tue, 3 Jul 2012 21:58:38 +0000 (23:58 +0200)]
sr: fx2lafw: Abort pending transfers when sampling is stopped

The recent reworks of the fx2lafw made sure that the total buffer size is large
enough hold 500ms of data. This was done to improve performance and stability.
That the timeout value for a transfer was also increased to over 500ms, a side
effect of this is that when sampling is stopped there will be a additional delay
of 500ms. This is because the driver waits for all transfers to be freed
before it sends a SR_DF_END packet. Once sampling has stopped this will only
happen once a transfer times out. This patch cancels all pending transfers when
sampling is stopped, this will cause them to be freed almost immediately and the
additional delay will disappear.

Also make sure, that if we know, that we just have received the last transfer to
not resubmit this transfer again.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: add genericdmm driver
Bert Vermeulen [Sun, 1 Jul 2012 20:37:15 +0000 (22:37 +0200)]
sr: add genericdmm driver

12 years agosr: add HWCAP type SR_T_KEYVALUE (char **)
Bert Vermeulen [Sun, 1 Jul 2012 20:33:57 +0000 (22:33 +0200)]
sr: add HWCAP type SR_T_KEYVALUE (char **)

12 years agosr: use proper definitions for parity setting
Bert Vermeulen [Sun, 1 Jul 2012 20:31:31 +0000 (22:31 +0200)]
sr: use proper definitions for parity setting

ols driver fixed to use these as well.

12 years agofx2lafw: enable driver build by default
Bert Vermeulen [Sun, 1 Jul 2012 13:29:57 +0000 (15:29 +0200)]
fx2lafw: enable driver build by default

12 years agosr: Mastech VA18B: Partial protocol supports (WIP).
Uwe Hermann [Thu, 28 Jun 2012 20:57:03 +0000 (22:57 +0200)]
sr: Mastech VA18B: Partial protocol supports (WIP).

Disable the driver for now, as it's not usable for the general public, yet.

12 years agosr: hantek-dso: Fix copy-paste error.
Uwe Hermann [Wed, 27 Jun 2012 23:47:38 +0000 (01:47 +0200)]
sr: hantek-dso: Fix copy-paste error.

12 years agosr: fx2lafw: Move empty_transfer_count to device ctx
Lars-Peter Clausen [Mon, 25 Jun 2012 21:51:38 +0000 (23:51 +0200)]
sr: fx2lafw: Move empty_transfer_count to device ctx

If one device is failing it should not affect the transfers of other devices.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: fx2lafw: Calculate buffer size and timeout based on sample rate
Lars-Peter Clausen [Mon, 25 Jun 2012 20:15:59 +0000 (22:15 +0200)]
sr: fx2lafw: Calculate buffer size and timeout based on sample rate

Currently timeout and buffer size are hard-coded in the fx2lafw driver which is
non-optimal if we want to get good results at both high and low sample rates.

The timeout is hard-coded to 40ms, which doesn't work well when sampling at
a low sample rate. E.g. at 20kHz filling all available buffer space alone takes
6 seconds. So naturally we'll see a lot of transfers timeout in this case.

The buffer size is hard-coded to 4096 bytes, which does not work well with high
sample rates. E.g. at 24MHz these 4096 bytes are enough space for 0.17ms of
data. The total buffer size is enough for about 5ms of data. Sooner or later the
application won't be able to resubmit a transfer within this time span and the
device will abort data acquisition. Usually this happens within the first few
seconds of sampling.

This patch adds a few new helper functions which calculate the buffer size and
timeout based on the current sample rate.

The buffer size is chosen to be large enough to hold about 10ms of data and it
also must be a multiple of 512 bytes since the firmware will send us the data
in 512 byte chunks.

The timeout is set to the time it would take to fill the whole available buffer
space plus a 25% headroom to accommodate for jitter. This is more than enough,
but there is no need to make the timeout a tight deadline, since it is only
meant as a last resort in case the device stops submitting data. And in this
case data acquisition will be aborted anyway.

The patch also limits the the number of transfers so that the total buffer
space is not much more of 500ms. This will ensure that we do not have to
wait too long when aborting data acquisition.

This patch also significantly reduces the number of context switches when
sampling at a higher sample rate. On my system for example the CPU load of
sigrok-cli when sampling at 24MHz goes down from ~25% to 3-4%.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: fx2lafw: Handle the transfer's status
Lars-Peter Clausen [Sun, 24 Jun 2012 14:45:08 +0000 (16:45 +0200)]
sr: fx2lafw: Handle the transfer's status

While errors are usually already implicitly caught by looking at the packet
length field there is one error status which is worth special handling. If the
device has been removed there is not really a chance to recover from this error
so data acquisition can be stopped immediately.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: fx2lafw: Avoid unnecessary alloc/free combo
Lars-Peter Clausen [Sun, 24 Jun 2012 10:19:09 +0000 (12:19 +0200)]
sr: fx2lafw: Avoid unnecessary alloc/free combo

In receive_transfer for each completed transfer a new buffer is allocated and
the old one is freed. We can avoid this by simply reusing the buffer for the
next transfer. This is possible if we only resubmit the transfer after all
processing on the data buffer has been done. A new buffer is only allocated if
the size of the old one is not 4096 bytes.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: fx2lafw: Properly free transfer
Lars-Peter Clausen [Sun, 24 Jun 2012 10:08:59 +0000 (12:08 +0200)]
sr: fx2lafw: Properly free transfer

When freeing a transfer we also have to free the transfer buffer. We also have
to keep track of the number of allocated transfers and if the freed transfer was
the last one stop acquisition. This patch introduces a helper function which
takes care of all of this.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: fx2lafw: Allocate header and packet struct on the stack
Lars-Peter Clausen [Sun, 24 Jun 2012 10:04:35 +0000 (12:04 +0200)]
sr: fx2lafw: Allocate header and packet struct on the stack

The header and packet struct are only used in the scope of this function and
they are freed at the end of it. Also these structs are rather small, so they
can safely be allocated on the stack. By doing so memory leaks on the error
paths are avoided.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agofx2lafw: Made libusb_claim_interface error messages more informative
Joel Holdsworth [Wed, 27 Jun 2012 20:39:26 +0000 (21:39 +0100)]
fx2lafw: Made libusb_claim_interface error messages more informative

12 years agohantek-dso: add profiles for all five models in the series
Bert Vermeulen [Wed, 27 Jun 2012 17:36:30 +0000 (19:36 +0200)]
hantek-dso: add profiles for all five models in the series

Also cleaned up profile struct, and use the new firmware filenames.

12 years agofx2lafw: fix broken firmware upload timeout
Bert Vermeulen [Tue, 26 Jun 2012 23:02:39 +0000 (01:02 +0200)]
fx2lafw: fix broken firmware upload timeout

Also corner case error init.

12 years agohantek-dso: get rid of broken GTV_TO_MSEC firmware upload timeout
Bert Vermeulen [Tue, 26 Jun 2012 22:55:15 +0000 (00:55 +0200)]
hantek-dso: get rid of broken GTV_TO_MSEC firmware upload timeout

12 years agohantek-dso: start sending the frame only from the trigger point
Bert Vermeulen [Tue, 26 Jun 2012 21:26:55 +0000 (23:26 +0200)]
hantek-dso: start sending the frame only from the trigger point

Samples received before the trigger point are stored. From the
trigger point on, every chunk received from the device is sent
up the session bus. After the device has finished sending, the
stored samples are transmitted.

12 years agosr: fx2lafw: Set correct unitsize for trigger buffer
Lars-Peter Clausen [Thu, 21 Jun 2012 17:54:29 +0000 (19:54 +0200)]
sr: fx2lafw: Set correct unitsize for trigger buffer

Commit 88b75eb719 ("fx2lafw: Added device caps and added support for wide
sampling") increased the size of the trigger buffer from 8 to 16 bit, but forgot
to adjust the unitsize logic packet which is used to send the contents of the
trigger buffer. This patch sets the unitsize to sizeof() of the trigger buffer.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agohantek-dso: fix triggerpoint conversion
Bert Vermeulen [Sun, 24 Jun 2012 16:57:37 +0000 (18:57 +0200)]
hantek-dso: fix triggerpoint conversion

12 years agosr: fx2lafw: Fix multistage trigger
Lars-Peter Clausen [Thu, 21 Jun 2012 08:30:38 +0000 (10:30 +0200)]
sr: fx2lafw: Fix multistage trigger

Multistage triggers currently do no work, because there is a return statement
in the middle of the trigger detector which will be hit as soon as the first
stage in a multistage trigger matches. This patch removes the return statement
so that the trigger detector can continue to try to match the next stage. In
order for this to work we also make sure that the trigger stage is only reset
if the current sample does not match.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr/srd/cli: require glib version >= 2.28
Bert Vermeulen [Fri, 22 Jun 2012 23:17:36 +0000 (01:17 +0200)]
sr/srd/cli: require glib version >= 2.28

Needed for g_get_monotonic_time(). Thanks to Tomaž Šolc.

12 years agosr: fx2lafw: Fix memory leaks in receive_transfer
Lars-Peter Clausen [Thu, 21 Jun 2012 08:30:39 +0000 (10:30 +0200)]
sr: fx2lafw: Fix memory leaks in receive_transfer

There are a few memory leaks in the receive_transfer transfer function. The most
serve of them is that a sample buffer is not freed if the triggered has not
matched yet, which causes a sigrok process which is waiting for a trigger to
consume several megabytes of memory within seconds. The other leaks are on the
error paths in that function.

Signed-off-by: Lars-Peter Clausen <redacted>
12 years agosr: ols: Fix incorrect comment.
Uwe Hermann [Thu, 21 Jun 2012 21:59:27 +0000 (23:59 +0200)]
sr: ols: Fix incorrect comment.

12 years agosr: Unfinished Mastech VA18B (DMM) support.
Uwe Hermann [Wed, 20 Jun 2012 17:56:54 +0000 (19:56 +0200)]
sr: Unfinished Mastech VA18B (DMM) support.

12 years agosr: chronovu-la8: Split code into api.c and driver.c.
Uwe Hermann [Thu, 21 Jun 2012 20:36:13 +0000 (22:36 +0200)]
sr: chronovu-la8: Split code into api.c and driver.c.

We should generally use api.c for API related functions and put the other
functions (mostly hardware-specific low-level code) into other C file(s)
for better readability.

12 years agosr: analog: Add MQ and UNIT enums.
Uwe Hermann [Wed, 20 Jun 2012 21:55:23 +0000 (23:55 +0200)]
sr: analog: Add MQ and UNIT enums.

MQ is the measured quantity, e.g. voltage, current, temperature.

UNIT is the unit in which these quantities are measured, e.g. volt,
ampere, celsius, kelvin, etc. etc.

The same MQ can be specified in different UNITs by the driver, depending
on what the hardware reports. Conversion is left to the frontends.

12 years agosr: backend/zeroplus: Improve debug output.
Uwe Hermann [Tue, 19 Jun 2012 21:33:50 +0000 (23:33 +0200)]
sr: backend/zeroplus: Improve debug output.

12 years agosr: new output format 'float', just floating point values
Bert Vermeulen [Tue, 19 Jun 2012 00:05:28 +0000 (02:05 +0200)]
sr: new output format 'float', just floating point values

Also outputs FRAME-BEGIN and FRAME-END, if present in the stream.

12 years agosr: remove unused code
Bert Vermeulen [Tue, 19 Jun 2012 00:04:18 +0000 (02:04 +0200)]
sr: remove unused code

12 years agosr: only handling analog voltage units for now
Bert Vermeulen [Mon, 18 Jun 2012 23:06:02 +0000 (01:06 +0200)]
sr: only handling analog voltage units for now

12 years agohantek-dso: capturestate packet also contains the trigger point
Bert Vermeulen [Mon, 18 Jun 2012 21:09:37 +0000 (23:09 +0200)]
hantek-dso: capturestate packet also contains the trigger point

Not yet used, but it's the key to knowing where in the frame to
start displaying; the frame is used as a circular buffer, and what
is sent is effectively a snapshot.

12 years agohantek-dso: relays now set properly
Bert Vermeulen [Mon, 18 Jun 2012 21:05:02 +0000 (23:05 +0200)]
hantek-dso: relays now set properly

They appear to be arranged to switch on/off a hierarchical series of
devices that attenuate the channel by an order of magnitude.

12 years agosr: hantek-dso: Use portable g_ntohs() function.
Uwe Hermann [Wed, 13 Jun 2012 16:58:24 +0000 (18:58 +0200)]
sr: hantek-dso: Use portable g_ntohs() function.

The ntohs() from <arpa/inet.h> is not available on MinGW/Windows. There
are ways to work around this, but as we use glib already, using g_ntohs()
is the best option anyway.

12 years agohantek-dso: calculate voltage based on vdiv setting
Bert Vermeulen [Tue, 5 Jun 2012 16:17:01 +0000 (18:17 +0200)]
hantek-dso: calculate voltage based on vdiv setting

12 years agohantek-dso: default to DC coupling
Bert Vermeulen [Tue, 5 Jun 2012 16:16:23 +0000 (18:16 +0200)]
hantek-dso: default to DC coupling

12 years agohantek-dso: fix CH2 vdiv setting
Bert Vermeulen [Tue, 5 Jun 2012 16:15:58 +0000 (18:15 +0200)]
hantek-dso: fix CH2 vdiv setting

12 years agosr: add udev entry for Victor 70C multimeter
Bert Vermeulen [Tue, 5 Jun 2012 16:15:04 +0000 (18:15 +0200)]
sr: add udev entry for Victor 70C multimeter

12 years agosr: fix udev rules for Hantek DSO-2090
Bert Vermeulen [Tue, 5 Jun 2012 16:14:23 +0000 (18:14 +0200)]
sr: fix udev rules for Hantek DSO-2090

12 years agosr: add unit field to sr_df_analog packet
Bert Vermeulen [Tue, 5 Jun 2012 15:37:28 +0000 (17:37 +0200)]
sr: add unit field to sr_df_analog packet

12 years agosr: hantek-dso: Consistency renames, constification.
Uwe Hermann [Thu, 31 May 2012 23:12:09 +0000 (01:12 +0200)]
sr: hantek-dso: Consistency renames, constification.

12 years agocli/gtk/qt: Now all require libsigrok >= 0.2.0 (API changes).
Uwe Hermann [Thu, 31 May 2012 22:23:47 +0000 (00:23 +0200)]
cli/gtk/qt: Now all require libsigrok >= 0.2.0 (API changes).

12 years agosr: Increase pkg version to 0.2.0, increase lib version.
Uwe Hermann [Thu, 31 May 2012 22:16:42 +0000 (00:16 +0200)]
sr: Increase pkg version to 0.2.0, increase lib version.

12 years agosr: fx2lafw: Use gboolean, cosmetics, fix gcc warning.
Uwe Hermann [Thu, 31 May 2012 20:46:28 +0000 (22:46 +0200)]
sr: fx2lafw: Use gboolean, cosmetics, fix gcc warning.

12 years agohantek-dso: Update to constified libsigrok API.
Uwe Hermann [Thu, 31 May 2012 20:43:12 +0000 (22:43 +0200)]
hantek-dso: Update to constified libsigrok API.

12 years agohantek-dso: Quickfix for build issue (will be removed later).
Uwe Hermann [Thu, 31 May 2012 20:40:41 +0000 (22:40 +0200)]
hantek-dso: Quickfix for build issue (will be removed later).

12 years agofx2lafw: Added a check to limit the sample rate during 16-bit sampling
Joel Holdsworth [Thu, 10 May 2012 15:34:24 +0000 (16:34 +0100)]
fx2lafw: Added a check to limit the sample rate during 16-bit sampling

12 years agofx2lafw: Added device caps and added support for wide sampling
Joel Holdsworth [Mon, 7 May 2012 15:01:10 +0000 (16:01 +0100)]
fx2lafw: Added device caps and added support for wide sampling

12 years agosr: Made sample rate lists const
Joel Holdsworth [Mon, 7 May 2012 14:07:06 +0000 (15:07 +0100)]
sr: Made sample rate lists const

12 years agosr: Made the dev_config_set parameter a const pointer
Joel Holdsworth [Mon, 7 May 2012 14:02:02 +0000 (15:02 +0100)]
sr: Made the dev_config_set parameter a const pointer

12 years agosr: Made the dev_info_get return value const
Joel Holdsworth [Mon, 7 May 2012 12:35:56 +0000 (13:35 +0100)]
sr: Made the dev_info_get return value const

12 years agosr: Made hwcap const
Joel Holdsworth [Mon, 7 May 2012 12:57:43 +0000 (13:57 +0100)]
sr: Made hwcap const

12 years agohantek-dso: hopefully handle endianness in voltage setting
Bert Vermeulen [Sat, 19 May 2012 23:14:37 +0000 (01:14 +0200)]
hantek-dso: hopefully handle endianness in voltage setting

12 years agohantek-dso: enable SR_HWCAP_COUPLING
Bert Vermeulen [Sat, 19 May 2012 23:11:09 +0000 (01:11 +0200)]
hantek-dso: enable SR_HWCAP_COUPLING

12 years agohantek-dso: support for SR_HWCAP_COUPLING
Bert Vermeulen [Thu, 17 May 2012 01:17:09 +0000 (03:17 +0200)]
hantek-dso: support for SR_HWCAP_COUPLING

12 years agosr: support for SR_HWCAP_COUPLING and SR_DI_COUPLING
Bert Vermeulen [Thu, 17 May 2012 01:16:01 +0000 (03:16 +0200)]
sr: support for SR_HWCAP_COUPLING and SR_DI_COUPLING

12 years agohantek-dso: support SR_HWCAP_VDIV
Bert Vermeulen [Thu, 17 May 2012 00:03:12 +0000 (02:03 +0200)]
hantek-dso: support SR_HWCAP_VDIV

12 years agosr: support for SR_HWCAP_VDIV and SR_DI_VDIVS
Bert Vermeulen [Wed, 16 May 2012 23:55:59 +0000 (01:55 +0200)]
sr: support for SR_HWCAP_VDIV and SR_DI_VDIVS

12 years agosr: add voltage parser and prettyprinter
Bert Vermeulen [Wed, 16 May 2012 23:54:57 +0000 (01:54 +0200)]
sr: add voltage parser and prettyprinter

12 years agosr: use SR_T_RATIONAL_PERIOD (new-style types)
Bert Vermeulen [Wed, 16 May 2012 00:07:51 +0000 (02:07 +0200)]
sr: use SR_T_RATIONAL_PERIOD (new-style types)

SR_T_<type>_<parsehint>

12 years agohantek-dso: support for SR_HWCAP_FILTER
Bert Vermeulen [Tue, 15 May 2012 20:41:00 +0000 (22:41 +0200)]
hantek-dso: support for SR_HWCAP_FILTER

12 years agosr: support for SR_HWCAP_FILTER and SR_DI_FILTERS
Bert Vermeulen [Tue, 15 May 2012 20:39:32 +0000 (22:39 +0200)]
sr: support for SR_HWCAP_FILTER and SR_DI_FILTERS

12 years agohantek-dso: support for setting all CMD_SET_TRIGGER_SAMPLERATE params
Bert Vermeulen [Tue, 15 May 2012 18:56:29 +0000 (20:56 +0200)]
hantek-dso: support for setting all CMD_SET_TRIGGER_SAMPLERATE params

12 years agosr: add period parser
Bert Vermeulen [Tue, 15 May 2012 18:46:14 +0000 (20:46 +0200)]
sr: add period parser

12 years agosr: add support for sr_rational and various HWCAPs and DIs
Bert Vermeulen [Tue, 15 May 2012 18:45:46 +0000 (20:45 +0200)]
sr: add support for sr_rational and various HWCAPs and DIs

12 years agohantek-dso: proper protocol implementation of trigger/samplerate setting
Bert Vermeulen [Mon, 14 May 2012 00:33:37 +0000 (02:33 +0200)]
hantek-dso: proper protocol implementation of trigger/samplerate setting

12 years agohantek-dso: fix channel selection
Bert Vermeulen [Tue, 1 May 2012 18:35:04 +0000 (20:35 +0200)]
hantek-dso: fix channel selection

12 years agohantek-dso: delimit frames with SR_DF_FRAME_* packets
Bert Vermeulen [Mon, 30 Apr 2012 20:29:31 +0000 (22:29 +0200)]
hantek-dso: delimit frames with SR_DF_FRAME_* packets

12 years agosupport for frame begin/end packets
Bert Vermeulen [Mon, 30 Apr 2012 17:55:06 +0000 (19:55 +0200)]
support for frame begin/end packets

12 years agosr: initial support for Hantek 2xxx/5200 USB oscilloscopes
Bert Vermeulen [Sun, 22 Apr 2012 23:05:58 +0000 (01:05 +0200)]
sr: initial support for Hantek 2xxx/5200 USB oscilloscopes

12 years agosr: change all drivers to use SR_DF_META_LOGIC
Bert Vermeulen [Sun, 22 Apr 2012 18:06:19 +0000 (20:06 +0200)]
sr: change all drivers to use SR_DF_META_LOGIC

12 years agosr: SR_DF_ANALOG type, and meta types for analog+logic
Bert Vermeulen [Sun, 22 Apr 2012 16:11:31 +0000 (18:11 +0200)]
sr: SR_DF_ANALOG type, and meta types for analog+logic

12 years agosr: fx2lafw: Forgot to add (C) line to fx2lafw.h in recent commit. libsigrok-0.1.1
Uwe Hermann [Wed, 30 May 2012 21:31:03 +0000 (23:31 +0200)]
sr: fx2lafw: Forgot to add (C) line to fx2lafw.h in recent commit.

12 years agosr: fx2lafw: Only check for correct major FW version.
Uwe Hermann [Wed, 30 May 2012 21:15:23 +0000 (23:15 +0200)]
sr: fx2lafw: Only check for correct major FW version.

Changes in the minor version number are OK, as those should never
contain any incompatible/API changes.

12 years agosr: Consistently use ZEROPLUS spelling.
Uwe Hermann [Wed, 30 May 2012 20:55:03 +0000 (22:55 +0200)]
sr: Consistently use ZEROPLUS spelling.

This is the version used throughout their website, let's use it.

12 years agosr: Fix typos.
Uwe Hermann [Wed, 30 May 2012 20:42:19 +0000 (22:42 +0200)]
sr: Fix typos.

12 years agosr: fx2lafw: Add (C) line from old saleae driver it's based on.
Uwe Hermann [Wed, 30 May 2012 20:40:59 +0000 (22:40 +0200)]
sr: fx2lafw: Add (C) line from old saleae driver it's based on.

12 years agosr: README: Add section about firmware files.
Uwe Hermann [Wed, 30 May 2012 20:23:36 +0000 (22:23 +0200)]
sr: README: Add section about firmware files.

12 years agosr: udev file: Minor fixes/additions.
Uwe Hermann [Wed, 30 May 2012 19:48:40 +0000 (21:48 +0200)]
sr: udev file: Minor fixes/additions.

12 years agosr: NEWS: Minor updates/fixes.
Uwe Hermann [Wed, 30 May 2012 19:36:28 +0000 (21:36 +0200)]
sr: NEWS: Minor updates/fixes.

12 years agosr: Increase version number to 0.1.1.
Uwe Hermann [Wed, 30 May 2012 07:26:15 +0000 (09:26 +0200)]
sr: Increase version number to 0.1.1.

12 years agosr: Update NEWS in preparation of upcoming 0.1.1 release.
Uwe Hermann [Wed, 30 May 2012 07:25:11 +0000 (09:25 +0200)]
sr: Update NEWS in preparation of upcoming 0.1.1 release.

12 years agosr: fx2lafw: s/MAX_RENUM_DELAY/MAX_RENUM_DELAY_MS/.
Uwe Hermann [Wed, 30 May 2012 07:24:01 +0000 (09:24 +0200)]
sr: fx2lafw: s/MAX_RENUM_DELAY/MAX_RENUM_DELAY_MS/.

12 years agosr: fx2lafw: Fix a firmware upload bug on 32bit systems.
Uwe Hermann [Wed, 30 May 2012 07:10:41 +0000 (09:10 +0200)]
sr: fx2lafw: Fix a firmware upload bug on 32bit systems.

The glib GTimeVal data type (and some functions using it) will be faded
out from glib sooner or later, so it's not a good idea to use them anyway.

In this specific case GTimeVal.tv_sec was overflowing, leading a check in
libsigrok to fail, and thus to FX2 firmware upload errors, i.e.
non-working fx2lafw devices.

  http://thread.gmane.org/gmane.comp.debugging.sigrok.devel/166

The root cause is that GTimeVal.tv_sec is a 'glong' (8 bytes on 64bit
systems, but only 4 on 32bit systems).

We now use an int64_t (and g_get_monotonic_time() instead of the more
problematics g_get_current_time() which uses a GTimeVal).

This has been verified to fix the issue on a 32bit system.

Other uses of GTimeVal in libsigrok will be removed in a later release.

Also, drop unneeded GTV_TO_MSEC.

12 years agosr: input/chronovu_la8.c: Add missing #include.
Uwe Hermann [Wed, 30 May 2012 00:27:30 +0000 (02:27 +0200)]
sr: input/chronovu_la8.c: Add missing #include.

This fixes a compiler warning.

12 years agosr: New default firmware dir: $prefix/share/sigrok-firmware.
Uwe Hermann [Tue, 29 May 2012 22:00:33 +0000 (00:00 +0200)]
sr: New default firmware dir: $prefix/share/sigrok-firmware.

We no longer expect firmware files to be in the
$prefix/share/libsigrok/firmware directory, as that would require an
additional (distro) package 'sigrok-firmware' or the like to install
files into another package's (libsigrok) path, which can be problematic.

The current 'sigrok-firmware' repo's "make install" will already install
all files into $prefix/share/sigrok-firmware.

12 years agosr/srd/cli/gtk: ChangeLog -> MAINTAINERCLEANFILES.
Uwe Hermann [Tue, 29 May 2012 18:30:15 +0000 (20:30 +0200)]
sr/srd/cli/gtk: ChangeLog -> MAINTAINERCLEANFILES.

If the (generated) ChangeLog file is marked for DISTCLEANFILES, it'll be
removed whenever "make distclean" is called (and is then gone forever if
you use the tarballs, for example).