CN-121982798-A - Recording method of frozen frame of electronic control unit and electronic equipment
Abstract
The embodiment of the application provides a method for recording a frozen frame of an electronic control unit and electronic equipment, wherein the method comprises the steps of controlling the electronic control unit to record the frozen frame according to an initial mode, responding to a switching instruction for switching the initial mode into a target mode, modifying a writing value of a target data identifier of the electronic control unit based on the switching instruction to switch the initial mode into the target mode, wherein the target data identifier is used for representing the data identifier for controlling the frozen frame recording mode of the electronic control unit, the frozen frame recording mode comprises the initial mode or the target mode, the frozen frame recording mode is used for representing rolling recording according to one of the following information of fault codes, namely triggering time, triggering frequency and priority, and controlling the electronic control unit to record the frozen frame according to the target mode. The application solves the technical problems of low accuracy and low effectiveness of the electronic control unit for recording the frozen frame in the related technology.
Inventors
- Meng Yunhao
- Wei Enxiang
- WEN XIAOFENG
- ZHU PENGBO
- XIE YANYAN
- GAO DESHEN
Assignees
- 广州汽车集团股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260114
Claims (10)
- 1. A method for recording a frozen frame of an electronic control unit, comprising: The control electronic control unit records the frozen frame according to an initial mode; In response to receiving a switching instruction for switching the initial mode to a target mode, modifying a write value of a target data identifier of the electric control unit based on the switching instruction to switch the initial mode to the target mode, wherein the target data identifier is used for representing a data identifier for controlling a frozen frame recording mode of the electric control unit, the frozen frame recording mode comprises the initial mode or the target mode, and the frozen frame recording mode is used for representing rolling recording according to one of the following information of fault codes, namely triggering time, triggering frequency and priority; And controlling the electronic control unit to record the frozen frame according to the target mode.
- 2. The method according to claim 1, wherein the frozen frame recording mode includes a first mode, a second mode or a third mode, wherein the first mode is used for representing that the scroll recording is performed from near to far according to the trigger time, the second mode is used for representing that the scroll recording is performed from high to low according to the trigger frequency, and the third mode is used for representing that the scroll recording is performed from high to low according to the priority.
- 3. The method of recording a frozen frame of an electronic control unit according to claim 2, characterized in that the method further comprises: Determining the number of types of fault codes recorded in the electronic control unit under the condition that the initial mode is the first mode, the target mode is the second mode or the third mode and the writing value of the target data identifier is modified; Comparing the recorded fault code type number with a preset type number to obtain a retention policy of the electronic control unit, wherein the preset type number is used for representing the total type number of the fault codes which can be recorded by the electronic control unit according to the second mode or the third mode; the electronic control unit is controlled to reserve the recorded fault codes according to the reservation strategy to obtain reserved frozen frames; And controlling the electronic control unit to record the frozen frame based on the newly triggered fault code according to the target mode.
- 4. A method of recording a frozen frame of an electronic control unit according to claim 3, wherein comparing the recorded number of fault code categories with a preset number of categories to obtain a retention policy of the electronic control unit comprises: When the recorded fault code type number is smaller than or equal to the preset type number, determining the retention strategy to control the electronic control unit to retain a frozen frame of a first preset number of times corresponding to the recorded fault code type number according to the trigger time from near to far, wherein the first preset number of times is used for indicating the total number of fault codes which can be recorded by the electronic control unit according to the first mode; And determining the reservation strategy based on the target mode under the condition that the recorded fault code category number is larger than the preset category number.
- 5. The method of claim 4, wherein determining the retention policy based on the target manner comprises: when the target mode is the second mode, determining the retention strategy to control the electronic control unit to retain the frozen frames of the first preset times corresponding to the preset category number according to the fact that the trigger frequency is from high to low; And under the condition that the target mode is the third mode, determining the retention strategy to control the electric control unit to retain the frozen frames of the first preset times corresponding to the preset category number according to the priority corresponding to the fault code from high to low.
- 6. A method of recording a frozen frame of an electronic control unit according to claim 3, characterized by controlling the electronic control unit to record the frozen frame based on a newly triggered fault code in the target manner, comprising: and under the condition that the recorded times of the target fault codes in the frozen frame recorded by the electronic control unit reach a second preset times, responding to the triggering of the target fault codes, and performing rolling recording according to the triggering time of the target fault codes from near to far, wherein the second preset times are used for representing the total times of the fault codes which can be recorded by the electronic control unit according to the second mode or the third mode.
- 7. A method of recording a frozen frame of an electronic control unit according to claim 3, characterized in that, in case the target pattern is the third pattern and the number of recorded fault code categories is greater than the preset number of categories, the method further comprises: Sequencing the triggered fault codes according to the priority to obtain a priority sequencing list; And controlling the electric control unit to keep frozen frames of a second preset times corresponding to the preset category number in the priority sorting list according to the priority corresponding to the fault code from high to low.
- 8. A method of recording a frozen frame of an electronic control unit according to claim 3, characterized in that, in case the target pattern is the second pattern and the number of recorded fault code categories is greater than the preset number of categories, the method further comprises: recording the extended frame data corresponding to the newly triggered fault code under the condition that the triggering frequency of the newly triggered fault code is smaller than that of each fault code corresponding to the recorded fault code type number; and when the triggering frequency of the newly triggered fault code is larger than the triggering frequency of any fault code corresponding to the recorded fault code type number, rolling and recording the frozen frame corresponding to the newly triggered fault code.
- 9. The method of recording a frozen frame of an electronic control unit according to any one of claims 1 to 8, characterized in that the method further comprises: In the case that the initial mode is the second mode or the third mode, in a preset time, responding to the fact that the triggering frequency of the newly triggered fault code is smaller than the preset frequency and the priority corresponding to the newly triggered fault code is smaller than the preset priority, and determining that the target mode is the first mode; and controlling the electronic control unit to reserve the frozen frame for the first preset times according to the trigger time from near to far.
- 10. An electronic device comprising a processor and a memory, wherein, A memory for storing a computer program; A processor for executing a program stored on a memory for implementing the method of any one of claims 1-9.
Description
Recording method of frozen frame of electronic control unit and electronic equipment Technical Field The embodiment of the application relates to the technical fields of vehicle technology and data storage, in particular to a method for recording frozen frames of an electronic control unit and electronic equipment. Background In the vehicle electronic control unit, the frozen frame data record is an important link of fault diagnosis and system maintenance. The frozen frame can capture the state of important parameters of the vehicle when a fault occurs, and is helpful for accurately analyzing the cause of the fault and improving the software of the electric control unit. Different electronic control units have significant differences in the recording capacity of frozen frame data due to differences in hardware configuration, including limitations in storage space. The electronic control unit with larger storage space can record the frozen frame data of multiple faults, and the electronic control unit with smaller storage space can record the frozen frame only once or for a limited number of times, so that the accuracy and the effectiveness of the electronic control unit for recording the frozen frame in the related technology are lower. Disclosure of Invention The embodiment of the application provides a method for recording a frozen frame of an electronic control unit and electronic equipment, and aims to solve the problems of low accuracy and low effectiveness of the recording of the frozen frame by the electronic control unit in the related technology. According to one aspect of the embodiment of the application, a method for recording a frozen frame of an electric control unit is provided, wherein the method comprises the steps of controlling the electric control unit to record the frozen frame according to an initial mode, responding to a switching instruction for switching the initial mode into a target mode, and modifying a writing value of a target data identifier of the electric control unit based on the switching instruction to switch the initial mode into the target mode, wherein the target data identifier is used for representing the data identifier for controlling the frozen frame recording mode of the electric control unit, the frozen frame recording mode comprises the initial mode or the target mode, the frozen frame recording mode is used for representing rolling recording according to one of information including trigger time, trigger frequency and priority of fault codes, and controlling the electric control unit to record the frozen frame according to the target mode. In the process of the electronic control unit performing frozen frame recording according to the initial mode, the method responds to the receiving of the switching instruction, and modifies the written value of the target data identifier of the electronic control unit based on the switching instruction so as to dynamically switch the initial mode to the target mode, thereby improving the adaptability and the flexibility of the electronic control unit in different application scenes. The freezing frame recording mode of the electric control unit is dynamically switched through the writing value of the target data identifier, and the freezing frame recording strategy of the electric control unit is adjusted through a more convenient target data identifier modification instruction, so that fault information with relatively short triggering time, relatively high triggering frequency or relatively high priority can be dynamically adjusted and preferentially recorded, and the recognition and the solution of the fault problem which needs to be focused are facilitated. And under the condition that the storage space of the electric control unit is limited, the frozen frame data is intelligently managed, so that the resource waste is avoided, the availability of fault data is ensured, and the efficiency of maintenance and fault resolution of the electric control unit is improved. In the embodiment of the application, the frozen frame recording mode comprises a first mode, a second mode or a third mode, wherein the first mode is used for showing the rolling record from near to far according to the triggering time, the second mode is used for showing the rolling record from high to low according to the triggering frequency, and the third mode is used for showing the rolling record from high to low according to the priority. In the setting, the multi-mode frozen frame recording mode provides flexible data management strategies for the electric control unit and can adapt to the requirements of different stages. The first mode is suitable for scenes such as a fault primary identification stage and the like, and ensures that newer data of faults are recorded preferentially, the second mode can help to rapidly locate high-frequency faults to be recorded preferentially, and the third mode can ensure that information of high-priority faults i