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

GingGangGooly, HKJ and 6 Guests are viewing this topic.

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1800 on: July 20, 2021, 08:32:04 am »
Code: [Select]
;; Start thread for: COM12 - Kunkin KP184
;; COM12: Set params: 115200
;; : Tx <holdingL? 0x0001>
;; COM12: Tx: 01 03 00 01 00 04 15 C9
;; COM12: Rx: 01 03 04 00 00 07 30 F8 17
;; COM12: Tx <Mode?>
;; COM12: Tx <holdingL? 0x0110>
;; COM12: Tx: 01 03 01 10 00 04 44 30
;; COM12: Rx: 01 03 04 00 00 00 01 3B F3
;; COM12: Rx <1>
;; Found Kunkin KP184 on USB2.0-Ser! (COM12)
holdingL? 0x0300
;; KP184: Tx <holdingL? 0x0300>
;; COM12: Tx: 01 03 03 00 00 04 44 4D
;; COM12: Rx: 01 03 04 00 00 00 01 3B F3
;; KP184: Rx <1>
;; 1
holdingL? 0x0122
;; KP184: Tx <holdingL? 0x0122>
;; COM12: Tx: 01 03 01 22 00 04 E5 FF
;; COM12: Rx: 01 03 04 00 00 2E C6 67 C1
;; KP184: Rx <11974>
;; 11974

Code: [Select]
holding? 0x0300
;; KP184: Tx <holding? 0x0300>
;; COM12: Tx: 01 03 03 00 00 02 C4 4F
;; COM12: Flush: 01 03 1E 0B 04 00 2E 2E 00 03 E8 00 03 E8 00 FA 00 FA 00 00 00 17 3D
;; COM12: Tx: 01 03 03 00 00 02 C4 4F
;; KP184: Rx Timeout

« Last Edit: July 20, 2021, 08:37:32 am by PaWill68 »
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1801 on: July 20, 2021, 08:44:56 am »
holdingL? 0x0300
;; KP184: Tx <holdingL? 0x0300>
;; COM12: Tx: 01 03 03 00 00 04 44 4D
;; COM12: Rx: 01 03 04 00 00 00 01 3B F3
;; KP184: Rx <1>
;; 1

That was better, but it looks like the documentation in the KP184 manual is not correct.
Try this command:
holdingL? 0x0300 8
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1802 on: July 20, 2021, 09:10:47 am »
Try this command:
holdingL? 0x0300 8
holdingL? 0x0300 8
;; KP184: Tx <holdingL? 0x0300 8>
;; COM12: Tx: 01 03 03 00 00 20 44 56
;; COM12: Flush: 01 03 1E 0B 04 00 2E 64 00 03 E8 00 03 E8 00 FA 00 FA 00 00 00 5C B7
;; COM12: Tx: 01 03 03 00 00 20 44 56
;; KP184: Rx Timeout
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1803 on: July 20, 2021, 09:35:53 am »
Try this command:
holdingL? 0x0300 8
holdingL? 0x0300 8
;; KP184: Tx <holdingL? 0x0300 8>
;; COM12: Tx: 01 03 03 00 00 20 44 56
;; COM12: Flush: 01 03 1E 0B 04 00 2E 64 00 03 E8 00 03 E8 00 FA 00 FA 00 00 00 5C B7
;; COM12: Tx: 01 03 03 00 00 20 44 56
;; KP184: Rx Timeout

Another bug in the Kunkin documentation.

Try downloading http://lygte-info.dk/pic/Projects/TestController/TestController.jar and replace you TC jar file with it. Verify it is version 1.72 (It may take up to an hour before you can download it).

Then try the command again and if it works better try:
holdingL? 0x0300 8 /1000

 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1804 on: July 20, 2021, 10:08:22 am »
holdingL? 0x0300 8 /1000
;; Found Kunkin KP184 on USB2.0-Ser! (COM12)
holdingL? 0x0300 8 /1000
;; KP184: Tx <holdingL? 0x0300 8 /1000>
;; COM12: Tx: 01 03 03 00 00 20 44 56
;; COM12: Rx: 01 03 1E 0B 04 00 2D FA 00 03 E8 00 03 E8 00 FA 00 FA 00 00 00 80 E8
;; KP184: Rx <11.77 1.0>
;; 11.77 1.0

Voltage and current match. No capacity.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1805 on: July 20, 2021, 10:38:25 am »
Voltage and current match. No capacity.

Can you figure out what bytes contains the capacity and the divisor needed. I have from the manual:
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

The marked bytes are voltage and current.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1806 on: July 20, 2021, 12:48:33 pm »
It seems that there is no capacity data in (holdingL? 0x0300 8 /1000)
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1807 on: July 20, 2021, 01:10:48 pm »
Code: [Select]
holding? 0x0301
;; KP184: Tx <holding? 0x0301>
;; COM12: Tx: 01 03 03 01 00 02 95 8F
;; COM12: Rx: 01 03 1F 0B 04 00 2A CA 00 19 64 00 19 64 00 FA 00 FA 00 00 00 00 00 00 00 0A 8C 00 0C A0 6C 00 8A 00 A8 46
;; KP184: Rx Timeout

Better to do this:
Code: [Select]
holding? 0x0301
01 03 03 01 00 0C 14 4B

Load return data:
 01 03 1F 0B 04 00 2A CA 00 19 64 00 19  64  00  FA  00  FA  00  00  00   00  00  00  00  0A  8C  00  0C  A0  6C  00  8A  00  A8  46   ????
(01 03 1F D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 D16 D17 D18) D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D31 D32 CRCH CRCL
|-- -- --|--|--|voltage-|current-|-- --  -- |--  -- |--  --  -- |--  --  |-- |-- |-- |voltage end|--- -- mAs  ---|--- --mWs-- ---|--  |--  |
|-- -- --|--|--|10954mV-|6500mA--|-- --  -- |--  -- |--  --  -- |--  --  |-- |-- |-- |--2700mV---|---827500mAs---|---9044136mWs--|--  |--  |
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1808 on: July 20, 2021, 01:14:54 pm »
It seems that there is no capacity data in (holdingL? 0x0300 8 /1000)

I will include the above in the next release.
This means that the #askValues will be:
#askValues holdingL? 0x0300 8 /1000
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1809 on: July 20, 2021, 01:22:02 pm »
Code: [Select]
holding? 0x0301
;; KP184: Tx <holding? 0x0301>
;; COM12: Tx: 01 03 03 01 00 02 95 8F
;; COM12: Rx: 01 03 1F 0B 04 00 2A CA 00 19 64 00 19 64 00 FA 00 FA 00 00 00 00 00 00 00 0A 8C 00 0C A0 6C 00 8A 00 A8 46
;; KP184: Rx Timeout

Better to do this:
Code: [Select]
holding? 0x0301
01 03 03 01 00 0C 14 4B

Load return data:
 01 03 1F 0B 04 00 2A CA 00 19 64 00 19  64  00  FA  00  FA  00  00  00   00  00  00  00  0A  8C  00  0C  A0  6C  00  8A  00  A8  46   ????
(01 03 1F D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 D16 D17 D18) D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D31 D32 CRCH CRCL
|-- -- --|--|--|voltage-|current-|-- --  -- |--  -- |--  --  -- |--  --  |-- |-- |-- |voltage end|--- -- mAs  ---|--- --mWs-- ---|--  |--  |
|-- -- --|--|--|10954mV-|6500mA--|-- --  -- |--  -- |--  --  -- |--  --  |-- |-- |-- |--2700mV---|---827500mAs---|---9044136mWs--|--  |--  |

I only have special handling for the 0x300 address now, but I will take a look at this. It requires a bit more programming because I have to support multiple scale factors for one message.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1810 on: July 20, 2021, 01:32:31 pm »
I have added handling of 0x301 address, but not different division factors.
The jar file is as same address as before, please check if I correctly return As and Ws
#askValues holdingL? 0x0301 /1000
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1811 on: July 20, 2021, 01:45:15 pm »
holdingL? 0x0301 /1000
No data, is this normal?
holdingL? 0x0301 /1000
;; KP184: Tx <holdingL? 0x0301 /1000>
;; COM12: Tx: 01 03 03 01 00 04 15 8D
;; COM12: Rx: 01 03 04 00 00 00 01 3B F3
;; KP184: Rx Timeout
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1812 on: July 20, 2021, 02:08:16 pm »
holdingL? 0x0301 /1000
No data, is this normal?
holdingL? 0x0301 /1000
;; KP184: Tx <holdingL? 0x0301 /1000>
;; COM12: Tx: 01 03 03 01 00 04 15 8D
;; COM12: Rx: 01 03 04 00 00 00 01 3B F3
;; KP184: Rx Timeout

I missed you was using "holding?", i.e. without the L. If you try
holding? 0x0301 /1000

You will hopefully get the long answer, but with a Rx timeout because my special handling is in the holdingL? code.

I have uploaded a new version (1.74) where the 0x301 handling is in the holding? code.
I have also starting working on multiple divisors, but I have not tested any of it. If it works you can do:
holding? 0x0301 /1000 /1000 /3600000 /3600000
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1813 on: July 20, 2021, 02:15:41 pm »
holdingL? 0x0301 8 /1000
;; KP184: Tx <holdingL? 0x0301 8 /1000>
;; COM12: Tx: 01 03 03 01 00 20 15 96
;; COM12: Rx: 01 03 1F 0A 04 00 2D 07 00 00 00 00 19 64 00 FA 00 FA 00 00 00 00 00 00 00 0A 8C 00 0F 0D FD 00 A4 77 5E C6 31
;; KP184: Rx <11.527000000000001 0.0 986.621 10778.462>
;; 11.527000000000001 0.0 986.621 10778.462

Values are correct. To obtain As> Ah, divide 3600
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1814 on: July 20, 2021, 02:22:52 pm »
holdingL? 0x0301 8 /1000
;; KP184: Tx <holdingL? 0x0301 8 /1000>
;; COM12: Tx: 01 03 03 01 00 20 15 96
;; COM12: Rx: 01 03 1F 0A 04 00 2D 07 00 00 00 00 19 64 00 FA 00 FA 00 00 00 00 00 00 00 0A 8C 00 0F 0D FD 00 A4 77 5E C6 31
;; KP184: Rx <11.527000000000001 0.0 986.621 10778.462>
;; 11.527000000000001 0.0 986.621 10778.462

Values are correct. To obtain As> Ah, divide 3600

Ok, I uploaded V1.75 it contains the code on both holding? and holdingl?
And the untested code for multiple factors.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1815 on: July 20, 2021, 02:23:23 pm »
I have also starting working on multiple divisors, but I have not tested any of it. If it works you can do:
holding? 0x0301 /1000 /1000 /3600000 /3600000
Multiple dividers don't work
Code: [Select]
;; Found Kunkin KP184 on USB2.0-Ser! (COM12)
;; KP184: Tx <holdingL? 0x0301 8 /1000 /1000 /3600000 /3600000>
;; COM12: Tx: 01 03 03 01 00 20 15 96
;; COM12: Rx: 01 03 1F 0A 04 00 2D 02 00 00 00 00 19 64 00 FA 00 FA 00 00 00 00 00 00 00 0A 8C 00 10 3E AD 00 B1 65 D5 B9 3C
;; KP184: Rx <11.522 0.0 1064.621 11625.941>
;; KP184: Rx as numbers <11.522 0.0 1064.621 11625.941>
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1816 on: July 20, 2021, 02:28:29 pm »
I have also starting working on multiple divisors, but I have not tested any of it. If it works you can do:
holding? 0x0301 /1000 /1000 /3600000 /3600000
Multiple dividers don't work
Code: [Select]
;; Found Kunkin KP184 on USB2.0-Ser! (COM12)
;; KP184: Tx <holdingL? 0x0301 8 /1000 /1000 /3600000 /3600000>
;; COM12: Tx: 01 03 03 01 00 20 15 96
;; COM12: Rx: 01 03 1F 0A 04 00 2D 02 00 00 00 00 19 64 00 FA 00 FA 00 00 00 00 00 00 00 0A 8C 00 10 3E AD 00 B1 65 D5 B9 3C
;; KP184: Rx <11.522 0.0 1064.621 11625.941>
;; KP184: Rx as numbers <11.522 0.0 1064.621 11625.941>

Are you sure you have the correct version of TC, only 1.74 & 1.75 has the code.
Also check the dos window for errors.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1817 on: July 20, 2021, 02:33:41 pm »
Sorry, I can't download 1.75. 1.73 is downloaded.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1818 on: July 20, 2021, 02:36:32 pm »
Sorry, I can't download 1.75. 1.73 is downloaded.

That is the cache at my website provider, it can take up to an hour before it is updated to the last version of a file.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1819 on: July 20, 2021, 03:02:05 pm »
Code: [Select]
;; KP184: Tx <holdingL? 0x0301 8 /1000 /1000 /3600000 /3600000>
;; COM12: Tx: 01 03 03 01 00 20 15 96
;; COM12: Rx: 01 03 1F 0B 04 00 2A 3B 00 19 64 00 19 64 00 FA 00 FA 00 00 00 00 00 00 00 0A 8C 00 11 3C 95 00 BC 2B EE C6 27
;; KP184: Rx <10.811 6.5 0.3137836111111111 3.425559444444444>
;; KP184: Rx as numbers <10.811 6.5 0.3137836111111111 3.425559444444444>
Everything works perfectly! Thank you.
There are several questions about the interface.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1820 on: July 20, 2021, 03:07:47 pm »
When I load the table data (LOAD button), the values of all fields are reset to two decimal places. Although in the settings on the "Scales for chart" tab, "Decimals" equal to 3 is set for these columns.
The same goes for "Import".
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1821 on: July 20, 2021, 03:14:09 pm »
Now I would very much like to know if this message exist on all versions of the load or only on the newest.

For people with the load please download the test jar and replace you original jar with it: http://lygte-info.dk/pic/Projects/TestController/TestController.jar

Then try this command to the load:
holdingL? 0x0301 8 /1000 /1000 /3600000 /3600000

Post what driver you use: Kunkin KP184 or Kunkin KP184 V4 and what version software you load uses.

If I do not get any answers I will assume this works on all versions of the KP184 and update the definition.
 

Offline PaWill68

  • Regular Contributor
  • *
  • Posts: 117
  • Country: ru
Re: Program that can log from many multimeters.
« Reply #1822 on: July 20, 2021, 03:21:24 pm »
Now I would very much like to know if this message exist on all versions of the load or only on the newest.
https://www.eevblog.com/forum/testgear/an-investigation-about-ripple-current-of-kunkin-kp184/msg3611151/#msg3611151
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1823 on: July 20, 2021, 03:22:02 pm »
When I load the table data (LOAD button), the values of all fields are reset to two decimal places. Although in the settings on the "Scales for chart" tab, "Decimals" equal to 3 is set for these columns.
The same goes for "Import".

Generally TC is supposed to match based on column names, i.e. a column called KP184.Voltage will look for a driver with handle KP184 and column Voltage and use the definition for that. If no match is found they revert to two decimal places.
If you have a csv file with the correct column names that do not work I want a copy of it and will check why it fails.

You can use #valueformat from a script if you want to repeatedly change the same columns.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #1824 on: July 20, 2021, 03:32:23 pm »
A new definition for KP184, this will only work with V1.75 and newer of TC

When selection the load "Kunkin KP184 V4+" it will add Ah and Wh to the columns.

Note: Nothing has been tested.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf