Realization method, device and equipment for flashing upper computer and readable storage medium

By embedding black box modules in the basic framework of the flashing machine, accessing the dynamic link library file to generate keys and performing security verification, the problem of poor security and high cost of flashing machine development is solved, and higher development security and lower development costs are achieved.

CN119739398APending Publication Date: 2025-04-01ZHIXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411752247.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

In the prior art, the development of the flashing upper computer needs to be based on security algorithms, resulting in poor development security and high cost.

Method used

By building a basic framework for brushing and embedding a black box module in it, the black box module includes a seed input interface and a key output interface for accessing the dynamic link library files corresponding to the security algorithm, generating the target key and performing security verification.

Benefits of technology

It effectively improves the development security of the flashing computer and reduces development costs. Third-party users do not need to provide security algorithms, making the process safer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119739398A_ABST
    Figure CN119739398A_ABST
Patent Text Reader

Abstract

An implementation method, device and equipment for flashing an upper computer and a readable storage medium relate to the technical field of software flashing, and comprise the following steps: constructing a flashing basic framework which is used for executing a flashing action; embedding a black box module comprising a seed input interface and a key output interface in the flash basic framework to generate a target flash upper computer; wherein the black box module is used for accessing a dynamic link library file corresponding to a security algorithm, the seed input interface is used for receiving a target seed input by a third-party user, so that the dynamic link library file generates a target key based on the target seed, and the target seed is provided by a target controller in a to-be-flashed electric drive assembly; and the key output interface is used for outputting the target key to the target controller, so that the target controller performs security verification based on the target key. According to the application, the development of the flashing upper computer can be realized on the premise that a security algorithm is not provided for a supplier, the development security is effectively improved, and the development cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software flashing, and in particular to a method, device, equipment and readable storage medium for flashing a host computer. Background Art

[0002] With the continuous advancement of technology and the rapid development of the market, electric drive assemblies are playing an increasingly important role in the field of new energy vehicles. Among them, the electric drive assembly, also known as the electric drive axle powertrain, is a key component in electric and hybrid vehicles. It has the advantages of high efficiency, fast response, low noise and environmental protection. It is mainly responsible for converting the electrical energy stored in the battery into mechanical energy through the motor, thereby driving the vehicle.

[0003] In the related technology, before the electric drive assembly leaves the factory, it is usually necessary to develop a corresponding flashing host computer to flash the factory program on the controller in the electric drive assembly; however, when the supplier develops the flashing host computer, the third-party user responsible for flashing the factory program needs to provide the supplier with the security algorithm, so that the security algorithm may be leaked, making the development process no longer "safe"; and for the third-party user, every time a new customer is added (the customer is the owner of the electric drive assembly), a new security algorithm will appear, so the supplier needs to re-develop a flashing host computer corresponding to the new security algorithm to implement the factory program flashing, resulting in a high development cost. It can be seen that how to improve the development security of the flashing host computer and reduce the development cost is an urgent problem to be solved. Summary of the invention

[0004] The present application provides a method, device, equipment and readable storage medium for flashing a host computer, which can solve the technical problems in the prior art of poor development security and high development cost caused by the need to implement flashing a host computer based on a security algorithm.

[0005] In a first aspect, an embodiment of the present application provides a method for flashing a host computer, the method comprising:

[0006] Constructing a flashing basic framework, wherein the flashing basic framework is used to perform a flashing action;

[0007] A black box module including a seed input interface and a key output interface is embedded in the flashing basic framework to generate a target flashing host computer;

[0008] Among them, the black box module is used to access the dynamic link library file corresponding to the security algorithm, the seed input interface is used to receive the target seed input by a third-party user, so that the dynamic link library file generates a target key based on the target seed, the target seed is provided by the target controller in the electric drive assembly to be flashed, and the key output interface is used to output the target key to the target controller so that the target controller can perform security verification based on the target key.

[0009] In combination with the first aspect, in one embodiment, after the step of embedding a black box module including a seed input interface and a key output interface in the flashing basic framework to generate a target flashing host computer, the method further includes:

[0010] When the target flashing host computer receives the target seed and the target access address corresponding to the dynamic link library file input by the third-party user, the black box module is controlled to parse the target access address to obtain the target access path;

[0011] Controlling the black box module to access the dynamic link library file based on the target access path, so as to perform key calculation on the target seed through the security algorithm carried in the dynamic link library file to generate a target key;

[0012] The target key is transmitted to the target controller so that the target controller can perform a security check based on the target key and a preset key pre-generated in the target controller, and control the flashing of the target flashing host computer according to the security check result.

[0013] In combination with the first aspect, in one implementation, the target controller performs security verification based on the target key and a preset key pre-generated in the target controller, including:

[0014] The target controller determines whether the target key is consistent with a preset key, where the preset key is obtained by the target controller performing key calculation on the target seed based on the security algorithm;

[0015] If the target key is consistent with the preset key, it is determined that the security check has passed;

[0016] If the target key is inconsistent with the preset key, it is determined that the security check fails.

[0017] In combination with the first aspect, in one implementation, the step of controlling the flashing of the target flashing host computer according to the security verification result includes:

[0018] If the security check result is passed, the target flashing host computer is controlled to perform a flashing action on the target controller;

[0019] If the safety check result is not passed, the target flashing host computer is controlled to end the flashing process of the target controller.

[0020] In a second aspect, an embodiment of the present application provides a device for flashing a host computer, the device for flashing a host computer comprising:

[0021] A construction module, which is used to construct a flashing basic framework, and the flashing basic framework is used to perform a flashing action;

[0022] An embedding module, which is used to embed a black box module including a seed input interface and a key output interface in the flashing basic framework to generate a target flashing host computer;

[0023] Among them, the black box module is used to access the dynamic link library file corresponding to the security algorithm, the seed input interface is used to receive the target seed input by a third-party user, so that the dynamic link library file generates a target key based on the target seed, the target seed is provided by the target controller in the electric drive assembly to be flashed, and the key output interface is used to output the target key to the target controller so that the target controller can perform security verification based on the target key.

[0024] In conjunction with the second aspect, in one implementation, the target flashing host computer is specifically used for:

[0025] When receiving the target seed input by a third-party user and the target access address corresponding to the dynamic link library file, controlling the black box module to parse the target access address to obtain a target access path;

[0026] Controlling the black box module to access the dynamic link library file based on the target access path, so as to perform key calculation on the target seed through the security algorithm carried in the dynamic link library file to generate a target key;

[0027] The target key is transmitted to the target controller so that the target controller can perform a security check based on the target key and a preset key pre-generated in the target controller, and control the flashing of the target flashing host computer according to the security check result.

[0028] In conjunction with the second aspect, in one implementation, the target controller is specifically used to:

[0029] Determine whether the target key is consistent with a preset key, where the preset key is obtained by the target controller performing key calculation on the target seed based on the security algorithm;

[0030] If the target key is consistent with the preset key, it is determined that the security check has passed;

[0031] If the target key is inconsistent with the preset key, it is determined that the security check fails.

[0032] In conjunction with the second aspect, in one implementation, the target controller is further configured to:

[0033] If the security check result is passed, the target flashing host computer is controlled to perform a flashing action on the target controller;

[0034] If the safety check result is not passed, the target flashing host computer is controlled to end the flashing process of the target controller.

[0035] In the third aspect, an embodiment of the present application provides a flashing host computer implementation device, which includes a processor, a memory, and a flashing host computer implementation program stored in the memory and executable by the processor, wherein when the flashing host computer implementation program is executed by the processor, the steps of the flashing host computer implementation method as described above are implemented.

[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a flashing host computer implementation program is stored, wherein when the flashing host computer implementation program is executed by a processor, the steps of the flashing host computer implementation method as described above are implemented.

[0037] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:

[0038] The flashing action is performed by constructing a flashing basic framework, and a black box module whose data processing flow and principle are invisible to the outside is embedded in the flashing basic framework to generate a target flashing host computer; wherein, the black box module is used to access the dynamic link library file corresponding to the security algorithm, and it only needs to provide a seed input interface and a key output interface; therefore, when the black box module receives the target seed provided by the target controller in the electric drive assembly to be flashed and input by a third-party user through the seed input interface, it will access the dynamic link library file and generate a key for the target seed through the dynamic link library file, and output the generated target key to the target controller through the key output interface, so that the target controller can perform security verification based on the target key. Through this application, suppliers can realize the development of flashing host computers by embedding black box modules, so that third-party users do not need to provide security algorithms to suppliers, and third-party users can access dynamic link library files integrated with different security algorithms through black box modules and perform security verification, thereby effectively improving the development security of flashing host computers and reducing development costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A flowchart of an implementation method for flashing a host computer according to the present application;

[0040] Figure 2 A schematic diagram of the interaction process between the target controller and the target flashing host computer involved in the embodiment of the present application;

[0041] Figure 3 This is a schematic diagram of the flashing process involved in the embodiment of the present application.

[0042] Figure 4 This is a schematic diagram of the hardware structure of the flashing host computer implementation device involved in the embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0045] In a first aspect, an embodiment of the present application provides a method for flashing a host computer.

[0046] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of an embodiment of the method for flashing a host computer to implement this application. Figure 1 As shown, the method for flashing the host computer includes:

[0047] Step S10: construct a flashing basic framework, wherein the flashing basic framework is used to perform the flashing action.

[0048] For example, in this embodiment, a flashing basic framework is first constructed, and the flashing basic framework is mainly responsible for executing the flashing of the factory program; wherein, the flashing basic framework includes but is not limited to a user interface layer, a business logic layer and a communication protocol layer, the user interface layer is used to provide a user interaction interface, such as setting flashing parameters, selecting flashing files, monitoring flashing progress and displaying alarm information through the user interface layer, the business logic layer is used to implement communication protocol processing, data verification, flashing process control and error handling, etc., the communication protocol layer is used for the protocol for communicating with the lower computer, etc.; it should be noted that since the specific composition and implementation principle of the flashing basic framework are common knowledge in the field, they will not be repeated here for the sake of brevity of description.

[0049] Step S20: embed a black box module including a seed input interface and a key output interface in the flashing basic framework to generate a target flashing host computer; wherein the black box module is used to access the dynamic link library file corresponding to the security algorithm, the seed input interface is used to receive the target seed input by a third-party user, so that the dynamic link library file generates a target key based on the target seed, the target seed is provided by the target controller in the electric drive assembly to be flashed, and the key output interface is used to output the target key to the target controller, so that the target controller can perform security verification based on the target key.

[0050] For example, it should be understood that although the security algorithm of each customer is different, the flashing process is consistent, so this embodiment will provide a flashing host computer that can accommodate different security algorithms through a flashing process. In order to avoid the leakage of security algorithms, this embodiment will embed a black box module whose data processing process and principle are invisible to the outside in the flashing host computer to determine whether the flashing basic framework will flash the factory program, so that the third-party user can complete the development of the target flashing host computer without providing the security algorithm to the supplier.

[0051] Specifically, the black box module embedded in the flashing basic framework only needs to provide a seed input interface (i.e., SEED interface) and a key output interface (i.e., KEY interface), that is, the black box module in the target flashing host computer developed by the supplier is empty and does not integrate a security algorithm; only after the supplier sends the target flashing host computer to the third-party user responsible for the factory program flashing, the third-party user can access the dynamic link library file (i.e., .dll file) that integrates the security algorithm corresponding to the electric drive assembly to be flashed through the black box module when using the target flashing host computer to flash the target customer's electric drive assembly to be flashed, and perform security verification through the .dll file. It should be understood that the storage location of the .dll file is only known to the third-party user and the target customer, but not to the supplier, that is, the supplier cannot access the .dll file through the black box module.

[0052] Among them, when accessing the dynamic link library file corresponding to the security algorithm through the black box module, it is first necessary to receive the target seed input by the third-party user through the seed input interface, and the target seed is provided by the target controller in the electric drive assembly to be flashed; then access the .dll file through the black box module to perform key calculation on the target seed through the security algorithm integrated in the .dll file, and then generate the target key; then output the target key to the target controller through the key output interface, so as to perform security verification on the target key output by the black box module through the target controller to determine whether the program can be flashed, thereby improving the security of the flashing.

[0053] It should be understood that this embodiment will provide different seed input interfaces and key output interfaces for different customers, so as to input seeds corresponding to different security algorithms and output keys corresponding to different security algorithms. For example, for a third-party user, there are target customers A, B and C. The seed input interface and key output interface corresponding to customer A are SEED_1 and KEY_1 respectively, the seed input interface and key output interface corresponding to customer B are SEED_2 and KEY_2 respectively, and the seed input interface and key output interface corresponding to customer C are SEED_3 and KEY_3 respectively; therefore, when a third-party user needs to flash the program for the electric drive assembly to be flashed for customer A, the SEED_1 interface is first called to input the seed, and then the KEY_1 interface is called to output the key, so as to realize the security verification of customer A.

[0054] Among them, it is assumed that the security algorithm 1 of customer A is the input value × 4. If the seed 1 input through the SEED_1 interface is 5, then when accessing the .dll file 1 corresponding to the security algorithm 1, the key 5×4=20 will be calculated based on the security algorithm 1 and the seed 1; then the key "20" is transmitted to the controller in the electric drive assembly to be flashed by customer A through the KEY_1 interface, so as to perform a security check on the key based on the controller.

[0055] It can be seen that in this embodiment, the supplier can realize the development of flashing the upper computer by embedding the black box module, so that the third-party user does not need to provide the security algorithm to the supplier, that is, the security algorithm does not need to be made public, and the "security" verification is truly realized; and the third-party user can access the dynamic link library file that integrates different security algorithms through the black box module and perform security verification, thereby effectively improving the development security of the flashing upper computer and reducing the development cost.

[0056] Furthermore, in one embodiment, after the step of embedding a black box module including a seed input interface and a key output interface in the flashing basic framework to generate a target flashing host computer, the method further includes:

[0057] When the target flashing host computer receives the target seed and the target access address corresponding to the dynamic link library file input by the third-party user, the black box module is controlled to parse the target access address to obtain the target access path;

[0058] Controlling the black box module to access the dynamic link library file based on the target access path, so as to perform key calculation on the target seed through the security algorithm carried in the dynamic link library file to generate a target key;

[0059] The target key is transmitted to the target controller so that the target controller can perform a security check based on the target key and a preset key pre-generated in the target controller, and control the flashing of the target flashing host computer according to the security check result.

[0060] Exemplarily, in this embodiment, the embedded black box module will be address-interfaced, that is, a third-party user can enter the access address (i.e., target access address) of the .dll file corresponding to the security algorithm to be accessed and the target seed provided by the target controller in the electric drive assembly to be flashed on the interface; when the target flashing host computer receives the target access address, it will control the black box module to parse the target access address to obtain the target access path; then the black box module can start accessing the .dll file according to the target access path. For example, assuming that the target access path is D drive → F folder → F1 folder → F11 folder → .dll file, the black box module can complete the access to the dynamic link library file in the order of accessing D drive, F folder, F1 folder, F11 folder and .dll file in sequence.

[0061] The target key can be generated by calculating the key of the target seed through the security algorithm in the .dll file; then the target key is transmitted to the target controller through the KEY interface. The target controller can then perform a security check based on the target key and its own pre-generated key, and determine whether the target flashing host computer can flash the factory program to the target controller based on the security check result, so as to ensure the security of program flashing.

[0062] It should be noted that, although the security algorithms corresponding to different customers are inconsistent, in the target flashing host computer provided in this embodiment, third-party users only need to independently modify the embedding path of the .dll file corresponding to the security algorithm to realize the development of the flashing host computer for new customers, thereby effectively shortening the development cycle of the flashing host computer required for new customers and reducing development costs. In addition, during the entire development process, except for the customers, other developers do not need to know the specific security algorithm, and the process is safer.

[0063] Further, in one embodiment, the target controller performs security verification based on the target key and a preset key pre-generated in the target controller, including:

[0064] The target controller determines whether the target key is consistent with a preset key, where the preset key is obtained by the target controller performing key calculation on the target seed based on the security algorithm;

[0065] If the target key is consistent with the preset key, it is determined that the security check has passed;

[0066] If the target key is inconsistent with the preset key, it is determined that the security check fails.

[0067] For example, see Figure 2As shown, before a third-party user needs to flash the program of the target controller in the electric drive assembly to be flashed, the third-party user must first request the target controller to obtain the seed SEED; when the target controller receives the request, it will randomly generate a SEED, and calculate the key for the randomly generated SEED according to its internal security algorithm to obtain the preset key, and send the randomly generated SEED to the third-party user at the same time; then the third-party user inputs the SEED into the black box module through the SEED interface to access the corresponding .dll file through the black box module, and then calculates the target key corresponding to the SEED through the security algorithm in the .dll file; finally, the target key is transmitted back to the target controller through the KEY interface, and the target controller can perform a security check based on the consistency between the target key and the preset key, that is, if the two are consistent, the security check is determined to be passed, and if the two are inconsistent, the security check is determined to be failed.

[0068] It should be understood that the seed SEED is randomly generated by the target controller, that is, the seed SEED is dynamic, which can avoid the problem of SEED or key leakage. Therefore, security verification based on the randomly generated SEED can further improve the security of flashing.

[0069] Furthermore, in one embodiment, the step of controlling the flashing of the target flashing host computer according to the security verification result includes:

[0070] If the security check result is passed, the target flashing host computer is controlled to perform a flashing action on the target controller;

[0071] If the safety check result is not passed, the target flashing host computer is controlled to end the flashing process of the target controller.

[0072] Exemplarily, in this embodiment, when the target controller confirms that the target key is the same as the preset key, it means that the flashing of the target flashing host computer this time is legal and safe, and then the information that the security check passed is sent to the target flashing host computer so that the target flashing host computer can perform the flashing operation on the target controller; however, if the target key is not the same as the preset key, it means that there is a security problem in the flashing of the target flashing host computer this time, and then the information that the security check failed is sent to the target flashing host computer so that the target flashing host computer ends the flashing process of the target controller.

[0073] The following combination Figure 3 The process and principle of program flashing on the target flashing host computer provided in this embodiment are explained.

[0074] First, a third-party user obtains a target seed corresponding to a security algorithm from a target controller in a certain customer's electric drive assembly to be flashed (for example, the SEED corresponding to customer A is 5); secondly, the target seed and the target access address of the dynamic link library file corresponding to the security algorithm are input into the black box module; the black box module accesses the dynamic link library file through the target access address, and calculates the key for the target seed based on the security algorithm in the dynamic link library file (for example, the security algorithm of customer A is input to ×4), and obtains the corresponding target key (for example, the target key corresponding to customer A is 20); when the target controller detects that the target key is consistent with the preset key, the target software to be flashed is downloaded, and the content to be flashed in the target software is gradually written into the target controller through the target flashing host computer; after the flashing is completed, the version number data corresponding to the last line in the target controller can be compared with the preset version number. If the two are the same, it is confirmed that the flashed target software is correct; otherwise, it is determined that the flashed target software is wrong and needs to be flashed again.

[0075] In summary, the security check provided by the target flashing host computer of this embodiment is similar to that of an electronic door lock, and the security algorithms set by different customers, that is, the door opening passwords of electronic door locks, are different and dynamic. Therefore, only by entering the correct password can the formal flashing interaction begin, that is, if the flashing device can calculate the corresponding correct key, the door will open, and the next step of interaction can be achieved; it can be seen that this embodiment can allow the supplier to complete the development of the flashing host computer without providing the security algorithm to the supplier, making the flashing host computer a "universal key", but without deciphering the security algorithm, so as to make the development process safer; in addition, it is only necessary to build a line for the supplier to develop a prototype of the flashing host computer once, and subsequently for all new customers, third-party users can independently complete the program development of the flashing host computer, which can save a lot of costs and shorten the development cycle for platform-based production lines (pure electric five-wire and pure electric six-wire).

[0076] In a second aspect, an embodiment of the present application also provides a device for flashing a host computer.

[0077] In one embodiment, the device for flashing the host computer includes:

[0078] A construction module, which is used to construct a flashing basic framework, and the flashing basic framework is used to perform a flashing action;

[0079] An embedding module, which is used to embed a black box module including a seed input interface and a key output interface in the flashing basic framework to generate a target flashing host computer;

[0080] Among them, the black box module is used to access the dynamic link library file corresponding to the security algorithm, the seed input interface is used to receive the target seed input by a third-party user, so that the dynamic link library file generates a target key based on the target seed, the target seed is provided by the target controller in the electric drive assembly to be flashed, and the key output interface is used to output the target key to the target controller so that the target controller can perform security verification based on the target key.

[0081] Furthermore, in one embodiment, the target flashing host computer is specifically used for:

[0082] When receiving the target seed input by a third-party user and the target access address corresponding to the dynamic link library file, controlling the black box module to parse the target access address to obtain a target access path;

[0083] Controlling the black box module to access the dynamic link library file based on the target access path, so as to perform key calculation on the target seed through the security algorithm carried in the dynamic link library file to generate a target key;

[0084] The target key is transmitted to the target controller so that the target controller can perform a security check based on the target key and a preset key pre-generated in the target controller, and control the flashing of the target flashing host computer according to the security check result.

[0085] Furthermore, in one embodiment, the target controller is specifically used for:

[0086] Determine whether the target key is consistent with a preset key, where the preset key is obtained by the target controller performing key calculation on the target seed based on the security algorithm;

[0087] If the target key is consistent with the preset key, it is determined that the security check has passed;

[0088] If the target key is inconsistent with the preset key, it is determined that the security check fails.

[0089] Furthermore, in one embodiment, the target controller is further configured to:

[0090] If the security check result is passed, the target flashing host computer is controlled to perform a flashing action on the target controller;

[0091] If the safety check result is not passed, the target flashing host computer is controlled to end the flashing process of the target controller.

[0092] Among them, the functional implementation of each module in the above-mentioned flashing host computer implementation device corresponds to the various steps in the above-mentioned flashing host computer implementation method embodiment, and its functions and implementation processes are no longer repeated here one by one.

[0093] In a third aspect, an embodiment of the present application provides a device for flashing a host computer, and the device for flashing a host computer may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0094] Reference Figure 4 , Figure 4 Schematic diagram of the hardware structure of the flashing host computer implementation device involved in the embodiment of the present application. In the embodiment of the present application, the flashing host computer implementation device may include a processor, a memory, a communication interface and a communication bus.

[0095] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0096] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the flashing host computer, and the interconnection of the flashing host computer with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.

[0097] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0098] The processor may be a general-purpose processor, and the general-purpose processor may call the flashing host computer implementation program stored in the memory, and execute the flashing host computer implementation method provided by the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). Among them, the method executed when the flashing host computer implementation program is called can refer to the various embodiments of the flashing host computer implementation method of the present application, which will not be repeated here.

[0099] Those skilled in the art will understand that Figure 4 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0100] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0101] The readable storage medium of the present application stores a flashing host computer implementation program, wherein when the flashing host computer implementation program is executed by a processor, the steps of the flashing host computer implementation method as described above are implemented.

[0102] Among them, the method implemented when the flashing host computer implementation program is executed can refer to the various embodiments of the flashing host computer implementation method of this application, and will not be repeated here.

[0103] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0104] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0105] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0106] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0107] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0109] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for flashing a host computer, characterized in that: The method for implementing flashing the host computer includes: Constructing a flashing basic framework, wherein the flashing basic framework is used to perform a flashing action; A black box module including a seed input interface and a key output interface is embedded in the flashing basic framework to generate a target flashing host computer; Among them, the black box module is used to access the dynamic link library file corresponding to the security algorithm, the seed input interface is used to receive the target seed input by a third-party user, so that the dynamic link library file generates a target key based on the target seed, the target seed is provided by the target controller in the electric drive assembly to be flashed, and the key output interface is used to output the target key to the target controller so that the target controller can perform security verification based on the target key.

2. The method for implementing flashing a host computer as claimed in claim 1, characterized in that: After the step of embedding a black box module including a seed input interface and a key output interface in the flashing basic framework to generate a target flashing host computer, the method further includes: When the target flashing host computer receives the target seed and the target access address corresponding to the dynamic link library file input by the third-party user, the black box module is controlled to parse the target access address to obtain the target access path; Controlling the black box module to access the dynamic link library file based on the target access path, so as to perform key calculation on the target seed through the security algorithm carried in the dynamic link library file to generate a target key; The target key is transmitted to the target controller so that the target controller can perform a security check based on the target key and a preset key pre-generated in the target controller, and control the flashing of the target flashing host computer according to the security check result.

3. The method for implementing flashing a host computer as claimed in claim 2, characterized in that: The target controller performs security verification based on the target key and a preset key pre-generated in the target controller, including: The target controller determines whether the target key is consistent with a preset key, where the preset key is obtained by the target controller performing key calculation on the target seed based on the security algorithm; If the target key is consistent with the preset key, it is determined that the security check has passed; If the target key is inconsistent with the preset key, it is determined that the security check fails.

4. The method for implementing flashing a host computer as claimed in claim 2, characterized in that: The controlling the flashing of the target flashing host computer according to the security verification result includes: If the security check result is passed, the target flashing host computer is controlled to perform a flashing action on the target controller; If the safety check result is not passed, the target flashing host computer is controlled to end the flashing process of the target controller.

5. A device for flashing a host computer, characterized in that: The device for flashing the host computer comprises: A construction module, which is used to construct a flashing basic framework, and the flashing basic framework is used to perform a flashing action; An embedding module, which is used to embed a black box module including a seed input interface and a key output interface in the flashing basic framework to generate a target flashing host computer; Among them, the black box module is used to access the dynamic link library file corresponding to the security algorithm, the seed input interface is used to receive the target seed input by a third-party user, so that the dynamic link library file generates a target key based on the target seed, the target seed is provided by the target controller in the electric drive assembly to be flashed, and the key output interface is used to output the target key to the target controller so that the target controller can perform security verification based on the target key.

6. The device for flashing a host computer as claimed in claim 5, characterized in that: The target flashing host computer is specifically used for: When receiving the target seed input by a third-party user and the target access address corresponding to the dynamic link library file, controlling the black box module to parse the target access address to obtain a target access path; Controlling the black box module to access the dynamic link library file based on the target access path, so as to perform key calculation on the target seed through the security algorithm carried in the dynamic link library file to generate a target key; The target key is transmitted to the target controller so that the target controller can perform a security check based on the target key and a preset key pre-generated in the target controller, and control the flashing of the target flashing host computer according to the security check result.

7. The device for flashing a host computer as claimed in claim 6, characterized in that: The target controller is specifically used for: Determine whether the target key is consistent with a preset key, where the preset key is obtained by the target controller performing key calculation on the target seed based on the security algorithm; If the target key is consistent with the preset key, it is determined that the security check has passed; If the target key is inconsistent with the preset key, it is determined that the security check fails.

8. The device for flashing a host computer as claimed in claim 6, characterized in that: The target controller is further specifically used for: If the security check result is passed, the target flashing host computer is controlled to perform a flashing action on the target controller; If the safety check result is not passed, the target flashing host computer is controlled to end the flashing process of the target controller.

9. A device for flashing a host computer, characterized in that: The flashing host computer implementation device includes a processor, a memory, and a flashing host computer implementation program stored in the memory and executable by the processor, wherein when the flashing host computer implementation program is executed by the processor, the steps of the flashing host computer implementation method as described in any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a flashing host computer implementation program, wherein when the flashing host computer implementation program is executed by the processor, the steps of the flashing host computer implementation method according to any one of claims 1 to 4 are implemented.