Hello,
I'm trying to read the data from my Fluke189 with sigrok-cli. The Fluke189 is
listed as supported, however it seems like its identifier is missing in the
fluke-dmm code (for libsigrok-0.2.1-557-g8c9d4d6). I've made the necessary
changes locally and I believe this is a bug (see attached patch).
The Fluke is now properly detected:
$sigrok-cli -d fluke-dmm:conn=/dev/cu.usbserial-A3000LQv --show
fluke-dmm - Fluke 189 V2.02 with 1 probe: P1
However I'm not sure how to read the data. How do I read a single sample ? This
is what I tried:
$sigrok-cli -d fluke-dmm:conn=/dev/cu.usbserial-A3000LQv:serialcomm=9600/8n1
--samples 1 --continuous -l 4
sr: libsigrok loglevel set to 4.
srd: libsigrokdecode loglevel set to 4.
sr: serial: Received 1: '0'.
sr: serial: Received 27: 'FLUKE 189, V2.02,0093120208'.
sr: fluke-dmm: Setting sample limit to 1.
sr: session: Starting.
sr: std: fluke-dmm: Starting acquisition.
sr: std: fluke-dmm: Sending SR_DF_HEADER packet.
sr: session: bus: Received SR_DF_HEADER packet.
cli: Received SR_DF_HEADER
Press any key to stop acquisition.
sr: session: Running.
sr: session: Stopping.
sr: std: fluke-dmm: Stopping acquisition.
sr: std: fluke-dmm: Sending SR_DF_END packet.
sr: session: bus: Received SR_DF_END packet.
cli: Received SR_DF_END
Device only sent 0 samples.
Device stopped after 0 samples.
Thank you for your attention,
Fabio
---------------------
*** api.orig.c 2014-03-04 12:27:05.000000000 +0100
--- api.c 2014-03-04 11:29:48.000000000 +0100
***************
*** 54,59 ****
--- 54,60 ----
static const struct flukedmm_profile supported_flukedmm[] = {
{ FLUKE_187, "187", 100, 1000 },
+ { FLUKE_189, "189", 100, 1000 },
{ FLUKE_287, "287", 100, 1000 },
{ FLUKE_190, "199B", 1000, 3500 },
};
*** fluke-dmm.orig.h 2014-03-04 12:27:05.000000000 +0100
--- fluke-dmm.h 2014-03-04 11:29:46.000000000 +0100
***************
*** 27,32 ****
--- 27,33 ----
/* Supported models */
enum {
FLUKE_187 = 1,
+ FLUKE_189,
FLUKE_287,
FLUKE_190,
};
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel