ECU flashing method and device, electronic equipment and storage medium
By using CANFD interface and security algorithms in ECU flashing, the ECU flashing platform is generated, which solves the problem of excessive load in the CAN network, and achieves efficient ECU flashing and intelligent needs.
Patent Information
- Application Number
- CN202411496390.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, only CAN network is used to flash ECUs, resulting in excessive load on the CAN network and cannot meet the user's intelligent needs.
The address information of the ECU to be flashed through the CANFD interface, and an ECU flashing platform is generated based on the security algorithm and flashing process to realize the flashing of the ECU.
It reduces the load of the CAN network, meets users' needs for intelligence, improves the ECU's brushing efficiency, and saves costs.
Smart Images

Figure CN119440577A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of ECU flashing, and specifically to an ECU flashing method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of the automobile industry, users have higher and higher demands for the intelligence of automobiles. Therefore, the functions of vehicles are constantly increasing, and the number of engine control units (ECUs) on the vehicle is also increasing.
[0003] In the related art, the communication between ECUs and the flashing of ECUs are realized through the Controller Area Network (CAN). As the number of ECUs increases, the load rate of the CAN network gradually increases, and relying solely on CAN network communication has gradually failed to meet the needs of users. Although the variable rate CAN network (CAN with Flexible Data-Rate, CANFD) is gradually replacing the traditional CAN network, the flashing of ECUs is still realized through the CAN network in the related art.
[0004] As the application of Over-the-Air Technology (OTA) in smart cars increases, using only the CAN network to flash the ECU may cause the CAN network to be overloaded and unable to meet the user's intelligent needs.
[0005] It should be pointed out that the information disclosed in the background technology section of this application is only intended to deepen the understanding of the general background technology of this application, and should not be regarded as an admission or suggestion in any form that the information constitutes prior art already known to those skilled in the art. Summary of the invention
[0006] In view of this, the present application provides an ECU flashing method to help solve the problem in the prior art that only using the CAN network to flash the ECU may cause the CAN network to be overloaded and unable to meet the user's intelligent needs.
[0007] In a first aspect, an embodiment of the present application provides an ECU flashing method, the method comprising:
[0008] Get the address information of the ECU to be flashed through the CANFD interface;
[0009] Generate an ECU flashing platform according to a security algorithm and a flashing process, wherein the security algorithm is used to decrypt the ECU to be flashed so that the ECU to be flashed can be edited, and the flashing process is used to flash the ECU to be flashed;
[0010] The ECU to be flashed is flashed according to the ECU flashing platform and the address information of the ECU to be flashed.
[0011] In the embodiment of the present application, the flashing of the ECU is achieved through CANFD, which can reduce the load of the CAN network and meet the user's demand for intelligence. The method provided in the embodiment of the present application can use domestic flashing equipment, reduce equipment limitations, improve the flashing efficiency of the ECU, and save costs.
[0012] In a possible implementation, the acquiring the address information of the ECU to be flashed through the CANFD interface includes: controlling the flashing device to acquire the address information of the ECU to be flashed through the CANFD interface;
[0013] Flashing the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed includes: controlling the flashing device to flash the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed.
[0014] In the embodiment of the present application, the address information of the ECU to be flashed is obtained through the flashing device, and the flashing device is controlled to flash the ECU to be flashed. It can be understood that the host computer and the ECU cannot be directly connected through the wiring harness, and the ECU needs to be flashed indirectly through the flashing device. The method provided in the embodiment of the present application can be applied to a variety of devices, expanding the scope of application of the ECU flashing method.
[0015] In a possible implementation, before generating the ECU flashing platform according to the security algorithm and the flashing process, the method further includes:
[0016] A security algorithm is generated through a security algorithm generation program according to the encryption algorithm of the ECU to be flashed, and the security algorithm is used to decrypt the ECU to be flashed.
[0017] In the embodiment of the present application, because the ECU has its own encryption algorithm, the ECU to be flashed needs to be decrypted before the ECU can be flashed. In the present application, the ECU flashing device needs to generate a security algorithm through a security algorithm generation program, and generate a security algorithm according to the encryption algorithm of the ECU to be flashed, and the security algorithm can decrypt the ECU to be flashed.
[0018] In a possible implementation, the security algorithm is generated by the security algorithm generation program according to the encryption algorithm of the ECU, including:
[0019] A security algorithm is generated through a security algorithm generation program according to the encryption algorithm of the ECU to be flashed and the underlying logic of the flashing device. The underlying logic of the flashing device is used to control the flashing device.
[0020] In the embodiment of the present application, when the ECU to be flashed is flashed by the flashing device, the ECU flashing device needs to generate the security algorithm according to the encryption algorithm of the ECU to be flashed and the underlying logic of the flashing device when generating the security algorithm, wherein the underlying logic of the flashing device is used to control the flashing device. It is understandable that when the flashing device is needed, the flashing device needs to be controlled, so the underlying logic of the flashing device needs to be added to the security algorithm, so as to better control the flashing device, and then realize the flashing of the ECU to be flashed.
[0021] In a possible implementation, after generating the ECU flashing platform, the method further includes:
[0022] A test procedure is used to test whether the ECU flashing platform can successfully complete the flashing.
[0023] In the embodiment of the present application, after the ECU flashing platform is generated, a verification program is used to verify whether the ECU flashing platform can successfully complete the flashing. It can be understood that the reliability of the ECU flashing platform can be guaranteed through the verification process, thereby ensuring the success of the flashing.
[0024] In a possible implementation, the checking whether the ECU flashing platform can successfully complete the flashing by using a checking program includes:
[0025] Verify through a first verification procedure whether the ECU flashing platform can successfully complete the flashing;
[0026] If the first verification program verifies that the ECU flashing platform can successfully complete the flashing, then the second verification program is used to verify whether the ECU flashing platform can successfully complete the flashing.
[0027] In the embodiment of the present application, two inspection programs are used to respectively inspect whether the ECU flashing platform can successfully complete the flashing. It is understandable that the inspection results of the two inspection programs can be mutually verified, thereby ensuring the reliability of the inspection results and further ensuring the success rate of the flashing.
[0028] In a possible implementation, after flashing the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed, the method further includes:
[0029] Flashing the ECU to be flashed multiple times to determine whether the ECU to be flashed is successfully flashed.
[0030] In the embodiment of the present application, after flashing the ECU to be flashed, the ECU is flashed multiple times. It can be understood that the result of a flashing may be accidental, and multiple flashing can improve the success rate of ECU flashing.
[0031] In a second aspect, an embodiment of the present application provides an ECU flashing device, comprising:
[0032] The address information acquisition module is used to obtain the address information of the ECU to be flashed through the CANFD interface;
[0033] A flashing platform generation module, used to generate an ECU flashing platform according to a security algorithm and a flashing process, wherein the security algorithm is used to decrypt the ECU to be flashed so that the ECU to be flashed can be edited, and the flashing process is used to flash the ECU to be flashed;
[0034] The flashing module is used to flash the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed.
[0035] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0036] processor;
[0037] Memory;
[0038] And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes any one of the methods described in the first aspect.
[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described in the first aspect.
[0040] It is understandable that the ECU flash writing device provided in the second aspect, the electronic device provided in the third aspect, and the computer-readable storage medium provided in the fourth aspect are used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0042] Figure 1 A schematic diagram of a flow chart of an ECU flashing method provided in an embodiment of the present application;
[0043] Figure 2A connection diagram of a flash writing device provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the structure of an ECU flashing platform provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of a structure in which an ECU flashing platform is successfully flashed provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of a stress test on an ECU flashing platform provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of the structure of an ECU flashing device provided in an embodiment of the present application;
[0048] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0050] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0051] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0052] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0053] With the continuous development of the automobile industry, users have higher and higher demands for the intelligence of automobiles. Therefore, the functions of vehicles are constantly increasing, and the number of engine control units (ECUs) on the vehicle is also increasing.
[0054] In the related art, the communication between ECUs and the flashing of ECUs are realized through the Controller Area Network (CAN). As the number of ECUs increases, the load rate of the CAN network gradually increases, and relying solely on CAN network communication has gradually failed to meet the needs of users. Although the variable rate CAN network (CAN with Flexible Data-Rate, CANFD) is gradually replacing the traditional CAN network, the flashing of ECUs is still realized through the CAN network in the related art.
[0055] As the application of Over-the-Air Technology (OTA) in smart cars increases, using only the CAN network to flash the ECU may cause the CAN network to be overloaded and unable to meet the user's intelligent needs.
[0056] In view of the above problems, the embodiment of the present application provides an ECU flashing method, which implements the flashing of the ECU through CANFD, can reduce the load of the CAN network, meet the user's demand for intelligence, and the method provided by the embodiment of the present application can use domestic flashing equipment, reduce equipment limitations, improve the flashing efficiency of the ECU, and save costs. The following is a detailed description in conjunction with the accompanying drawings and specific embodiments.
[0057] See also Figure 1 , is a flow chart of an ECU flashing method provided in an embodiment of the present application. Figure 1 As shown, it mainly includes the following steps.
[0058] Step S101: Acquire the address information of the ECU to be flashed through the CANFD interface.
[0059] Specifically, the ECU flashing device obtains the address information of the ECU to be flashed through the CANFD interface. In a possible implementation, the upper computer software is configured according to the corresponding specifications of the ECU to be flashed, specifically configuring the ECU channel, the ECU frame type (CANFD), the physical address, the function address, and the response address. Because each ECU has a corresponding specification, the ECU flashing device needs to determine the address information of the ECU through the corresponding specification of the ECU when obtaining the address information of the ECU.
[0060] In practical applications, the host computer cannot usually be directly connected to the ECU. Therefore, the information exchange between the host computer and the ECU needs to be completed through the flashing device. Therefore, in a possible implementation, the host computer controls the flashing device to obtain the address information of the ECU to be flashed through the CANFD interface. Among them, the host computer is electrically connected to the flashing device, and the flashing device is electrically connected to the ECU to be flashed through a wiring harness. In a possible implementation, the host computer is a computer, and the flashing device is a Zhou Ligong device (ZLG). Of course, those skilled in the art can set the host computer and the flashing device to other devices according to actual needs, and the embodiment of the present application does not make specific restrictions on this. In a possible implementation, the host computer is connected to the flashing device through a USB cable, and the flashing device is connected to the ECU through a wiring harness UD8. Of course, those skilled in the art can set the connection mode between the host computer and the flashing device and the connection mode between the flashing device and the ECU to other connection modes according to actual needs, and the embodiment of the present application does not make specific restrictions on this.
[0061] For example, see Figure 2 , is a connection diagram of a flash writing device provided in an embodiment of the present application. Figure 2 As shown, the host computer and the ZLG device are connected via USB, the ZLG device and the ECU are connected via the wiring harness UD8, and the CAN_H and CAN_L pins of UD8 are respectively connected to the CAN1 channel (CAN_H and CAN_L) of the ZLG device.
[0062] Step S102: Generate an ECU flashing platform according to the security algorithm and flashing process.
[0063] Specifically, the ECU flashing device generates an ECU flashing platform according to the security algorithm and the flashing process. Among them, the security algorithm is used to decrypt the ECU to be flashed, so that the ECU to be flashed can be edited, and the flashing process is used to flash the ECU to be flashed. It can be understood that generating an ECU flashing platform is more convenient for flashing the ECU in the future. It only needs to successfully connect the ECU to be flashed with the host computer to realize the flashing of the ECU to be flashed through the ECU flashing platform on the host computer.
[0064] In a possible implementation, the flashing process can be input by the user through the host computer. Specifically, the user generates a flashing process framework according to the OTA specification and the CANFD flashing specification, and inputs the flashing process framework into the host computer, so that the host computer can flash through the process.
[0065] In one possible implementation, before generating an ECU flashing platform, it is necessary to generate a program through a security algorithm, and generate a security algorithm according to the encryption algorithm of the ECU to be flashed. The security algorithm is used to decrypt the ECU to be flashed, so that the ECU to be flashed can be edited. Because the ECU has its own encryption algorithm, the ECU to be flashed needs to be decrypted before it can be flashed or edited. In this application, the ECU flashing device needs to generate a program through a security algorithm, and generate a security algorithm according to the encryption algorithm of the ECU to be flashed. The security algorithm can decrypt the ECU to be flashed.
[0066] Specifically, the user runs the security algorithm generation program (sa-demo project) through the software in the host computer, and inputs the encryption algorithm of the ECU to be flashed, thereby generating a security algorithm.
[0067] In a possible implementation, a flashing device is also included between the host computer and the ECU. At this time, when generating a security algorithm, the underlying logic of the flashing device needs to be added to the security algorithm generation program, wherein the underlying logic of the flashing device is used to control the corresponding flashing device. It can be understood that adding the underlying logic of the flashing device to the security algorithm generation program can ensure that the ECU flashing device can better control the flashing device, thereby flashing the ECU to be flashed.
[0068] It can be understood that by taking the code logic of Zhou Ligong's equipment as the theoretical basis, developing a security algorithm program, and calling the driving code parameters of Zhou Ligong's equipment to realize the generation of the security algorithm, the ECU flashing device can better control the flashing device to flash the ECU to be flashed.
[0069] See also Figure 3 , is a schematic diagram of the structure of an ECU flashing platform provided in an embodiment of the present application. Figure 3 As shown, the ECU flashing platform that the user can see through the host computer includes the flashing process 301 and some editing options for the flashing process. The user can flash the ECU through the ECU flashing platform, that is, the next time the user flashes the ECU, he only needs to make some modifications to the ECU flashing platform without rewriting the algorithm, which can greatly save the user's time and improve work efficiency.
[0070] like Figure 3 As shown, the flashing process 301 includes service, data, address, suppression response and delay, wherein service is the name of the operation that the user wants to perform on the EUC to be flashed, data is the data number corresponding to the corresponding service in the ECU specification, address is the address information of the ECU to be flashed, suppression response is whether the service needs to suppress the response, and delay is whether the corresponding service needs to be delayed. The user can set the options corresponding to each service according to actual needs, so that the ECU to be flashed can be flashed according to the user's wishes.
[0071] Step S103: flashing the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed.
[0072] Specifically, after the ECU flashing device generates the ECU flashing platform, the address information of the ECU to be flashed is input into the ECU flashing platform, and the ECU to be flashed is flashed.
[0073] In a possible implementation, there is a flashing device between the host computer and the ECU, so the host computer cannot flash the ECU directly, and needs to flash the ECU through the flashing device, that is to say. The host computer controls the flashing device to flash the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed. The method provided in the embodiment of the present application can be applied to a variety of devices, expanding the scope of application of the ECU flashing method.
[0074] In a possible implementation, after generating the ECU flashing platform, the host computer also needs to verify whether the ECU flashing platform can successfully complete the flashing through a verification program. Among them, the verification program can be a program generated by the user through the verification software. Specifically, the user inputs the file containing the ECU flashing platform into the verification software on the host computer, and determines whether the ECU flashing platform can successfully complete the flashing through the verification software. It can be understood that the reliability of the ECU flashing platform can be guaranteed through the verification process, thereby ensuring the success of the flashing.
[0075] See also Figure 4 , is a schematic diagram of a structure in which an ECU flashing platform provided in an embodiment of the present application is successfully flashed. Figure 4 As shown, the flashing result display area 401 displays "Flashing succeeded 1 time, failed 0 times", that is, if the flashing is performed once and the flashing is successful once, then the ECU flashing platform can be flashed successfully. On the contrary, if the flashing result display area 401 displays "Flashing succeeded 0 times, failed 1 time", it means that the flashing is performed once and the flashing fails, then the ECU flashing platform cannot be flashed successfully.
[0076] In a possible implementation, two verification programs are used to verify whether the ECU writing platform can successfully complete the flashing. Specifically, the first verification program is used to verify whether the ECU flashing platform can successfully complete the flashing; if the first verification program verifies that the ECU flashing platform can successfully complete the flashing, the second verification program is used to verify whether the ECU flashing platform can successfully complete the flashing. In a possible implementation, the first verification program is the first verification software, the second verification program is the second verification software, and the first verification program and the second verification program can be domestic verification software and foreign verification software, respectively. The verification results of the two software are verified against each other to obtain more accurate verification results, thereby ensuring the reliability of the verification results and further ensuring the success rate of the flashing.
[0077] In a possible implementation, after the ECU flashing device finishes flashing the ECU to be flashed, it flashes the ECU to be flashed multiple times to determine whether the flashing of the ECU to be flashed is successful. The ECU flashing device can flash the ECU to be flashed 10 times, 100 times, or even 1000 times, and determine whether the ECU can pass the stress test based on the success rate of multiple flashing.
[0078] See also Figure 5 , is a schematic diagram of a structure of an ECU flashing platform stress test provided in an embodiment of the present application. Figure 5 As shown, the flashing result display area 401 displays "10 flashing successes, 0 failures", that is, the ECU flashing device flashes the ECU to be flashed 10 times, and all 10 flashings are successful. At this time, the ECU can continue to be flashed 100 times or more, so as to perform a higher level of stress test on the ECU. Of course, if the flashing result display area 401 displays "0 flashing successes, 10 failures", it means that the ECU flashing has failed.
[0079] In one possible implementation, a success rate threshold is pre-set. If the flashing success rate of the ECU to be flashed is greater than or equal to the preset success rate threshold, the flashing of the ECU to be flashed is successful; if the flashing success rate of the ECU to be flashed is less than the preset success rate threshold, the flashing of the ECU to be flashed fails.
[0080] Exemplarily, the preset success rate threshold is 80%. If the flashing result display area 401 displays "8 successful flashing times, 2 failed flashing times", the flashing success rate of the ECU to be flashed is 8 / 10*100%=80%. Because 80% is equal to the preset success rate threshold, it can be determined that the flashing of the ECU to be flashed is successful; if the flashing result display area 401 displays "5 successful flashing times, 5 failed flashing times", the flashing success rate of the ECU to be flashed is 5 / 10*100%=50%. Because 50% is less than the preset success rate threshold, it can be determined that the flashing of the ECU to be flashed has failed.
[0081] In summary, the ECU flashing method provided by the embodiment of the present application solves the limitations of the current CANFD-ECU flashing test method and equipment limitations, and improves the flashing efficiency of the ECU; in addition, the method provided by the embodiment of the present application can use domestic flashing equipment, because the cost performance of domestic flashing equipment is high, so the method provided by the embodiment of the present application can save costs and improve economic benefits. Because the domestic flashing equipment can directly compile hex files, the method provided by the embodiment of the present application realizes security authentication (generating security algorithms) and hex file compilability, and the underlying logic of the OTA flashing test of the CANFD-ECU can be studied closely in this application, so that developers can modify the ECU flashing platform more intuitively and quickly, improving work efficiency.
[0082] Corresponding to the above embodiments, the present application also provides an ECU flashing device.
[0083] See also Figure 6 , is a schematic diagram of the structure of an ECU flash writing device provided in an embodiment of the present application. Figure 6 As shown, the ECU flashing device includes: an address information acquisition module 601, a flashing platform generation module 602, and a flashing module 603. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present application. It can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0084] The address information acquisition module 601 is used to acquire the address information of the ECU to be flashed through the CANFD interface;
[0085] The flashing platform generation module 602 is used to generate an ECU flashing platform according to a security algorithm and a flashing process, wherein the security algorithm is used to decrypt the ECU to be flashed so that the ECU to be flashed can be edited, and the flashing process is used to flash the ECU to be flashed;
[0086] The flashing module 603 is used to flash the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed.
[0087] In addition, in a possible implementation, the ECU flashing device further includes a verification module, and the verification module is used to verify whether the ECU flashing platform can successfully complete the flashing through a verification program.
[0088] Specifically, the inspection module is specifically used to inspect whether the ECU flashing platform can successfully complete the flashing through a first inspection program; if the first inspection program inspects that the ECU flashing platform can successfully complete the flashing, then inspect whether the ECU flashing platform can successfully complete the flashing through a second inspection program.
[0089] In addition, the inspection module is also used to flash the ECU to be flashed multiple times to determine whether the ECU to be flashed is successfully flashed.
[0090] Corresponding to the above embodiments, the present application also provides an electronic device.
[0091] See also Figure 7 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 700 may include: a processor 701, a memory 702 and a communication unit 703. These components communicate via one or more buses. Those skilled in the art will appreciate that the structure of the electronic device shown in the figure does not limit the embodiments of the present application. It may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0092] The communication unit 703 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0093] The processor 701 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs, instructions, and / or modules stored in the memory 702, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 701 can include only a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.
[0094] The memory 702 is used to store the execution instructions of the processor 701. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0095] When the execution instructions in the memory 702 are executed by the processor 701, the electronic device 700 can execute Figure 1 Some or all of the steps in the illustrated embodiments.
[0096] In a specific implementation, the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the simulation scene generation method provided in the embodiment of the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0097] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0098] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0100] In several embodiments provided in the present application, any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.
[0101] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. An ECU flashing method, characterized in that: The method comprises: Get the address information of the ECU to be flashed through the CANFD interface; Generate an ECU flashing platform according to a security algorithm and a flashing process, wherein the security algorithm is used to decrypt the ECU to be flashed so that the ECU to be flashed can be edited, and the flashing process is used to flash the ECU to be flashed; The ECU to be flashed is flashed according to the ECU flashing platform and the address information of the ECU to be flashed.
2. The method according to claim 1, characterized in that The obtaining the address information of the ECU to be flashed through the CANFD interface includes: controlling the flashing device to obtain the address information of the ECU to be flashed through the CANFD interface; Flashing the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed includes: controlling the flashing device to flash the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed.
3. The method according to claim 2, characterized in that Before generating the ECU flashing platform according to the security algorithm and the flashing process, the method further includes: A security algorithm is generated through a security algorithm generation program according to the encryption algorithm of the ECU to be flashed, and the security algorithm is used to decrypt the ECU to be flashed.
4. The method according to claim 3, characterized in that The security algorithm generation program generates a security algorithm according to the encryption algorithm of the ECU, including: A security algorithm is generated through a security algorithm generation program according to the encryption algorithm of the ECU to be flashed and the underlying logic of the flashing device. The underlying logic of the flashing device is used to control the flashing device.
5. The method according to claim 1, characterized in that After generating the ECU flashing platform, the method further includes: A test procedure is used to test whether the ECU flashing platform can successfully complete the flashing.
6. The method according to claim 5, characterized in that The verification procedure for verifying whether the ECU flashing platform can successfully complete the flashing includes: Verify through a first verification procedure whether the ECU flashing platform can successfully complete the flashing; If the first verification program verifies that the ECU flashing platform can successfully complete the flashing, then the second verification program is used to verify whether the ECU flashing platform can successfully complete the flashing.
7. The method according to claim 1, characterized in that After flashing the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed, the method further includes: Flashing the ECU to be flashed multiple times to determine whether the ECU to be flashed is successfully flashed.
8. An ECU flashing device, characterized in that: include: The address information acquisition module is used to obtain the address information of the ECU to be flashed through the CANFD interface; A flashing platform generation module, used to generate an ECU flashing platform according to a security algorithm and a flashing process, wherein the security algorithm is used to decrypt the ECU to be flashed so that the ECU to be flashed can be edited, and the flashing process is used to flash the ECU to be flashed; The flashing module is used to flash the ECU to be flashed according to the ECU flashing platform and the address information of the ECU to be flashed.
9. An electronic device, characterized in that: include: processor; Memory; And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.