Data updating method and device, equipment and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG PHNIX ECO ENERGY SOLUTION
- Filing Date
- 2022-09-21
- Publication Date
- 2026-07-07
AI Technical Summary
In existing technologies, the data parameters stored locally on the control screen cannot obtain the latest modified data of the target unit, and transmission conflicts are prone to occur during the data update process.
By acquiring the time-sharing temperature control parameters of the target unit, it is determined whether the control screen sends data, and cyclic redundancy verification is performed to ensure parameter consistency. The data parameters are then saved in the cache or updated to the unit to ensure normal data parameter updates.
It enables the acquisition of the latest modified data parameters of the target unit, avoids data transmission conflicts, and ensures that the data parameters can be updated normally.
Smart Images

Figure CN115563135B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data update method, apparatus, device, and storage medium. Background Technology
[0002] Currently, existing technologies acquire data parameters set by users on the control screen, distribute these data parameters to various units via the control screen, and store the data parameters locally on the color screen. The data parameters can then be modified via the control screen or data transmission unit.
[0003] In the existing technology, the control screen only saves the preset data parameters locally, and cannot obtain the latest modified data parameters of the target unit, and ensures that no data transmission conflict will occur during the data parameter update process. Summary of the Invention
[0004] This invention provides a data update method, apparatus, device, and storage medium for acquiring the latest modified data parameters of a target unit and ensuring that the data can be updated normally.
[0005] The first aspect of the present invention provides a data update method, comprising: acquiring a first time-sharing temperature control parameter of a target unit in at least one unit, wherein the target unit is communicatively connected to a control screen; determining whether the control screen is in a state of issuing a second time-sharing temperature control parameter; if not, detecting whether the first time-sharing temperature control parameter is consistent with a saved target historical time-sharing temperature control parameter, wherein the target historical time-sharing temperature control parameter and the first time-sharing temperature control parameter have the same data type; if the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter, saving the first time-sharing temperature control parameter to a cache; and updating the first time-sharing temperature control parameter to the at least one unit.
[0006] In one feasible implementation, determining whether the control screen is in the state of issuing the second time-sharing temperature control parameters includes: determining whether the control screen has a issuing identifier, the issuing identifier being used to indicate that the control screen is issuing data; if the issuing identifier exists, then determining that the control screen is in the state of issuing the second time-sharing temperature control parameters; if the issuing identifier does not exist, then determining that the control screen is not in the state of issuing the second time-sharing temperature control parameters.
[0007] In one feasible implementation, the step of detecting whether the first time-sharing temperature control parameter is consistent with the saved target historical data parameter if not: if the control screen is not in the state of issuing the second time-sharing temperature control parameter, then perform cyclic redundancy check on the first time-sharing temperature control parameter to obtain a first cyclic redundancy check code; compare the first cyclic redundancy check code with the saved target historical cyclic redundancy check code, wherein the target historical cyclic redundancy check code is the check code of the target historical time-sharing temperature control parameter; if the first cyclic redundancy check code is inconsistent with the target historical cyclic redundancy check code, then determine that the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter.
[0008] In one feasible implementation, before obtaining the first time-sharing temperature control parameter of the target unit in the at least one unit, the method further includes: sending a detection command to the target unit, the detection command being used to detect whether the target unit is communicating normally; if it is determined according to the detection command that the target unit is communicating abnormally, then determining whether there is a temporary time-sharing temperature control parameter in the cache.
[0009] In one feasible implementation, the step of determining whether there are temporary time-sharing temperature control parameters in the cache if the target unit communication is determined to be abnormal includes: if the target unit communication is determined to be abnormal, determining whether there is a check header in the cache; if it exists, determining that there are temporary time-sharing temperature control parameters in the cache; if it does not exist, determining that there are no temporary time-sharing temperature control parameters in the cache.
[0010] In one feasible implementation, the step of determining whether a temporary time-sharing temperature control parameter exists in the cache after determining that the target unit communication is abnormal further includes: if it exists, storing the temporary time-sharing temperature control parameter to a preset storage address; performing cyclic redundancy check on the temporary time-sharing temperature control parameter to obtain a temporary cyclic redundancy check code; and determining whether to update the temporary time-sharing temperature control parameter to the at least one unit based on the temporary cyclic redundancy check code and the saved first historical cyclic redundancy check code.
[0011] In one feasible implementation, if the target unit is determined to have communication abnormalities, the step of determining whether there are temporary time-sharing temperature control parameters in the cache further includes: if there are no parameters, writing the preset time-sharing temperature control parameters to the preset storage address and generating a verification header; storing the preset time-sharing temperature control parameters and the verification header in the cache.
[0012] A second aspect of the present invention provides a data update device, comprising: an acquisition module for acquiring a first time-sharing temperature control parameter of a target unit among at least one unit, the target unit being communicatively connected to a control screen; a judgment module for judging whether the control screen is in a state of issuing a second time-sharing temperature control parameter; a detection module for detecting, if not, whether the first time-sharing temperature control parameter is consistent with a saved historical time-sharing temperature control parameter, the historical time-sharing temperature control parameter and the first time-sharing temperature control parameter having the same data type; a storage module for saving the first time-sharing temperature control parameter to a storage chip if the first time-sharing temperature control parameter is inconsistent with the historical time-sharing temperature control parameter; and an update module for updating the first time-sharing temperature control parameter to the at least one unit.
[0013] In one feasible implementation, the judgment module is specifically used to: determine whether the control screen has a sending identifier, the sending identifier being used to indicate that the control screen is sending data; if the sending identifier exists, then determine that the control screen is in the state of sending the second time-sharing temperature control parameter; if the sending identifier does not exist, then determine that the control screen is not in the state of sending the second time-sharing temperature control parameter.
[0014] In one feasible implementation, the detection module is specifically used to: if the control screen is not in the state of issuing the second time-sharing temperature control parameter, perform cyclic redundancy check on the first time-sharing temperature control parameter to obtain a first cyclic redundancy check code; compare the first cyclic redundancy check code with the saved target historical cyclic redundancy check code, wherein the target historical cyclic redundancy check code is the check code of the target historical time-sharing temperature control parameter; if the first cyclic redundancy check code is inconsistent with the target historical cyclic redundancy check code, determine that the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter.
[0015] In one feasible implementation, the data update device further includes: a sending module, configured to send a detection command to the target unit, the detection command being used to detect whether the target unit is communicating normally; and a first processing module, configured to determine whether there are temporary time-sharing temperature control parameters in the cache if the detection command determines that the target unit is communicating abnormally.
[0016] In one feasible implementation, the first processing module is specifically used to: if it is determined that the target unit communication is abnormal, determine whether there is a check header in the cache; if there is, determine that there is a temporary time-sharing temperature control parameter in the cache; if there is no, determine that there is no temporary time-sharing temperature control parameter in the cache.
[0017] In one feasible implementation, the data update device further includes: a first storage module, used to store the temporary time-sharing temperature control parameters to a preset storage address if they exist; a verification module, used to perform cyclic redundancy check on the temporary time-sharing temperature control parameters to obtain a temporary cyclic redundancy check code; and a second processing module, used to determine whether to update the temporary time-sharing temperature control parameters to the at least one unit based on the temporary cyclic redundancy check code and the saved first historical cyclic redundancy check code.
[0018] In one feasible implementation, the data update device further includes: a writing module, used to write the preset time-sharing temperature control parameters to the preset storage address and generate a verification header if the address does not exist; and a second storage module, used to store the preset time-sharing temperature control parameters and the verification header in a cache.
[0019] A third aspect of the present invention provides a data update device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor invokes the instructions in the memory to cause the data update device to perform the data update method described above.
[0020] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the data update method described above.
[0021] In the technical solution provided by this invention, a first time-sharing temperature control parameter of a target unit in at least one generator set is obtained, and the target generator set is communicatively connected to the control screen. It is determined whether the control screen is in a state of issuing a second time-sharing temperature control parameter. If not, it is detected whether the first time-sharing temperature control parameter is consistent with a saved target historical time-sharing temperature control parameter, wherein the target historical time-sharing temperature control parameter and the first time-sharing temperature control parameter have the same data type. If the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter, the first time-sharing temperature control parameter is saved to a cache. The first time-sharing temperature control parameter is then updated to the at least one generator set. In this embodiment of the invention, by obtaining the first time-sharing temperature control parameter of the target generator set, determining that the control screen is not in a state of issuing a second time-sharing temperature control parameter, and updating the first time-sharing temperature control parameter inconsistent with the historical time-sharing temperature control parameter to at least one generator set, the latest modified data parameters of the target generator set are obtained, ensuring that the data parameters can be updated normally. Attached Figure Description
[0022] Figure 1 This is a schematic diagram of one embodiment of the data update method in this invention;
[0023] Figure 2 This is a schematic diagram of another embodiment of the data update method in this invention;
[0024] Figure 3 This is a schematic diagram of one embodiment of the data update device in this invention;
[0025] Figure 4 This is a schematic diagram of another embodiment of the data update device in this invention;
[0026] Figure 5 This is a schematic diagram of one embodiment of the data update device in this invention. Detailed Implementation
[0027] This invention provides a data update method, apparatus, device, and storage medium for obtaining the latest modified data parameters of a target unit and ensuring that the data parameters can be updated normally.
[0028] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] It is understood that the executing entity of this invention can be a data update device, a terminal, or a server; no specific limitation is made here. This embodiment of the invention will be described using a server as an example.
[0030] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of the data update method in this invention includes:
[0031] 101. Obtain the first time-sharing temperature control parameter of the target unit in at least one unit, and the target unit is connected to the control screen for communication.
[0032] Query the first time-sharing temperature control parameter of the target unit in at least one unit, and extract the first time-sharing temperature control parameter.
[0033] 102. Determine whether the control screen is in the state of issuing the second time-sharing temperature control parameters;
[0034] Determine whether a data transmission flag exists on the control screen. The data transmission flag indicates that the control screen is transmitting data. If a data transmission flag exists, it is determined that the control screen is in the state of transmitting the second time-sharing temperature control parameters. If a data transmission flag does not exist, it is determined that the control screen is not in the state of transmitting the second time-sharing temperature control parameters.
[0035] 103. If not, check whether the first time-sharing temperature control parameter is consistent with the saved target historical time-sharing temperature control parameter. The data types of the target historical time-sharing temperature control parameter and the first time-sharing temperature control parameter are the same.
[0036] When the control screen is not in the state of issuing the second time-sharing temperature control parameter, a cyclic redundancy check is performed on the first time-sharing temperature control parameter to obtain the first cyclic redundancy check code. It is then determined whether the first time-sharing temperature control parameter is consistent with the target historical time-sharing temperature control parameter. If the first cyclic redundancy check code is inconsistent with the target historical cyclic redundancy check code, then the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter; if the first cyclic redundancy check code is consistent with the target historical cyclic redundancy check code, then the first time-sharing temperature control parameter is consistent with the target historical time-sharing temperature control parameter.
[0037] 104. If the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter, the first time-sharing temperature control parameter is saved to the cache.
[0038] When the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter, the first time-sharing temperature control parameter is saved to the cache, for example, in flash memory.
[0039] 105. Update the first time-sharing temperature control parameters to at least one unit.
[0040] Once the first time-sharing temperature control parameter is detected as being saved to the cache, the system retrieves information on at least one unit that needs updating and sends the first time-sharing temperature control parameter to that unit. If it is determined that the first time-sharing temperature control parameter is inconsistent with the target historical parameter, the system can either save the first time-sharing temperature control parameter to the cache first, and then update it to at least one unit; or it can update the first time-sharing temperature control parameter to at least one unit first, and then save it to the cache.
[0041] In this embodiment of the invention, the first time-sharing temperature control parameter of the target unit is obtained, it is determined that the control screen is not in the state of issuing the second time-sharing temperature control parameter, and the first time-sharing temperature control parameter that is inconsistent with the historical time-sharing temperature control parameter is updated to at least one unit, so as to obtain the latest modified data parameters of the target unit and ensure that the data parameters can be updated normally.
[0042] Please see Figure 2 Another embodiment of the data update method in this invention includes:
[0043] 201. Send a test command to the target unit. The test command is used to check whether the target unit is communicating normally.
[0044] A detection command is sent to the target unit to check whether the target unit is communicating normally. If the target unit receives a reply within a preset time, the target unit is determined to be communicating normally; if the target unit does not receive a reply within the preset time, the target unit is determined to be communicating abnormally.
[0045] 202. If the target unit is found to have communication abnormalities according to the detection command, then determine whether there are temporary time-sharing temperature control parameters in the buffer;
[0046] If the target unit is found to have communication abnormalities, check if a checksum header exists in the cache; if it exists, determine if temporary time-sharing temperature control parameters exist in the cache; if it does not exist, determine if temporary time-sharing temperature control parameters do not exist in the cache.
[0047] For example: when the target unit is found to have communication abnormalities, if a check header is read, such as 0x3E1F, it is determined that there are temporary time-sharing temperature control parameters in the cache; if the check header is not read, it is determined that there are no temporary time-sharing temperature control parameters in the cache.
[0048] 203. If not, determine whether to update the data parameters for at least one unit based on the preset time-sharing temperature control parameters;
[0049] If no temporary time-sharing temperature control parameters exist, the preset time-sharing temperature control parameters are written to a preset storage address and a verification header is generated. The preset time-sharing temperature control parameters and the verification header are stored in the cache. Cyclic redundancy check (CR) is performed on the preset time-sharing temperature control parameters to obtain a preset CR code. The preset CR code is compared with the second historical CR code to determine whether the preset time-sharing temperature control parameters and the second historical CR code are consistent. The second historical CR code is the verification code of the second historical CR parameter. When no temporary time-sharing temperature control parameters exist, the second historical CR code is an initial value, for example, 0. If the preset CR code and the second historical CR code are inconsistent, the preset time-sharing temperature control parameters are inconsistent with the second historical time-sharing temperature control parameters. If the preset CR code and the second historical CR code are consistent, the preset time-sharing temperature control parameters are consistent with the second historical time-sharing temperature control parameters.
[0050] When the preset time-sharing temperature control parameters are inconsistent with the second historical time-sharing temperature control parameters, the verification head and the preset time-sharing temperature control parameters are stored in the cache, and the preset time-sharing temperature control parameters are updated to the at least one unit.
[0051] 204. If present, determine whether to update the data parameters for at least one unit based on the temporary time-sharing temperature control parameters;
[0052] If it exists, the temporary time-sharing temperature control parameters are stored in the preset storage address; the temporary time-sharing temperature control parameters are subjected to cyclic redundancy check to obtain the temporary cyclic redundancy check code; based on the temporary cyclic redundancy check code and the saved first historical cyclic redundancy check code, it is determined whether to update the temporary time-sharing temperature control parameters to at least one unit, where the first historical cyclic redundancy check code is the check code of the first historical time-sharing temperature control parameters.
[0053] If temporary time-sharing temperature control parameters exist, they are stored in a preset storage address. A cyclic redundancy check (CR) is performed on these parameters to obtain a temporary CR code. This temporary CR code is then compared with a first historical CR code to determine if the temporary time-sharing temperature control parameters are consistent with the first historical CR code. If they are inconsistent, the temporary time-sharing temperature control parameters are not consistent with the first historical CR code; otherwise, they are consistent.
[0054] When the temporary time-sharing temperature control parameters are inconsistent with the first historical time-sharing temperature control parameters, the verification header and the temporary time-sharing temperature control parameters are stored in the cache, and the temporary time-sharing temperature control parameters are updated to the at least one unit.
[0055] 205. If the target unit is found to be in normal communication according to the detection command, the first time-sharing temperature control parameter of the target unit in at least one unit is obtained, and the target unit is connected to the control screen.
[0056] When the target unit is confirmed to be in normal communication according to the detection command, the first time-sharing temperature control parameter of the target unit in at least one unit is queried and extracted.
[0057] 206. Determine whether the control screen is in the state of issuing the second time-sharing temperature control parameters;
[0058] Determine whether a data transmission flag exists on the control screen. The data transmission flag indicates that the control screen is transmitting data. If a data transmission flag exists, it is determined that the control screen is in the state of transmitting the second time-sharing temperature control parameters. If a data transmission flag does not exist, it is determined that the control screen is not in the state of transmitting the second time-sharing temperature control parameters.
[0059] 207. If not, check whether the first time-sharing temperature control parameter is consistent with the saved target historical time-sharing temperature control parameter. The target historical time-sharing temperature control parameter and the first time-sharing temperature control parameter have the same data type.
[0060] If the control screen is not in the state of issuing the second time-sharing temperature control parameter, then the first time-sharing temperature control parameter is subjected to cyclic redundancy check to obtain the first cyclic redundancy check code; the first cyclic redundancy check code is compared with the saved target historical cyclic redundancy check code, which is the check code of the target historical time-sharing temperature control parameter; if the first cyclic redundancy check code is inconsistent with the target historical cyclic redundancy check code, then it is determined that the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter.
[0061] When the control screen is not in the state of issuing the second time-sharing temperature control parameter, a cyclic redundancy check is performed on the first time-sharing temperature control parameter to obtain the first cyclic redundancy check code. It is then determined whether the first time-sharing temperature control parameter is consistent with the target historical time-sharing temperature control parameter. If the first cyclic redundancy check code is inconsistent with the target historical cyclic redundancy check code, then the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter; if the first cyclic redundancy check code is consistent with the target historical cyclic redundancy check code, then the first time-sharing temperature control parameter is consistent with the target historical time-sharing temperature control parameter.
[0062] 208. If the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter, the first time-sharing temperature control parameter is saved to the cache.
[0063] When the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter, the first time-sharing temperature control parameter is saved to the cache, for example, in flash memory.
[0064] 209. Update the first time-sharing temperature control parameters to at least one unit.
[0065] Once the first time-sharing temperature control parameter is detected as being saved to the cache, the system retrieves information on at least one unit that needs updating and sends the first time-sharing temperature control parameter to that unit. If it is determined that the first time-sharing temperature control parameter is inconsistent with the target historical parameter, the system can either save the first time-sharing temperature control parameter to the cache first, and then update it to at least one unit; or it can update the first time-sharing temperature control parameter to at least one unit first, and then save it to the cache.
[0066] In this embodiment of the invention, by determining whether the target unit is communicating normally, a method for updating time-division temperature control parameters in abnormal and normal states of the target unit is established. This method enables the acquisition of the latest modified data parameters of the target unit in both abnormal and normal states, ensuring that the data parameters can be updated normally.
[0067] The data update method in the embodiments of the present invention has been described above. The data update apparatus in the embodiments of the present invention will be described below. Please refer to [link / reference]. Figure 3 One embodiment of the data update device in this invention includes:
[0068] The acquisition module 301 is used to acquire the first time-sharing temperature control parameter of the target unit in at least one unit, and the target unit is communicatively connected to the control screen.
[0069] The judgment module 302 is used to determine whether the control screen is in the state of issuing the second time-sharing temperature control parameters;
[0070] The detection module 303 is used to detect whether the first time-sharing temperature control parameter is consistent with the saved historical time-sharing temperature control parameter if no, and the historical time-sharing temperature control parameter and the first time-sharing temperature control parameter have the same data type.
[0071] The storage module 304 is used to save the first time-sharing temperature control parameter to the storage chip if the first time-sharing temperature control parameter is inconsistent with the historical time-sharing temperature control parameter.
[0072] Update module 305 is used to update the first time-sharing temperature control parameters to at least one unit.
[0073] In this embodiment of the invention, the first time-sharing temperature control parameter of the target unit is obtained, it is determined that the control screen is not in the state of issuing the second time-sharing temperature control parameter, and the first time-sharing temperature control parameter that is inconsistent with the historical time-sharing temperature control parameter is updated to at least one unit, so as to obtain the latest modified data parameters of the target unit and ensure that the data parameters can be updated normally.
[0074] Please see Figure 4 Another embodiment of the data update device in this invention includes:
[0075] The acquisition module 301 is used to acquire the first time-sharing temperature control parameter of the target unit in at least one unit, and the target unit is communicatively connected to the control screen.
[0076] The judgment module 302 is used to determine whether the control screen is in the state of issuing the second time-sharing temperature control parameters;
[0077] The detection module 303 is used to detect whether the first time-sharing temperature control parameter is consistent with the saved historical time-sharing temperature control parameter if no, and the historical time-sharing temperature control parameter and the first time-sharing temperature control parameter have the same data type.
[0078] The storage module 304 is used to save the first time-sharing temperature control parameter to the storage chip if the first time-sharing temperature control parameter is inconsistent with the historical time-sharing temperature control parameter.
[0079] Update module 305 is used to update the first time-sharing temperature control parameters to at least one unit.
[0080] Optionally, the judgment module 302 can also be specifically used for:
[0081] Determine whether a data transmission flag exists on the control screen. The data transmission flag indicates that the control screen is transmitting data. If a data transmission flag exists, it is determined that the control screen is in the state of transmitting the second time-sharing temperature control parameters. If a data transmission flag does not exist, it is determined that the control screen is not in the state of transmitting the second time-sharing temperature control parameters.
[0082] Optionally, the detection module 303 can also be specifically used for:
[0083] If the control screen is not in the state of issuing the second time-sharing temperature control parameter, then the first time-sharing temperature control parameter is subjected to cyclic redundancy check to obtain the first cyclic redundancy check code; the first cyclic redundancy check code is compared with the saved target historical cyclic redundancy check code, which is the check code of the target historical time-sharing temperature control parameter; if the first cyclic redundancy check code is inconsistent with the target historical cyclic redundancy check code, then it is determined that the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter.
[0084] Optionally, the data update device also includes:
[0085] The sending module 306 is used to send a detection command to the target unit. The detection command is used to detect whether the target unit is communicating normally.
[0086] The first processing module 307 is used to determine whether there are temporary time-sharing temperature control parameters in the cache if the target unit is found to have communication abnormalities according to the detection command.
[0087] Optionally, the first processing module 307 can also be specifically used for:
[0088] If the target unit is found to have communication abnormalities, check if a checksum header exists in the cache; if it exists, determine if temporary time-sharing temperature control parameters exist in the cache; if it does not exist, determine if temporary time-sharing temperature control parameters do not exist in the cache.
[0089] Optionally, the data update device also includes:
[0090] The first storage module 308 is used to store the temporary time-sharing temperature control parameters to a preset storage address if they exist.
[0091] The verification module 309 is used to perform cyclic redundancy verification on the temporary time-sharing temperature control parameters to obtain the temporary cyclic redundancy check code.
[0092] The second processing module 310 is used to determine whether to update the temporary time-sharing temperature control parameters to at least one unit based on the temporary cyclic redundancy check code and the saved first historical cyclic redundancy check code.
[0093] Optionally, the data update device also includes:
[0094] The writing module 311 is used to write the preset time-sharing temperature control parameters to the preset storage address and generate a verification header if the parameter does not exist.
[0095] The second storage module 312 is used to store the preset time-sharing temperature control parameters and the verification head in the cache.
[0096] In this embodiment of the invention, by determining whether the target unit is communicating normally, a method for updating time-division temperature control parameters in abnormal and normal states of the target unit is established. This method enables the acquisition of the latest modified data parameters of the target unit in both abnormal and normal states, ensuring that the data parameters can be updated normally.
[0097] above Figure 3 and Figure 4 The data update device in the embodiments of the present invention will be described in detail from the perspective of modular functional entities. The data update equipment in the embodiments of the present invention will be described in detail from the perspective of hardware processing.
[0098] Figure 5 This is a schematic diagram of a data update device 500 provided in an embodiment of the present invention. The data update device 500 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing application programs 533 or data 532. The memory 520 and storage media 530 can be temporary or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the data update device 500. Furthermore, the processor 510 may be configured to communicate with the storage media 530 and execute the series of instruction operations in the storage media 530 on the data update device 500.
[0099] The data update device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 5 The data update device structure shown does not constitute a limitation on the data update device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0100] The present invention also provides a data update device, wherein the computer device includes a memory and a processor, the memory storing computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor performs the steps of the data update method in the above embodiments.
[0101] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when the instructions are executed on a computer, cause the computer to perform the steps of the data update method.
[0102] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0103] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the 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 to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0104] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data update method, characterized in that, Applied to a temperature control system, the temperature control system including a control screen and at least one unit, the data update method includes: Obtain the first time-sharing temperature control parameter of the target unit in the at least one unit, wherein the target unit is communicatively connected to the control screen; Determine whether the control screen is in the state of issuing the second time-sharing temperature control parameters; If not, then check whether the first time-sharing temperature control parameter is consistent with the saved target historical time-sharing temperature control parameter, wherein the target historical time-sharing temperature control parameter and the first time-sharing temperature control parameter have the same data type; If the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter, then the first time-sharing temperature control parameter is saved to the cache; Update the first time-sharing temperature control parameters to the at least one unit.
2. The data update method according to claim 1, characterized in that, The step of determining whether the control screen is in the state of issuing the second time-sharing temperature control parameters includes: Determine whether the control screen has a data transmission flag, the data transmission flag being used to indicate that the control screen is transmitting data; If the sending identifier exists, it is determined that the control screen is in the state of sending the second time-sharing temperature control parameters; If the sending identifier does not exist, it is determined that the control screen is not in the state of sending the second time-sharing temperature control parameters.
3. The data update method according to claim 1, characterized in that, If not, then it is checked whether the first time-division temperature control parameter is consistent with the saved target historical data parameter, including: If the control screen is not in the state of issuing the second time-sharing temperature control parameter, then the first time-sharing temperature control parameter is subjected to cyclic redundancy check to obtain the first cyclic redundancy check code; The first cyclic redundancy check code is compared with the saved target historical cyclic redundancy check code, wherein the target historical cyclic redundancy check code is the check code of the target historical time-sharing temperature control parameter. If the first cyclic redundancy check code is inconsistent with the target historical cyclic redundancy check code, then it is determined that the first time-sharing temperature control parameter is inconsistent with the target historical time-sharing temperature control parameter.
4. The data update method according to any one of claims 1-3, characterized in that, Before obtaining the first time-sharing temperature control parameter of the target unit in the at least one unit, the method further includes: A detection command is sent to the target unit, the detection command being used to detect whether the target unit is communicating normally; If the target unit is found to have communication abnormalities according to the detection command, then it is determined whether there are temporary time-sharing temperature control parameters in the buffer.
5. The data update method according to claim 4, characterized in that, If the target unit is determined to have communication abnormalities according to the detection command, the step of determining whether there are temporary time-sharing temperature control parameters in the buffer includes: If the target unit is determined to have abnormal communication based on the detection instruction, determine whether a checksum header exists in the cache. If present, it is determined that temporary time-sharing temperature control parameters exist in the cache; If it does not exist, then it is determined that there are no temporary time-sharing temperature control parameters in the cache.
6. The data update method according to claim 4, characterized in that, If the target unit is determined to have communication abnormalities according to the detection instruction, after determining whether there are temporary time-sharing temperature control parameters in the buffer, the method further includes: If it exists, the temporary time-sharing temperature control parameters are stored in a preset storage address; The temporary time-sharing temperature control parameters are subjected to cyclic redundancy check to obtain a temporary cyclic redundancy check code; Based on the temporary cyclic redundancy check code and the saved first historical cyclic redundancy check code, it is determined whether to update the temporary time-sharing temperature control parameters to the at least one unit.
7. The data update method according to claim 6, characterized in that, If the target unit is determined to have communication abnormalities based on the detection command, after determining whether temporary time-sharing temperature control parameters exist in the buffer, the process further includes: If it does not exist, the preset time-sharing temperature control parameters are written to the preset storage address and a verification header is generated; The preset time-sharing temperature control parameters and the verification head are stored in the cache.
8. A data update device, characterized in that, The data update device includes a control screen and at least one unit, the control screen includes a storage chip, and the data update device includes: The acquisition module is used to acquire the first time-sharing temperature control parameter of the target unit in the at least one unit, wherein the target unit is communicatively connected to the control screen; The judgment module is used to determine whether the control screen is in the state of issuing the second time-sharing temperature control parameters; The detection module is used to detect whether the first time-sharing temperature control parameter is consistent with the saved historical time-sharing temperature control parameter if no, wherein the historical time-sharing temperature control parameter and the first time-sharing temperature control parameter have the same data type. The storage module is used to save the first time-sharing temperature control parameter to the storage chip if the first time-sharing temperature control parameter is inconsistent with the historical time-sharing temperature control parameter. An update module is used to update the first time-sharing temperature control parameters to the at least one unit.
9. A data update device, characterized in that, The data update device includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the data update device to perform the data update method as described in any one of claims 1-7.
10. A computer-readable storage medium storing instructions thereon, characterized in that, When the instruction is executed by the processor, it implements the data update method as described in any one of claims 1-7.