Re: [PLUG] Serial communication with dmm

2018-03-08 Thread Denis Heidtmann
I appreciate you forwarding this to me. However, I find most of what is described is above my head; also it may require Windows I do not have. I have been distracted by another issue for a while now, but that is solved, so I intend to get back to the DMM shortly. The last effort I put into it w

Re: [PLUG] Serial communication with dmm

2018-03-06 Thread wes
Today I chanced upon "USPPcap" - a utility designed to capture traffic on USB ports. http://desowin.org/usbpcap/tour.html It seems to me, since the Windows-based software for this thing works well, and you have a USB->serial adapter, this utility could potentially be used to monitor the traffic o

Re: [PLUG] serial communication with dmm

2018-01-15 Thread Tomas Kuchta
Someone here, probably Wes, thought me embarrassing lesson: http://lmgtfy.com/?q=python+crash+course Put one/two day into learning basic python data types and syntax. It will be worth it, I guarantee it. T On Jan 15, 2018 6:57 PM, "Denis Heidtmann" wrote: > Well, I have solved the issue of

Re: [PLUG] serial communication with dmm

2018-01-15 Thread Denis Heidtmann
Well, I have solved the issue of "mult=self.units.strip()+' '[0]: TypeError: can't concat bytes to int". It needs parentheses, which the original code had. Now the code runs, but, alas, now it does not report the readings from the meter. Since I really do not understand object-oriented python,

[PLUG] serial communication with dmm

2018-01-14 Thread Denis Heidtmann
Last discussion on this issue I mentioned a python program I found. I have since put the program in Spyder using Python3. I had to make a number of changes to accommodate the change to 3. The latest is that I see that the readings are available to the program although parsing the data is runnin

Re: [PLUG] Serial communication with dmm

2018-01-07 Thread Denis Heidtmann
The meter schematic I have shows two opto-isolators connected to the serial pins. The output from the meter is an emitter follower driving the RxD pin and the emitter resistor connected to RTS. The collector is connected to DTR. The input to the meter drives an LED in series with a 3.3K resistor

Re: [PLUG] Serial communication with dmm

2018-01-07 Thread Denis Heidtmann
My goal is to be able to get data from the dmm using my laptop, which has only USB. I have an RS-232--USB adapter. Eventually I want to make the choices more friendly. Later today I will study the details of your observations. The protocol I have seen described elsewhere says the host needs to

Re: [PLUG] Serial communication with dmm

2018-01-07 Thread Denis Heidtmann
I am indeed seeing data values. The options the sw provides are not ideal, at least as I am able to understand it, but data does come across. I would need to understand more (i.e., something) about pyserial to make the change to ttyUSB0, but all this is more progress than I have had in all the t

Re: [PLUG] Serial communication with dmm

2018-01-07 Thread Galen Seitz
On 01/07/18 10:04, Denis Heidtmann wrote: >> >> On Mon, Jan 1, 2018 at 11:46 AM, Denis Heidtmann < >> denis.heidtm...@gmail.com> >> wrote: >> >>> I am looking into ways to examine the serial traffic to/from my dmm. >> > > > I found a python script intended to interface with the mas-345: > https:/

Re: [PLUG] Serial communication with dmm

2018-01-07 Thread Russell Senior
Do you mean you are seeing data values from the DMM? If so, does the same software work with the USB-serial cable? You might need to modify the code to use /dev/ttyUSB0 instead of /dev/ttyS0. On Jan 7, 2018 10:04 AM, "Denis Heidtmann" wrote: > > On Mon, Jan 1, 2018 at 11:46 AM, Denis Heidtmann <

[PLUG] Serial communication with dmm

2018-01-07 Thread Denis Heidtmann
> > On Mon, Jan 1, 2018 at 11:46 AM, Denis Heidtmann < > denis.heidtm...@gmail.com> > wrote: > > > I am looking into ways to examine the serial traffic to/from my dmm. > I found a python script intended to interface with the mas-345: https://github.com/markrages/py_test_interface https://github.c

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2018-01-01 Thread wes
I'm a nomad. Let's see how this week turns out. I may have some time on Friday. You can always email me off list. I'll call or text you later when I have more info about my availability. -wes On Mon, Jan 1, 2018 at 3:30 PM, Denis Heidtmann wrote: > Fantastic, Wes! My feeble abilities need lot

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2018-01-01 Thread Denis Heidtmann
Fantastic, Wes! My feeble abilities need lots of help. Where are you located? I am on the west side of Portland, not far from the zoo. I guess posting my phone number here is not too risky. 2972837. -Denis On Mon, Jan 1, 2018 at 12:36 PM, wes wrote: > On Mon, Jan 1, 2018 at 11:46 AM, Denis

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2018-01-01 Thread wes
On Mon, Jan 1, 2018 at 11:46 AM, Denis Heidtmann wrote: > I am looking into ways to examine the serial traffic to/from my dmm. The > arrangement I think would be the most useful to examine is with the mfg.'s > sw running in the win2k guest in the desktop. This arrangement is the only > one that

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2018-01-01 Thread Tom
If you decide that you need to make the measurements - there is Bitscope logic http://bitscope.com/software/logic/ application which should be able to display and decode the serial signal for you from the probes. I never needed/used it with the bitscope, but it looks legit enough within the speed

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2018-01-01 Thread Denis Heidtmann
I am looking into ways to examine the serial traffic to/from my dmm. The arrangement I think would be the most useful to examine is with the mfg.'s sw running in the win2k guest in the desktop. This arrangement is the only one that successfully communicates with the dmm. I hope (assume?) that a

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2017-12-29 Thread Denis Heidtmann
I just ran the mfg. sw in the vb win2k guest. I then checked the serial parameters in the host. I then ran sigrok-cli --driver mastech-mas345:conn=/dev/ttyS0 --samples 10 in the host after shutting down the guest. Same no-response result. This would seem to rule out the possibility that the se

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2017-12-29 Thread Denis Heidtmann
Tomas, Thanks so much for the offer. I will look at the Bitscope website to see if it would help. -Denis On Fri, Dec 29, 2017 at 3:36 PM, Tomas Kuchta wrote: > I have one of those simple Bitscope scopes/analysers for slow RPi type > interface hacking it might be the right tool for the job an

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2017-12-29 Thread Tomas Kuchta
I have one of those simple Bitscope scopes/analysers for slow RPi type interface hacking it might be the right tool for the job and it runs on Linux. Would that help? Do you want to borrow it? Check the Bitscope website for details, but it is good enough for serial ports. Perhaps even decoding it

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2017-12-29 Thread Denis Heidtmann
I made the measurements with my 'scope. The voltages and waveforms are identical comparing DTR, RTS (also RXD), although I am surprised a little that the pulses on DTR are as large as they are: 2.4V swing. Must be some resistance in the supply to the drain. But the level is up at 11.6V, so thos

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2017-12-29 Thread Denis Heidtmann
I will make those measurements, but I am doubtful it will show anything. The schematic I have shows DTR to be the collector and RTS to be the low end of the emitter resistor of the output NPN. I did see solid pulses on the emitter with sigrok. But perhaps DTR and/or RTS are pulsed when they shoul

Re: [PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2017-12-28 Thread Russell Senior
Have you measured the voltages on DTR and RTS during the runs? Try it with sigrok and with the vendor software and see if there is a difference in those values. On Thu, Dec 28, 2017 at 9:51 PM, Denis Heidtmann wrote: > This saga continues. > > On the laptop with a usb-serial adapter I got to the

[PLUG] serial communication with dmm (was com port in guest to usb in host (virtual box))

2017-12-28 Thread Denis Heidtmann
This saga continues. On the laptop with a usb-serial adapter I got to the point where the commands: sigrok-cli --driver mastech-mas345:conn=/dev/ttyUSB0 --show sigrok-cli --driver mastech-mas345:conn=/dev/ttyUSB0 --scan sigrok-cli --driver mastech-mas345:conn=/dev/ttyUSB0 --samples 10 behave as e