A method, apparatus, storage medium, and controller for processing control parameters

By reading and comparing control parameters in the inverter controller, the fault shutdown problem caused by mismatch of control parameters is solved, and the parameters are automatically updated without power outage are realized, which improves the operation reliability and maintenance convenience of the equipment.

CN114115962BActive Publication Date: 2025-06-10GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111433228.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2025-06-10
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

During the use of the inverter, due to changes in the input power supply and the back-end load, the control parameters do not match, causing a fault and shutdown, and the program cannot be updated without shutting down.

Method used

By reading the control parameters of the last time the control program was executed from the memory module of the controller and storing them to the first array, comparing whether the control parameters were the same as those after initial setup or debugging, if different, the parameters are updated and written to the memory module after the device is shut down.

Benefits of technology

It realizes automatic update of debugging parameters during the operation of the equipment, avoids frequent shutdowns and power-offs and burns programs, and improves product operation reliability and maintenance convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114115962B_ABST
    Figure CN114115962B_ABST
Patent Text Reader

Abstract

The present invention provides a control parameter processing method, apparatus, storage medium and controller. The method includes: reading control parameters stored when the control program was last executed from a storage module of the controller, and storing the read control parameters in a first array; comparing whether the control parameters stored in the first array are the same as the control parameters stored in a second array; if it is compared that the control parameters stored in the first array are the same as the control parameters stored in the second array, then assigning the control parameters stored in the second array to corresponding control variables to execute the control program; if it is compared that the control parameters stored in the first array are different from the control parameters stored in the second array, then reading control parameters from the storage module and assigning them to corresponding control variables to execute the control program. The solution provided by the present invention can achieve automatic update of debugging parameters without power-off.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of control, and particularly to a control parameter processing method, device, storage medium and controller. Background Art

[0002] During the development and after-sales process of inverters, it is often encountered that the input power supply of the inverter and the changes in the backend load lead to malfunction shutdown caused by mismatched control parameters. Therefore, it is necessary to correct and optimize the protection values and control parameters of the inverter. The usual processing method is to directly store the parameters in the main control chip together with the program. After matching, the machine is shut down, powered off, and then the latest program with updated parameters is re-burned into the inverter control chip through an emulator. However, some users need the on-site equipment to run continuously during use and cannot shut down and power off to burn the program at any time. Summary of the Invention

[0003] The main object of the present invention is to overcome the defects of the above-related technologies, and provide a control parameter processing method, device, storage medium and controller to solve the problem that the on-site equipment needs to run continuously during use in the related technologies and cannot shut down and power off to burn the program at any time.

[0004] On the one hand, the present invention provides a control parameter processing method, including: reading the control parameters stored when the control program was last executed from the storage module of the controller, and storing the read control parameters in a first array; wherein, the first array is used to store the control parameters read from the storage module; comparing whether the control parameters stored in the first array are the same as the control parameters stored in a second array; wherein, the second array is used to store the initially set control parameters and the control parameters after debugging; if it is compared that the control parameters stored in the first array are the same as the control parameters stored in the second array, then assign the control parameters stored in the second array to the corresponding control variables to execute the control program; if it is compared that the control parameters stored in the first array are different from the control parameters stored in the second array, then assign the control parameters stored in the second array to the corresponding control variables to execute the control program, and after the device to which the controller belongs is shut down, write the control parameters stored in the second array into the storage module.

[0005] Optionally, it further includes: before reading the control parameters stored during the last execution of the control program from the storage module of the controller and storing the read control parameters into the first array, determining whether it is the first execution of the control program; if it is determined that it is the first execution of the control program, writing the control parameters stored in the second array into the storage module, and assigning the control parameters stored in the second array to the corresponding control variables to execute the set control program; if it is determined that it is not the first execution of the control program, reading the control parameters stored during the last execution of the control program from the storage module of the controller and storing the read control parameters into the first array.

[0006] Optionally, it further includes: if a debugging instruction from the host computer is received, receiving the debugged control parameters sent by the host computer; executing the control program according to the received debugged control parameters, and writing the debugged control parameters into the storage module.

[0007] On the other hand, the present invention provides a control parameter processing device, the device includes: a reading unit, configured to read the control parameters stored during the last execution of the control program from the storage module of the controller; a storage unit, configured to store the read control parameters into the first array; wherein, the first array is used to store the control parameters read from the storage module; a comparison unit, configured to compare whether the control parameters stored in the first array are the same as the control parameters stored in the second array; wherein, the second array is used to store the initially set control parameters and the debugged control parameters; a processing unit, configured to, if the control parameters stored in the first array are the same as the control parameters stored in the second array, assign the control parameters stored in the second array to the corresponding control variables to execute the control program; if the control parameters stored in the first array are different from the control parameters stored in the second array, assign the control parameters stored in the second array to the corresponding control variables to execute the control program, and after the device to which the controller belongs shuts down, write the control parameters stored in the second array into the storage module.

[0008] Optionally, it further includes: a reading unit, further configured to: read control parameters stored during the last execution of the control program from the storage module of the controller; a judging unit, configured to judge whether it is the first execution of the control program before storing the read control parameters into the first array; the processing unit, further configured to: if it is judged to be the first execution of the control program, write the control parameters stored in the second array into the storage module, and assign the control parameters stored in the second array to corresponding control variables to execute the set control program; if it is judged not to be the first execution of the control program, read the control parameters stored during the last execution of the control program from the storage module of the controller, and store the read control parameters into the first array.

[0009] Optionally, it further includes: a receiving unit, configured to receive the debugged control parameters sent by the host computer if a debug instruction from the host computer is received; the processing unit, further configured to: execute the control program according to the received debugged control parameters, and write the debugged control parameters into the storage module.

[0010] Another aspect of the present invention provides a storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of any of the foregoing methods are implemented.

[0011] Another aspect of the present invention provides a controller, including a processor, a memory, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the steps of any of the foregoing methods are implemented.

[0012] Another aspect of the present invention provides a controller, including the control parameter processing device of any of the foregoing.

[0013] According to the technical solution of the present invention, the control parameters are stored in a separate storage module, and after the parameter matching is completed, the parameters are optimized through the host computer control program, and then the latest control parameters are automatically updated and stored in the storage chip, reducing the number of power-off and repeated programming operations.

[0014] The present invention can realize automatic update of remote debugging parameters, avoiding operations such as frequent power-on and power-off during on-site debugging and after-sales maintenance, making after-sales maintenance more convenient. The present invention effectively solves the problem that technicians frequently burn programs into the control chip due to modifying and optimizing parameters, prolongs the service life of the main control chip, and can be realized only by converting the parameters originally stored in the program into the storage module, greatly improving the product R & D efficiency.

[0015] The present invention can automatically update the debugging parameters without power interruption. During the operation of the device, the control chip loaded with the program cooperates with the host computer. After the initialization program, the control chip compares the existing control parameters with the stored data. If the data is the same, the normal controller program continues to execute; if the data is different, the control parameters are automatically updated to the adapted values modified by the host computer. The present invention realizes the historical storage of the control parameters by separately storing the modified new control parameters and protection values from the control chip into the storage module. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:

[0017] Figure 1 is a schematic diagram of a method of an embodiment of the control parameter processing method provided by the present invention;

[0018] Figure 2 is a schematic diagram of a method of a specific embodiment of the control parameter processing method provided by the present invention;

[0019] Figure 3 shows a schematic diagram of a control structure according to a specific embodiment of the present invention;

[0020] Figure 4a shows the control parameter debugging process in the related art;

[0021] Figure 4b shows the control parameter debugging process according to the technical solution of the present invention;

[0022] Figure 5 is a block diagram of an embodiment of the control parameter processing device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0023] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] The present invention provides a control parameter processing method. The control parameter processing method can be used for a controller, and the controller can be a controller in an electrical appliance, such as a controller of a frequency converter of the electrical appliance, such as a frequency converter main control board.

[0026] Figure 1 It is a method schematic diagram of an embodiment of the control parameter processing method provided by the present invention.

[0027] like Figure 1 As shown, according to an embodiment of the present invention, the control parameter processing method at least includes step S110, step S120, step S130 and step S140.

[0028] Step S110, reading the control parameters stored when the control program was last executed from the storage module of the controller, and storing the read control parameters into the first array.

[0029] Step S120: comparing whether the control parameters stored in the first array are the same as the control parameters stored in the second array.

[0030] The storage module can be a storage chip for data storage. If the controller hardware circuit has a memory such as an SD card or NAND FLASH, it can also be used as a storage module to store parameters. The above function can also be implemented in the storage space of the DSP itself.

[0031] The first array is used to store the control parameters read from the storage module. The second array is used to store the initially set control parameters and the control parameters after debugging. Specifically, arrays DATA0 and DATA1 are defined. Among them, the DATA0 array, that is, the second array, is used to store the initially set control parameters and the control parameters after parameter debugging via the host computer (i.e., sent by the host computer). Among them, if parameter debugging is performed via the host computer, the control parameters after debugging are written into the second array. The host computer and the controller can be implemented in various communication methods, for example, CAN communication, Ethernet communication, etc. For example, a user (such as a technician) can debug the control parameters that need to be updated in the control chip via the host computer, and the control chip automatically writes the updated control parameters into the storage module to achieve automatic parameter update and storage. The DATA1 array, that is, the first array, is used to store the control parameters read from the storage module.

[0032] Further, before reading the control parameters stored during the previous execution of the control program from the storage module of the controller, that is, before executing step S110, it is determined whether it is the first execution of the control program; if it is determined that it is the first execution of the control program, the control parameters stored in the second array are written into the storage module, and the control parameters stored in the second array are assigned to the corresponding control variables to execute the set control program.

[0033] Specifically, when the control program is executed for the first time, since all the data in the DATA1 array (the first array) is 0, and the control parameters stored in the second array at this time are the initially set control parameters, the initially set control parameters in the DATA0 array (the second array) are written into the storage module and the frequency converter control is performed. When the program is executed subsequently, the control parameters stored during the previous execution of the program are first read from the storage module, and the read data is written into the DATA1 array and compared with the normally used DATA0 array. If the control parameters stored in the two arrays are the same, it indicates that parameter debugging has not been performed via the host computer (the initially set control parameters are stored in the DATA0 array, and the control parameters read from the storage module are stored in the DATA1 array. If parameter debugging has been performed, the control parameters stored in DATA0 will change. Therefore, if the control parameters in the two arrays are the same, it indicates that no parameter debugging has been performed), and the normal motor control program is executed (i.e., continue to use the data in the DATA0 array); if the control parameters stored in the two arrays are different, it indicates that parameter debugging has been performed via the host computer.

[0034] Step S130, if the control parameters stored in the first array are the same as the control parameters stored in the second array, the control parameters stored in the second array are assigned to the corresponding control variables to execute the control program.

[0035] Step S140, if the control parameters stored in the first array are different from those stored in the second array, then assign the control parameters stored in the second array to the corresponding control variables to execute the control program, and after the device to which the controller belongs stops, write the control parameters stored in the second array into the storage module.

[0036] Specifically, if the control parameters in the two arrays are the same, it indicates that parameter debugging has not been performed through the host computer, and the normal control program is executed, assigning the control parameters stored in the second array to the corresponding control variables; if the control parameters in the two arrays are different, it indicates that parameter debugging has been performed through the host computer. Among them, when performing parameter debugging on the host computer, the control parameters stored in the second array are changed according to the parameter values set by the host computer. After the change is completed, the new parameters are used to control the operation of the unit. When the device to which it belongs stops, the data in the second array DATA0 is stored in the storage module, and subsequently, only the parameters are read from the storage module for control.

[0037] The following is an example. DATAO stores the initially set control parameters and the debugged control parameters, and DATA1 stores the data read from the storage module. The initially set control parameters in DATA0 are 1, 2, 3; the initial parameters in DATA1 are 0, 0, 0.

[0038] (1) When executed for the first time, write DATA0 into DATA1. At this time, both DATA0 and DATA1 are 1, 2, 3; the parameters of DATAO and DATA1 are the same, and the normal program (1, 2, 3) is executed; the host computer modifies the parameters to 4, 5, 6 for the first time, then DATA0 is 4, 5, 6 at this time; comparing the parameters of DATA0 and DATA1 are different, indicating that debugging has been performed, and the newly debugged parameter program (4, 5, 6) is executed; and after stopping, the debugged parameters in DATA0 are written into the storage module. At this time, the parameters in the storage module are 4, 5, 6;

[0039] (2) When executed subsequently, the parameters in DATA0 are 4, 5, 6; read the parameters in the storage module and write them into DATA1, so DATA1 is 4, 5, 6; the parameters of DATA0 and DATA1 are the same, and the normal program (4, 5, 6) is executed; the host computer modifies the parameters to 7, 8, 9 for the second time, then DATA0 is 7, 8, 9 at this time; the parameters of DATAO and DATA1 are different, indicating that debugging has been performed, and the new parameter program (7, 8, 9) is executed, and after stopping, DATAO is written into the storage module. At this time, the storage module contains 7, 8, 9.

[0040] Based on the above embodiments, the method further includes: if a debugging instruction from the host computer is received, receiving the debugged control parameters sent by the host computer; executing the control program according to the received debugged control parameters, and writing the debugged control parameters into the storage module.

[0041] According to the above embodiments of the present invention, storing the control parameters and protection values separately in the storage module can realize separate modification of the main program and debugging parameters. When it is found that the unit is operating abnormally, the control parameters in the first array can be read online through the host computer, and then the cause of the abnormality can be analyzed according to the existing control parameters, which can avoid frequent disassembly and assembly of the frequency conversion cabinet to update the program, improving the convenience of frequency converter debugging and the operation reliability of the frequency converter.

[0042] To clearly illustrate the technical solution of the present invention, the execution process of the control parameter processing method provided by the present invention will be described below with a specific embodiment.

[0043] Figure 2 It is a schematic diagram of the method of a specific embodiment of the control parameter processing method provided by the present invention. As Figure 2As shown in the figure, first, the peripheral devices are initialized, and arrays DATA0 and DATA1 are defined. Among them, the DATA0 array is used to store the control parameters set initially and the data for parameter debugging by the host computer (the control parameters are customized during initialization, and the data for parameter debugging is sent and controlled by the host computer); the DATA1 array is used to store the control parameters read from the storage module. When the program is executed for the first time, since all the data read from the DATA1 array is 0, the control parameters set initially stored in the DATA0 array are written into the storage module, and the frequency converter is controlled. When the program is executed subsequently, first, the control parameters stored during the previous execution of the program are read from the storage module and written into the DATA1 array, and compared with the data stored in the DATA0 array. If the parameters in the two arrays are the same, it means that the host computer has not performed parameter debugging (the initially set control parameters are stored in the DATA0 array, and the data in the storage module is stored in the DATA1 array. If parameter debugging has been performed, the data stored in DATA0 will change. Therefore, if the two parameters are the same, it means that no parameter debugging has been performed), and the set motor control program can be executed (that is, continue to use the data in the DATA0 array). If the parameters in the two arrays are different, it means that parameter debugging has been performed through the host computer. When the host computer performs parameter debugging, the data in the DATA0 array will be changed according to the parameter values set by the host computer. After the change is completed, the latest parameters are used to control the operation of the unit. When the unit stops, the data in DATA0 is stored in the storage module, and subsequently, only the parameters are read from the storage module for control. The interrupt is enabled, and the main program is executed. If a debugging instruction from the host computer is received, the debugged control parameters sent by the host computer are received; the control program is executed according to the received debugged control parameters, and the debugged control parameters are written into the storage module. If a debugging instruction from the host computer is not received, the normal control program is executed.

[0044] Figure 3 The figure shows a schematic diagram of the control structure according to a specific embodiment of the present invention. Taking the main control board of the frequency converter as an example, it is realized in cooperation with the host computer. The main control board of the frequency converter mainly consists of a control chip, a storage module, a communication module, and other peripheral circuits. Among them, the control chip is mainly responsible for data reception, transmission, and data processing. The storage module is used to store data. The communication module is used to realize information interaction between the control chip and the host computer. Other peripheral circuits are mainly used to convert analog signals into current and voltage signals and feedback them to the control chip. The host computer debugging interface is provided with a communication interface and a power supply interface. Users (such as technicians) can adjust and configure the control parameters that need to be updated in the control chip through the host computer, and the control chip automatically writes the latest parameters into the storage module to achieve automatic parameter update and storage.

[0045] Figure 4aThe control parameter debugging process in the related art is shown; Figure 4b The control parameter debugging process according to the technical solution of the present invention is shown.

[0046] like Figure 4a As shown, in the related art, when it is necessary to change parameters, the original processing method requires shutting down the machine and cutting off the power first, then connecting the simulator to the JTAG circuit on the inverter main control board, and using the main control program compiler to run the program online after powering on, starting the unit and directly debugging the control parameters in the main control program. After debugging to the optimal effect, it is necessary to shut down the machine again to burn the program containing the latest parameters to the inverter main control board, then cut off the power, unplug the simulator, and restart the unit. Figure 4b As shown, the control parameter debugging of the present invention only needs to open the host computer platform and connect to the communication interface of the inverter main control board. The control chip of the loader program cooperates with the host computer. It only needs to modify the parameters directly on the host computer interface, and the main control program can run normally with the updated parameter values, and store the latest parameters in the storage module. When the unit is turned on next time, the most recent adaptation value is still used when it is read from the storage module.

[0047] The present invention also provides a control parameter processing device. The control parameter processing device can be used in a controller, and the controller can be a controller in an electrical appliance, such as a controller of a frequency converter of the electrical appliance, such as a frequency converter main control board.

[0048] Figure 5 FIG. 1 is a structural block diagram of an embodiment of a control parameter processing device provided by the present invention. Figure 5 As shown, the control parameter processing device 100 includes a reading unit 110 , a storage unit 120 , a comparing unit 130 , and a processing unit 140 .

[0049] The reading unit 110 is used to read the control parameters stored when the control program was last executed from the storage module of the controller. The storage unit 120 is used to store the read control parameters into a first array; wherein the first array is used to store the control parameters read from the storage module. The comparing unit 130 is used to compare whether the control parameters stored in the first array are the same as the control parameters stored in the second array; wherein the second array is used to store the initially set control parameters and the debugged control parameters.

[0050] The storage module can be a storage chip for data storage. If the controller hardware circuit has a memory such as an SD card or NAND FLASH, it can also be used as a storage module to store parameters. The above function can also be implemented in the storage space of the DSP itself.

[0051] The first array is used to store the control parameters read from the storage module. The second array is used to store the initially set control parameters and the control parameters after debugging. Specifically, arrays DATA0 and DATA1 are defined. Among them, the DATA0 array, that is, the second array, is used to store the initially set control parameters and the control parameters after parameter debugging through the host computer (that is, sent by the host computer). Among them, if parameter debugging is performed through the host computer, the control parameters after debugging are written into the second array. The host computer and the controller can be implemented in a variety of communication methods, for example, CAN communication, Ethernet communication, etc. For example, a user (such as a technician) can debug the control parameters that need to be updated in the control chip through the host computer, and the control chip automatically writes the updated control parameters into the storage module to achieve automatic parameter update and storage. The DATA1 array, that is, the first array, is used to store the control parameters read from the storage module.

[0052] Further, the reading unit 110 is further configured to: read the control parameters stored when the control program was last executed from the storage module of the controller; the device 100 further includes a judgment unit (not shown in the figure) for judging whether it is the first time to execute the control program before storing the read control parameters into the first array; the processing unit 140 is further configured to: if it is judged that it is the first time to execute the control program, write the control parameters stored in the second array into the storage module, and assign the control parameters stored in the second array to the corresponding control variables to execute the set control program; if it is judged that it is not the first time to execute the control program, read the control parameters stored when the control program was last executed from the storage module of the controller, and store the read control parameters into the first array.

[0053] Specifically, when the control program is executed for the first time, since all the data in the DATA1 array (the first array) is 0, and the control parameters stored in the second array at this time are the initially set control parameters, the initially set control parameters in the DATA0 array (the second array) are written into the storage module and the frequency converter control is performed. When the program is executed subsequently, the control parameters stored when the program was last executed are first read from the storage module and the read data is written into the DATA1 array for comparison with the normally used DATA0 array. If the control parameters in the two arrays are the same, it means that parameter debugging has not been performed through the host computer (the initially set control parameters are stored in the DATA0 array, and the control parameters read from the storage module are stored in the DATA1 array. If parameter debugging has been performed, the control parameters stored in DATA0 will change. Therefore, if the control parameters in the two arrays are the same, it means that parameter debugging has not been performed), and the normal motor control program is executed (that is, the data in the DATA0 array is continued to be used); if the control parameters in the two arrays are different, it means that parameter debugging has been performed using the host computer.

[0054] The processing unit 140 is configured to, if the control parameters stored in the first array are the same as those stored in the second array, assign the control parameters stored in the second array to the corresponding control variables to execute the control program; if the control parameters stored in the first array are different from those stored in the second array, assign the control parameters stored in the second array to the corresponding control variables to execute the control program, and after the device to which the controller belongs shuts down, write the control parameters stored in the second array into the storage module.

[0055] Specifically, if the control parameters in the two arrays are the same, it indicates that parameter debugging has not been performed through the host computer, so the normal control program is executed, and the control parameters stored in the second array are assigned to the corresponding control variables; if the control parameters in the two arrays are different, it indicates that parameter debugging has been performed through the host computer. Among them, when performing parameter debugging through the host computer, the control parameters stored in the second array are changed according to the parameter values set by the host computer. After the change is completed, the new parameters are used to control the operation of the unit. When the device to which it belongs shuts down, the data in the second array DATA0 is stored in the storage module, and subsequently, only the parameters need to be read from the storage module for control.

[0056] Based on another embodiment of the present invention according to the above embodiment, the device 100 further includes: a receiving unit (not shown in the figure), configured to receive the debugged control parameters sent by the host computer if a debug instruction from the host computer is received; the processing unit is further configured to: execute the control program according to the received debugged control parameters, and write the debugged control parameters into the storage module.

[0057] According to the above embodiment of the present invention, storing the control parameters and protection values separately in the storage module can achieve separate modification of the main program and debug parameters. When it is found that the device is operating abnormally, the control parameters in the first array can be read online through the host computer, and then the cause of the abnormality can be analyzed based on the existing control parameters, which can avoid frequent disassembly and assembly of the device to update the program, and improve the convenience of debugging and the operation reliability of the frequency converter.

[0058] The present invention also provides a storage medium corresponding to the control parameter processing method, on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the foregoing methods are implemented.

[0059] The present invention also provides a controller corresponding to the control parameter processing method, including a processor, a memory, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of any one of the foregoing methods are implemented.

[0060] The present invention also provides a controller corresponding to the control parameter processing device, including any one of the foregoing control parameter processing devices.

[0061] Accordingly, the solution provided by the present invention stores control parameters in a separate storage module, optimizes the parameters through the host computer control program after parameter matching is completed, and then automatically updates the latest control parameters and stores them in the storage chip, reducing the number of power-off and repeated programming operations.

[0062] The present invention can realize automatic update of remote debugging parameters, avoiding operations such as frequent power-on and power-off during on-site debugging and after-sales maintenance, making after-sales maintenance more convenient. The present invention effectively solves the problem that technicians frequently burn programs into the control chip due to correcting and optimizing parameters, prolongs the service life of the main control chip, and can be achieved only by converting the parameters originally stored in the program into the storage module, greatly improving the product R & D efficiency.

[0063] The present invention can automatically update debugging parameters without power-off. During the operation of the device, the control chip loading the program cooperates with the host computer. After the initialization program, the control chip compares the existing control parameters with the stored data. If the data is the same, it continues to execute the normal controller program; if the data is different, it automatically updates the control parameters to the adapted value modified by the host computer. The present invention realizes the historical storage of control parameters by separately storing the modified new control parameters and protection values from the control chip into the storage module.

[0064] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or code on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present invention and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hardwiring, or any combination thereof. In addition, each functional unit may be integrated in one processing unit, may exist separately physically as each unit, or two or more units may be integrated in one unit.

[0065] In several embodiments provided by this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of the units can be a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of units or modules can be in an electrical or other form.

[0066] The units described as separate components may or may not be physically separated. The components serving as control devices may or may not be physical units, that is, they can be located in one place or distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0067] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the related technology, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs, and other various media that can store program codes.

[0068] The above are only the embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the scope of the claims of the present invention.

Claims

1. A method for processing control parameters, characterized in that, it includes: Read the control parameters stored when the control program was last executed from the storage module of the controller, and store the read control parameters into the first array; wherein, the first array is used to store the control parameters read from the storage module; Compare whether the control parameters stored in the first array are the same as the control parameters stored in the second array; wherein, the second array is used to store the initially set control parameters and the control parameters after debugging; If it is determined that the control parameters stored in the first array are the same as the control parameters stored in the second array, then assign the control parameters stored in the second array to the corresponding control variables to execute the control program; If it is determined that the control parameters stored in the first array are different from the control parameters stored in the second array, then assign the control parameters stored in the second array to the corresponding control variables to execute the control program, and after the device to which the controller belongs shuts down, write the control parameters stored in the second array into the storage module.

2. The method according to claim 1, characterized in that, it further includes: Before reading the control parameters stored when the control program was last executed from the storage module of the controller and storing the read control parameters into the first array, determine whether it is the first time to execute the control program; If it is determined that it is the first time to execute the control program, then write the control parameters stored in the second array into the storage module, and assign the control parameters stored in the second array to the corresponding control variables to execute the set control program; If it is determined that it is not the first time to execute the control program, then read the control parameters stored when the control program was last executed from the storage module of the controller, and store the read control parameters into the first array.

3. The method according to claim 1 or 2, characterized in that, it further includes: If a debugging instruction from the host computer is received, then receive the control parameters after debugging sent by the host computer; Execute the control program according to the received control parameters after debugging, and write the control parameters after debugging into the storage module.

4. A control parameter processing device, characterized in that, it includes: A reading unit, configured to read the control parameters stored when the control program was last executed from the storage module of the controller; A storage unit, configured to store the read control parameters into the first array; wherein, the first array is used to store the control parameters read from the storage module; A comparison unit, configured to compare whether the control parameters stored in the first array are the same as the control parameters stored in the second array; wherein, the second array is used to store the initially set control parameters and the control parameters after debugging; A processing unit, configured to, if it is determined that the control parameters stored in the first array are the same as the control parameters stored in the second array, then assign the control parameters stored in the second array to the corresponding control variables to execute the control program; If the control parameters stored in the first array are different from those stored in the second array, then assign the control parameters stored in the second array to the corresponding control variables to execute the control program, and after the device to which the controller belongs shuts down, write the control parameters stored in the second array into the storage module.

5. The device according to claim 4, wherein, it further comprises: the reading unit is further configured to: read the control parameters stored when the control program was last executed from the storage module of the controller; the judging unit is configured to judge whether it is the first time to execute the control program before storing the read control parameters into the first array; the processing unit is further configured to: if it is judged that it is the first time to execute the control program, write the control parameters stored in the second array into the storage module, and assign the control parameters stored in the second array to the corresponding control variables to execute the set control program; if it is judged that it is not the first time to execute the control program, read the control parameters stored when the control program was last executed from the storage module of the controller, and store the read control parameters into the first array.

6. The device according to claim 4 or 5, wherein, it further comprises: the receiving unit is configured to receive the debugged control parameters sent by the host computer if a debug instruction from the host computer is received; the processing unit is further configured to: execute the control program according to the received debugged control parameters, and write the debugged control parameters into the storage module.

7. A storage medium, wherein, a computer program is stored thereon, and when the program is executed by a processor, the steps of the method according to any one of claims 1-3 are implemented.

8. A controller, wherein, it comprises a processor, a memory, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the steps of the method according to any one of claims 1-3 are implemented.

9. A controller, wherein, it comprises the control parameter processing device according to any one of claims 4-6.

Citation Information

Patent Citations

  • Method and device for processing control parameters in controller

    CN103676937A

  • Data interaction method and device and air-conditioner control system

    CN104613607A