KWS-301L Teardown
There are a lot of this kind of devices, this type appear in versions with external current transformer or with internal shunt measuring and also with/without RS485 interface.
In this case it will be the model with 100 A external clamp current transfomer and also with R485.
Inside of it we find the HT5015, which do everything, measure, display interface and communication. We can find the datasheet in the web but only in Mandarin (at least I never found an English version).
There is also a NON ISOLATED power supply (be aware with the place where you put your fingers), based in a BP2525 reference B, which give 500 mA (according the manufacturer).
The model with RS485 interface has an extra board soldered to the main board (I've messed up the connections, but nothing that a little piece of wire didn't solve). This small board has their own isolated power supply with a B0505S-1WR3, a RS485 transceiver BL3085 and a digital isolated chip PI122u31. This little board makes the device safe from the communications point of view.
When I start playing with this stuff, after some digging in the net, I was trying to glue an ESP8266 to the case of the device and have it running with a browser interface. But when I saw the power supply, I was affraid it can't handle enaugh power to everything and try another approach. Anyway, for those that want to test, even those that don't have the L version, the pins for TX, RX, GND and 5 V are available in the main board .. may be the HT5015 of both versions of the device have the same program and allowed communication to RS232 inside of the device ... AGAIN, BE AWARE OF YOUR FINGERS, THE INTERNAL POWER SUPPLY IS NOT ISOLATED.
So, I was following another direction, using a little transceiver board RS485<->TTL and a Wemos D1 R32 (any ESP32 will do the work) and make some software in strict collaboration of Codex from OpenAI (he, or she, ... or it, ... make the text code under my requests).
As I was not satisfied, I make an improvement and join an Openlog datalogger from Sparkfun. This small piece of hardware can log whatever we send to it, the only thing that was missing was a parser to save the data more conveniently. So, I reuse an idea that I've done for log a GPS data, and, again with Codex, I changed the original code from Sparkfun to parse the data from KWS-301L.
The final result is, I got a web interface that handle all the knowed stuff of the device and also with a page that give a JSON with that stuff, and a datalogger wich record the data in a structure AAAA\MM\AAAAMMDD.CSV.
The system can read from the sdcard and it is possible to download files to pc .. slowly, because this part run at 115200 bps.
In attach, you will find the project for Wemos in Platformio, the code for "upgrade" the datalogger and some definitions of the protocol.
Post Scritp and joke ... I know this is not a teardown for BK chips .. but it will be a candidate to win at least a pen ...