Author Topic: Program that can log from many multimeters.  (Read 486370 times)

0 Members and 5 Guests are viewing this topic.

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1650 on: May 10, 2021, 01:35:44 pm »
It is only necessary to test with Kunkinx, what is needed now is to get data back from the KP184 and I am a bit low on ideas.
Data from KP184 does not come back. It would be more correct to say KP184 sends data (I see it in the com-port monitor), but TC does not understand this data.

I believe I found the issue, try this version (V1.64) (It may be up to an hour before you can download the correct version):
http://lygte-info.dk/pic/Projects/TestController/TestController.jar
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1651 on: May 10, 2021, 02:06:50 pm »
There are no external changes. Data is still not being received by TC. (((

9600N81DR - does it mean RTS on, DTR on, Data bits = 8, Stop bits = 1? What is "N"?

Can the connection parameter be affected:
Code: [Select]
Handflow: ControlHandShake=(DTR_CONTROL), FlowReplace=(TRANSMIT_TOGGLE, RTS_CONTROL, XOFF_CONTINUE), XonLimit=2048, XoffLimit=512
Set timeouts: ReadInterval=-1, ReadTotalTimeoutMultiplier=-1, ReadTotalTimeoutConstant=1000, WriteTotalTimeoutMultiplier=0, WriteTotalTimeoutConstant=0
Kunkin software has this parameter:
Code: [Select]
Handflow: ControlHandShake=(DTR_CONTROL), FlowReplace=(TRANSMIT_TOGGLE, RTS_CONTROL), XonLimit=64, XoffLimit=64
Set timeouts: ReadInterval=-1, ReadTotalTimeoutMultiplier=0, ReadTotalTimeoutConstant=0, WriteTotalTimeoutMultiplier=0, WriteTotalTimeoutConstant=500
« Last Edit: May 10, 2021, 02:24:37 pm by PaWill68 »
 

Online djadeski

  • Supporter
  • ****
  • Posts: 23
  • Country: ca
Re: Program that can log from many multimeters.
« Reply #1652 on: May 10, 2021, 02:30:37 pm »
I have been following this and with the jar file just made available I am receiving data to TC at 115,200 using this setting 115200N81rd - have not tested other settings but current values tab is updating. I do not have a sniffer so cannot speak to what is actually happening but the setup pop up is working as well.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1653 on: May 10, 2021, 02:40:15 pm »
djadeski, It still does not receive data (((
rd - RTS off, DTR off. In kunkin software RTS on, DTR on.

What's the serial number?
my 2021022700080
« Last Edit: May 10, 2021, 02:46:29 pm by PaWill68 »
 

Online djadeski

  • Supporter
  • ****
  • Posts: 23
  • Country: ca
Re: Program that can log from many multimeters.
« Reply #1654 on: May 10, 2021, 02:46:33 pm »
Very weird -  min is 2020101019440, so older than yours.  Perhaps another change?
                               
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1655 on: May 10, 2021, 02:55:35 pm »
djadeski, Will the new Kunkin software work for you?
https://disk.yandex.ru/d/5MizUcHimwxMIw
 

Online djadeski

  • Supporter
  • ****
  • Posts: 23
  • Country: ca
Re: Program that can log from many multimeters.
« Reply #1656 on: May 10, 2021, 03:06:42 pm »
I had downloaded that when i was mentioned in the other thread and this is the first time it worked with this unit - see screenshots attached.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1657 on: May 10, 2021, 03:15:35 pm »
There are no external changes. Data is still not being received by TC. (((

Have you checked you got the correct version of TC?
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1658 on: May 10, 2021, 03:36:37 pm »
Sure. And tried different bitrains and flags.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1659 on: May 10, 2021, 04:16:49 pm »
HKJ, i will ask you about these parameters again. They change several times during the boot process. First they coincide with kunkinsw, then they become different. Maybe they are the problem?
ReadTotalTimeoutMultiplier=-1
ReadTotalTimeoutConstant=1000
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1660 on: May 10, 2021, 04:49:02 pm »
HKJ, i will ask you about these parameters again. They change several times during the boot process. First they coincide with kunkinsw, then they become different. Maybe they are the problem?
ReadTotalTimeoutMultiplier=-1
ReadTotalTimeoutConstant=1000

TC control the serial parameters but receive timeout is in software, because it uses a event handle to capture the data from the serial port and there is no timeout associated with that.
For modbus the event handle will collect one packet at a time and kick it down to the receive routine that may show the debug output.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1661 on: May 10, 2021, 06:58:59 pm »
I have no more ideas. But I can see the difference in the parameters in the working connection of kunkinsw and TC  |O
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1662 on: May 10, 2021, 07:06:10 pm »
I have no more ideas. But I can see the difference in the parameters in the working connection of kunkinsw and TC  |O

I wonder, TC must be V1.64 and you have verified on the About page you are using that version?
My webserver has a cache, i.e. files do not get updated at the same time I upload them, there can be up to one hour delay.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1663 on: May 10, 2021, 08:01:33 pm »
The old version (1.62) is downloaded from the official address. I installed from here https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/msg3566608/#msg3566608
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1664 on: May 10, 2021, 08:08:51 pm »
The old version (1.62) is downloaded from the official address. I installed from here https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/msg3566608/#msg3566608

That is an intermediate version, downloaded before the webserver cache had update.
The test version with a fixed fault is here: http://lygte-info.dk/pic/Projects/TestController/TestController.jar
It is only a .jar file and must be used to replace the .jar file from a regular release.

If you or djadeski test it I would like the answer to: model?
typed on the command line.


 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1665 on: May 10, 2021, 08:32:34 pm »
Works!!!!
model?
;; COM11: Flush:
;; COM11: Tx: 01 03 00 01 00 04 15 C9
;; COM11: Rx: 01 03 04 00 00 07 30 F8 17
;; 1840
« Last Edit: May 10, 2021, 08:41:25 pm by PaWill68 »
 

Online djadeski

  • Supporter
  • ****
  • Posts: 23
  • Country: ca
Re: Program that can log from many multimeters.
« Reply #1666 on: May 10, 2021, 08:46:10 pm »
Working here as well - looks very good.

thank you!
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1667 on: May 10, 2021, 08:46:50 pm »
Works!!!!
model?
;; COM11: Flush:
;; COM11: Tx: 01 03 00 01 00 04 15 C9
;; COM11: Rx: 01 03 04 00 00 07 30 F8 17
;; 1840

Good, I will add a Kunkin KP184 V4 (or is it V3) to the next release of TestController.
Add the identifier is the same, i.e. the #verifyDevice do not need to be commented out. This means it will only connect if there is a load connected to the specified serial port and there is communication.

Thanks for your patience while working on fixing this.
 
The following users thanked this post: djadeski, PaWill68

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1668 on: May 10, 2021, 08:54:23 pm »
HKJ, this is version V4 202007 (there is still V4 20191111)
Huge gratitude for the work and patience !!! Sorry if I was so annoying.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1669 on: May 11, 2021, 09:25:13 am »
HKJ, today I'm doing my first full battery test. I notice a difference in the voltage and capacitance readings on the device and in the TC. This is apparently due to the difference in requests.
It is better to receive all data in one request, and not in separate ones (0x0122, 0x0126). Is it possible to implement this?
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1670 on: May 11, 2021, 09:35:14 am »
HKJ, today I'm doing my first full battery test. I notice a difference in the voltage and capacitance readings on the device and in the TC. This is apparently due to the difference in requests.
It is better to receive all data in one request, and not in separate ones (0x0122, 0x0126). Is it possible to implement this?

It is probably not possible to receive all data in one request, but TC will get the data as fast as the device support (When not in debug mode).
Another reason for small differences can be number of digits, the device may use more digits internally that can be read from the interface or the other way around (It depends on the device).
For capacity and energy readings there may also be difference in clock speed, TC is based on the Windows clock, the device has it own clock that may not be as precise.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1671 on: May 11, 2021, 09:51:59 am »
This is an excerpt from the user manual. Just take into account the change in CRC. Perhaps it would be more correct.
Quote
5.Read actual voltage and current:
Send instruction: 01 03 03 00 00 00 8E 45
It is a special instruction, which facilitates reading the common data register bank at one time.
01: equipment address.
03: read the instruction number of register.
03 00 : read the special defined address of the common register bank.
00 00 : it can be any value, because it is senseless in this special instruction.
8E 45: check code. The high order is before the low order.
Load return data: 01 03 30 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 D16 D17 D18 CRCH CRCL
Hereinto, D1 to D18 are valid data.
D1.0 is ON/OFF bit, D1.1-D1.2 is mode bit
D3-D5 is the actual voltage value (unit mV), which is three bytes 24 bit data with the high order is before the low order.
D6-D8 is the actual current value, which is three bytes 24 bit data with the high order is before the low order..
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1672 on: May 11, 2021, 10:35:54 am »
This is an excerpt from the user manual. Just take into account the change in CRC. Perhaps it would be more correct.

Ok, they have implement a special instruction to read everything.
It is not really needed, at 115200 baud it takes about 0.01 second to read the two registers and at 9600 it takes about 0.1 second, assuming the load is fairly fast to answer. Even a very fast battery discharge, say 15 minutes is about 1000 second, a 0.1 second difference in reading values is completely insignificant, other errors will be way larger.

Looking on the some documentation I have found for the Kunkin, it looks like it is possible to read it power, you can try with the command:
holdingL? 0x0122 /1000

If this correctly gives the power reading I can fairly easy add it to the definition. It will not help with capacity summations, that only uses current and time.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1673 on: May 11, 2021, 10:40:12 am »
Another reason for small differences can be number of digits, the device may use more digits internally that can be read from the interface or the other way around (It depends on the device).
The difference in the data is likely due to ripple and mismatched sampling times.
https://www.eevblog.com/forum/testgear/an-investigation-about-ripple-current-of-kunkin-kp184/

Looking on the some documentation I have found for the Kunkin, it looks like it is possible to read it power, you can try with the command:
holdingL? 0x0122 /1000
Yes, I can do it a little later.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1674 on: May 11, 2021, 10:51:18 am »
The difference in the data is likely due to ripple and mismatched sampling times.

Voltage is not used during capacity calculations, i.e. mismatch between voltage and current cannot affect it. You can control how fast TestController samples from the load, it can run 100 samples/sec (0.01s), but the load can probably not run that fast (TC will automatic reduce sample rate to highest sustainable rate). Generally you do not have to worry much about the number of samples, TC can handle millions if you have enough memory.
TC uses double precision internally for all calculations, this is about 18 digits of precision and usually avoids any problems with rounding errors.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf