On 01/07/2015 12:52 AM, Uwe Hermann wrote:
Hi,

On Tue, Jan 06, 2015 at 06:34:02PM +0700, Jean-Luc Aufranc wrote:
I have a UNI-T UT61E multimeter, and I've tried to use sigrok on Ubuntu
14.04 using "RS232C" cable, which looks to be referred to as UT-D02 on
the net.
I've installed sigrok with apt-get install sigrok-cli.

Connected the serial cable via a USB to serial to the USB port of my
computer, but when I scan the device I get:
sigrok-cli --driver=uni-t-ut61e-ser:conn=/dev/ttyUSB1 --scan
sr: es51922: Invalid function byte: 0xb3.
sr: es51922: Invalid function byte: 0xb0.
sr: es51922: Both AC and DC flags detected in packet.
sr: es51922: Invalid function byte: 0xb0.
sr: es51922: Invalid function byte: 0xb0.
sr: es51922: Invalid function byte: 0x0d.
sr: serial: Didn't find a valid packet (read 20 bytes).

A more details log with -l 5 function can be found @
http://pastebin.com/y0Yf3pQK

So I wonder if I may doing something wrong, or the company has changed
something in my version.
The multimeter works OK in Windows with the tools provided in the CDROM.
Hm, that's strange. The multimeter works fine for me, I just tested both
the sigrok-cli/libsigrok version in Debian and the current git HEAD:

$ sigrok-cli --driver=uni-t-ut61e-ser:conn=/dev/ttyUSB0 --scan
The following devices were found:
uni-t-ut61e-ser - UNI-T UT61E (UT-D02 cable) with 1 channel: P1

$ sigrok-cli --driver=uni-t-ut61e-ser:conn=/dev/ttyUSB0 -O analog --samples 2
P1: -0.002390 V DC
P1: 0.007360 V DC

Are you sure you're connecting to the correct serial port (/dev/ttyUSB1
in your case)? Maybe that's another device there, and you really want
/dev/ttyUSB0 or /dev/ttyUSB2 or something like that? I can't think of
any other reason for this problem right now.


Uwe.

Thanks for the feedback.
It's working in a Windows 7 virtual machine with the same Ubuntu machine, so I'm confident the connection is right. Anyway, I've removed the other USB to serial adapter I had connected, and the problem is the same.
If I turn off the multimeter, I simply get:

sigrok-cli --driver=uni-t-ut61e-ser:conn=/dev/ttyUSB0 --scan
sr: serial: Didn't find a valid packet (read 0 bytes).

Which looks normal.

I've also taken some picture of my setup -> https://picasaweb.google.com/110719562692786994119/UNITUT16E?authuser=0&feat=directlink I bought the multimeter @ http://www.dx.com/p/ut61e-2-6-lcd-digital-multimeter-red-black-1-x-9v-6f22-battery-113306 in October 2014.
lsusb for the USB to serial adapter: http://pastebin.com/KVAtJbg0


Output using cutecom (ttyUSB0 / 19200 7O1) with Ohm range set to kOhm and .0L:

00000000: 31 32 32 b5 38 b0 b3 31 b0 b0 b0 b0 0d 8a 31 32

00000010: 32 b5 38 b0 b3 31 b0 b0 b0 b0 0d 8a 31 32 32 b5

00000020: 38 b0 b3 31 b0 b0 b0 b0 0d 8a 31 32 32 b5 38 b0

00000030: b3 31 b0 b0 b0 b0 0d 8a 31 32 32 b5 38 b0 b3 31

00000040: b0 b0 b0 b0 0d 8a 31 32 32 b5 38 b0 b3 31 b0 b0

00000050: b0 b0 0d 8a 31 32 32 b5 38 b0 b3 31 b0 b0 b0 b0

00000060: 0d 8a 31 32 32 b5 38 b0 b3 31 b0 b0 b0 b0 0d 8a

00000070: 31 32 32 b5 38 b0 b3 31 b0 b0 b0 b0 0d 8a 31 32

00000080: 32 b5 38 b0 b3 31 b0 b0 b0 b0 0d 8a 31 32 32 b5

00000090: 38 b0 b3 31 b0 b0 b0 b0 0d 8a 31 32 32 b5 38 b0

000000a0: b3 31 b0 b0 b0 b0 0d 8a ...



If I don't do anything wrong, I'm guess the data sent may have changed in the latest version of UT16E multimeter.







------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to