Start a new topic

How the safety check of missing ground is done in OpenEVSE

image


The third point claims that a missing ground is detected and then the AC relays are switched open to de-energize the system. Am I right in thinking that this feature exists because there can be a case where the protective earth conductor is broken and thus on the event of earth fault the EV can be raised to the touch voltage?


If so, how exactly is this safety checking enabled in the OpenEVSE? Is it in the hardware or simply in software?


A small current is run through an opto-isolator from each hot to ground. This lights up the internal LED, a detector on the low voltage side tells the microprocessor that the current is flowing.

If the path to ground is broken anywhere between the station and the earth rod in your home, the LED will not illuminate and the microprocessor will prevent or stop charging.


The feature is required by UL to ensure there is always a path to ground so a short will trip GFCI. A broken ground plus a short to the chassis would cause the whole station and vehicle to be at line level.

The American split-phase system uses two optocouplers, each connected between a phase and ground. In the European system, this approach does not work the same way. 

An optocoupler connected between a phase and ground will trigger; however, the voltage between the neutral (N) conductor and ground is typically between 0V and a few volts, which is insufficient to activate an optocoupler. 

Consequently, the relay on the neutral line cannot be monitored. 

Connecting an optocoupler between the phase and neutral is also not a viable solution; while it would indeed trigger, it would fail to detect a situation where one of the two relays has not switched. And that does not monitor the PE.

The resistance of the optocoupler between the 240V phase and ground must also be chosen to be higher than in the US. In Europe, a single phase is 220 to 240 V; in the US, it is 120 V.

Furthermore, in Europe, the GFCI (RCD) must be rated for 30 mA AC or 6 mA DC. 
20 mA AC GFCIs are not suitable.

In Europe, all cables connected to the vehicle feature a fixed resistor at the PP (Proximity Pilot) pin within the connector. OpenEVSE is unable to monitor the PP signal.

It can only monitor the CP (Control Pilot) signal. 

@Jens Incorrect - OpenEVSE does have a PP (Proximity Pilot) input and can monitor BOTH PP and CP (Control Pilot).

Yes, that’s correct. OpenEVSE monitors the CP signal and the PP resistor on the circuit board. 

However, there is no connection between the board and the Type 2 plug. (Europe)
The PP resistor—which the car detects—is located inside the Type 2 plug itself; because there is no corresponding wire, it cannot be connected to the OpenEVSE board. 

A Type 2 cable contains conductors for 1 or 3 phases, neutral, ground, and the CP signal, but it does not include a line for the PP signal. 

In Europe, the PP (Proximity Pilot) resistance—220Ω (for 32A) or 680Ω (for 20A)—is permanently integrated into the Type 2 connector and does not change. There is no button on the Type 2 connector. An exception exists for some Tesla fast chargers, though these do not comply with the European standard. 

OpenEVSE can measure a fixed resistance—either 220Ω or 680Ω—on the circuit board and use this to set the maximum current.

However, OpenEVSE cannot detect when the key fob button is pressed and the connector is unlocked.
This takes place via the CP signal.

@Jens I would suggest you do more research you are confusing J1772 Proximity and IEC Proximity Pilot.


OpenEVSE supports BOTH. In a socketed (non-teathered) Type 2 cable OpenEVSE DOES read the PP resistor in the EVSE socket side plug and will set the pilot accordingly based on the IEC defined resistance. In a teathered Type 2 cable there is no need to read PP, the cable is physically teathered and does not change like a socketed bring your own cable setup.


For J1772 proximity there is no wire to OpenEVSE this is vehicle side only. 


Your statement the OpenEVSE does not support IEC PP in Europe is absolutely incorrect.

In Europe, all cables connected to the vehicle feature a fixed resistor at the PP (Proximity Pilot) pin within the connector. OpenEVSE is unable to monitor the PP signal.


Incorrect. OpenEVSE is able to monitor PP signals just fine on a Type 2 Socket.


It can only monitor the CP (Control Pilot) signal.


Incorrect. OpenEVSE can monitor BOTH CP and PP.




As I said, in Europe, the PP (Proximity Pilot) is statically integrated into the connector. OpenEVSE uses a voltage divider consisting of a fixed 10kΩ resistor and a 680Ω resistor. That just means the cable can handle 20A. There is no switch on the connector—(except in the case of Tesla Superchargers, works with Tesla EV only) 
In Europe, the plug is released using the key fob. Signaled via CP. The voltage rises to 12V.

In the US, however, there is a switch on the PP line that uses various resistance values and a switch. In that context, it makes sense to measure the voltage 
 
I am confident that OpenEVSE can measure the fixed 10k/680R voltage divider in Europe. 
However, this never changes and determines the maximum current.

Correction to the statement: 
5V –> 1k / 680Ω. 
The 10k resistor is in series with the M328P, and the diode is oriented in the reverse direction. 

As I said, in Europe, the PP (Proximity Pilot) is statically integrated into the connector. OpenEVSE uses a voltage divider consisting of a fixed 10kΩ resistor and a 680Ω resistor. That just means the cable can handle 20A. There is no switch on the connector—(except in the case of Tesla Superchargers, works with Tesla EV only)
In Europe, the plug is released using the key fob. Signaled via CP. The voltage rises to 12V.


Incorrect again... the OpenEVSE PP analog circuit has a 1k resistor to vcc and 10k to the analog pin then a protection diode to ground. This is a general purpose analog circuit to read a EXTERNAL resistance It can read and set all of the PP resistance below:

Cable Current RatingNominal Resistance
13 A1.5 kΩ (1,500 Ω)
20 A680 Ω
32 A220 Ω (often toleranced/listed around 200 Ω–220 Ω)
63 A (3-phase) / 70 A (1-phase)100 Ω


In addition to the above resistance, the OpenEVSE PP code also reads for a open or short and provides the appropriate errors.

The switch on the cable is compleetly different it is not related to Proximity Pilot PP at all other than the similar name Proximity. The button press is NOT signaled over CP and the voltage does not rise to 12v, the button press signals to the VEHICLE to stop pulling current. A State C (6v) to State B (9v) may happen shorlty after when the vehicle is no longer charging but the resistance that pulls 12v down to 9v is fixed into the J1772 socket. The State B (9v) to State A (12v) CP voltage has nothing to do with the proximity button the change happens when the fixed resistor is disconnected by physical plug removal.

In the US, however, there is a switch on the PP line that uses various resistance values and a switch. In that context, it makes sense to measure the voltage


Still incorrect - The switch is on Proximity (NOT PP) between the plug and vehicle, voltage is not measured by OpenEVSE for J1772 proximity (NOT PP). PP lines do not exsist in J1772. Similar name COMPLEETLY different function.  

I am confident that OpenEVSE can measure the fixed 10k/680R voltage divider in Europe.
However, this never changes and determines the maximum current.
 

Incorrect OpenEVSE does read any of the IEC resistance values, determines ampacity and does set the maximum current. In fact the circuit can measure any resistance with precision, the latest OpenEVSE code allows the unused (in the US and on teathered Europeen stations) PP circuit to measure NTC temperature resistors in EV cables. The nominal resistance is 10k at 25C and 3.7k at 85C.

@Jens If you still do not believe OpenEVSE can read IEC resistance on Socketed Type 2 stations here is how the software side works.

OpenEVSE controller firmware supports IEC proximity pilot (PP) for one purpose: it reads the cable's PP resistor to limit charging current, and it adds two PP fault states. OpenEVSE/open_evse, AutoCurrentCapacityController.cpp, J1772EvseController.* and main.cpp.


How PP support works

  • Build option: the PP_AUTO_AMPACITY compile flag. It is on in the default PlatformIO build (platformio.ini). Turning it on also turns on STATE_TRANSITION_REQ_FUNC, which lets the firmware check PP before each state change.
  • Runtime switch: the EEPROM flag ECF_PP_AUTO_AMPACITY (0x0040). It is off by default. RAPI $FF P 1 turns it on and $FF P 0 turns it off.

            Here is the GUI to turn it on:

  • Hardware: one ADC input, PP_READ (ADC2 on the ATmega328P, PB09/A2 on SAMD). 
  • Resistor-to-amps table (IEC 61851 values). A reading counts as a given resistor if it falls nearer that resistor's ADC value than the next one up:
    PP resistorADC value (10-bit)Current limit
    ~0 Ω (short)00 A → fault
    100 Ω9363 A
    220 Ω18532 A
    680 Ω41520 A
    1.5 kΩ61513 A
    open1023none → fault

    On 12-bit SAMD builds the ADC values are ×4.


  • When PP is checked:
    • At startup. A short there blocks in DoPPError() until the short clears. An open PP at startup is not treated as a fault.
    • Every time the EVSE is about to enter State B or C. This check runs after the pilot reading has been debounced.
  • How the current is limited: if the cable is rated lower than the current setting, the firmware lowers the setting temporarily without saving it to EEPROM. GetMaxCurrentCapacity() and SetCurrentCapacity() also cap the current at the cable rating while in State B or C. RAPI $GC returns the PP-limited maximum in those states.
  • Display: with PP enabled, the LCD shows actual:limit A (for example 16:32A) instead of the plain ammeter reading.
  • Conflict with cable temperature sensing:PP_READ is also used for cable NTC temperature sensing (CABLE_TEMPERATURE_MONITORING), and only one feature can use it. Enabling PP silently removes any temperature sensor assigned to that pin. Assigning a sensor to it with $SN idx 1 silently turns PP auto-ampacity off. You can check the result with $GE or $GN.
  • Not included: there is no PP-based plug or unplug detection and no use of PP to decide the vehicle state. The IEC 62196 Type 2 socket locking pin is a separate feature (MENNEKES_LOCK, in MennekesLock.cpp).


Errors (fault states 0x04–0x11)

CodeStateMeaning
0x04D3 V, vehicle needs ventilation
0x05DIODE_CHK_FAILEDPilot diode check failed
0x06GFCI_FAULTGFCI tripped
0x07NO_GROUNDGround check failed
0x08STUCK_RELAYRelay stuck closed
0x09GFI_TEST_FAILEDGFI self-test failed
0x0AOVER_TEMPERATUREOver-temperature shutdown
0x0BOVER_CURRENTOver-current shutdown
0x0CPILOT_ERRORReserved, not used
0x0DTEMP_SENSOR_FAULTReserved, not used
0x0ERELAY_CLOSURE_FAULTRelay did not close
0x0FPP_SHORTEDPP reads near 0 Ω. LCD shows "CABLE FAULT / PP SHORTED" with the red LED.
0x10PP_MISSINGPP reads open (no resistor). LCD shows "CABLE FAULT / PP MISSING" with the red LED.
0x11EEPROM_FAILUREEEPROM failure (SAMD only)


How the two PP errors behave

  • When either PP error is set, the relay opens and the pilot is held at a steady +12 V.
  • Neither one is a hard fault, so they do not latch. The firmware keeps reading the pilot and checks PP again on the next attempt to enter State B or C. Unplugging the vehicle (State A) clears them.
  • PP_MISSING is only raised when entering State B or C. At startup, an open PP is accepted and the configured current is used. In practice, once PP is enabled, a socket without a PP resistor (such as a tethered J1772 cable) will never reach State B or C.

 You are correct; 
OpenEVSE does not support IEC PP (Proximity Pilot). 

I need to connect the analog input to 5V via an 11kΩ resistor. 
OpenEVSE can measure the static signal.
The cable signals to the car via IEC PP that a maximum of 20A is available. 
If I set the current to more than 20A in OpenEVSE, it will have no effect.

So, my initial approach—using a fixed voltage divider with 1k to 680Ω—was not wrong. 
My second attempt, using only 11k to 5V and no 680Ω, was not harmful. 

The fixed cable has a 680Ω resistor inside the connector and no wire for the PP (Proximity Pilot) signal; therefore, I must either use a second 680Ω resistor on the circuit board or leave the connection open.

Login or Signup to post a comment