Home / Wiki / Architecture / Safety architecture
Architecture · canonical reference

Safety architecture

The safety systems are designed to protect against two main cases:

  • Unexpected torque from the motor leading to unwanted acceleration or braking.
  • Access to the high voltage rails.

The same method is used to reach a safe state for both:

Important

Opening the battery contactors will both prevent the inverter/motor producing torque and cut access to high voltage components.

The general idea is to have a dual-channel system for all safety functions such that a single error will never cause a dangerous situation and a single error is always detected.

TBD: Safety architecture drawing.

Electrical safety

The traction HV system is isolated from the vehicle chassis and operates as a floating system. No active on-board isolation monitor is currently planned. Insulation resistance will be checked with a suitable insulation tester during construction, commissioning, and service.

HV interlock loop

A high-voltage interlock loop passes through the HV components and enclosures, except the Mitsubishi OBC/DC-DC, and includes a driver-accessible emergency switch. A valid loop permits the secondary processor in the VCM to enable a high-side driver that supplies the battery contactor coils. The BMS controllers independently complete the coils’ low-side paths, so contactors require authorization from both the VCM safety path and the relevant BMS.

The loop is fed from a low-current fuse in the primary distribution box and terminates at the VCM; see Low voltage electrical system > primary-distribution.

Inside the front pack the loop passes through the MSD, so pulling the MSD opens it. The schematic shows the loop from its fuse to the VCM, and the safe power the VCM feeds to the contactor coils in both packs while the loop is closed.

Interlock and safe power Primary fuse box INTLK E-Stop INTLK IN INTLK OUT Front Battery INTLK IN bms_signals:6 INTLK OUT bms_signals:7 SAFE PWR bms_signals:3 Rear Battery INTLK OUT bms_signals:7 SAFE PWR bms_signals:3 INTLK IN bms_signals:6 HV Junction Box INTLK OUT intlk:2 INTLK IN intlk:1 Inverter INTLK OUT INTLK IN VCM INTLK SAFE PWR GN GN GN GN GN RD RD GN
Interlock and safe power

The harness drawing of the interlock leads at the battery packs is on the Rear loom page.

Functional safety

The VCM’s secondary processor independently monitors the accelerator channels, brake inputs, and torque requests sent by the primary processor. Those checks and the internal processor architecture belong to the VCM design rather than the vehicle harness. At the external electrical interface, the secondary processor controls the high-side driver supplying the battery contactors and removes contactor power as a last resort if the main processor stops responding on their internal communication bus or another shutdown condition is detected.

The DIY VCM and VCM monitor firmware pages describe the VCM side. The vehicle-level fault behaviour is described under operating states.

Fault reactions

The VCM main processor decides how to react to a fault. The monitor and the BMS controllers act on their own only for the faults they detect themselves. Main contactors and precharge > roles describes who switches what, and Main contactors and precharge > opening the two ways to open:

  • A controlled open first commands zero torque and zero charge current, then waits until the current is below 5 A, or at most 1 s.
  • An immediate open commands every contactor open in the next 10 ms frame.

Cutting safe power opens every contactor at once, whatever the current.

Every fault latches. The VCM refuses to close the contactors again until the next key cycle, and clears the BMS trips with the fault clear bit only if the cause has gone. A key cycle is the VCM going to sleep and waking on the key or the charge cable. The monitor’s latch clears the same way.

FaultDetected byReaction
HV interlock loop openMonitor and VCM mainThe monitor cuts safe power at once. The VCM main commands every output open.
VCM main silent on the serial link for 100 msMonitorThe monitor cuts safe power.
Monitor silent on the serial link for 100 msVCM mainImmediate open.
Any other monitor fault, see VCM monitor firmwareMonitorThe monitor cuts safe power.
Contactor command lost for 100 msBMSThat BMS opens its outputs and blocks, see Main contactors and precharge > bms-rules.
BMS fast status lost for 100 msVCM mainImmediate open on both packs.
A BMS not reporting 500 ms after wakeVCM mainNo close.
Safe power lost while closedBMSEach BMS switches its outputs off and blocks. The VCM main commands every output open.
Safe power present before the monitor enabled it, or still present 100 ms after releaseVCM mainNo close.
Welded contactorVCM mainNo close. The driver is warned.
Precharge failedVCM mainEvery output open. Two retries 30 s apart, then latched.
V_out more than 5 V below V_stack while closedVCM mainControlled open. A contactor or a connection has a high resistance.
V_link and the BMS voltages more than 20 V apart for 1 sVCM mainRecorded. The contactors stay closed, and the next close is refused.
BMS open request, see cell-protectionBMSControlled open.
BMS trip, see cell-protectionBMSThe BMS has opened its own outputs. The VCM main commands every output open on both packs.

Cell protection

Each BMS looks after its own cells. It estimates the state of charge and reports, every 100 ms, the charge and discharge current the pack can take. It lowers these limits as a cell approaches its voltage or temperature limits. The VCM keeps the inverter torque and the OBC current request within the lower limit of the two packs. The packs are in series, so the same current flows through both.

A BMS reacts on two levels. Both are BMS parameters with the defaults below. The temperature defaults are to be checked against the cell datasheet.

ConditionOpen requestTrip
Highest cell voltageabove 4.15 Vabove 4.25 V
Lowest cell voltagebelow 3.00 Vbelow 2.70 V
Cell temperature while chargingoutside 0 °C to 45 °Cabove 65 °C
Cell temperature while dischargingoutside −20 °C to 55 °Cabove 65 °C
String currentmore than 10 % above the reported limit for 1 sabove 350 A for 100 ms
Measurement lost: isoSPI chain, shunt, or the front BMS current on the rear BMSfor 500 ms
  • Open request. The BMS sets the open request with a reason in its fast status, and the VCM does a controlled open. If the VCM still commands an output closed 1 s after the request, the BMS opens its outputs itself and trips.
  • Trip. The BMS opens its outputs at once and reports the reason. It stays tripped until the VCM sends a fault clear with every output open.

The trip limits are wide enough that they only act when the VCM has failed to react. They are the second channel for the cells, since the monitor cannot see CAN2.

Unintended acceleration or braking

There is a lot of monitoring around making sure the car does not get any unintended acceleration or braking. As a last resort, the driver-accessible emergency switch is part of the HV interlock loop. Pushing it breaks the loop, and the VCM secondary processor removes the high-side supply to the contactor coils.

Definitions

Torque

Motor torque is defined as positive in the direction of forward acceleration and negative in the direction of reverse acceleration. Here we only consider motor torque and assume the transmission is in a forward gear, meaning wheel torque has the same sign as motor torque.

Speed

Speed is defined in the same direction as torque: a positive speed means the car is moving forward, negative means it is moving in reverse.

Accelerating torque

Acceleration is torque in the direction the car is currently moving — in other words, torque that works on increasing abs(speed).

Braking torque

Braking is torque in the direction opposite to which the car is currently moving — torque that works on decreasing abs(speed).

Error cases

The table below defines identified safety issues that could lead to unwanted acceleration or braking and the mitigations in place to manage each.

Accelerator pedal

Faults in the accelerator pedal sensors or in the interpretation of them could cause unintended torque requests to be sent from the VCM to the inverter.

Too low/high supply voltage to accelerator sensor

Monitored: VCM monitor and main application.

Action: Set fault condition in VCM main app, disable main contactor high-side supply if accelerating torque is requested.

Bad accelerator pedal sensor

Monitored: Dual independent sensor channels monitored by VCM monitor and main application.

Action: Set fault condition in VCM main app, disable main contactor high-side supply if accelerating torque is requested.

VCM main application reads wrong accelerator position

Monitored: VCM monitor application compares accelerator sensor input with torque request.

Action: Set fault condition in VCM main app, disable main contactor high-side supply if accelerating torque is requested.

VCM main application faults

There can be many faults in the main application; most are caught by the torque request supervision.

Torque request while braking

Monitored: VCM monitor application.

Action: Set fault condition in VCM main app, disable main contactor high-side supply if accelerating torque is requested.

Inverter faults

Since the inverter is an unmodified commercial part, that has been shown to be very reliable, it is generally considered to be safe. There is some supervision regardless.

Access to high voltage

This error case is mainly relevant when servicing the drivetrain components. To prevent access to high voltage busbars and similar while they are powered, the built-in interlock circuit of the inverter is connected in series with the HV interlock loop. The Mitsubishi OBC/DC-DC has no interlock functionality and is not part of the loop.

Linked from the build log 13 posts reference this page