A couple of mentions of querying the charger here.

Is it that complex or still simply detected by various resistances on the data lines to +5V/GND/each other. That's certainly how older products worked.

Monitoring the voltage and throttling back is a neat way to do it.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)