Power Selection Board: Firmware
Main Functionalities
Check the status of AUX Battery
Voltage
Temperature
Check the status of DCDC
Requirements:
needs to communicate with the:
centre console
DCDC sends a message
Confirm ack status
I acknowledge it and turn on
Confirm DCDC status
when receive can message, there’s a pointer, and then set that point to the ACK message
Modules:
aux_dcdc_monitor_init
It periodically checks aux voltage and temp, and broadcasts it over CAN
CAN_TRANSMIT_AUX_BAT_DATA(u16 temp, u16 volt, u16 status )
First bit of status is aux ov
Second bit is aux uv
Third bit is aux ot
Fourth bit is aux ut
Fifth bit is dcdc (is on main if set)
It also responds to CAN_TRANSMIT_POWER_ON_MAIN_SEQUENCE
Do a check and then set the ack_reply
EE_POWER_MAIN_SEQUENCE_CONFIRM_DCDC
Ack with status ok if DCDC has switched to the main battery
Ack with status invalid if DCDC has not switched
EE_POWER_MAIN_SEQUENCE_CONFIRM_AUX_STATUS
Ack with status ok if Aux is ok (temp and volt)
Ack with status invalid if Aux is not ok