CN-122019253-A - Brushing risk management and control method and device of electronic control unit, electronic equipment and storage medium
Abstract
The application relates to the technical field of management and control of the brushing risk of an electronic control unit, and discloses a method, a device, electronic equipment and a storage medium for managing and controlling the brushing risk of the electronic control unit. The application has the beneficial effects that the safety treatment authority of the abnormal brushing is moved up from the single electronic control unit to the centralized gateway, so that when the risk is detected, the gateway can implement local fusing by accurately cutting off external diagnosis connection, sending a safety exit instruction and the like on the premise of not triggering the target electronic control unit to reset or enter a bus closing state, thereby avoiding the risk of paralysis of the whole vehicle communication bus caused by the traditional mode and powerfully guaranteeing the continuous normal operation of key systems such as power, braking and the like.
Inventors
- XIE YANCHUN
- LI CHANGAN
- XIAO LINGCONG
Assignees
- 南昌市星纬软件开发有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251231
Claims (10)
- 1. A method for managing and controlling the risk of writing by an electronic control unit, characterized in that the method comprises the following steps: after the brushing session of the electronic control unit is established, the brushing process is monitored in real time; Judging whether a brushing risk exists or not based on the real-time monitoring; and if the brushing risk exists, fusing the brushing process through a centralized gateway.
- 2. The method for managing and controlling the risk of writing by an electronic control unit according to claim 1, wherein the step of monitoring the writing process in real time includes: Periodically sending a status reading request to the electronic control unit through the centralized gateway to acquire at least one hardware temperature parameter of the electronic control unit, wherein the hardware temperature parameter comprises at least one of chip junction temperature, circuit board temperature or environment temperature; and taking the result of the state reading request as the monitoring data of the real-time monitoring.
- 3. The method for managing and controlling the risk of writing by an electronic control unit according to claim 1, wherein the step of monitoring the writing process in real time includes: Carrying out validity check on a target address in a data writing request through the centralized gateway, wherein the validity check comprises judging whether the target address is in a preset valid address range of a memory of a written electronic control unit; And taking the result of the validity check as the monitoring data of the real-time monitoring.
- 4. The method for managing a risk of brushing an electronic control unit according to claim 1, wherein if there is a risk of brushing, the step of fusing the brushing process includes: evaluating a risk level of the swiping risk; obtaining a corresponding fusing mechanism according to the risk level: And controlling the corresponding data processing unit to perform fusing processing according to the fusing mechanism.
- 5. The method of claim 4, wherein the step of evaluating the risk level of the risk of brushing comprises: judging whether the target address is illegal or whether the hardware temperature parameter exceeds a first temperature threshold or whether the communication connection between the hardware temperature parameter and diagnostic equipment is abnormal or not; If yes, judging that the risk level is high; If not, monitoring whether the hardware temperature parameter exceeds a second temperature threshold value, wherein the second temperature threshold value is smaller than the first temperature threshold value; If yes, the risk level is judged.
- 6. The method for managing risk of flushing an electronic control unit according to claim 5, wherein the step of acquiring the corresponding fusing mechanism according to the risk level includes: When the risk level is judged to be high risk, a corresponding first fusing mechanism is acquired, wherein the first fusing mechanism comprises that the centralized gateway cuts off the current communication connection with external diagnostic equipment and sends an instruction for safely exiting a brushing session to a brushed electronic control unit; And when the risk level is judged to be the risk, acquiring a corresponding second fusing mechanism, wherein the second fusing mechanism comprises the steps of suspending forwarding of the data to be refreshed and generating alarm information by the centralized gateway.
- 7. The method for managing risk of flushing an electronic control unit according to claim 6, further comprising, after the step of controlling the corresponding data processing unit to perform the fusing process according to the fusing mechanism: continuously monitoring whether a decision condition triggering the risk level is eliminated; And if the judging condition is eliminated, controlling the centralized gateway to resume forwarding and refreshing data, wherein the resuming and forwarding and refreshing data is breakpoint continuous transmission which is continuously forwarded from a position where the forwarding and refreshing data is suspended.
- 8. A brushing risk management and control device for an electronic control unit, said device comprising: The monitoring module is used for monitoring the brushing process in real time after the brushing session of the electronic control unit is established; the judging module is used for judging whether the brushing risk exists or not based on the real-time monitoring; and the fusing module is used for fusing the brushing process through the centralized gateway if the brushing risk exists.
- 9. A computer readable storage medium, characterized in that a computer program is stored, which, when being executed by a processor, causes the processor to perform the steps of the method of controlling the risk of flushing of an electronic control unit according to any one of claims 1 to 7.
- 10. An electronic device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of controlling risk of flushing of an electronic control unit according to any one of claims 1 to 7.
Description
Brushing risk management and control method and device of electronic control unit, electronic equipment and storage medium Technical Field The present invention relates to the field of management and control of risk of electronic control units, and in particular, to a management and control method and apparatus for risk of electronic control units, an electronic device, and a storage medium. Background With the development of vehicle intellectualization, software flashing of an ECU (Electronic Control Unit ) is increasingly frequent. The exception handling mechanism in existing flushing processes has the serious disadvantage that when a flush fails, the system can typically only rely on the target ECU to perform a hardware reset or put it into a Bus-Off state to interrupt the communication. The simple and rough processing mode can lead to paralysis of a bus section where the ECU is located and even the whole communication network, so that normal message transmission of key systems such as power, braking and the like is blocked, and the safety risk of the whole vehicle-level function is caused. Disclosure of Invention Based on this, it is necessary to provide a method, a device, an electronic device and a storage medium for managing the risk of writing by an electronic control unit, aiming at the problem of managing the risk of writing by the existing electronic control unit. In a first aspect, the present application provides a method for managing and controlling risk of writing by an electronic control unit, the method comprising: after the brushing session of the electronic control unit is established, the brushing process is monitored in real time; Judging whether a brushing risk exists or not based on the real-time monitoring; and if the brushing risk exists, fusing the brushing process through a centralized gateway. Further, the step of monitoring the brushing process in real time includes: Periodically sending a status reading request to the electronic control unit through the centralized gateway to acquire at least one hardware temperature parameter of the electronic control unit, wherein the hardware temperature parameter comprises at least one of chip junction temperature, circuit board temperature or environment temperature; and taking the result of the state reading request as the monitoring data of the real-time monitoring. Further, the step of monitoring the brushing process in real time includes: Carrying out validity check on a target address in a data writing request through the centralized gateway, wherein the validity check comprises judging whether the target address is in a preset valid address range of a memory of a written electronic control unit; And taking the result of the validity check as the monitoring data of the real-time monitoring. Further, if there is a risk of brushing, the step of fusing the brushing process includes: evaluating a risk level of the swiping risk; obtaining a corresponding fusing mechanism according to the risk level: And controlling the corresponding data processing unit to perform fusing processing according to the fusing mechanism. Further, the step of evaluating the risk level of the risk of brushing includes: judging whether the target address is illegal or whether the hardware temperature parameter exceeds a first temperature threshold or whether the communication connection between the hardware temperature parameter and diagnostic equipment is abnormal or not; If yes, judging that the risk level is high; If not, monitoring whether the hardware temperature parameter exceeds a second temperature threshold value, wherein the second temperature threshold value is smaller than the first temperature threshold value; If yes, the risk level is judged. Further, the step of obtaining the corresponding fusing mechanism according to the risk level includes: When the risk level is judged to be high risk, a corresponding first fusing mechanism is acquired, wherein the first fusing mechanism comprises that the centralized gateway cuts off the current communication connection with external diagnostic equipment and sends an instruction for safely exiting a brushing session to a brushed electronic control unit; And when the risk level is judged to be the risk, acquiring a corresponding second fusing mechanism, wherein the second fusing mechanism comprises the steps of suspending forwarding of the data to be refreshed and generating alarm information by the centralized gateway. Further, after the step of controlling the corresponding data processing unit to perform the fusing processing according to the fusing mechanism, the method further includes: continuously monitoring whether a decision condition triggering the risk level is eliminated; And if the judging condition is eliminated, controlling the centralized gateway to resume forwarding and refreshing data, wherein the resuming and forwarding and refreshing data is breakpoint continuous transmission which is continu