Yes I have ran this a few times, it works. Most chargers will be like this too as the CP in the EV needs a diode, the -12V is for the station to make sure its not a rouge resistance on the CP to ground.
Foccci wakeup/sleep discussions
-
- Posts: 1341
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 106 times
- Been thanked: 231 times
Re: Foccci wakeup/sleep discussions
- johu
- Site Admin
- Posts: 5863
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 169 times
- Been thanked: 1081 times
- Contact:
Re: Foccci wakeup/sleep discussions
Added the wakeup code now: https://github.com/uhi22/ccs32clara/com ... 1cafeb7baa and https://github.com/uhi22/ccs32clara/com ... 4cbf3d1d28
First, the wakeup sources
I came up with 5 modes for the wakeup OUTPUT
1st, Touran good enough approach
wakeup via PP enabled, WakeupPinFunc=LevelOnValidPp
wakeup via PP disabled, WakeupPinFunc=PulseOnValidCp. Here we have a bidirectional wakeup bus. Any ECU connected to it can send or receive wakeup events and the individual ECUs can decide whether they are needed for a particular task or not.
So I think there can be an intermediate approach:
3rd accessible sleep approach
Here we only have a wakeup bus between VCU and Foccci. All other devices are powered up by other means, like VCU controlled relays. Wakeup via PP is disabled, WakeupPinFunc=LevelOnValidCp
First, the wakeup sources
- Wakeup pin - bidirectional - level triggered (12V)
- Button - level triggered (GND)
- PP - optional via solder bridge - level triggered
- CP - Edge triggered
I came up with 5 modes for the wakeup OUTPUT
- Level - as long as the Foccci doesn't decide to turn off, we keep Wakeup on as well
- Pulse - When Foccci boots generate a 1s wakeup pulse
- LevelOnValidCp - As long as CP is pulsing we keep wakeup on
- PulseOnValidCp - Whenever we transition from non-pulsing to pulsing CP we generate a 1s pulse
- LevelOnValidPp - As long as PP is valid keep wakeup on
1st, Touran good enough approach
wakeup via PP enabled, WakeupPinFunc=LevelOnValidPp
- Foccci turns on as soon as even a non-powered charging cable is plugged in
- Wakeup signal is turned on
- BMS, VCU etc. is turned on (directly powered from wakeup as it can supply about 1A)
- VCU can detect via the level of the wakeup signal that a cable is plugged in and inhibit drive
- When charging cable is unplugged (as in PP lost), Wakeup is turned off and the VCU can allow driving
- If we wanted to report e.g. welded charge port relays Foccci would have to keep itself running until the car is started in drive mode again. Then something can be displayed on the instrument cluster. Of course this will time out eventually. Should be fine as you at least have to pull away from the rapid charger after charging.
- When charging is paused all ECUs stay on and consume 12V power (or HV power via DC/DC)
wakeup via PP disabled, WakeupPinFunc=PulseOnValidCp. Here we have a bidirectional wakeup bus. Any ECU connected to it can send or receive wakeup events and the individual ECUs can decide whether they are needed for a particular task or not.
- Foccci turns on as soon as CP PWM starts. So either a cable is being plugged in or is already plugged in and now wants to charge
- It then turns on the wakeup output for 1s and wakes up all other ECUs
- The relevant ECUs will detect that we want to charge and stay on, the other ones turn off
- If we turn on ignition the VCU is already on and in charge mode and can inhibit drive
- If charging is paused (i.e. cable plugged in but no CP PWM) and we turn on ignition the VCU wakes up the Foccci and queries PP status. If something is plugged in drive is inhbited
- If Foccci detects an error e.g. welded relays, it stores that error to flash. When woken up by the VCU it report its non-zero error code
- When charging is paused, ALL ECUs can turn off and no 12V power is consumed. When CP comes back, the cycle restarts
So I think there can be an intermediate approach:
3rd accessible sleep approach
Here we only have a wakeup bus between VCU and Foccci. All other devices are powered up by other means, like VCU controlled relays. Wakeup via PP is disabled, WakeupPinFunc=LevelOnValidCp
- Foccci turns on as soon as CP PWM starts. So either a cable is being plugged in or is already plugged in and now wants to charge
- It then turns on the wakeup output this waking up the VCU
- The VCU determines via CAN message from Foccci whether we want to AC or DC charge and turns on needed components. Components needed in both cases that have low power consumption (e.g. BMS) can also be driven from the wakeup signal directly
- If we turn on ignition the VCU is already on and in charge mode and can inhibit drive
- If charging is paused (i.e. cable plugged in but no CP PWM) and we turn on ignition the VCU wakes up the Foccci and queries PP status. If something is plugged in drive is inhbited
- If Foccci detects an error e.g. welded relays, it stores that error to flash. When woken up by the VCU it report its non-zero error code
- When charging is paused, ALL ECUs will turn off and no 12V power is consumed. When CP comes back, the cycle restarts
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- Bigpie
- Posts: 1601
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 312 times
Re: Foccci wakeup/sleep discussions
Is focci able to detect the duty of CP and if it's over 5% switch over the CP to the OBC for AC charging?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1341
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 106 times
- Been thanked: 231 times
Re: Foccci wakeup/sleep discussions
At the moment no, as ran out of pins. So you would need an external VCU to do this, easily done with something like Zombie
- johu
- Site Admin
- Posts: 5863
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 169 times
- Been thanked: 1081 times
- Contact:
Re: Foccci wakeup/sleep discussions
Like Tom says, it's not really intended.
What I do see is removing the 2k7 from foccci and just paralleling OBC and Foccci. Then the 2k7 inside the charger is used to enter state B. So when DC charging Foccci switches to state C, when AC charging Foccci doesn't touch CP and leaves this to the charger.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- Bigpie
- Posts: 1601
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 312 times
Re: Foccci wakeup/sleep discussions
Might just do the Damien Maguire method then, normally closed on a relay to AC charger and flip a switch for CCS
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 119
- Joined: Tue Jun 15, 2021 5:44 pm
- Location: Finland
- Has thanked: 21 times
- Been thanked: 6 times
Re: Foccci wakeup/sleep discussions
For AC charge using CAN controlled chargers its software change and something that would work for me. Or is there some downsides to think? Isn't it like LIM does AC, at least cable/charge currents are available thru can bus?
Plan is to charge from solar, have Johu or anyone else done this type of AC charger control? What would be best approach keeping plug connected, how charger could get vehicle to sleep and wake when needed? Is there any another way than stop sending CP completely during nights and start again next day? PP is low all the time.
Plan is to charge from solar, have Johu or anyone else done this type of AC charger control? What would be best approach keeping plug connected, how charger could get vehicle to sleep and wake when needed? Is there any another way than stop sending CP completely during nights and start again next day? PP is low all the time.
- johu
- Site Admin
- Posts: 5863
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 169 times
- Been thanked: 1081 times
- Contact:
Re: Foccci wakeup/sleep discussions
The EVSE should shut down CP (or make it 12V) when setting current limits below 6A. Or and least when sending an explicit stop command.
In that case you'd omit PP wakeup. CP wakeup is always active. So basically go with the 3rd approach from here viewtopic.php?p=69417#p69417
Foccci will then sleep 10s after CP stops pulsing and wake back up when it starts.
In that case you'd omit PP wakeup. CP wakeup is always active. So basically go with the 3rd approach from here viewtopic.php?p=69417#p69417
Foccci will then sleep 10s after CP stops pulsing and wake back up when it starts.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Foccci wakeup/sleep discussions
Hi
I have 4.2 and 4.5 versions. Im connecting to Ac charge station. Im getting cp error. Actually it works with one charge station. But it didnt work with other two station.
What can be problem? Thanks nest wishes
I have 4.2 and 4.5 versions. Im connecting to Ac charge station. Im getting cp error. Actually it works with one charge station. But it didnt work with other two station.
What can be problem? Thanks nest wishes
- uhi22
- Posts: 669
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 94 times
- Been thanked: 434 times
Re: Foccci wakeup/sleep discussions
What do you mean with CP error? Where/how do you observe this? Do you use CAN to control the state C? Does the charger close the relay if you just connect 2k7 and diode, and in a second step the 1k3? Foccci should do nothing else.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: Foccci wakeup/sleep discussions
When i connected to ac charger im getting cp error from ac charger evse. Also im.measuring 4.56 - 4.69k between cp gnd on focci board. I can control state c, ac charger is giving cp error. I didnt understand why?
- uhi22
- Posts: 669
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 94 times
- Been thanked: 434 times
Re: Foccci wakeup/sleep discussions
I see three potential root causes:
1. The charging station is defect and tells bullshit.
2. The wiring between the charging station and Foccci is wrong.
3. The Foccci does not behave like the blue box.
To find out, which of these is the case, I propose that you grab a diode, two resistors and a switch, build the blue box, and connect it to the charger. With this you can find out whether (1) is the true. And then connect the same circuit instead of Foccci, so you can check whether (2) is true.
The resistance measurement at the vehicle inlet is tricky, because there is the series of diode and 2k7, so depending on the multimeter it shows "something" above 2k7 in the one direction and "infinite" in the other direction.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: Foccci wakeup/sleep discussions
I tried with 3 evse. One is working and charging. Second is giving cp error. Also i guess evse ac charge station is like second.uhi22 wrote: ↑Fri May 31, 2024 6:58 am image.png
If your charging station tells you a CP error, it want's to say that it did not detect the circuit in blue box.
I see three potential root causes:
1. The charging station is defect and tells bullshit.
2. The wiring between the charging station and Foccci is wrong.
3. The Foccci does not behave like the blue box.
To find out, which of these is the case, I propose that you grab a diode, two resistors and a switch, build the blue box, and connect it to the charger. With this you can find out whether (1) is the true. And then connect the same circuit instead of Foccci, so you can check whether (2) is true.
The resistance measurement at the vehicle inlet is tricky, because there is the series of diode and 2k7, so depending on the multimeter it shows "something" above 2k7 in the one direction and "infinite" in the other direction.
1. The charging station is defect and tells bullshit.
I have small evcc for ac charging. Charger is working with it.
2. The wiring between the charging station and Foccci is wrong
It is true. Because other charger is working and charging.
3. The Foccci does not behave like the blue box.
Why is charging one charger. Why is not behaving like blue side? What can we do
Also i connect 2.7k and switch and 1.3k. Charger is working with it
Also i measured the cp side with oscilloscope, pwm values are 26-27. That is no problem about it
- uhi22
- Posts: 669
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 94 times
- Been thanked: 434 times
Re: Foccci wakeup/sleep discussions
Two ideas:
- check the voltage levels of the PWM with the oscilloscope. It should be -12V and +9V after plugged-in, and later, when the charging is active, it shall be -12V and +6V.
- Foccci does not contain more than the blue box. But if Foccci would have closed the state C switch, some chargers may complain because the switch should be open at the beginning and close later. Some chargers may not be interested in this, and may working even if plugging-in which state C is already closed.
[Edit] and another test: use a 12V power supply and a 1k resistor, to simulate the charging station. Connect this to your vehicle CP and PE. Expected is 9V in this case.
- check the voltage levels of the PWM with the oscilloscope. It should be -12V and +9V after plugged-in, and later, when the charging is active, it shall be -12V and +6V.
- Foccci does not contain more than the blue box. But if Foccci would have closed the state C switch, some chargers may complain because the switch should be open at the beginning and close later. Some chargers may not be interested in this, and may working even if plugging-in which state C is already closed.
[Edit] and another test: use a 12V power supply and a 1k resistor, to simulate the charging station. Connect this to your vehicle CP and PE. Expected is 9V in this case.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: Foccci wakeup/sleep discussions
1. It is showing 5.6 volt in state b. I think no problem between states on focci.uhi22 wrote: ↑Fri May 31, 2024 7:35 am Two ideas:
- check the voltage levels of the PWM with the oscilloscope. It should be -12V and +9V after plugged-in, and later, when the charging is active, it shall be -12V and +6V.
- Foccci does not contain more than the blue box. But if Foccci would have closed the state C switch, some chargers may complain because the switch should be open at the beginning and close later. Some chargers may not be interested in this, and may working even if plugging-in which state C is already closed.
[Edit] and another test: use a 12V power supply and a 1k resistor, to simulate the charging station. Connect this to your vehicle CP and PE. Expected is 9V in this case.
2. I will try
- uhi22
- Posts: 669
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 94 times
- Been thanked: 434 times
Re: Foccci wakeup/sleep discussions
5.6v is not state B. B is 9V.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
- uhi22
- Posts: 669
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 94 times
- Been thanked: 434 times
Re: Foccci wakeup/sleep discussions
This is the error. In state B the Foccci should have only 2k7 resistor, which leads to 9V nominally.
[Edit] On Foccci there is a LED for state C. You could try to switch this via the parameter ActuatorTest. This should lead to
- LED off, is state B, is 9V
- LED on, is state C, is 6V
[Edit 2] And check what the spotvalue AcObcState says. If it is "charging", the Foccci is expected to turn the State C on, and in the other cases it shall stay in State B.
[Edit] On Foccci there is a LED for state C. You could try to switch this via the parameter ActuatorTest. This should lead to
- LED off, is state B, is 9V
- LED on, is state C, is 6V
[Edit 2] And check what the spotvalue AcObcState says. If it is "charging", the Foccci is expected to turn the State C on, and in the other cases it shall stay in State B.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: Foccci wakeup/sleep discussions
I tried with 1k and power supply. As you said im measuring 8.76 volt on cp side. So we can say charger is not working properly.uhi22 wrote: ↑Fri May 31, 2024 8:24 am This is the error. In state B the Foccci should have only 2k7 resistor, which leads to 9V nominally.
[Edit] On Foccci there is a LED for state C. You could try to switch this via the parameter ActuatorTest. This should lead to
- LED off, is state B, is 9V
- LED on, is state C, is 6V
[Edit 2] And check what the spotvalue AcObcState says. If it is "charging", the Foccci is expected to turn the State C on, and in the other cases it shall stay in State B.
Also i will look led for state c and obc state