Electric vehicle ECU software upgrading method and system
By classifying the ECU software upgrade package into emergency and non -emergency software packages, priority processing emergency problems, solving the problem of emergency or key issues in existing technologies, improving the efficiency and security of upgrade, while taking into account users, both users have taken into account users. Experience.
Patent Information
- Application Number
- CN202411729182.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-01-24
AI Technical Summary
The existing ECU upgrade methods for electric vehicles are the same as those for small problems, and there is no distinction between primary and secondary, resulting in emergency or critical issues that cannot be dealt with in a timely manner, which can easily cause safety hazards.
Provide an ECU software upgrade method for electric vehicles. By receiving uploaded ECU software upgrade packages, it is divided into emergency software packages and non -emergency software packages. Priority processing emergency software packages to ensure timely response and processing may cause the vehicle to safely break the anchor class. The key issues of failure.
By dividing emergency and non -emergency software packages, the priority management of upgrade tasks has been realized, the efficiency and security of upgrade are improved, the risk of being delayed by emergency issues is avoided, and the user experience is taken into account.
Smart Images

Figure CN119356712A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electric vehicles, specifically to the field of electric vehicle ECU upgrade, and in particular to an electric vehicle ECU software upgrade method and system. Background Art
[0002] With increasing investment and support for electric vehicles, and higher recognition of electric vehicles, more and more people are starting to buy electric vehicles, which has led to an increase in the number of electric vehicles every year. The degree of electrification and intelligence in the four modernizations of electric vehicles has also increased accordingly, and the concept of "software-defined cars" has become more mature. There are more and more ECUs (electronic control units) with software functions in electric vehicles, and the number and frequency of ECU software upgrades have exploded. There is a need for a large number of different ECUs to be flashed with software in the OEM production lines and after-sales market.
[0003] Currently, most electric vehicle ECU upgrades can only be performed in the order of uploading upgrade packages. Major and minor issues are upgraded in the same way, with no priority. This will result in urgent or critical issues not being handled in a timely manner, while some smaller or less important issues occupy upgrade resources.
[0004] It can be seen from this that the existing electric vehicle ECU upgrade method, since the upgrade method for major problems and minor problems is the same, there is no distinction between primary and secondary, resulting in urgent or critical problems not being handled in a timely manner, which can easily lead to safety hazards. Summary of the invention
[0005] The present invention aims to provide an electric vehicle ECU software upgrade method and system to solve the technical problem that in the existing electric vehicle ECU upgrade method, major problems and minor problems are upgraded in the same way without distinction of priority, resulting in urgent or critical problems not being handled in a timely manner, which easily leads to safety hazards.
[0006] In order to achieve the above object, the present invention adopts the following technical solution: In a first aspect, the present invention provides an electric vehicle ECU software upgrade method, comprising: Receive uploaded ECU software upgrade package; Divide the received ECU software upgrade packages into emergency software packages and non-emergency software packages; If the ECU software upgrade package is an emergency software package, after detecting that the upgrade conditions are met, an emergency software package upgrade instruction is sent to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; If the ECU software upgrade package is a non-emergency software package, an upgrade prompt message is output, and after receiving a confirmation upgrade instruction, a non-emergency software package upgrade instruction is sent to execute the upgrade process of the ECU corresponding to the non-emergency software package according to the upgrade instruction; The emergency software package is used to repair the problem that causes the whole vehicle to fail.
[0007] Furthermore, if the ECU software upgrade package is a non-emergency software package, a polling method is used to periodically detect the flag bit corresponding to each ECU; if the flag bit is detected to be 0, an upgrade prompt message is output; if the flag bit is 1, it is skipped.
[0008] Furthermore, the flag bit is used to characterize the update status of each ECU, wherein, if the current ECU has been upgraded, the flag bit is 1; if the current ECU needs to be upgraded, the flag bit is 0; when a newly uploaded ECU software upgrade package is detected, the flag bit of the corresponding ECU is updated from 1 to 0.
[0009] Furthermore, the non-urgent software package includes a paid software package; when the received non-urgent software package is a paid software package, a payment interface is output, and a paid software package upgrade process is executed according to a payment success instruction.
[0010] Furthermore, the specific steps of the paid software package upgrade process are as follows: According to the payment success instruction, output prompt information whether to upgrade immediately; If an immediate upgrade confirmation instruction is received, the ECU corresponding to the paid software package is upgraded; otherwise, after the upgrade conditions are met, the ECU corresponding to the paid software package is upgraded.
[0011] Furthermore, the ECU upgrade process includes: Verify the identification bit in the ECU software upgrade package to be flashed; After verification, the original program is copied and stored in the preset area; Flash the ECU using the emergency software package or non-emergency software to be flashed; When the flashing fails, the flashing failure information is output, and the original program stored in the preset area is immediately assigned and continues to run according to the original program.
[0012] Furthermore, the process of uploading the ECU software upgrade package includes: Verify the obtained upload password with the preset password of the corresponding ECU; After successful verification, the identification bit of the ECU software upgrade package to be uploaded is matched with the identification bit of the original program in the corresponding ECU; After the matching is successful, upload the ECU software upgrade package and replace the original software package.
[0013] Furthermore, the ECU software upgrade packages corresponding to each ECU are stored in different partitions according to a preset order; the ECU includes at least a VCU, an MCU and a BMS.
[0014] In a second aspect, the present invention provides an electric vehicle ECU software upgrade system, comprising: Receiving module, used to receive the uploaded ECU software upgrade package; A division module, used for dividing the received ECU software upgrade package into an emergency software package and a non-emergency software package; The emergency software package upgrade module is used to send an emergency software package upgrade instruction if the ECU software upgrade package is an emergency software package, after detecting that the upgrade conditions are met, so as to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; The non-urgent software package upgrade module is used to output upgrade prompt information if the ECU software upgrade package is a non-urgent software package, and after receiving the confirmation upgrade instruction, send the non-urgent software package upgrade instruction to execute the upgrade process of the ECU corresponding to the non-urgent software package according to the upgrade instruction; The emergency software package is used to repair the problem that causes the whole vehicle to fail.
[0015] Furthermore, it also includes: The flag bit update module is used to use the flag bit to represent the update status of each ECU. If the current ECU has been upgraded, the flag bit is 1; if the current ECU needs to be upgraded, the flag bit is 0; when a newly uploaded ECU software upgrade package is detected, the flag bit of the corresponding ECU is updated from 1 to 0; A paid software package upgrade module, used for outputting a payment interface when the received non-urgent software package is a paid software package, and executing a paid software package upgrade process according to a payment success instruction; Upgrade software package upload module, used to upload ECU software upgrade package; The software storage module is used to store the ECU software upgrade packages corresponding to each ECU in different partitions according to a preset order.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides an electric vehicle ECU software upgrade method, which first receives an uploaded ECU software upgrade package; divides the received upgrade package according to the urgency of the problem, and clearly divides it into an emergency software package and a non-emergency software package, thereby realizing priority management of the upgrade task; for the emergency software package, after detecting that the upgrade conditions are met, immediately sends an emergency software package upgrade instruction to ensure that the key problems that may cause the safety breakdown of the whole vehicle can be quickly responded to and handled. This instant response mechanism greatly improves the upgrade efficiency and safety, and effectively avoids the risk of delayed processing of emergency problems; for non-emergency software packages, the method adopts a more humane processing method; first outputs upgrade prompt information to give users full right to know and right to choose; after receiving the user's confirmation upgrade instruction, sends the non-emergency software package upgrade instruction and executes the corresponding upgrade process; this processing method not only respects the user's wishes, but also avoids unnecessary upgrade interruptions and improves user experience; the upgrade method divides the emergency software package into non-emergency software packages and adopts corresponding upgrade strategies to realize priority management of upgrade tasks, improve upgrade efficiency and safety, and take into account user experience at the same time.
[0017] Preferably, in the present invention, a polling method is adopted to periodically detect the flag bit corresponding to each ECU, thereby achieving real-time monitoring of the ECU upgrade status. By detecting the status of the flag bit, repeated upgrades and unnecessary interruptions are avoided, thereby improving the upgrade efficiency.
[0018] Preferably, in the present invention, a flag is used to characterize the update status of each ECU, so that the system can clearly identify which ECUs have been upgraded and which need to be upgraded; this mechanism helps to achieve more accurate upgrade management and avoid confusion and errors during the upgrade process.
[0019] Preferably, in the present invention, the current ECU upgrade system does not have the function of upgrading paid software. If customers want to upgrade certain functions, they can only go to 4S stores, which brings great inconvenience to customers. This method subdivides non-emergency software packages into paid software packages and introduces a payment interface, providing an online upgrade payment function mechanism, which greatly improves convenience and thus improves user experience.
[0020] Further preferably, in the present invention, for paid software packages, options of immediate upgrade and delayed upgrade are provided, allowing users to make choices based on their needs and schedules. This flexibility improves user satisfaction and participation.
[0021] Preferably, in the present invention, during the ECU upgrade process, the reliability and security of the upgrade process are ensured by verifying the identification bit, copying the original program, flashing the new program, and the rollback mechanism in case of failure; this mechanism avoids problems such as system crash or data loss caused by upgrade failure.
[0022] Preferably, in the present invention, when uploading the ECU software upgrade package, the legitimacy and accuracy of the uploading process are ensured through password verification and identification bit matching mechanism; this mechanism helps to prevent malicious attacks and illegal operations, and protects the safety of the electric vehicle system.
[0023] Preferably, in the present invention, the ECU software upgrade packages corresponding to each ECU are stored in different partitions in a preset order, so as to achieve orderly management and efficient access to the upgrade packages; this mechanism helps to reduce confusion and errors in the upgrade process and improve the upgrade efficiency; and the software upgrade method can achieve unified upgrade of each ECU, so that the whole vehicle shares a system. This not only increases the complexity of development, but also leads to a waste of development resources; a unified upgrade system can simplify the process, improve efficiency, and reduce repeated development.
[0024] The present invention also provides an electric vehicle ECU software upgrade system, which includes a receiving module, a division module, an emergency software package upgrade module and a non-emergency software package upgrade module; the system uses the division module to divide the emergency software package and the non-emergency software package, and adopts corresponding upgrade strategies to achieve priority management of upgrade tasks, improve upgrade efficiency and safety, and take into account user experience.
[0025] Preferably, in the present invention, the upgrade system also includes a flag update module, a paid software package upgrade module, an upgrade software package upload module and a software storage module; the corresponding functions of these modules make the system more complete, flexible and powerful, and can meet the needs of different users and scenarios; at the same time, these functions also help to improve the scalability and maintainability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A working diagram of an electric vehicle ECU software upgrade system provided by an embodiment of the present invention; Figure 2 A flowchart of an electric vehicle ECU software upgrade method provided by the present invention; Figure 3 The present invention provides a structural schematic diagram of an electric vehicle ECU software upgrade system. DETAILED DESCRIPTION
[0027] Example 1 As described in the background technology, currently, most electric vehicle ECU upgrades can only be performed in the order of uploading upgrade packages. Major and minor problems are upgraded in the same way, without any distinction between primary and secondary. This will result in urgent or critical problems not being handled in a timely manner, while some smaller or less important problems occupy upgrade resources.
[0028] In order to solve the above problems, the present invention provides an electric vehicle ECU software upgrade method. The upgrade method can reasonably divide major problems and minor problems, ensuring that urgent or critical problems can be handled in a timely manner, thereby improving the safety performance of the electric vehicle.
[0029] This embodiment provides an electric vehicle ECU software upgrade method, including: Receive uploaded ECU software upgrade package; The received ECU software upgrade packages are divided into emergency software packages and non-emergency software packages; among them, the emergency software packages are used to repair the problems that cause vehicle installation failures.
[0030] If the ECU software upgrade package is an emergency software package, after detecting that the upgrade conditions are met, an emergency software package upgrade instruction is sent to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; If the ECU software upgrade package is a non-emergency software package, an upgrade prompt message is output, and after receiving a confirmation upgrade instruction, a non-emergency software package upgrade instruction is sent to execute the upgrade process of the ECU corresponding to the non-emergency software package according to the upgrade instruction; In this embodiment, the method first receives the uploaded ECU software upgrade package; divides the received upgrade package according to the urgency of the problem, and clearly divides it into emergency software packages and non-emergency software packages, thereby realizing priority management of the upgrade task; for the emergency software package, after detecting that the upgrade conditions are met, the emergency software package upgrade instruction is immediately sent to ensure that the key problems that may cause the safety breakdown of the whole vehicle can be quickly responded to and handled. This instant response mechanism greatly improves the upgrade efficiency and safety, and effectively avoids the risk of delayed handling of emergency problems; for non-emergency software packages, the method adopts a more humane processing method; first outputs the upgrade prompt information, giving the user full right to know and right to choose; after receiving the user's confirmation upgrade instruction, the non-emergency software package upgrade instruction is sent to execute the corresponding upgrade process; this processing method not only respects the user's wishes, but also avoids unnecessary upgrade interruptions and improves the user experience; this upgrade method divides the emergency software package into non-emergency software packages and adopts corresponding upgrade strategies to realize priority management of the upgrade task, improve the upgrade efficiency and safety, and take into account the user experience.
[0031] In this embodiment, the process of uploading the ECU software upgrade package includes: The obtained upload password is verified with the preset password of the corresponding ECU; after successful verification, the identification bit of the ECU software upgrade package to be uploaded is matched with the identification bit of the original program in the corresponding ECU; after successful matching, the ECU software upgrade package is uploaded and the original software package is replaced.
[0032] It can be seen that when uploading the ECU software upgrade package, the legality and accuracy of the upload process are ensured through password verification and identification bit matching mechanism; this mechanism helps prevent malicious attacks and illegal operations and protects the safety of the electric vehicle system.
[0033] In the process of uploading the ECU software upgrade package, the uploaded ECU software upgrade package is stored in different partitions in a preset order, realizing orderly management and efficient access to the upgrade package; this mechanism helps to reduce confusion and errors in the upgrade process and improve upgrade efficiency; and the use of this software upgrade method can realize the unified upgrade of each ECU, so that the whole vehicle shares a system. This not only increases the complexity of development, but also leads to a waste of development resources; a unified upgrade system can simplify the process, improve efficiency, and reduce repeated development. Among them, ECU includes at least VCU, MCU and BMS.
[0034] In this embodiment, when the received ECU software upgrade package is classified as a non-emergency software package, a polling method is adopted to periodically detect the flag bit corresponding to each ECU; if the flag bit is detected to be 0, an upgrade prompt message is output; if the flag bit is 1, it is skipped; the flag bit corresponding to each ECU is periodically detected by polling, thereby realizing real-time monitoring of the ECU upgrade status. By detecting the status of the flag bit, repeated upgrades and unnecessary interruptions are avoided, thereby improving the upgrade efficiency.
[0035] In this embodiment, the above-mentioned flag bit is used to characterize the update status of each ECU, wherein, if the current ECU has been upgraded, the flag bit is 1; if the current ECU needs to be upgraded, the flag bit is 0; when a newly uploaded ECU software upgrade package is detected, the flag bit of the corresponding ECU is updated from 1 to 0. The introduction of the flag bit enables the system to clearly identify which ECUs have been upgraded and which need to be upgraded; this mechanism helps to achieve more accurate upgrade management and avoid confusion and errors during the upgrade process.
[0036] In this embodiment, the non-emergency software package includes a paid software package; when the received non-emergency software package is a paid software package, a payment interface is output, and a paid software package upgrade process is executed according to a payment success instruction, wherein the specific execution process of the paid software package upgrade process is as follows: According to the payment success instruction, output prompt information whether to upgrade immediately; If an immediate upgrade confirmation instruction is received, the ECU corresponding to the paid software package is upgraded; otherwise, after the upgrade conditions are met, the ECU corresponding to the paid software package is upgraded.
[0037] The current ECU upgrade system does not have the function of upgrading paid software. If customers want to upgrade certain functions, they can only go to 4S stores, which brings great inconvenience to customers. This method subdivides non-emergency software packages into paid software packages and introduces a payment interface, providing an online upgrade payment function mechanism, which greatly improves convenience and thus improves user experience.
[0038] In this embodiment, in order to prevent the problem of affecting the normal operation of the ECU due to the failure of flashing, a rollback mechanism is introduced, that is, the upgrade process of the ECU includes: checking the identification bit in the ECU software upgrade package to be flashed; after the verification is passed, copying and storing the original program to a preset area; flashing the ECU program using the emergency software package to be flashed or the non-emergency software; when the flashing fails, outputting the flashing failure information, and immediately assigning the original program stored in the preset area and continuing to run according to the original program; in this way, during the ECU upgrade process, the reliability and security of the upgrade process are ensured by checking the identification bit, copying the original program, flashing the new program, and the rollback mechanism in case of failure; this mechanism avoids problems such as system crash or data loss caused by upgrade failure.
[0039] It can be seen that the electric vehicle ECU software upgrade method provided by this embodiment mainly solves the problem of delayed processing of emergency problems and saves upgrade resources; it also effectively solves the problem that the current upgrade process generally adopts manual judgment, which greatly reduces the efficiency; it also solves the problem that each ECU of the whole vehicle uses its own software upgrade system, and the whole vehicle cannot use one, resulting in a waste of development resources; in addition, by sharing a set of software upgrade systems for the whole vehicle ECU, it also solves the problem that the whole vehicle ECU cannot be upgraded at the same time, resulting in slow upgrade efficiency; this upgrade method has a payment mechanism, which can support online payment and downloading of upgrade packages. Customers will be able to upgrade ECUs more conveniently, solving the problem that customers can only go to 4S stores for upgrades.
[0040] Example 2 like Figure 1As shown, this embodiment provides an electric vehicle ECU software upgrade system, which interacts with the large screen and the whole vehicle ECU at the same time; it includes: a receiving module, which is used to receive the uploaded ECU software upgrade package; a dividing module, which is used to divide the received ECU software upgrade package into an emergency software package and a non-emergency software package; an emergency software package upgrade module, which is used to send an emergency software package upgrade instruction if the ECU software upgrade package is an emergency software package after detecting that the upgrade conditions are met, so as to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; a non-emergency software package upgrade module, which is used to output upgrade prompt information if the ECU software upgrade package is a non-emergency software package, and after receiving the confirmation upgrade instruction, send the non-emergency software package upgrade instruction to execute the upgrade process of the ECU corresponding to the non-emergency software package according to the upgrade instruction; the emergency software package is used to repair the problem that causes the whole vehicle installation and throwing type failure.
[0041] In this embodiment, the software upgrade system also includes: The flag bit update module is used to use the flag bit to represent the update status of each ECU, wherein if the current ECU has been upgraded, the flag bit is 1; if the current ECU needs to be upgraded, the flag bit is 0; when a newly uploaded ECU software upgrade package is detected, the flag bit of the corresponding ECU is updated from 1 to 0; the paid software package upgrade module is used to output the payment interface when the received non-emergency software package is a paid software package, and execute the paid software package upgrade process according to the payment success instruction; the upgrade software package upload module is used to upload the ECU software upgrade package; the software storage module is used to store the ECU software upgrade packages corresponding to each ECU in different partitions in a preset order.
[0042] This system can be used to upload the software to be upgraded at any time for a certain ECU, and the urgency of the upgrade event can be customized. The system will make different treatments according to different urgency. For emergency situations, the system will immediately carry out the upgrade work after detecting that the vehicle meets the upgrade conditions. For non-emergency situations, the system uses periodic detection to complete the upgrade work. For non-emergency situations of some paid upgrade software, the system will control the large screen of the whole vehicle to prompt the user to automatically choose whether to upgrade the software. After the ECU receives the upgrade instruction, it will first compare the software to be upgraded with the software already existing in the DSP chip in the ECU, and compare the ECU name, supplier name, software version number, hardware version number, etc. Only when the verification is passed will the upgrade work begin. After the upgrade fails, the ECU can still run according to the previous code.
[0043] The following technical terms are explained: ECU (Electronic Control Unit) is an electronic control unit, also known as "driving computer", "on-board computer", etc.
[0044] VCU (Vehicle Control Unit), VCU is the abbreviation of the vehicle controller of electric vehicles, the full name is vehicle control unit, which is the central control unit of new energy vehicles.
[0045] It is responsible for collecting and analyzing the driver's operating information and the status information of various vehicle components, so as to comprehensively control and manage the vehicle.
[0046] The VCU determines the driver's driving intention by collecting signals from the accelerator pedal, brake pedal, gear position, etc., and after processing based on the current state of the vehicle, sends vehicle operation control commands to the power system, battery management system, etc.
[0047] MCU (Microcontroller Unit) is a single-chip microcomputer system that integrates functional modules such as microprocessor core, memory, input and output interface and timer. In new energy vehicles, MCU and drive motor together constitute the motor system, which receives information such as required torque and target vehicle speed from VCU, and controls the IGBT module through the single-chip microcomputer to perform dynamic torque control, so that the electrical energy of the battery pack is converted into mechanical energy to achieve the correct operation of the vehicle.
[0048] BMS (Battery Management System) is a key technology in applications such as electric vehicles and energy storage systems. It is responsible for monitoring and managing battery energy storage units to ensure the safe use of batteries during the charging and discharging process. The main functions of BMS include measuring battery terminal voltage, energy balancing between single cells, estimating state of charge and health status, limiting power input and output, controlling charging curves, and isolating battery packs from loads.
[0049] CAN (Controller Area Network) is one of the most important communication protocols in a vehicle network. It is a multi-master serial communication bus. The basic design specifications require high bit rate, high electromagnetic interference resistance, and the ability to detect any errors. When a node (ECU) on the CAN bus sends data, it is broadcast to all nodes in the network in the form of a message.
[0050] DSP, the full name of which is Digital Signal Processing, is a theoretical and technical discipline that involves various processing of digital signals. Its main purpose is to improve the quality of signals, extract useful information, facilitate computer analysis and recognition, or control and transmit signals.
[0051] This embodiment provides an electric vehicle ECU software upgrade system, the software upgrade system is connected to the vehicle-mounted CAN controller and communicates with the ECU configured in the vehicle through the CAN network. The software upgrade system includes: Upgrade the software package upload module. When each ECU software engineer uploads a new version of the software, password verification is required, and each ECU module needs to set a different password. The uploaded software package contains an identification bit, which includes: the ECU name, supplier name, software version number, hardware version number, etc., which are used to verify with the software code previously stored in the system. If the verification result is that the ECU name, supplier name, and hardware version information are the same, the software version number encoding rules are the same, and only the values are different, it is judged to be passed. The software after the verification will replace the software previously stored in the system.
[0052] The software storage module corresponding to each ECU of the electric vehicle stores the software to be updated of each ECU in a different location of the system. The storage location of each ECU is fixed, and the order is VCU, MCU, BMS, etc.
[0053] The flag bit update module is used to detect whether the flag bit has been updated. Each upgrade is to detect whether the ECU controllers of the vehicle need to be upgraded in a polling manner. If the flag bit is 1, it means that the ECU software stored in the system has been upgraded and does not need to be upgraded this time. If it is 0, it means that the ECU needs to be upgraded. The system will automatically upgrade the ECU when performing the upgrade work, and the flag bit will be set to 1 after the upgrade is completed. If there is new software uploaded to the system by an ECU, the system will automatically clear the software updated flag bit 1 to 0.
[0054] ECU upgrade emergency status setting module (division module), software upgrade is divided into two situations, one is that the vehicle ECU software may have a vehicle installation failure, and the ECU software engineer needs to actively upgrade the customer's vehicle after solving the problem. This situation is defined as an emergency. The other is that the ECU has developed new software, and after the software is updated, the new function can be reflected in the whole vehicle, or the current software failure will not affect the customer's normal driving safety. Failures that customers are not aware of are defined as non-emergency situations.
[0055] In this embodiment, vehicle installation and abandonment type failure: vehicle installation and abandonment type failure refers to a failure caused by one or more reasons during the driving process of the vehicle, which makes the vehicle unable to continue driving and breaks down on the road.
[0056] Power system failure: Engine failure: such as ignition system failure, fuel supply system failure, internal engine mechanical failure, etc.
[0057] Transmission system failure: such as gearbox failure, clutch failure, drive shaft failure, etc.
[0058] Electrical system failure: Battery failure: such as low battery power, internal short circuit or open circuit of the battery, etc.
[0059] Generator failure: such as the generator not generating electricity or generating insufficient electricity.
[0060] Line fault: such as short circuit, open circuit or poor contact, etc.
[0061] Chassis system failure: Braking system failure: such as brake failure, insufficient or leaking brake fluid, ABS system failure, etc.
[0062] Steering system failure: such as steering gear failure, power steering system failure, etc.
[0063] Suspension system failure: such as suspension spring failure, shock absorber failure, etc.
[0064] Body system failure: Body control module failure: such as body stability control system (ESP), traction control system (TCS) and other failures.
[0065] Lighting system failure: such as headlights not lighting up, turn signal failure, etc.
[0066] Door and window system failure: such as the door cannot be opened or closed, the window cannot be raised or lowered, etc.
[0067] Sensor and actuator failure: Sensor failure: such as vehicle speed sensor, temperature sensor, pressure sensor, etc.
[0068] Actuator failure: such as injector failure, ignition coil failure, motor failure, etc.
[0069] There are two situations for non-emergency ECU software upgrades: one is to follow the system's detection cycle, and the system will automatically detect whether there are ECUs that need software updates every month (by detecting the software update flag). If there is a need to update, the system will update the ECU software under appropriate conditions. If not, it will do nothing. This situation is applicable to situations where the vehicle may not affect the normal driving safety of customers. The other is the embodiment of the new function of the ECU, that is, the paid software package upgrade module included in the software upgrade system. The function of this module is: the user needs to manually click to confirm. After the payment is completed, the system will prompt the user whether to upgrade immediately. If the user clicks yes, the large screen will prompt the user to unlock the vehicle, and the system will immediately issue an upgrade instruction. If the user clicks no, the system will start the upgrade immediately after the vehicle meets the upgrade conditions.
[0070] After the ECU receives the upgrade instruction, first, the ECU will verify the ECU name, supplier name, software version number, hardware version number and other information of the software to be flashed. After the verification, the ECU will copy the previous code to a specific area in the DSP chip, and then delete the data in the original area to store new data. After the upgrade is successful, the ECU will execute the new program code after powering on and off again. If the upgrade fails, the ECU will send an upgrade failure message to the software upgrade system, which includes the name of the upgraded ECU, the time of the flash failure, the reason for the flash failure, etc. Once the software upgrade fails, the code copied to the specific area will be immediately assigned to the area where the DSP data runs to ensure that the ECU can work normally.
[0071] Example 3 like Figure 2 As shown, this embodiment provides an electric vehicle ECU software upgrade method, comprising: Receive uploaded ECU software upgrade package; The received ECU software upgrade packages are divided into emergency software packages and non-emergency software packages; the emergency software packages are used to repair the problems that cause the vehicle installation failure.
[0072] If the ECU software upgrade package is an emergency software package, after detecting that the upgrade conditions are met, an emergency software package upgrade instruction is sent to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; If the ECU software upgrade package is a non-emergency software package, an upgrade prompt message is output, and after receiving a confirmation upgrade instruction, a non-emergency software package upgrade instruction is sent to execute the upgrade process of the ECU corresponding to the non-emergency software package according to the upgrade instruction; Specifically, if the ECU software upgrade package is a non-emergency software package, a polling method is used to periodically detect the flag bit corresponding to each ECU; if the flag bit is detected to be 0, an upgrade prompt message is output; if the flag bit is 1, it is skipped.
[0073] The flag bit is used to characterize the update status of each ECU, where if the current ECU has been upgraded, the flag bit is 1; if the current ECU needs to be upgraded, the flag bit is 0; when a newly uploaded ECU software upgrade package is detected, the flag bit of the corresponding ECU is updated from 1 to 0.
[0074] In particular, the non-emergency software package includes a paid software package; when the received non-emergency software package is a paid software package, a payment interface is output, and a paid software package upgrade process is executed according to a payment success instruction, and the specific steps are as follows: According to the payment success instruction, output prompt information whether to upgrade immediately; If an immediate upgrade confirmation instruction is received, the ECU corresponding to the paid software package is upgraded; otherwise, after the upgrade conditions are met, the ECU corresponding to the paid software package is upgraded.
[0075] The upgrade process of each of the above ECUs includes: Verify the identification bit in the ECU software upgrade package to be flashed; After verification, the original program is copied and stored in the preset area; Flash the ECU using the emergency software package or non-emergency software to be flashed; When the flashing fails, the flashing failure information is output, and the original program stored in the preset area is immediately assigned and continues to run according to the original program.
[0076] The process of uploading the ECU software upgrade package includes: Verify the obtained upload password with the preset password of the corresponding ECU; After successful verification, the identification bit of the ECU software upgrade package to be uploaded is matched with the identification bit of the original program in the corresponding ECU; After the matching is successful, upload the ECU software upgrade package and replace the original software package.
[0077] In particular, the ECU software upgrade packages corresponding to each ECU are stored in different partitions according to a preset order; the ECU includes at least a VCU, an MCU and a BMS.
[0078] like Figure 3As shown, the present embodiment further provides an electric vehicle ECU software upgrade system, comprising: a receiving module for receiving an uploaded ECU software upgrade package; a dividing module for dividing the received ECU software upgrade package into an emergency software package and a non-emergency software package; an emergency software package upgrade module for, if the ECU software upgrade package is an emergency software package, sending an emergency software package upgrade instruction after detecting that the upgrade conditions are met, so as to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; a non-emergency software package upgrade module for, if the ECU software upgrade package is a non-emergency software package, outputting upgrade prompt information, and after receiving a confirmation upgrade instruction, sending a non-emergency software package upgrade instruction, so as to execute the upgrade process of the ECU corresponding to the non-emergency software package according to the upgrade instruction; the emergency software package is used to repair the problem that causes the whole vehicle installation and throwing type failure.
[0079] The present invention also provides a device, comprising: a memory for storing a computer program; and a processor for implementing the steps of the electric vehicle ECU software upgrade method when executing the computer program.
[0080] When the processor executes the computer program, the above-mentioned electric vehicle ECU software upgrade steps are implemented, for example: receiving an uploaded ECU software upgrade package; dividing the received ECU software upgrade package into an emergency software package and a non-emergency software package; if the ECU software upgrade package is an emergency software package, then after detecting that the upgrade conditions are met, sending an emergency software package upgrade instruction to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; if the ECU software upgrade package is a non-emergency software package, outputting upgrade prompt information, and after receiving a confirmation upgrade instruction, sending a non-emergency software package upgrade instruction to execute the upgrade process of the ECU corresponding to the non-emergency software package according to the upgrade instruction; the emergency software package is used to repair the problem that causes the whole vehicle installation and throwing type failure.
[0081] Alternatively, the processor implements the functions of each module in the above-mentioned system when executing the computer program, for example: a receiving module for receiving an uploaded ECU software upgrade package; a dividing module for dividing the received ECU software upgrade package into an emergency software package and a non-emergency software package; an emergency software package upgrade module for, if the ECU software upgrade package is an emergency software package, sending an emergency software package upgrade instruction after detecting that the upgrade conditions are met, so as to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; a non-emergency software package upgrade module for, if the ECU software upgrade package is a non-emergency software package, outputting upgrade prompt information, and sending a non-emergency software package upgrade instruction after receiving a confirmation upgrade instruction, so as to execute the upgrade process of the ECU corresponding to the non-emergency software package according to the upgrade instruction; the emergency software package is used to repair the problem that causes the whole vehicle installation and abandonment type failure.
[0082] Exemplarily, the computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can complete preset functions, and the instruction segments are used to describe the execution process of the computer program in the electric vehicle ECU software upgrade device. For example, the computer program can be divided into a receiving module, a dividing module, an emergency software package upgrade module and a non-emergency software package upgrade module; the specific functions of each module are as follows: a receiving module, which is used to receive the uploaded ECU software upgrade package; a dividing module, which is used to divide the received ECU software upgrade package into an emergency software package and a non-emergency software package; an emergency software package upgrade module, which is used to send an emergency software package upgrade instruction if the ECU software upgrade package is an emergency software package, after detecting that the upgrade conditions are met, so as to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; a non-emergency software package upgrade module, which is used to output an upgrade prompt message if the ECU software upgrade package is a non-emergency software package, and after receiving the confirmation upgrade instruction, send a non-emergency software package upgrade instruction, so as to execute the upgrade process of the ECU corresponding to the non-emergency software package according to the upgrade instruction; the emergency software package is used to repair the problem that causes the whole vehicle installation and abandonment failure.
[0083] The electric vehicle ECU software upgrade device can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The electric vehicle ECU software upgrade device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above is an example of an electric vehicle ECU software upgrade device and does not constitute a limitation on the electric vehicle ECU software upgrade device. It may include more components than the above, or a combination of certain components, or different components. For example, the electric vehicle ECU software upgrade device may also include input and output devices, network access devices, buses, etc.
[0084] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the electric vehicle ECU software upgrade, and uses various interfaces and lines to connect various parts of the entire electric vehicle ECU software upgrade device.
[0085] The memory can be used to store the computer program and / or module, and the processor implements various functions of the electric vehicle ECU software upgrade device by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory.
[0086] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0087] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the electric vehicle ECU software upgrade method are implemented.
[0088] If the modules / units integrated in the electric vehicle ECU software upgrade system are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
[0089] Based on this understanding, the present invention implements all or part of the processes in the above-mentioned electric vehicle ECU software upgrade method, and can also be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned electric vehicle ECU software upgrade method can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or preset intermediate form, etc.
[0090] The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0091] It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electrical carrier signals and telecommunication signals.
[0092] The above embodiment is only one of the implementation methods that can realize the technical solution of the present invention. The scope of protection claimed by the present invention is not limited only to this embodiment, but also includes changes, replacements and other implementation methods that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention.
Claims
1. A method for upgrading electric vehicle ECU software, characterized in that: include: Receive uploaded ECU software upgrade package; Divide the received ECU software upgrade packages into emergency software packages and non-emergency software packages; If the ECU software upgrade package is an emergency software package, after detecting that the upgrade conditions are met, an emergency software package upgrade instruction is sent to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; If the ECU software upgrade package is a non-emergency software package, an upgrade prompt message is output, and after receiving a confirmation upgrade instruction, a non-emergency software package upgrade instruction is sent to execute the upgrade process of the ECU corresponding to the non-emergency software package according to the upgrade instruction; The emergency software package is used to repair the problem that causes the whole vehicle to fail.
2. The electric vehicle ECU software upgrade method according to claim 1, characterized in that: If the ECU software upgrade package is a non-emergency software package, the corresponding flag bit of each ECU is periodically detected by polling; if the flag bit is detected to be 0, the upgrade prompt information is output; If the flag is 1, skip it.
3. The electric vehicle ECU software upgrade method according to claim 2, characterized in that: The flag bit is used to characterize the update status of each ECU, where if the current ECU has been upgraded, the flag bit is 1; if the current ECU needs to be upgraded, the flag bit is 0; when a newly uploaded ECU software upgrade package is detected, the flag bit of the corresponding ECU is updated from 1 to 0.
4. The electric vehicle ECU software upgrade method according to claim 1, characterized in that: The non-urgent software package includes a paid software package; when the received non-urgent software package is a paid software package, a payment interface is output, and a paid software package upgrade process is executed according to a payment success instruction.
5. The electric vehicle ECU software upgrade method according to claim 4, characterized in that: The specific steps of the paid software package upgrade process are as follows: According to the payment success instruction, output prompt information whether to upgrade immediately; If an immediate upgrade confirmation instruction is received, the ECU corresponding to the paid software package is upgraded; otherwise, after the upgrade conditions are met, the ECU corresponding to the paid software package is upgraded.
6. The electric vehicle ECU software upgrade method according to claim 1, characterized in that: The ECU upgrade process includes: Verify the identification bit in the ECU software upgrade package to be flashed; After verification, the original program is copied and stored in the preset area; Flash the ECU using the emergency software package or non-emergency software to be flashed; When the flashing fails, the flashing failure information is output, and the original program stored in the preset area is immediately assigned and continues to run according to the original program.
7. The electric vehicle ECU software upgrade method according to claim 1, characterized in that: The process of uploading the ECU software upgrade package includes: Verify the obtained upload password with the preset password of the corresponding ECU; After successful verification, the identification bit of the ECU software upgrade package to be uploaded is matched with the identification bit of the original program in the corresponding ECU; After the matching is successful, upload the ECU software upgrade package and replace the original software package.
8. The electric vehicle ECU software upgrade method according to claim 7, characterized in that: The ECU software upgrade packages corresponding to each ECU are stored in different partitions in a preset order; the ECU includes at least VCU, MCU and BMS.
9. An electric vehicle ECU software upgrade system, characterized in that: include: Receiving module, used to receive the uploaded ECU software upgrade package; A division module, used for dividing the received ECU software upgrade package into an emergency software package and a non-emergency software package; The emergency software package upgrade module is used to send an emergency software package upgrade instruction if the ECU software upgrade package is an emergency software package, after detecting that the upgrade conditions are met, so as to execute the upgrade process of the ECU corresponding to the emergency software package according to the upgrade instruction; The non-urgent software package upgrade module is used to output upgrade prompt information if the ECU software upgrade package is a non-urgent software package, and after receiving the confirmation upgrade instruction, send the non-urgent software package upgrade instruction to execute the upgrade process of the ECU corresponding to the non-urgent software package according to the upgrade instruction; The emergency software package is used to repair the problem that causes the whole vehicle to fail.
10. The electric vehicle ECU software upgrade system according to claim 9, characterized in that: Also includes: The flag bit update module is used to use the flag bit to represent the update status of each ECU. If the current ECU has been upgraded, the flag bit is 1; if the current ECU needs to be upgraded, the flag bit is 0; when a newly uploaded ECU software upgrade package is detected, the flag bit of the corresponding ECU is updated from 1 to 0; A paid software package upgrade module, used for outputting a payment interface when the received non-urgent software package is a paid software package, and executing a paid software package upgrade process according to a payment success instruction; Upgrade software package upload module, used to upload ECU software upgrade package; The software storage module is used to store the ECU software upgrade packages corresponding to each ECU in different partitions according to a preset order.