The invention discloses a log storage method based on a vehicle
machine MCU and related equipment, and relates to the technical field of
data processing, and the method comprises the steps: responding to a log storage instruction, obtaining multi-source
log data, based on a preset
heartbeat mechanism, checking the working state of an SOC, the
heartbeat mechanism is constructed based on the SOC and the MCU, and if the working state is normal, the multi-source
log data is stored in the multi-source
log data, and if the working state is normal, the multi-source log data is stored in the multi-source log data; sending the multi-source log data to the SOC, so that the SOC executes a data storage operation; and if the working state is abnormal, storing the multi-source log data in an EEP space of the MCU. Based on the characteristics of high capacity of the SOC and good stability of the MCU, the data is preferentially stored in the SOC, and further, by combining with a
heartbeat mechanism, when the SOC works abnormally or is unstable, the storage path is dynamically adjusted, so that all log data can be completely and stably stored.