EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: cskilbeck on November 08, 2019, 05:40:44 pm

Title: Serial to usb on Kunkin KP184 electronic load
Post by: cskilbeck on November 08, 2019, 05:40:44 pm
I love my Kunkin KP184 electronic load and would like to control it via the serial port (or RS485, don't care which), but none of the adapters I've tried (FTDI, Prolific, all the usual suspects) work. Has anyone managed it or does anyone have any tips for troubleshooting? The serial port settings are very clear and I did once manage to get it working so I know it's possible but now I can't get it back. There's no information in the manual about voltage levels, but my understanding is that most of the adapters should work regardless of whether it's 5 or 12 or whatever. I would measure it but it only sends data in response to a modbus command, and I can't get it to talk.

Any help or tips very welcome.

Thanks

Manual is available on their product page: http://www.kunkin.com/gb/products.asp?id=2&menu=ShowDetail&P_Id=67 (http://www.kunkin.com/gb/products.asp?id=2&menu=ShowDetail&P_Id=67)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Noy on November 09, 2019, 09:09:09 am
Where did you get the software ? I have a KP184 but no Software.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: cskilbeck on November 09, 2019, 09:52:47 am
I think there was a disk which came with it but I threw it away, the software which comes with these things is usually not great. There's some example code in the manual which explains the protocol and I did verify that it works when I had a serial port setup which worked, but I can't get the serial port to work any more.

Here's a very basic utility but I can't test it until I get the serial port working: https://github.com/cskilbeck/modbus/
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Black Phoenix on November 09, 2019, 01:01:59 pm
I love my Kunkin KP184 electronic load and would like to control it via the serial port (or RS485, don't care which), but none of the adapters I've tried (FTDI, Prolific, all the usual suspects) work.

I'm still looking to find the equipment that doesn't work with this adapter:

(https://www.eevblog.com/forum/index.php?action=dlattach;topic=47932.0;attach=839348;image)

I use one since 2005 (this is my second one since I lost my previous one, that were only Keyspan in the brand): From using with a Renishaw QC10 Ballbar System to Rollover Cisco Cables, from NSN MGW/MSS terminal connection to old measurement equipment, it never let me down, including Allen-Bradley/Siemens Simatic PLCs. It's based on the TI 75LV4737A Multichannel RS232 Line Driver/Receiver, so it have have HW handshake.

It's a little expensive compared with other models, but is probably the only one you will need for the rest of your professional life.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: cskilbeck on November 10, 2019, 09:11:29 pm
Thanks @Black Phoenix. Yikes! That is expensive. I'll give it one more go with a homegrown FTDI adapter -> 9 pin D plug and bite the bullet when that doesn't work.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: cskilbeck on November 10, 2019, 09:20:20 pm
Aha!! Tried once more with a cheapo generic usb to serial adapter and added a 100ms delay between sending the message and getting the reply and voila! I have reasonable looking data. So the takeaway is add a delay after sending!

Thanks all for your help.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: cskilbeck on November 10, 2019, 11:08:16 pm
Annoyingly it has stopped working again - same adapter, settings etc but now I just get timeout. I wonder if it's actually faulty.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: cskilbeck on November 11, 2019, 05:37:42 pm
Just to close this thread out, the 9 pin socket on the back of the device wasn't making good contact with the plug. Some of the pins were pushed in, after reseating everything it's working. Out of 4 serial adapters, only one works, and it's a completely generic cheapo CH340 from eBay like this one https://www.ebay.co.uk/itm/USB-to-Serial-RS232-9-Pin-DB9-COM-Port-Converter-Adapter-Cable-for-Windows-XP-7/202700911358 (https://www.ebay.co.uk/itm/USB-to-Serial-RS232-9-Pin-DB9-COM-Port-Converter-Adapter-Cable-for-Windows-XP-7/202700911358) (with the male plug, so I used a gender changer).
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: timber23 on March 09, 2020, 09:32:39 pm
I think there was a disk which came with it but I threw it away, the software which comes with these things is usually not great. There's some example code in the manual which explains the protocol and I did verify that it works when I had a serial port setup which worked, but I can't get the serial port to work any more.

Here's a very basic utility but I can't test it until I get the serial port working: https://github.com/cskilbeck/modbus/
Thank you for your utility.
Are you going to further develop the software? I tried it and I can switch the load on and off, but nothing more.
Code: [Select]
E:\Modbus\modbus-master\bin\Debug>KP184 port COM11; baud 9600; address 1; on
Main                :Checksum error, got 0x0000. expected 0xC00B

E:\Modbus\modbus-master\bin\Debug>KP184 port COM11; baud 9600; address 1; off
Main                :Checksum error, got 0x0000. expected 0xC00B
I do not understand why I get 0x0000 back. Do you know why?

Edit: I played a little bit around with your code and extended it a little bit. Hope you will pull my changes to you master branch  :)

Best regards
timber23
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: cskilbeck on March 23, 2020, 05:54:03 pm
It seems to be working well for me, I just pushed some changes, let me know if it's not working for you? I added some delay() here and there, it seems picky about that.

Verbose  17:52:08.850 port                :COM Port: com15
Info     17:52:08.876 checksum            :Checksum checking: True
Verbose  17:52:08.877 baud                :BAUD rate: 115200
Verbose  17:52:08.878 address             :Device address: 1
Verbose  17:52:08.879 get_voltage         :Calling get_Mode from KP184
Verbose  17:52:08.879 get_voltage         :Get voltage
Verbose  17:52:08.881 open                :Opening serial port 'com15' at 115200 baud
Info     17:52:08.941 get_voltage         :Voltage is 5924mV
Verbose  17:52:08.942 switch              :Turning load switch on
Verbose  17:52:08.943 set_load_switch     :Set switch on
Verbose  17:52:08.996 get_status          :Calling get_status from KP184
Info     17:52:09.049 get_status          :Status:
Info     17:52:09.050 get_status          :   Switch is on
Info     17:52:09.051 get_status          :   Mode is CC
Info     17:52:09.052 get_status          :   Current is 0
Info     17:52:09.053 get_status          :   Voltage is 5924
Info     17:52:09.055 ramp                :Ramp: from 0 to 1000 in steps of 100 at intervals of 200
Verbose  17:52:09.056 set_current         :Set current to 0mA
Info     17:52:09.109 ramp                :        0mA, elapsed: 00:00:00.0531564
Verbose  17:52:09.256 set_current         :Set current to 100mA
Info     17:52:09.309 ramp                :      100mA, elapsed: 00:00:00.2534356
Verbose  17:52:09.456 set_current         :Set current to 200mA
Info     17:52:09.508 ramp                :      200mA, elapsed: 00:00:00.4522986
Verbose  17:52:09.656 set_current         :Set current to 300mA
Info     17:52:09.709 ramp                :      300mA, elapsed: 00:00:00.6532109
Verbose  17:52:09.856 set_current         :Set current to 400mA
Info     17:52:09.908 ramp                :      400mA, elapsed: 00:00:00.8521267
Verbose  17:52:10.056 set_current         :Set current to 500mA
Info     17:52:10.109 ramp                :      500mA, elapsed: 00:00:01.0532407
Verbose  17:52:10.256 set_current         :Set current to 600mA
Info     17:52:10.313 ramp                :      600mA, elapsed: 00:00:01.2576433
Verbose  17:52:10.456 set_current         :Set current to 700mA
Info     17:52:10.510 ramp                :      700mA, elapsed: 00:00:01.4544644
Verbose  17:52:10.657 set_current         :Set current to 800mA
Info     17:52:10.710 ramp                :      800mA, elapsed: 00:00:01.6546185
Verbose  17:52:10.857 set_current         :Set current to 900mA
Info     17:52:10.911 ramp                :      900mA, elapsed: 00:00:01.8551085
Verbose  17:52:11.057 set_current         :Set current to 1000mA
Info     17:52:11.109 ramp                :     1000mA, elapsed: 00:00:02.0531923
Verbose  17:52:11.257 get_voltage         :Calling get_Mode from KP184
Verbose  17:52:11.258 get_voltage         :Get voltage
Info     17:52:11.310 get_voltage         :Voltage is 5922mV
Verbose  17:52:11.312 get_current         :Calling get_Mode from KP184
Verbose  17:52:11.313 get_current         :Get current
Info     17:52:11.365 get_current         :Current is 787mA
Info     17:52:11.367 ramp                :Ramp: from 1000 to 0 in steps of -100 at intervals of 200
Verbose  17:52:11.367 set_current         :Set current to 1000mA
Info     17:52:11.419 ramp                :     1000mA, elapsed: 00:00:00.0515168
Verbose  17:52:11.568 set_current         :Set current to 900mA
Info     17:52:11.622 ramp                :      900mA, elapsed: 00:00:00.2543872
Verbose  17:52:11.767 set_current         :Set current to 800mA
Info     17:52:11.821 ramp                :      800mA, elapsed: 00:00:00.4541509
Verbose  17:52:11.967 set_current         :Set current to 700mA
Info     17:52:12.024 ramp                :      700mA, elapsed: 00:00:00.6573842
Verbose  17:52:12.167 set_current         :Set current to 600mA
Info     17:52:12.225 ramp                :      600mA, elapsed: 00:00:00.8577865
Verbose  17:52:12.367 set_current         :Set current to 500mA
Info     17:52:12.420 ramp                :      500mA, elapsed: 00:00:01.0534372
Verbose  17:52:12.567 set_current         :Set current to 400mA
Info     17:52:12.624 ramp                :      400mA, elapsed: 00:00:01.2567874
Verbose  17:52:12.767 set_current         :Set current to 300mA
Info     17:52:12.823 ramp                :      300mA, elapsed: 00:00:01.4561288
Verbose  17:52:12.967 set_current         :Set current to 200mA
Info     17:52:13.024 ramp                :      200mA, elapsed: 00:00:01.6569999
Verbose  17:52:13.168 set_current         :Set current to 100mA
Info     17:52:13.225 ramp                :      100mA, elapsed: 00:00:01.8573013
Verbose  17:52:13.368 set_current         :Set current to 0mA
Info     17:52:13.422 ramp                :        0mA, elapsed: 00:00:02.0547666
Verbose  17:52:13.567 switch              :Turning load switch off
Verbose  17:52:13.572 set_load_switch     :Set switch off
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: cvanc on March 23, 2020, 06:59:05 pm
I'm still looking to find the equipment that doesn't work with this adapter:

(https://www.eevblog.com/forum/index.php?action=dlattach;topic=47932.0;attach=839348;image)


I have the same unit, have used it for years, and can also report that it "simply works" with everything I have ever thrown at it.  Nice piece.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: timber23 on March 27, 2020, 08:24:08 pm
I found an interesting alternative for connecting the KP184 to a PC. Instead of using a USB serial adapter you can use a network serial adapter.
I tried this device: https://www.aliexpress.com/item/33014747838.html (https://www.aliexpress.com/item/33014747838.html)
It is called USR-TCP232 and this is the manufacturer's website: https://www.usriot.com/products/rs232-to-ethernet-converter.html (https://www.usriot.com/products/rs232-to-ethernet-converter.html)
My KP184 is now connected to my LAN and I can access it via "virtual COM ports" from every PC within my network.  :-+
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: classical on April 20, 2020, 03:40:11 am
My KP184 is now connected to my LAN and I can access it via "virtual COM ports" from every PC within my network.  :-+
Thanks, very interesting. Did you use the virtual com port driver of the manufacturers website?
Which application do you use controlling and reading the KP184?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 21, 2020, 12:04:22 pm
I am using a Digitus DA-70156 USB 2.0 to Serial (FTDI/FT232RL) on Win 10 with no issues from ASSMANN Electronic GmbH 8,67 EUR + Shipping on Amazon.

Scoping Kunkin KP184 serial communication with the stock National Instruments based light application I noticed there are a lot more register addresses available than the ones listed on the product manual.

The manual states on page 14:

If you need more specific information about communication protocol, please contact the technical support department of our company to get it.

I sent an email to sales@kunkin.cn but it could not be delivered.

Does anyone have this complete protocol information?

Does anyone have an open English speaking channel with Kunkin to ask for more information?

I am glad to share some details but there is a lot of missing information...
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: voltlog on April 25, 2020, 08:48:56 am
I wasn't even able to get their labview app running, I obtained two different versions, the first one wouldn't let me change the serial port for connection and the second would complain right from the start that there are missing files. The best I could do is connect with the visual studio command line app that someone designed and released on github.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on May 28, 2020, 05:16:51 am
New software written in Python for Kunkin KP184 V1.0.1.0:
Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
User_Manual (https://www.interflexo.com/kp184/KP184_exe%20v1_0_64_0%20User%20Manual.pdf)


Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on June 02, 2020, 01:31:41 pm
New version 1.0.2.0:
Capacity (Ah)/Energy (Wh) calculations error fix.
Minor bug fixes.
New software CVL mode with current limiting capability. Operates Kunkin in CC mode and a PID configurable control loop holds the configured CV setting by permanently adjusting the CC load.

User Manual updated.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: dc8wan on June 04, 2020, 10:00:17 pm
For the reversing engineering gays:
the Command
      
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Voidugu on June 06, 2020, 02:12:22 pm
Softwae feedback: For some reason, when I try to log data, the logging stops after 14:04 minutes, regardless of the sample rate (ie 4 samples per second or 1 sample per second). I am using software version v1.0.1.0 with windows 10.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on June 08, 2020, 10:45:52 am
Thanks for your feedback.
From the User Manual (page 3) or App Info Tab: "This unregistered product works in trial mode for 15 minutes, after the expired
period the data capture features are disabled. If you find out that this software product is useful, you can register..."
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on June 13, 2020, 08:14:36 am
New version 1.0.3.0:

1. Plot graphs are now placed on the same directory as the configured .csv file.
2. A matching “.png” plot graph image file is also added to the same output directory for easier document insertion.
3. Dimmed icons bumped 78% in brightness.
4. Several minor cosmetic issues fixed.
5. Several support modules were updated in the Python ecosystem.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on June 20, 2020, 09:15:29 am
New version 1.0.4.0:

1. Fixed an issue with the battery capacity test max duration
2. A new log tab allows the user to keep a track record of the current session activities and results. Events like over temperature, over power and over current are also logged as well as its recoveries. Right click on the text widget and select “Copy to clipboard” to export the complete log in
text format.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: belzrebuth on July 02, 2020, 07:53:13 am
I found an interesting alternative for connecting the KP184 to a PC. Instead of using a USB serial adapter you can use a network serial adapter.
I tried this device: https://www.aliexpress.com/item/33014747838.html (https://www.aliexpress.com/item/33014747838.html)
It is called USR-TCP232 and this is the manufacturer's website: https://www.usriot.com/products/rs232-to-ethernet-converter.html (https://www.usriot.com/products/rs232-to-ethernet-converter.html)
My KP184 is now connected to my LAN and I can access it via "virtual COM ports" from every PC within my network.  :-+

I've got the same LAN module, based on your post here.
How did you connect the module to the Kunkin load?
I could make an adapter board with a DB9 and a DC power port I guess...
Does the module need 3V3 or 5V to operate?Or 5V gets converted to 3v3 regardless?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: coromonadalix on July 02, 2020, 10:50:42 am
For the serial to usb adapter(s) on the market , many of them a prolific based,  some with ch340 ic's and the ones you need are ftdi based,   but you need to check the hardwares id's in the windows device managers to get the vid / pid  to be sure.

Tons of compatibility issues, buffer lenght, communication drop out,    etc .... i always resort to real ftdi chipset.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: belzrebuth on July 02, 2020, 01:45:47 pm
So those RS232 to USB that are flooding ebay are out of the question I guess?
I think I have an FTDI friend clone around here; I could check if it works.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: belzrebuth on July 03, 2020, 08:41:13 am
Is there a guide somewhere on how to setup the USR-232-T2 ethernet to RS232 module?
I've managed to connect to it via LAN but I think it needs a serial to TTL converter (3.3 to 5V in order to work with the KP184)
The FTDI clone I have does now work with the load.
It has a FTDI chip so there must the level conversion again that's probably incompatible.
Could it work with a diy level shifter?
I've seen some designs with a couple of transistors..
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: coromonadalix on July 03, 2020, 02:24:51 pm
The one i use the most is  a model  sp-880   usb to rs232, it as a real ft232 with an transceiver ic   betwwen the rs232 plug and the ftdi chip

maybe some other source ??

https://www.amazon.ca/Connectors-SP-880-UT-880-Compatibility-Yoton/dp/B07Q6HW46V (https://www.amazon.ca/Connectors-SP-880-UT-880-Compatibility-Yoton/dp/B07Q6HW46V)


https://botland.com.pl/en/converters-usb-to-uart-rs232-rs485/4371-ft232rl-sp-880-usb-converter-rs232-com-10v-with-db9-connector-adafruit-18.html (https://botland.com.pl/en/converters-usb-to-uart-rs232-rs485/4371-ft232rl-sp-880-usb-converter-rs232-com-10v-with-db9-connector-adafruit-18.html)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: belzrebuth on July 03, 2020, 02:38:01 pm
Mine has a jumper for 3.3V or 5V operation.
I've set it for 5V and still nothing.
The adapter is working because I use it very often so maybe it's their combination that's somehow problematic.

My settings on the Kunkin are :
address 001, baud rate 19200.
And on the adapter I've set the baud rate to 19200 and N 8 1 with delay 100mSec.
I've checked the RX and TX pins of my FTDI adapter and they're both 5V when I set the jumper to 5V so it's not the voltage level..
I've tried both the modbus cmd program and kp184 modbus program from interflexo.
But I get no answer from the load.. :-//
Here's the output when trying to run the modbus KP184.exe (I switched my baud rate to 9600 just in case) :
 
Verbose  17:47:19.664 port                :COM Port: com4
Verbose  17:47:19.675 baud                :BAUD rate: 9600
Verbose  17:47:19.676 delay               :Sleeping for 100ms
Verbose  17:47:19.786 address             :Device address: 1
Verbose  17:47:19.789 get_status          :Calling get_status from KP184
Verbose  17:47:19.795 open                :Opening serial port 'com4' at 9600 baud
Error    17:47:20.884 read                :Timeout reading from com4
Error    17:47:20.890 Main                :Checksum error, got 0x0000. expected 0x1B1B

I'm using a female DB9 connector with pins 2,3,5 being pins RX, TX, GND of my FTDI respectively.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on July 03, 2020, 04:26:22 pm
Mine has a jumper for 3.3V or 5V operation.
I've set it for 5V and still nothing.
The adapter is working because I use it very often so maybe it's their combination that's somehow problematic.

Try measuring the voltage on the DB9 connector, if it is a RS232 output it is more than +/-9V and will not work directly with a TTL level adapter with 3.3V or 5V, both the voltage and polarity will be wrong.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: belzrebuth on July 03, 2020, 04:56:56 pm
I'm getting 5V at pin 2 (with 5 being the negative) and 5V at pin 7.
That's on the Kunkin connector.
5V should be the TX pin (from the manual) and should go to the RX pin of the adapter and vice versa for the other RX and TX.
That's what I've done and it's not working.
I could try another USB to serial adapter I guess..but I suspect there might be a connection issue of some sort since this FTDI tool has worked with everything I've thrown at it and it has a FTDI chip which essentially what most of the working adapters reported here have as well.
I've ordered a couple of other adapters but they won't be here anytime soon so I will try to verify if there's a connection issue.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: coromonadalix on July 03, 2020, 06:09:00 pm
If you are under windows, dont forget in the device manager  to set  higher baud rates for the usb rs232 adapter, it default to 9600 bauds, i always set them to 115200 bauds  ...  had a stupid problem in the past because of this  :palm:
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: belzrebuth on July 03, 2020, 06:47:34 pm
Okay I'll try higher baud rate and report back!
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: aristarchus on July 07, 2020, 01:00:53 am
Hi,

Just recently received my KP184 and tried to use the RS232 port.
Initially tried with a USB to UART simple little board but it was not working.
https://www.aliexpress.com/premium/FT232RL-USB-to-TTL-Serial-Adapter-Module.html (https://www.aliexpress.com/premium/FT232RL-USB-to-TTL-Serial-Adapter-Module.html)
Then I understood that it is indeed a RS232 port on the KP184 and not a UART, thus I added a small MAX RS232 level converter
https://www.aliexpress.com/premium/MAX3232-Level-to-TTL-Level-Board.html (https://www.aliexpress.com/premium/MAX3232-Level-to-TTL-Level-Board.html)
between the USB to UART board and the KP184 RS232 port and now it is working just fine up to the full 115200bps.

So if someone wants to have something that works and not endlessly searching for the proper adaptor, that is a working solution.
Tried it with modules having fake and original FTDI chips, its just the same, both work ok.


PS
Added a photo of level converter and USB to UART.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: aristarchus on July 10, 2020, 07:28:18 pm
Also tested the RS485 port on KP184.
Used two solutions, first adding a TTL/UART to RS485 board instead of the RS232
https://www.aliexpress.com/wholesale?catId=0&SearchText=ttl+to+RS485 (https://www.aliexpress.com/wholesale?catId=0&SearchText=ttl+to+RS485)
which worked just fine.
Then tested a ready made USB to RS485 for less than 2 bucks
https://www.aliexpress.com/wholesale?SearchText=USB+FTDI+TTL%2FRS485 (https://www.aliexpress.com/wholesale?SearchText=USB+FTDI+TTL%2FRS485)
which again worked ok.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: aristarchus on July 21, 2020, 11:01:53 am
Managed to find the KP184 modbus protocol specification.
I hope it can be of use and developers could add all functionality in their programs.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 24, 2020, 04:34:27 pm
New KP184 Software Version 1.0.5.0:

Changes:

1. Fixed some data logging hiccups during application main window drag
2. Fixed graph y-label slightly clipped
3. Several support modules were updated in the Python ecosystem.
Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)

Just use the new .EXE file over your previous v1.0.4.0 installation to preserve your configuration.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 15, 2021, 11:49:15 pm
New KP184 Software Version 1.0.6.0:

Changes:

1. Added some thread locks around logged data handling
2. Several support modules were updated in the Python ecosystem.
Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)

A user reported some documented problems in logged time on a iMAC I5 from 2015 running Windows 10.

In spite of my best efforts I could not replicate the described problems using a Lenovo Thinkpad T520 I5 2,5Ghz 8Gb RAM running Windows 10 Pro 64 bits.

Nevertheless I examined the code and added some thread locks around logged data handling, compiled a new build (v1.0.6.0) and put it through a 2 hour hell burn in test - battery discharge test data log with continuous cycle of simultaneous write (from within application) of more than 200 csv files without any problems.

Any feedback would be much appreciated.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: tonyalbus on January 16, 2021, 10:02:59 am
Thanks again for your efforts and the share  :-+
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 21, 2021, 02:18:44 pm
New KP184 Software Version 1.0.7.0:

Changes:

1. Added automatic PDF report creation from the battery discharge capacity test results.
2. Smoother data files (.csv; .png; .pdf) bulk writes during data acquisition.
3. User Manual updated for the new functionality description.
4. Several support modules were updated in the Python ecosystem.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Dummy New Test Report (https://www.interflexo.com//kp184//kp184_Report.pdf)

Please note that this version as a new template file called "Report.html". If you are upgrading from the last versions please add this file, overwrite the new executable file and you are good to go. Your application custom configuration is stored in the "kp184.ini" file.

I thank all users for your suggestions and precious input.

There was a problem with the unregistered mode startup. Solved now.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 24, 2021, 12:53:14 pm
New KP184 Software Version 1.0.8.0:

Changes:

1. Added a software implemented end voltage condition test: go half current until next undervoltage during battery capacity discharge test.
2. User Manual updated for the new functionality description.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: F64098 on January 24, 2021, 02:00:56 pm
Hello interflexo,

i get a permanent error on starting, even with version 1.0.8.0
Win10Pro 64 20H2, KP184.exe located on C:\

Best regards

Frank
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 24, 2021, 02:55:22 pm
Hi Frank,

Please double check the file version properties of the KP184.exe file you are using.

That error appeared on the unregistered run of version 1.0.7.0, I then corrected it on the same day and uploaded the fix under the same version number (bad practice). Browser cache plays some tricks here.

You should not install it on the root C: directory, that requires Administrator permissions, although I tried it on my Win10Pro 64 system and everything was fine.

You have an Install.txt information file on the installation directory.

Download the zip file to your system. Open the directory where the zip file is located. Double click on the zip file to open it. Double click on the KP184.exe file and select the "Extract All" button and select the installation directory (avoid root and other inconvenient OS system directories). Install Ds-Digital fonts as described on the Install.txt file. Create a shortcut if you want. You are good to go.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: F64098 on January 24, 2021, 07:29:41 pm
Hello interflexo,

tried several times, also with an older version (1.0.5.0).
Same error on any variation.
Maybe an issue of the Windows Defender...

Best regards

Frank
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 24, 2021, 08:12:16 pm
Hi Frank,
Sent you a PM with a debug version to help you sort it out.
Please keep me posted.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 24, 2021, 11:11:36 pm
Thanks to Frank I managed to identify, isolate and replicate the problem in a Windows Sandbox clean Windows 10 installation.

Debug info:

ImportError: DLL load failed while importing ft2font: The specified module could not be found.

The issue is explained here: StackOverflow Post (https://stackoverflow.com/questions/24251102/from-matplotlib-import-ft2font-importerror-dll-load-failed-the-specified-pro)

and is related to a Python matplotlib module version and msvc-runtime installation. I will probably have to downgrade matplotlib module to get rid of this. Still accessing the best course of action.

This should affect only a small undetermined number of systems but nevertheless has to be dealt with.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 25, 2021, 12:47:43 am
Traced the problem and the solution is: if the error "Failed to execute script Main" occurs please install:

Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.24123 (https://www.microsoft.com/en-us/download/details.aspx?id=52685)

Select the English language. Select the "vc_redist.x86.exe" file 13.5Mb published on 6/2/2016. Install.

Please note: install the x86 version even if you have a 64bit system.

I will probably go with a "Chocolatey packages" installer to automate this process along with fonts installation, etc. Things start small then get pretty serious.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 25, 2021, 05:46:41 am
KP184 Software Version 1.0.8.0 Windows Installer:

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

Documentation, fonts and Microsoft Visual C++ 2015 Redistributable (x86) are automatically installed if required.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 25, 2021, 12:24:54 pm
New KP184 Software Version 1.0.9.0:

Changes:

1. Added the new information to the automatic PDF report creation for the end voltage condition test: go half current until next undervoltage during battery capacity discharge test.
2. User Manual updated for the new setup description.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 25, 2021, 10:40:09 pm
Hi there, I cannot get the serial connection working on my brand new KP184. I‘m using the recommended Digitus RS232 adapter with SW 1.0.8.0
The SW tries to connect but doesn’t receive an answer from the load.
I used a scope to track the signal inside the KP184, and found the sent message on pin 3 of U23( Dual-Channel Digital Isolator) and on its output to the MC. I‘m sure that the reply message of the KP184 will be on pin 2 of the same IC. But there is no serial signal. Even on the TX pin of the MC there is no answer message. Seems like it is disabled.

Address is 1, baud is 9600. Is there a menu entry to  enable serial communication?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 25, 2021, 11:36:15 pm
That is unfortunate. It's the fourth unit that I know of that exhibits that same behavior.

The only parameter that could cause problems would be:

On Kunkin: Multi-machine online mode: Offline/Slave/Host -> Use Offline

The tests you made were thorough enough to me.

Nevertheless, two tests can be made:

During the connection process the software asks Kunkin KP184 for the content of the memory address 0x001 which holds the equipment model number (0x0730 = 1840), Kunkin response should be immediate, the software will wait for 5 seconds. This response is not being received, your logs should show the COM port is being closed after 5 seconds.

Loopback test (tests the PC serial adapter):

Please first debug if the 2 USB serial adapters are working properly. Check your USB to Serial Adapter operation with a loopback connection. Please shunt pins 2 and 3 on your DB9 serial port side and connect your adapter only to your PC USB port. Install some terminal software (Ex: CoolTerm) on Windows 10 (Hyperterminal is no longer part of Windows), run the program, configure to 9600,N81 no flow control, turn off echo, connect, press some test keys and check if you receive the characters back to the screen. This will prove to you that your adapter and drivers are at least working.

Once this works you should try the connection with Kunkin KP184.

Don't forget the DB9 serial cable (straight through cable) should NOT cross pins 2 and 3:

2 TXD -> 2

3 RXD -> 3

5 GND -> 5 GND

Baudrate: Start with a conservative 9600 to debug de serial connection, then you can use 115200 with a short cable for lower latency.

On Kunkin: Multi-machine online mode: Offline/Slave/Host -> Use Offline
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 25, 2021, 11:43:42 pm
If the previous test (loopback test) is successful and you are in the mood to throw some more jabs at this subject. You can collect additional debug information of why the communication is not starting:

1. Please make sure you have Kunkin KP184 configured for communication address 1 on the operating panel and record the configured baudrate to match with CoolTerm software configuration.

2. Connect Kunkin and your serial adapter with a straight through cable 2-2 3-3 5-5 no shunts required on either side.

3. Start CoolTerm and configure it for the Kunkin baudrate 8-N-1 and use your serial adapter COM port. Check Windows Control Panel \System \ Hardware Manager \ COM Ports for the COM Port names.

4. Select Connection \ Connect option to connect to the COM Port.

5. Select Connection \ Send String option to send an Hex ModBus command to Kunkin.

6. Select the Hex option. You will provide each byte in Hex format. Enter the ModBus command: 01 03 00 01 00 04 C9 15 and press the Send button. You can use a space between each pair of digit for easier byte identification. This ModBus command asks for 4 bytes from the Kunkin register memory address 0x001 that holds the device ID

(http://www.interflexo.com//kp184//CoolTerm1.png)

7. Kunkin should answer promptly with 01 03 04 00 00 07 30 17 F8 as you can see on the underlying CoolTerm Window.

0x0730 is 1840 in decimal and identifies a Kunkin KP184


This is generic debug. In your case Kunkin should remain silent judjing by the probing you already performed.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 25, 2021, 11:58:00 pm
New KP184 Software Version 1.0.10.0:

Changes:

1. .ini configuration file now is placed on folder "KP184 Modbus" inside "User\AppData\Roaming" folder. During setup installation upgrades this file is not overwritten to preserve your configuration.

2. Data files (.csv, .png, .pdf, pdf reports, etc. are now created on a folder "KP184 Modbus" inside "My Documents" folder. You can select other folders, the configured folder for .csv files is used.

This should get rid of the need to run the application in Administrator mode. No files are modified inside the installation folder during runtime.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 26, 2021, 07:52:34 am
I tried what you posted and sent the message with Coolterm, no answer from the load. I‘m sure baudrate, address and other settings are correct.

I thought maybe the isolator chip U23 is faulty, so I desoldered it and connected a USB to TTL adapter directly to the MC (soldered GND, RX and TX onto the MC-side of U23). U23 is directly connected to the MC.

Still no reply from KP184 😞
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 26, 2021, 11:10:18 am
The Kunkin MCU pins original solder reflow looks ok?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 26, 2021, 12:28:03 pm
Looks good to me. I can scope the RX message right on the top of the MC pin, but no TX message on TX pin. No measured shorts between the pins on MC.
The MC just doesn’t react to the sent message. I think its firmware related.
The unit itself runs fine, but no serial communication.

If I use your SW and try to connect the LED on the backside of the load flashes green for a moment. This means write-to-KP184, right?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 26, 2021, 03:40:22 pm
Probably yes. KP184 manual does not mention the LED function.

KP184 software writes the connect command only once and then waits until 5 seconds for the right answer while flashing the icon.

Probably RS-232 and rs-485 share the same TX MCU pin. If not true you can also take a basic look at the RS485 interface.

Put a dummy 120 Ohm resistor through the 485-A and 485-B pins at the back Kunkin connector.

Set the scope and probes on the 2 RS-485 pins as suggested on page 3 here:

Oscilloscope RS-485 (https://sbc-support.com/uploads/tx_srcfaq/RS%20485%20Oscilloscope%20Screenshots_100179.pdf)

Configure Kunkin as Host on:

    SYS \ Online Mode \ Set it to Host (It should be OFF in Normal operation)

Right now when you configure Kunkin on the operation panel or turn Load ON/OFF ModBus commands are automatically sent through RS-485 interface to be replicated on several Online Mode \ Slave devices. You can catch the com signals with your scope on the Math CH2-CH1 channels.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 26, 2021, 03:58:23 pm
I will try that, thank you for your help so far 👍
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 26, 2021, 06:29:15 pm
What I don’t understand, even if TX line is broken the load should react when sending ‚switch on/off‘ the load. But it does nothing via serial connection.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Noy on January 26, 2021, 09:42:58 pm
In my unit the optocoupler was not soldered correctly. Did you checked it?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 26, 2021, 10:40:02 pm
What I don’t understand, even if TX line is broken the load should react when sending ‚switch on/off‘ the load. But it does nothing via serial connection.

If the serial connection is not established by receiving the correct answer to the first register request there are no further communications. The software is always querying the unit for updated values and status. Modbus RTU is a 2 way protocol. When you send a command most of the times you will receive an answer from the unit.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 27, 2021, 05:22:38 am
In the case of your SW, yes. You are polling values so the load must answer, and it does (well, not mine)

But if I send the ‚switch on/off‘ command via terminal program the load should receive the command on RX and switch on or off. I don’t need the confirmation like ,glad to hear from you, I will switch the load now on/off‘ 😉

So, when I send the command on/off via terminal and nothing happens (load stays in its last stage), then the load didn’t get the command to switch on/off at all.

It must be a FW bug in my unit, because I can scope the modbus command to switch on/off right at the MC pin, so the MC gets the message. Why the MC doesn’t react (and switch the load on/off), I don’t know.



Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: F64098 on January 27, 2021, 06:11:36 am
Same problem for me.
Software ist starting and running now (thank you Manuel!), but the KP184 plays deaf bug  >:(

Best regards

Frank
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: F64098 on January 27, 2021, 07:31:59 am
 :palm:
 :palm:
Okay guys, please press Shift then Mode then Arrow down and then Arrow right and check your baudrate...
 :palm:

I got instable operation with baudrates > 19200.

Best regards

Frank
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 27, 2021, 07:39:31 am
@Frank,
I tried every possible baud rate on the device. Its simply not responding to any commands.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: F64098 on January 27, 2021, 08:04:49 am
If I use your SW and try to connect the LED on the backside of the load flashes green for a moment. This means write-to-KP184, right?

Yes, that's right. And it has to flash red for sending data to the PC.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 27, 2021, 10:04:48 am
In the case of your SW, yes. You are polling values so the load must answer, and it does (well, not mine)

But if I send the ‚switch on/off‘ command via terminal program the load should receive the command on RX and switch on or off. I don’t need the confirmation like ,glad to hear from you, I will switch the load now on/off‘ 😉

So, when I send the command on/off via terminal and nothing happens (load stays in its last stage), then the load didn’t get the command to switch on/off at all.

It must be a FW bug in my unit, because I can scope the modbus command to switch on/off right at the MC pin, so the MC gets the message. Why the MC doesn’t react (and switch the load on/off), I don’t know.

You' re right. It should execute the received command, if the message CRC checks out of course.

When the unit is in good health it communicates well at the maximum configurable speed of 115200.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 27, 2021, 10:20:06 am
The CRC check is documented in the manual and there is the xls file with all commands here in this thread.
Maybe they changed something in the FW for KP184 and use other commands/crc.
My unit shows 2020 at bootup for short time. Don’t know if thats the FW version.
Main PCB is Rev. 04
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 27, 2021, 11:38:38 am
The CRC check they use is the industry standard CRC-16/Modbus one, I don't believe they would change that.
Also the command set is based on the standard Modbus RTU protocol, changing that would render inoperative their own Chinglish software.

That's why the RS-485 test is important. The Kunkin as host would take the initiative at communications with a simple load on/off or change settings.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: wolzlu on January 27, 2021, 01:00:33 pm
Hi,
my unit has the same problem. It's a KP184 VER:04 202007. Not all Rev. 04 PCBs have the same layout, hence the date code. On boot it also shows KP184; 2020 (probably the firmware version) and the address.
First I thought it's a noise problem (see https://www.eevblog.com/forum/testgear/an-investigation-about-ripple-current-of-kunkin-kp184/ (https://www.eevblog.com/forum/testgear/an-investigation-about-ripple-current-of-kunkin-kp184/)).
Independent of Penguin36 I removed the isolator (U23) and connected a TTL converter directly.
Of course I tied the usual suspects first: different PC, adapter, baudrate, device settings, software, ...
U23 is causing noise too, so I added a capacitor on both sides afterwards.

To prove the connections and the MCU are OK, I put the device into bootloader mode.
Pull Pin 9 on the RS-232 connector to high or short the output of the corresponding optocoupler, then power cycle the load.
With software for STM32s I could connect to the bootlader via RS-232 (connection is working  ???)!
But I couldn't extract the firmware, because read protection is active (maybe there is help: https://www.eevblog.com/forum/microcontrollers/stm32-readout-protection-is-broken/ (https://www.eevblog.com/forum/microcontrollers/stm32-readout-protection-is-broken/)).

Just to clarify you need a straight through cable (like the one that comes with the unit).
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 27, 2021, 01:16:33 pm
So, your KP184 doesn’t respond to serial commands like mine?

A friend of mine has an older model of KP184,  I think its Rev 02, panel shows 1801 on boot.
I tested it with my Digitus RS232 adapter and the sw from this thread with my Asus Win10 notebook. Its all fine and working with the older model. Mine still doesn’t respond to serial commands.
I will try the RS-485 test later on.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 27, 2021, 05:22:43 pm
New KP184 Software Version 1.0.12.0:

Changes:

1. .csv data files; .png plot graph files; .pdf plot graph files and .pdf test report files now all have independent configurable file names and folders and reset to folder "KP184 Modbus" inside "My Documents" in case of error.

2. There is a new button specific for the battery capacity discharge test report creation.

3. PDF User Manual now is installed on the folder named "KP184 Modbus" inside "My Documents".

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: rdsi on January 28, 2021, 12:09:53 pm
I had a similar situation with my BK 8500 (https://www.bkprecision.com/products/dc-electronic-loads/8500-300-w-programmable-dc-electronic-load.html) load however its RS-232 port was using inverted 5V TTL levels. I decided to use a “PI Zero W (https://www.raspberrypi.org/products/raspberry-pi-zero-w/)” and a program called “ser2net (https://linux.die.net/man/8/ser2net)” so that I could access the load via my network.  On my Windows machine I use a product from perle (https://www.perle.com/) called TruePort (https://www.perle.com/downloads/trueport.shtml) to assign a COM port to load.  This product is FREE for this purpose and is available for both Windows and Linux.

So with a couple interface components I was able to connect the PI to the load.  Using the PI GPIO3 shutdown feature it will power-up & shutdown in sync with the load power state.

Solved my problem without using any wires between the load & PC.
If I can find the time this setup will allow me to write a WEB server for the load.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 28, 2021, 04:52:36 pm
Today I tried the RS-485 test with an 120 Ohm resistor and a scope. Put the KP184 in Host mode, pressed some buttons (on/off and so on) aaaannnnnndddddd?


Nothing!!!  😡

My unit simply doesn’t send anything to RS-232 and/or RS-485.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: wolzlu on January 28, 2021, 04:59:11 pm
@Penguin36: Yes, we have most likely the same problem.
@rdsi: I will use an ESP or similar. But first we need a working firmware for the load.
RS-232 and RS-485 use the same pins for TX / RX on the MCU. RS-485 needs an additional pin for setting the direction.
A key press transmits a data pattern (fefd000000xxxxxx hex) in host mode:
fefd000000007811 Encoder (both directions)
fefd0000003ef9c1 ON
fefd0000001f39d9 Mode
fefd0000003db9c0 Up
fefd0000002f39cd Down
fefd0000003b39c2 Left
fefd0000003739c7 Right
fefd0000001ef819 Shift
fefd00000027380b SET
I didn't get anything on the RS-485 side, probably because signal for switching direction is missing.
Receiving data via RS-485 works as expected. The slave mode has yet an other quirk  :palm:. I only could get it react to something, when switching from host to slave.
With the commands from above it only changes mode (CC to CV and so on) regardless of the button. If the load is on, it only beeps. Since you have to turn off the load, before changing the mode. For other patterns it did nothing. After reboot it is still in slave mode, but doesn't react anymore to serial commands.
Obviously the back LED is controlled by RX/TX and not directly by the MCU.
Hopefully someone cloud provide a working firmware. Would be interesting to know if all loads showing 2020 on boot have the same problem?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Penguin36 on January 29, 2021, 02:02:07 pm
I gave up and got another KP184 from ebay.
This one is PCB Rev.03 with FW 1801 (shown on bootup). RS-232 is working out of the box up to 115200 bps, no issues so far.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on February 09, 2021, 12:52:21 pm
New KP184 Software Version 1.0.13.0:

Changes:

1. Replaced several functions from external lib modules that will be deprecated in the future.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Dwaine on February 10, 2021, 03:41:10 am
I love my Kunkin KP184 electronic load and would like to control it via the serial port (or RS485, don't care which), but none of the adapters I've tried (FTDI, Prolific, all the usual suspects) work.

I'm still looking to find the equipment that doesn't work with this adapter:

(https://www.eevblog.com/forum/index.php?action=dlattach;topic=47932.0;attach=839348;image)

I use one since 2005 (this is my second one since I lost my previous one, that were only Keyspan in the brand): From using with a Renishaw QC10 Ballbar System to Rollover Cisco Cables, from NSN MGW/MSS terminal connection to old measurement equipment, it never let me down, including Allen-Bradley/Siemens Simatic PLCs. It's based on the TI 75LV4737A Multichannel RS232 Line Driver/Receiver, so it have have HW handshake.

It's a little expensive compared with other models, but is probably the only one you will need for the rest of your professional life.

Those keyspan usb serials will work with any device you throw at it.   I paid $89.00 about 10 years ago.    I have a few Kenwood radios that only work with the Keyspan USB cable.

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on February 17, 2021, 02:24:15 pm
New KP184 Software Version 1.0.14.0:

Changes:

1. Fixed issue related to configuration dialog file browse select controls startup folder.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: snoozer on February 20, 2021, 01:03:34 pm
Hello,

I just thought I check in here because my recent purchase KP184 does also not work with the GUI software or the CLI software which was links further up in this topic. I have done a bit more digging to check if I possibly have an issue on the circuit side of things. I have used a scope to probe the signal presented on the MC side of the RS232/485 Isolator device U23 with the number 1201ARZ. By setting the KP184 to host mode I can make it send "stuff" as if it was controlling the slaves. I can see a signal with nice sharp edges there. Characters also show up on an attached serial terminal. I have also tested the other way around, sending "J" characters from the serial terminal on the PC to the KP184 and I can also clearly make out the "J" send on the MC side of the Isolator U23. I was not able to probe on the MC itself with the scope, the pitch is a bit to small for the probes but I did check continuity and that's fine. From the observations I would have to conclude there is an issue in the MC not doing anything when commanded to by means of serial communication. It would look to me as if the firmware just does not do what it should. Has anybody found a solution to this or is there maybe a firmware that works with my hardware that can be programmed into the KP184

Board Version 4, the top line on turn on has a couple of chars and 184 after. Assume its a version number, maybe 1.84 ?

Kind Regards
Jan Paulini

PS: I have tested with the scope at 2400 baud as well as 115200 baud. There was no issues with either.

PPS: Just for completeness, I have checked with 3 different USB/RS232 interfaces. Also tested with 2 different RS485 interfaces on the A and B terminals of the terminal block in the back of the KP184. No success.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on February 21, 2021, 11:36:38 pm
This is most unfortunate. It looks like a firmware issue to me. Thanks for the comprehensive tests.

Does anyone have a KP184 PCB Rev.04 with a working RS232 serial interface?

I remember someone mentioning there is more than one PCB Rev.04 layout and a PCB Rev.05 here.

I browsed Kunkin website. At the low end they have now the KP283 / KP284 (2CH independent 15A/20A 80V). They dropped the PC RS232 interface but maintained the RS485 (host/slave) interface.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: snoozer on February 22, 2021, 06:33:53 pm
Hello again,

in the meanwhile I had a PM regarding this issue from another forum member. He made a very valid observation, the 184 in the 1st line at boot up with the two characters before is obviously the model number KP184, that did not click with me ;-) The 2nd line shows 2020 and the 3rd the address 1. For clarification I add a picture of it below the post. I also have a picture of the board version added for convenience. It appears to be Version 4 202007. So I am definitely not the only one with the issue, there appear to be at least 2 other forum members with the same issue according to the PM I got. I am not going to quote a PM here, I leave that to the person that send me the message if he things it is of any help to the issue.

I hope we can get to the bottom of the issue and fix it in the end. It's not the end of the world for me, I appear to be lucky enough to have an otherwise working instrument which does not seem to be the case for some people. The serial communication would still be a nice extra to have.

Thank you !
Jan P.

PS: Hi @interflexo, thanks for the hint re the Version 5 PCB. I got my unit only a week ago but may have been in stock for some time at Banggood ES warehouse where I got mine from (EU citizen). The KP283/284 looks way different of the control side of things, a lot simpler I guess. Not sure if any parallels could be drawn there apart from maybe the high power side of the instrument.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Treed on February 26, 2021, 04:29:34 am
I independently got to the same conclusion. I tried sending commands to the load and probed the signal all the way to the MCU but just couldn't get a reply. When it's in host mode it sends commands when pressing buttons and in slave mode it reacts when repeating those commands back to it. It doesn't reply with anything though. I have a Ver04 20191111.
It seems Kunkin just broke the firmware on all Rev4s :(
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: snoozer on February 27, 2021, 08:46:13 am
Hi,

I just had another closer look to be sure. The USART1 TX and RX are on PB6 and PB7, thats pin 42 and 43 on the LQFP48 package of the MCU STM32F030C8. Both pins correctly connect to the Dual-Channel Digital Isolator U23. Do other board versions have the same MCU ? I have a couple of pictures attached below. Not the best quality, sorry.

Kind Regards
Jan P.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: aristarchus on February 27, 2021, 02:35:22 pm
I independently got to the same conclusion. I tried sending commands to the load and probed the signal all the way to the MCU but just couldn't get a reply. When it's in host mode it sends commands when pressing buttons and in slave mode it reacts when repeating those commands back to it. It doesn't reply with anything though. I have a Ver04 20191111.
It seems Kunkin just broke the firmware on all Rev4s :(


The KP184 that got here since July. 2020, is working ok regarding RS232 and RS485.

Upon power on, it shows this on its display:
KP184
2001
Ad.001

And internally it has this main board version
VER:04
20191111

So, not all v4's got this problem as this one works ok.

See also some previous posts with relevant info for RS232 and RS485 hardware and connections here
https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3123158/#msg3123158 (https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3123158/#msg3123158)
https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3130266/#msg3130266 (https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3130266/#msg3130266)


/PS
Just did a read on other posts that have the comms problem, it looks to me that the issue is there with those that have 2020 shown on the initial  boot of KP184 display, so most likely a newer firmware version problem.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: snoozer on February 27, 2021, 05:17:46 pm
@Treed, could you check what your boot up display looks like ? Do you have 2020 in the 2nd line as well or something different ?

Regards
Jan P.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: snoozer on March 01, 2021, 10:30:53 am
Hi, I am attempting to get in touch with Kunkin now, I have little expectation but hey, cost nothing to send an email.

Rgrds
Jan P.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: aristarchus on March 01, 2021, 11:18:57 am
Hi, I am attempting to get in touch with Kunkin now, I have little expectation but hey, cost nothing to send an email.

Rgrds
Jan P.


In attempts to get in touch with them last year received no reply whatsoever, tried almost every possible email and even the chat feature, none worked no reply ever given.

The only way that I managed to get something from them
(the document with the protocol and commands that I published in post  https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3147906/#msg3147906 (https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3147906/#msg3147906) )
was via the seller from which I bought the device in ebay, I think your best bet is to use your seller in order to retrieve any response from the company, only the seller I guess knows how to deal with them..

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: snoozer on March 01, 2021, 12:09:28 pm
Good point @aristarchus, I have contacted Banggood as well.

Thx
Jan P.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 02, 2021, 09:26:32 am
New KP184 Software Version 1.0.15.0:

Changes:

1. Also accepts Modded KP182 (U23 > ADUM1201 + 2 RX/TX resistors + USB/Serial Converter)

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 07:57:17 am
Hello,
I had the same problem with the KP184, that it does not react to commands via RS232 serial interface.
My device shows also 2020 at startup.

I think, I've found the solution to the problem:
The documentation about the serial commands in the manual is wrong!
The checksum has to be sent LSByte first (not MSByte first as written in the manual and shown in the examples).
So for example the sequence for 'Set up load switch' is 01 06 01 0E 00 01 04 00 00 00 01 5F CA
This is according to the description of the Modbus Standard which I found here https://modbus.org/docs/Modbus_over_serial_line_V1_02.pdf
Obviously the older KP184 devices have a failure in Modbus implementation and the manual description is for these older devices  :-\

BR
Reinhard
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on March 03, 2021, 08:05:18 am
Hello,
I had the same problem with the KP184, that it does not react to commands via RS232 serial interface.
My device shows also 2020 at startup.

I think, I've found the solution to the problem:
The documentation about the serial commands in the manual is wrong!
The checksum has to be sent LSByte first (not MSByte first as written in the manual and shown in the examples).
So for example the sequence for 'Set up load switch' is 01 06 01 0E 00 01 04 00 00 00 01 5F CA
This is according to the description of the Modbus Standard which I found here https://modbus.org/docs/Modbus_over_serial_line_V1_02.pdf (https://modbus.org/docs/Modbus_over_serial_line_V1_02.pdf)
Obviously the older KP184 devices have a failure in Modbus implementation and the manual description is for these older devices  :-\

If that is the case, you can easily test with TestController: https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/ (https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/)
Simple change the line "#subDriver Kunkin"  to "#subDriver RTU" in the "Kunkin KP184.txt" file
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 08:25:09 am
I've already checked that with a terminal program and it works with Checksum LSByte first!
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on March 03, 2021, 08:34:43 am
I've already checked that with a terminal program and it works with Checksum LSByte first!

With TC you can also check if the ID byte is the same and the standard control are unchanged, that is a lot of work from a terminal.
(http://lygte-info.dk/pic/cpf5/TCKunkin.png)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 08:37:14 am
OK, I will check with your SW ...
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 09:54:11 am
The TestController SW does not connect to the KP184.
I've made the change in the Kunkin.txt file and set the com Port (com1) but after 'Reconnect' button there is no connection.

With Terminal SW HTerm it's no problem.

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 09:55:30 am
HTerm screenshot attached
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on March 03, 2021, 10:08:41 am
The TestController SW does not connect to the KP184.
I've made the change in the Kunkin.txt file and set the com Port (com1) but after 'Reconnect' button there is no connection.

Try start TC with the testControllerDebug.bat file, then it will show what is going on.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 10:24:56 am
See screenshot attached.

If I send the command 01 03 00 01 00 02 95 CB via HTerm, the KP184 does not respond.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 10:48:48 am
Somewhere I've found another version request command: 01 03 00 01 00 04 15 C9
This works.
Response is: 01 03 04 00 00 07 30 F8 17
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on March 03, 2021, 10:57:09 am
If I send the command 01 03 00 01 00 02 95 CB via HTerm, the KP184 does not respond.

This means Kunkin do not use the standard modbus protocol, I have added another Kunkin protocol that only swap checksum bytes compare to the old Kunkin protocol.
To test it:
Download: http://lygte-info.dk/pic/Projects/TestController/TestController.jar (http://lygte-info.dk/pic/Projects/TestController/TestController.jar)
Use it to replace the current .jar file
Modify "Kunkin KP184.txt" to "#subDriver Kunkinx", everything else must be the same.
Start testcontroller, initial message must be: 01 03 00 01 00 04 C9 15
Note: It may take some time before the download will download the modified version, it is V1.57 in the About dialog.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 11:15:43 am
Command is sent correct, but obviously the reply is not read correct.
In HTerm it still works.

I have to leave now. Will be back in the evening...
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 11:17:04 am
picture from console attached

BTW: How can I attach more than one picture to a post?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 03, 2021, 11:50:27 am
New KP184 Software Version 1.0.16.0:

Changes:

1. Added a new configuration setting for CRC LSB First - New 2020 FW and above.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

I have no FW 2020 Kunkin KP184 hardware to test this right now. If someone can have a go and report it would be explendid.

It's strange for the manufacturer to be messing with these raw settings and not updating the user manual...
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on March 03, 2021, 01:25:33 pm
Command is sent correct, but obviously the reply is not read correct.
In HTerm it still works.

You can skip the initial message by adding a semicolon ; before the "#verifyDevice 1840 model?" line or remove the line.
All the null pointer stuff is because the answer is missing and can be ignored.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 05:00:51 pm
@interflexo
Your app works with CRC LSB First checked in the settings menu!
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 03, 2021, 05:02:39 pm
@HKJ
Still problems with receive timeout, if I comment out the version check
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on March 03, 2021, 07:09:51 pm
@HKJ
Still problems with receive timeout, if I comment out the version check

I wonder what is wrong, but it is probably best to move this testing out of this thread and to email or PM. Anybody that what to continue testing on this new version of the load can email/PM me.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 03, 2021, 07:55:10 pm
@interflexo
Your app works with CRC LSB First checked in the settings menu!
@RhdZ
Many thanks for getting to the bottom of this subject regarding Kunkin firmware 2020 and ModBus RS232 interface.
Pretty weird stuff.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: snoozer on March 03, 2021, 08:20:02 pm
Hello,

super job on this one. Mine appears to work now with the GUI from interflexo. I remember further up in the topic was a CLI tool as well, cant find it now. Anybody got that to work as well ?

Thank You!
Jan P.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: aristarchus on March 04, 2021, 12:39:23 am
I think, I've found the solution to the problem:
The documentation about the serial commands in the manual is wrong!
The checksum has to be sent LSByte first (not MSByte first as written in the manual and shown in the examples).
..

Great job done there, congrats @RhdZ for solving this!


It's strange for the manufacturer to be messing with these raw settings and not updating the user manual...

Indeed, although the device is a favorite of mine, the best value for money, it is evident that the company lacks professionalism in that regard.

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: RhdZ on March 04, 2021, 10:15:16 am
Great job done there, congrats @RhdZ for solving this!

Thank you!
Some more of my few hairs are grey now  :)

To come back to the original topic:
I can control the KP184 also via a USB to RS232 cable with Profilic chip (Windows 7).
I bought this years ago and don't know the brand.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: ferencvarga46 on March 05, 2021, 09:46:51 pm
Grat for the solution!
I have the same issue.
I have received the equipment 3week ago and work fine but today I need to use the application of the equipment.
I have installed the visa based software but no reply.
The version is ver04 and fw is 202007.

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: ferencvarga46 on March 05, 2021, 09:52:11 pm
Tomorrow morning I will test Interflexos new app.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: ferencvarga46 on March 06, 2021, 11:58:00 am
Wowww!
It worked immediately, actually the documentation was in the box is dated to 2017.....
I also develop a similar DC load but with higher limits, I am sure it is practical to make the interface to reply to the same vectors as kunkin do.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: ferencvarga46 on March 10, 2021, 11:07:40 pm
After doing some test I found that on my old laptop with win7 works more stable than on our workshop PC with win10.
On win10 communicate only for approx 3-4 sec and communication is lost.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: aristarchus on March 11, 2021, 09:36:02 am
After doing some test I found that on my old laptop with win7 works more stable than on our workshop PC with win10.
On win10 communicate only for approx 3-4 sec and communication is lost.

Well, here in use are only W10 and so far everything works ok.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 12, 2021, 10:41:54 pm
New KP184 Software Version 1.0.17.0:

Changes:

1. Current and power manual entry values limits (20A 200W) are checked for the KP182 MOD model, they are half the KP184 model (40A 400W).

2. A new dynamic CYC test mode allows the user to program a custom variable CC load profile of unlimited steps, ramps and repetitions.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)

Page 19 for the new CYC test mode.

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 13, 2021, 04:00:03 pm
New KP184 Software Version 1.0.18.0:

Changes:

1. Made some corrections to the new CYC test mode current ramp profiles.

2. Added a new "Clear Log" to the Log context menu to help better inspect the new CYC test mode results.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 15, 2021, 07:02:27 pm
There were some questions about the new CYC mode:

First establish the serial connection.

Toggle the test mode indicator to access the special test modes GEN / CVL /
CYC. CYC unlocks the Cycle Tab

In the Cycle tab you can write lines as in a text programming language.

For example:

0 5 3
5 1
0 1
5 1
5 0 3

Will result in the following load programmed profile:

Ramp from 0A to 5A in 3 seconds

Hold 5A during 1 second

Turn Load OFF (0A) during 1 second

Turn Load ON (5A) during 1 second

Ramp from 5A to 0A in 3 seconds.

You can repeat the programmed profile any number of times or just indefinitely (use the Load Switch icon to stop at any time).

After writing the profile instructions just press the Load Switch icon, the load will stop automatically at the end.

Before pressing the Load Switch icon you switch to the "Log" tab to watch the log lines in real time an inspect how Kunkin is being commanded.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: lnxpro on March 31, 2021, 02:42:08 am
Anyway to resize the window to fit the text?
The scaling is at 100%.
Also how can I attach 2 KP184's to same software? If I open the software again it would try to use the same com port as the first one. If I change the com port, it saves the latest one.
Anyway to have 2 separate instances of the software running connecting to 2 different serial ports, one with its own com port?
Thanks :)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 31, 2021, 03:43:37 pm
lnxpro thanks for your input.

Version 1.0.18.0 and below allows multiple application instances at the same time on different serial ports. You just have to assign the correct COM port after application startup. They all write the selected COM port on the same file to act as default assigned COM port on the next application startup. The application uses the COM port the config dialog shows you and not what is written on the disk configuration file, this is just a startup default value.

New KP184 Software Version 1.0.19.0:

Changes:

1. Battery capacity LCD display always shows 5 significant digits, 3 decimal places until 99,999Ah and  2 decimal places above that value.

2. You can run as many instances of the application as you want and configure each one for a different serial port. Only the first application instance will save it's default configuration on disk.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

Please let me know if this works for you.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: lnxpro on March 31, 2021, 04:51:39 pm
1.0.19.0 fails to open (running as admin)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: lnxpro on March 31, 2021, 08:29:33 pm
One other minor annoyance is the numbers shifting to the right whenever a number 1 digit is displayed. Anyway to move the default number 1 digit to the right and keep the blank spaces on the left to avoid this shifting left and right?
attached a video to demonstrate
https://youtu.be/xaTE3wMz8E0
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 01, 2021, 08:20:01 am
Sorry about that.

The font spacing issue you refer to is related to the LCD font in use being Proportional and not Monospaced. None of this can be fixed with some code lines. I will look into LCD Monospaced fonts candidates.

New KP184 Software Version 1.0.20.0:

Changes:

1. Fixed the Version 1.0.19.0 startup problem

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: lnxpro on April 02, 2021, 01:23:40 am
version 1.0.20.0 works :) fits the text on the window too.
thanks.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 03, 2021, 12:19:42 pm
New KP184 Software Version 1.0.21.0:

Changes:

1. LCD Panel uses a new 7 segment display monospaced font

Pros: String does not shift around when '1' char is used
Cons: Decimal separator takes as much space as an '8''

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Treed on April 10, 2021, 08:23:59 pm
Wow, I haven't looked at this thread for a while, assuming the forum would notify me of new posts and now I come back and everything is solved! Great job RhdZ!
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: adso85swe on April 13, 2021, 08:23:31 am
I have been looking around for a good value electronic load and being able to log data on a computer has been an important criteria. More or less a showstopper if no software exists.
Reading about your software development Interflexo is really making me consider getting the Kunkin KP184. Amazing work, such a nice contribution to the community. If I end up getting the elecronic load, I will most definitely go through the registration of your software.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on April 13, 2021, 08:42:36 am
I have been looking around for a good value electronic load and being able to log data on a computer has been an important criteria. More or less a showstopper if no software exists.
Reading about your software development Interflexo is really making me consider getting the Kunkin KP184. Amazing work, such a nice contribution to the community. If I end up getting the elecronic load, I will most definitely go through the registration of your software.

If you only want data from the load on your computer this software is good, but if you want more devices connected check: https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/ (https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/), it supports many different loads and other devices.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: adso85swe on April 13, 2021, 09:41:12 am
Quote
If you only want data from the load on your computer this software is good, but if you want more devices connected check: https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/, (https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/,) it supports many different loads and other devices.

Ok, very cool  8). Since I own a Uni-T UT61D multimeter and a Riden RD6006 power supply this software would also make a lot of sense to me. So many good option out there. Amazing forum really :)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 14, 2021, 09:18:22 am
I have been looking around for a good value electronic load and being able to log data on a computer has been an important criteria. More or less a showstopper if no software exists.
Reading about your software development Interflexo is really making me consider getting the Kunkin KP184. Amazing work, such a nice contribution to the community. If I end up getting the elecronic load, I will most definitely go through the registration of your software.
Thanks. Kunkin KP184 panel operation and configuration menus are a bit cumbersome, the software allows a clear and straightforward operation with many extra features.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: jasom on April 17, 2021, 10:38:06 am
 interflexo: Hello, I got a problem with connect from Your app. Connection from modbus is without problem but in windows app I has only some like this
17/04/21 12:37:22 Connected to COM port
17/04/21 12:37:27 Closed COM port
17/04/21 12:37:27 KP184 not found

But on same port I can connect from modbus. Can You help me?

Thank You

Edit: Ok, with decrease baud speed its working now.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 19, 2021, 06:14:01 pm
I am glad you worked it out Jasom.

You must always configure (baudrate and address) the software to match the operating panel menus configuration from your Kunkin.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: F64098 on April 19, 2021, 08:59:08 pm
I also had problems with higher baudrates.
Even when using a short cable and the com-port of the mainboard.

Best regards

Frank
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 23, 2021, 11:28:07 am
New KP184 Software Version 1.0.22.0:

Changes:

1. Enhanced battery DCIR test. The first step may be configured to 0A to measure the battery internal resistance from an open circuit voltage (OCV) state. The step pulse time is configurable to meet specific user needs. Thanks adso85swe for the insight regarding DCIR test.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Updated User Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 27, 2021, 09:34:49 am
New KP184 Software Version 1.0.23.0:

Changes:

1. Enhanced battery DCIR test. Both pulse step times are now configurable. These tests can now meet IEC 62620 standards for Li-ion batteries and IEC 61951-2 standards for Ni-MH batteries.
2. Application load time was cut to one third.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Updated User Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: lnxpro on April 27, 2021, 05:40:21 pm
1.0.23.0 gives me an error on launch that it can't access the ini file.
happens with admin rights (run as admin) or normal without admin rights
[attachimg=1]
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 27, 2021, 07:52:32 pm
lnxpro I was not able to reproduce the same error on Win 10. You' ve got to help me here.
What is your OS version?
Is it a fresh installation or you are upgrading from a previous version? In the case of an upgrade, what was the last version?
I assume the configuration file is not found on the referenced folder. Have you confirmed it?
Anyone else found this problem?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: lnxpro on April 28, 2021, 02:29:57 am
it was an upgrade from 1.0.21.0
i did confirm the file is there.
this on windows 10 LTSC version 1809
I will try a clean install and see if the issue persists.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: lnxpro on April 28, 2021, 03:29:09 am
tried a clean install of 1.0.23.0
same thing. the ini file is in the referenced folder (gets created during install), I can open it with notepad, etc.
I then installed version 1.0.21.0 back on top of the version .23 and version .21 works fine.
I also tried version .22 and it works fine. if I go to .23, it gives me the same error so for the time being I am back on version .22
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: adso85swe on April 28, 2021, 09:47:05 pm
tried a clean install of 1.0.23.0
same thing. the ini file is in the referenced folder (gets created during install), I can open it with notepad, etc.
I then installed version 1.0.21.0 back on top of the version .23 and version .21 works fine.
I also tried version .22 and it works fine. if I go to .23, it gives me the same error so for the time being I am back on version .22

Strange. I am running v.23 without any startup issues at all  ???
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 28, 2021, 11:32:21 pm
Dear lnxpro the issues regarding file names I think they are related to the new distribution format [multiple files (fast app load time)] vs [single exe file (slow app load time due to lots of unpacking at startup)] because there were no code changes related to these mishaps.

Please uninstall and try the version below, it is the same code on the previous working single exe file distribution format.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

Please let me know how it works for you.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: lnxpro on April 29, 2021, 02:26:09 am
same issue with the onefile. says it fails to process the .ini file. this was on a clean install and the file gets created by the installer.
once again, version .22 works fine.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 29, 2021, 09:31:19 am
New KP184 Software Version 1.0.24.0:

Changes:

1. Back to one exe file distribution. Unpacked folder distribution causes problems accessing the .ini file. This will be sorted out later.

2. When a new configuration key was added to an older .ini file, example "inres_pulse_time2" from version 22 to 23 the error message "Can't access the .ini" was not adequate, there is a new popup message stating that one or more configuration keys were added.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

lnxpro this should take care of your issues.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: lnxpro on April 29, 2021, 04:29:05 pm
awesome. yes. version .24 works :)
thanks
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: PaWill68 on May 12, 2021, 08:19:07 am
Hello interflexo. I know you have completely figured out the Kunkin protocol. I study it too. I cannot understand how the capacity value is converted. Can you help me understand this?

I get the following data from KunkinSW
01 03 1F 03 05 00 0D C1 00 07 D0 00 07 D0 00 FA 00 FA 00 07 D0 00 00 00 00 0A F0 00 09 C4 00 00 22 A3 C8 A6 1B
Where
00 09 C4 00 = ~ 0.178Ah
00 22 A3 C8 = ~ 0.63Wh
How are these values obtained? Normal HEX> DEC doesn't work. (I tried in windows calculator)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on May 12, 2021, 07:12:41 pm
The units are mAs and mWs.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on June 06, 2021, 10:43:02 am
New KP184 Software Version 1.0.25.0:

Changes:

1. An optional Beep on load ON/OFF was added to the configuration page. Beeps are annoying but on remote operation it is nice to receive a notification when battery discharge is over.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)


Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: TymerTopCat on June 12, 2021, 12:34:08 pm
The version: 1.0.25.0. Does not seem to work for me. I have a Ver:05 2020/12 Board.

However, 1.0.25.0 does work with my older 1801 Kunkin.

Additionally I am able to get the 2020 Kunkin to respond using My own C# Software and using HTerm by changing the CRC byte order.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: aristarchus on June 12, 2021, 12:57:26 pm
The version: 1.0.25.0. Does not seem to work for me. I have a Ver:05 2020/12 Board.

However, 1.0.25.0 does work with my older 1801 Kunkin.

Additionally I am able to get the 2020 Kunkin to respond using My own C# Software and using HTerm by changing the CRC byte order.


https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3492100/#msg3492100 (https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3492100/#msg3492100)

https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3492512/#msg3492512 (https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg3492512/#msg3492512)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on July 05, 2021, 09:51:00 am
New KP184 Software Version 1.0.26.0:

Changes:

1. Several Python modules were updated.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: MeterReader on August 25, 2021, 06:32:32 pm
I appreciate the seemingly straight-forward interface. Unfortunately, I can't get it working with my KP184 V4. Tried the version you just linked, one from your very short youtube video, and another from somewhere else. I do have it successfully working with another load controller. I'm using a CH340-based USB to serial adapter.

Got it going after a restart!
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: cskilbeck on September 29, 2021, 05:21:15 pm
It's here https://github.com/cskilbeck/modbus (https://github.com/cskilbeck/modbus) but I haven't touched it for ages and it will surely not work with the reversed LSB firmware, someone would need to add a command line switch to enable that
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on October 28, 2021, 11:24:45 am
New KP184 Software Version 1.0.27.0:

Changes:

1. Overcomes a KP184 internal firmware issue that periodically (each 7.53h) resets the Wh value during very long battery discharge tests. The screen shows the internal Kunkin Wh value but the saved .csv file shows the correct calculated value by the software. The Kunkin internal calculations for the Ah values are all right. I thank all the users that perform comprehensive tests and report these issues.

2. Several Python modules were updated.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: voltsandjolts on October 28, 2021, 12:07:05 pm
Are you using tkinter for this app's gui?
How do you create the exe?
Is the source code available somewhere?
I'm just interested in Python gui programming and interested to see how you've done it.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on October 28, 2021, 01:23:47 pm
Hi voltsandjolts. This application is programmed in Python 3, GUI is coded using PySimpleGUI module (wrapper for tkinter). Graphics produced with matplotlib module. The .exe file is created with pyInstaller. The source code is not available at this point.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 02, 2021, 12:56:59 pm
New KP184 Software Version 1.0.28.0:

Changes:

1. On the non static cycle (CYC) load mode the user load profile definition text for line comment char was changed from '#' to '//'. The .ini read file parsing code was deleting multiple line comments.

2. Several GUI tooltips were corrected.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 08, 2021, 12:59:52 pm
New enhanced User Manual for KP184 ModBus Software:


User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)


Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Ziggo on November 10, 2021, 06:35:11 am
Does the software support multiple units on a single RS485 bus? I have 3 now but really need at least 3 more to get enough load for some tests.

The units themselves claim to support a "master / slave" mode for multiple units but I haven't tried it yet (since I can barely use them at this point because the rotary encoders are so flaky).
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 10, 2021, 08:09:07 pm
From the user Kunkin KP184 manual:
"Set up online mode. KP182 load provides a multimachine online mode. The multimachine is connected through 485 communication wire. There is one master, and the other devices are slaves. When setting up parameter on the host panel and operating ON/OFF, these operations are sent to the slave through communication port and the slave will execute the same operation."

The OnLine Host/Slave mode is just a way of blindly broadcasting the Host panel key strokes to all the Slaves in RS-485 network. The manufacturer intent here was to be able to perform the same test on several different KP184 units at the same time. When this OnLine mode in engaged I think there is no feedback from the slave units or the Master for that matter (I am guessing here). So there is no way of making remote data acquisition on this mode.

This multi device mode would have to be emulated with the normal ModBus comms. The software commands would have to be broadcasted for each previously configured slave addresses, and each slave would be pooled in succession to retrieved it's data. The sample period would take a hit. The KP184 firmware is a bit slow to respond. A minimum practical value of 250ms is standard for one unit. Using 4 units in a RS485 network the minimum sample period would be 1 second. The savings here would be an USB to serial adapter per KP184.

The KP184 ModBus software as is can't do what you want via RS-485. You can however launch unlimited instances of the software on the PC communicating simultaneously with USB to serial adapters with different KP184 units which are wired in parallel with the same load and control (no need to touch the operating panel) and record the data acquisition of each instance. This method would leave the minimum sample period unharmed.

If each single unit works well via RS-485 with the software I could change the software to accommodate this feature if there is a broad interest about it. However this seems to me to be a niche within a niche.

The GUI interface would consume most of the work and comms would be the easy part, i have the same threaded  low level code working with 30 simultaneous serial channels within the same application.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on November 10, 2021, 08:52:07 pm
With TestController ( https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/ (https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/) ) you can run any number (and brands) of loads in parallel as long as each has its own connection to the computer (i.e. not 485).
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 10, 2021, 10:34:05 pm
Ziggo has issues with the rotary encoders and needs KP184 full remote panel control. I mensioned 6 loads because Ziggo needs 3 + 3 electronic loads.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on November 11, 2021, 06:34:26 am
Ziggo has issues with the rotary encoders and needs KP184 full remote panel control. I mensioned 6 loads because Ziggo needs 3 + 3 electronic loads.

In TestController you will get a control panel like this for each load:

(http://lygte-info.dk/pic/Projects/TestController/DeviceExamples/Loads/KP184.png)

There are many different way to see the values from the load and it is also possible to define more limited control panels.
If the same test needs to be repeated, it is fairly easy to generate a script for it.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 17, 2021, 06:13:25 pm
New KP184 Modbus Software Version 1.0.29.0:

Changes:

1. New solar panel test mode (SOL) added. A user defined CV sweep mode records de solar panel characteristic I-V curve and MPP data for device diagnostic or manufacturer specifications comparison.

2. The data acquisition report button now handles both report types (battery capacity discharge test and solar panel test) according to the last test mode.

3. Correction on the non static programmable profile cycle (CYC) load mode startup.

4. Some settings were not available on the configuration dialog window.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Updated User Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Solar Panel Test Report Example (https://www.interflexo.com//kp184//Solar_Report.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 19, 2021, 03:12:41 pm
New KP184 Modbus Software Version 1.0.30.0:

Changes:

1. Both types of reports (battery capacity discharge test and solar panel test) now share the same PDF generation engine and have a consistent layout. Got rid of the html conversion stuff.

2. Correction on the non static cycle (CYC) load mode. Now when the load profile programming code is empty the load does not turn on and an appropriate message is displayed.

3. On the solar panel test mode (SOL) plot graph curves the MPP point is now highlighted in red.

4. On the data acquisition save .csv or .png plot graph files a file explorer window is opened with the selected file.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 27, 2021, 09:08:27 am
A couple of videos explaining operation with KP184 Modbus Software:

Battery capacity testing with KP184 software video (https://www.youtube.com/watch?v=TLTihE_USI4)

Solar panel testing with KP184 software video (https://www.youtube.com/watch?v=ts34FNSzCQs)

Battery internal resistance testing with KP184 software video (https://www.youtube.com/watch?v=fQ9NLNYO9mc)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on December 04, 2021, 11:52:05 pm
New KP184 Modbus Software Version 1.0.31.0:

Changes:

1. Some python modules updated.

2. Resolved some issues with the tests PDF reports.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

To install as Administrator:
1. Open File Explorer.
2. Navigate to the folder with the setup executable file.
3. Select the setup executable file.
4. Use the right mouse button to show the file context menu.
5. Click the Run as administrator option.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: dophuc on December 09, 2021, 03:42:58 am
Hello everyone,

Sorry if my English is not good
I'm testing new KP184 software from Kunkin for KP184 2020.
Now you can use the DB9 to DB9 serial cable that comes with the KP184 connected via a physical Com port or some inexpensive USB - RS232 cable such as a $1 USB-RS232 serial cable using the CH340 chipset ; 2$ 6 in 1 adapter using chipset CP2102... New software and cable work well on Win 10, Win 11 (driver update)
(https://sv6.anhsieuviet.com/2021/12/09/20211208_015658.jpg)
(https://sv6.anhsieuviet.com/2021/12/09/20211208_013856.jpg)
(https://sv6.anhsieuviet.com/2021/12/09/20211208_013723.jpg)
(https://sv6.anhsieuviet.com/2021/12/09/20211208_015050.jpg)

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on December 09, 2021, 08:41:30 am
With KP184 Modbus software and from the user manual page 9:

Check the CRC LSB First option if you experience difficulties establishing the
serial communication with KP184 later models (Firmware 2020 and up – can
be checked through the Kunkin screen brief flash at startup)


(https://www.interflexo.com//kp184//Config CRC LSB First.jpg)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on December 10, 2021, 11:41:48 am
New KP184 Modbus Software Version 1.0.32.0:

Changes:

1. When having trouble to connect both CRC LSB First flag states are tested for the new Kunkin 2020 Fimware and above.

2. Resolved some issues with the modded KP182 identification on the PDF reports.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: dophuc on December 15, 2021, 12:00:28 pm
Hi,

For people to have more choices of software. I sent Kunkin's software for KP184 (2020).
I have tested with KP184 version 2020 installed on Windows 11, all working fine.
Please read the note before installing the software.
Hope everyone will be satisfied when using this software.
Link download:
https://mega.nz/file/6kdCkDyJ#UonyK7a-SpXjgB_XiowcR9-LPijSO2mTcB2TciwUW6Q (https://mega.nz/file/6kdCkDyJ#UonyK7a-SpXjgB_XiowcR9-LPijSO2mTcB2TciwUW6Q)
I took some pictures of my KP184
(https://sv6.anhsieuviet.com/2021/12/15/20211210_164148.jpg)
(https://sv6.anhsieuviet.com/2021/12/15/20211211_121256.jpg)
(https://sv6.anhsieuviet.com/2021/12/13/Screenshot_20211211-202316_Thermal-Mobile.jpg)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on December 28, 2021, 10:35:08 am
New KP184 Modbus Software Version 1.0.33.0:

Changes:

1. Several python modules were updated for extended compatibility.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on December 30, 2021, 03:44:31 pm
New KP184 Modbus Software Version 1.0.34.0:

Changes:

1. Application now checks for updates at startup.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on January 04, 2022, 11:42:23 pm
New KP184 Modbus Software Version 1.0.35.0:

Changes:

1. Application load time was cut in half.

2. Software updates are automatically downloaded and installed upon user confirmation.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on February 21, 2022, 02:18:37 pm
I wonder if some already tested this KP184E with the Modbus software.

https://www.alibaba.com/product-detail/KP184E-150V-40A-400W-LCD-Display_1600272552716.html (https://www.alibaba.com/product-detail/KP184E-150V-40A-400W-LCD-Display_1600272552716.html)

Same specs and a 320 x 240 TFT color screen single page UI plus Modbus + SCPI on RS232/RS485.

The add states Reverse polarity protection. I don't know if this a typo or substantial changes were made to the PCB power circuitry.
Title: KP184E -- Was: Serial to usb on Kunkin KP184 electronic load
Post by: rhandel@wowway.biz on March 11, 2022, 03:43:57 pm
@interflexo,

I saw one test on YouTube, https://www.youtube.com/watch?v=xTfxUIw3fy4, (https://www.youtube.com/watch?v=xTfxUIw3fy4,) that panned it.

I have the KP184C, and I am using your software to run tests on power supplies and it works well.  I got the Keyspan FTDI adapter and it worked out of the box.  Thank you for all of you efforts.  Keep up the good work.  I am planning on registering it ASAP.

RAH
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: dirtcooker on March 18, 2022, 02:59:17 pm
@interflexo,

Nice work. You put a lot into the documentation. have you got a version that runs on ubuntu?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: HKJ on March 18, 2022, 03:38:42 pm
@interflexo,

Nice work. You put a lot into the documentation. have you got a version that runs on ubuntu?

If not, you can use TestController: https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/ (https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on June 20, 2022, 08:33:26 pm
New KP184 Modbus Software Version 1.0.36.0:

Changes:

1. User configurable cyclic solar panel test option added.

2. Some support python modules were updated.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_51_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: armandine2 on June 21, 2022, 07:05:15 am
an interface mod to my KP182 would be a good upgrade - are there any online pointers to how to do this?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on June 22, 2022, 11:30:13 am
I just don't remember where I read about this. But it's just a matter of installing (soldering) the missing PCB U23 IC > ADUM1201 (dual-channel digital isolator) + 2 RX/TX resistors + hardwired USB/Serial compatible converter. The KP182 firmware does not need any changes. Doesn't seem complicated.

You have a lot of KP184 PCB photos available where you can take the rx/tx resistors values from.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on June 27, 2022, 03:54:41 pm
New KP184 Modbus Software Version 1.0.37.0:

Changes:

1. Cycle mode continuous operation not restarting correction.

2. Corrected PDF plot graph export missing module.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on August 02, 2022, 10:43:31 am
New KP184 Modbus Software Version 1.0.38.0:

Changes:

1. __DUT_BRAND__ , __DUT_MODEL__ and __DUT_SN__ strings can be used on configured file names for csv data, image, PDF and report files. These substrings will be replaced during runtime with the Rep tab DUT Report Identification Details.

2. Record time is paused during paused data recording.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_51_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on September 07, 2022, 11:10:25 pm
New KP184 Modbus Software Version 1.0.39.0:

Changes:

1. Application is now a resizable grab anywhere window.

2. The application last window size and screen position are saved.

3. The screen plot graph aspect ratio is also used on the PDF reports. Info on the Report tab helps the user to get optimized and larger plot graphs on the PDF reports.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on September 22, 2022, 11:15:49 am
New KP184 Modbus Software Version 1.0.40.0:

Changes:

1. Plot graph x axis now shows hours, minutes or seconds units depending on test duration.

2. PDF Report button was not enabled after very long (> 8h) battery capacity discharge test completion.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_51_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on September 23, 2022, 03:39:57 pm
New KP184 Modbus Software Version 1.0.41.0:

Changes:

1. Plot graph grid lines added for x and left y axis.

2. Capacity curve plot graph may be suppressed with right click context menu options on "Bat" tab during setup or test, voltage curve plot graph display only.

3. Ah / Wh data now has 6 decimal places. Now small current battery capacity discharge plot graphs look better.

4. Application exit confirmation dialog added.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on September 26, 2022, 05:56:11 am
New KP184 Modbus Software Version 1.0.42.0:

Changes:

1. On low amperage battery capacity tests eliminated the race condition between Kunkin and software end voltage reached.

2. On battery capacity test the cable disconnect condition is handled and logged.

3. Long .csv data file creation can now be interrupted.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on September 29, 2022, 08:53:16 am
New KP184 Modbus Software Version 1.0.47.0:

Hot feature: Automatic battery internal resistance vs SOC data calculation

Changes:

1. During battery capacity test the data acquisition pause button will also stop the load current. Ex: for fixing some cable issue. Hitting the pause button again will make the test resume (plot graph + load current). The open circuit voltage spike will appear on the plot graph.

2. 10 different measurements of the battery internal resistance at regular SOC intervals can optionally be acquired during the battery capacity discharge test. Two new enable/disable options were added to the right click context menu options on the "Bat" tab. The results will appear on the PDF report and on the “Log” tab. This setting is stored on the configuration defaults .ini file.

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on October 01, 2022, 09:18:08 pm
New KP184 Modbus Software Version 1.0.48.0:

Changes:

1. Added user comments to the battery capacity test and solar panel test PDF reports.

2. Added a selection choice of [4, 6, 8, 10, 12] number of periodic internal resistance tests performed during the battery capacity discharge test to the “Bat” tab context menu. The selection was added to configuration .ini file.

3. Added pulse setup data to the batery capacity report when periodic internal resistance tests are performed.

4. Adjusted default and check values of solar panel test start voltage parameter. KP184 minimum load voltage is about 1V.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on October 02, 2022, 10:17:56 pm
New KP184 Modbus Software Version 1.0.49.0:

Changes:

1. Added KP184 internal bat_end_volt parameter automatic manipulation to allow periodic internal resistance test higher current pulses than the current discharge set value on the battery capacity test. Fast pulses won’t trip a premature test end voltage condition.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on October 04, 2022, 06:59:19 am
New KP184 Modbus Software Version 1.0.50.0:

Changes:

1. Added interlocks to avoid changing the “test end voltage” and the “set current” parameters during the battery capacity discharge test if the periodic internal resistance tests are enabled. If the periodic internal resistance tests are not selected these parameters can be adjusted during the battery capacity discharge test.

2. Added an image to the “Bat” tab to remember the user about the mouse right click menu feature.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on October 05, 2022, 08:23:36 am

Battery capacity discharge test PDF report with IR data example (https://www.interflexo.com//kp184//BatCapIRTest.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: fraggl on February 15, 2023, 06:29:28 pm
Hello, i'm new to this and i just want to connect my KP184 to my computer, i've tried with a simple RS232 to usb adaptator but it doesn't work.
I juste bought a CP2102 6pin which i didn't received yet. I that what i need ? Which pins should i connect ?
I've tried to install the "setup_kp184_10500" software on window 7 but it doesn't work, only on my windows 11 64 bit computer.
I'm sorry but i have a lot of trouble to understand what to do, i don't care about giving you 30 € but i just want it to work !

Thank you !
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 06, 2023, 03:23:34 pm
Hi. You only need 3 pins TX, RX and GND. When the USB to Serial adapter does not work it has to do with the OS driver compatibility not the application.
If the adapter works well with any text terminal application it should serve your purpose.
This thread contains several adapter suggestions Digitus DA-70156 USB 2.0 to Serial (FTDI/FT232RL) from ASSMANN Electronic GmbH is one of them, just avoid the Prolific and WCH chipset cheap stuff.
I don't have feedback on the CP2102 but Silabs has a good reputation.
The application is Python 3.8 based so it should work from Vista, 7, 8, 10 to Win 11 (32 or 64 bit).
Microsoft security updates and tech support for Win 7 ended on 14 Jan 2020. Sometimes we have to move forward.
Version 1.0.51.0 is the last version for Vista. Later releases will be Python 3.11 based and will be supported from Win 8 onward.
Please email me and I can help you with your system diagnostic.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 06, 2023, 03:27:37 pm
New KP184 Modbus Software Version 1.0.51.0:

Changes:

1. Solved the update download failure issue on non standard “Downloads” system folder name.

2. Improved serial error handling and logging on communication protocol.

3. Added serial response timeout to the KP184 Modbus protocol

4. Added capacity discharge test termination reason to the PDF report. Reasons: LVC, user abort, eload abort, current interruption or max_time reached.

5. Some python modules were updated.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 23, 2023, 08:44:56 pm
New KP184 Modbus Software Version 1.0.52.0:

Changes:

1. Corrected issue with solar panel test that was blocking data acquisition.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 31, 2023, 12:28:11 pm
New KP184 Modbus Software Version 1.0.53.0:

Changes:

1. Several Python modules were updated.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 13, 2023, 05:25:08 pm
New KP184 Modbus Software Version 1.0.54.0:

Changes:

1. Downgraded python numpy module version to allow application startup on Windows 7 - 32 bit systems.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

This will be probably the last Windows 7 compatible version coded with Python 3.8 and pyinstaller. Maintaining updated Python modules with Win 7 compatibility is a bit overwhelming now.

Many users have lab equipment stuck with Win 7 software and all efforts were made to maintain the compatibility with this OS until this date. Microsoft ended standard technical support and updates on Jan 2020 for Win 7.

From Python 3.9 and up Window 8 or newer is required. Let's advance with new software features and understanding that Win 7 or older won't be supported.

I thank in advance for your understanding.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: rtlflat on May 26, 2023, 03:56:47 am
That is unfortunate. It's the fourth unit that I know of that exhibits that same behavior.

The only parameter that could cause problems would be:

On Kunkin: Multi-machine online mode: Offline/Slave/Host -> Use Offline

The tests you made were thorough enough to me.

Nevertheless, two tests can be made:

During the connection process the software asks Kunkin KP184 for the content of the memory address 0x001 which holds the equipment model number (0x0730 = 1840), Kunkin response should be immediate, the software will wait for 5 seconds. This response is not being received, your logs should show the COM port is being closed after 5 seconds.

Loopback test (tests the PC serial adapter):

Please first debug if the 2 USB serial adapters are working properly. Check your USB to Serial Adapter operation with a loopback connection. Please shunt pins 2 and 3 on your DB9 serial port side and connect your adapter only to your PC USB port. Install some terminal software (Ex: CoolTerm) on Windows 10 (Hyperterminal is no longer part of Windows), run the program, configure to 9600,N81 no flow control, turn off echo, connect, press some test keys and check if you receive the characters back to the screen. This will prove to you that your adapter and drivers are at least working.

Once this works you should try the connection with Kunkin KP184.

Don't forget the DB9 serial cable (null modem cable) should cross pins 2 and 3 like this:

2 TXD -> 3 RXD

3 RXD -> 2 TXD

5 GND -> 5 GND

Baudrate: Start with a conservative 9600 to debug de serial connection, then you can use 115200 with a short cable for lower latency.

On Kunkin: Multi-machine online mode: Offline/Slave/Host -> Use Offline

In case anybody else is having trouble connecting using the recommended Digitus adapter plus null modem cable... Try plugging the adapter directly into the Kunkin without the cable.

I checked the pinout of the cable with meter and confirmed pins 2-3 were crossed and cable was not broken, and did loopback test described above, and everything seemed ok, I could see the activity on both RX and TX, but kunkin did not light up the LED or respond in software.

As soon as I connected adapter directly to kunkin without modem cable (adapter came with 12" usb M-F extension cable), I saw LED light up as i pressed keys in coolterm, and software was finally able to connect.

Since the cable didn't seem damaged should I assume its related to cable length (10ft) over likely ~30awg wire? Here is link for the cable I bought.
https://www.amazon.com/dp/B08T997CNS?ref=ppx_yo2ov_dt_b_product_details&th=1 (https://www.amazon.com/dp/B08T997CNS?ref=ppx_yo2ov_dt_b_product_details&th=1)

Feel kinda silly since I had the adapter and the kunkin already and waited a week for the cable to arrive to try..... :palm:

Kunkin is v7 board and 2303 firmware

-JP

edit:
LOL Just noticed manufacturer name for the cable on Amazon is "‎guangzhouditedianzikejiyouxiangongsi"
Why do I feel like I'm being trolled?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Pfriemler on May 26, 2023, 11:54:50 am
Loopback works well with both straigt and crossed cables. It only checks the PC port.
Null modem cable != cable with two females on both sides.
Kunkin is stupid to use the wrong sockets.
Use a standard cable plus a gender changer instead and everything is fine.
How did you fit an serial adapter directly to the Kunkin? both are male plugs?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: rtlflat on May 26, 2023, 07:30:04 pm
I happened to have a F-F adapter. Had to remove the threaded standoffs on one side to plug it in.

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on May 27, 2023, 11:27:10 am
Please notice that Kunkin KP184 comes with a straight through (Female - Female) serial cable.
Pin connections:
2 -> 2
3 -> 3
5 -> 5
A null modem cable with crossed connections won't work.
I must trace back this old (2021) post and correct it (Done).
User wolzlu corrected this information at the time.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: rtlflat on June 06, 2023, 05:54:26 am
Thanks for clarifying this :-+ My kunkin did not come with a cable and I only saw posts mentioning null cable.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on October 04, 2023, 08:57:52 am
New KP184 Modbus Software Version 1.0.55.0:

Changes:

1. Solved issue with right mouse button battery test tab context menu update.

2. Added two new options to the battery test context menu: Elapsed Time and Time Stamp for the test results plot horizontal time axis and csv data export. Also on Data Acquisition Frame new context menu.

3. Several python modules were updated.


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: moelski on October 12, 2023, 06:14:19 pm
I got my KP184 today and of course wanted to see if it works with the control from the PC. But unfortunately, nothing.
When booting is displayed with 2303. Baud and address I have checked and adjusted. And "Onli" is in offline mode.

At the moment I use a CP210x chip with a downstream level converter. But this does not help either. The first test with a terminal program does not give any data from the device either.

Has anyone here successfully controlled a 2303 device serially (rs232)? I am really desperate. I would like to test batteries and need the appropriate evaluation on the PC - one of the reasons why I bought this sink.

I have now ordered a Digitus DA70156 USB to serial converter. This was mentioned here before. Hope so what works ...

Dominik
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: moelski on October 13, 2023, 05:02:14 am
Ok got it working ...  :scared:

For all who are coming next with the same problem ....
I think it will work with nearly any USB/Serial converter. At the moment I am using a Silabs CP210x Chip without any problem.
And you also don´t worry about any serial port settings in Windows. When you change the baud rate within your application, all is fine.

But it´s crucial to add a TTL to RS232 Levelshifter like the MAX232 to your connection. Otherwise it won´t work.
And keep in mind that the original serial cable is 2-2, 3-3, 5-5 regarding the wiring.
So in my case I had to cross the Tx, Rx lines in addition.

I will create a picture for that and upload it here - just for reference  :)

But for now I´m really happy that it is working.

Oh and forgot about the original software. Since the checksum bytes are rotated that software won´t work with new KP184 devices ... Sadly ...

Dominik
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Pfriemler on October 13, 2023, 07:19:08 am
I do not see any problems that aren't there with any serial connection (I am a bit experienced with that).
I just pulled an USB-RS232-Converter, plugged in (of course you have to control the settings, in every case), done. These adapters come with level shifters to meet the electrical specifications of a RS232. TTL is used only inside devices to connect any chips.
The only thing is that a standard cable (male-female) is only useable with an additional gender changer. With the cable delivered (female-female) it works out of the box.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on October 23, 2023, 10:34:35 am
New KP184 Modbus Software Version 1.0.56.0:

Changes:

1. Solved issue with update setup installer download


Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Breizh13 on October 29, 2023, 07:17:52 pm
@Moelski,

I've just read this thread because at the moment I have a working link with the KP184 load in modbus only. 
I haven't been able to get the RS232 serial port to work, as I think many people have. I've just figured it out by reading your post and after having made a measurement on the oscilloscope. The signals are not TTL level but pure RS232 with positive and negative signals. So we need an RS232/TTL interface before going to a TTL/USB interface.
Is this correct? Can you tell us what you've done to make it work for you?

Translated with www.DeepL.com/Translator (http://www.DeepL.com/Translator) (free version)

--
Philippe
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Pfriemler on October 29, 2023, 07:47:03 pm
It depends on which device you want to control the KP184. As I said in my post (https://www.eevblog.com/forum/testgear/serial-to-usb-on-kunkin-kp184-electronic-load/msg5110410/#msg5110410), the KP184 serial port is a full functional RS232 and works with any conventional PC COM port out of the box (only a female-female socket cable or a gender changer is needet) or a common USB-to-serial stick with DSUB9 socket.

So why the f..k people try to use USB/TTL adapter at all?  :palm:
Again:
- use the right adapter like DITIGUS DA-70156, Logilink ‎AU0002F or somehing in that style (pay attention to the chip - FTDI works best)
- check if you use the right COM port :-)
- adjust interflexo's software settings to the KP184 settings (I suggest 57600 instead of 115200 baud)

Or did I miss something?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Breizh13 on October 29, 2023, 09:09:35 pm
Quote
So why the f..k people try to use USB/TTL adapter at all?
Everyone does as he or she pleases! When you have a stock of USB/TTL interfaces, all you need is an RS232/TTL interface. There's work to be done, of course! But that's one way of doing things. As far as I'm concerned, I've just ordered an interface like the one you're talking about.
https://www.ebay.com/sch/i.html?_from=R40&_trksid=p4432023.m570.l1313&_nkw=272054422995&_sacat=0 (https://www.ebay.com/sch/i.html?_from=R40&_trksid=p4432023.m570.l1313&_nkw=272054422995&_sacat=0)
Thank you for your advice. And thanks to Interflexo for the software!  ;)

Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: Pfriemler on November 02, 2023, 10:46:26 am
New KP184 Modbus Software Version 1.0.56.0:
I still have a problem, due to my safe Defender settings. The installer insists on creating a folder called "KP184 Modbus" in the user's documents folder (which is undesirable for me, since I keep my documents folder clean and save my data elsewhere) and putting the manual there. Windows Defender does its job and reliably prevents this, which is why an installation is not possible. I have to create myself such a folder temporarily first.
Could the programme please be extended to allow me to specify my existing data folder at this point?  even better: The settings of the program are stored anywhere, why not the data folder? This would be more convenient for updates.
The first attempt to save the manual is then also prevented, but since the installer can make a second attempt here, I can allow an exception in Defender in the meantime and then it works. However, I would prefer to have the manual in the programme folder anyway, as with many other programmes.
Besides this, a great piece of software. Time to pay...
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 02, 2023, 07:02:15 pm
Next week there will be a new release (1.0.58.0) of the KP184 Modbus software.

Hot features:

1. Added button to superimpose multiple .CSV test file data on the same plot graph.

These superimposed plot graphs can be used to:
    • Compare the battery cell constant current discharge test voltage curve at various C rates.
    • Compare the battery cell constant current discharge test voltage curve at various temperatures.
    • Compare various cells constant current discharge test voltage curve from the same battery to find “weak” cells.

2. Added “Plot graph” check box to the CYC mode (programmed current profile) test. When checked the data acquisition starts and stop automatically with Load ON/OFF.

3. KP184 reports an erroneous residual current at Load OFF when the set current is below 35 mA. CYC mode was adjusted to avoid this inconvenience.

4. Added TCP Server to export real-time device data to custom third party applications. Very simple TCP Client python code on the user manual to show the user how to use it.

5. I will provide options to select the default data folders at installation time. No problems on putting the user manual on program installation folder also.

Being prepared probably for release 1.0.59.0 high power test handling by allowing to parallel any number of KP184 units each one connected to it's own USB to Serial adapter.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 10, 2023, 11:57:38 am
New KP184 Modbus Software Version 1.0.58.0:

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 12, 2023, 02:26:04 pm
New KP184 Modbus Software Version 1.0.59.0:

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)

Changes:

1. Compiled new bootloader.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on November 13, 2023, 11:15:39 am
New KP184 Modbus Software Version 1.0.60.0:

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

Changes:

1. Battery capacity test end voltage can be set as low as 0.5V for lower currents. The ability of KP184 can get as low as 0.5V depends on the
test current, the device only guarantees a minimum of 1V load voltage on the entire current range (0 to 40A).
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on December 12, 2023, 10:30:34 pm
New KP184 Modbus Software Version 1.0.62.0:

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

Changes:

1. Timer for Load ON/OFF was turning the Load ON or OFF but was not starting or stopping the data acquisition on BAT/SOL/CYC test setups. Now a standard UI toggle Load ON/OFF is emulated.

2. Corrected an issue that could display an erroneous set test current on the battery capacity discharge test report.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on February 08, 2024, 05:08:58 pm
New KP184 Modbus Software Version 1.0.63.0:

Setup KP184 Software V1.0.63.0 (https://www.interflexo.com//kp184//setup_kp184_10630.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)

Changes:

1. New option on Battery capacity discharge test right mouse button context menu to enable the use of a programmed periodic current profile defined on the Cycle tab instead of a simple constant current or constant power load types.

2. “Cycle” and “IntRes” tabs are now accessible on Battery test mode when “Cycle current profile” or “Periodic Internal Resistance Test” options are enabled.

(https://www.interflexo.com/kp184/bat_test_var_cur.png)

Programmed current profile:

// <- This indicates the line is a comment
// Current Step format: Amps Seconds
// Current Ramp format: Amps1 Amps2 Seconds
// 0 Amps for OFF period. All floats
40 10
30 10
20 10
10 10
0 10


Click to view the pdf document:

(https://www.interflexo.com/kp184/bat_test_var_cur_rep.jpg) (https://www.interflexo.com/kp184/bat_test_var_cur_rep.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on February 14, 2024, 07:13:13 pm
New KP184 Modbus Software Version 1.0.64.0:

Setup KP184 Software V1.0.64.0 (https://www.interflexo.com//kp184//setup_kp184_10640.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_64_0%20User%20Manual.pdf)

Changes:

1. New multiple battery internal resistance tests PDF report included. The PDF report handles multiple pages and provides column headings at the beginning of each page.

2. New multiple battery internal resistance test list editor window for removing unwanted tests, clear the test list, change the order of the tests inside the list and edit the DUT information (Brand, Model and SN#) of each test.

(https://www.interflexo.com/kp184/Resist Tab 64.jpg)

(https://www.interflexo.com/kp184/IntResTestList.jpg)

Click to view the pdf document:

(https://www.interflexo.com/kp184/IntResTestListRpt.jpg) (https://www.interflexo.com/kp184/IntResTestListRpt.pdf)

Click to view the pdf document:

(https://www.interflexo.com/kp184/BatCapIRTest.jpg) (https://www.interflexo.com/kp184/BatCapIRTest.pdf)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on February 16, 2024, 07:03:32 pm
New KP184 Modbus Software Version 1.0.65.0:

Setup KP184 Software V1.0.65.0 (https://www.interflexo.com//kp184//setup_kp184_10650.exe)

Changes:

1. New automatic baudrate detection scan on serial connection. If a serial connection fails the following baudrates are automatically scanned: 2400, 4800, 9600, 19200, 38400, 57600, 115200. Each baudrate value is tried with both “CRC LSB First” flag states. Serial connection details information log was improved and new popup messages were added for serial connection and disconnection.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: hubertusmantel on February 17, 2024, 07:56:06 pm
Hello interflexo,
since today installed the new software V1.0.64.0 and continuously the new V1.0.65.0 i have many crashes via serial connections /Modbus TCB.
With the old V1.0.62.0 it was possible to test an Battery Pack 52V/60Ah with 16-20 Hours and Baud Rate 115200.
Unfortunately ist the Crash from the Software now in 2-3 hour and Baud Rate 57600. My PC is an Win10 System.
Before installing the new, the software was running through the hole night.

Thanks
hubertusmantel
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on February 18, 2024, 06:26:58 pm
Thanks for the valuable information. I will check out this issue thoroughly.

For users who need to roll back to version 1.0.62.0 here is the download link:

Setup KP184 Software V1.0.62.0 (https://www.interflexo.com//kp184//setup_kp184_10620.exe)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on February 20, 2024, 10:19:13 am
Hi hubertusmantel,
Made several 10 hour battery capacity discharge tests with version 1.0.65.0 and I could not replicate the problem. The system was always rock solid.
Your post refers Modbus TCB. Do you mean you have the TCP Server active?
Can you elaborate on the crashes? Any messages? Application forced exit? Lost only serial connection? What USB to Serial Adapter are you using?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 07, 2024, 03:40:46 pm
New KP184 Modbus Software Version 1.0.66.0:

Setup KP184 Software V1.0.66.0 (https://www.interflexo.com//kp184//setup_kp184_10660.exe)

User_Manual (https://www.interflexo.com//kp184//KP184_exe%20v1_0_66_0%20User%20Manual.pdf)

Changes:

1. During the battery capacity discharge test with periodic internal resistance tests enabled, the last test (near test end voltage) sometimes races against Kunkin KP184 internal test end voltage.

2. Corrected hang on application exit during automatic baudrate detection scan on serial connection.

3. Plot graph horizontal time scale is automatically adjusted to hours, minutes or seconds on the combined multiple .CSV test file data plot option.

4. New options were added to the battery capacity discharge test and data acquisition right mouse button context menus to select from four different line styles for the independent red and blue plot graph curves.

(https://www.interflexo.com/kp184/Bat Right Click Menu 66.jpg)

(https://www.interflexo.com/kp184/Compare.png)
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: adso85swe on March 09, 2024, 07:34:35 am
New KP184 Modbus Software Version 1.0.66.0:

Is the software compatible with Windows 11? I am unsure whether or not I should upgrade my computer from 10 🤔
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on March 11, 2024, 10:03:55 am
Yes. The KP184 Modbus Software is compatible with Windows 11.

Please check the drivers of your USB to Serial Adapter for any issues regarding Windows 11.
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: rallyhard on April 21, 2024, 06:56:39 pm
Thank you to the forum admins for maintaining this excellent resource.

I bought Interflexo’s software and find it useful, but have a bit of an issue that I was wondering if anyone else has. I tried asking Interflexo/Manuel, but haven’t heard back yet.

We use the KP184 along with the PC software to perform discharge tests on deep cycle lead-acid batteries. It works well except that during the test, the voltage will occasionally dip severely for a very brief moment and then continue normally. The test bench is not being disturbed when this happens. I’ve tried wiggling the wires between the unit and battery during the test to see if there is a bad connection, but the voltage doesn’t change at all when I do that. It happens randomly during tests whether using remote or local sense. The dip in voltage will eventually cause the test to end early as it dips below the test end voltage, so I have to keep restarting it.


Thanks for any input.  :)

EDIT: Here are the test reports showing the voltage dips:

https://i.postimg.cc/JtC8kjR3/kp184-Report1.png

https://i.postimg.cc/6qvwqMx5/kp184-Report5.png
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: interflexo on April 25, 2024, 04:59:48 pm
Hi,
No other customer complains about this. It must be hardware specific.
Does this happen with only one specific lead-acid battery or with other ones as well?
Does this happen with a Li-ion battery / LFP battery  / DC Power supply discharge tests as well? Please do some similar basic tests with your system to rule out the device being tested.
What USB to Serial adapter are you using?

Sometimes lead-acid battery internal serial busbar connections get corroded, break and show a similar behaviour.

On one of your test reports the reason for the end test was Kunkin KP184 shut the load OFF (not the software).
On these long tests the Windows system power settings should be configured to not interfere with the on going test.
Can you use an oscilloscope and do a trigger test with a low voltage (Ex: 11V) to make sure the quick voltage dips are not real?
Title: Re: Serial to usb on Kunkin KP184 electronic load
Post by: korjaa on April 26, 2024, 05:52:19 pm
Hello,


I recently bought one of these KP184s and I've been using it to test Ryobi drill batteries. I have also noticed that occasionally I get spikes, usually downwards, but there have been few upwards also.

Example of downward spike (0A...10A toggling, 15 period):
[attach=1]

Example of upward spike (0A...15A toggling, 15s period:
[attach=2]

0A...5A toggling causes periodic spikes?
[attach=3]


The message checksum is checked, so the data should be OK. I know the checksum is calculated as I spent a while debugging it. The source is available in https://github.com/korjaa/kunkin-kp184, in case anyone is interested. I have not inspected the waveform with a scope to verify if the spike is real.

Quote
Does this happen with a Li-ion battery / LFP battery  / DC Power supply discharge tests as well?
Mine are Li-ion batteries, 5s2p

Quote
Does this happen with only one specific lead-acid battery or with other ones as well?
Multiple batteries for me.

Update:
Tried scoping the waveform, wasn't able to catch the spike during test. I did however noticed that if the load is small 100mA/10mA/0A, there is actual ~2V..3V dip in the voltage occasionally, maybe every 30s. The spike period matches with my earlier 0A...5A toggling test.
[attach=4]

It does not happen if I disconnect the battery from KP184. The downward slope of the spike is related to the current.

Below are some spike lengths measured with different load values:
Output OFF -- 200ms (happens even with the output off)
8mA -- 1ms...6ms
30mA -- 200us...300us
100mA -- 60us...80us
500mA -- 40us...60us
700mA -- 40us
1A -- couldn't get it to trigger in few minutes.