ECU flashing control methods, devices, equipment, products and storage media

CN122569976APending Publication Date: 2026-08-14LAUNCH SOFTWARE DEV
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-08
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0003]然而,现有的ECU刷写具有较高的刷写失败的风险,影响用户的使用体验,增大用户的车辆售后成本

Benefits of technology

[0015]本申请实施例提供的ECU刷写控制方法、装置、设备、产品及存储介质,具有如下有效效果:在进行ECU刷写之前,通过对车辆进行检查,以使得该车辆满足ECU刷写的预设条件,在刷写过程中,获取车辆的电源的电压的波动信息,并基于该波动信息调整ECU刷写文件的下载速率,避免因ECU刷写文件的下载速率影响车辆的ECU刷写的条件,从而提升ECU刷写的成功率,提升用户体验,减少用户的车辆售后成本。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122569976A_ABST
    Figure CN122569976A_ABST
Patent Text Reader

Abstract

This application relates to the field of vehicle technology and provides an ECU flashing control method, apparatus, device, product, and storage medium. The method includes: in response to an ECU flashing command, acquiring first information; if the first information indicates that the vehicle meets preset conditions, downloading an ECU flashing file; during the downloading of the ECU flashing file, acquiring second information, and adjusting the download rate of the ECU flashing file based on the second information. The second information includes fluctuation information, which indicates the change in the vehicle's power supply voltage over a preset time. Before flashing the ECU, the vehicle is checked to ensure that it meets the preset conditions for ECU flashing. During the flashing process, the fluctuation information of the vehicle's power supply voltage is acquired, and the download rate of the ECU flashing file is adjusted based on the fluctuation information to avoid the download rate of the ECU flashing file affecting the vehicle's ECU flashing conditions, thereby improving the success rate of ECU flashing, enhancing the user experience, and reducing the user's vehicle after-sales costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, and in particular to an ECU flashing control method, device, equipment, product, and storage medium. Background Technology

[0002] The Electronic Control Unit (ECU) is the core component of an automotive electronic system. The quality and reliability of the ECU are crucial to driving safety, and its performance optimization is key to improving the driving experience and achieving energy conservation and emission reduction. To meet new requirements or for vehicle maintenance, it is often necessary to reprogram the ECU.

[0003] However, existing ECU flashing methods carry a high risk of failure, impacting user experience and increasing after-sales costs for users' vehicles. Summary of the Invention

[0004] This application provides an ECU flashing control method, apparatus, device, product, and storage medium to improve ECU flashing success rate, enhance user experience, and reduce users' vehicle after-sales costs.

[0005] To achieve the above objectives, this application adopts the following technical solution: Firstly, an ECU flashing control method is provided, including: In response to the ECU flashing command, obtain the first information; If the first information indicates that the vehicle meets the preset conditions, then download the ECU flashing file; During the download of the ECU flashing file, second information is obtained, and the download rate of the ECU flashing file is adjusted based on the second information. The second information includes fluctuation information, which is used to indicate the change of the vehicle's power supply voltage over a preset time.

[0006] Optionally, adjusting the download rate of the ECU flashing file based on the second information includes: if the fluctuation information indicates that the voltage of the vehicle's power supply changes by a first amount greater than or equal to a first fluctuation threshold within a preset time, then reducing the download rate of the ECU flashing file.

[0007] Optionally, the second information also includes the vehicle's communication quality information, which includes the proportion of error frames in the CAN bus; The step of adjusting the download rate of the ECU flashing file based on the second information includes: if the proportion of error frames in the CAN bus is a first value and the first value is greater than or equal to a first proportion threshold, then reduce the download rate of the ECU flashing file. If the proportion of error frames in the CAN bus is updated from the first value to the second value, and the second value is less than the second proportion threshold, then the download speed of the ECU flashing file is increased, where the first proportion threshold is greater than the second proportion threshold.

[0008] Optionally, the first information further includes the voltage of the vehicle's power supply and network quality information; the method further includes: if the voltage of the vehicle's power supply is within a first preset range and the network latency indicated by the network quality information is less than or equal to a latency threshold, then determining that the first information indicates that the vehicle meets preset conditions.

[0009] Optionally, the method further includes: after detecting an ECU flashing abnormality, obtaining the cause of the abnormality, and determining a corresponding execution strategy based on the cause of the abnormality.

[0010] Optionally, the method further includes: if the fluctuation information indicates that the voltage of the vehicle's power supply is updated from the first change amount to the second change amount within a preset time, and the second change amount is less than the second change threshold, then the download rate of the ECU flashing file is increased, wherein the first change threshold is greater than the second change threshold, and the first change amount is greater than the second change amount.

[0011] Secondly, an ECU flashing control device is provided, the ECU flashing control device comprising: The acquisition module is used to acquire initial information in response to ECU flashing commands; The download module is used to download the ECU flashing file if the first information indicates that the vehicle meets the preset conditions. An adjustment module is used to acquire second information during the download of the ECU flashing file, and adjust the download rate of the ECU flashing file based on the second information. The second information includes fluctuation information, which is used to indicate the change in the voltage of the vehicle's power supply over a preset time.

[0012] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the ECU flashing control method as in any optional implementation of the first aspect.

[0013] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the ECU flashing control method as described in any of the first claims.

[0014] Fifthly, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the steps of the ECU flashing control method as described in any of the first claims.

[0015] The ECU flashing control method, apparatus, device, product, and storage medium provided in this application have the following effective effects: Before flashing the ECU, the vehicle is inspected to ensure that it meets the preset conditions for ECU flashing. During the flashing process, the voltage fluctuation information of the vehicle's power supply is obtained, and the download rate of the ECU flashing file is adjusted based on the fluctuation information to avoid the download rate of the ECU flashing file affecting the conditions for ECU flashing, thereby improving the success rate of ECU flashing, enhancing the user experience, and reducing the user's vehicle after-sales costs. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application; Figure 2 A flowchart illustrating an ECU flashing control method provided in this application embodiment; Figure 3 A flowchart illustrating an ECU flashing control method provided in this application embodiment; Figure 4 This is a schematic diagram of an ECU flashing control device provided in an embodiment of this application. Detailed Implementation

[0017] It should be noted that the terminology used in the embodiments of this application is only for explaining specific embodiments of this application and is not intended to limit this application. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more, "at least one" or "one or more" means one, two or more. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0018] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0019] The Electronic Control Unit (ECU) is the core control component of a car, essentially the vehicle's "computer," responsible for key functions such as engine management, transmission control, and vehicle stability. ECU remapping, also known as ECU data flashing, refers to using external data flashing tools to send data to the ECU via the ECU communication network, enabling the management and updating of ECU data. In practice, ECU remapping has a high failure rate, impacting user experience and increasing after-sales costs for users.

[0020] Based on this, this application provides an ECU flashing control method. Before flashing the ECU, the vehicle is inspected, and flashing is performed only if the vehicle meets the preset conditions for ECU flashing. During the flashing process, the voltage fluctuation information of the vehicle's power supply is acquired, and the download rate of the ECU flashing file is adjusted based on this fluctuation information. This avoids the download rate of the ECU flashing file affecting the vehicle's ECU flashing conditions and also avoids flashing the ECU under conditions that are not met, thereby improving the success rate of ECU flashing, enhancing the user experience, and reducing the user's vehicle after-sales costs.

[0021] The ECU flashing control method provided in this application embodiment can be applied to electronic devices, such as smartphones, tablets, personal computers, and servers. In this application embodiment, the device used to implement the function of the electronic device can be called an electronic device. Alternatively, a device that enables the electronic device to implement the function can be installed in the electronic device, such as a chip system. The chip system can be composed of chips or include chips and other discrete components.

[0022] Figure 1 This is a schematic diagram of the structure of an electronic device shown in an embodiment of this application, such as... Figure 1As shown in the embodiments of this application, an electronic device 10 is provided. This electronic device 10 can specifically be a terminal device or a server. In some embodiments, the electronic device 10 can specifically be a central control module in a server, or its functions can be implemented by the central control module in the server. In some embodiments, the electronic device 10 can specifically be a central control module in a terminal device, or its functions can be implemented by the central control module in the terminal device. For example... Figure 1 As shown, the electronic device may include a processor 101, a memory 102, a communication bus 103, and a communication interface 104. The processor 101 is connected to the memory 102 and the communication interface 104 via the communication bus 103. It should be noted that... Figure 1 The illustrated device structure does not constitute a limitation on the electronic device 10. The electronic device 10 may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. This application embodiment does not limit this. The following is in conjunction with... Figure 1 A detailed description of each component of the electronic device 10 is provided.

[0023] The processor 101 can be a general-purpose central processing unit (CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, used to execute relevant programs to perform the steps performed by the electronic device in the ECU flashing control method described in the embodiments of this application. The processor 101 can also be an integrated circuit chip with signal processing capabilities. In implementation, each step of the ECU flashing control method of this application can be completed by the integrated logic circuits in the hardware of the processor 101 or by instructions in software form. The processor 101 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory 102. Processor 101 reads the information in memory 102 and, in conjunction with its hardware, executes the steps performed by the electronic device in the ECU flashing control method of the embodiments of this application. Memory 102 can be read-only memory (ROM), static storage medium, dynamic storage medium, or random access memory (RAM). Memory 102 can store programs and data, such as the program for the ECU flashing control method in the embodiments of this application. When the program stored in memory 102 is executed by processor 101, processor 101 executes the various steps performed by the electronic device in the ECU flashing control method of the embodiments of this application. Communication interface 104 uses a transceiver device, such as, but not limited to, a transceiver, to realize communication between electronic device 10 and other devices or communication networks.

[0024] Please see Figure 2 , Figure 2 This is a flowchart illustrating an ECU flashing control method provided in an embodiment of this application. The following describes the application of this ECU flashing control method. Figure 1Taking the electronic device shown as an example, the ECU flashing control method includes the following steps: S201, in response to the ECU flashing command, obtain the first information.

[0025] In one example, in scenarios where ECU remapping of a vehicle is required (such as vehicle repair), the user can input ECU remapping instructions into electronic devices (such as a diagnostic tool) by performing specific operations.

[0026] In one example, the first piece of information includes the voltage of the vehicle's power supply.

[0027] Before executing the ECU flashing command, a request can be sent through the vehicle's ECU to obtain the vehicle's power supply voltage, or the On-Board Diagnostics (OBD) pins can be directly measured to obtain the vehicle's power supply voltage.

[0028] In one example, the first information also includes network quality information for the vehicle, which indicates the network quality of the communication link between the electronic devices and the vehicle's ECU.

[0029] In one example, network quality information includes network latency and packet loss information for the communication link. The packet loss information is used to indicate whether packet loss exists in the network communication of the communication link, as well as the number of packets lost within a preset time period.

[0030] Specifically, electronic devices can determine network latency by sending measurement frames to the ECU, measuring the round-trip time between the measurement frames and the received response frames, and determining the packet loss rate by the difference between the number of measurement frames and the number of response frames.

[0031] In one example, the first piece of information also includes the ECU hardware version number.

[0032] S202. If the first information indicates that the vehicle meets the preset conditions, then download the ECU flashing file.

[0033] In one example, the first information is used to indicate the vehicle's operating status and operating environment.

[0034] In one example, the first information includes the voltage of the vehicle's power supply. If the voltage of the vehicle's power supply is within a first range, then it is determined that the vehicle meets the preset conditions. If the voltage of the vehicle's power supply is in the second range, a first indication message is generated. The first indication message is used to remind the user to stabilize the voltage of the vehicle's power supply before flashing the ECU. For example, by connecting the vehicle's power supply to a voltage regulator to stabilize the voltage of the vehicle's power supply. The value in the second range is less than the value in the first range.

[0035] If the vehicle's power supply voltage is within the third range, a second indication message is generated. This second indication message indicates that ECU rewriting is not allowed or that ECU rewriting is prohibited.

[0036] The Unified Diagnostic Services (UDS) protocol specifies a safe voltage range for vehicles of [9V, 16V]. However, in real-world scenarios, ECU rewriting success rates are higher when the vehicle's power supply voltage is greater than or equal to 13V. When the vehicle's power supply voltage is greater than 12.5V but less than 13V, insufficient voltage margin can lead to rewriting failures due to transient voltage drops. When the vehicle's power supply voltage is less than 12.5V, the success rate of ECU rewriting failures is relatively high.

[0037] In one example, the first range is [13V, 16V], the second range is [12.5V, 13V], and the third range is the voltage of the vehicle's power supply, which is less than 12.5V.

[0038] In one example, when the vehicle's power supply voltage is in a first range, a green light illuminates to indicate that a preset condition is met; when the vehicle's power supply voltage is in a second range, a yellow light illuminates to indicate that voltage stabilization is required; and when the vehicle's power supply voltage is in a third range, a red light illuminates to indicate that the preset condition is not met and ECU remapping is prohibited. By setting three ranges and assigning corresponding indicators to voltages within each range, forced ECU remapping due to low voltage can be avoided, preventing ECU remapping failure.

[0039] For example, if the first information includes the vehicle's network quality information, the network quality information includes network latency and packet loss information; If the network latency is less than or equal to the latency threshold and the packet loss rate is less than or equal to the packet loss threshold, then the vehicle is indicated to meet the preset conditions. If the network latency is greater than the latency threshold, or the packet loss rate is greater than the packet loss threshold, the vehicle is indicated to not meet the preset conditions.

[0040] One example is a latency threshold of 100 milliseconds.

[0041] In one example, if the first information includes the ECU hardware version number, the system checks whether an ECU flashing file matching the ECU hardware version number exists on the server. If an ECU flashing file matching the ECU hardware version number exists on the server, the system instructs the vehicle to meet the preset conditions. If no ECU flashing file matching the ECU hardware version number exists on the server, the vehicle does not meet the preset conditions and the ECU flashing file cannot be downloaded.

[0042] In one example, the first information includes the voltage of the vehicle's power supply, network quality information, and ECU hardware version number. If the voltage of the vehicle's power supply is within a first range, the network latency is less than or equal to a latency threshold, the packet loss rate is less than or equal to a packet loss threshold, and an ECU flashing file matching the ECU hardware version number exists on the server, then the vehicle is determined to meet the preset conditions.

[0043] S203. During the process of downloading the ECU flashing file, second information is obtained, and the download rate of the ECU flashing file is adjusted based on the second information. The second information includes fluctuation information, which is used to indicate the change of the vehicle's power supply voltage over a preset time.

[0044] One example is that during the process of downloading the ECU flashing file, a second piece of information is periodically acquired to enable real-time monitoring of the vehicle's status during the ECU flashing file download process.

[0045] In one example, voltage fluctuation information is used to indicate the voltage change of the vehicle's power supply within a preset time period. For example, the voltage of the vehicle's power supply is collected on a period of one second, and the absolute value of the difference between two voltages between two adjacent seconds is obtained as the voltage change value.

[0046] For example, if the fluctuation information indicates that the voltage of the vehicle's power supply changes by a first amount greater than or equal to a first fluctuation threshold within a preset time, the download rate of the ECU flashing file is reduced.

[0047] For example, if the fluctuation information indicates that the voltage of the vehicle's power supply changes by a first amount greater than or equal to a first fluctuation threshold within a preset time, the download rate of the ECU flashing file is set to 0 to avoid ECU flashing failure due to low voltage.

[0048] In one example, if the fluctuation information indicates that the vehicle's power supply voltage changes from a first change to a second change within a preset time, and the second change is less than a second fluctuation threshold, then the download speed of the ECU flashing file is increased, where the first fluctuation threshold is greater than the second fluctuation threshold. Thus, when the vehicle's power supply voltage is detected to be within a normal fluctuation range, the download speed of the ECU flashing file can be increased.

[0049] In one example, the second information also includes vehicle communication quality information, which reduces the download rate of the ECU flashing file when the vehicle's communication quality is poor, and increases the download rate of the ECU flashing file when the vehicle's communication quality is good.

[0050] The Controller Area Network (CAN) protocol is a multi-master serial communication bus that can be deployed in various parts of a vehicle. When a node on the bus detects a frame format error, it sends an error frame to notify other nodes.

[0051] In one example, communication quality information includes the percentage of error frames in the CAN bus. If the percentage of error frames in the CAN bus is a first value and the first value is greater than or equal to a first percentage threshold, then the download rate of the ECU flashing file is reduced.

[0052] For example, if the proportion of error frames in the CAN bus is greater than a first proportion threshold, the download rate of the ECU flashing file is reduced by a specific ratio, for example, the download rate of the ECU flashing file is set to 0.5 or 0.25 of the current download rate of the ECU flashing file.

[0053] For example, if the first threshold is 3%, the download rate of the ECU flashing file is set to 0, that is, the ECU flashing process is paused.

[0054] For example, if the proportion of erroneous frames in the CAN bus changes from a first value to a second value, and the second value is less than a second proportion threshold, then the download speed of the ECU flashing file is increased, where the first proportion threshold is greater than the second proportion threshold. Thus, after the vehicle's network quality is restored, the download speed of the ECU flashing file can be increased.

[0055] In one example, the first percentage threshold ranges from 0.1% to 1%.

[0056] For example, if the proportion of error frames in the CAN bus is less than a second proportion threshold, and the proportion of error frames in the CAN bus does not change within a preset time, then the download rate of the ECU flashing file will not be changed.

[0057] Thus, under normal network conditions, the proportion of error frames in the CAN bus is relatively small due to low electromagnetic interference. However, if there is interference such as poor wiring harness contact or high-power equipment starting up nearby in the vehicle's network, the proportion of error frames in the CAN bus will be relatively large. If the ECU flashing file continues to be transmitted at a high rate, the proportion of error frames may increase further. By reducing the download rate of the ECU flashing file, communication can be restored, thereby improving the success rate of ECU flashing.

[0058] In one example, if the first information includes the vehicle's network quality information, then before downloading the ECU flashing file, the initial download rate of the ECU flashing file is determined based on the first information, and the ECU flashing file is downloaded based on the initial download rate.

[0059] Therefore, before ECU remapping, an initial vehicle inspection is performed, and ECU remapping is only performed on vehicles that meet preset conditions. During the ECU remapping process, the vehicle's status is monitored, and the download rate of the ECU remapping file is adjusted based on the vehicle's status to change the time window for ECU remapping. This ensures that the vehicle meets the preset conditions during the ECU remapping time window, improving the success rate of ECU remapping, enhancing the user experience, and reducing the user's after-sales vehicle costs.

[0060] In one example, an electronic device sends a Unified Diagnostic Service (UDS) request to an ECU. If the ECU's response exceeds a time threshold, a service timeout is determined, which in turn indicates an ECU flashing anomaly.

[0061] In one example, during the flashing process, the electronic device sends heartbeat information to the ECU at a specific frequency (e.g., once per second). If no response information is received from the ECU for the heartbeat information within a preset number of consecutive time thresholds, it is determined that the communication link is interrupted, that is, the ECU flashing is abnormal.

[0062] One example of an ECU flashing error is that the ECU download progress stops.

[0063] In one example, after the electronic device sends the ECU flashing file to the ECU, the download progress is determined based on the number of bytes transferred, where the download progress is the ratio of the number of bytes transferred to the total number of bytes in the ECU flashing file.

[0064] One example involves detecting an ECU flashing anomaly, identifying the cause of the anomaly, and then determining the appropriate action strategy based on that cause. Since ECU flashing anomalies can have multiple causes, determining the corresponding action strategy based on the cause can reduce the risk of uncontrollable bricking during the ECU flashing process.

[0065] One example is determining the execution strategy based on a mapping relationship and the cause of the exception, where the mapping relationship describes the execution strategy corresponding to each type of exception.

[0066] For example, if the cause of the anomaly is determined to be a large voltage waveguide of the vehicle's power supply based on the first and second information, the determined execution strategy is to generate an anomaly prompt message to remind the user that the power supply may have poor contact and that the power supply wiring needs to be checked.

[0067] One example is determining the cause of the anomaly based on first and second information. Since the first information indicates the vehicle's state before ECU remapping, and the second information indicates the vehicle's state during the ECU remapping process, combining both allows for an accurate determination of the vehicle's actual state, thus enabling the precise identification of the cause of the ECU remapping failure based on the vehicle's actual condition.

[0068] For example, if the error is due to a failed verification, the strategy is to re-download the ECU flashing file.

[0069] The ECU calculates a checksum from the received ECU flashing file and compares the result with the checksum sent by the electronic device. If they match, the ECU returns a positive response, indicating that the data in the flashing file is correct. If they differ, the ECU returns a negative response, indicating that the data in the flashing file is incorrect, i.e., the checksum has failed.

[0070] For example, if the error is due to a failed verification, it is necessary to re-download the ECU flashing file and re-flash the downloaded ECU flashing file into the ECU.

[0071] For example, if the cause of the anomaly is that the ECU fails to respond to a service request from an electronic device within a preset time, the vehicle's system is guided into Boot mode.

[0072] For example, a service request is sent to the vehicle's system, forcing the ECU hardware to reset. The moment the ECU is powered back on, its built-in bootloader will run first and check the preset flash request flag. If the flag is set, the bootloader will not jump to the main program, but will remain in bootloader mode and wait for the diagnostic equipment to send new program data.

[0073] In one example, after ECU remapping is completed and the remapping result is obtained, a first variation threshold and / or a second variation threshold are updated based on the first information, the second information, and the ECU remapping result. Thus, after obtaining the remapping result, the voltage fluctuation information corresponding to the remapping result is determined, and the corresponding first variation threshold and / or second variation threshold are adjusted based on the remapping result. This allows subsequent ECU remapping of other vehicles to be performed based on the adjusted first variation threshold and / or second variation threshold, thereby improving the success rate of ECU remapping for other vehicles.

[0074] For example, if the write result fails, the first and / or second change thresholds are reduced to improve the success rate by adjusting the detection granularity.

[0075] Please see Figure 3 , Figure 3 This is a schematic diagram of an ECU flashing control process provided in an embodiment of this application. Figure 3 The steps include: S301 to S304.

[0076] S301. In response to the ECU flashing command, obtain first information, which includes the voltage of the vehicle's power supply, the vehicle's network quality information, and the ECU hardware version number. The vehicle's network quality information includes network latency and packet loss information.

[0077] S302. If the first information indicates that the vehicle meets the preset conditions, then download the ECU flashing file.

[0078] For example, first determine the range of the vehicle's power supply voltage. If the vehicle's power supply voltage is in the second range, then generate a first indication message; if the vehicle's power supply voltage is in the third range, then generate a second indication message. If the voltage of the vehicle's power supply is in the first range, then determine the range of the packet loss threshold indicated by the network latency and packet loss information. If the network latency is greater than the latency threshold, or the packet loss rate is greater than the packet loss threshold, the vehicle is indicated to not meet the preset conditions. If the network latency is less than or equal to the latency threshold and the packet loss rate is less than or equal to the packet loss threshold, the system checks if an ECU flashing file matching the ECU hardware version number exists on the server. If an ECU flashing file matching the ECU hardware version number exists on the server, the system instructs the vehicle to meet the preset conditions. If no ECU flashing file matching the ECU hardware version number exists on the server, the vehicle does not meet the preset conditions and the ECU flashing file cannot be downloaded.

[0079] S303. During the process of downloading the ECU flashing file, second information is obtained, and the download rate of the ECU flashing file is adjusted based on the second information. The second information includes fluctuation information and vehicle communication quality information. The fluctuation information is used to indicate the change of the vehicle's power supply voltage over a preset time. The communication quality information includes the proportion of error frames in the CAN bus.

[0080] For example, if the fluctuation information indicates that the voltage of the vehicle's power supply changes by a first amount greater than or equal to a first fluctuation threshold within a preset time, the download rate of the ECU flashing file is reduced. If the fluctuation information indicates that the voltage of the vehicle's power supply is updated from a first change amount to a second change amount within a preset time, and the second change amount is less than a second change threshold, then the download speed of the ECU flashing file is increased. If the proportion of error frames in the CAN bus is the first value and the first value is greater than or equal to the first proportion threshold, then reduce the download speed of the ECU flashing file. If the percentage of error frames in the CAN bus is updated from the first value to the second value, and the second value is less than the second percentage threshold, then the download speed of the ECU flashing file is increased, and the first percentage threshold is greater than the second percentage threshold.

[0081] S304. Obtain the ECU flashing result, and update the first change threshold and / or the second change threshold based on the first information, the second information and the ECU flashing result.

[0082] The ECU flashing control device provided in the embodiments of this application will be described next.

[0083] Figure 4 This is a schematic diagram of an ECU flashing control device provided in an embodiment of this application. This ECU flashing control device can be deployed in the aforementioned electronic equipment. For example... Figure 4 As shown, the ECU flashing control device includes: The acquisition module is used to acquire initial information in response to ECU flashing commands; The download module is used to download the ECU flashing file if the first information indicates that the vehicle meets the preset conditions. An adjustment module is used to acquire second information during the download of the ECU flashing file, and adjust the download rate of the ECU flashing file based on the second information. The second information includes fluctuation information, which is used to indicate the change in the voltage of the vehicle's power supply over a preset time.

[0084] Optionally, the adjustment module is further configured to: if the fluctuation information indicates that the voltage of the vehicle's power supply changes by a first amount greater than or equal to a first fluctuation threshold within a preset time, then reduce the download rate of the ECU flashing file.

[0085] Optionally, the second information also includes the vehicle's communication quality information, which includes the proportion of error frames in the CAN bus; The adjustment module is further configured to: if the proportion of error frames in the CAN bus is a first value and the first value is greater than or equal to a first proportion threshold, then reduce the download rate of the ECU flashing file; If the proportion of error frames in the CAN bus is updated from the first value to the second value, and the second value is less than the second proportion threshold, then the download speed of the ECU flashing file is increased, where the first proportion threshold is greater than the second proportion threshold.

[0086] Optionally, the first information further includes the voltage of the vehicle's power supply and network quality information; the device further includes: a determining module, configured to determine that the first information indicates that the vehicle meets preset conditions if the voltage of the vehicle's power supply is within a first preset range and the network latency indicated by the network quality information is less than or equal to a latency threshold.

[0087] Optionally, the determining module is further configured to: after detecting an ECU flashing abnormality, obtain the cause of the abnormality, and determine the corresponding execution strategy based on the cause of the abnormality.

[0088] Optionally, the adjustment module is further configured to: if the fluctuation information indicates that the voltage of the vehicle's power supply is updated from the first change amount to the second change amount within a preset time, and the second change amount is less than the second change threshold, then increase the download rate of the ECU flashing file, wherein the first change threshold is greater than the second change threshold, and the first change amount is greater than the second change amount.

[0089] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units is merely an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the power supply control device can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0090] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.

[0091] This application provides a computer program product that, when run on an electronic device, enables the electronic device to perform the steps described in the various method embodiments above.

[0092] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.

[0093] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0094] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

[0095] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An ECU flashing control method, characterized in that, The method includes: In response to the ECU flashing command, obtain the first information; If the first information indicates that the vehicle meets the preset conditions, then download the ECU flashing file; During the download of the ECU flashing file, second information is obtained, and the download rate of the ECU flashing file is adjusted based on the second information. The second information includes fluctuation information, which is used to indicate the change of the vehicle's power supply voltage over a preset time.

2. The method according to claim 1, characterized in that, The step of adjusting the download speed of the ECU flashing file based on the second information includes: If the fluctuation information indicates that the voltage change of the vehicle's power supply within a preset time is greater than or equal to a first fluctuation threshold, then the download rate of the ECU flashing file is reduced.

3. The method according to claim 1 or 2, characterized in that, The second information also includes the vehicle's communication quality information, which includes the percentage of error frames in the CAN bus; The step of adjusting the download speed of the ECU flashing file based on the second information includes: If the proportion of error frames in the CAN bus is a first value and the first value is greater than or equal to a first proportion threshold, then the download rate of the ECU flashing file is reduced. If the proportion of error frames in the CAN bus is updated from the first value to the second value, and the second value is less than the second proportion threshold, then the download speed of the ECU flashing file is increased, where the first proportion threshold is greater than the second proportion threshold.

4. The method according to claim 1, characterized in that, The first information also includes the voltage of the vehicle's power supply and network quality information; The method further includes: If the voltage of the vehicle's power supply is within a first preset range and the network latency indicated by the network quality information is less than or equal to a latency threshold, then it is determined that the first information indicates that the vehicle meets the preset conditions.

5. The method according to claim 1, characterized in that, The method further includes: After detecting an ECU flashing anomaly, the cause of the anomaly is obtained, and the corresponding execution strategy is determined based on the cause of the anomaly.

6. The method according to claim 2, characterized in that, The method further includes: If the fluctuation information indicates that the voltage of the vehicle's power supply is updated from the first change amount to the second change amount within a preset time, and the second change amount is less than the second change threshold, then the download speed of the ECU flashing file is increased, where the first change threshold is greater than the second change threshold, and the first change amount is greater than the second change amount.

7. An ECU flashing control device, characterized in that, The ECU flashing control device includes: The acquisition module is used to acquire initial information in response to ECU flashing commands; The download module is used to download the ECU flashing file if the first information indicates that the vehicle meets the preset conditions. An adjustment module is used to acquire second information during the download of the ECU flashing file, and adjust the download rate of the ECU flashing file based on the second information. The second information includes fluctuation information, which is used to indicate the change in the voltage of the vehicle's power supply over a preset time.

8. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method as described in any one of claims 1 to 7.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.