Well, just in case...I wired a switched connector. That found no
communication:
denis@denis-ThinkPad-L420:~$ sigrok-cli --driver
mastech-mas345:conn=/dev/ttyUSB0 --samples 10
sr: serial: Didn't find a valid packet (read 0 bytes).
No devices found.
For completeness, here are the interface
On Sat, Dec 16, 2017 at 3:48 PM, Denis Heidtmann
wrote:
> Yes, Russell, I thought of that. I first need to install the driver for
> the usb-serial device, recall how I did that on the laptop, and try to do
> it the same way. But I will pursue that when I get access to
Denis,
In Unix-manpage-speak, [] around something means it's optional.
Regards,
NealS
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug
>From man stty:
[-]parenb
generate parity bit in output and expect parity bit in input
[-]parodd
set odd parity (or even parity with '-')
I thought the "-" preceded every control; not meaning negative. Your
interpretation makes more sense. The parodd entry
Denis,
I believe "-parenb" means no parity, as shown in your stty -a output, looks
good to me.
I'm just guessing, not having anything serial or scope-ial to hook up to my
linux box at the moment.
The cooked/raw/echo/xyzzy settings are way beyond my scope of experience.
NealS
Galen, thanks for the Clinic offer, but I will not be able to make it
there.
Since my last report I have set the baud rate and bits:
denis@denis-ThinkPad-L420:~$ stty -F/dev/ttyUSB0 -a
speed 600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ;
On 12/14/17 21:24, Denis Heidtmann wrote:
> Measuring with a 'scope with the laptop issuing the command sigrok-cli
> --driver mastech-mas345:conn=/dev/ttyUSB0 --samples 10:
>
> triggering on DTR
>
> DTR goes from -6.6V to +7.6V and remains there 'till 9.64s
> RX goes from -2.6V to +6.4V for
Measuring with a 'scope with the laptop issuing the command sigrok-cli
--driver mastech-mas345:conn=/dev/ttyUSB0 --samples 10:
triggering on DTR
DTR goes from -6.6V to +7.6V and remains there 'till 9.64s
RX goes from -2.6V to +6.4V for .48s then again at 2.6s,3.12s, etc 'till
7.32s (10 groups
The optocouplers in the dmm are reportedly TLV817B. The emitter resistor
on the output npn is shown on the schematic to be 1.5K. I measured it to
be 7.35K. The input resistor in series with the LED is listed as 3.3K. I
have not opened the dmm to see if the schematic is accurate. I agree that
On 12/13/17 23:03, Russell Senior wrote:
> The precise levels are not supposed to make a difference. Below a
> negative threshold and above a positive threshold should be enough.
> From memory, original RS232 was +/- 12V, but any remotely modern PC
> would use +/- 5V-ish.
And the reality is that
To step back a bit I fabricated a little fixture to make it convenient to
test the lines going into the dmm. I found a description of those lines:
5-pin inline connector.
pin 1 Gnd
pin 2 TX
pin 3 RTS (must be off)
pin 4 DTR (must be on)
pin 5 RX
The connections are through optical couplers in
On Mon, Dec 11, 2017 at 11:21 AM, Denis Heidtmann
wrote:
> Is it possible that your command /dev/ttyUSB0 600,cs7,cstopb,-parenb has an
> error?
Not only possible, but likely.
> I executed stty 600 then stty -a :
> denis@denis-ThinkPad-L420:~$ stty -a
> speed 600 baud;
Is it possible that your command /dev/ttyUSB0 600,cs7,cstopb,-parenb has an
error?
I executed stty 600 then stty -a :
denis@denis-ThinkPad-L420:~$ stty -a
speed 600 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ;
eol2 = ; swtch = ; start = ^Q;
Tried it. No response. Not sure how I got back to a functioning terminal,
but now:
denis@denis-ThinkPad-L420:~$ sigrok-cli --driver
mastech-mas345:conn=/dev/ttyUSB0 --scan
sr: serial: Error opening port (16): Device or resource busy.
denis@denis-ThinkPad-L420:~$
On Sun, Dec 10, 2017 at 11:32
The signaling on a PC RS232 line is +nV and -nV, where n is somewhere
between 5 and 12, inclusive. So, I think -6V would be a zero and a
+6V would be a one.
I think you can use GNU screen here, with the following options
(serial parameters are from the manpage from stty(1):
screen
I notice that 12 V is mentioned. I measure ~6 V from ground to every pin
except RxD, which is zero. (All DC; when not sending data.) Could this be
the issue?
On Sun, Dec 10, 2017 at 6:28 PM, Denis Heidtmann
wrote:
> Here is the protocol description I recall finding:
Here is the protocol description I recall finding:
MAS345:
data format: 7n2 at 600 baud (7 bits, no parity, 2 stop bits).
Control lines:
DTR and RTS lines are used to power the TX line: RTS is clear
for -12 supply; DTR is set for +12 supply. Data transmission is
solicited sending
The protocol I recall seeing documented was 7n2, 600 baud. I must confess
I do not know how to talk directly over serial. I tried Google, but there
were too many options and opinions. What do you recommend for this simple
task?
On Sun, Dec 10, 2017 at 3:01 PM, Russell Senior
Try talking to the DMM directly over serial. The protocol description says:
Various multimeters from Metex (and rebadged ones) use this common
14-byte packet based ASCII protocol. The actual multimeter ICs in the
devices have different names (e.g. "MASTECH M343-01" or "Metex
KS57C2016") but
Thanks for the -help. I got part of that -help when I entered an incorrect
option, but somehow missed the -- entries at the end. Here is what I get:
denis@denis-ThinkPad-L420:~$ sigrok-cli --driver
mastech-mas345:conn=/dev/ttyUSB0 --scan
The following devices were found:
mastech-mas345 -
russell@vanhorn:~$ sigrok-cli --help
Usage:
sigrok-cli [OPTION...]
Help Options:
-h, --help Show help options
Application Options:
-V, --version Show version and support list
-l, --loglevel Set loglevel (5 is
The Fluke example certainly sends the data to the screen. The example the
sigrok site gave (sigrok-cli --driver mastech-mas345:conn=/dev/ttyUSB0
--samples 10) has --samples 10 tacked on. It is not clear to me which sw
reads that. I tried changing that to other stuff but I just get sigrok
help
https://www.youtube.com/watch?v=TWwuiIfq_Z4
On Sat, Dec 9, 2017 at 6:19 PM, Russell Senior
wrote:
> I don't actually know what sigrok does, but I would naively expect it
> to blurt data out onto the screen. Time to go looking for helpful
> youtube videos.
>
> On Sat,
Try loopback on your usb-serial adapter. That is, connect pin 2 and
pin 3 (tx and rx, or vice versa). Then run something like:
screen /dev/ttyUSB0 115200
and type some letters on the keyboard and see if they echo back at
you. If so, the serial cable is working. If not, you might need a
Some progress. I executed "sigrok-cli --driver
mastech-mas345:conn=/dev/ttyUSB0 --samples 10" forgetting that the meter
was not plugged into the adapter--got "sr: serial: Didn't find a valid
packet (read 0 bytes).
No devices found." Plugged in the meter, then got no response, but exactly
10
Is the USB-RS232 adapter known to work?
Several years back I had a no-name adapter. Couldn't get it to work. Found
out it had a fake Prolific chip in it. No wonder it had such an attractive
price.
Try looping it back to itself and see if it works before you go too far
down a rabbit hole.
I did as suggested with the lsusb/dmesg. It looks to me that the adapter
is detected but the presence of the DMM into the adapter is not sensed.
Agree? Maybe it does not matter. Just proceed as if the DMM is seen?
denis@denis-ThinkPad-L420:~$ lsusb
Bus 002 Device 003: ID 5986:03b4 Acer, Inc
I agree completely. I have downloaded sigrok-cli. Now I have to try to
understand how to use it. (I feel a bit overwhelmed.)
Where do I put the driver? Is output/input with respect to the external
device or the software? I assume the device, judging by the longer list of
output formats. What
The sigrok route is probably a better investment of your time than a
vendor-software horror show, imho.
On Wed, Dec 6, 2017 at 3:02 PM, Denis Heidtmann
wrote:
> here is the link:
>
> https://sigrok.org/wiki/Multimeter_ICs#Metex_14-byte_ASCII
>
> I would need to study
here is the link:
https://sigrok.org/wiki/Multimeter_ICs#Metex_14-byte_ASCII
I would need to study it and educate myself on how to make use of it.
-Denis
On Wed, Dec 6, 2017 at 2:29 PM, Denis Heidtmann
wrote:
> I have found this:
> Protocol
>
> The protocol is
It looks like it speaks the same protocol as the MAS345 which is supported
by Sigrok if you want to just use it under Linux.
https://sigrok.org/wiki/MASTECH_MAS345
On Wed, Dec 6, 2017 at 2:34 PM Russell Senior
wrote:
> I guess we should establish what you want to use
I guess we should establish what you want to use this for? I may be
presuming wrongly. My bias is usually towards capture into handy
formats I can manipulate easily with unix shell tools. Maybe that's
not at all what you want to do.
On Wed, Dec 6, 2017 at 2:29 PM, Denis Heidtmann
32 matches
Mail list logo