CN111506449A - Air conditioner parameter storage method and device and storage medium - Google Patents
Air conditioner parameter storage method and device and storage medium Download PDFInfo
- Publication number
- CN111506449A CN111506449A CN201910099721.5A CN201910099721A CN111506449A CN 111506449 A CN111506449 A CN 111506449A CN 201910099721 A CN201910099721 A CN 201910099721A CN 111506449 A CN111506449 A CN 111506449A
- Authority
- CN
- China
- Prior art keywords
- data
- read
- area
- air conditioner
- write area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000012795 verification Methods 0.000 claims abstract description 28
- 238000004378 air conditioning Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 14
- 230000002159 abnormal effect Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013524 data verification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/16—Protection against loss of memory contents
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses an air conditioner parameter storage method and device and a storage medium, and belongs to the field of air conditioners. The method comprises the following steps: when the air conditioner control board is powered on, reading data in a read-write area of the nonvolatile memory, and verifying the data in the read-write area; when the verification of the data in the read-write area fails, reading the data in the backup area of the nonvolatile memory, and verifying the data in the backup area; and when the data in the backup area is successfully verified, writing the data in the backup area into the read-write area. The normal data in the backup area of the nonvolatile memory is written into the reading area, so that the data in the reading area is recovered to be normal, and the air conditioner can be switched to operate normally according to the data in the reading area. Meanwhile, the air conditioner is not required to be restored to factory settings, historical data stored by the air conditioner are not lost, and normal use of the air conditioner is guaranteed.
Description
Technical Field
The invention relates to the technical field of air conditioners, in particular to an air conditioner parameter storage method and device and a storage medium.
Background
With the development of electronic information technology, high-grade air conditioner control boards are generally provided with nonvolatile storage devices, such as EEPROM, F L ASH and the like, for recording some variable data, such as important data of operation time, operation mode, set temperature, wind speed and the like.
Disclosure of Invention
The embodiment of the invention provides an air conditioner parameter storage method and device and a storage medium, which can avoid the technical problem of air conditioner operation data loss caused by data writing errors. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to a first aspect of the embodiments of the present invention, there is provided an air conditioner parameter storage method, including the steps of:
when the air conditioner control board is powered on, reading data in a read-write area of the nonvolatile memory, and verifying the data in the read-write area;
when the verification of the data in the read-write area fails, reading the data in a backup area of a nonvolatile memory, and verifying the data in the backup area;
and when the data in the backup area is successfully verified, writing the data in the backup area into a read-write area.
In some optional embodiments, before the reading the data of the read-write area of the nonvolatile memory, the method further includes:
reading data of a read-only area of a nonvolatile memory, and verifying the data of the read-only area;
and when the verification of the data in the read-only area is successful, reading the data in the read-write area of the nonvolatile memory.
In some optional embodiments, the storage method further includes: and updating the data of the read-write area of the nonvolatile memory, and controlling the operation of the air conditioner according to the updated data of the read-write area.
In some optional embodiments, after the air conditioner is shifted to normal operation, the storage method further includes:
updating the data of the read-write area at intervals of first set time;
and writing the updated data of the read-write area into the backup area.
In some optional embodiments, the storage method further includes: and starting to time when the updated data of the read-write area is written into the backup area, comparing the data of the backup area with the data of the read-write area after a second set time interval, and writing the data of the read-write area into the backup area if the data of the backup area is different from the data of the read-write area.
According to a second aspect of the embodiments of the present invention, there is provided an air conditioner parameter storage device including:
the first reading module is used for reading data of a read-write area of the nonvolatile memory and verifying the data of the read-write area when the air conditioner control board is powered on;
the second reading module is used for reading the data of the backup area of the nonvolatile memory and verifying the data of the backup area when the verification of the data of the read-write area fails;
and the first writing module is used for writing the data of the backup area into the read-write area when the verification of the data of the backup area is successful.
In some optional embodiments, the storage device further includes:
the third reading module is used for reading the data of the read-only area of the nonvolatile memory before the first reading module reads the data of the read-write area of the nonvolatile memory, and verifying the data of the read-only area;
and the first confirming module is used for enabling the first reading module to read the data of the read-write area of the nonvolatile memory when the verification of the data of the read-only area is successful.
In some optional embodiments, the storage device further includes a first execution module, configured to update data in a read-write area of the nonvolatile memory, and control an operation of the air conditioner according to the updated data in the read-write area.
In some optional embodiments, after the air conditioner is shifted to normal operation, the storage device further includes:
the updating module is used for updating the data of the read-write area at intervals of first set time;
and the second writing module is used for writing the updated data of the read-write area into the backup area.
According to a third aspect of embodiments of the present invention, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described air conditioning parameter storage method.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
according to the air conditioner parameter storage method provided by the embodiment of the invention, the normal data in the backup area of the nonvolatile memory is written into the reading area, so that the data in the reading area is recovered to be normal, and the air conditioner can be switched to operate normally according to the data in the reading area. Meanwhile, the air conditioner is not required to be restored to factory settings, historical data stored by the air conditioner are not lost, and normal use of the air conditioner is guaranteed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating an air conditioning parameter storage method according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating an air conditioning parameter storage method according to an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method for storing air conditioning parameters according to an exemplary embodiment;
FIG. 4 is a flow diagram illustrating an air conditioning parameter storage method according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating an air conditioning parameter storage device according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating an air conditioning parameter storage device according to an exemplary embodiment;
fig. 7 is a block diagram illustrating an air conditioning parameter storage device according to an exemplary embodiment.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of embodiments of the invention encompasses the full ambit of the claims, as well as all available equivalents of the claims. Embodiments may be referred to herein, individually or collectively, by the term "invention" merely for convenience and without intending to voluntarily limit the scope of this application to any single invention or inventive concept if more than one is in fact disclosed. Herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. As for the methods, products and the like disclosed by the embodiments, the description is simple because the methods correspond to the method parts disclosed by the embodiments, and the related parts can be referred to the method parts for description.
In the embodiment of the invention, the nonvolatile memory arranged on the air conditioner control panel is divided into a read-only area, a read-write area and a backup area.
The read-only area stores the parameter values which need to be called when the air conditioner operates, and the part is fixed data and does not need to be rewritten.
The reading and writing area stores data to be recorded during the operation of the air conditioner, the data of the part are changed, and the MCU of the control panel performs reading and writing operation.
The backup area stores the content of the read-write area.
The end of each area stores the check information of the area, which may be data used for checking the correctness of the data, such as an accumulated sum, a CRC (cyclic redundancy check) check, and the like.
Fig. 1 is a flowchart illustrating an air conditioner parameter storage method according to an exemplary embodiment. As shown in fig. 1, the process of storing the air conditioning parameters includes:
s101, when the air conditioner control board is electrified, reading data of a read-write area of the nonvolatile memory, and verifying the data of the read-write area.
In general, when an air conditioner is in abnormal power failure, the written data is abnormal, and the area where the data is written is the read-write area of the nonvolatile memory. Therefore, when the air conditioner control panel is powered on, whether abnormal writing exists can be judged by reading the data in the read-write area of the nonvolatile memory and verifying the data in the area. The check mode may be to check the check information at the end of the read-write area, and may be data used for checking the data correctness, such as an accumulation sum and a CRC check. The data of the read-write area comprises operation time, operation mode, set temperature, wind speed and the like.
S102, when the verification of the data in the read-write area fails, reading the data in the backup area of the nonvolatile memory, and verifying the data in the backup area.
When the verification of the data in the read-write area fails, the written data in the read-write area is abnormal, at this time, in order to ensure the normal use of the air conditioner, the data in the backup area is read next, the data in the backup area is verified, and the next operation is judged according to the verification result. The check mode may be to check the check information at the end of the backup area, and may be data used for checking the correctness of the data, such as an accumulated sum and a CRC check. The data of the backup area includes operation time, operation mode, set temperature, wind speed, and the like.
And when the data in the read-write area is successfully verified, controlling the air conditioner to operate.
S103, when the data in the backup area is successfully verified, writing the data in the backup area into the read-write area.
The backup area of the nonvolatile memory is used for storing the content of the read-write area, so when the data of the read-write area is abnormal, if the data of the backup area is not abnormal (the verification is successful), the data of the backup area is updated and written into the read area, and the data of the read area is recovered to be normal.
And when the data verification of the backup area fails, reporting a fault.
According to the air conditioner parameter storage method provided by the embodiment of the invention, the normal data in the backup area of the nonvolatile memory is written into the reading area, so that the data in the reading area is recovered to be normal, and the air conditioner can be switched to operate normally according to the data in the reading area. Meanwhile, the air conditioner is not required to be restored to factory settings, historical data stored by the air conditioner are not lost, and normal use of the air conditioner is guaranteed.
In some optional embodiments, the air conditioner parameter storage method further comprises,
and S104, updating the data of the read-write area of the nonvolatile memory, and controlling the operation of the air conditioner according to the updated data of the read-write area.
And controlling the air conditioner to operate according to the data written into the updated read-write area, so as to ensure the normal use of the air conditioner.
In some alternative embodiments, as shown in fig. 4, after controlling the air conditioner to operate, the air conditioner is shifted to a normal operation, and then, the method further includes the following steps:
and S105, updating the data in the read-write area at intervals of first set time. Specifically, the data in the read-write area is updated according to the real-time operation parameters of the air conditioner.
And S106, writing the updated data of the read-write area into the backup area.
Optionally, the method further includes, in step S107, starting timing when the updated data in the read-write area is written into the backup area, comparing the data in the backup area with the data in the read-write area after a second set time interval, and if the updated data in the read-write area is different from the updated data in the backup area, writing the data in the read-write area into the backup area. The second setting time in step S107 may be the same as or different from the first setting time in step S106; at the same time, optionally, the second set time in step S107 is greater than the first set time in step S106.
Further optionally, in step S106, before writing the data of the updated read-write area into the backup area, further comprising,
s106', the data of the updated read-write area is verified.
And S106' when the data verification of the updated read-write area is successful, writing the data of the updated read-write area into the backup area.
The present embodiment ensures that the data written to the backup area is normal data.
Fig. 2 is a flowchart illustrating an air conditioner parameter storage method according to an exemplary embodiment. As shown in fig. 2, the process of storing the air conditioning parameters includes:
s201, when the air conditioner control board is powered on, reading the data of the read-only area of the nonvolatile memory, and verifying the data of the read-only area.
S202, when the verification of the data in the read-only area is successful, the data in the read-write area of the nonvolatile memory is read again.
The read-only area of the nonvolatile memory stores parameter values which are needed to be called when the air conditioner operates, and the parameter values are fixed data and do not need to be rewritten. However, in order to ensure the stable operation of the air conditioner, steps S201 and S202 are added to make the method more complete.
In step S202, and further optionally, when the verification of the data in the read-only area fails, a failure is reported. If the data in the read-only area is abnormal, the air conditioner has a fault, and the fault needs to be reported for maintenance.
S203, reading the data in the read-write area of the nonvolatile memory, and verifying the data in the read-write area. Step S101 is synchronized.
S204, when the verification of the data in the read-write area fails, reading the data in the backup area of the nonvolatile memory, and verifying the data in the backup area. The synchronization step S102.
S205, when the data in the backup area is successfully verified, writing the data in the backup area into the read-write area. The synchronization step S103.
In some optional embodiments, the air conditioner parameter storage method further comprises,
and S206, updating the data of the read-write area of the nonvolatile memory, and controlling the air conditioner to operate according to the updated data of the read-write area.
And controlling the air conditioner to operate according to the data written into the updated read-write area, so as to ensure the normal use of the air conditioner.
The air conditioning parameter storage method shown in fig. 2 is an optimized improvement on the basis of the aforementioned air conditioning parameter storage method, and therefore, the aforementioned S105 and S106, or S105, S106, and S107, or S105, S106', and S106 ″ is also optionally included. And will not be described in detail herein.
Fig. 3 is a flowchart illustrating an air conditioner parameter storage method according to an exemplary embodiment. As shown in fig. 3, the process of storing the air conditioning parameters includes:
and S301, powering on the air conditioner control board.
S302, reading the data of the read-only area of the nonvolatile memory.
S303, verifying the data in the read-only area, if the verification is successful, executing the step S304, otherwise, executing the step S310.
S304, reading the data in the read-write area of the nonvolatile memory.
S305, verifying the data in the read-write area, if the verification is successful, executing the step S309, otherwise, executing the step S306.
S306, reading the data of the backup area of the nonvolatile memory.
S307, the data in the backup area is verified, if the verification is successful, the step S308 is executed, otherwise, the step S310 is executed.
S308 writes the data in the backup area into the read/write area, and updates the data in the read/write area of the nonvolatile memory, and then executes S309.
And S309, controlling the air conditioner to operate.
And S310, reporting the fault.
And S311, setting time T at intervals in the running process of the air conditioner, and updating the data of the read-write area according to the real-time running parameters of the air conditioner.
S312, the updated data in the read/write area is verified. If successful, go to step S313; otherwise, no operation is performed.
S313, the updated data of the read-write area is written into the backup area.
S314, timing when the updated data of the read-write area is written into the backup area, comparing the data of the backup area with the data of the read-write area after the interval setting time T', and writing the data of the read-write area into the backup area if the data of the read-write area is different from the data of the read-write area.
The following are embodiments of apparatuses that may be used to perform method embodiments of the present invention.
According to the air conditioner parameter storage process, an air conditioner parameter storage device can be constructed.
Fig. 5 is a block diagram illustrating an air conditioning parameter storage device according to an exemplary embodiment. As shown in fig. 5, the apparatus may include: a first read module 100, a second read module 200, and a first write module 300, wherein,
the first reading module 100 is configured to read data in a read-write area of the nonvolatile memory and verify the data in the read-write area when the idle mode control board is powered on.
The second reading module 200 is configured to, when the verification of the data in the read-write area fails, read the data in the backup area of the nonvolatile memory, and verify the data in the backup area.
The first writing module 300 is configured to write the data of the backup area into the read-write area when the data of the backup area is successfully verified.
In the storage device according to the embodiment of the present invention, the first reading module 100 reads data in the read-write area and verifies the data in the read-write area. In general, when an air conditioner is in abnormal power failure, the written data is abnormal, and the area where the data is written is the read-write area of the nonvolatile memory. Therefore, when the air conditioner control panel is powered on, whether abnormal writing exists can be judged by reading the data in the read-write area of the nonvolatile memory and verifying the data in the area. The check mode may be to check the check information at the end of the read-write area, and may be data used for checking the data correctness, such as an accumulation sum and a CRC check. The data of the read-write area comprises operation time, operation mode, set temperature, wind speed and the like.
In the second reading module 200, the data in the backup area is read, the data in the backup area is verified, and the next operation is determined according to the verification result. When the verification of the data in the read-write area fails, the written data in the read-write area is abnormal, at this time, in order to ensure the normal use of the air conditioner, the data in the backup area is read next, the data in the backup area is verified, and the next operation is judged according to the verification result. The check mode may be to check the check information at the end of the backup area, and may be data used for checking the correctness of the data, such as an accumulated sum and a CRC check. The data of the backup area includes operation time, operation mode, set temperature, wind speed, and the like.
In the first writing module 300, if the data in the backup area is not abnormal (the verification is successful), the data in the backup area is updated and written into the read area, so that the data in the read area is recovered to normal.
In an alternative embodiment, the storage device, further comprising,
and the first execution module is used for updating the data of the read-write area of the nonvolatile memory and controlling the operation of the air conditioner according to the updated data of the read-write area.
In an alternative embodiment, the storage device, further comprising,
and a second executing module, configured to control the air conditioner to operate when the data in the read-write area in the first reading module 100 is successfully verified.
In an alternative embodiment, the storage device, further comprising,
and the first alarm module is used for reporting a fault when the data in the backup area fails to be checked.
Fig. 6 is a block diagram illustrating an air conditioning parameter storage device according to an exemplary embodiment. As shown in fig. 7, the apparatus may include: a third read module 400, a first confirm module 500, a first read module 100, a second read module 200, and a first write module 300, wherein,
the third reading module 400 is configured to read data in a read-only area of the nonvolatile memory and verify the data in the read-only area before the first reading module reads data in a read-write area of the nonvolatile memory.
The first confirming module 500 is configured to, when the verification of the data in the read-only area is successful, enable the first reading module to read the data in the read-write area of the nonvolatile memory.
The first reading module 100 reads data in a read/write area of the nonvolatile memory and verifies the data in the read/write area.
The second reading module 200 is configured to, when the verification of the data in the read-write area fails, read the data in the backup area of the nonvolatile memory, and verify the data in the backup area.
The first writing module 300 is configured to write the data of the backup area into the read-write area when the data of the backup area is successfully verified.
In an alternative embodiment, the storage device, further comprising,
and the first execution module is used for updating the data of the read-write area of the nonvolatile memory and controlling the operation of the air conditioner according to the updated data of the read-write area.
In an alternative embodiment, the storage device, further comprising,
and the second alarm module is used for reporting a fault when the data of the read-only area fails to be checked.
In the storage device of the embodiment, the read-only area of the nonvolatile memory stores parameter values to be called for air conditioner operation, and the part is fixed data and does not need to be rewritten. However, in order to ensure stable operation of the air conditioner, the third reading module 400 and the first confirming module 500 are added and are more complete.
Fig. 7 is a block diagram illustrating an air conditioning parameter storage device according to an exemplary embodiment. As shown in fig. 7, after controlling the operation of the air conditioner, the air conditioner is shifted to a normal operation, and the storage device may further include: an update module 600 and a second write module 700. Wherein the content of the first and second substances,
an updating module 600, configured to update data in the read-write area at an interval of a first set time;
the second writing module 700 is configured to write the updated data of the read-write area into the backup area.
In the update module 600, the data in the read/write area can be updated according to the real-time operation parameters of the air conditioner.
In an alternative embodiment, the storage device, further comprising,
and the timing module is used for starting timing when the updated data in the read-write area is written into the backup area.
And the comparison module compares the data in the backup area with the data in the read-write area after a second set time interval.
And the third writing module writes the data of the read-write area into the backup area when the comparison result in the comparison module is different.
The first setting time of the updating module 400 and the second setting time of the comparing module may be the same or different; when different, optionally, the second set time is greater than the first set time.
In an embodiment of the present invention, a computer readable storage medium is provided, on which computer instructions are stored, and the instructions, when executed by a processor, implement the steps of the air conditioner parameter storage method.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor to perform the method described above is also provided. The non-transitory computer readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic tape, an optical storage device, and the like.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, it should be understood that the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It should be understood that the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. The present invention is not limited to the procedures and structures that have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (10)
1. An air conditioner parameter storage method is characterized by comprising the following steps:
when the air conditioner control board is powered on, reading data in a read-write area of the nonvolatile memory, and verifying the data in the read-write area;
when the verification of the data in the read-write area fails, reading the data in a backup area of a nonvolatile memory, and verifying the data in the backup area;
and when the data in the backup area is successfully verified, writing the data in the backup area into a read-write area.
2. The air conditioner parameter storage method according to claim 1, further comprising, before the reading of the data in the read/write area of the nonvolatile memory:
reading data of a read-only area of a nonvolatile memory, and verifying the data of the read-only area;
and when the verification of the data in the read-only area is successful, reading the data in the read-write area of the nonvolatile memory.
3. An air conditioner parameter storage method according to claim 1 or 2, characterized by further comprising: and updating the data of the read-write area of the nonvolatile memory, and controlling the operation of the air conditioner according to the updated data of the read-write area.
4. An air conditioner parameter storage method according to claim 1 or 2, wherein after the air conditioner is shifted to normal operation, the storage method further comprises:
updating the data of the read-write area at intervals of first set time;
and writing the updated data of the read-write area into the backup area.
5. An air conditioner parameter storage method according to claim 4, characterized by further comprising: and starting timing when the updated data of the read-write area is written into the backup area, comparing the data of the backup area with the data of the read-write area after a second set time interval, and writing the data of the read-write area into the backup area if the data of the backup area is different from the data of the read-write area.
6. An air conditioner parameter storage device, comprising:
the first reading module is used for reading data of a read-write area of the nonvolatile memory and verifying the data of the read-write area when the air conditioner control board is powered on;
the second reading module is used for reading the data of the backup area of the nonvolatile memory and verifying the data of the backup area when the verification of the data of the read-write area fails;
and the first writing module is used for writing the data of the backup area into the read-write area when the verification of the data of the backup area is successful.
7. An air conditioning parameter storage device as claimed in claim 6, further comprising:
the third reading module is used for reading the data of the read-only area of the nonvolatile memory before the first reading module reads the data of the read-write area of the nonvolatile memory, and verifying the data of the read-only area;
and the first confirming module is used for enabling the first reading module to read the data of the read-write area of the nonvolatile memory when the verification of the data of the read-only area is successful.
8. An air conditioner parameter storage device as claimed in claim 6 or 7, further comprising a first execution module for updating data in the read/write area of the non-volatile memory and controlling the operation of the air conditioner according to the updated data in the read/write area.
9. An air conditioner parameter storage device as claimed in claim 6 or 7, wherein after the air conditioner is shifted to normal operation, the storage device further comprises:
the updating module is used for updating the data of the read-write area at intervals of first set time;
and the second writing module is used for writing the updated data of the read-write area into the backup area.
10. A storage medium on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the air conditioning parameter storage method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099721.5A CN111506449B (en) | 2019-01-31 | 2019-01-31 | Air conditioner parameter storage method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099721.5A CN111506449B (en) | 2019-01-31 | 2019-01-31 | Air conditioner parameter storage method and device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111506449A true CN111506449A (en) | 2020-08-07 |
CN111506449B CN111506449B (en) | 2024-02-20 |
Family
ID=71877309
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910099721.5A Active CN111506449B (en) | 2019-01-31 | 2019-01-31 | Air conditioner parameter storage method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111506449B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113641418A (en) * | 2021-07-26 | 2021-11-12 | 杭州鸿泉物联网技术股份有限公司 | Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment |
CN114816832A (en) * | 2022-04-15 | 2022-07-29 | 巨翊科技(上海)有限公司 | Data management method, device and system of single chip microcomputer |
CN115143590A (en) * | 2022-06-30 | 2022-10-04 | 北京小米移动软件有限公司 | Control parameter processing method and device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5956749A (en) * | 1996-05-30 | 1999-09-21 | Nec Corporation | Data back-up system using nonvolatile read/write memory |
CN101777013A (en) * | 2009-01-12 | 2010-07-14 | 成都市华为赛门铁克科技有限公司 | Solid state disk and data read-write method |
CN104123167A (en) * | 2014-08-06 | 2014-10-29 | 无锡中微爱芯电子有限公司 | MCU electrification starting method with configuration word self-inspection function and self-inspection method |
CN104166606A (en) * | 2014-08-29 | 2014-11-26 | 华为技术有限公司 | File backup method and main storage device |
CN105589765A (en) * | 2015-12-17 | 2016-05-18 | 迈普通信技术股份有限公司 | Method for realizing program backup |
CN106021002A (en) * | 2016-04-29 | 2016-10-12 | 上海庆科信息技术有限公司 | Method and device for data reading and writing of embedded equipment |
CN107885614A (en) * | 2017-11-23 | 2018-04-06 | 昌微系统科技(上海)有限公司 | A kind of data processing method and data processing equipment based on memory |
-
2019
- 2019-01-31 CN CN201910099721.5A patent/CN111506449B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5956749A (en) * | 1996-05-30 | 1999-09-21 | Nec Corporation | Data back-up system using nonvolatile read/write memory |
CN101777013A (en) * | 2009-01-12 | 2010-07-14 | 成都市华为赛门铁克科技有限公司 | Solid state disk and data read-write method |
CN104123167A (en) * | 2014-08-06 | 2014-10-29 | 无锡中微爱芯电子有限公司 | MCU electrification starting method with configuration word self-inspection function and self-inspection method |
CN104166606A (en) * | 2014-08-29 | 2014-11-26 | 华为技术有限公司 | File backup method and main storage device |
CN105589765A (en) * | 2015-12-17 | 2016-05-18 | 迈普通信技术股份有限公司 | Method for realizing program backup |
CN106021002A (en) * | 2016-04-29 | 2016-10-12 | 上海庆科信息技术有限公司 | Method and device for data reading and writing of embedded equipment |
CN107885614A (en) * | 2017-11-23 | 2018-04-06 | 昌微系统科技(上海)有限公司 | A kind of data processing method and data processing equipment based on memory |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113641418A (en) * | 2021-07-26 | 2021-11-12 | 杭州鸿泉物联网技术股份有限公司 | Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment |
CN114816832A (en) * | 2022-04-15 | 2022-07-29 | 巨翊科技(上海)有限公司 | Data management method, device and system of single chip microcomputer |
CN115143590A (en) * | 2022-06-30 | 2022-10-04 | 北京小米移动软件有限公司 | Control parameter processing method and device and storage medium |
CN115143590B (en) * | 2022-06-30 | 2024-04-30 | 北京小米移动软件有限公司 | Control parameter processing method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111506449B (en) | 2024-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111506449B (en) | Air conditioner parameter storage method and device and storage medium | |
US8612734B2 (en) | Method and apparatus for reprogramming applications in embedded devices | |
US7849356B2 (en) | Parity data management system apparatus and method | |
CN107239411B (en) | Memory management method and system for vehicle-mounted controller | |
US20190287626A1 (en) | Data overwriting device and data overwriting method | |
US20080270427A1 (en) | Method and Apparatus for Configuring a Control Device, and Corresponding Control Device | |
US20090077270A1 (en) | I/O module expansion unit and distributed automation system | |
CN102024502B (en) | Flash device testing method and device as well as board and network equipment | |
US20100185846A1 (en) | Computer product, storage device, and firmware management method | |
CN106789741A (en) | The consuming method and device of message queue | |
CN102521074B (en) | Method for quickening recovery of redundant array of independent disk (RAID) 5 | |
US20070250254A1 (en) | On-vehicle control apparatus | |
CN103577201A (en) | Embedded dual system updating method and system | |
CN106201640A (en) | A kind of method and device of BootLoader program of upgrading | |
CN115840579A (en) | FPGA remote updating method, system, chip mounter and storage medium | |
CN109375953B (en) | Operating system starting method and device | |
CN106775636B (en) | Battery firmware processing method and device and charging cabinet system | |
JP5660521B2 (en) | Nonvolatile semiconductor memory device and memory management method | |
CN109298953B (en) | Device and method for reading and writing shared memory data | |
CN105867833B (en) | Data storage device and date storage method | |
CN101634957A (en) | Method and system for managing data of flash memory | |
CN111090541A (en) | Data loss prevention method and device for controller, driving computer equipment and storage medium | |
CN101819532B (en) | Method and device for updating data | |
CN110795155B (en) | System starting method and device, electronic equipment and storage medium | |
CN110888605B (en) | EEPROM data writing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |