]> sigrok.org Git - libsigrok.git/log
libsigrok.git
11 years agobackend.c: Fix memory leak in sr_init() error path
Peter Stuge [Sat, 3 Nov 2012 07:27:48 +0000 (08:27 +0100)]
backend.c: Fix memory leak in sr_init() error path

Commit 785b9ff290cbdb86e7d0b0280c33b43faf9c0518 added libusb init into
sr_init() which can generate an error. In this case, the already
allocated struct sr_context would have leaked.

11 years agohardware: A few further USB error message fixups
Peter Stuge [Wed, 5 Dec 2012 00:23:49 +0000 (01:23 +0100)]
hardware: A few further USB error message fixups

11 years agohardware: Call libusb_error_name() in all USB-related error messages
Peter Stuge [Tue, 4 Dec 2012 20:11:25 +0000 (21:11 +0100)]
hardware: Call libusb_error_name() in all USB-related error messages

11 years agolascar-el-usb: add scanning functionality
Bert Vermeulen [Tue, 4 Dec 2012 22:58:26 +0000 (23:58 +0100)]
lascar-el-usb: add scanning functionality

11 years agoadd thermometer and hygrometer HWCAPs
Bert Vermeulen [Tue, 4 Dec 2012 22:58:03 +0000 (23:58 +0100)]
add thermometer and hygrometer HWCAPs

11 years agousb: sr_usb_find() uses standardized connection string to find a USB device
Bert Vermeulen [Tue, 4 Dec 2012 22:25:11 +0000 (23:25 +0100)]
usb: sr_usb_find() uses standardized connection string to find a USB device

11 years agoadd VID:PID for generic SILabs F32x USBXpress chips
Bert Vermeulen [Tue, 4 Dec 2012 22:11:40 +0000 (23:11 +0100)]
add VID:PID for generic SILabs F32x USBXpress chips

Used in Lascar EL-USB series devices

11 years agoezusb: Use DRIVER_LOG_DOMAIN for debug output
Alexandru Gagniuc [Tue, 4 Dec 2012 19:31:49 +0000 (13:31 -0600)]
ezusb: Use DRIVER_LOG_DOMAIN for debug output

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agotondaj-sl-814: Fix unused parameter warning
Alexandru Gagniuc [Tue, 4 Dec 2012 01:39:58 +0000 (19:39 -0600)]
tondaj-sl-814: Fix unused parameter warning

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agohardware: Make USB drivers use the libusb_context in struct sr_context
Peter Stuge [Mon, 3 Dec 2012 02:33:24 +0000 (03:33 +0100)]
hardware: Make USB drivers use the libusb_context in struct sr_context

11 years agohw_init(): Save struct sr_context * parameter in struct drv_context
Peter Stuge [Mon, 3 Dec 2012 01:49:36 +0000 (02:49 +0100)]
hw_init(): Save struct sr_context * parameter in struct drv_context

11 years agoAdd a struct sr_context * parameter to hw_init()
Peter Stuge [Mon, 3 Dec 2012 01:47:55 +0000 (02:47 +0100)]
Add a struct sr_context * parameter to hw_init()

11 years agoAdd a struct sr_context * parameter to sr_driver_init()
Peter Stuge [Mon, 3 Dec 2012 01:42:57 +0000 (02:42 +0100)]
Add a struct sr_context * parameter to sr_driver_init()

Since the public API is changed, this commit also bumps the libtool
version component SR_LIB_VERSION_CURRENT in configure.ac.

11 years agoalsa: Remove unused and unprovided hw_init() parameter `devname'
Peter Stuge [Mon, 3 Dec 2012 00:34:23 +0000 (01:34 +0100)]
alsa: Remove unused and unprovided hw_init() parameter `devname'

11 years agolascar-el-usb: Initial driver skeleton.
Bert Vermeulen [Tue, 27 Nov 2012 16:40:14 +0000 (17:40 +0100)]
lascar-el-usb: Initial driver skeleton.

11 years agoRemove some radioshack-dmm leftovers.
Uwe Hermann [Sun, 2 Dec 2012 20:58:34 +0000 (21:58 +0100)]
Remove some radioshack-dmm leftovers.

11 years agoserial.c: Be more verbose about failing to parse parameter string
Alexandru Gagniuc [Sun, 2 Dec 2012 19:34:51 +0000 (13:34 -0600)]
serial.c: Be more verbose about failing to parse parameter string

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agoradioshack-dmm: Integrate into serial-dmm
Alexandru Gagniuc [Sun, 2 Dec 2012 19:15:21 +0000 (13:15 -0600)]
radioshack-dmm: Integrate into serial-dmm

Use the infrastructure of serial-dmm to handle the RadioShack 22-812,
and completely remove radioshack-dmm.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agoradioshack-dmm: Separate protocol parser from driver
Alexandru Gagniuc [Sun, 2 Dec 2012 18:58:30 +0000 (12:58 -0600)]
radioshack-dmm: Separate protocol parser from driver

Move the parsing part of radioshack-dmm into a separate protocol
parser, following the model from hardware/common/dmm.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agoradioshack-dmm: Fix opening of serial port.
Alexandru Gagniuc [Sun, 2 Dec 2012 18:43:37 +0000 (12:43 -0600)]
radioshack-dmm: Fix opening of serial port.

During scan the serial port is opened with SERIAL_RDONLY | SERIAL_NONBLOCK,
which works fine, but when acquisition starts, it is opened only with
SERIAL_RDONLY. On Linux, if cdc_acm can make a claim to the USB to serial
converter, opening the port will fail.

Open port with SERIAL_RDONLY | SERIAL_NONBLOCK.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agoserial-dmm: Add RadioShack 22-168 support.
Alexandru Gagniuc [Sun, 2 Dec 2012 15:17:46 +0000 (09:17 -0600)]
serial-dmm: Add RadioShack 22-168 support.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agodemo: Add missing dev_clear() API call.
Uwe Hermann [Sun, 2 Dec 2012 16:21:13 +0000 (17:21 +0100)]
demo: Add missing dev_clear() API call.

11 years agosr_init(): Add driver sanity checks.
Uwe Hermann [Sun, 11 Nov 2012 22:54:49 +0000 (23:54 +0100)]
sr_init(): Add driver sanity checks.

After sr_init() has successfully run, we can be sure that all drivers
define all the API calls, so we don't have to do these checks later
in the individual API functions / wrappers.

If there are one or more drivers with missing API functions (or driver
name / longname, and so on), sr_init() will fail. This helps catch this
kind of developer error early on.

11 years agoserial-dmm: Drop accidentally committed file.
Uwe Hermann [Sun, 2 Dec 2012 15:11:42 +0000 (16:11 +0100)]
serial-dmm: Drop accidentally committed file.

11 years agoReduce glib minimum version to 2.28.0 again.
Uwe Hermann [Sun, 2 Dec 2012 15:09:31 +0000 (16:09 +0100)]
Reduce glib minimum version to 2.28.0 again.

We no longer use g_thread_try_new() which is only available since 2.32.0.

11 years agodemo: Do not use a separate thread for generating data
Alexandru Gagniuc [Sun, 2 Dec 2012 00:07:10 +0000 (18:07 -0600)]
demo: Do not use a separate thread for generating data

We already have an event-based mechanism in place. Using a thread just
adds unneeded complexity, especially for a driver designed not for
performance, but for providing a testbed to frontends.
Generate the data in the event handler, not in a separate thread.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agoserial-dmm: Add PCE PCE-DM32 support.
Uwe Hermann [Sun, 2 Dec 2012 00:32:57 +0000 (01:32 +0100)]
serial-dmm: Add PCE PCE-DM32 support.

11 years agoserial-dmm: Add PeakTech 4370 support.
Uwe Hermann [Sun, 2 Dec 2012 00:02:16 +0000 (01:02 +0100)]
serial-dmm: Add PeakTech 4370 support.

11 years agoserial-dmm: Add Metex M-3640D support.
Uwe Hermann [Sat, 1 Dec 2012 23:40:15 +0000 (00:40 +0100)]
serial-dmm: Add Metex M-3640D support.

11 years agometex14: Add dB mode and hFE mode support.
Uwe Hermann [Sat, 1 Dec 2012 23:36:37 +0000 (00:36 +0100)]
metex14: Add dB mode and hFE mode support.

This is found e.g. on the Metex M-3640D DMM.

11 years agoserial-dmm: Add V&A VA18B support.
Uwe Hermann [Sat, 1 Dec 2012 22:32:39 +0000 (23:32 +0100)]
serial-dmm: Add V&A VA18B support.

11 years agoserial-dmm: Add MASTECH MAS345 support.
Uwe Hermann [Sat, 1 Dec 2012 22:04:00 +0000 (23:04 +0100)]
serial-dmm: Add MASTECH MAS345 support.

11 years agoserial-dmm: Add PeakTech 3410 support.
Uwe Hermann [Sat, 1 Dec 2012 21:45:45 +0000 (22:45 +0100)]
serial-dmm: Add PeakTech 3410 support.

11 years agoserial-dmm: Add Metex ME-31 support.
Uwe Hermann [Sun, 2 Dec 2012 13:22:15 +0000 (14:22 +0100)]
serial-dmm: Add Metex ME-31 support.

11 years agoserial-dmm: Add Digitek DT4000ZC support.
Uwe Hermann [Sat, 1 Dec 2012 18:53:05 +0000 (19:53 +0100)]
serial-dmm: Add Digitek DT4000ZC support.

11 years agometex14: Add sr_metex14_packet_request().
Uwe Hermann [Sat, 1 Dec 2012 19:48:03 +0000 (20:48 +0100)]
metex14: Add sr_metex14_packet_request().

11 years agometex14: Fix 'is_ol' handling.
Uwe Hermann [Sat, 1 Dec 2012 19:11:40 +0000 (20:11 +0100)]
metex14: Fix 'is_ol' handling.

Thanks to Bert Vermeulen for the reminder.

11 years agometex14: Parse microamp (uA) values.
Alexandru Gagniuc [Fri, 30 Nov 2012 19:15:44 +0000 (13:15 -0600)]
metex14: Parse microamp (uA) values.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agometex14: Fix parsing of measurement flags.
Alexandru Gagniuc [Fri, 30 Nov 2012 19:11:04 +0000 (13:11 -0600)]
metex14: Fix parsing of measurement flags.

strcmp(buf + 9, "  mA") does not work because buf is CR-terminated,
while "  mA" is NUL-terminated.

Drop ambiguities arising from the termination of the strings, and
only compare the characters we care about, using strncmp().

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agometex14: Print contents of received packet.
Alexandru Gagniuc [Fri, 30 Nov 2012 18:40:17 +0000 (12:40 -0600)]
metex14: Print contents of received packet.

The packet is an ASCII string. We can simply print the raw packet data.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agometex14: Fix parsing of spaces.
Alexandru Gagniuc [Fri, 30 Nov 2012 18:29:22 +0000 (12:29 -0600)]
metex14: Fix parsing of spaces.

When the parser found a space, it treated it as an invalid digit
and discarded the whole packet. This behavior was incorrect on
2000 count devices, where the first digit can be sent as a space
rather than a '0'.

Convert spaces to '0' and parse them as usual.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agoRename tekpower-dmm to serial-dmm.
Uwe Hermann [Sat, 1 Dec 2012 18:35:19 +0000 (19:35 +0100)]
Rename tekpower-dmm to serial-dmm.

This is now a generic driver for multiple DMM "subdrivers" that use simple
serial port protocols.

11 years agotekpower-dmm: Generalize & first-class TP4000ZC driver.
Uwe Hermann [Sat, 1 Dec 2012 18:28:36 +0000 (19:28 +0100)]
tekpower-dmm: Generalize & first-class TP4000ZC driver.

Prepare the tekpower-dmm driver to be able to support various simple
serial port based DMMs.

Also, make a 'tekpower-tp4000zc' "first-class" driver which is currently
the only user of this generic driver.

11 years agometex14: Pass 'info' as a void pointer.
Uwe Hermann [Sat, 1 Dec 2012 18:01:07 +0000 (19:01 +0100)]
metex14: Pass 'info' as a void pointer.

This is done so that the function prototype of all sr_*_parse() DMM
functions is the same, which will be needed later.

11 years agofs9721: Pass 'info' as a void pointer.
Uwe Hermann [Sat, 1 Dec 2012 17:50:35 +0000 (18:50 +0100)]
fs9721: Pass 'info' as a void pointer.

This is done so that the function prototype of all sr_*_parse() DMM
functions is the same, which will be needed later.

11 years agotekpower-dmm: Drop unneeded g_try_malloc().
Uwe Hermann [Wed, 28 Nov 2012 16:14:42 +0000 (17:14 +0100)]
tekpower-dmm: Drop unneeded g_try_malloc().

11 years agoserial: Don't hardcode parity and stop bits on Windows.
Uwe Hermann [Sun, 2 Dec 2012 13:10:27 +0000 (14:10 +0100)]
serial: Don't hardcode parity and stop bits on Windows.

11 years agoserial: Full baudrate support on Windows/MinGW.
Uwe Hermann [Sun, 2 Dec 2012 12:56:13 +0000 (13:56 +0100)]
serial: Full baudrate support on Windows/MinGW.

11 years agoserial: RTS/DTR support on Windows/MinGW.
Uwe Hermann [Sun, 2 Dec 2012 12:41:49 +0000 (13:41 +0100)]
serial: RTS/DTR support on Windows/MinGW.

11 years agoserial: Use OS-independent flags for serial port opening.
Uwe Hermann [Sun, 2 Dec 2012 11:45:54 +0000 (12:45 +0100)]
serial: Use OS-independent flags for serial port opening.

Add SERIAL_RDWR, SERIAL_RDONLY, and SERIAL_NONBLOCK (for now), which are
mapped to the respective OS-specific mechanism in serial_open().

11 years agoserial: Fix Windows build.
Uwe Hermann [Sat, 1 Dec 2012 21:34:53 +0000 (22:34 +0100)]
serial: Fix Windows build.

11 years agodemo: Properly stop acquisition after reaching our sample quota
Alexandru Gagniuc [Sat, 1 Dec 2012 18:49:15 +0000 (12:49 -0600)]
demo: Properly stop acquisition after reaching our sample quota

The demo driver was using sr_session_source_add_channel() to add
a poll source, but was relying on sr_session_run_poll() to call
sr_session_source_remove(). This, coupled with the design of the
driver caused errors once the samples were collected.

The error stream was most likely related to failing to properly close
one of the channels.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agodemo: Be more verbose about starting/stopping acquisition
Alexandru Gagniuc [Sat, 1 Dec 2012 18:03:45 +0000 (12:03 -0600)]
demo: Be more verbose about starting/stopping acquisition

This is the first step in fixing the demo driver: figuring out what is
being called and what is not _and_ have it show up in the logs.

Signed-off-by: Alexandru Gagniuc <redacted>
12 years agoserial: allow for extra rts and dtr options in conn string
Bert Vermeulen [Mon, 26 Nov 2012 23:50:51 +0000 (00:50 +0100)]
serial: allow for extra rts and dtr options in conn string

Options in addition to the usual "9600/8n1" syntax start with a
slash, and take the form of key=value, where different options are
also separated by slashes. For example:

"9600/8n1/rts=0/dtr=1"

This sets RTS low and DTR high.

12 years agoserial: Initial code for setting DTR/RTS.
Uwe Hermann [Mon, 26 Nov 2012 16:01:15 +0000 (17:01 +0100)]
serial: Initial code for setting DTR/RTS.

Currently disabled until option parsing is in place.

12 years agoAdd compress option to input/vcd.
Petteri Aimonen [Thu, 22 Nov 2012 21:15:27 +0000 (23:15 +0200)]
Add compress option to input/vcd.

12 years agoradioshack-dmm: Be more verbose with packet checks
Alexandru Gagniuc [Thu, 22 Nov 2012 01:33:55 +0000 (19:33 -0600)]
radioshack-dmm: Be more verbose with packet checks

Add sr_spew() messages to state why the packet was found to be invalid.

Signed-off-by: Alexandru Gagniuc <redacted>
12 years agoradioshack-dmm: Check for valid mode before calculating checksum
Alexandru Gagniuc [Thu, 22 Nov 2012 01:30:26 +0000 (19:30 -0600)]
radioshack-dmm: Check for valid mode before calculating checksum

The packet mode byte is akin to a signature. If that is invalid, there's
no point in calculating the checksum, so check the mode first.

Signed-off-by: Alexandru Gagniuc <redacted>
12 years agoradioshack-dmm: Improve serial detection
Alexandru Gagniuc [Thu, 22 Nov 2012 01:19:58 +0000 (19:19 -0600)]
radioshack-dmm: Improve serial detection

For device detection, use serial_stream_detect() instead of
serial_readline() + custom logic.

Signed-off-by: Alexandru Gagniuc <redacted>
12 years agoserial.c: Sanitize serial_stream_detect
Alexandru Gagniuc [Thu, 22 Nov 2012 01:18:21 +0000 (19:18 -0600)]
serial.c: Sanitize serial_stream_detect

Print the timeout in miliseconds, not microseconds.
Only calculate elapsed time once oer loop.

Signed-off-by: Alexandru Gagniuc <redacted>
12 years agoImprove compatibility with various kinds of VCD files.
Petteri Aimonen [Wed, 21 Nov 2012 15:03:49 +0000 (17:03 +0200)]
Improve compatibility with various kinds of VCD files.

12 years agoAdd downsample and skip parameters to input/vcd.
Petteri Aimonen [Wed, 21 Nov 2012 14:28:55 +0000 (16:28 +0200)]
Add downsample and skip parameters to input/vcd.

12 years agoVCD data parsing
Petteri Aimonen [Tue, 20 Nov 2012 20:24:17 +0000 (22:24 +0200)]
VCD data parsing

12 years agoBeginnings of VCD input module.
Petteri Aimonen [Tue, 20 Nov 2012 19:03:06 +0000 (21:03 +0200)]
Beginnings of VCD input module.

File header parsing implemented.
Data parsing not yet implemented.

12 years agoAdd support for fs and ps to sr_parse_period.
Petteri Aimonen [Tue, 20 Nov 2012 19:02:14 +0000 (21:02 +0200)]
Add support for fs and ps to sr_parse_period.

These time units are used in VCD files.

12 years agoAdd Metex 14-byte ASCII protocol parser.
Uwe Hermann [Wed, 14 Nov 2012 17:38:26 +0000 (18:38 +0100)]
Add Metex 14-byte ASCII protocol parser.

12 years agools: if no serial port specified, this driver is not used.
Bert Vermeulen [Fri, 16 Nov 2012 14:26:17 +0000 (15:26 +0100)]
ols: if no serial port specified, this driver is not used.

12 years agoMove serial_stream_detect() to serial.c.
Uwe Hermann [Wed, 14 Nov 2012 17:35:37 +0000 (18:35 +0100)]
Move serial_stream_detect() to serial.c.

12 years agoconfigure.ac: Update NEED_SERIAL list.
Uwe Hermann [Wed, 14 Nov 2012 17:29:27 +0000 (18:29 +0100)]
configure.ac: Update NEED_SERIAL list.

12 years agoserial: Compile-fix for Windows/MinGW.
Uwe Hermann [Wed, 14 Nov 2012 17:20:13 +0000 (18:20 +0100)]
serial: Compile-fix for Windows/MinGW.

12 years agotekpower-dmm: Cosmetics.
Uwe Hermann [Mon, 5 Nov 2012 22:25:59 +0000 (23:25 +0100)]
tekpower-dmm: Cosmetics.

12 years agotekpower-dmm: Improve serial detection.
Alexandru Gagniuc [Fri, 2 Nov 2012 15:53:06 +0000 (10:53 -0500)]
tekpower-dmm: Improve serial detection.

Serial detection was using serial_readline, which stripped carriage
return from the packets. This made for a very unreliable detection
mechanism.

Switch to a timeout-based detection mechanism that parses the data
as it comes in. This also allows us to stop parsing once we found
our first valid packet.

Signed-off-by: Alexandru Gagniuc <redacted>
12 years agoDrop obsolete genericdmm driver.
Uwe Hermann [Wed, 14 Nov 2012 14:18:02 +0000 (15:18 +0100)]
Drop obsolete genericdmm driver.

12 years agotekpower-dmm: use new serial API
Bert Vermeulen [Mon, 12 Nov 2012 11:50:42 +0000 (12:50 +0100)]
tekpower-dmm: use new serial API

12 years agoradioshack-dmm: use new serial API
Bert Vermeulen [Mon, 12 Nov 2012 11:41:10 +0000 (12:41 +0100)]
radioshack-dmm: use new serial API

12 years agotondaj-sl-814: use new serial API
Bert Vermeulen [Mon, 12 Nov 2012 02:00:32 +0000 (03:00 +0100)]
tondaj-sl-814: use new serial API

12 years agocolead-slm: use new serial API
Bert Vermeulen [Mon, 12 Nov 2012 01:48:04 +0000 (02:48 +0100)]
colead-slm: use new serial API

12 years agoagilent-dmm: use new serial API
Bert Vermeulen [Mon, 12 Nov 2012 01:25:37 +0000 (02:25 +0100)]
agilent-dmm: use new serial API

12 years agofluke-dmm: use new serial API
Bert Vermeulen [Mon, 12 Nov 2012 01:25:17 +0000 (02:25 +0100)]
fluke-dmm: use new serial API

12 years agools: use new serial API
Bert Vermeulen [Mon, 12 Nov 2012 01:24:47 +0000 (02:24 +0100)]
ols: use new serial API

12 years agoserial: revamp internal API
Bert Vermeulen [Sun, 11 Nov 2012 19:38:47 +0000 (20:38 +0100)]
serial: revamp internal API

The only thing to get passed around now is the struct sr_serial_dev_inst
pointer. This should make things more portable as well.

12 years agosigma/la8/demo: s/SR_PROBE_ANALOG/SR_PROBE_LOGIC/.
Uwe Hermann [Sun, 11 Nov 2012 18:40:14 +0000 (19:40 +0100)]
sigma/la8/demo: s/SR_PROBE_ANALOG/SR_PROBE_LOGIC/.

12 years agoalsa: Use message logging helpers.
Uwe Hermann [Sun, 11 Nov 2012 12:17:44 +0000 (13:17 +0100)]
alsa: Use message logging helpers.

12 years agooutput/gnuplot: Drop obsolete code.
Uwe Hermann [Sun, 11 Nov 2012 12:11:58 +0000 (13:11 +0100)]
output/gnuplot: Drop obsolete code.

12 years agocontrib/Makefile.am: Add missing files.
Uwe Hermann [Sun, 11 Nov 2012 12:10:29 +0000 (13:10 +0100)]
contrib/Makefile.am: Add missing files.

12 years agoVarious subsystems: Use message logging helpers.
Uwe Hermann [Sun, 11 Nov 2012 11:44:16 +0000 (12:44 +0100)]
Various subsystems: Use message logging helpers.

12 years agoOutput modules: Use message logging helpers.
Uwe Hermann [Sun, 11 Nov 2012 08:36:21 +0000 (09:36 +0100)]
Output modules: Use message logging helpers.

12 years agoInput modules: Use message logging helpers.
Uwe Hermann [Sun, 11 Nov 2012 08:20:08 +0000 (09:20 +0100)]
Input modules: Use message logging helpers.

12 years agoAll drivers: Drop unneeded comments.
Uwe Hermann [Sun, 11 Nov 2012 08:30:42 +0000 (09:30 +0100)]
All drivers: Drop unneeded comments.

12 years agovictor-dmm: Cosmetics.
Uwe Hermann [Sun, 11 Nov 2012 08:28:30 +0000 (09:28 +0100)]
victor-dmm: Cosmetics.

12 years agoserial: avoid Cyrillic conversion specifiers
Bert Vermeulen [Sun, 11 Nov 2012 02:27:51 +0000 (03:27 +0100)]
serial: avoid Cyrillic conversion specifiers

12 years agools: fix device discovery
Bert Vermeulen [Sun, 11 Nov 2012 02:10:29 +0000 (03:10 +0100)]
ols: fix device discovery

12 years agools: Do not randomly probe serial ports
Alexandru Gagniuc [Sat, 10 Nov 2012 01:52:45 +0000 (19:52 -0600)]
ols: Do not randomly probe serial ports

ols driver used to probe a series of available serial ports obtained
by regexp matching of common serial port names.
There are a number of problems with this approach:
1. It will probe all serial devices, including devices that do not
like to be probed, potentially causing them to act up.
2. It will try to probe serial ports which may already be opened in
other applications for other purposes.
3. It assumes the naming of the serial ports is set in stone, and
creates an unnecessary OS-specific list.
4. It produces unnecessary debug output even when an OLS device is
not connected.
5. etc...

Do not implicitly probe serial ports. Only probe the port specified
by the frontend, if any; otherwise, just quit.
Also get rid of all functionality in serial.c which was designed
specifically for random probing.

Signed-off-by: Alexandru Gagniuc <redacted>
12 years agocomment fix
Bert Vermeulen [Sun, 11 Nov 2012 01:11:49 +0000 (02:11 +0100)]
comment fix

12 years agolink-mso19: Use message logging helpers.
Uwe Hermann [Sat, 10 Nov 2012 18:39:37 +0000 (19:39 +0100)]
link-mso19: Use message logging helpers.

12 years agodemo: Use message logging helpers.
Uwe Hermann [Sat, 10 Nov 2012 17:24:05 +0000 (18:24 +0100)]
demo: Use message logging helpers.

12 years agohantek-dso: Use message logging helpers.
Uwe Hermann [Sat, 10 Nov 2012 17:19:30 +0000 (18:19 +0100)]
hantek-dso: Use message logging helpers.

12 years agoasix-sigma: Use message logging helpers.
Uwe Hermann [Sat, 10 Nov 2012 12:42:00 +0000 (13:42 +0100)]
asix-sigma: Use message logging helpers.

12 years agoradioshack-dmm: Use new file naming conventions.
Uwe Hermann [Sat, 10 Nov 2012 12:32:46 +0000 (13:32 +0100)]
radioshack-dmm: Use new file naming conventions.

12 years agoradioshack-dmm: Move some stuff out of .h file.
Uwe Hermann [Sat, 10 Nov 2012 12:30:02 +0000 (13:30 +0100)]
radioshack-dmm: Move some stuff out of .h file.

Most of the enums and #defines are not needed in multiple files, just
put them in the respective .c file where they're used.