@rzee Only some of them. CUX, TC/TSX are just dumb chargers with no data pins present on the connector anyway.
For CPX, it's a CAN BUS protocol and I have it fully reversed engineered. However! The only thing that affects charging is temperature, the battery asking for 10A instead of 15A when it's cold (i think below 5°C?). Other than that, the charging proceeds exactly the same (I have graphed measurements to prove that) as most of the charging is controlled by the onboard BMS anyway. There is CC phase that charges at whatever the charger provides (originally 15A but will happily do anything, like 6.5A what I use for charging for the last 2 years), and then it slows down as it reaches the CV phase. Finally, the charger detects the power draw under, let's say, 500mA and shuts down.
It is crucial to set the correct voltage for the charger - I have ordered a 71.4V charger (which is normal for 17S chargers) but then used its internal trimmer to lower it down to 70.5V to match the original charger. Soco uses slightly lower max voltage to prefer longetivity of the cells.
Furthermore, I have a RPi4 with CAN hat attached to my non-original charger and I use my own custom api to integrate it into my home automation (OpenHAB in this case). The home automation will shut down the charging at 92% as I don't need the extra range. I also monitor temperatures (the battery has 4 sensors inside) and stop if the temperature exceeds 35C. This never happened, but I try to be careful so I have the rule there anyway.
If my home automation crashes, it will of course continue charging until the non-original charger shuts down at 70.5V, which is basically what would happen with the original one. I have two batteries but I rarely need the range of two at the same time so I swap them as needed, using one for one day and the other the next day.
So non-original charger with substitute CAN monitoring and charging control. I use this for about 26 months, 15000km on the scooter. Recently I connected both batteries to diagnostics (as a dealer, I have full access to diagnostics). Both batteries are on 100% health and both batteries exert the same range as they did when new. I charge them at 40% speed of the original charger, to only 92% and usually discharge to about 30-35% on my daily routine. A nice bonus is that the non-original charger is taller so has 90mm fan instead of 40mm fan in the original one. It is WAY quieter, and I have swapped it for a Noctua fan to further silence it.
To be clear - all of this STILL voids warranty. But as a pretty well-educated person on the topic of li-ion batteries, I just thought I would risk this and so far the risk is well worth it.