A BMS firmware intelligent burning method, system and medium

Automatically obtain and decrypt firmware information through the BMS platform, realizing automatic programming and burning of BMS ICs, solving the inefficiency and high maintenance costs caused by manual dependence in the existing technology, improving the burning efficiency and information security, and adapting to different projects power supply demand.

CN118626108BActive Publication Date: 2024-11-22SHENZHEN ANSHI NEW ENERGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410904303.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-22
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

The existing BMS IC firmware burning technology relies on manual operation, has low efficiency, long training cycle, difficult maintenance, and has information security risks and high maintenance costs. In particular, the power supply voltages required for different projects are different, resulting in high development and maintenance costs.

Method used

Firmware information is automatically obtained through the BMS platform, and the burn configuration is generated. The programming software is used to automatically decrypt and burn the encrypted firmware to the target chip, realizing automatic programming and burning, and digital management is carried out through the MES platform to reduce the risk of manual intervention and errors.

Benefits of technology

It improves the burning efficiency, reduces training time and maintenance costs, enhances information security, adapts to the power supply needs of different projects, and simplifies the development and maintenance process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626108B_ABST
    Figure CN118626108B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method, system and medium for intelligent burning of BMS firmware, the method comprising: obtaining firmware-related information based on a BMS firmware management platform, the firmware-related information comprising a project number, a chip model and a firmware version; matching the corresponding chip model based on the project number to obtain a target chip, and generating burning configuration information; generating a firmware file in a prescribed format according to the burning configuration information, and uploading it to the BMS firmware management platform; downloading the firmware file to a burning module based on programming software, and burning the configuration information to the target chip based on the burning module to obtain a burning result; transmitting the burning result to an MES platform for digital management in a set manner; automatically obtaining programming software through the BMS platform to automatically decrypt the firmware file and burn it to the target chip, thereby realizing automatic programming and burning of the firmware and improving burning efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of program burning, and in particular to a method, system and medium for intelligent burning of BMS firmware. Background Art

[0002] The production design of BMS (battery management system) uses a variety of ICs due to cost or customer demand. However, the firmware burning methods and tools for various ICs are varied, and there are various problems:

[0003] The burning software and hardware tools provided by various IC manufacturers have various operation methods and complicated burning configurations, which require a long time for technical workers to learn and train. There are many burning WIs, and manual operation by production line operators is prone to errors, resulting in batch rework of products. The production cost and risk are high. Some IC manufacturers no longer provide technical support for the burning software and hardware tools, and problems can only be solved by third parties. There are even problems that cannot be solved: a specific PC operating system is required; the PC system may crash or even burn out the PC hardware during use, resulting in high maintenance costs; the PCBA burning solution for complex BMS is designed for a single product, the project development cost is high and subsequent maintenance is difficult; digital management is based on the software provided by IC manufacturers, and due to the large number of types, the development and maintenance costs are high; the power management IC in the BMS needs to be powered on to burn the firmware, and different projects require different power supply voltages, so each project requires a fixture, and the development and maintenance costs are high; the burning tools provided by some IC manufacturers only support offline burning functions and only support plaintext firmware burning, which poses information security risks and can easily lead to the loss of project results; the firmware to be burned relies on manual version confirmation and transmission, which is inefficient and error-prone. In response to the above problems, effective technical solutions are urgently needed. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, system and medium for intelligent burning of BMS firmware, which automatically obtains programming software through the BMS platform, automatically decrypts the firmware file and burns it to the target chip, thereby realizing automatic programming and burning of the firmware and improving the burning efficiency, so as to solve the problems of low efficiency caused by the reliance on manual operation of IC burning in traditional PCBA, long burning training cycle, information security and difficult maintenance of burning tools.

[0005] The embodiment of the present application also provides a BMS firmware intelligent burning method, including:

[0006] Obtaining firmware related information based on the BMS firmware management platform, wherein the firmware related information includes project number, chip model and firmware version;

[0007] Match the corresponding chip model based on the project number, get the target chip, and generate the burning configuration information;

[0008] Generate firmware files in the specified format according to the burning configuration information and upload them to the BMS firmware management platform;

[0009] Download the firmware file to the burning module based on the programming software, burn the configuration information to the target chip based on the burning module, and obtain the burning result;

[0010] The burning results are transmitted to the MES platform in the set manner for digital management.

[0011] Optionally, in the BMS firmware intelligent burning method described in the embodiment of the present application, after obtaining the firmware related information based on the BMS firmware management platform, it also includes:

[0012] Obtain relevant information about the firmware, determine the encryption level, and construct an encryption key of the corresponding level based on the encryption level;

[0013] Encrypt the firmware related information according to the encryption key to generate ciphertext information;

[0014] The decoder generates a decryption key that matches the encryption key based on the ciphertext information;

[0015] Pair the encryption key with the decryption key to form a key group, and store the key group on the MES platform.

[0016] Optionally, in the BMS firmware intelligent burning method described in the embodiment of the present application, the target chip is obtained based on the matching of the corresponding chip model based on the project number, and the burning configuration information is generated, which specifically includes:

[0017] Obtain the project number, extract the project parameter information corresponding to the project number, and generate the corresponding target configuration information based on the project parameter information;

[0018] Get the chip model, and analyze the chip configuration information of the corresponding model based on the chip model;

[0019] Compare the chip configuration information with the target configuration information to obtain a matching degree;

[0020] Determining whether the matching degree is greater than or equal to a set matching degree threshold;

[0021] If it is greater than or equal to, the chip of this model is used as the target chip. If it is less than, the chips of other models are screened for configuration analysis and matching to obtain the burning configuration information, which includes the configuration bit, option word, FUSE bit and decapsulation key.

[0022] Optionally, in the BMS firmware intelligent burning method described in the embodiment of the present application, a firmware file is generated in a prescribed format according to the burning configuration information and uploaded to the BMS firmware management platform, specifically including:

[0023] Obtain the programming configuration information and generate the specified format based on the format requirements of the target chip;

[0024] Generate an initial firmware file based on the burning configuration information, and obtain the file format of the initial firmware file;

[0025] Compare the file format of the initial firmware file with the specified format to determine whether the formats are the same;

[0026] If they are the same, upload the firmware file to the MES platform;

[0027] If they are not the same, the file format differences are analyzed to generate the final firmware file.

[0028] Optionally, in the BMS firmware intelligent burning method described in the embodiment of the present application, the firmware file is downloaded to the burning module based on the programming software, and the configuration information is burned to the target chip based on the burning module to obtain the burning result, which specifically includes:

[0029] Combine the PCBA fixture of the corresponding project with the universal fixture control bottom box through the interface, open the programming software, and enter the relevant information of the project test station;

[0030] The programming software searches for the firmware of the project from the MES platform based on the project information and downloads it to the RAM of the test computer;

[0031] The programming software automatically checks the redundant information of the firmware and the version information contained in the firmware name;

[0032] The programming software burns the encrypted firmware and the burning configuration according to the burning configuration.

[0033] Optionally, in the BMS firmware intelligent burning method described in the embodiment of the present application, the firmware file is downloaded to the burning module based on the programming software, and the configuration information is burned to the target chip based on the burning module, and further includes:

[0034] The programming software sets the DC voltage output according to the burned configuration;

[0035] Activate the corresponding relay, the PCBA is in working state, and obtain the output voltage value in real time.

[0036] In a second aspect, an embodiment of the present application provides a BMS firmware intelligent burning system, the system comprising: a memory and a processor, the memory comprising a program of a BMS firmware intelligent burning method, and the program of the BMS firmware intelligent burning method is executed by the processor to implement the following steps:

[0037] Obtaining firmware related information based on the BMS firmware management platform, wherein the firmware related information includes project number, chip model and firmware version;

[0038] Match the corresponding chip model based on the project number, get the target chip, and generate the burning configuration information;

[0039] Generate firmware files in the specified format according to the burning configuration information and upload them to the BMS firmware management platform;

[0040] Download the firmware file to the burning module based on the programming software, burn the configuration information to the target chip based on the burning module, and obtain the burning result;

[0041] The burning results are transmitted to the MES platform in the set manner for digital management.

[0042] Optionally, in the BMS firmware intelligent burning system described in the embodiment of the present application, after obtaining the firmware related information based on the BMS firmware management platform, the system further includes:

[0043] Obtain relevant information about the firmware, determine the encryption level, and construct an encryption key of the corresponding level based on the encryption level;

[0044] Encrypt the firmware related information according to the encryption key to generate ciphertext information;

[0045] The decoder generates a decryption key that matches the encryption key based on the ciphertext information;

[0046] Pair the encryption key with the decryption key to form a key group, and store the key group on the MES platform.

[0047] Optionally, in the BMS firmware intelligent burning system described in the embodiment of the present application, the target chip is obtained based on the matching of the corresponding chip model based on the project number, and the burning configuration information is generated, which specifically includes:

[0048] Obtain the project number, extract the project parameter information corresponding to the project number, and generate the corresponding target configuration information based on the project parameter information;

[0049] Get the chip model, and analyze the chip configuration information of the corresponding model based on the chip model;

[0050] Compare the chip configuration information with the target configuration information to obtain a matching degree;

[0051] Determining whether the matching degree is greater than or equal to a set matching degree threshold;

[0052] If it is greater than or equal to, the chip of this model is used as the target chip. If it is less than, the remaining chip models are screened for configuration analysis and matching to obtain the burning configuration information, which includes the configuration bit, option word, FUSE bit and decapsulation key.

[0053] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a BMS firmware intelligent burning method program, and when the BMS firmware intelligent burning method program is executed by a processor, the steps of the BMS firmware intelligent burning method as described in any one of the above items are implemented.

[0054] As can be seen from the above, an embodiment of the present application provides a method, system and medium for intelligent burning of BMS firmware, which obtains firmware related information based on a BMS firmware management platform, wherein the firmware related information includes a project number, a chip model and a firmware version; matches the corresponding chip model based on the project number to obtain a target chip, and generates burning configuration information; generates a firmware file in a prescribed format according to the burning configuration information, and uploads it to the BMS firmware management platform; downloads the firmware file to a burning module based on programming software, and burns the configuration information to the target chip based on the burning module to obtain a burning result; transmits the burning result to the MES platform for digital management in a set manner; automatically obtains programming software through the BMS platform, automatically decrypts the firmware file and burns it to the target chip, thereby realizing automatic programming and burning of the firmware and improving burning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 A flowchart of a BMS firmware intelligent burning method provided in an embodiment of the present application;

[0057] Figure 2 A flowchart of a method for encrypting and decrypting firmware-related information of a BMS firmware intelligent burning method provided in an embodiment of the present application;

[0058] Figure 3 This is a flowchart for obtaining the burning configuration information of the BMS firmware intelligent burning method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The technical solutions 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 a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0060] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0061] Please refer to Figure 1 , Figure 1 1 is a flow chart of a method for intelligently burning BMS firmware in some embodiments of the present application. The method for intelligently burning BMS firmware is used in a terminal device, and the method for intelligently burning BMS firmware includes the following steps:

[0062] S101, obtaining firmware related information based on the BMS firmware management platform, the firmware related information including project number, chip model and firmware version;

[0063] S102, matching the corresponding chip model based on the project number, obtaining the target chip, and generating burning configuration information;

[0064] S103, generating a firmware file in a specified format according to the burning configuration information, and uploading it to the BMS firmware management platform;

[0065] S104, downloading the firmware file to the burning module based on the programming software, burning the configuration information to the target chip based on the burning module, and obtaining the burning result;

[0066] S105, transmitting the burning result to the MES platform for digital management according to the set method.

[0067] It should be noted that the design changes the firmware acquisition method from manual confirmation and transmission to automatic acquisition from the MES cloud platform by the burning software, and the voltage is changed by program-controlled DC to power different PCBAs to adapt to the burning of different PCBA application scenarios. The burning configuration and some special commands according to project changes are also obtained from the cloud platform by the burning software. Finally, the encrypted firmware is sent to the burning module and automatically decrypted and burned into the IC. The operator only needs to build a programming station fixture and scan the SN with one button to start automatic programming. There is no need to intervene in other settings, so as to achieve the purpose of one-click automatic programming, reduce the firmware file transmission process, and achieve information security.

[0068] Specifically, the programming host computer obtains the encrypted firmware file from the BMS firmware management platform, and obtains the burning firmware file from the firmware file management platform. When the programming host computer starts burning, the host computer sends the encrypted firmware to the programming slave computer. The slave computer decrypts the firmware and burns the decrypted firmware data into the chip of the target BMS according to the burning configuration. After the burning is completed, the burning result is uploaded to the MES management platform.

[0069] Please refer to Figure 2 , Figure 2 This is a flowchart of a method for encrypting and decrypting firmware-related information in a method for intelligently burning BMS firmware in some embodiments of the present application. According to an embodiment of the present invention, after obtaining firmware-related information based on the BMS firmware management platform, it also includes:

[0070] S201, obtaining firmware related information, determining an encryption level, and constructing an encryption key of a corresponding level according to the encryption level;

[0071] S202, encrypting the firmware related information according to the encryption key to generate ciphertext information;

[0072] S203, generating a decryption key matching the encryption key based on the ciphertext information by the decoder;

[0073] S204, pair the encryption key and the decryption key to form a key group, and store the key group on the MES platform.

[0074] It should be noted that by encrypting fixed related information, the security of transmitted data is achieved and data leakage will not occur.

[0075] Please refer to Figure 3 , Figure 3 This is a flowchart of obtaining the burning configuration information of a BMS firmware intelligent burning method in some embodiments of the present application. According to an embodiment of the present invention, the target chip is obtained based on the project number matching the corresponding chip model, and the burning configuration information is generated, which specifically includes:

[0076] S301, obtaining a project number, extracting project parameter information corresponding to the project number, and generating corresponding target configuration information based on the project parameter information;

[0077] S302, obtaining a chip model, and analyzing chip configuration information of a corresponding model based on the chip model;

[0078] S303, comparing the chip configuration information with the target configuration information to obtain a matching degree;

[0079] S304, determining whether the matching degree is greater than or equal to a set matching degree threshold;

[0080] S305, if it is greater than or equal to, the chip of this model is used as the target chip, if it is less than, the remaining chip models are screened for configuration analysis and matching to obtain the burning configuration information, which includes the configuration bit, option word, FUSE bit and decapsulation key.

[0081] It should be noted that by analyzing the project parameter information corresponding to the project number and matching it with the chip configuration information, the best matching target chip is selected, and different chips require different programming configuration information.

[0082] According to an embodiment of the present invention, a firmware file is generated in a prescribed format according to the burning configuration information and uploaded to the BMS firmware management platform, specifically including:

[0083] Obtain the programming configuration information and generate the specified format based on the format requirements of the target chip;

[0084] Generate an initial firmware file based on the burning configuration information, and obtain the file format of the initial firmware file;

[0085] Compare the file format of the initial firmware file with the specified format to determine whether the formats are the same;

[0086] If they are the same, upload the firmware file to the MES platform;

[0087] If they are not the same, the file format differences are analyzed to generate the final firmware file.

[0088] It should be noted that by analyzing whether the file format of the initial position file meets the prescribed format requirements, the file format is adjusted to be the same as the prescribed format, thereby achieving the accuracy of program burning and ensuring the safe operation of the burning program.

[0089] According to an embodiment of the present invention, the firmware file is downloaded to the burning module based on the programming software, and the configuration information is burned to the target chip based on the burning module to obtain the burning result, which specifically includes:

[0090] Combine the PCBA fixture of the corresponding project with the universal fixture control bottom box through the interface, open the programming software, and enter the relevant information of the project test station;

[0091] The programming software searches for the firmware of the project from the MES platform based on the project information and downloads it to the RAM of the test computer;

[0092] The programming software automatically checks the redundant information of the firmware and the version information contained in the firmware name;

[0093] The programming software burns the encrypted firmware and the burning configuration according to the burning configuration.

[0094] It should be noted that different projects correspond to different PCBA fixtures. First, test the project, then check the redundant information of the firmware, and adjust the burning configuration.

[0095] According to an embodiment of the present invention, the firmware file is downloaded to the burning module based on the programming software, and the configuration information is burned to the target chip based on the burning module, and further includes:

[0096] The programming software sets the DC voltage output according to the burned configuration;

[0097] Activate the corresponding relay, the PCBA is in working state, and obtain the output voltage value in real time.

[0098] According to an embodiment of the present invention, an engineer uses encryption software to convert plaintext firmware into ciphertext firmware, uploads it to the MES platform, and also uploads relevant information of the firmware; then the burning configuration required for burning the IC corresponding to the project is written into a firmware file in an internal prescribed format and uploaded to the MES platform.

[0099] When the production line is in production, the technician combines the PCBA fixture of the corresponding project with the universal fixture control base box through the interface, opens the programming software, and enters the relevant information of the project test station. The programming software will then download the burning configuration of the corresponding project and load it to the local test computer, obtain the firmware name and version of the project and display it.

[0100] The production line operator uses a barcode scanner to scan the QR code on the PCBA and input the PCBA SN into the programming software. The programming software searches for the firmware of the project from the MES based on the project information and downloads it to the RAM of the test computer. No firmware copy will be generated locally. The programming software will automatically check the CRC32 of the firmware and the version information contained in the firmware name to ensure that it is correct before proceeding to the next step.

[0101] The programming software sets the DC voltage output according to the burning configuration, activates the corresponding relay, puts the PCBA in working state, and finally sends the encrypted firmware and burning configuration to the burning module.

[0102] The burning module will store the encrypted firmware in RAM, decrypt it in the burning module, and then burn it into the IC of the target BMS board according to the burning configuration. After the burning is completed, the RAM data will be cleared and no firmware data will be stored in the burning module.

[0103] After the burning is completed, the programming software will upload the PCBA's SN, burned firmware and workstation information to the MES cloud platform for digital management.

[0104] It should be noted that the burning software is responsible for controlling the burning module, obtaining firmware, uploading and displaying the burning information, and configurable parameters; the fixture controls the bottom box, provides power supply module, voltmeter module, burning module, and can support different PCBAs; the PCBA fixture is a fixture designed for different BMS PCBAs.

[0105] In a second aspect, an embodiment of the present application provides a BMS firmware intelligent burning system, the system comprising: a memory and a processor, the memory comprising a program of a BMS firmware intelligent burning method, and when the program of the BMS firmware intelligent burning method is executed by the processor, the following steps are implemented:

[0106] Obtain firmware related information based on the BMS firmware management platform, including project number, chip model and firmware version;

[0107] Match the corresponding chip model based on the project number, get the target chip, and generate the burning configuration information;

[0108] Generate firmware files in the specified format according to the burning configuration information and upload them to the BMS firmware management platform;

[0109] Download the firmware file to the burning module based on the programming software, burn the configuration information to the target chip based on the burning module, and obtain the burning result;

[0110] The burning results are transmitted to the MES platform in the set manner for digital management.

[0111] It should be noted that the design changes the firmware acquisition method from manual confirmation and transmission to automatic acquisition from the MES platform by the burning software, and supplies power to different PCBAs through program-controlled DC voltage changes to adapt to different PCBA application scenarios. The burning configuration and some special commands according to project changes are also obtained from the cloud platform by the burning software. Finally, the encrypted firmware is sent to the burning module and automatically decrypted and burned into the IC. The operator only needs to build a programming station fixture and scan the SN with one click to start automatic programming. There is no need to intervene in other settings, so as to achieve the purpose of one-click automatic programming, reduce the firmware file transmission process, and achieve information security.

[0112] Specifically, this system includes cloud, BMS firmware management platform, MES management platform, and configuration file management platform; PC software, encryption software is responsible for encrypting the original BMS plaintext firmware into ciphertext firmware and uploading it to the BMS firmware management platform for management; burning host computer software is responsible for obtaining data on the cloud such as: BMS ciphertext firmware, burning configuration files, controlling the burning of lower computer modules, power supply modules, and relay modules, decrypting the ciphertext firmware and burning it to the IC on the BMS PCBA, and finally displaying the burning results, uploading SN, burning results, BMS ciphertext firmware name, burning configuration information, etc. to the cloud; fixture control bottom box, universal fixture control bottom box, provides burning lower computer modules, power supply modules, and relay modules, can support different PCBAs, and reduce fixture costs; PCBA fixtures, fixtures designed for different BMS PCBAs.

[0113] According to an embodiment of the present invention, after obtaining the firmware related information based on the BMS firmware management platform, the method further includes:

[0114] Obtain relevant information about the firmware, determine the encryption level, and construct an encryption key of the corresponding level based on the encryption level;

[0115] Encrypt the firmware related information according to the encryption key to generate ciphertext information;

[0116] The decoder generates a decryption key that matches the encryption key based on the ciphertext information;

[0117] Pair the encryption key with the decryption key to form a key group, and store the key group on the MES platform.

[0118] It should be noted that by encrypting fixed related information, the security of transmitted data is achieved and data leakage will not occur.

[0119] According to an embodiment of the present invention, the target chip is obtained based on the project number matching the corresponding chip model, and the burning configuration information is generated, which specifically includes:

[0120] Obtain the project number, extract the project parameter information corresponding to the project number, and generate the corresponding target configuration information based on the project parameter information;

[0121] Get the chip model, and analyze the chip configuration information of the corresponding model based on the chip model;

[0122] Compare the chip configuration information with the target configuration information to obtain a matching degree;

[0123] Determine whether the matching degree is greater than or equal to the set matching degree threshold;

[0124] If it is greater than or equal to, the chip of this model is used as the target chip. If it is less than, the remaining chip models are screened for configuration analysis and matching to obtain the burning configuration information. The burning configuration information includes configuration bits, option words, FUSE bits and decapsulation keys.

[0125] It should be noted that by analyzing the project parameter information corresponding to the project number and matching it with the chip configuration information, the best matching target chip is selected, and different chips require different programming configuration information.

[0126] According to an embodiment of the present invention, a firmware file is generated in a prescribed format according to the burning configuration information and uploaded to the BMS firmware management platform, specifically including:

[0127] Obtain the programming configuration information and generate the specified format based on the format requirements of the target chip;

[0128] Generate an initial firmware file based on the burning configuration information, and obtain the file format of the initial firmware file;

[0129] Compare the file format of the initial firmware file with the specified format to determine whether the formats are the same;

[0130] If they are the same, upload the firmware file to the MES platform;

[0131] If they are not the same, the file format differences are analyzed to generate the final firmware file.

[0132] It should be noted that by analyzing whether the file format of the initial position file meets the prescribed format requirements, the file format is adjusted to be the same as the prescribed format, thereby achieving the accuracy of program burning and ensuring the safe operation of the burning program.

[0133] According to an embodiment of the present invention, the firmware file is downloaded to the burning module based on the programming software, and the configuration information is burned to the target chip based on the burning module to obtain the burning result, which specifically includes:

[0134] Combine the PCBA fixture of the corresponding project with the universal fixture control bottom box through the interface, open the programming software, and enter the relevant information of the project test station;

[0135] The programming software searches for the firmware of the project from the MES platform based on the project information and downloads it to the RAM of the test computer;

[0136] The programming software automatically checks the redundant information of the firmware and the version information contained in the firmware name;

[0137] The programming software burns the encrypted firmware and the burning configuration according to the burning configuration.

[0138] It should be noted that different projects correspond to different PCBA fixtures. First, test the project, then check the redundant information of the firmware, and adjust the burning configuration.

[0139] According to an embodiment of the present invention, the firmware file is downloaded to the burning module based on the programming software, and the configuration information is burned to the target chip based on the burning module, and further includes:

[0140] The programming software sets the DC voltage output according to the burned configuration;

[0141] Activate the corresponding relay, the PCBA is in working state, and obtain the output voltage value in real time.

[0142] According to an embodiment of the present invention, an engineer uses encryption software to convert plaintext firmware into ciphertext firmware, uploads it to the MES platform, and also uploads relevant information of the firmware; then the burning configuration required for burning the IC corresponding to the project is written into a firmware file in an internal prescribed format and uploaded to the MES platform.

[0143] When the production line is in production, the technician combines the PCBA fixture of the corresponding project with the universal fixture control base box through the interface, opens the programming software, and enters the relevant information of the project test station. The programming software will then download the burning configuration of the corresponding project and load it to the local test computer, obtain the firmware name and version of the project and display it.

[0144] The production line operator uses a barcode scanner to scan the QR code on the PCBA and input the PCBA SN into the programming software. The programming software searches for the firmware of the project from the MES based on the project information and downloads it to the RAM of the test computer. No firmware copy will be generated locally. The programming software will automatically check the CRC32 of the firmware and the version information contained in the firmware name to ensure that it is correct before proceeding to the next step.

[0145] The programming software sets the DC voltage output according to the burning configuration, activates the corresponding relay, puts the PCBA in working state, and finally sends the encrypted firmware and burning configuration to the burning module.

[0146] The burning module will store the encrypted firmware in RAM, decrypt it in the burning module, and then burn it into the IC of the target BMS board according to the burning configuration. After the burning is completed, the RAM data will be cleared and no firmware data will be stored in the burning module.

[0147] After the burning is completed, the programming software will upload the PCBA SN, the burned firmware and the workstation information to the MES platform for digital management.

[0148] It should be noted that the burning software is responsible for controlling the burning module, obtaining firmware, uploading and displaying the burning information, and configurable parameters; the fixture controls the bottom box, provides power supply module, voltmeter module, burning module, and can support different PCBAs; the PCBA fixture is a fixture designed for different BMS PCBAs.

[0149] A third aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a BMS firmware intelligent burning method program. When the BMS firmware intelligent burning method program is executed by a processor, the steps of any of the above-mentioned BMS firmware intelligent burning methods are implemented.

[0150] The present invention discloses a method, system and medium for intelligent burning of BMS firmware. The method obtains firmware related information based on a BMS firmware management platform, wherein the firmware related information includes a project number, a chip model and a firmware version; matches the corresponding chip model based on the project number to obtain a target chip, and generates burning configuration information; generates a firmware file in a prescribed format according to the burning configuration information, and uploads it to the BMS firmware management platform; downloads the firmware file to a burning module based on programming software, and burns the configuration information to the target chip based on the burning module to obtain a burning result; transmits the burning result to an MES platform for digital management in a set manner; and automatically obtains programming software through the BMS platform to automatically decrypt the firmware file and burn it to the target chip, thereby realizing automatic programming and burning of the firmware and improving burning efficiency.

[0151] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0152] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0153] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0154] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, the aforementioned program can be stored in a readable storage medium, and when the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, and other media that can store program codes.

[0155] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

Claims

1. A method for intelligently burning BMS firmware, characterized in that: include: Obtaining firmware related information based on the BMS firmware management platform, wherein the firmware related information includes project number, chip model and firmware version; Match the corresponding chip model based on the project number, get the target chip, and generate the burning configuration information; Generate firmware files in the specified format according to the burning configuration information and upload them to the BMS firmware management platform; Download the firmware file to the burning module based on the programming software, burn the configuration information to the target chip based on the burning module, and obtain the burning result; The burning results are transmitted to the MES platform for digital management according to the set method; After obtaining the firmware related information based on the BMS firmware management platform, it also includes: Obtain relevant information about the firmware, determine the encryption level, and construct an encryption key of the corresponding level based on the encryption level; Encrypt the firmware related information according to the encryption key to generate ciphertext information; The decoder generates a decryption key that matches the encryption key based on the ciphertext information; Pair the encryption key with the decryption key to form a key group, and store the key group on the MES platform; Based on the project number, the corresponding chip model is matched to obtain the target chip and generate the burning configuration information, including: Obtain the project number, extract the project parameter information corresponding to the project number, and generate the corresponding target configuration information based on the project parameter information; Get the chip model, and analyze the chip configuration information of the corresponding model based on the chip model; Compare the chip configuration information with the target configuration information to obtain a matching degree; Determining whether the matching degree is greater than or equal to a set matching degree threshold; If it is greater than or equal to, the chip of this model is used as the target chip; if it is less than, the chips of other models are screened for configuration analysis and matching to obtain the burning configuration information, which includes the configuration bit, option word, FUSE bit and decapsulation key; Download the firmware file to the burning module based on the programming software, burn the configuration information to the target chip based on the burning module, and obtain the burning result, which specifically includes: Combine the PCBA fixture of the corresponding project with the universal fixture control bottom box through the interface, open the programming software, and enter the relevant information of the project test station; The programming software searches for the firmware of the project from the MES platform based on the project information and downloads it to the RAM of the test computer; The programming software automatically checks the redundant information of the firmware and the version information contained in the firmware name; The programming software burns the encrypted firmware and the burning configuration according to the burning configuration.

2. The BMS firmware intelligent burning method according to claim 1, characterized in that: Generate the firmware file in the specified format according to the burning configuration information and upload it to the BMS firmware management platform, including: Obtain the programming configuration information and generate the specified format based on the format requirements of the target chip; Generate an initial firmware file based on the burning configuration information, and obtain the file format of the initial firmware file; Compare the file format of the initial firmware file with the specified format to determine whether the formats are the same; If they are the same, upload the firmware file to the MES platform; If they are not the same, the file format differences are analyzed to generate the final firmware file.

3. The BMS firmware intelligent burning method according to claim 2, characterized in that: Download the firmware file to the burning module based on the programming software, and burn the configuration information to the target chip based on the burning module, and also include: The programming software sets the DC voltage output according to the programming configuration; Activate the corresponding relay, the PCBA is in working state, and obtain the output voltage value in real time.

4. A BMS firmware intelligent burning system, characterized in that: The system includes: a memory and a processor, wherein the memory includes a program of a BMS firmware intelligent burning method, and when the program of the BMS firmware intelligent burning method is executed by the processor, the following steps are implemented: Obtaining firmware related information based on the BMS firmware management platform, wherein the firmware related information includes project number, chip model and firmware version; Match the corresponding chip model based on the project number, get the target chip, and generate the burning configuration information; Generate firmware files in the specified format according to the burning configuration information and upload them to the BMS firmware management platform; Download the firmware file to the burning module based on the programming software, burn the configuration information to the target chip based on the burning module, and obtain the burning result; The burning results are transmitted to the MES platform for digital management according to the set method; After obtaining the firmware related information based on the BMS firmware management platform, it also includes: Obtain relevant information about the firmware, determine the encryption level, and construct an encryption key of the corresponding level based on the encryption level; Encrypt the firmware related information according to the encryption key to generate ciphertext information; The decoder generates a decryption key that matches the encryption key based on the ciphertext information; Pair the encryption key with the decryption key to form a key group, and store the key group on the MES platform; Based on the project number, the corresponding chip model is matched to obtain the target chip and generate the burning configuration information, including: Obtain the project number, extract the project parameter information corresponding to the project number, and generate the corresponding target configuration information based on the project parameter information; Get the chip model, and analyze the chip configuration information of the corresponding model based on the chip model; Compare the chip configuration information with the target configuration information to obtain a matching degree; Determining whether the matching degree is greater than or equal to a set matching degree threshold; If it is greater than or equal to, the chip of this model is used as the target chip; if it is less than, the chips of other models are screened for configuration analysis and matching to obtain the burning configuration information, which includes the configuration bit, option word, FUSE bit and decapsulation key; Download the firmware file to the burning module based on the programming software, burn the configuration information to the target chip based on the burning module, and obtain the burning result, which specifically includes: Combine the PCBA fixture of the corresponding project with the universal fixture control bottom box through the interface, open the programming software, and enter the relevant information of the project test station; The programming software searches for the firmware of the project from the MES platform based on the project information and downloads it to the RAM of the test computer; The programming software automatically checks the redundant information of the firmware and the version information contained in the firmware name; The programming software burns the encrypted firmware and the burning configuration according to the burning configuration.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a BMS firmware intelligent burning method program. When the BMS firmware intelligent burning method program is executed by a processor, the steps of the BMS firmware intelligent burning method according to any one of claims 1 to 3 are implemented.