CN113883691A - Air conditioner parameter reading method and device, air conditioner and storage medium - Google Patents

Air conditioner parameter reading method and device, air conditioner and storage medium Download PDF

Info

Publication number
CN113883691A
CN113883691A CN202111250268.7A CN202111250268A CN113883691A CN 113883691 A CN113883691 A CN 113883691A CN 202111250268 A CN202111250268 A CN 202111250268A CN 113883691 A CN113883691 A CN 113883691A
Authority
CN
China
Prior art keywords
parameter
storage area
check
target
parameters
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
Application number
CN202111250268.7A
Other languages
Chinese (zh)
Other versions
CN113883691B (en
Inventor
张琴兰
刘湘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Air Conditioner Zhongshan Co Ltd
Original Assignee
TCL Air Conditioner Zhongshan Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by TCL Air Conditioner Zhongshan Co Ltd filed Critical TCL Air Conditioner Zhongshan Co Ltd
Priority to CN202111250268.7A priority Critical patent/CN113883691B/en
Publication of CN113883691A publication Critical patent/CN113883691A/en
Application granted granted Critical
Publication of CN113883691B publication Critical patent/CN113883691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/54Control or safety arrangements characterised by user interfaces or communication using one central controller connected to several sub-controllers
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/61Control or safety arrangements characterised by user interfaces or communication using timers
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The invention discloses a method and a device for reading parameters of an air conditioner, the air conditioner and a storage medium, wherein the method comprises the following steps: accessing the first memory area in response to a data read instruction; if the first storage area has a corresponding second storage area, acquiring a first check parameter in the first storage area and a second check parameter in the second storage area; reading a target parameter according to a comparison result of the first check parameter and the second check parameter; when the first storage area has the corresponding second storage area, the parameters in the second storage area are selectively read according to the comparison result of the first check parameters in the first storage area and the second check parameters in the second storage area, so that the parameters are not read inefficiently, the parameter reading time is saved, the energy consumption is reduced, and the starting speed is accelerated.

Description

Air conditioner parameter reading method and device, air conditioner and storage medium
Technical Field
The invention relates to the technical field of air conditioners, in particular to a method and a device for reading parameters of an air conditioner, the air conditioner and a storage medium.
Background
In the existing technology for reading parameters of air conditioners, two main storage areas and a spare storage area are set in an EEPROM (Electrically Erasable Programmable Read Only Memory, Chinese) to Read the parameters of the main storage areas, and when the spare storage areas are detected, the parameters in the spare storage areas are Read and then covered. However, this method wastes reading parameters, because the number of parameters of the air conditioner is large, and if the number of parameters is small, the number is hundreds, and if the number is large, the number is thousands or even more, the parameters of the standby storage area are completely read and then the original read parameters are covered, so that the reading time is long, and the energy saving is not facilitated.
Disclosure of Invention
The embodiment of the invention provides a method and a device for reading parameters of an air conditioner, the air conditioner and a storage medium, and solves the problem that data reading is time-consuming.
In one aspect, an embodiment of the present invention provides a method for reading parameters of an air conditioner, where the method includes:
accessing the first memory area in response to a data read instruction;
if the first storage area has a corresponding second storage area, acquiring a first check parameter in the first storage area and a second check parameter in the second storage area;
and reading the target parameter according to the comparison result of the first check parameter and the second check parameter.
In some embodiments of the present invention, the reading the target parameter according to the comparison result between the first check parameter and the second check parameter includes:
comparing the first verification parameter to the second verification parameter;
if the first check parameter is the same as the second check parameter, reading a target parameter corresponding to the first check parameter in the first storage area;
and if the first check parameter is different from the first check parameter, reading a target parameter corresponding to the second check parameter in the second storage area.
In some embodiments of the invention, the comparing the first check parameter with the second check parameter comprises:
acquiring a target data type corresponding to the data reading instruction;
and acquiring a first check parameter corresponding to the target data type and a second check parameter corresponding to the target data type.
In some embodiments of the invention, after accessing the first memory area in response to the data read instruction, the method includes:
responding to a data reading instruction, accessing a first storage area to read partition parameters;
matching the partition parameters with preset partition parameters;
and if the partition parameters are matched with the preset partition parameters, acquiring first check parameters in the first storage area and second check parameters in the second storage area.
In some embodiments of the present invention, if the first storage area has a corresponding second storage area, the acquiring the first check parameter in the first storage area, and the second check parameter in the second storage area includes:
if the first storage area has a corresponding second storage area, acquiring a target partition identifier according to the data reading instruction;
acquiring a first target address range of the first storage area corresponding to the target partition identifier and a second target address range of the second storage area corresponding to the target partition identifier according to a mapping relation between a preset identifier and an address;
and accessing the first target address range to obtain a first check parameter, and accessing the second target address range to obtain a second check parameter.
In some embodiments of the present invention, after acquiring the first check parameter in the first storage area and the second check parameter in the second storage area if the first storage area has the corresponding second storage area, the method includes:
acquiring a data updating instruction, wherein the data updating instruction comprises a parameter to be updated and a target data category of the parameter to be updated;
acquiring a target partition identifier according to a preset mapping relation between the category and the partition identifier;
accessing a second storage area, and writing the parameter to be updated into a second target address range corresponding to the target partition identifier;
and acquiring a second check parameter of the second target address range, and modifying the second check parameter according to the parameter updating instruction to obtain a new second check parameter.
In some embodiments of the invention, the method comprises, in response to a data read instruction, accessing a first memory area:
responding to a data reading instruction, and creating a parameter array, wherein the number of elements of the parameter array is greater than or equal to the number of data types in a first storage area;
accessing the first storage area, reading partition parameters in the first storage area, and judging whether the first storage area has a corresponding second storage area;
if the first storage area has a corresponding second storage area, acquiring each target element to be assigned in the parameter array, a first check parameter in the first storage area and a second check parameter in the second storage area;
and comparing the first check parameter with the second check parameter, and assigning values to the target elements according to the comparison result.
In another aspect, an embodiment of the present invention provides an apparatus for reading parameters of an air conditioner, where the apparatus includes:
the instruction module is used for responding to the data reading instruction and accessing the first storage area;
the judging module is used for acquiring a first check parameter in the first storage area and a second check parameter in the second storage area if the first storage area has a corresponding second storage area;
and the parameter module is used for reading the target parameter according to the comparison result of the first check parameter and the second check parameter.
In another aspect, an embodiment of the present invention provides an air conditioner, including a memory and a processor; the memory stores an application program, and the processor is used for running the application program in the memory to execute the operation in the reading method of the air conditioner parameters.
In another aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the method for reading the air conditioner parameters.
The embodiment of the invention responds to a data reading instruction and accesses a first storage area; if the first storage area has a corresponding second storage area, acquiring a first check parameter in the first storage area and a second check parameter in the second storage area; reading a target parameter according to a comparison result of the first check parameter and the second check parameter; when the first storage area has the corresponding second storage area, the parameters in the second storage area are selectively read according to the comparison result of the first check parameters in the first storage area and the second check parameters in the second storage area, so that the parameters are not read inefficiently, the parameter reading time is saved, the energy consumption is reduced, and the starting speed is accelerated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an embodiment of a method for reading parameters of an air conditioner according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an embodiment of reading a target parameter in a method for reading an air conditioner parameter according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an embodiment of comparing verification parameters in a method for reading parameters of an air conditioner according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of an embodiment of determining a second storage area in the method for reading parameters of an air conditioner according to the embodiment of the present invention;
fig. 5 is a schematic flowchart of an embodiment of obtaining a verification parameter in a method for reading parameters of an air conditioner according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of an embodiment of updating parameters in a method for reading parameters of an air conditioner according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating an embodiment of reading parameters of an air conditioner based on a parameter array according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for reading parameters of an air conditioner according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an air conditioner according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method, a device, equipment and a storage medium for reading parameters of an air conditioner. According to the embodiments of the method for reading parameters of an air conditioner provided by the embodiments of the present invention, it should be noted that the steps shown in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps described or shown may be executed in an order different from the execution order here.
In some embodiments of the present invention, the method for reading the air conditioner parameter provided by the embodiments of the present invention may be applied to an air conditioner. In some embodiments of the present invention, the air conditioner may be an industrial air conditioner; in some embodiments of the present invention, the air conditioner may be a household air conditioner; in some embodiments of the invention, the air conditioner may be a single air conditioner, such as a cabinet air conditioner or a wall-mounted air conditioner; in some embodiments of the present invention, the air conditioner may be an air conditioner group composed of a plurality of air conditioners, such as a central air conditioner and a multi-connected air conditioner.
In some embodiments of the present invention, an air conditioner includes an air conditioner indoor unit, an air conditioner outdoor unit, an air conditioner control processor, and a connecting member; the indoor unit of the air conditioner comprises an indoor fan, and the air conditioner comprises an outdoor fan and an outdoor compressor.
In some embodiments of the present invention, the air conditioner parameter refers to an air conditioner E-side parameter, and the air conditioner E-side parameter refers to a parameter stored in the EEPROM by the air conditioner for implementing air conditioner control, including a configuration parameter and a control parameter of the air conditioner. The air conditioner configuration parameters include but are not limited to communication port parameters of the air conditioner and model parameters of the air conditioner; the control parameters include motor driving parameters including driving parameters of the indoor fan and driving parameters of the outdoor fan, and system control parameters including, but not limited to, a rotational speed of the indoor fan, an angle of the air guide plate, a rotational speed of the outdoor fan, and a frequency of the outdoor compressor.
As shown in fig. 1, fig. 1 is a schematic flow chart of an embodiment of a method for reading parameters of an air conditioner according to an embodiment of the present invention, where the method for reading parameters of an air conditioner includes steps 101 to 103:
step 101, responding to a data reading instruction, accessing a first storage area.
In order to facilitate the updating of the parameters of the air conditioner, two E-party storage areas are arranged in an EEPROM memory of the air conditioner, parameters in the two E-party storage areas are subjected to data synchronization before the air conditioner leaves a factory, when the parameters are updated in the use of the air conditioner, the parameters to be updated are written into one of the E-party storage areas, and when the air conditioner is started or runs and the E-party parameters need to be read, the updated parameters in the E-party storage area are read. Therefore, the embodiment of the invention sets double E-square storage areas in the air conditioner. In some embodiments of the present invention, the storage area may be a storage area in an external EEPROM memory provided in the air conditioner, and the external EEPROM memory is divided into a plurality of storage areas. The external EEPROM memory is arranged in the air conditioner, and the air conditioner control processor reads parameters in the external EEPROM memory in an IIC (Inter-Integrated Circuit BUS) communication mode.
In some embodiments of the present invention, the storage area may be provided in a built-in memory chip of the air conditioner control processor, the built-in memory chip of the air conditioner control processor is divided into a code area and an E-party parameter area, and the E-party parameter area is divided into a plurality of storage areas.
In some embodiments of the present invention, step 101 may be that the air conditioner issues a data reading instruction in response to the power-on instruction, and the air conditioner control processor accesses the first storage area in the dual E-party storage areas in response to the data reading instruction.
In some embodiments of the present invention, in step 101, in the operation process of the air conditioner, the control instruction is received, the data reading instruction is generated according to the data to be acquired corresponding to the control instruction, and the air conditioner control processor responds to the data reading instruction to access the first storage area in the dual E-party storage areas.
Step 102, if the first storage area has a corresponding second storage area, acquiring a first check parameter in the first storage area and a second check parameter in the second storage area.
In order to facilitate storage and reading of the E-party parameters, in some embodiments of the present invention, the first storage area is divided into a plurality of storage partitions, the second storage area is divided into a plurality of storage partitions, the E-party parameters are grouped according to the data type of the E-party parameters, and the E-party parameters of the data type are stored in the same storage partition. The data types comprise configuration parameters of the air conditioner, motor driving parameters and system control parameters. In some embodiments of the present invention, the first storage area and the second storage area may be divided according to an address space required by an E-party parameter corresponding to the data type according to an address range of the storage area, for example, when the air conditioner first writes the E-party parameter, when the address range of the first storage area is 0x000 to 0x7FF and the address range of the second storage area is 0x800 to 0xFFF, the configuration parameter of the air conditioner is stored in 0x000 to 0x01F and 0x800 to 0x81F, the motor driving parameter is stored in 0x020 to 0x0FF and 0x820 to 0x8FF, and the system control parameter is stored in 0x010 to 0x6FF and 0x900 to 0 xff. It should be noted that the division of the first storage area and the second storage area is only an exemplary illustration, and the embodiment of the present invention does not limit the address range of each storage partition into which the first storage area and the second storage area are divided, and the storage partition of the E-side storage area in the air conditioner may be divided according to an actual application scenario, for example, the first storage area and the second storage area may be divided into a plurality of storage partitions with the same size.
In some embodiments of the present invention, the check parameter is used to indicate whether the E-party parameter in the storage area corresponding to the check parameter is updated. For convenience of reading the check parameters, the check parameters may be stored in preset storage bits of each storage partition, and for example, the check parameters may be stored in the first two storage bits of each storage partition, for example, the first check parameters of the storage partition corresponding to 0x000 to 0x01F are stored in 0x000 and 0x002, and the second check parameters of the storage partition corresponding to 0x800 to 0x81F are stored in 0x800 and 0x 802; the check parameters may also be stored in the last two storage bits of each storage partition, for example, the first check parameter of the storage partition corresponding to 0x000 to 0x01F is stored in 0x01E and 0x01F, and the second check parameter of the storage partition corresponding to 0x800 to 0x81F is stored in 0x81E and 0x 81F.
In some embodiments of the present invention, when the air conditioner burns the E-party parameter for the first time, the E-party parameter stored in the first storage area is the same as the E-party parameter stored in the second storage area, and each first check parameter in the first storage area is consistent with each second check parameter in the second storage area, when the air conditioner receives an E-party parameter update instruction in use, the E-party parameter in the second storage area is updated according to the update instruction, and the storage partition where the storage address is located is determined according to the storage address of the updated E-party parameter, and the second check parameter corresponding to the storage partition is updated. Therefore, when the air conditioner is started or in the running process, and the E-party parameters need to be read, in order to reduce the reading time of the E-party parameters, when the first storage area is detected to have the corresponding second storage area, the first check parameters in the first storage area and the second check parameters in the second storage area can be obtained, and the reading address of the E-party parameters is determined through the first check parameters and the second check parameters.
In some embodiments of the present invention, when the data reading instruction is to read an E-party parameter of a partial data type, for example, to read a system control parameter of an air conditioner, step 102 may include: if the first storage area has the corresponding second storage area, the target data type is obtained according to the data reading instruction, the address range of the first storage area needing to be accessed and the address range of the second storage area are determined according to the target data type, a field on a preset storage bit in the address range of the first storage area is read to be used as a first check parameter, and a field on the preset storage bit in the address range of the second storage area is read to be used as a second check parameter. In some embodiments of the present invention, an address range of the first storage area and an address range of the second storage area, which are required to be accessed and correspond to the target data type, may be obtained according to a mapping relationship between the preset type and the address. The mapping relation between the preset type and the address is used for indicating the mapping relation between the data type and the storage address of the E-party parameter corresponding to the data type, for example, when the target data type is the motor driving parameter, the address range corresponding to the first storage area is 0x 020-0 x0FF, and the address range corresponding to the second storage area is 0x 820-0 x8 FF; when the target data type is a system control parameter, the corresponding address range of the first storage area is 0x 010-0 x6FF, and the address range of the second storage area is 0x 900-0 xEFF.
In some embodiments of the present invention, when the data reading instruction is to read E-party parameters of all data types, step 102 may include: if the first storage area has the corresponding second storage area, sequentially accessing each storage partition of the first storage area and each storage partition of the second storage partition according to the address sequence, reading fields on preset storage bits in each storage partition of the first storage area as first check parameters, and reading fields on preset storage bits of each storage partition of the second storage partition as second check parameters. For example, taking the first check parameter as an example for obtaining, when the preset storage bits are the last two storage bits and the data reading instruction is to read an E-party parameter of all data types, if the first storage region has a corresponding second storage region, then 0x000 to 0x01F, 0x020 to 0x0FF and 0x010 to 0x6FF are sequentially accessed, and the fields on 0x01E and 0x01F, the fields on 0x0 35 0FE and 0x0FF and the fields on 0x6FE and 0x6FF are respectively read to obtain the first check parameters of the first storage region. In some embodiments of the present invention, the reading method of the second check parameter is similar to the reading method of the first check parameter, and is not repeated here.
And 103, reading the target parameter according to the comparison result of the first check parameter and the second check parameter.
In some embodiments of the present invention, the first verification parameter and the second verification parameter may be compared, the consistency between the first verification parameter and the second verification parameter is determined, and the target parameter is read according to the determination result, specifically, as shown in fig. 2, fig. 2 is a schematic flow chart of an embodiment of reading the target parameter in the method for reading the air conditioner parameter provided in the embodiment of the present invention, where the method for reading the target parameter includes steps 201 to 203:
step 201, comparing the first verification parameter with the second verification parameter.
In some embodiments of the present invention, a first check parameter corresponding to a target data type and a second check parameter corresponding to the target data type may be compared, specifically, as shown in fig. 3, fig. 3 is a schematic flow diagram of an embodiment of comparing check parameters in the air conditioner parameter reading method provided in the embodiment of the present invention, where the method for comparing check parameters includes steps 301 to 303:
step 301, a target data type corresponding to the data reading instruction is obtained.
In some embodiments of the present invention, when the data reading instruction is an E-party parameter for reading a partial data type, the target data type corresponding to the data reading instruction is parsed.
Step 302, a first verification parameter corresponding to the target data type and a second verification parameter corresponding to the target data type are obtained.
In some embodiments of the present invention, a first check parameter corresponding to a target data type in a first storage area, which is obtained according to the target data type, is used as the first check parameter, and a second check parameter corresponding to the target data type in a second storage area, which is obtained is used as the second target parameter.
In some embodiments of the present invention, a mapping relationship between the category and the partition identifier may be preset, a target partition identifier corresponding to the target data type may be obtained, and a first verification parameter and a second verification parameter associated with the target partition identifier may be obtained. Wherein, the target partition identification can be a character or a character string. The target data category may include communication port parameters, model parameters of the air conditioner, motor driving parameters, and system control parameters. The preset mapping relation between the category and the partition identification is used for indicating the mapping relation between the parameter category of the storage partition and the partition identification corresponding to the storage partition; for example, the target partition identifier is a character string for explanation, as shown in table one, the table is an illustration of a mapping relationship between preset categories and partition identifiers provided in the embodiment of the present invention, and in the shown mapping relationship between preset categories and partition identifiers, when the data category is a model parameter of an air conditioner, the corresponding target partition identifier is "qujian 2"; when the data category is a motor drive parameter, the corresponding target partition identification is "qujian 3"; when the data class is a system control parameter, the corresponding target partition identification is "qujian 4".
Table-mapping relationship of preset categories and partition identifications
Data type Partition identification
Communication port parameters qujian1
Model parameters of air conditioner qujian2
Motor driving parameter qujian3
System control parameter qujian4
It should be noted that the mapping relationship between the preset category and the partition identifier shown in table one is only an exemplary illustration, the data category, the partition number, and the corresponding partition identifier in the mapping relationship between the preset category and the partition identifier according to the embodiment of the present invention are not limited, and the mapping relationship between the preset category and the partition identifier may be adjusted according to the actual application scenario of the air conditioner, the number of the storage partitions of the first E-party storage area in the air conditioner, and the data type of the actual storage parameter.
Step 303, comparing the first verification parameter with the second verification parameter.
In some embodiments of the present invention, step 303 comprises: comparing the byte length of the first check parameter with the byte length of the second check parameter, and if the byte length of the first check parameter is greater than or less than the byte length of the second check parameter, judging that the first check parameter is different from the second check parameter; comparing the characters of the first check parameter with the characters of the second check parameter if the byte length of the first check parameter is equal to the byte length of the second check parameter; if the characters of the first check parameter are consistent with the characters of the second check parameter, judging that the first check parameter is the same as the second check parameter; and if the characters of the first check parameter are inconsistent with the characters of the second check parameter, judging that the first check parameter is different from the second check parameter. The comparing the characters of the first check parameter with the characters of the second check parameter may be determining whether the character type of the first check parameter is the same as the character type of the second check parameter, and if the character type of the first check parameter is not the same as the character type of the second check parameter, determining that the characters of the first check parameter are not the same as the characters of the second check parameter; comparing the character sequence of the first check parameter with the character sequence of the second check parameter if the character type of the first check parameter is the same as the character type of the second check parameter; if the character sequence of the first check parameter is the same as the character sequence of the second check parameter, judging that the characters of the first check parameter are consistent with the characters of the second check parameter; and if the character sequence of the first check parameter is not the same as the character sequence of the second check parameter, judging that the characters of the first check parameter are inconsistent with the characters of the second check parameter.
In some embodiments of the present invention, the comparing the first check parameter and the second check parameter sequentially according to a reading order of the check parameters may further include: when the target data type corresponding to the data reading instruction is an E-side parameter for reading all data types, the read first check parameters may be sorted according to the access order of the storage partitions of the first storage area, the read second check parameters may be sorted according to the access order of the storage partitions of the second storage area, and the sorted first check parameters are sequentially compared with the sorted second check parameters.
Step 202, if the first check parameter is the same as the second check parameter, a target parameter corresponding to the first check parameter in the first storage area is read.
In some embodiments of the present invention, if the first check parameter is the same as the second check parameter, which indicates that the E-party parameter corresponding to the second parameter is not updated, the target parameter corresponding to the first check parameter in the first storage area is read.
In step 203, if the first check parameter is different from the first check parameter, the target parameter corresponding to the second check parameter in the second storage area is read.
In some embodiments of the present invention, the first check parameter is different from the first check parameter, which indicates that the E-party parameter corresponding to the second parameter has been updated, and if the updated E-party parameter needs to be read, the target parameter corresponding to the second check parameter in the second storage area is read.
In the embodiment of the invention, the target data type is determined according to the data reading instruction, the first check parameters with the same target data type are compared with the second check parameters, and the first check parameters and the second check parameters with the same sequence position can be sequentially compared according to the reading sequence of the first check parameters and the reading sequence of the second check parameters; reading target parameters according to the comparison result; and various different selection modes and comparison modes of the first check parameter and the second check parameter are provided, so that the flexibility and the applicability of check parameter selection are improved.
According to the embodiment of the invention, when the corresponding second storage area exists in the first storage area, the parameters in the second storage area are selectively read according to the comparison result of the first check parameter in the first storage area and the second check parameter in the second storage area, so that the parameters are not read inefficiently, the parameter reading time is saved, the energy consumption is reduced, and the starting speed is accelerated.
In some embodiments of the present invention, in order to reduce the time for parameter reading, it may be determined whether the first storage area has a corresponding second storage area by reading a partition parameter set in the first storage area. The partition parameter refers to a group of character strings preset in the first storage area and used for indicating whether the air conditioner is provided with double E-square storage areas or not. Specifically, as shown in fig. 4, fig. 4 is a schematic flow chart of an embodiment of determining a second storage area in a reading method of air conditioner parameters provided in an embodiment of the present invention, where the method for determining the second storage area includes steps 401 to 403:
in step 401, in response to a data reading instruction, a first storage area is accessed to read partition parameters.
In some embodiments of the present invention, step 401 comprises: and responding to the data reading instruction, accessing the first storage area, inquiring whether the first storage area has the partition parameter, and reading the partition parameter if the first storage area has the partition parameter. Wherein the partition parameter may be a set of strings.
In some embodiments of the present invention, it may be determined whether the first storage area has a partition parameter by querying the return value, specifically: accessing the first storage area, and determining an inquiry return value by inquiring whether a target field consistent with a preset partition field exists in the first storage area; comparing the query return value with a preset value, and if the query return value is matched with the preset value, judging that the first storage area has partition parameters; and if the inquiry return value does not match the preset value, judging that the partition parameter does not exist in the first storage area. The query return value may be "0" and "1", and the preset value is "1". For example, when the query return value is "0", which indicates that no target field consistent with the preset partition field exists in the first storage area, it is determined that no partition parameter exists in the first storage area; and when the query return value is 1, indicating that the target field consistent with the preset partition field exists in the first storage area, judging that the partition parameter exists in the first storage area. In some embodiments of the invention, the partition field may be a set of strings.
In some embodiments of the present invention, when the partition parameter does not exist in the first storage area, the air conditioner is controlled to read the target parameter stored in the first storage area. Specifically, the method comprises the following steps: if the first storage area does not have partition parameters, acquiring a target data type corresponding to the data reading instruction; acquiring a target partition identifier corresponding to the target data type according to a preset mapping relation between the type and the partition identifier; and accessing the storage partition corresponding to the target partition identification in the first storage area, and reading the target parameters stored in the storage partition.
In some embodiments of the present invention, the starting address of the storage partition corresponding to the partition identifier may be obtained through the partition identifier, the starting region is accessed, and the target parameter stored in the storage partition corresponding to the starting region is read. For example, when the partition identifies the start address of the storage partition, the start area may be accessed, and the target parameter stored in the storage partition corresponding to the start area may be read. When the target partition identifier is a character string, a starting address corresponding to the target partition identifier may be obtained according to a mapping relationship between a preset partition identifier and an address, where the mapping relationship between the preset partition identifier and the address is used to indicate a corresponding relationship between the target partition identifier and the starting address of a corresponding storage partition, for example, as shown in table two, table two is an illustration of the mapping relationship between the preset partition identifier and the address provided in the embodiment of the present invention, and in the shown mapping relationship between the preset partition identifier and the address, when the target partition identifier is "qujian 2", the starting address of the corresponding storage partition is "0 x 020"; when the target partition identification is "qujian 3", the starting address of the corresponding storage partition is "0 x 100"; when the target partition identification is "qujian 4", the start address of the corresponding storage partition is "0 x 700".
Mapping relation between preset partition identification and address of table II
Partition identification Starting address
qujian1 0x000
qujian2 0x020
qujian3 0x100
qujian4 0x700
It should be noted that the mapping relationship between the preset partition identifier and the address shown in table two is only an exemplary illustration, and the embodiment of the present invention does not limit the partition identifier and the start address of the storage partition corresponding to the partition identifier, and the mapping relationship between the preset partition identifier and the address may be adjusted according to the start address and the storage space of the E-side storage area in the air conditioner and the byte space of each partition in the E-side storage area.
Step 402, matching the partition parameters with preset partition parameters.
In some embodiments of the present invention, in order to further improve the accuracy of reading the parameters of the air conditioner, after the partition parameters are read, the partition parameters are matched with the preset partition parameters, and whether the corresponding second storage area exists in the first storage area is determined according to the matching result. The matching of the partition parameters with the preset partition parameters may be: and comparing the partition parameters with preset partition parameters, if the partition parameters are the same as the preset partition parameters, judging that the partition parameters are matched with the preset partition parameters, and if the partition parameters are not the same as the preset partition parameters, judging that the partition parameters are not matched with the preset partition parameters.
In some embodiments of the present invention, the preset partition parameter may be a set of preset strings, for example, the preset partition parameter may be "FENQU". In some embodiments of the present invention, the comparing the partition parameter with the preset partition parameter may be calculating a difference between ASCII (American Standard Code for Information exchange) of the partition parameter and ASCII of the preset partition parameter, and if the difference is less than a difference threshold, determining that the partition parameter is identical to the preset partition parameter, and if the difference is less than or equal to the difference threshold, determining that the partition parameter is not identical to the preset partition parameter.
In step 403, if the partition parameter matches the preset partition parameter, a first check parameter in the first storage area and a second check parameter in the second storage area are obtained.
In some embodiments of the present invention, if the partition parameter does not match the preset partition parameter, which indicates that the first storage area does not have the corresponding second storage area, the target parameter in the first storage area is read according to the data reading instruction. The manner of reading the target parameter in the first storage area according to the data reading instruction is similar to the manner of controlling the air conditioner to read the target parameter stored in the first storage area when the first storage area does not have the partition parameter in step 401, and details are not repeated here.
According to the embodiment of the invention, whether the corresponding second storage area exists is determined through the partition parameters in the first storage area, and the target parameters in the first storage area are read directly according to the data reading instruction when the corresponding second storage area does not exist, so that the flexibility and the applicability of reading the parameters of the air conditioner are improved.
In some embodiments of the present invention, a target partition identifier may be obtained according to a data reading instruction, a first storage area and a second storage partition are accessed according to the target partition identifier, a first check parameter in the first storage area and a second check parameter in the second storage area are obtained, specifically, as shown in fig. 5, fig. 5 is a schematic flow diagram of an embodiment of obtaining a check parameter in a method for reading an air conditioner parameter provided in an embodiment of the present invention, where the method for obtaining a check parameter includes steps 501 to 503:
step 501, if the first storage area has a corresponding second storage area, acquiring a target partition identifier according to the data reading instruction.
In some embodiments of the present invention, a method for obtaining the target partition identifier according to the data reading instruction is similar to the method for obtaining the target partition identifier in step 401, and is not described herein again.
Step 502, according to the mapping relationship between the preset identifier and the address, a first target address range of a first storage area corresponding to the target partition identifier and a second target address range of a second storage area corresponding to the target partition identifier are obtained.
In some embodiments of the present invention, a target address range of a storage partition may be determined according to the target partition identifier, and a storage partition corresponding to the target address range may be accessed according to the address range. Specifically, the method comprises the following steps: according to the target partition identification, acquiring first target address ranges corresponding to the target partition identification in the first storage area and second target address ranges corresponding to the target partition identification in the second storage area through a preset mapping relation between the identification and the address; and accessing a first storage partition corresponding to each first target address range through each first target address range, and accessing a second storage partition corresponding to each second target address range through each second target address range.
In some embodiments of the present invention, the preset mapping relationship between the identifier and the address is used to indicate a mapping relationship between the identifier of the target partition and the address range of the corresponding storage partition, for example, as shown in table three, table three is an illustration of the preset mapping relationship between the identifier and the address provided in the embodiments of the present invention, and in the shown mapping relationship between the preset identifier and the address, when the identifier of the target partition is "qujian 1", the corresponding first target address range is "0 x000 to 0x 01F", and the corresponding second target address range is "0 x800 to 0x 81F"; when the target partition is marked as 'qujian 2', the first target address range is '0 x 020-0 x0 FF', and the corresponding second target address range is '0 x 820-0 x8 FF'; when the target partition is marked as 'qujian 3', the first target address range is '0 x 010-0 x6 FF', and the corresponding second target address range is '0 x 900-0 xEFF'; when the target partition is identified as "qujian 4", the first target address range is "0 x 700-0 x7 FF", and the corresponding second target address range is "0 xFFF-0 xFFF".
Mapping relation between identifier and address preset in table III
Partition identification First address range Second address range
qujian1 0x000~0x01F 0x800~0x81F
qujian2 0x020~0x0FF 0x820~0x8FF
qujian3 0x010~0x6FF 0x900~0xEFF
qujian4 0x700~0x7FF 0xEFF~0xFFF
It should be noted that the mapping relationship between the preset identifier and the address shown in table three is only an exemplary illustration, and the content of the target partition identifier and the corresponding address range are not limited in the embodiment of the present invention.
Step 503, accessing the first target address range to obtain the first verification parameter, and accessing the second target address range to obtain the second verification parameter.
In order to improve the reading efficiency of the verification parameters and further improve the reading efficiency of the air conditioner parameters, the verification parameters can be obtained by reading corresponding fields of preset storage bits in each storage partition, and the method specifically comprises the following steps: accessing a first target address range, reading a first field of a preset storage bit in the first target address range, taking the first field as a first check parameter, and associating each first check parameter with a corresponding target partition identifier; and accessing a second storage partition corresponding to each target partition identification in the second storage area, reading a second field in an address range corresponding to a preset storage bit in each second storage partition, using the second field as a second check parameter, and associating each second check parameter with the corresponding target partition identification. For example, taking reading the first parity parameter in the first target address range as an example, when the preset storage bits are the last two bytes, and each of the first target address ranges is "0 x 000-0 x 01F", "0 x 020-0 x0 FF", "0 x 100-0 x6 FF", and "0 x 700-0 x7 FF", reading the first field of the first target address range "0 x 000-0 x 01F" with the preset storage bits of "0 x 01E" and "0 x 01F" as the first parity parameter; reading a first field of preset storage bits of '0 x0 FE' and '0 x0 FF' in a first target address range '0 x 020-0 x0 FF' as a first check parameter; reading a first field with preset storage bits of '0 x6 EF' and '0 x6 FF' in a first target address range '0 x 100-0 x6 FF' as a first check parameter; reading first fields with preset storage positions of 0x7EF and 0x7FF in a first target address range of 0x 700-0 x7FF as first check parameters, and associating each first check parameter with a target partition identifier of a corresponding first storage partition. In some embodiments of the present invention, the step of reading the second check parameter in the second target address range is similar to the step of reading the first check parameter in the first target address range, and is not repeated here.
The embodiment of the invention determines the target partition identification through the data reading instruction, respectively acquires each target address range in the first storage area and the second storage area according to the target partition identification, obtains the verification parameters by reading the fields of the preset storage bits in each target address range, and reduces the complexity of acquiring the verification parameters; and determining each target address range according to the mapping relation between the preset identifier and the address, so that the efficiency of acquiring the target address range is improved, the complexity of acquiring the address is reduced, and the efficiency of acquiring the verification parameter is improved.
In some embodiments of the present invention, when a parameter update instruction is received, the corresponding address in the second storage area is written according to the parameter update instruction for updating, specifically as shown in fig. 6, fig. 6 is a schematic flow diagram of an embodiment of parameter update in the method for reading the air conditioner parameter provided in the embodiment of the present invention, where the method for updating the parameter includes steps 601 to 604:
step 601, acquiring a data updating instruction.
The data updating instruction comprises a parameter to be updated and a target data type of the updated parameter.
In some embodiments of the present invention, the data update obtaining instruction may be a data update instruction sent by an obtaining terminal, or may be a data update instruction sent by a obtaining background server. The terminal can be a mobile phone, a remote controller, a tablet computer and the like.
Step 602, obtaining a target partition identifier according to a preset mapping relationship between the category and the partition identifier.
Step 603, accessing the second storage area, and writing the parameter to be updated into the second target address range corresponding to the target partition identifier.
In some embodiments of the present invention, after the target partition identifier is obtained, a second target address range corresponding to the target partition identifier is obtained through a mapping relationship between a preset identifier and an address, the second target address range in the second storage area is accessed, the parameter to be updated is written into the second target address range corresponding to the target partition identifier, the parameter in the second target address range is covered, and the parameter update is implemented.
Step 604, obtaining a second parity check parameter of the second target address range, and modifying the second parity check parameter according to the parameter update instruction to obtain a new second parity check parameter.
In some embodiments of the present invention, a new second parity parameter may be randomly generated according to the fetch time of the parameter update instruction or the target partition identifier, and the new second parity parameter is written into the preset storage bit of the second target address range to update the second parity parameter.
In some embodiments of the present invention, the second check parameter may be further modified according to the number of times of receiving the parameter update instruction, for example, the second check parameter of the second target address range is obtained, the ASCII code of each character in the second check parameter is obtained, a new ASCII code is obtained by adding the number of times of receiving the parameter update instruction to each ASCII code, and a new second check parameter corresponding to the new ASCII code is obtained.
In the embodiment of the invention, when a data updating instruction is received, the target data type of the parameter to be updated is obtained, the target partition identification corresponding to the target data type is obtained through the mapping relation between the preset type and the partition identification, the second target address range is determined according to the target partition identification, the parameter to be updated is written into the second target address range, the parameter in the second target address range is covered, the parameter updating is realized, after the parameter writing is finished, the second check parameter in the second target address range is modified to obtain a new check parameter, the parameter is compared with the first check parameter in the first storage area through the second check parameter in the second storage area subsequently, whether the E-party parameter is updated or not is determined, and the reading efficiency of the air conditioner parameter is improved; and only the E-party parameters of the second storage area in the double E-party storage areas are updated, so that the data volume of parameter updating is reduced, and the efficiency of parameter updating is improved.
In some embodiments of the present invention, in order to reduce the time consumption for reading the E-party parameter by accessing the E-party storage area during the operation of the air conditioner, when the air conditioner is turned on, a parameter array is established in the data cache area of the air conditioner controller, and all the E-party parameters in the E-party storage area are written into the parameter array, so that the subsequent air conditioner can directly obtain the E-party parameter from the parameter array in the data cache area, specifically, as shown in fig. 7, fig. 7 is a flowchart illustrating an embodiment of reading the air conditioner parameter based on the parameter array according to the embodiment of the present invention, where the illustrated method for reading the air conditioner parameter based on the parameter array includes steps 701 to 704:
step 701, responding to a data reading instruction, and creating a parameter array.
The number of elements of the parameter array is greater than or equal to the number of data types in the first storage area.
In some embodiments of the present invention, the manner of responding to the parameter reading instruction is similar to the method of responding to the data reading instruction in step 101, and is not described herein again.
Step 702, reading the partition parameter in the first storage area, and determining whether the first storage area has a corresponding second storage area.
In step 703, if the first storage area has a corresponding second storage area, each target element to be assigned in the parameter array, the first check parameter in the first storage area, and the second check parameter in the second storage area are obtained.
Step 704, comparing the first check parameter with the second check parameter, and assigning values to each target element according to the comparison result.
In some embodiments of the present invention, the first check parameter and the second check parameter may be sequentially compared according to a reading order of the check parameters; if the first check parameter is consistent with the second check parameter, assigning a target parameter corresponding to the first check parameter in the first storage area to the target element, and associating the target element with a target partition identifier corresponding to the first check parameter; if the first check parameter is inconsistent with the second check parameter, assigning a target parameter corresponding to the second check parameter in the second storage area to the target element, and associating the target element with a target partition identifier corresponding to the second check parameter; and after assigning values to each target element, controlling the air conditioner to start, and controlling the air conditioner to operate according to a control instruction of a user.
In some embodiments of the present invention, when the E-party parameter needs to be read during the operation of the air conditioner, the parameter array is directly accessed, the target partition identifier is obtained according to the target data type of the parameter to be read, and the content of the target partition identifier element is read.
In order to better implement the method for reading parameters of an air conditioner provided in the embodiment of the present invention, based on the method for reading parameters of an air conditioner, a device for reading parameters of an air conditioner is provided, as shown in fig. 8, where fig. 8 is a schematic structural diagram of the device for reading parameters of an air conditioner provided in the embodiment of the present invention, and the device for reading parameters of an air conditioner includes:
an instruction module 801, configured to respond to a data reading instruction and access the first storage area;
a determining module 802, configured to obtain a first check parameter in the first storage area and a second check parameter in the second storage area if the first storage area has a corresponding second storage area;
the parameter module 803 is configured to read the target parameter according to a comparison result between the first check parameter and the second check parameter.
In some embodiments of the present invention, parameter module 803 comprises:
a comparison unit for comparing the first check parameter with the second check parameter;
the first parameter unit is used for reading a target parameter corresponding to the first check parameter in the first storage area if the first check parameter is the same as the second check parameter;
and the second parameter unit is used for reading the target parameter corresponding to the second check parameter in the second storage area if the first check parameter is different from the first check parameter.
In some embodiments of the invention, the comparison unit is further configured to: acquiring a target data type corresponding to the data reading instruction; and acquiring a first check parameter corresponding to the target data type and a second check parameter corresponding to the target data type.
In some embodiments of the invention, instruction module 801 includes:
the instruction response unit is used for responding to the data reading instruction and accessing the first storage area to read the partition parameter;
the matching unit is used for matching the partition parameters with preset partition parameters;
and the instruction execution unit is used for acquiring a first check parameter in the first storage area and a second check parameter in the second storage area if the partition parameter is matched with the preset partition parameter.
In some embodiments of the present invention, the determining module 802 comprises:
the judging unit is used for acquiring a target partition identifier according to the data reading instruction if the first storage area has a corresponding second storage area;
the address unit is used for acquiring a first target address range of a first storage area corresponding to the target partition identifier and a second target address range of a second storage area corresponding to the target partition identifier according to the mapping relation between the preset identifier and the address;
and the check parameter acquisition unit is used for accessing the first target address range to acquire the first check parameter and accessing the second target address range to acquire the second check parameter.
In some embodiments of the present invention, the reading apparatus of the air conditioner parameter further comprises:
the updating module 804 is configured to obtain a data updating instruction, where the data updating instruction includes a parameter to be updated and a target data category of the parameter to be updated; acquiring a target partition identifier according to a preset mapping relation between the category and the partition identifier; accessing a second storage area, and writing the parameter to be updated into a second target address range corresponding to the target partition identification; and acquiring a second check parameter of the second target address range, and modifying the second check parameter according to the parameter updating instruction to obtain a new second check parameter.
In some embodiments of the invention, the instruction module 801 is further configured to: responding to a data reading instruction, and creating a parameter array, wherein the number of elements of the parameter array is greater than or equal to the number of data types in the first storage area; accessing the first storage area, reading partition parameters in the first storage area, and judging whether the first storage area has a corresponding second storage area; if the first storage area has a corresponding second storage area, acquiring each target element to be assigned in the parameter array, a first check parameter in the first storage area and a second check parameter in the second storage area; and comparing the first check parameter with the second check parameter, and assigning values to each target element according to the comparison result.
According to the embodiment of the invention, when the corresponding second storage area exists in the first storage area, the parameters in the second storage area are selectively read according to the comparison result of the first check parameter in the first storage area and the second check parameter in the second storage area, so that the parameters are not read inefficiently, the parameter reading time is saved, the energy consumption is reduced, and the starting speed is accelerated.
An embodiment of the present invention further provides an air conditioner, as shown in fig. 9, which shows a schematic structural diagram of the air conditioner according to the embodiment of the present invention, specifically:
the air conditioner may include components such as a processor 901 of one or more processing cores, memory 902 of one or more computer-readable storage media, a power supply 903, and an input unit 904. Those skilled in the art will appreciate that the air conditioner configuration shown in fig. 9 is not intended to be limiting and may include more or fewer components than shown, or some components in combination, or a different arrangement of components. Wherein:
the processor 901 is a control center of the air conditioner, connects various parts of the whole air conditioner by using various interfaces and lines, and performs various functions of the air conditioner and processes data by running or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory 902, thereby performing overall monitoring of the air conditioner. Optionally, processor 901 may include one or more processing cores; preferably, the processor 901 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 901.
The memory 902 may be used to store software programs and modules, and the processor 901 executes various functional applications and data processing by operating the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the air conditioner, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 902 may also include a memory controller to provide the processor 901 access to the memory 902.
The air conditioner further comprises a power supply 903 for supplying power to each component, and preferably, the power supply 903 can be logically connected with the processor 901 through a power management system, so that functions of charging, discharging, power consumption management and the like can be managed through the power management system. The power supply 903 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The air conditioner may further include an input unit 904, and the input unit 904 may be used to receive input numeric or character information and generate a keyboard, mouse, joystick, optical or trackball signal input related to user setting and function control.
Although not shown, the air conditioner may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 901 in the air conditioner loads the executable file corresponding to the process of one or more application programs into the memory 902 according to the following instructions, and the processor 901 runs the application programs stored in the memory 902, so as to implement various functions as follows:
accessing the first memory area in response to a data read instruction;
if the first storage area has a corresponding second storage area, acquiring a first check parameter in the first storage area and a second check parameter in the second storage area;
and reading the target parameter according to the comparison result of the first check parameter and the second check parameter.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the methods for reading the air conditioner parameter provided by the embodiment of the present invention. For example, the instructions may perform the steps of:
accessing the first memory area in response to a data read instruction;
if the first storage area has a corresponding second storage area, acquiring a first check parameter in the first storage area and a second check parameter in the second storage area;
and reading the target parameter according to the comparison result of the first check parameter and the second check parameter.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any method for reading parameters of an air conditioner provided in the embodiment of the present invention, the beneficial effects that can be achieved by any method for reading parameters of an air conditioner provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The method, the device, the air conditioner and the storage medium for reading the air conditioner parameters provided by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for reading parameters of an air conditioner is characterized by comprising the following steps:
accessing the first memory area in response to a data read instruction;
if the first storage area has a corresponding second storage area, acquiring a first check parameter in the first storage area and a second check parameter in the second storage area;
and reading the target parameter according to the comparison result of the first check parameter and the second check parameter.
2. The method as claimed in claim 1, wherein the reading the target parameter according to the comparison result of the first and second verification parameters comprises:
comparing the first verification parameter to the second verification parameter;
if the first check parameter is the same as the second check parameter, reading a target parameter corresponding to the first check parameter in the first storage area;
and if the first check parameter is different from the first check parameter, reading a target parameter corresponding to the second check parameter in the second storage area.
3. The method for reading parameters of an air conditioner according to claim 2, wherein before the step of comparing the first verification parameter with the second verification parameter, the method comprises:
acquiring a target data type corresponding to the data reading instruction;
acquiring a first check parameter corresponding to the target data type and a second check parameter corresponding to the target data type;
comparing the first verification parameter with the second verification parameter.
Acquiring a target data type corresponding to the data reading instruction;
and acquiring a first check parameter corresponding to the target data type and a second check parameter corresponding to the target data type.
4. The method for reading parameters of an air conditioner according to claim 1, wherein after accessing the first storage area in response to the data reading instruction, the method comprises:
responding to a data reading instruction, accessing a first storage area to read partition parameters;
matching the partition parameters with preset partition parameters;
and if the partition parameters are matched with the preset partition parameters, acquiring first check parameters in the first storage area and second check parameters in the second storage area.
5. The method as claimed in claim 1, wherein the obtaining the first check parameter in the first storage area if the first storage area has a corresponding second storage area, and the obtaining the second check parameter in the second storage area comprises:
if the first storage area has a corresponding second storage area, acquiring a target partition identifier according to the data reading instruction;
acquiring a first target address range of the first storage area corresponding to the target partition identifier and a second target address range of the second storage area corresponding to the target partition identifier according to a mapping relation between a preset identifier and an address;
and accessing the first target address range to obtain a first check parameter, and accessing the second target address range to obtain a second check parameter.
6. The method as claimed in claim 1, wherein after acquiring the first check parameter in the first storage area and the second check parameter in the second storage area if the corresponding second storage area exists in the first storage area, the method comprises:
acquiring a data updating instruction, wherein the data updating instruction comprises a parameter to be updated and a target data category of the parameter to be updated;
acquiring a target partition identifier according to a preset mapping relation between the category and the partition identifier;
accessing a second storage area, and writing the parameter to be updated into a second target address range corresponding to the target partition identifier;
and acquiring a second check parameter of the second target address range, and modifying the second check parameter according to the parameter updating instruction to obtain a new second check parameter.
7. The method for reading parameters of an air conditioner according to any one of claims 1 to 6, wherein the first storage area is accessed in response to a data reading instruction, the method comprising:
responding to a data reading instruction, and creating a parameter array, wherein the number of elements of the parameter array is greater than or equal to the number of data types in a first storage area;
accessing the first storage area, reading partition parameters in the first storage area, and judging whether the first storage area has a corresponding second storage area;
if the first storage area has a corresponding second storage area, acquiring each target element to be assigned in the parameter array, a first check parameter in the first storage area and a second check parameter in the second storage area;
and comparing the first check parameter with the second check parameter, and assigning values to the target elements according to the comparison result.
8. An apparatus for reading parameters of an air conditioner, the apparatus comprising:
the instruction module is used for responding to the data reading instruction and accessing the first storage area;
the judging module is used for acquiring a first check parameter in the first storage area and a second check parameter in the second storage area if the first storage area has a corresponding second storage area;
and the parameter module is used for reading the target parameter according to the comparison result of the first check parameter and the second check parameter.
9. An air conditioner is characterized by comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the operation of the method for reading the air conditioner parameter according to any one of claims 1 to 7.
10. A storage medium, characterized in that it stores a plurality of instructions suitable for being loaded by a processor to execute the steps of the reading method of air conditioner parameters according to any one of claims 1 to 7.
CN202111250268.7A 2021-10-26 2021-10-26 Air conditioner parameter reading method and device, air conditioner and storage medium Active CN113883691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111250268.7A CN113883691B (en) 2021-10-26 2021-10-26 Air conditioner parameter reading method and device, air conditioner and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111250268.7A CN113883691B (en) 2021-10-26 2021-10-26 Air conditioner parameter reading method and device, air conditioner and storage medium

Publications (2)

Publication Number Publication Date
CN113883691A true CN113883691A (en) 2022-01-04
CN113883691B CN113883691B (en) 2023-02-17

Family

ID=79014611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111250268.7A Active CN113883691B (en) 2021-10-26 2021-10-26 Air conditioner parameter reading method and device, air conditioner and storage medium

Country Status (1)

Country Link
CN (1) CN113883691B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301303A (en) * 2008-06-13 2009-12-24 Fujitsu Ltd Control method and disk array device
CN105930409A (en) * 2016-04-18 2016-09-07 深圳市永兴元科技有限公司 Data verification method and device based on dynamic generation rule
CN105975240A (en) * 2016-07-01 2016-09-28 深圳市华星光电技术有限公司 Data storage device, method for preventing data failure thereof and time schedule controller
CN106776122A (en) * 2016-11-23 2017-05-31 武汉光迅科技股份有限公司 A kind of method of main-apparatus protection in start-up course based on Flash
CN108664358A (en) * 2018-05-18 2018-10-16 广州视源电子科技股份有限公司 Microcontroller parameter processing method, system, readable storage medium storing program for executing and terminal device
CN112612425A (en) * 2020-12-30 2021-04-06 北京北方华创微电子装备有限公司 Data read-write method and control device of semiconductor processing equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301303A (en) * 2008-06-13 2009-12-24 Fujitsu Ltd Control method and disk array device
CN105930409A (en) * 2016-04-18 2016-09-07 深圳市永兴元科技有限公司 Data verification method and device based on dynamic generation rule
CN105975240A (en) * 2016-07-01 2016-09-28 深圳市华星光电技术有限公司 Data storage device, method for preventing data failure thereof and time schedule controller
CN106776122A (en) * 2016-11-23 2017-05-31 武汉光迅科技股份有限公司 A kind of method of main-apparatus protection in start-up course based on Flash
CN108664358A (en) * 2018-05-18 2018-10-16 广州视源电子科技股份有限公司 Microcontroller parameter processing method, system, readable storage medium storing program for executing and terminal device
CN112612425A (en) * 2020-12-30 2021-04-06 北京北方华创微电子装备有限公司 Data read-write method and control device of semiconductor processing equipment

Also Published As

Publication number Publication date
CN113883691B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
US7685322B2 (en) Port number emulation for wireless USB connections
US7584347B2 (en) System and method for identifying bootable device by generating a signature for each bootable device where the signature is independent of a location of the bootable device
CN112445729B (en) Operation address determination method, PCIe system, electronic device and storage medium
CN103593281A (en) Test system and test method
CN114296768A (en) Air conditioner parameter updating method and device, air conditioner and storage medium
CN113010190A (en) MAC address burning method, device, equipment and storage medium
CN110647564B (en) Hive table building method, electronic device and computer readable storage medium
CN113883691B (en) Air conditioner parameter reading method and device, air conditioner and storage medium
CN113849510A (en) Data storage method, device and equipment of air conditioner and storage medium
US6629240B1 (en) Method for monitoring system boot by searching a temporary buffer for BIOS message
WO2019047142A1 (en) Method for program patching, device, micro control unit, and terminal device
CN113434179B (en) Online upgrade method, device and equipment of programmable power supply and storage medium
CN115695073A (en) Communication method, device, equipment and storage medium
CN115273944A (en) EEPROM data storage circuit, writing method and air conditioner
US6493822B1 (en) Foreign drive determination and drive letter conflict resolution
CN112346377B (en) Chip, intelligent terminal control method, intelligent terminal and storage medium
CN115842875B (en) Method, device, computer equipment and medium for determining similar data frames
CN113835762B (en) Method and system for updating default configuration of hard disk backboard
US20180232331A1 (en) Server system, fabric card and method for allocating ip address
CN109683960B (en) Register configuration method of electric port module and electric port module thereof
CN116860340B (en) Method for determining starting time of server based on identification of baseboard management controller
CN113757935A (en) Data updating method and device, air conditioner and computer readable storage medium
CN112230583B (en) Master control board installation method based on Scratch program
CN117667388A (en) Resource allocation method, device, equipment and readable storage medium
CN107656584B (en) Cabinet device

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