Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My experience and possible issues #2

Open
philcolbourn opened this issue Jan 3, 2017 · 1 comment
Open

My experience and possible issues #2

philcolbourn opened this issue Jan 3, 2017 · 1 comment

Comments

@philcolbourn
Copy link

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)

@tronar
Copy link

tronar commented Nov 19, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants