Parameter flashing method, device and equipment and storage medium

By directly acquiring and writing the target flash file of the EEPROM chip, the problem of low efficiency and high error rate caused by the reliance on the transfer chip for EEPROM chip parameter flashing is solved, and a more efficient and accurate flashing process is achieved.

CN119440559BActive Publication Date: 2025-11-21TCL AIR CONDITIONER ZHONGSHAN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411499841.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-11-21
Estimated Expiration
2044-10-24

AI Technical Summary

Technical Problem

The current EEPROM chip parameter writing relies on a transfer chip, resulting in low writing efficiency and a high error rate.

Method used

By using the parameter flashing method, the target flashing file can be directly obtained, the flashing parameters of the target memory can be determined based on the flashing information, and the parameters can be written into the EEPROM chip according to the flashing configuration information, which simplifies the flashing process.

Benefits of technology

It shortens the flashing time, reduces costs, and significantly improves the accuracy and success rate of flashing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440559B_ABST
    Figure CN119440559B_ABST
Patent Text Reader

Abstract

The application provides a parameter flashing method, device, equipment and storage medium. The parameter flashing method comprises the following steps: in response to a parameter flashing request for a target memory, obtaining a target flashing file to be burned; determining a target burning parameter of the target memory according to the target flashing file and target burning information; and writing the target burning parameter into the target memory according to the burning configuration information corresponding to the target burning parameter, to obtain a parameter flashing result. The application can screen the to-be-burned parameter in the target flashing file containing multiple burning information by using only a burner, and accurately write the to-be-burned parameter into the target memory, thereby shortening the burning time, reducing the burning cost, and significantly improving the burning accuracy and success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of parameter writing technology, specifically to a parameter writing method, apparatus, device, and storage medium. Background Technology

[0002] Currently, most air conditioners use EEPROM (Electrically Erasable Programmable Read-Only Memory) chips to store the parameters required for air conditioner operation. In practical applications, the parameters within the EEPROM chip need to be adjusted for different models or application scenarios. Existing EEPROM chip data flashing methods rely on other storage chips to transfer offline flashing data, and then write the transferred offline flashing data into the EEPROM chip. This data flashing method involves many chips, is complex, time-consuming, and prone to data corruption, thus failing to meet current chip flashing requirements. Summary of the Invention

[0003] This application provides a parameter writing method, apparatus, device, and storage medium, aiming to solve the technical problem in the prior art where EEPROM chip parameter writing relies on a transfer chip, resulting in low writing efficiency and high error rate.

[0004] On one hand, embodiments of this application provide a parameter writing method, which includes the following steps:

[0005] Respond to the parameter flashing request for the target memory and obtain the target flashing file to be burned;

[0006] The target programming parameters of the target memory are determined based on the target flashing file and the target programming information.

[0007] The target programming parameters are written into the target memory according to the programming configuration information corresponding to the target programming parameters, and the parameter writing result is obtained.

[0008] In one possible implementation of this application, the step of responding to a parameter flashing request for the target memory and obtaining the target flashing file to be programmed includes:

[0009] In response to a parameter flashing request for the target memory, a communication connection is established with the target host computer based on a preset connection module to obtain the initial flashing file transmitted by the target host computer;

[0010] The initial flash file is verified to obtain the file verification result;

[0011] If the file verification result is successful, then the initial flash file is determined as the target flash file to be burned.

[0012] In one possible implementation of this application, determining the target programming parameters of the target memory based on the target flashing file and the target programming information includes:

[0013] Read the key flashing parameters of the target file area in the target flashing file, determine the number of flashing sub-files in the key flashing parameters, and the address information of the file burning information corresponding to the flashing sub-files;

[0014] If the number of the flashing sub-files is greater than a preset threshold, then the file burning information corresponding to each of the flashing sub-files is obtained based on the address information;

[0015] Obtain the burning memory identifier from the file burning information, and match the burning memory identifier with the target memory identifier of the target memory to determine the target burning information of the target memory;

[0016] The target burning parameters in the target flashing file are determined based on the target burning information.

[0017] In one possible implementation of this application, determining the target programming parameters in the target flashing file based on the target programming information includes:

[0018] Decode the target burning information to obtain the file address information in the target burning information;

[0019] Based on the file address information, locate the target storage area in the target flashing file and read the target burning parameters in the target storage area.

[0020] In one possible implementation of this application, the step of writing the target programming parameters into the target memory according to the programming configuration information corresponding to the target programming parameters to obtain the parameter writing result includes:

[0021] Obtain the programming configuration information corresponding to the target programming parameters. The programming configuration information includes any one or more of the following: flashing algorithm information, flashing protocol information, and target flashing rate.

[0022] The target programming parameters are written into the target memory according to the writing algorithm information, the writing protocol information, and the target writing rate to obtain the parameter writing result.

[0023] In one possible implementation of this application, obtaining the programming configuration information corresponding to the target programming parameters includes:

[0024] Analyze the target flashing information of the target flashing file to determine the flashing algorithm information, flashing protocol information and target flashing rate corresponding to the target flashing parameters;

[0025] Based on the flashing algorithm information, flashing protocol information, and target flashing rate, the flashing information is configured to obtain the flashing configuration information corresponding to the target flashing parameters.

[0026] In one possible implementation of this application, the step of writing the target programming parameters into the target memory according to the writing algorithm information, the writing protocol information, and the target writing rate to obtain the parameter writing result includes:

[0027] Obtain the file address information corresponding to the target programming parameters, and read the target programming parameters based on the file address information;

[0028] The target flashing algorithm and target flashing protocol corresponding to the target programming parameters are determined based on the flashing algorithm information and the flashing protocol information.

[0029] The target programming parameters are written to the target memory at the target programming rate using the target programming algorithm and the target programming protocol to obtain the parameter programming result.

[0030] On the other hand, this application provides a parameter writing device, the parameter writing device comprising:

[0031] The file acquisition module is configured to respond to parameter flashing requests for the target memory and acquire the target flashing file to be burned.

[0032] The parameter positioning module is configured to determine the target burning parameters of the target memory based on the target flashing file and the target burning information.

[0033] The parameter flashing module is configured to write the target programming parameters into the target memory according to the programming configuration information corresponding to the target programming parameters, so as to obtain the parameter flashing result.

[0034] On the other hand, this application also provides a parameter writing device, the parameter writing device comprising:

[0035] One or more processors;

[0036] Memory; and

[0037] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the parameter flushing method.

[0038] On the other hand, this application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to execute the steps in the parameter writing method.

[0039] This application obtains a target flashing file to be programmed by responding to a parameter flashing request for a target memory; determines the target programming parameters for the target memory based on the target flashing file and target programming information; and writes the target programming parameters into the target memory according to the programming configuration information corresponding to the target programming parameters, thereby obtaining the parameter flashing result. A programmer obtains a target flashing file containing flashing parameters corresponding to at least one target memory, accurately filters the target programming parameters to be programmed for each target memory based on the target programming information, and directly writes the target programming parameters into the target memory according to the programming configuration information corresponding to the target programming parameters. This achieves the ability to filter the parameters to be programmed from a target flashing file containing multiple programming information using only a programmer, and directly and accurately write the parameters to be programmed into the target memory, thereby shortening the programming time, reducing programming costs, and significantly improving programming accuracy and success rate. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a schematic diagram illustrating a scenario of the parameter writing method in an embodiment of this application.

[0042] Figure 2 This is a flowchart illustrating one embodiment of the parameter writing method in this application.

[0043] Figure 3 A schematic diagram of a scenario for storing a target flash file for a parameter flashing device;

[0044] Figure 4 A flowchart illustrating an embodiment of the parameter writing method provided in this application;

[0045] Figure 5 A schematic diagram of one embodiment of the parameter writing device provided in this application;

[0046] Figure 6 This is a schematic diagram of one embodiment of the parameter writing device provided in this application. Detailed Implementation

[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0048] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0049] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0050] Currently, most air conditioners use EEPROM (Electrically Erasable Programmable Read-Only Memory) chips to store the parameters required for air conditioner operation. In practical applications, the parameters within the EEPROM chip need to be adjusted for different models or application scenarios. Existing EEPROM chip data flashing methods rely on other storage chips to transfer offline flashing data, and then write the transferred offline flashing data into the EEPROM chip. This data flashing method involves many chips, is complex, time-consuming, and prone to data corruption, thus failing to meet current chip flashing requirements.

[0051] Based on this, this application proposes a parameter writing method, apparatus, device, and computer-readable storage medium to solve the technical problem in the prior art where EEPROM chip parameter writing relies on a transfer chip, resulting in low writing efficiency and high error rate.

[0052] The parameter writing method in this embodiment of the invention is applied to a parameter writing device, which is configured in a parameter writing equipment. The parameter writing equipment includes one or more processors, a memory, and one or more application programs. The one or more application programs are stored in the memory and configured to be executed by the processor to implement the parameter writing method. The parameter writing equipment can be a smart terminal capable of parameter writing, such as a mobile phone, tablet computer, network device, smart computer, and smart writer. Optionally, the parameter writing equipment can also be a server or a service cluster composed of multiple servers.

[0053] like Figure 1 As shown, Figure 1 This is a schematic diagram illustrating a parameter writing method according to an embodiment of this application. The parameter writing scenario in this embodiment includes a parameter writing device 100 (which integrates a parameter writing apparatus) and a target memory 200. The parameter writing device 100 has a computer-readable storage medium corresponding to the parameter writing method running to execute the steps of the parameter writing method. The target memory 200 is a memory device communicatively connected to the parameter writing device 100, waiting for parameter programming. Optionally, in one specific embodiment, the target memory can be an EEPROM memory chip.

[0054] Understandable Figure 1The parameter writing device in the parameter writing method scenario shown, or the device included in the parameter writing device, does not constitute a limitation on the embodiments of the present invention. That is, the number or type of the parameter writing device included in the parameter writing method scenario, or the number or type of the device included in each device, does not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be considered as equivalent substitutions or derivatives of the technical solutions claimed in the embodiments of the present invention.

[0055] In this embodiment of the invention, the parameter writing device 100 is mainly used to: respond to a parameter writing request for a target memory and obtain the target writing file to be burned;

[0056] The target programming parameters of the target memory are determined based on the target flashing file and the target programming information.

[0057] The target programming parameters are written into the target memory according to the programming configuration information corresponding to the target programming parameters, and the parameter writing result is obtained.

[0058] This application provides a parameter writing method, apparatus, device, and computer-readable storage medium, which will be described in detail below.

[0059] It will be understood by those skilled in the art that Figure 1 The application environment shown is only one application scenario related to the solution of this application and does not constitute a limitation on the application scenario of this application. Other application environments may include more than one application scenario. Figure 1 The number of more or fewer parameter flashing devices shown, or parameter flashing network connections, for example... Figure 1 Only one parameter flashing device is shown in the figure. It can be understood that the scenario of this parameter flashing method may also include one or more parameter flashing devices, which are not limited here. The parameter flashing device 100 may also include an internal memory for storing target burning parameters and other data.

[0060] It should be noted that, Figure 1 The schematic diagram of the parameter writing method shown is merely an example. The scenario of the parameter writing method described in this embodiment of the invention is intended to more clearly illustrate the technical solution of this embodiment and does not constitute a limitation on the technical solution provided by this embodiment of the invention.

[0061] Based on the scenarios described above regarding the parameter writing method, various embodiments of the parameter writing method disclosed in this invention are proposed.

[0062] like Figure 2 As shown, Figure 2 This is a flowchart illustrating one embodiment of the parameter writing method in this application. The parameter writing method includes the following steps 201 to 203:

[0063] 201. Respond to the parameter flashing request for the target memory and obtain the target flashing file to be burned;

[0064] The parameter writing method in this embodiment is applied to a parameter writing device. The type and number of parameter writing devices are not specifically limited. That is, the parameter writing device can be one or more smart terminals capable of burning files. In a specific embodiment, the parameter writing device is a smart programmer.

[0065] Optionally, in one specific embodiment, the intelligent programmer includes at least functional modules such as a power module, an input module, a connection module, a display module, a programming interface module, and a control module. The power module is configured to convert the input voltage into a power supply voltage for other functional modules and to provide a power supply voltage to the target memory during parameter writing. The input module is configured to receive user input operation commands (e.g., selection, confirmation, and exit commands). Optionally, in one specific embodiment, the input module can be a keypad input module or a touch input module. The connection module is configured to establish a communication connection with a target host computer. Optionally, in one specific embodiment, the connection module includes any one or more of wired connection modules (e.g., USB connection modules) and wireless connection modules (e.g., Bluetooth, WIFI, and 2.4G connection modules). The display module displays displayable content (e.g., writing parameters, writing progress, and writing rate) during the parameter writing process for user awareness. The programming interface module is configured to connect to the target memory. The control module writes business logic for user-processed parameters, including input command processing and output display content. Optionally, in one specific embodiment, the control module can be an MCU (Microcontroller Unit).

[0066] Specifically, during operation, the parameter writing device responds to parameter writing requests for a target memory. This parameter writing request is an operation event that drives the device to write parameters to at least one specified target memory. The parameter writing request can be triggered by a user through an input module in the device or through other triggering methods. The target memory is a storage chip installed in smart home appliances such as air conditioners, capable of parameter updates. In one specific embodiment, the target memory is an EEPROM chip.

[0067] Specifically, after receiving a parameter flashing request, the parameter flashing device also obtains the target flashing file associated with the request. This target flashing file is a binary flashing file containing target flashing parameters corresponding to at least one target memory. This target flashing file is generated by maintenance or R&D personnel of equipment such as air conditioners when they need to adjust the parameters of the target memory using specific tools. The parameters are set, and the file is generated in the target device and stored in the target host computer. The target host computer is a smart device or server that stores the specified flashing file. In one specific embodiment, the target host computer can be a smart computer, a server, or a cloud server, etc.

[0068] Specifically, after the operator stores the specified flashing file on the target host computer, the parameter flashing device responds to the parameter flashing request for the target memory, establishes a communication connection link with the target host computer based on a preset connection module, and obtains the initial flashing file transmitted by the target host computer through this communication connection link. This initial flashing file contains at least one flashing file for updating parameters corresponding to the target memory. Optionally, the preset communication link includes a wired connection link and a wireless connection link. The parameter flashing device can establish online flashing and local offline flashing processes with the target host computer through the wired connection link. The online flashing process involves connecting to the local target host computer via the communication connection link and simultaneously connecting to the target memory through the programming interface module, synchronously writing the corresponding flashing file to the target memory upon acquisition. The local offline flashing process involves connecting to the local target host computer via the communication connection link, storing the corresponding flashing file in the storage unit of the parameter flashing device, and then performing offline flashing with the target memory.

[0069] Specifically, after the parameter flashing device obtains the initial flashing file transmitted by the target host computer, it performs file verification on the initial flashing file to determine the file integrity of the initial flashing file and whether it is a flashing file associated with the target memory, so as to generate a file verification result.

[0070] Optionally, the parameter flashing device can obtain the verification parameters corresponding to the initial flashing file from the target host computer, and synchronously generate verification parameters locally based on the initial flashing file. By comparing the verification parameters and the verification parameters, the integrity of the initial flashing file is determined. That is, if the verification parameters and the verification parameters are the same or match, the parameter flashing device determines that the integrity and accuracy of the initial flashing file meet the requirements.

[0071] Optionally, the parameter flashing device also parses the initial flashing file and determines whether the flashing chip model and / or flashing chip identifier corresponding to the initial flashing file is the same as that of the target memory. If they are the same, the initial flashing file is determined to be the flashing file associated with the target memory.

[0072] Optionally, if the parameter flashing device determines that the integrity and accuracy of the initial flashing file meet the requirements, and determines that the initial flashing file is the flashing file associated with the target memory, then the file verification result is determined to be verified as passed, and the initial flashing file is determined as the target flashing file to be burned.

[0073] Optionally, if the parameter flashing device determines that the integrity and accuracy of the initial flashing file do not meet the requirements, or that the initial flashing file is not a flashing file associated with the target memory, then the file verification result is determined to be a verification failure, and the initial flashing file in the target host computer is retrieved again.

[0074] 202. Determine the target programming parameters of the target memory based on the target flashing file and the target programming information;

[0075] Specifically, after determining the target flash file associated with the target memory, the parameter flashing device further determines the target programming parameters of the target memory based on the target flash file and the target programming information, and stores the target programming parameters in a designated storage area within the parameter flashing device. In one specific embodiment, this designated storage area may be the flash storage unit of the control module or other storage units within the parameter flashing device. Figure 3 As shown, Figure 3 This is a schematic diagram illustrating a scenario where a target flash file is stored for a parameter flashing device. Figure 3 It is known that the target flashing file is stored inside the parameter flashing device. This stored target flashing file includes flashing sub-files, key flashing parameters, and file burning information. Specifically, the flashing sub-files are update files corresponding to different target memories stored within the target flashing file. The key flashing parameters are parameter information used to obtain the file burning information corresponding to each flashing sub-file. The file burning information is text information recording the burning configuration information corresponding to each flashing sub-file.

[0076] Specifically, the parameter flashing device reads key flashing parameters from the target file area of ​​the target flashing file stored in a specified storage area of ​​the parameter flashing device. These key flashing parameters include the number of flashing sub-files, the address information of the corresponding file burning information for each flashing sub-file, and the software version information of the parameter flashing device.

[0077] Specifically, after determining the key flashing parameters, the parameter flashing device also parses the key flashing parameters, determines the number of flashing sub-files in the key flashing parameters, and the address information of the corresponding file burning information of the flashing sub-files. Based on the number of flashing sub-files and the address information, it determines the target burning information of the target memory, and based on the target burning information, it determines the target burning parameters in the target flashing file.

[0078] Optionally, if the number of the flashing sub-files exceeds a preset threshold, i.e., there are multiple flashing sub-files in the target flashing file, the parameter flashing device determines the file burning information corresponding to each flashing sub-file based on the address information. Optionally, in a specific embodiment, the preset threshold is 1.

[0079] Specifically, after determining the file burning information corresponding to the sub-file to be burned, the parameter flashing device also obtains the burning memory identifier in the burning information of the file, and matches the burning memory identifier with the target memory identifier of the target memory to determine the target burning information corresponding to each target memory, and determines the target burning parameters in the target flashing file based on the target burning information.

[0080] Specifically, after determining the target burning information corresponding to each target memory, the parameter flashing device also uses the file address information and file length information in the target burning information to determine the target burning sub-file, and locates the target storage area in the target flashing file based on the file address information, and determines the burning page corresponding to the target burning sub-file as the target burning parameter of the target memory.

[0081] 203. Write the target programming parameters into the target memory according to the programming configuration information corresponding to the target programming parameters to obtain the parameter writing result.

[0082] Specifically, after reading the target programming parameters from the target memory, the parameter writing device writes the target programming parameters into the target memory according to the programming configuration information corresponding to the target programming parameters, thus obtaining the parameter writing result. The programming configuration information includes any one or more of the following: writing algorithm information, writing protocol information, and target writing rate.

[0083] Specifically, the parameter flashing device receives the user's burning operation event, establishes a communication connection with the target memory based on the burning interface module, and receives the user's selection of the burning file name and pressing the burning button. The device then writes the target burning parameters corresponding to the burning file name into the target memory corresponding to the chip model in the burning configuration information according to the burning configuration information, thus obtaining the parameter flashing result.

[0084] Optionally, in other embodiments, after writing the target programming parameters into the target memory, the parameter writing device also reads the current writing data of the writing area in the target memory and compares the current writing data with the target programming parameters. If the current writing data is the same as the target programming parameters, the parameter writing result corresponding to successful writing is output. If the current writing data is different from the target programming parameters, the parameter writing result corresponding to failed writing is output.

[0085] In this embodiment, the parameter flashing device obtains the target flashing file to be flashed by responding to a parameter flashing request for the target memory; determines the target flashing parameters of the target memory based on the target flashing file and target flashing information; and writes the target flashing parameters into the target memory according to the flashing configuration information corresponding to the target flashing parameters to obtain the parameter flashing result. The flasher obtains a target flashing file containing flashing parameters corresponding to at least one target memory, accurately filters the target flashing parameters to be flashed for each target memory based on the target flashing information, and directly writes the target flashing parameters into the target memory according to the flashing configuration information corresponding to the target flashing parameters. This achieves the ability to filter the parameters to be flashed from a target flashing file containing multiple flashing information using only the flasher, and directly and accurately write the parameters to be flashed into the target memory, thereby shortening the flashing time, reducing flashing costs, and significantly improving flashing accuracy and success rate.

[0086] like Figure 4 As shown, Figure 4 This is a flowchart illustrating an embodiment of the parameter writing method provided in this application. Specifically, in this embodiment, the parameter writing method further includes steps 301 to 303:

[0087] 301. Obtain the file address information corresponding to the target programming parameters, and read the target programming parameters based on the file address information;

[0088] 302. Determine the target flashing algorithm and target flashing protocol corresponding to the target programming parameters based on the flashing algorithm information and the flashing protocol information;

[0089] 303. Using the target flashing algorithm and the target flashing protocol, the target programming parameters are flashed to the target memory at the target flashing rate to obtain the parameter flashing result.

[0090] Specifically, based on the above embodiments, in this embodiment, after the parameter writing device reads the target programming parameters of the target memory, it writes the target programming parameters into the target memory according to the programming configuration information corresponding to the target programming parameters, and obtains the parameter writing result.

[0091] Specifically, the parameter flashing device parses the target burning information in the target flashing file to obtain the flashing algorithm information, flashing protocol information, and target flashing rate in the target burning information. Based on the flashing algorithm information, flashing protocol information, and target flashing efficiency, the device configures the target burning parameters to obtain the burning configuration information corresponding to the target burning parameters.

[0092] Specifically, after obtaining the burning configuration information corresponding to the target burning parameters, the parameter flashing device obtains the file address information corresponding to the target burning parameters, and reads the target burning parameters to be flashed to the target memory based on the file address information.

[0093] Specifically, the parameter flashing device further determines the target flashing algorithm and target flashing protocol corresponding to the target programming parameters based on the flashing algorithm information and flashing protocol information. That is, the parameter flashing device obtains the flashing algorithm information corresponding to the target programming parameters, and configures the flashing algorithm corresponding to the target programming parameters based on the flashing algorithm information to obtain the target flashing algorithm. Additionally, the parameter flashing device selects the flashing protocol for the target programming parameters according to the flashing protocol information to obtain the target flashing protocol corresponding to the target programming parameters. Optionally, in a specific embodiment, the target flashing protocol can be an IIC (Inter-Integrated Circuit) protocol.

[0094] Specifically, after determining the target flashing algorithm and target flashing protocol corresponding to the target burning parameters, the parameter flashing device also uses the target flashing algorithm and target flashing protocol to flash the target burning parameters to the target memory according to the target flashing rate, and matches the flashing data in the target memory with the target burning parameters to obtain the parameter flashing result.

[0095] Specifically, after writing the target programming parameters into the target memory, the parameter flashing device also reads the current flashing data in the flashing area of ​​the target memory and compares the current flashing data with the target programming parameters. If the current flashing data is the same as the target programming parameters, the device outputs the parameter flashing result corresponding to successful flashing. If the current flashing data is different from the target programming parameters, the device outputs the parameter flashing result corresponding to failed flashing.

[0096] In this embodiment, the parameter flashing device obtains the file address information corresponding to the target burning parameters, and reads the target burning parameters based on the file address information; determines the target flashing algorithm and target flashing protocol corresponding to the target burning parameters according to the flashing algorithm information and the flashing protocol information; and flashes the target burning parameters to the target memory according to the target flashing rate using the target flashing algorithm and target flashing protocol to obtain the parameter flashing result. This allows for direct parameter flashing of the target memory based on specified burning configuration information without the need for additional transfer chips to store the flashing parameters, thereby shortening the burning time, reducing burning costs, and significantly improving burning accuracy and success rate.

[0097] To better implement the parameter writing method in the embodiments of this application, a parameter writing device is also provided in the embodiments of this application, such as... Figure 5 As shown, Figure 5 This is a schematic diagram of one embodiment of the parameter writing device provided in this application. Specifically, the parameter writing device 400 includes:

[0098] The file acquisition module 401 is configured to respond to a parameter flashing request for the target memory and acquire the target flashing file to be burned.

[0099] The parameter positioning module 402 is configured to determine the target burning parameters of the target memory based on the target flashing file and the target burning information;

[0100] The parameter flashing module 403 is configured to write the target burning parameters into the target memory according to the burning configuration information corresponding to the target burning parameters, so as to obtain the parameter flashing result.

[0101] In one possible implementation of this embodiment, the parameter flashing device responds to a parameter flashing request for the target memory and obtains the target flashing file to be burned, including:

[0102] In response to a parameter flashing request for the target memory, a communication connection is established with the target host computer based on a preset connection module to obtain the initial flashing file transmitted by the target host computer;

[0103] The initial flash file is verified to obtain the file verification result;

[0104] If the file verification result is successful, then the initial flash file is determined as the target flash file to be burned.

[0105] In one possible implementation of this embodiment, the parameter flashing device determines the target programming parameters of the target memory based on the target flashing file and the target programming information, including:

[0106] Read the key flashing parameters of the target file area in the target flashing file, determine the number of flashing sub-files in the key flashing parameters, and the address information of the file burning information corresponding to the flashing sub-files;

[0107] If the number of the flashing sub-files is greater than a preset threshold, then the file burning information corresponding to each of the flashing sub-files is obtained based on the address information;

[0108] Obtain the burning memory identifier from the file burning information, and match the burning memory identifier with the target memory identifier of the target memory to determine the target burning information of the target memory;

[0109] The target burning parameters in the target flashing file are determined based on the target burning information.

[0110] In one possible implementation of this embodiment, the parameter flashing device determines the target flashing parameters in the target flashing file based on the target flashing information, including:

[0111] Decode the target burning information to obtain the file address information in the target burning information;

[0112] Based on the file address information, locate the target storage area in the target flashing file and read the target burning parameters in the target storage area.

[0113] In one possible implementation of this embodiment, the parameter writing device writes the target programming parameters into the target memory according to the programming configuration information corresponding to the target programming parameters, and obtains the parameter writing result, including:

[0114] Obtain the programming configuration information corresponding to the target programming parameters. The programming configuration information includes any one or more of the following: flashing algorithm information, flashing protocol information, and target flashing rate.

[0115] The target programming parameters are written into the target memory according to the writing algorithm information, the writing protocol information, and the target writing rate to obtain the parameter writing result.

[0116] In one possible implementation of this embodiment, the parameter flashing device obtains the flashing configuration information corresponding to the target flashing parameters, including:

[0117] Analyze the target flashing information of the target flashing file to determine the flashing algorithm information, flashing protocol information and target flashing rate corresponding to the target flashing parameters;

[0118] Based on the flashing algorithm information, flashing protocol information, and target flashing rate, the flashing information is configured to obtain the flashing configuration information corresponding to the target flashing parameters.

[0119] In one possible implementation of this embodiment, the parameter writing device writes the target programming parameters into the target memory according to the writing algorithm information, the writing protocol information, and the target writing rate, to obtain the parameter writing result, including:

[0120] Obtain the file address information corresponding to the target programming parameters, and read the target programming parameters based on the file address information;

[0121] The target flashing algorithm and target flashing protocol corresponding to the target programming parameters are determined based on the flashing algorithm information and the flashing protocol information.

[0122] The target programming parameters are written to the target memory at the target programming rate using the target programming algorithm and the target programming protocol to obtain the parameter programming result.

[0123] In this embodiment, the parameter flashing device obtains the target flashing file to be flashed by responding to a parameter flashing request for the target memory; determines the target flashing parameters of the target memory based on the target flashing file and target flashing information; and writes the target flashing parameters into the target memory according to the flashing configuration information corresponding to the target flashing parameters, thereby obtaining the parameter flashing result. The flasher obtains a target flashing file containing flashing parameters corresponding to at least one target memory, accurately filters the target flashing parameters to be flashed for each target memory based on the target flashing information, and directly writes the target flashing parameters into the target memory according to the flashing configuration information corresponding to the target flashing parameters. This achieves the ability to filter the parameters to be flashed from a target flashing file containing multiple flashing information using only the flasher, and directly and accurately write the parameters to be flashed into the target memory, thereby shortening the flashing time, reducing flashing costs, and significantly improving flashing accuracy and success rate.

[0124] This invention also provides a parameter writing device, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of an embodiment of the parameter writing device provided in this application.

[0125] The parameter writing device integrates any of the parameter writing apparatuses provided in the embodiments of the present invention, and the parameter writing device includes:

[0126] One or more processors;

[0127] Memory; and

[0128] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor in the steps of the parameter flushing method described in any of the above-described embodiments of the parameter flushing method.

[0129] Specifically, the parameter writing device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will understand that... Figure 5 The parameter writing device structure shown does not constitute a limitation on the parameter writing device. It may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0130] The processor 501 is the control center of the parameter writing device. It connects various parts of the device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 502, and by calling data stored in the memory 502, thereby providing overall monitoring of the parameter writing device. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 501.

[0131] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created by using the device according to parameters. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0132] The parameter writing device also includes a power supply 503 that supplies power to the various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 503 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0133] The parameter writing device may also include an input unit 504, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0134] Although not shown, the parameter writing device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the parameter writing device loads the executable files corresponding to the processes of one or more applications into the memory 502 according to the following instructions, and the processor 501 runs the applications stored in the memory 502 to realize various functions, as follows:

[0135] Respond to the parameter flashing request for the target memory and obtain the target flashing file to be burned;

[0136] The target programming parameters of the target memory are determined based on the target flashing file and the target programming information.

[0137] The target programming parameters are written into the target memory according to the programming configuration information corresponding to the target programming parameters, and the parameter writing result is obtained.

[0138] Therefore, embodiments of the present invention provide a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc. A computer program is stored thereon, which is loaded by a processor to execute the steps in any of the parameter writing methods provided in the embodiments of the present invention. For example, the computer program loaded by the processor can execute the following steps:

[0139] Respond to the parameter flashing request for the target memory and obtain the target flashing file to be burned;

[0140] The target programming parameters of the target memory are determined based on the target flashing file and the target programming information.

[0141] The target programming parameters are written into the target memory according to the programming configuration information corresponding to the target programming parameters, and the parameter writing result is obtained.

[0142] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.

[0143] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.

[0144] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0145] The above provides a detailed description of a parameter writing method provided by the embodiments of this application. Specific embodiments have been used to illustrate the principles and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A parameter writing method, characterized in that, The parameter writing method includes: In response to a parameter flashing request for a target memory, a target flashing file to be flashed is obtained, wherein the target flashing file is a flashing file containing at least one target flashing parameter corresponding to the target memory; Read the key flashing parameters of the target file area in the target flashing file, determine the number of flashing sub-files in the key flashing parameters, and the address information of the file burning information corresponding to the flashing sub-files; if the number of flashing sub-files is greater than a preset number threshold, obtain the file burning information corresponding to each flashing sub-file based on the address information, obtain the burning memory identifier in the file burning information, match the burning memory identifier with the target memory identifier of the target memory, determine the target burning information of the target memory, and determine the target burning parameters in the target flashing file based on the target burning information; Obtain the programming configuration information corresponding to the target programming parameters. The programming configuration information includes the flashing algorithm information, the flashing protocol information, and the target flashing rate. Write the target programming parameters into the target memory according to the flashing algorithm information, the flashing protocol information, and the target flashing rate to obtain the parameter flashing result.

2. The parameter writing method according to claim 1, characterized in that, The response to the parameter flashing request of the target memory, obtaining the target flashing file to be burned, includes: In response to a parameter flashing request for the target memory, a communication connection is established with the target host computer based on a preset connection module to obtain the initial flashing file transmitted by the target host computer; The initial flash file is verified to obtain the file verification result; If the file verification result is successful, then the initial flash file is determined as the target flash file to be burned.

3. The parameter writing method according to claim 1, characterized in that, Determining the target programming parameters in the target flashing file based on the target programming information includes: Decode the target burning information to obtain the file address information in the target burning information; Based on the file address information, locate the target storage area in the target flashing file and read the target burning parameters in the target storage area.

4. The parameter writing method according to claim 1, characterized in that, The step of obtaining the programming configuration information corresponding to the target programming parameters includes: Analyze the target flashing information of the target flashing file to determine the flashing algorithm information, flashing protocol information and target flashing rate corresponding to the target flashing parameters; Based on the flashing algorithm information, flashing protocol information, and target flashing rate, the flashing information is configured to obtain the flashing configuration information corresponding to the target flashing parameters.

5. The parameter writing method according to claim 1, characterized in that, The step of writing the target programming parameters into the target memory according to the writing algorithm information, the writing protocol information, and the target writing rate to obtain the parameter writing result includes: Obtain the file address information corresponding to the target programming parameters, and read the target programming parameters based on the file address information; The target flashing algorithm and target flashing protocol corresponding to the target programming parameters are determined based on the flashing algorithm information and the flashing protocol information. The target programming parameters are written to the target memory at the target programming rate using the target programming algorithm and the target programming protocol to obtain the parameter programming result.

6. A parameter writing device, characterized in that, The parameter writing device includes: The file acquisition module is configured to respond to a parameter flashing request for a target memory and acquire the target flashing file to be burned, wherein the target flashing file is a burning file containing at least one target burning parameter corresponding to the target memory. The parameter positioning module is configured to read key flashing parameters of the target file area in the target flashing file, determine the number of flashing sub-files in the key flashing parameters, and the address information of the file burning information corresponding to the flashing sub-files; if the number of flashing sub-files is greater than a preset number threshold, then based on the address information, obtain the file burning information corresponding to each flashing sub-file, obtain the burning memory identifier in the file burning information, match the burning memory identifier with the target memory identifier of the target memory, determine the target burning information of the target memory, and determine the target burning parameters in the target flashing file based on the target burning information; The parameter flashing module is configured to obtain flashing configuration information corresponding to the target flashing parameters, the flashing configuration information including flashing algorithm information, flashing protocol information and target flashing rate, and write the target flashing parameters into the target memory according to the flashing algorithm information, the flashing protocol information and the target flashing rate to obtain the parameter flashing result.

7. A parameter writing device, characterized in that, The parameter writing device includes: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the parameter brushing method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to execute the steps of the parameter writing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • An equipment parameter burning method and device

    CN109901848A

  • ECU flashing method and system, terminal equipment and medium

    CN115357278A