ECU upgrade method, device and readable storage medium
By obtaining the vehicle model information and upgrade content in the package file, and combining it with the upgrade process information, a universal ECU upgrade is realized, which solves the complexity of the upgrade program design caused by the diversity of vehicle models and changes in upgrade requirements in the existing technology, and improves the upgrade effect and flexibility.
Patent Information
- Application Number
- CN202111481969.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-12-06
AI Technical Summary
Due to the diversity of vehicle models and changes in upgrade needs, the existing ECU upgrade technology results in complex upgrade program design and poor results. It requires repeated design and cannot effectively cope with various vehicle models and upgrade needs.
By obtaining the package file, which contains vehicle model information and information related to upgrade content, information related to the upgrade process is obtained based on this information, and a universal ECU upgrade process is implemented, which is suitable for various models and upgrade needs, without the need to repeatedly design targeted upgrade procedures.
It improves the overall effect of ECU upgrades, simplifies the upgrade process, reduces development costs and cycles, adapts to vehicle diversification and changes in upgrade needs, and enhances the flexibility and functional coverage of upgrade tools.
Smart Images

Figure CN116225501B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of software upgrade, and more specifically, to an ECU upgrade method, device, and readable storage medium. Background Art
[0002] Software is an important part of the automotive controller. During the development stage, the OEM production stage, and the after-sales service stage, automotive controller suppliers and OEMs have software update and upgrade requirements. For example, the ECU (Electronic Control Unit, also known as the driving computer, on-board computer, etc.) software can be upgraded to fix vulnerabilities and add functions.
[0003] At present, the corresponding ECU upgrade program can be designed in a targeted manner according to the specific model and corresponding upgrade requirements, and the ECU of the car model can be upgraded accordingly.
[0004] However, due to the diversity of vehicle models and the ever-changing upgrade requirements, the corresponding upgrade program needs to be designed repeatedly, so the overall upgrade effect is not good. Summary of the invention
[0005] An objective of the embodiments of the present disclosure is to provide a new technical solution for ECU upgrade.
[0006] According to a first aspect of the present disclosure, an ECU upgrade method is provided, including: obtaining a set first packaging file, wherein the first packaging file encapsulates first vehicle model information and first upgrade content related information corresponding to the first vehicle model information; according to the first packaging file, obtaining the first vehicle model information and the first upgrade content related information; according to the first vehicle model information, obtaining first upgrade process related information corresponding to the first vehicle model information from a set memory;.
[0007] Optionally, obtaining the first upgrade process related information corresponding to the first vehicle model information from the setting memory includes: when the current upgrade mode corresponds to the developer mode, obtaining the first upgrade process related information corresponding to the first vehicle model information stored in the local memory; when the current upgrade mode does not correspond to the developer mode, obtaining the first upgrade process related information corresponding to the first vehicle model information stored in the remote server; wherein the local memory and the remote server both store the setting mapping relationship between the vehicle model information and the upgrade process related information.
[0008] Optionally, before obtaining the first upgrade process related information corresponding to the first vehicle model information stored in the local memory, the method also includes: when the current upgrade mode corresponds to the developer mode, in response to a selection operation corresponding to the first vehicle model information, obtaining the first vehicle model information; in response to an operation for editing upgrade process related information, obtaining corresponding upgrade process related information; constructing a mapping relationship between the first vehicle model information and the obtained upgrade process related information, and storing the constructed mapping relationship in the local memory.
[0009] Optionally, performing ECU upgrade processing on a vehicle having the first vehicle model information according to the first upgrade process related information and the first upgrade content related information includes: performing ECU upgrade processing on a vehicle having the first vehicle model information according to the first upgrade process related information and the first upgrade content related information, and in combination with a set test abnormality, when a current upgrade mode corresponds to the developer mode;
[0010] After performing ECU upgrade processing on the vehicle having the first vehicle model information in combination with the set test abnormality, the method further includes: obtaining a first upgrade result; determining whether the first upgrade result is the same as the set upgrade result corresponding to the test abnormality; and when the first upgrade result is the same as the set upgrade result, saving the set mapping relationship stored in the local memory to the remote server.
[0011] Optionally, before obtaining the set first packaging file, the method also includes: when the current upgrade mode corresponds to the developer mode, in response to a selection operation corresponding to the first vehicle model information, obtaining the first upgrade content related information in response to an operation for editing upgrade content related information; in response to a set packaging instruction corresponding to the first vehicle model information, packaging the first vehicle model information and the first upgrade content related information to obtain the first packaging file.
[0012] Optionally, after obtaining the first upgrade content related information, the method further includes: storing a mapping relationship between the first vehicle model information and the first upgrade content related information to a remote server; obtaining the first vehicle model information in response to a selection operation corresponding to the first vehicle model information; obtaining the first upgrade content related information corresponding to the first vehicle model information from the remote server; and executing the setting packaging instruction in response to the first vehicle model information based on the obtained first upgrade content related information, packaging the first vehicle model information and the first upgrade content related information, and obtaining the first packaging file.
[0013] According to a second aspect of the present disclosure, an ECU upgrade device is also provided, including: a first acquisition module, used to acquire a set first packaging file, wherein the first packaging file encapsulates first vehicle model information and first upgrade content related information corresponding to the first vehicle model information; a second acquisition module, used to acquire the first vehicle model information and the first upgrade content related information according to the first packaging file; a third acquisition module, used to acquire first upgrade process related information corresponding to the first vehicle model information from a set memory according to the first vehicle model information; and a processing module, used to perform ECU upgrade processing on a vehicle having the first vehicle model information according to the first upgrade process related information and the first upgrade content related information.
[0014] According to a third aspect of the present disclosure, an ECU upgrade device is also provided, comprising a memory and a processor, wherein the memory is used to store a computer program; the processor is used to execute the computer program to implement the method described in the first aspect of the present disclosure.
[0015] According to a fourth aspect of the present disclosure, an ECU upgrade system is also provided, comprising: a host computer, the host computer comprising the ECU upgrade device according to the second aspect or the third aspect of the present disclosure; and a vehicle, the vehicle comprising an ECU.
[0016] According to a fifth aspect of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.
[0017] One beneficial effect of the disclosed embodiment is that a first packaged file is obtained, and the first packaged file encapsulates first vehicle model information and first upgrade content related information corresponding to the first vehicle model information; according to the first packaged file, the first vehicle model information and first upgrade content related information are obtained; according to the first vehicle model information, first upgrade process related information corresponding to the first vehicle model information is obtained from the set memory; according to the first upgrade process related information and the first upgrade content related information, the vehicle with the first vehicle model information is ECU upgraded. It can be seen that the diversified vehicle models and changing upgrade requirements can be dealt with by importing the packaged file encapsulated with vehicle model information and corresponding upgrade content related information. Based on the packaged file, the embodiment can obtain the upgrade content related information and upgrade process related information corresponding to the vehicle model, and then perform ECU upgrade on the vehicle of the vehicle model accordingly. This universal upgrade method is suitable for ECU upgrade purposes under various vehicle models and various upgrade requirements, without the need to repeatedly carry out targeted upgrade program design, so the overall upgrade effect can be improved.
[0018] Other features and advantages of the embodiments of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the embodiments of the present disclosure.
[0020] Figure 1 is a schematic diagram of the composition structure of an electronic device capable of implementing an ECU upgrade method according to an embodiment;
[0021] Figure 2 is a flowchart of an ECU upgrade method according to an embodiment;
[0022] Figure 3 is a flow chart of an ECU upgrade method according to another embodiment;
[0023] Figure 4 is a block diagram of an ECU upgrading device according to an embodiment;
[0024] Figure 5 It is a schematic diagram of the hardware structure of an ECU upgrading device according to an embodiment. DETAILED DESCRIPTION
[0025] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0026] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0027] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0028] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0029] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0030] <Hardware Configuration>
[0031] Figure 1 1 is a schematic diagram of the structure of an electronic device 1000 that can be used to implement an embodiment of the present disclosure.
[0032] The electronic device 1000 can be a smart phone, a portable computer, a desktop computer, a tablet computer, a server, etc., which is not limited here.
[0033] The electronic device 1000 may include, but is not limited to, a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like. Among them, the processor 1100 may be a central processing unit CPU, a graphics processing unit GPU, a microprocessor MCU, and the like, and is used to execute a computer program, and the computer program may be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, and the like. The memory 1200 may include, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, and the like. The interface device 1300 may include, for example, a USB interface, a serial interface, a parallel interface, and the like. The communication device 1400 may, for example, be capable of wired communication using an optical fiber or a cable, or wireless communication, and may specifically include WiFi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, and the like. The display device 1500 may be, for example, a liquid crystal display screen, a touch display screen, and the like. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. The speaker 1700 is used to output audio signals. The microphone 1800 is used to collect audio signals.
[0034] As used in the embodiments of the present disclosure, the memory 1200 of the electronic device 1000 is used to store a computer program, which is used to control the processor 1100 to operate to implement the method according to the embodiments of the present disclosure. A technician can design the computer program according to the scheme disclosed in the present disclosure. How the computer program controls the processor to operate is well known in the art, so it will not be described in detail here. The electronic device 1000 can be installed with an intelligent operating system (such as Windows, Linux, Android, IOS, etc.) and application software.
[0035] It should be understood by those skilled in the art that although Figure 1 , multiple devices of the electronic device 1000 are shown; however, the electronic device 1000 of the embodiment of the present disclosure may only involve some of the devices, for example, only the processor 1100 and the memory 1200.
[0036] Hereinafter, various embodiments and examples according to the present invention are described with reference to the accompanying drawings.
[0037] <Method Example>
[0038] Figure 2 1 is a flow chart of an ECU upgrade method according to an embodiment. Figure 1 An electronic device 1000 is shown.
[0039] In detail, the ECU upgrade device for executing the ECU upgrade method can be arranged in a host computer, wherein the software program for implementing the ECU upgrade method can be used as a universal ECU upgrade tool and installed in the host computer. The host computer can be a personal computer or the like.
[0040] In this way, the host computer can upgrade the application of the ECU of the lower computer, the vehicle, through the universal ECU upgrade tool, so as to achieve the expected upgrade effects such as fixing vulnerabilities and adding functions. It can be seen that the introduction of the ECU upgrade function has played a huge role in promoting the development of automotive ECUs and is an essential tool for automotive ECUs.
[0041] In detail, the ECU upgrade can be implemented based on the communication of the CAN (Controller Area Network) bus. Thus, in a feasible implementation, the host computer can implement the upgrade process of the vehicle ECU through the USB-CAN interface card.
[0042] Among them, the CAN bus protocol is the standard bus protocol for automotive computer control systems and embedded industrial control local area networks. The automotive CAN bus belongs to the C-class automotive bus network. The C-class network is used in systems with high-speed, real-time, and high-reliability requirements, and the general speed is above 500kbps.
[0043] In detail, the automotive ECU may have a total of 2 CAN IDs for receiving diagnostic messages, one is a physical addressing ID, and the other is a functional addressing ID. The standard addressing method may be adopted by the application diagnostic message.
[0044] In this way, the upper computer and the lower computer can transmit data through the CAN network and according to the communication protocol process. Specifically, data interaction is achieved between the ECU of the lower computer and the universal ECU upgrade tool of the upper computer through the protocol service, and finally the application program upgrade of the lower computer ECU is completed.
[0045] The communication protocol used for the upgrade process may be the ISO 15765 protocol, which is a communication standard based on the road vehicle CAN (Controller Area Network) diagnostic system and is a standard protocol in the automotive industry.
[0046] In detail, the ISO15765 architecture may include an application layer (such as corresponding to a diagnostic application), a network layer, a data link layer, and a physical layer in sequence, wherein the communication of the network layer complies with ISO15765-2, and the communication of the application layer complies with ISO15765-3.
[0047] In detail, ISO15765-2 can define two communication modes: single-frame transmission and multi-frame transmission. For example, in the communication process between the lower computer and the ECU, if the valid data transmitted is less than 8, single-frame transmission can be used; if the valid data transmitted is more than or equal to 8, multi-frame transmission can be used, using the first frame, flow control frame and continuous frame in sequence. As an important part of CAN communication software design, the automotive ECU needs to parse these received messages to obtain a complete diagnostic service.
[0048] In detail, ISO15765-3 can define the process of the refresh program and related diagnostic services, and the lower computer adopts this process when refreshing the on-board ECU.
[0049] Specifically, a bootloader may be embedded in the ECU. Bootloader is a startup loader that can be run before the operating system kernel runs. Based on this, the universal ECU upgrade tool of the upper computer can communicate with the bootloader of the lower computer to complete the upgrade of the ECU in the lower computer.
[0050] Based on the above, if Figure 2 As shown, the ECU upgrade method of this embodiment may include the following steps S210 to S240:
[0051] Step S210: obtaining a set first packaging file, wherein the first packaging file encapsulates first vehicle model information and first upgrade content related information corresponding to the first vehicle model information.
[0052] In detail, in order to cope with different models and demand changes, the developer can develop corresponding upgrade content related information. In detail, the upgrade content related information may include information such as upgrade content and upgrade parameters.
[0053] Among them, the developer can develop the upgrade content and upgrade parameter information in combination with the original ECU application file. Feasibly, the upgrade parameters may include physical addressing ID, functional addressing ID, response ID, burning key, CAN bus baud rate, etc. Feasibly, the upgrade content may include project chip information, project code, vehicle model key and other information.
[0054] In detail, considering that vehicle fault diagnosis, as a technology to ensure automobile safety and maintainability, is becoming increasingly important in the development of automotive electronics, diagnostic services have been widely used in automotive ECUs, so developers can design universal ECU upgrade tools based on diagnostic protocols.
[0055] In detail, the universal ECU upgrade tool of this embodiment may involve, for example, a basic upgrade module, a development module, and a test module, integrating these modules into one.
[0056] Among them, developers can develop upgrade information based on development modules, and taskers can upgrade ECUs based on basic upgrade modules. In addition, in developer mode, upgrade tests can be performed based on test modules. If the test results meet expectations, normal mode can be entered, and no more tests are performed when upgrading ECUs in normal mode.
[0057] In detail, corresponding required functions can be opened for different users based on authorization technology. For example, in developer mode, relevant developers can have authorization for basic upgrade modules, development modules, test modules, and external development configuration folders, and use each module based on authorization. In normal mode, relevant developers can have authorization for basic upgrade modules, and use the module based on authorization, but no longer have authorization for development modules, test modules, and external development configuration folders. Among them, developers can store the developed content in the above-mentioned external development configuration folders.
[0058] This embodiment combines authorization technology to open corresponding functions for different user groups, thereby ensuring the security and confidentiality of the software to the greatest extent. In this way, this embodiment not only facilitates the development and testing of automotive electronics R&D personnel, simplifies the upgrade operation, and effectively prevents the occurrence of erroneous upgrades, but also plays an important role in future system upgrades and maintenance.
[0059] Considering that the tasker responsible for the upgrade operation does not need to know the specific content of the upgrade content related information, and to facilitate the accurate transmission of the upgrade content related information, the upgrade content related information and the corresponding vehicle model information can be packaged into a whole package file through a secondary packaging tool. In this way, only the package file needs to be imported to achieve the corresponding ECU upgrade purpose based on the universal ECU upgrade tool.
[0060] Based on this, in one embodiment of the present disclosure, before obtaining the set first packaging file, the method may further include the following steps S2001 to S2003:
[0061] Step S2001, when the current upgrade mode corresponds to the developer mode, in response to a selection operation corresponding to the first vehicle model information, obtaining the first vehicle model information.
[0062] Specifically, in the developer mode, developers can develop and design information related to the upgrade content through the development module of the universal ECU upgrade tool. For example, when there are new models or changes in the ECU requirements of existing models, the corresponding upgrade content related information can be developed and designed. In this way, developers can perform the operation of selecting model information in the upgrade tool operation interface so that the ECU upgrade device can obtain the selected model information accordingly.
[0063] Step S2002: In response to an operation for editing upgrade content related information, obtaining the first upgrade content related information.
[0064] In this step, the developer can edit the information related to the upgrade content, so that the ECU upgrade device can obtain the corresponding information related to the upgrade content, such as the information of the upgrade content and upgrade parameters.
[0065] Step S2003, in response to the setting packaging instruction corresponding to the first vehicle model information, the first vehicle model information and the first upgrade content related information are packaged to obtain the first packaging file.
[0066] Specifically, a secondary packaging tool can be used to package the vehicle model information and the corresponding upgrade content related information together, and the key information can be encrypted during the packaging process to prevent key information leakage. For example, a .zck file can be generated through secondary packaging.
[0067] In this embodiment, the vehicle model information and the information related to the upgrade content may be pre-packaged to obtain a packaged file, so that the ECU upgrade process can be performed based on the direct import of the packaged file.
[0068] Considering that the development of the information related to the upgrade content can usually be repeated many times, in order to obtain the package file according to the latest information, the information related to the upgrade content developed each time can be stored in the remote server for update. When the package processing is required, the relevant information can be automatically updated and loaded from the remote server to complete the package operation.
[0069] Based on this, in one embodiment of the present disclosure, after obtaining the first upgrade content related information, the method may further include the following steps A1 to A4:
[0070] Step A1: storing a mapping relationship between the first vehicle model information and the first upgrade content related information in a remote server.
[0071] In this step, the information related to the upgrade content developed by each developer is stored in real time to the remote server to achieve a real-time and unified update effect of the information.
[0072] Step A2: obtaining the first vehicle model information in response to a selection operation corresponding to the first vehicle model information.
[0073] Specifically, in the developer mode, the developer can perform packaging operations using the development module of the universal ECU upgrade tool. For example, the developer can select vehicle model information in the upgrade tool operation interface so that the ECU upgrade device can obtain the selected vehicle model information accordingly.
[0074] Step A3: Acquire the first upgrade content related information corresponding to the first vehicle model information from the remote server.
[0075] In this step, the upgrade content related information corresponding to the selected vehicle model can be automatically updated and loaded from the remote server for packaging.
[0076] Step A4, based on the acquired information related to the first upgrade content, executing the setting packaging instruction in response to the first vehicle model information, packaging the first vehicle model information and the first upgrade content related information to obtain the first packaging file.
[0077] Specifically, based on the automatically loaded upgrade content related information, packaging processing can be performed to obtain a package file. The obtained package file can be used in the ECU upgrade processing process in the developer mode and the normal mode.
[0078] Step S220: acquiring the first vehicle model information and the first upgrade content related information according to the first packaging file.
[0079] In this step, for the imported packaged file, the basic upgrade module of the universal ECU upgrade tool can be used to unbind the packaged file information to obtain the vehicle model information and upgrade content related information.
[0080] Step S230: acquiring first upgrade process related information corresponding to the first vehicle model information from a setting memory according to the first vehicle model information.
[0081] In detail, the upgrade process related information may include information about the upgrade process and the upgrade key.
[0082] In this step, the basic upgrade module of the universal ECU upgrade tool can be used to obtain upgrade process related information corresponding to the vehicle model information from the setting memory.
[0083] Specifically, the setting memory stores a total library of information related to the upgrade process, such as a total library of upgrade processes and a total library of secret key algorithms for each vehicle model. In a feasible implementation, these total libraries can be downloaded from the setting memory, and the corresponding upgrade process and upgrade secret key information can be queried through the vehicle model information obtained by unbinding, so that the upgrade process can be performed accordingly.
[0084] Specifically, when there are new models or changes in ECU requirements for existing models, developers can develop and design information related to the upgrade process through the development module of the universal ECU upgrade tool.
[0085] To facilitate the execution of upgrade processing at different stages, the upgrade process related information at different stages can be stored in different memories. Preferably, in developer mode, it can be stored in a local memory such as a set external folder, and in normal mode, it can be stored in a remote server.
[0086] Thus, in one embodiment of the present disclosure, the step of obtaining the first upgrade process related information corresponding to the first vehicle model information from the setting memory may include the following steps S2301 or S2302:
[0087] Step S2301, when the current upgrade mode corresponds to the developer mode, obtain the first upgrade process related information corresponding to the first vehicle model information stored in the local memory. The local memory stores a set mapping relationship between the vehicle model information and the upgrade process related information.
[0088] In detail, in developer mode, the set mapping relationship can be downloaded from the local storage, such as from a set external folder, and then the corresponding upgrade process related information can be queried according to the vehicle model information obtained by unbinding, so that the ECU upgrade processing in developer mode can be carried out accordingly.
[0089] Based on this, in one embodiment of the present disclosure, before obtaining the first upgrade process related information corresponding to the first vehicle model information stored in the local memory, the method may further include the following steps S23011 to S23013:
[0090] Step S23011: when the current upgrade mode corresponds to the developer mode, in response to a selection operation corresponding to the first vehicle model information, obtaining the first vehicle model information.
[0091] Specifically, in the developer mode, developers can develop and design information related to the upgrade process through the development module of the universal ECU upgrade tool. For example, when there are new models or changes in the ECU requirements of existing models, the corresponding upgrade process information can be developed and designed. In this way, developers can perform the operation of selecting model information on the upgrade tool operation interface so that the ECU upgrade device can obtain the selected model information accordingly.
[0092] Step S23012, in response to the operation for editing the upgrade process related information, obtaining corresponding upgrade process related information.
[0093] In this step, the developer can edit the information related to the upgrade process so that the ECU upgrade device can obtain the corresponding information related to the upgrade process, such as the information of the upgrade process and the upgrade key.
[0094] Step S23013, constructing a mapping relationship between the first vehicle model information and the obtained upgrade process related information, and storing the constructed mapping relationship in the local memory.
[0095] In order to facilitate the smooth progress of the ECU upgrade process in the developer mode, the edited upgrade process related information can be stored in the local memory.
[0096] For example, considering that the universal ECU upgrade tool of the upper computer mainly communicates with the bootloader of the lower computer to complete the ECU upgrade work, in the developer mode, the bootloader engineer of the lower computer can edit the ECU upgrade process information and key algorithm of the new model in the external folder according to the configuration file format specification, and save the edited results in the external folder. In this way, during the corresponding upgrade process, the upgrade process related information is obtained from the external configuration folder for upgrade processing. This implementation method can facilitate the development and debugging work of bootloader engineers.
[0097] It can be seen that in this developer mode, developers mainly edit process files and key algorithm files to complete the ECU upgrade development work for new models.
[0098] In addition, when the ECU upgrade work in the developer mode is successfully completed, the ECU upgrade work in the normal mode can be carried out, that is, after the configuration file of the developed upgrade process related information is debugged and finalized, the configuration file can be uploaded to the general library in the remote server to complete the development and design of the new vehicle model upgrade tool. Based on this, the ECU upgrade work in the normal mode can be carried out.
[0099] Step S2302: when the current upgrade mode does not correspond to the developer mode, obtain the first upgrade process related information corresponding to the first vehicle model information stored in the remote server. The remote server stores a set mapping relationship between vehicle model information and upgrade process related information.
[0100] In detail, in normal mode, the setting mapping relationship can be downloaded from the remote server, and then the corresponding upgrade process related information can be queried according to the vehicle model information obtained by unbinding, so that the ECU upgrade processing in normal mode can be carried out accordingly.
[0101] Step S240: performing ECU upgrade processing on the vehicle having the first vehicle model information according to the information related to the first upgrade process and the information related to the first upgrade content.
[0102] In detail, after extracting information related to the upgrade process and obtaining information related to the upgrade content, the universal ECU upgrade tool can automatically configure the upgrade communication flow, and perform ECU upgrade processing accordingly to update the application program of the upgraded ECU.
[0103] After testing, based on the upgrade method provided in this embodiment, by importing different target files, the matching with different models can be completed, and the upgrade content can be smoothly downloaded to the car ECU according to the corresponding upgrade process. After the download is completed, the ECU is powered on again, and the new program can be loaded and run smoothly.
[0104] As can be seen from the above, this embodiment provides an ECU upgrade method, which obtains a set first package file, wherein the first package file encapsulates first vehicle model information and first upgrade content related information corresponding to the first vehicle model information; obtains the first vehicle model information and first upgrade content related information according to the first package file; obtains first upgrade process related information corresponding to the first vehicle model information from the set memory according to the first vehicle model information; performs ECU upgrade processing on the vehicle with the first vehicle model information according to the first upgrade process related information and the first upgrade content related information. It can be seen that the diversified vehicle models and changing upgrade requirements can be dealt with by importing the package file encapsulated with vehicle model information and corresponding upgrade content related information. Based on the package file, this embodiment can obtain the upgrade content related information and upgrade process related information corresponding to the vehicle model, and then perform ECU upgrade on the vehicle of the vehicle model accordingly. This universal upgrade method is suitable for ECU upgrade purposes under various vehicle models and various upgrade requirements, without the need to repeatedly carry out targeted upgrade program design, so the overall upgrade effect can be improved.
[0105] As mentioned above, you can perform tests when performing ECU upgrade processing in developer mode. If the test passes, you can perform ECU upgrade processing in normal mode.
[0106] Based on this, in one embodiment of the present disclosure, the step S240, performing ECU upgrade processing on a vehicle having the first vehicle model information according to the first upgrade process related information and the first upgrade content related information, may include the following steps S2401:
[0107] Step S2401, when the current upgrade mode corresponds to the developer mode, the ECU upgrade process is performed on the vehicle having the first vehicle model information according to the information related to the first upgrade process and the information related to the first upgrade content, and in combination with the set test abnormality.
[0108] In detail, the ECU upgrade test in the developer mode can be performed according to the test mode of the universal ECU upgrade tool. The test module can simulate abnormal conditions in various processes of the ECU upgrade and test the operation of the ECU including the bootloader program based on this.
[0109] Preferably, the test abnormality may include abnormal messages, error check codes, high load on the CAN bus, continuous burning, and the like.
[0110] Correspondingly, after performing ECU upgrade processing on the vehicle having the first vehicle model information in combination with the set test abnormality, the method may further include the following steps S2501 to S2503:
[0111] Step S2501, obtaining a first upgrade result.
[0112] Since the upgrade test is performed under the set test exception condition, the corresponding upgrade result can be obtained, so as to compare the upgrade result with the expected upgrade result to determine whether the upgrade process is performed as expected.
[0113] Step S2502, determining whether the first upgrade result is the same as the set upgrade result corresponding to the test abnormality.
[0114] In this step, the consistency between the actual upgrade result and the expected upgrade result can be determined. If the information developed by the developer is correct, a consistent result can usually be obtained. Otherwise, the developer can adjust the development information as needed.
[0115] Step S2503: When the first upgrade result is the same as the setting upgrade result, the setting mapping relationship stored in the local memory is saved in the remote server.
[0116] In this step, after obtaining the consistency result, the information developed by the developer can be stored in the remote server, so that when the ECU is upgraded in the normal mode, the corresponding information can be obtained from the remote server.
[0117] Unlike the developer mode, when upgrading the ECU in the normal mode, no upgrade test is required. Thus, in the normal mode, as described in the above step S240, the upgrade process can be directly performed according to the upgrade process related information and the upgrade content related information.
[0118] It can be seen from the above that the ECU upgrade method provided in this embodiment can have at least the following characteristics:
[0119] (1) Applicable to all types of vehicles.
[0120] For existing targeted upgrade tools, one vehicle model corresponds to at least one upgrade tool. The development and design work is cumbersome and requires a lot of repetitive work. The development cost is high and the development cycle is long, which is not conducive to the effective use of resources.
[0121] The present embodiment provides a universal ECU upgrade tool that can be used for almost all models designed in accordance with the ISO15765 protocol. In this way, repeated development of ECU upgrade tools is no longer required, which undoubtedly reduces the process and various costs consumed by updating application software.
[0122] (2) The upgrade process is flexible and can be expanded a second time.
[0123] For existing targeted upgrade tools, the upgrade process and parameter information are fixed, so that during the entire project process, when the upgrade process information or parameter information needs to be changed due to changes in the entire system deployment or customer needs, the software source code needs to be modified and re-released. And after multiple debugging, the response time cycle is long in coordinating with the bootloader lower computer or other parts of the system test, making it difficult to adapt to new changes.
[0124] The universal ECU upgrade tool provided in this embodiment is customizable and can customize the user interface language, tools and specific upgrade process of the upgraded ECU device according to the upgrade requirements, thereby realizing all upgrade functions defined in the upgraded ECU device requirement document.
[0125] (3) The software upgrade operation is less complicated.
[0126] For existing targeted upgrade tools, when upgrading ECUs of different models, different tools need to be switched, and users are required to input upgrade information, which makes the operation more complicated.
[0127] The universal ECU upgrade tool provided in this embodiment can complete the one-click upgrade by only importing a packaged file during the upgrade operation using its common upgrade module.
[0128] (4) Wider functional coverage.
[0129] For existing targeted upgrade tools, due to factors such as project planning or omissions in users' initial planning, some auxiliary analysis and testing functions, such as local data storage and the use of diversified CAN devices, are missing, which is not conducive to more efficient system project testing.
[0130] The universal ECU upgrade tool provided in this embodiment has a strong functional coverage, integrating the upgrade, test, and development functions, so that it has good human-computer interaction. In particular, when used by bootloader lower-machine development engineers, the tool can be used conveniently and quickly to flexibly configure the process to complete the development work of its lower-machine.
[0131] (5)Easy to develop.
[0132] The universal ECU upgrade tool provided in this embodiment provides the bootloader developers of the lower computer with the greatest convenience to perform personalized configuration, thus saving the development work of the upgrade tool.
[0133] As for the existing targeted upgrade tools, when a new project is imported, developers need to start project development from scratch, from tool design, coding implementation to debugging and release. The development process is time-consuming and labor-intensive.
[0134] (6) Reduce user operation level and facilitate management.
[0135] For the existing targeted upgrade tools, technicians need to pay attention to the accuracy of the upgrade operation and the accuracy of the upgrade tools at the workstation, as well as the need to manage each upgrade tool. Among them, upgrade operation errors include inaccurate input of upgrade information during operation; upgrade tool errors are due to the difficulty of managing upgrade tools due to the upgrade requirements of different models. For some serious upgrade errors, it is even necessary to remove the parts from the vehicle and then update the program through the debugging port, which will increase the workload and easily cause damage to the vehicle itself. Furthermore, different models require different upgrade tools, and different versions of ECUs are also required at different stages of the same model, which increases the difficulty of managing upgrade tools, and the errors of various user departments of the OEM during use will also increase accordingly.
[0136] The universal ECU upgrade tool provided in this embodiment is compatible with a wide range of vehicle models, has simple software operation, and a single version, which greatly reduces the requirements on the user's operating level. When using the universal ECU upgrade tool, the latest and most complete information can be updated locally by connecting to a remote server, thereby eliminating the need for complex version management of the ECU upgrade tool.
[0137] (7)Good user experience.
[0138] The design method of the universal ECU upgrade tool provided in this embodiment is based on the user-centered design principle, taking into account the user experience, that is, the system response time, error information processing method, user command method, user interface language and other aspects. The tool has strong customization and extensibility, which greatly improves its flexibility in dealing with development, debugging, troubleshooting, maintenance, demand changes and other situations, and effectively meets user needs. Based on this universal ECU upgrade tool, not only the work efficiency is improved, but also more manpower and material resources are saved.
[0139] (8) Safe and reliable.
[0140] The universal ECU upgrade tool of this embodiment may involve a basic upgrade module, a development module, and a test module, integrating these modules into one. This embodiment combines authorization technology to open corresponding functions for different user groups, thereby ensuring the security and confidentiality of the software to the greatest extent. In this way, this embodiment not only facilitates automotive electronics R&D personnel to develop and test, simplifies the upgrade operation, and effectively prevents the occurrence of erroneous upgrades, but also plays an important role in future system upgrades and maintenance.
[0141] (9) Meet market demand.
[0142] This embodiment provides a universal, comprehensive ECU upgrade tool that adapts to the development of automobile diagnostic technology. The tool conforms to the development of automobile diagnostic technology and caters to the development trend of the market, and has far-reaching and important significance and value to the reliability, accuracy and stability of automobile ECU upgrade tools.
[0143] (10) Facilitates product development.
[0144] This embodiment provides a universal ECU upgrade tool that is highly flexible, safe and reliable. The OEM can use the universal ECU upgrade tool to quickly expand a new set of upgrade process specifications, and can apply the tool to different controllers of different models, which can avoid the situation where the OEM and major customers repeat the development from scratch, which not only reduces the product development difficulty, development cycle, development and management costs, but also improves the product development efficiency, and also improves the product quality and stability.
[0145] Figure 3 A flow chart of an ECU upgrade method according to an embodiment is given. The implementation subject of this embodiment can be Figure 1 An electronic device 1000 is shown.
[0146] like Figure 3 As shown, the method of this embodiment may include the following steps S301 to S319:
[0147] Step S301, when the current upgrade mode corresponds to the developer mode, in response to a selection operation corresponding to the first vehicle model information, obtaining the first vehicle model information.
[0148] Step S302: In response to an operation for editing upgrade content related information, first upgrade content related information corresponding to the first vehicle model information is obtained.
[0149] Step S303: storing a mapping relationship between the first vehicle model information and the first upgrade content related information in a remote server.
[0150] Step S304: in response to a selection operation corresponding to the first vehicle model information, obtaining the first vehicle model information.
[0151] Step S305: Obtain the first upgrade content related information corresponding to the first vehicle model information from the remote server.
[0152] Step S306: Based on the acquired information related to the first upgrade content, in response to a setting packaging instruction corresponding to the first vehicle model information, the first vehicle model information and the information related to the first upgrade content are packaged to obtain a first packaging file.
[0153] Step S307: when the current upgrade mode corresponds to the developer mode, in response to a selection operation corresponding to the first vehicle model information, obtaining the first vehicle model information.
[0154] Step S308, in response to the operation for editing the upgrade process related information, obtaining first upgrade process related information corresponding to the first vehicle model information.
[0155] Step S309: construct a mapping relationship between the first vehicle model information and the first upgrade process related information, and store the constructed mapping relationship in the local memory.
[0156] Step S310: obtaining the first packaging file.
[0157] Step S311: acquiring the first vehicle model information and the first upgrade content related information according to the first packaging file.
[0158] Step S312: According to the first vehicle model information, when the current upgrade mode corresponds to the developer mode, obtain the first upgrade process related information stored in the local memory.
[0159] Step S313, according to the information related to the first upgrade process and the information related to the first upgrade content, and in combination with the set test abnormality, the ECU upgrade process is performed on the vehicle having the first vehicle model information to obtain a first upgrade result.
[0160] Step S314, determining whether the first upgrade result is the same as the set upgrade result corresponding to the test abnormality.
[0161] Step S315: When the first upgrade result is the same as the setting upgrade result, the setting mapping relationship stored in the local memory is saved in the remote server.
[0162] Step S316, obtaining the first packaging file.
[0163] Step S317: acquiring the first vehicle model information and the first upgrade content related information according to the first packaging file.
[0164] Step S318: According to the first vehicle model information, when the current upgrade mode does not correspond to the developer mode, obtain first upgrade process related information corresponding to the first vehicle model information stored in the remote server.
[0165] Step S319: performing ECU upgrade processing on the vehicle having the first vehicle model information according to the information related to the first upgrade process and the information related to the first upgrade content.
[0166] <Equipment Embodiment>
[0167] Figure 4 FIG. 4 is a block diagram of an ECU upgrade device 400 according to an embodiment. Figure 4 As shown, the ECU upgrading device 400 may include a first acquisition module 410 , a second acquisition module 420 , a third acquisition module 430 and a processing module 440 .
[0168] Among them, the first acquisition module 410 is used to acquire a set first encapsulation file, and the first encapsulation file encapsulates the first vehicle model information and the first upgrade content related information corresponding to the first vehicle model information. The second acquisition module 420 is used to acquire the first vehicle model information and the first upgrade content related information according to the first encapsulation file. The third acquisition module 430 is used to acquire the first upgrade process related information corresponding to the first vehicle model information from the set memory according to the first vehicle model information. The processing module 440 is used to perform ECU upgrade processing on the vehicle with the first vehicle model information according to the first upgrade process related information and the first upgrade content related information.
[0169] The ECU upgrading device 400 may be the electronic device 1000 as shown in FIG. 1 .
[0170] In this embodiment, a first package file is set to be obtained, and the first package file encapsulates the first vehicle model information and the first upgrade content related information corresponding to the first vehicle model information; according to the first package file, the first vehicle model information and the first upgrade content related information are obtained; according to the first vehicle model information, the first upgrade process related information corresponding to the first vehicle model information is obtained from the set memory; according to the first upgrade process related information and the first upgrade content related information, the ECU upgrade process is performed on the vehicle with the first vehicle model information. It can be seen that the situation of diversified vehicle models and changing upgrade requirements can be dealt with by importing the package file encapsulated with vehicle model information and corresponding upgrade content related information. Based on the package file, the embodiment can obtain the upgrade content related information and upgrade process related information corresponding to the vehicle model, and then perform ECU upgrade on the vehicle of the vehicle model accordingly. This universal upgrade method is suitable for ECU upgrade purposes under various vehicle models and various upgrade requirements, without the need to repeatedly carry out targeted upgrade program design, so the overall upgrade effect can be improved.
[0171] In one embodiment of the present disclosure, the third acquisition module 430 is used to obtain the first upgrade process related information corresponding to the first vehicle model information stored in the local memory when the current upgrade mode corresponds to the developer mode; and to obtain the first upgrade process related information corresponding to the first vehicle model information stored in the remote server when the current upgrade mode does not correspond to the developer mode; wherein the local memory and the remote server both store a set mapping relationship between the vehicle model information and the upgrade process related information.
[0172] In one embodiment of the present disclosure, the ECU upgrade device 400 may further include: a module for obtaining the first vehicle model information in response to a selection operation corresponding to the first vehicle model information when the current upgrade mode corresponds to the developer mode; a module for obtaining corresponding upgrade process related information in response to an operation for editing upgrade process related information; and a module for constructing a mapping relationship between the first vehicle model information and the obtained upgrade process related information, and storing the constructed mapping relationship in the local memory.
[0173] In one embodiment of the present disclosure, the processing module 440 is used to perform ECU upgrade processing on a vehicle having the first vehicle model information according to the first upgrade process related information and the first upgrade content related information, and in combination with a set test abnormality, when the current upgrade mode corresponds to the developer mode;
[0174] The ECU upgrade device 400 may also include: a test module, used to obtain a first upgrade result; determine whether the first upgrade result is the same as the set upgrade result corresponding to the test abnormality; when the first upgrade result is the same as the set upgrade result, save the set mapping relationship stored in the local memory to the remote server.
[0175] In one embodiment of the present disclosure, the ECU upgrade device 400 may further include: a module for obtaining the first vehicle model information in response to a selection operation corresponding to the first vehicle model information when the current upgrade mode corresponds to the developer mode; a module for obtaining the first upgrade content-related information in response to an operation for editing the upgrade content-related information; and a module for packaging the first vehicle model information and the first upgrade content-related information in response to a set packaging instruction corresponding to the first vehicle model information to obtain the first packaging file.
[0176] In one embodiment of the present disclosure, the ECU upgrade device 400 may also include: a module for storing a mapping relationship between the first vehicle model information and the first upgrade content related information to a remote server; a module for obtaining the first vehicle model information in response to a selection operation corresponding to the first vehicle model information; and a module for obtaining the first upgrade content related information corresponding to the first vehicle model information from the remote server.
[0177] Figure 5 is a schematic diagram of the hardware structure of an ECU upgrading device 500 according to another embodiment.
[0178] like Figure 5As shown, the ECU upgrading device 500 includes a processor 510 and a memory 520, wherein the memory 520 is used to store an executable computer program, and the processor 510 is used to execute a method as any of the above method embodiments under the control of the computer program.
[0179] The ECU upgrading device 500 may be the electronic device 1000 as shown in FIG. 1 .
[0180] Each module of the above ECU upgrading device 500 may be implemented by the processor 510 in this embodiment executing a computer program stored in the memory 520, or may be implemented by other circuit structures, which is not limited here.
[0181] In addition, this embodiment further provides an ECU upgrade system, comprising a host computer and a vehicle, wherein the host computer comprises the ECU upgrade device according to any embodiment of the present disclosure; and the vehicle comprises an ECU.
[0182] In this way, the host computer can upgrade the ECU of the vehicle according to the ECU upgrade device included therein. The vehicle can be a vehicle of any model.
[0183] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0184] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0185] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0186] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0187] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0188] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0189] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0190] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0191] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. An ECU upgrade method, characterized in that: include: Obtain a set first package file, wherein the first package file encapsulates first vehicle model information and first upgrade content related information corresponding to the first vehicle model information, wherein the first upgrade content related information includes upgrade parameters and upgrade content, wherein the upgrade parameters include physical addressing ID, functional addressing ID, response ID, burning key and CAN bus baud rate, and the upgrade content includes project chip information, project code and vehicle model key information; According to the first packaging file, obtaining the first vehicle model information and the first upgrade content related information; According to the first vehicle model information, obtaining first upgrade process related information corresponding to the first vehicle model information from a setting memory, wherein the first upgrade process related information includes information of an upgrade process and an upgrade key; According to the first upgrade process related information and the first upgrade content related information, an ECU upgrade process is performed on the vehicle having the first vehicle model information; wherein, Before obtaining the set first package file, the method further includes: obtaining the first vehicle model information in response to a selection operation corresponding to the first vehicle model information when the current upgrade mode corresponds to the developer mode; In response to an operation for editing the upgrade content related information, obtaining the first upgrade content related information; In response to a setting packaging instruction corresponding to the first vehicle model information, packaging the first vehicle model information and the first upgrade content related information to obtain the first packaging file; After obtaining the first upgrade content related information, the method further includes: storing a mapping relationship between the first vehicle model information and the first upgrade content related information in a remote server; In response to a selection operation corresponding to the first vehicle model information, obtaining the first vehicle model information; Acquire the first upgrade content related information corresponding to the first vehicle model information from the remote server; The step of executing the setting packaging instruction in response to the first vehicle model information according to the acquired first upgrade content related information, packaging the first vehicle model information and the first upgrade content related information to obtain the first packaging file; The obtaining, from the setting memory, the first upgrade process related information corresponding to the first vehicle model information, comprises: when the current upgrade mode corresponds to the developer mode, obtaining the first upgrade process related information corresponding to the first vehicle model information stored in the local memory; When the current upgrade mode does not correspond to the developer mode, obtaining first upgrade process related information corresponding to the first vehicle model information stored in a remote server; Wherein, the local memory and the remote server both store a set mapping relationship between vehicle model information and upgrade process related information; The performing ECU upgrade processing on the vehicle having the first vehicle model information according to the first upgrade process related information and the first upgrade content related information includes: When the current upgrade mode corresponds to the developer mode, performing ECU upgrade processing on the vehicle having the first vehicle model information according to the first upgrade process related information and the first upgrade content related information, and in combination with a set test abnormality; After performing ECU upgrade processing on the vehicle having the first vehicle model information in combination with the set test abnormality, the method further includes: Get the first upgrade result; Determining whether the first upgrade result is the same as a set upgrade result corresponding to the test abnormality; When the first upgrade result is the same as the setting upgrade result, the setting mapping relationship stored in the local memory is saved in the remote server.
2. The method according to claim 1, characterized in that: Before obtaining the first upgrade process related information corresponding to the first vehicle model information stored in the local memory, the method further includes: In a case where the current upgrade mode corresponds to the developer mode, in response to a selection operation corresponding to the first vehicle model information, obtaining the first vehicle model information; In response to an operation for editing the upgrade process related information, obtaining corresponding upgrade process related information; A mapping relationship between the first vehicle model information and the obtained upgrade process related information is constructed, and the constructed mapping relationship is stored in the local memory.
3. An ECU upgrade device, characterized in that: include: A first acquisition module is used to acquire a set first package file, wherein the first package file encapsulates first vehicle model information and first upgrade content related information corresponding to the first vehicle model information, wherein the first upgrade content related information includes upgrade parameters and upgrade content, wherein the upgrade parameters include physical addressing ID, functional addressing ID, response ID, burning key and CAN bus baud rate, and the upgrade content includes project chip information, project code and vehicle model key information; A second acquisition module, configured to acquire the first vehicle model information and the first upgrade content related information according to the first packaging file; A third acquisition module is used to acquire, from a setting memory according to the first vehicle model information, first upgrade process related information corresponding to the first vehicle model information, wherein the first upgrade process related information includes information of the upgrade process and an upgrade key; as well as, A processing module, configured to perform ECU upgrade processing on a vehicle having the first vehicle model information according to the first upgrade process related information and the first upgrade content related information; The ECU upgrade device further includes: a module for obtaining the first vehicle model information in response to a selection operation corresponding to the first vehicle model information when the current upgrade mode corresponds to the developer mode; a module for obtaining the first upgrade content related information in response to an operation for editing upgrade content related information; and a module for encapsulating the first vehicle model information and the first upgrade content related information in response to a setting encapsulation instruction corresponding to the first vehicle model information to obtain the first encapsulation file; The ECU upgrade device further includes: a module for storing a mapping relationship between the first vehicle type information and the first upgrade content related information in a remote server; a module for obtaining the first vehicle type information in response to a selection operation corresponding to the first vehicle type information; a module for obtaining the first upgrade content related information corresponding to the first vehicle type information from the remote server; and a module for executing the step of encapsulating the first vehicle type information and the first upgrade content related information in response to the set encapsulation instruction corresponding to the first vehicle type information to obtain the first encapsulation file according to the obtained first upgrade content related information; The third acquisition module is used to acquire the first upgrade process related information corresponding to the first vehicle model information stored in the local memory when the current upgrade mode corresponds to the developer mode; and acquire the first upgrade process related information corresponding to the first vehicle model information stored in the remote server when the current upgrade mode does not correspond to the developer mode; wherein the local memory and the remote server both store a set mapping relationship between the vehicle model information and the upgrade process related information; The processing module is used for performing ECU upgrade processing on the vehicle having the first vehicle model information according to the first upgrade process related information and the first upgrade content related information, and in combination with a set test abnormality, when the current upgrade mode corresponds to the developer mode; The ECU upgrade device also includes: a test module, used to obtain a first upgrade result; determine whether the first upgrade result is the same as the set upgrade result corresponding to the test abnormality; when the first upgrade result is the same as the set upgrade result, save the set mapping relationship stored in the local memory to the remote server.
4. An ECU upgrading device, comprising a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the method according to claim 1 or 2.
5. An ECU upgrade system, characterized in that: include: A host computer, the host computer comprising the ECU upgrade device according to claim 3 or 4; as well as, A vehicle comprising an ECU.
6. A computer-readable storage medium storing a computer program, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the method according to claim 1 or 2.
Citation Information
Patent Citations
Bootloader software updating method based on CAN (controller area network) bus
CN103294511A
System and method of blocking a computer attack on a means of transportation
CN110324219A
Fault diagnosis method and device
CN110515366A
Vehicle-mounted internet gateway, vehicle OTA upgrading system and method and computer storage medium
CN111385191A
Software updating device, server device, and software updating method
CN111984282A
