A short summary: there are mainly two methods
a) the controller drives coils to get the right charging voltage and current.
b) usage of already build-in regenerative braking circuit for charging.
ad a)
Because a main issue in EV technology there already exists some implementations and patents.
(one I found is from 1990
http://www.google.com/patents/US4920475) and inverter charging in cars at least in the Renault Zoe (thank arno for the hint).
Maybe this solution could be a way for future Zero bikes to use a proper motor controller/charger units, to reduce overall weight and enable fast onboard charging as standard.
I think the strategy, waiting for proper charging stations (with matching charger infrastructure) like sometimes mentioned will not succeed, since for electric vehicles size and weight of charger don't matter and each company wants their own solution and they dominate charging infrastructure development.
ad b)
which I was thinking first of, the controller has to limit current and voltage on the battery side and for the Gen4 Evcon I saw this features in an manual: there are parameter, which can be adjust the maximum battery current for driving and charging separately and have voltage limit, which already should be set correctly.
I assume that during regenerative braking the motor provides voltages higher than the maximum battery voltage for a full charge (116V for zeros) and also a sudden change to strong regen braking could induce high peak voltages from the motor. So they there should be a limiter on input to protect the electronic, but the question still is what is the limit of this ?
Since I don't want to risk my controller to test this, its my only one i will postpone this hack, doing
maybe some voltage recording during a some test rides and concentrate on another solution for an adaptive charging solution for different power sources including fast charging.
Thanks for all the hints...