ut61e_python icon indicating copy to clipboard operation
ut61e_python copied to clipboard

My experience and possible issues

Open philcolbourn opened this issue 8 years ago • 1 comments

My UNI-T UT61E has a RS232 interface, not a USB interface.

I ended up modifying miniterm to set 7 bits as it allows me to set everything else, DTR to +5V, RTS to -5V, 19200, and odd parity.

(Actually, I think voltage is closer to +-6V...)

On piping serial to es51922 I had to modify it to make it work:

  1. I needed just value - so not es51922 issue and I can work with es51922 stdout output

  2. es51922 does not flush stdout so I added sys.stdout.flush()

and for your information,

  1. why is CSV format using a semicolon ';' instead of a comma ','?

With these changes I can do this:

./miniterm.py --dtr 1 --rts 0 --parity O /dev/ttyUSB0 19200 \
  | ~/.local/bin/es51922 \
  | feedgnuplot --stream --lines --xlen 50 --xlabel sample --ylabel V

Which generates a nice strip-chart-like graph of last 50 (in this case) values.

[diff.txt](https://github.com/pklaus/ut61e_python/files/681999/diff.txt)

philcolbourn avatar Jan 03 '17 10:01 philcolbourn

The RS-232 interface uses DTR and RTS to provide for + and - source. If you ground RTS and feed +9 to DTR you can "directly" read the RX with an arduino. Well, "directly" is not quite true, as the signal gets inverted but there is a package (CustomSoftwareSerial) that supports software serial with inverted logic and 7O1 (7bits odd parity). HTH.

tronar avatar Nov 19 '20 11:11 tronar