r/18650masterrace • u/enygmatique • 29d ago
I got live data out of the cheap 18650-4CHN tester without touching the firmware (SWD + a $5 WCH-Link)
I have one of those 4-slot 18650 testers with the color screen (sold as 18650-4CHN / BT4-4CHN-18650). It works fine, but it has no data port, so logging a capacity test meant writing numbers down by hand.
Turns out the MCU (Cortex-M0+, almost certainly a Puya PY32F040, the marking is sanded off) has its SWD pins on a little header labelled ISP under the board. With a WCH-Link switched to CMSIS-DAP mode and pyOCD you can attach to it while it runs, without halting it, and just read RAM.
All four slots live in one struct in SRAM: state, elapsed time, mAh, mWh, internal resistance, a presence flag. There's also a separate ADC buffer that updates all four voltages continuously. The voltage the screen shows is only refreshed for whichever slot is selected, which confused me for a while.
Fun bit: two floats in each slot looked like random voltages. If you assume they're the no-load / loaded voltages from the resistance test, the math gives a load of about 3.9 ohm on all four channels. Then I flipped the board: the discharge resistors are marked 6W3R9J. 3.9 ohm.
Current isn't stored anywhere I could find, so it's estimated from the mAh counter. The tool labels every value as direct, estimated or experimental, so you know what you're looking at.
I turned it into a small Python tool: a terminal monitor, CSV/JSONL recording, and a local WebSocket stream if you want to plug it into Home Assistant, a web page or whatever. It's strictly read-only: it never writes to the chip, never resets it, and the charger stays in charge of the cells.
Repo: https://github.com/Pupariaa/18650-4CHN-SWD-Monitor
Only tested on my unit, one firmware version, Windows. If you have one of these (or a lookalike) and a CMSIS-DAP probe, I'd love a capture to see if the layout is the same. The tool has a record mode that only saves the bytes it reads.



14
u/CesiumSalami 29d ago
That’s amazing! I didn’t even think about this. I’d love to integrate this into an ESP32 or something so i could have a local dashboard instead of having to check the screens.
6
u/frobnosticus 29d ago
Okay THAT'S funky!
Guess I'm gonna buy two of these. (There being a 100% chance I'll screw one up.)
3
u/BenchZero 28d ago
Great job. I've one of these testers. Gonna save this to try out later. Thanks :)
3
u/kr0m 28d ago
That's a cool proj, well done!
Slightly off-topic -- are there any similar testers that have higher max discharge current? This one seems to be only 1A.
1
u/enygmatique 13d ago
Quick update! I've taken this project a step further and designed a dedicated USB-C PCB with a CH552G and custom firmware! 😄
I'm planning to release everything as open source once it's polished.
Here's the new post with some pictures: https://www.reddit.com/r/18650masterrace/s/TafhKhiHHq
-2
u/habichtfreak 29d ago
Diese Teile sind nicht zum erstellen von Messungen geeignet. Beispiel: gestern hatte ich Tenpower 60XG drin (ich habe die Variante mit 2x 18650 und 2x 21700). Entladen wurde bis 2,5V. Gemessen wurde bei mehrere Durchläufen weniger als 5800 mAh. Was will man mit diesen Daten eines Schätzeisens??? Auch die Messung des Innenwiderstands ist sehr ungenau.
3
u/mfsamuel 29d ago
I just got one of these from aliexpress. I guess I am taking it apart to play with your tool now.