At the moment, I do not know how to add comments
"on the side", but I will look for some way to do that.
-------
battery should not be attached here. The car should signal
before connecting the battery and wait for positive confirmation
of 'ok to connect' from QC controller. I am sure this is how it's done
in the car as otherwise it would be unsafe with any charger.
Actually, the output relay should be open most of the
time, whenever the charger is idke, or sleeping.
Certainly before and after plugging in the mini-QC cable
to the vehicle.
After Start is pressed, and one is sure that the cable
is connected (by having handshakes AND suitable
CAN communication), and we are ready to ramp the
voltage up, only then, after checking that the external
voltage is very low, and that the voltage on the internal
capacitors match. Do we need a voltage-match command,
or just read the output voltage in the status, and
do an M-command with 0 current and a matching voltage,
or make voltage "-01" mean "match the output"?
Then, who decides that it is "safe" to close the relay?
True, after we finish the un-loaded ramp voltage up and down,
like M,001,445,E to ramp up? Or, we might have to do
a series of voltages to control the ramp up rate, right?
(ramp up over perhaps 4 seconds)
Then settle and sit for a second, looking for any current,
so reporting and setting current to 0.1 amps might be
needed?
Then, a faster ramp down, with perhaps
M,001,001,E
would still leave the output relay closed, right?
Then, since we can't have the relay closed when the
battery is being connected, something like M,002,000,E
would open the relay, but not stop the charging session?
Then, after the car tells us that is OK to continue, and
we signal the car that it is OK to attach the battery,
the relay must still be open, and we wait until we read
the applied battery voltage on the output.
Then, what command would tell your charger to
match the battery voltage without drawing
any noticeable current from the battery?
If you are off by a volt, there could easily be a
"zap" of current (in or out), unless you incorporate
an in/out rush limiting resistor, switched in by
an "equalizing" relay, which you then bypass,
after equalizing, with the primary output relay.
What is your plan here?
We have not investigated the tolerance on
this settling current, we just used the diodes
that you provided, attached to the heat sink,
as appears to be suggested / required by
the described QC interface.
When using an output diode, we ramp the voltage up
quickly until we get about 0.1 amp out, and wait for the
car to request 1 amp, 3, 5, etc., rising about 20 amps
per second. These requests would probably cause a series
of M,001,427,E then M,003,427,E... commands, one every 100 ms.
We found that following this ramp of current to be
a challenge to not lag too far behind, as you can see
from the logs or graphs that we sent to you.
------
If you use E for the command terminator, do not
use E for anything else, like Echo. Do your commands
not have, or allow a new-line terminator?
Or, are un-recognized characters just ignored?
Cheers, Gary