Search

CN-121996267-A - Brushing method and device for automobile electronic control unit, electronic equipment and medium

CN121996267ACN 121996267 ACN121996267 ACN 121996267ACN-121996267-A

Abstract

The application provides a method, a device, electronic equipment and a storage medium for refreshing an automobile electronic control unit, and relates to the technical field of automobile electronics. Analyzing the refreshing package to obtain a plurality of groups of refreshing instructions, wherein the groups of refreshing instructions comprise first refreshing instructions, sending the first refreshing instructions to the target chip, receiving reply information of the target chip, judging whether the refreshing data of the first refreshing instructions are identical with the target chip according to the reply information, and if the refreshing data are not identical with the target chip, sending other refreshing instructions in the groups of refreshing instructions to the target chip in sequence until the target chip is identical with the refreshing data of one group of refreshing instructions. The method provided by the application is beneficial to realizing the brushing of different chips under the same ECU firmware, and a plurality of chips are compatible with one brushing flow.

Inventors

  • WEI CAIJIN
  • WANG XIAOMENG
  • WEI MIN
  • YIN LIQIONG
  • GUO JIANFENG

Assignees

  • 上汽通用五菱汽车股份有限公司

Dates

Publication Date
20260508
Application Date
20251217

Claims (10)

  1. 1. A method of swiping an electronic control unit of a vehicle, the method comprising: acquiring a corresponding refreshing package according to the software version information of a vehicle type and a target ECU, wherein the target ECU comprises a plurality of chips, and the chips comprise target chips; Analyzing the refreshing package to obtain a plurality of groups of refreshing instructions, wherein the plurality of groups of refreshing instructions comprise a first refreshing instruction; sending a first brushing instruction to the target chip; Receiving reply information of the target chip; Judging whether the brushing data of the first brushing instruction is matched with the target chip according to the reply information, and if not, sequentially sending other brushing instructions in the plurality of groups of brushing instructions to the target chip until the target chip is matched with the brushing data of one group of brushing instructions.
  2. 2. The method of claim 1, wherein the swipe data of the first swipe instruction includes an erase address and an erase length, and the reply message includes response information of the target chip to the erase address and the erase length; The step of judging whether the brushing data of the first brushing instruction is matched with the target chip according to the reply information comprises the following steps: If the response of the target chip to the erasing address and the erasing length is judged to pass according to the response information, the data of the first writing instruction is matched with the target chip; And if the response of the target chip to the erasing address and the erasing length is judged not to pass according to the response information, the data of the first writing instruction is not matched with the target chip.
  3. 3. The method of claim 1, wherein the step of determining the position of the substrate comprises, Before sending the first flush instruction to the target chip, the method further includes: Sending a brushing mode instruction to the target ECU so that the target ECU responds to the brushing mode instruction and enters a brushing session mode; transmitting a secure access request to the target ECU in response to the target ECU having entered a swipe session mode; And after the secure access request passes, executing the step of sending the first refreshing instruction to the target chip.
  4. 4. A method according to claim 3, characterized in that the method further comprises: and if the brushing data of the first brushing instruction is matched with the target chip, continuing to send the brushing instructions to other chips except the target chip.
  5. 5. The method according to claim 4, wherein the method further comprises: And after the brushing of the plurality of chips is completed, checking the brushing package.
  6. 6. The method of claim 5, wherein the method further comprises: and resetting the target ECU after the verification of the refreshing packet is passed, so that the target ECU exits the refreshing session mode.
  7. 7. The method of claim 2, wherein the step of determining the position of the substrate comprises, The swiping data of the first swiping instruction further comprises writing data.
  8. 8. A brusher device for an electronic control unit of a motor vehicle, comprising: The acquisition module is used for acquiring corresponding refreshing packets according to the software version information of the vehicle type and the target ECU, wherein the target ECU comprises a plurality of chips, and the chips comprise target chips; the analysis module is used for analyzing the refreshing package to obtain a plurality of groups of refreshing instructions, wherein the plurality of groups of refreshing instructions comprise a first refreshing instruction; the sending module is used for sending a first refreshing instruction to the target chip; The receiving module is used for receiving the reply information of the target chip; And the judging module is used for judging whether the brushing data of the first brushing instruction is matched with the target chip according to the reply information, and if the brushing data of the first brushing instruction is not matched with the target chip, sequentially sending other brushing instructions in the plurality of groups of brushing instructions to the target chip until the target chip is matched with the brushing data of one group of brushing instructions.
  9. 9. An electronic device comprising a processor and a memory for storing a computer program, the processor being adapted to run the computer program for implementing a method of swiping an electronic control unit of a vehicle according to any of claims 1-7.
  10. 10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements a method of swiping an electronic control unit of a vehicle according to any one of claims 1-7.

Description

Brushing method and device for automobile electronic control unit, electronic equipment and medium Technical Field The present application relates to the field of automotive electronics, and in particular, to a method and apparatus for brushing an automotive electronic control unit, an electronic device, and a storage medium. Background Along with the continuous development of intellectualization and electrodynamic performance in the automotive field and the increasing individual demands of users, the functions of the automotive ECU (Electronic Control Unit ) are more and more powerful, and at the same time, the methods for brushing the ECU are more and more, the types of automotive chip supplies in the market are more and more, and the technological level and firmware of each automotive chip are different from the upgrading requirements. Therefore, the brush-writing of the ECU becomes one of the important work contents of the core demands of the whole vehicle factories and the after-sales repair. The current method for brushing the ECU cannot distinguish the type and the version of the chip in the ECU firmware, only can brush the single chip under the same ECU firmware, and cannot brush the different chips under the same ECU firmware. When an ECU is equipped with different types and versions of chips, the current method of brushing the ECU risks brushing other chip software, resulting in failure of the ECU function or damage to the ECU. Disclosure of Invention The application provides a method, a device, electronic equipment and a storage medium for brushing an automobile electronic control unit, which are beneficial to realizing the brushing of different chips under the same ECU firmware, and a plurality of chips are compatible with one brushing flow. In a first aspect, the present application provides a method for brushing an electronic control unit of an automobile, including: Acquiring a corresponding refreshing package according to the software version information of the vehicle type and the target ECU, wherein the target ECU comprises a plurality of chips, and the plurality of chips comprise target chips; Analyzing the refreshing package to obtain a plurality of groups of refreshing instructions, wherein the plurality of groups of refreshing instructions comprise a first refreshing instruction; Sending a first brushing instruction to a target chip; receiving reply information of the target chip; Judging whether the brushing data of the first brushing instruction is matched with the target chip according to the reply information, and if the brushing data of the first brushing instruction is not matched with the target chip, sequentially sending other brushing instructions in the plurality of groups of brushing instructions to the target chip until the target chip is matched with the brushing data of one group of brushing instructions. In one possible implementation manner, the brushing data of the first brushing instruction includes an erasing address and an erasing length, and the reply information includes response information of the target chip to the erasing address and the erasing length; judging whether the brushing data of the first brushing instruction is matched with the target chip according to the reply information, comprising the following steps: If the response of the target chip to the erasing address and the erasing length is judged to pass according to the response information, the refreshing data of the first refreshing instruction are matched with the target chip; If the response of the target chip to the erasing address and the erasing length is judged not to pass according to the response information, the refreshing data of the first refreshing instruction are not matched with the target chip. In one possible implementation manner, before the first brushing instruction is sent to the target chip, the method further includes: sending a swiping mode instruction to the target ECU so that the target ECU responds to the swiping mode instruction and enters a swiping session mode; Transmitting a secure access request to the target ECU in response to the target ECU having entered the swipe session mode; After the secure access request passes, the step of sending a first flush instruction to the target chip is performed. In one possible implementation manner, the method further includes: If the data of the first refreshing instruction is matched with the target chip, continuing to send the refreshing instruction to other chips except the target chip. In one possible implementation, the method further includes checking the flush packet after the flushing of the plurality of chips is completed. In one possible implementation, after the verification of the flush packet passes, the target ECU is reset to cause the target ECU to exit the flush session mode. In one possible implementation, the first swipe instruction swipe data further includes write data. In a second aspect, the present applicat