SQ50 patches for libsigrok
Go to file
Uwe Hermann 1f98295dfa sysclk-lwla: Fix probe name issue.
The g_ascii_formatd() function expects the "format" argument to start
with a '%' character, e.g. it should be "%f" or such (this is not
clearly documented in the glib API docs, but visible from the source code).

The usage of "CH%f" for example will trigger an assertion and thus make the
LWLA device unusable in practice (e.g. in PulseView on Windows no probenames
would be shown, and sampling wouldn't work).

Example:
  GLib-CRITICAL **: g_ascii_formatd: assertion 'format[0] == '%'' failed

(not exposed in all glib versions or builds of glib on all distros
apparently, some may need G_MESSAGES_DEBUG=all or other measures)

From the glib g_ascii_formatd() code:
  g_return_val_if_fail (format[0] == '%', NULL);

We now use g_snprintf() instead for simplicity. This has been tested to
fix this specific issue (i.e. the probenames now do show up in PulseView).

This closes bug #270.
2014-01-14 19:52:26 +01:00
bindings python: Use OrderedDict for input formats. 2013-12-17 16:29:41 +00:00
contrib sysclk-lwla: Implement support for the LWLA1034. 2014-01-14 19:33:31 +01:00
hardware sysclk-lwla: Fix probe name issue. 2014-01-14 19:52:26 +01:00
input log prefixes: Cosmetics, consistency fixes, typo fixes. 2013-12-27 13:17:20 +01:00
output output/analog: Add missing space (consistency). 2014-01-01 17:38:05 +01:00
tests Fix test failure 2013-12-07 12:25:18 +01:00
.gitignore .gitignore: Add some files from the testsuite. 2013-08-05 13:19:21 +02:00
AUTHORS autotools: Don't use "foreign" option. 2013-03-17 13:15:56 +01:00
COPYING sr/srd: Move some files to their resp. dirs. 2011-12-30 11:14:05 +01:00
Doxyfile Doxyfile/Doxyfile_internal: Ignore doxy/* when creating docs. 2013-12-27 15:50:27 +01:00
Doxyfile_internal Doxyfile/Doxyfile_internal: Ignore doxy/* when creating docs. 2013-12-27 15:50:27 +01:00
HACKING HACKING: Updates, some additions. 2013-11-04 01:14:56 +01:00
Makefile.am Makefile.am: Add missing HACKING file. 2013-09-25 14:26:35 +02:00
NEWS NEWS: Update for upcoming 0.2.2 release. 2013-11-04 01:24:49 +01:00
README Bump minimum libusb version to 1.0.16 2013-12-19 10:45:36 +01:00
README.devices Add support for the Tenma 72-7750 (UNI-T UT60G rebadge). 2014-01-06 20:30:35 +01:00
autogen.sh GPL headers: Use correct project name. 2013-04-23 22:24:30 +02:00
backend.c Doxygen fixes: Hide private stuff, document some structs. 2013-12-27 16:18:28 +01:00
configure.ac configure.ac: Don't build sysclk-lwla if libusb-1.0 is not found. 2014-01-14 19:46:05 +01:00
device.c Doxygen fixes: Hide private stuff, document some structs. 2013-12-27 16:18:28 +01:00
error.c error.c: Add SR_ERR_PROBE_GROUP handling. 2013-11-11 07:53:52 +01:00
filter.c Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
hwdriver.c sysclk-lwla: Initial driver skeleton. 2014-01-14 19:33:31 +01:00
libsigrok-internal.h scpi: make the scpi_dev_inst_new more generic 2014-01-12 00:05:02 +01:00
libsigrok.h Add config keys for programmable power supplies. 2014-01-10 00:39:36 +01:00
libsigrok.pc.in Always link against the math library. 2013-05-10 21:46:30 +02:00
log.c Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
proto.h Add sr_session_save_init(). 2014-01-07 12:55:02 +01:00
session.c Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
session_driver.c Add config keys for setting the number of analog probes. 2013-12-29 10:58:56 +01:00
session_file.c Add sr_session_save_init(). 2014-01-07 12:55:02 +01:00
std.c std: use #ifdef rather than #if where the constant may not be defined 2014-01-11 17:48:53 +01:00
strutil.c Use PRIu64 for format in pretty-printer. 2014-01-14 00:01:06 +01:00
version.c GPL headers: Use correct project name. 2013-04-23 22:24:30 +02:00
version.h.in GPL headers: Use correct project name. 2013-04-23 22:24:30 +02:00

README

-------------------------------------------------------------------------------
README
-------------------------------------------------------------------------------

The sigrok project aims at creating a portable, cross-platform,
Free/Libre/Open-Source signal analysis software suite that supports various
device types (such as logic analyzers, oscilloscopes, multimeters, and more).

libsigrok is a shared library written in C which provides the basic API
for talking to hardware and reading/writing the acquired data into various
input/output file formats.


Status
------

libsigrok is in a usable state and has had official tarball releases.

While the API can change from release to release, this will always be
properly documented and reflected in the package version number and
in the shared library / libtool / .so-file version numbers.

However, there are _NO_ guarantees at all for stable APIs in git snapshots!
Distro packagers should only use released tarballs (no git snapshots).


Requirements
------------

 - git
 - gcc (>= 4.0)
 - make
 - autoconf >= 2.63
 - automake >= 1.11
 - libtool
 - pkg-config >= 0.22
 - libglib >= 2.32.0
 - libzip >= 0.10
 - libserialport >= 0.1.0 (optional, used by some drivers)
 - libusb-1.0 >= 1.0.16 (optional, used by some drivers)
 - libftdi >= 0.16 (optional, used by some drivers)
 - libudev >= 151 (optional, used by some drivers)
 - libasound / alsa-lib >= 1.0 (optional, only used by the alsa driver)
 - check >= 0.9.4 (optional, only needed to run unit tests)


Building and installing
-----------------------

In order to get the libsigrok source code and build it, run:

 $ git clone git://sigrok.org/libsigrok
 $ cd libsigrok
 $ ./autogen.sh
 $ ./configure
 $ make

For installing libsigrok:

 $ make install

See INSTALL or the following wiki page for more (OS-specific) instructions:

 http://sigrok.org/wiki/Building


Device-specific issues
----------------------

Please check README.devices for some notes and hints about device- or
driver-specific issues to be aware of.


Firmware
--------

Some devices supported by libsigrok need a firmware to be uploaded before the
device can be used. See README.devices for details.


Copyright and license
---------------------

libsigrok is licensed under the terms of the GNU General Public License
(GPL), version 3 or later.

While some individual source code files are licensed under the GPLv2+, and
some files are licensed under the GPLv3+, this doesn't change the fact that
the library as a whole is licensed under the terms of the GPLv3+.

Please see the individual source files for the full list of copyright holders.


Mailing lists
-------------

There are two mailing lists for sigrok/libsigrok:

 https://lists.sourceforge.net/lists/listinfo/sigrok-devel
 https://lists.sourceforge.net/lists/listinfo/sigrok-commits


IRC
---

You can find the sigrok developers in the #sigrok IRC channel on Freenode.


Website
-------

 http://sigrok.org/wiki/Libsigrok