Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • charger_controller

    • uses mcp2515’s driver to send charging messagesreceives possible faults and raises events

      • methods:

        • charger_controller_init

        • charger_controller_activate

        • charger_controller_deactivate

  • charger_contoller_fault_monitor

    • registers can rx callbacks to find faults.

    • in case of a fault, broadcasts it to the rest of the car.

  • charger_control_pilot_monitor

    • when the charger is connectedPWM_READING_REQUEST is raised, it will use PWM to do a reading for max current.

    • raises a MAXPWM_CURRENT_AVAILABLE READING event with the max current reading.

  • charger_connection_sense

    • sets up the interrupt for when the charger gets powered from AC.

    • raises a CHARGER_CONNECTED, CHARGER_DISCONNECTED, event when the interrupt triggers.

  • permission_resolver

    • once the charger connects, it sends a permission request to centre console, here’s two cases:

      • centre console will grant permission

        • it starts the begin_charge_fsm

      • centre console won’t grant permission

        • charger does nothing, and waits for a disconnect and connect.

  • begin_charge_fsm

    • it begins PWM reading by raising a PWM_READING_REQUEST

    • then it will wait for MAX_CURRENT_AVAILABLE

    • then it will set the state of the proximity circuit

    • then it activates charger_controller and charging begins.

  • stop_charge_fsm

    • it will stop the charger_controller

    • it will set the proximity circuit control pilot pin

    • it will broadcast a CHARGER_DISCONNECTED CAN message. So centre console can allow for power state transitions.

...

Message

REQUEST_TO_CHARGE

CHARGER_DISCONNECTEDCONNECTION

1: connected 0: disconnected

CHARGER_STATUS

Operation Mode:

  1. The BMS sends operating information (Message 1) to charger at fixed interval of 1s. After receiving the message, the charger will work under the Voltage and Current in Message. If the Message is not received within 5s, it will enter into communication error state and stop charging.

...

Controlled Relays & Hardware

View file
nameSAE J1772_201710 SAE Electric Vehicle and Plug in Hybrid Electric Vehicle Conductive Charge Coupler.pdf
View file
nameMSXII_ChargerInterface_3.0.PDF
View file
nameMCP2515-Stand-Alone-CAN-Controller-with-SPI-20001801J.pdf
View file
nameElcon CAN Specification.pdf