Air conditioner test data storage method and device, electronic equipment and storage medium

By acquiring the target instructions of the air conditioner and verifying the chip type, the user control instructions are automatically written into the air conditioner chip, solving the problem of high storage cost and low efficiency caused by different chip types, and achieving efficient test data storage and improved air conditioner stability.

CN114691536BActive Publication Date: 2026-04-14TCL AIR CONDITIONER ZHONGSHAN CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TCL AIR CONDITIONER ZHONGSHAN CO LTD
Filing Date
2022-03-02
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

Existing technologies suffer from high costs and low efficiency when storing test data in air conditioners because different types of chips require different writing methods and manual sorting.

Method used

By acquiring the target instruction from the air conditioner, verifying the target chip type, and writing the new user control instruction to the target chip according to the chip type, including writing and reading for each preset chip address, determining the matching target chip address, and dividing the storage pages and storage segments in the analog chip for writing.

Benefits of technology

It enables automatic identification of chip types in air conditioners with different chip types, reducing the need for manual classification, saving manpower costs for back-end testing, and improving the utilization of storage space and the stability of air conditioners.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691536B_ABST
    Figure CN114691536B_ABST
Patent Text Reader

Abstract

The application provides an air conditioner test data storage method and device, electronic equipment and a computer readable storage medium, comprising: obtaining a target instruction of an air conditioner; verifying a target chip in the air conditioner according to the target instruction, determining a target chip type of the target chip; and writing a new user control instruction into the target chip according to the target chip type. It can be seen that the air conditioner test data storage method provided by the application is suitable for various air conditioners with different chip types, the target chip type can be identified through the target instruction, and then the new user control instruction for testing is written into the target chip according to the target chip type. When testing the air conditioner, the staff does not need to manually classify the air conditioner according to the chip type, and then write the test data into the target chip through different writing methods respectively, so that the labor cost of the background test can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of air conditioning technology, specifically to an air conditioner test data storage method, device, electronic device, and computer-readable storage medium. Background Technology

[0002] To prevent the loss of user-set operating states after a power outage and the need for resetting upon power restoration, air conditioners typically memorize user commands issued before the power failure. If a power outage occurs, the system can automatically resume operation according to the memorized settings upon power restoration. Therefore, the power-off memory function of an air conditioner plays a crucial role in user comfort. Operators need to store test data and conduct tests to ensure the functionality of this function.

[0003] However, when storing test data into air conditioners, due to the different types of air conditioner chips and different writing methods, staff need to manually classify the air conditioners in order to effectively write the test data into them. Therefore, this method of storing test data requires high manpower costs and is inefficient. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, and computer-readable storage medium for storing test data of an air conditioner, aiming to solve the problems of high cost and low efficiency in storing test data when performing power-off memory tests on air conditioners.

[0005] In a first aspect, this application provides a method for storing test data of an air conditioner, the method comprising:

[0006] Obtain the target instruction for the air conditioner;

[0007] The target chip in the air conditioner is verified according to the target instruction to determine the target chip type;

[0008] Based on the target chip type, new user control instructions are written into the target chip.

[0009] In one possible implementation of this application, the step of verifying the target chip in the air conditioner according to the target instruction and determining the target chip type of the target chip includes:

[0010] For each preset chip address, the target instruction is written and read sequentially to obtain the read result corresponding to each preset chip address, wherein each preset chip address corresponds to a different chip type;

[0011] Determine the target chip address that matches the corresponding read result with the target instruction;

[0012] Set the chip type corresponding to the target chip address to the target chip type of the target chip in the air conditioner.

[0013] In one possible implementation of this application, obtaining the target instruction for the air conditioner includes:

[0014] After the air conditioner is powered on, obtain the initial instructions from the air conditioner;

[0015] If the target byte in the initial instruction is the same as the preset byte, then the initial instruction is determined to be the first user control instruction after the air conditioner is turned on, and the initial instruction is set as the target instruction.

[0016] In one possible implementation of this application, writing new user control instructions to the target chip according to the target chip type includes:

[0017] If the target chip type is an analog chip, when a new user control instruction is received, an unfilled target memory page is obtained from multiple pre-divided memory pages;

[0018] Among the multiple pre-partitioned storage segments of the target storage page, a free target storage segment is determined;

[0019] The new user control instructions are written to the target storage segment.

[0020] In one possible implementation of this application, before obtaining the target instruction of the air conditioner, the method further includes:

[0021] Find the target area where the air conditioner is located;

[0022] Based on a preset time range and the current time, query the historical number of power outages in the target area;

[0023] If the number of historical power outages is greater than or equal to a preset threshold, then the step of obtaining the target instruction for the air conditioner is executed.

[0024] In one possible implementation of this application, obtaining the target instruction for the air conditioner includes:

[0025] After the air conditioner is powered on, it responds to the command input operation and obtains the first and second commands input sequentially.

[0026] If the input time interval between the first instruction and the second instruction is less than a preset interval threshold, and the instruction types of the first instruction and the second instruction are different, then the second instruction is set as the target instruction.

[0027] In one possible implementation of this application, before obtaining the target instruction of the air conditioner, the method further includes:

[0028] Receive the air conditioner model reading command and read the target model of the air conditioner;

[0029] If the target model cannot be read, then the step of obtaining the target instruction for the air conditioner is executed.

[0030] Secondly, this application provides an air conditioner test data storage device, the air conditioner test data storage device comprising:

[0031] The acquisition unit is used to acquire the target instructions of the air conditioner;

[0032] The determining unit is used to verify the target chip in the air conditioner according to the target instruction and determine the target chip type of the target chip;

[0033] The writing unit is used to write new user control instructions into the target chip according to the target chip type.

[0034] In one possible implementation of this application, the determining unit is further configured to:

[0035] For each preset chip address, the target instruction is written and read sequentially to obtain the read result corresponding to each preset chip address, wherein each preset chip address corresponds to a different chip type;

[0036] Determine the target chip address that matches the corresponding read result with the target instruction;

[0037] Set the chip type corresponding to the target chip address to the target chip type of the target chip in the air conditioner.

[0038] In one possible implementation of this application, the acquiring unit is further configured to:

[0039] After the air conditioner is powered on, obtain the initial instructions from the air conditioner;

[0040] If the target byte in the initial instruction is the same as the preset byte, then the initial instruction is determined to be the first user control instruction after the air conditioner is turned on, and the initial instruction is set as the target instruction.

[0041] In one possible implementation of this application, the writing unit is further used for:

[0042] If the target chip type is an analog chip, when a new user control instruction is received, an unfilled target memory page is obtained from multiple pre-divided memory pages;

[0043] Among the multiple pre-partitioned storage segments of the target storage page, a free target storage segment is determined;

[0044] The new user control instructions are written to the target storage segment.

[0045] In one possible implementation of this application, the acquiring unit is further configured to:

[0046] Find the target area where the air conditioner is located;

[0047] Based on a preset time range and the current time, query the historical number of power outages in the target area;

[0048] If the number of historical power outages is greater than or equal to a preset threshold, then the step of obtaining the target instruction for the air conditioner is executed.

[0049] In one possible implementation of this application, the acquiring unit is further configured to:

[0050] After the air conditioner is powered on, it responds to the command input operation and obtains the first and second commands input sequentially.

[0051] If the input time interval between the first instruction and the second instruction is less than a preset interval threshold, and the instruction types of the first instruction and the second instruction are different, then the second instruction is set as the target instruction.

[0052] In one possible implementation of this application, the air conditioner test data storage device further includes a model reading unit, which is used for:

[0053] Receive the air conditioner model reading command and read the target model of the air conditioner;

[0054] If the target model cannot be read, then the step of obtaining the target instruction for the air conditioner is executed.

[0055] Thirdly, this application also provides an electronic device, which includes a processor and a memory, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, it executes the steps in any of the air conditioner test data storage methods provided in this application.

[0056] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to execute the steps in the air conditioner test data storage method.

[0057] In summary, the air conditioner test data storage method provided in this application includes: acquiring the target instruction of the air conditioner; verifying the target chip in the air conditioner according to the target instruction to determine the target chip type; and writing new user control instructions into the target chip according to the target chip type. It is evident that the air conditioner test data storage method provided in this application is applicable to various air conditioners with different chip types. It can identify the target chip type through the target instruction and then write new user control instructions for testing into the target chip according to the target chip type. When testing air conditioners, staff do not need to manually classify the air conditioners according to chip type and then write the test data into the target chip using different writing methods, thus saving manpower costs in the background testing. Attached Figure Description

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

[0059] Figure 1 This is a schematic diagram illustrating an application scenario of the air conditioner test data storage method provided in this application embodiment;

[0060] Figure 2 This is a schematic flowchart of an air conditioner test data storage method provided in an embodiment of this application;

[0061] Figure 3 This is a schematic diagram of a process for writing new user control instructions into the target memory segment when the target chip type is an analog chip, provided in an embodiment of this application.

[0062] Figure 4 This is another flowchart illustrating a method for storing test data of an air conditioner when the frequency of power outages in the target area is high and the air conditioner is likely to lose power.

[0063] Figure 5 This is a schematic diagram of a process for avoiding jitter based on a preset interval threshold provided in an embodiment of this application;

[0064] Figure 6 This is a schematic flowchart of another method for storing test data of an air conditioner when the target model of the air conditioner cannot be read, provided in the embodiments of this application.

[0065] Figure 7 This is a schematic diagram of an embodiment of the air conditioner test data storage device provided in this application.

[0066] Figure 8 This is a schematic diagram of an embodiment of the electronic device provided in this application. Detailed Implementation

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

[0068] In the description of the embodiments of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0069] To enable any person skilled in the art to implement and use this application, the following description is provided. In this description, details are set forth for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be implemented without using these specific details. In other instances, well-known processes will not be described in detail to avoid obscuring the description of the embodiments of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in the embodiments of this application.

[0070] This application provides a method, apparatus, electronic device, and computer-readable storage medium for storing test data of an air conditioner. The air conditioner test data storage apparatus can be integrated into an electronic device, which can be a server or a terminal, etc.

[0071] The execution subject of the air conditioner test data storage method in this application embodiment can be the air conditioner test data storage device provided in this application embodiment, or different types of electronic devices such as server equipment, physical host, or user equipment (UE) that integrate the air conditioner test data storage device. The air conditioner test data storage device can be implemented in hardware or software. The UE can be a terminal device such as a smartphone, tablet computer, laptop computer, handheld computer, desktop computer, or personal digital assistant (PDA).

[0072] The electronic device can operate independently or in a cluster.

[0073] See Figure 1 , Figure 1 This is a schematic diagram of a scenario for an air conditioner test data storage system provided in an embodiment of this application. The air conditioner test data storage system may include an electronic device 100, which integrates an air conditioner test data storage device. Additionally, as... Figure 1 As shown, the air conditioner test data storage system may also include a memory 200 for target instructions, such as storing image data and video data.

[0074] It should be noted that, Figure 1 The schematic diagram of the air conditioner test data storage system shown is merely an example. The air conditioner test data storage system and scenario described in this application are for the purpose of more clearly illustrating the technical solutions of this application, and do not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of air conditioner test data storage systems and the emergence of new business scenarios, the technical solutions provided in this invention are also applicable to similar technical problems.

[0075] The following describes the air conditioner test data storage method provided in this application embodiment. In this application embodiment, an electronic device is used as the execution subject; for simplicity and ease of description, this execution subject will be omitted in subsequent method embodiments. The air conditioner test data storage method provided in this application embodiment includes: obtaining a target instruction from the air conditioner; verifying a target chip in the air conditioner according to the target instruction to determine the target chip type; and writing a new user control instruction into the target chip according to the target chip type.

[0076] Reference Figure 2 , Figure 2 This is a flowchart illustrating a method for storing test data of an air conditioner according to an embodiment of this application. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here. The method for storing test data of an air conditioner includes steps 201-203, wherein:

[0077] 201. Obtain the target instruction for the air conditioner.

[0078] The target command can refer to the first user control command issued by the user after the air conditioner is turned on. Users can issue these commands via remote control, control platform, or control software app, using wireless or wired signals. For example, when testing air conditioners before or after they leave the factory, staff can use a unified testing control platform to issue user control commands via Wi-Fi, Bluetooth, or other media.

[0079] In this context, user control commands refer to data commands issued by the user to control the air conditioner. For example, user control commands could be commands to adjust the temperature, adjust the operating mode, etc., and this application embodiment does not impose such limitations. In this application embodiment, user control commands refer to test commands issued by staff during testing.

[0080] The format of the target instruction is determined by the storage format within the air conditioner. For example, the number of bytes in the target instruction can be determined based on the number of bits in the air conditioner's storage format. Assuming the air conditioner has 4 bits of storage, i.e., the storage format is 0xabcd, then the target instruction format is also 0xabcd. a, b, c, and d can be used to represent an operating parameter or an identifier of the air conditioner, respectively. For example, 'a' can be used to indicate the current fan speed, 'b' can be used to indicate the cooling / heating mode, 'c' can be used to indicate whether the instruction is the first instruction after power-on, and 'd' can be used to indicate the set temperature.

[0081] In some embodiments, the electronic device can determine whether a user control command is the first user control command issued by the user after the air conditioner is turned on by detecting specific bytes in the command. In this case, the step "obtain the target command of the air conditioner" can be performed in the following manner:

[0082] (1) After the air conditioner is powered on, obtain the initial command of the air conditioner.

[0083] The initial command can refer to the user control command currently received by the air conditioner. For example, an electronic device can monitor the air conditioner in real time and, after the air conditioner is powered on, acquire the user control commands received by the air conditioner to obtain the air conditioner's initial command. It is understood that the initial command may or may not be the first user control command issued by the user after the air conditioner is turned on.

[0084] (2) If the target byte in the initial instruction is the same as the preset byte, then the initial instruction is determined to be the first user control instruction after the air conditioner is turned on, and the initial instruction is set as the target instruction.

[0085] The target byte refers to the byte in a user control instruction that indicates whether the corresponding instruction is the first user control instruction after the air conditioner is turned on. If an instruction is the first user control instruction after the air conditioner is turned on, the target byte in that instruction will be the same as the pre-set preset byte. For example, it can be preset that the nth byte is 1 for the first user control instruction after the air conditioner is turned on, and 0 for instructions that are not the first user control instruction after the air conditioner is turned on. Then, when the electronic device monitors the air conditioner in real time and receives the initial instruction, it can check whether the nth byte in the initial instruction is 1. If the nth byte in the initial instruction is 1, it means that the initial instruction is the first user control instruction after the air conditioner is turned on, and this initial instruction is set as the target instruction.

[0086] It should be noted that steps (1) to (2) above can be performed only within a preset time range after the air conditioner is turned on. This reduces the amount of data generated by a single air conditioner during testing while achieving the target instruction selection. Consequently, even if multiple air conditioners are tested simultaneously by the electronic device, it will not put excessive data processing pressure on the electronic device. For example, a 20-minute time range can be preset, within which the electronic device performs steps (1) to (2) above. That is, within 20 minutes after the air conditioner is turned on, the electronic device performs steps (1) to (2) above to obtain the target instruction.

[0087] 202. Verify the target chip in the air conditioner according to the target instruction to determine the target chip type.

[0088] The target chip type can refer to one of several preset chip types, which refers to the possible types of air conditioner chips.

[0089] For air conditioner chips, possible types can include:

[0090] An independent EEPROM (Electrically Erasable Programmable Read-Only Memory, hereinafter referred to as EE) chip can directly access and modify the stored instructions byte by byte if new instructions need to be written, without the need to erase the entire page.

[0091] The Microcontroller Unit (MCU) has a built-in EEE chip: if a new instruction needs to be written and the MCU is already full, the existing instructions must be erased before the new instruction can be written. Erasing can only be done page by page, and erasing the entire page does not affect the operation of the MCU.

[0092] Flash memory emulated EE chip: Similar to the built-in EE chip in MCU, if a new instruction needs to be written and the chip is already full, the existing instructions need to be erased before the new instruction can be written. However, when erasing the entire page of the flash memory emulated EE chip, the chip stops reading the stored instructions, which can cause the air conditioner to stop running, or the operating program in the air conditioner to be interrupted and suspended.

[0093] Therefore, the multiple preset chip types can include: standalone EE chip, MCU built-in EE chip, and flash memory analog EE chip, that is, the target chip type is one of standalone EE chip, MCU built-in EE chip, and flash memory analog EE chip.

[0094] In some embodiments, target instructions can be written to and read from chip addresses corresponding to different preset chip types, and the chip type that is successfully written to can be determined and used as the target chip type. In this case, the step "verify the target chip in the air conditioner according to the target instructions and determine the target chip type of the target chip" can be performed in the following manner:

[0095] (i) For each preset chip address, the target instruction is written and read sequentially to obtain the read result corresponding to each preset chip address, wherein each preset chip address corresponds to a different chip type.

[0096] (ii) Determine the target chip address that matches the corresponding read result with the target instruction.

[0097] (iii) Set the chip type corresponding to the target chip address to the target chip type of the target chip in the air conditioner.

[0098] The read result for each preset chip address includes the result when the target instruction is successfully written or the result when the target instruction fails to be written. Understandably, if the target instruction is successfully written, the corresponding read result should be data matching the target instruction; if the target instruction fails to be written, the corresponding read result should be data that does not match the target instruction, such as the string "none" or an empty string.

[0099] If the read result corresponding to a preset chip address is the result of a successful write of the target instruction, meaning the read result matches the target instruction, then the target chip address of the target chip is the same as the preset chip address. Therefore, the preset chip address can be determined as the target chip address, and the chip type corresponding to the target chip address can be set as the target chip type of the target chip. The following example illustrates this: For instance, preset chip types include: independent EE chip, MCU-built-in EE chip, and flash memory analog EE chip. The target chip type is one of these three, and the target instruction is the string "0x123456". If the electronic device writes and reads the target instruction sequentially for each preset chip address in the order of independent EE chip, MCU-built-in EE chip, and flash memory analog EE chip, and the read results are 0x123456, none, and none respectively, then the target chip address is the preset chip address corresponding to the independent EE chip. Therefore, the target chip type of the target chip in the air conditioner is: independent EE chip. For example, if the read results are none, none, and 0x123456, and the verification order and target instruction remain unchanged, the target chip address is the preset chip address corresponding to the flash memory emulation EE chip. Therefore, the target chip type of the target chip in the air conditioner is: flash memory emulation EE chip.

[0100] It should be noted that, in the embodiments of this application, the order of writing and reading the preset chip addresses is not restricted during verification. For example, the preset chip types include: independent EE chip, MCU built-in EE chip, and flash memory analog EE chip. That is, when the target chip type is one of independent EE chip, MCU built-in EE chip, and flash memory analog EE chip, the verification can be performed in the order of independent EE chip, MCU built-in EE chip, and flash memory analog EE chip, or in a different order such as MCU built-in EE chip, flash memory analog EE chip, and independent EE chip.

[0101] 203. Based on the target chip type, write the new user control instructions into the target chip.

[0102] In this embodiment of the application, the purpose of obtaining the target chip type is to determine the subsequent method for writing user control instructions. The differences in writing different types of air conditioner chips have been explained above and will not be repeated here.

[0103] In summary, the air conditioner test data storage method provided in this application includes: acquiring the target instruction of the air conditioner; verifying the target chip in the air conditioner according to the target instruction to determine the target chip type; and writing new user control instructions into the target chip according to the target chip type. It is evident that the air conditioner test data storage method provided in this application is applicable to various air conditioners with different chip types. It can identify the target chip type through the target instruction and then write new user control instructions for testing into the target chip according to the target chip type. When testing the air conditioner, staff do not need to manually classify the air conditioner according to chip type and then write the test data into the target chip using different writing methods, thus saving manpower costs in the background testing.

[0104] In some embodiments, if the target chip in the air conditioner is a flash memory analog EE chip, the storage space in the air conditioner can be divided into multiple storage pages, and each storage page can be divided into multiple pre-divided storage segments. This increases the maximum number of write operations to the storage space, allowing more data to be stored and reducing the frequency of erasing the storage space in the air conditioner. On the one hand, this reduces the frequency of CPU shutdown, avoiding a series of problems such as display flickering, unstable fan speed, and communication packet loss. On the other hand, it reduces the number of times the storage space in the air conditioner is erased, thus extending the lifespan of the storage hardware in the air conditioner.

[0105] refer to Figure 3 At this point, the step "Write the new user control instructions to the target chip according to the target chip type" includes:

[0106] 301. If the target chip type is an analog chip, when a new user control instruction is received, an unfilled target memory page is obtained from multiple pre-divided memory pages.

[0107] In this embodiment of the application, the analog chip refers to a flash memory analog EE chip.

[0108] In this embodiment, the storage space in the air conditioner is pre-divided into multiple storage pages to increase the amount of data that can be stored simultaneously. The number of pre-divided storage pages can be determined based on the size of the air conditioner's storage space and the preset storage capacity of each storage page. Assuming that the storage capacity of each storage page is the same in air conditioner A and air conditioner B, if the storage space of air conditioner A is larger than that of air conditioner B, then the number of pre-divided storage pages for air conditioner A can be greater than the number of pre-divided storage pages for air conditioner B.

[0109] A target storage page refers to a storage page within a pre-allocated set of storage pages that still has the capacity to be written to. Each storage page has a maximum storage capacity. If a storage page has reached its maximum capacity, further data writing to that page is impossible; in this case, the storage page is considered full. The unfilled storage pages within the pre-allocated storage pages are the target storage pages. There can be multiple target storage pages or only one. If a new user control instruction contains multiple data entries, there can be multiple target storage pages; if the new user control instruction contains only one data entry, there is only one target storage page. For ease of understanding, the following description assumes that the new user control instruction contains only one data entry and there is only one target storage page; however, this should not be construed as a limitation on the embodiments of this application.

[0110] If a new user control command is received and the pre-allocated storage pages contain multiple incomplete pages, the target storage page can be determined based on the page numbers of these incomplete pages. For example, the incomplete page with the smallest page number can be used as the target storage page. This allows for sequential writing of new user control commands without disrupting the storage order in the storage space.

[0111] 302. Among the multiple pre-partitioned storage segments of the target storage page, determine the free target storage segment.

[0112] In this embodiment, to further increase the amount of data that can be stored simultaneously in the storage space, after pre-dividing the storage space into multiple storage pages, each storage page is further divided into multiple pre-divided storage segments. Each pre-divided storage segment is used to store a piece of data. For example, if the storage bit width in an air conditioner is 4 bits, that is, when the storage format in the air conditioner is 0xabcd, each pre-divided storage segment is used to store a piece of data in the format 0xabcd. The number of pre-divided storage segments can be based on the preset storage capacity in the storage page. Assuming that the preset storage capacity in the storage page of air conditioner C is greater than the preset storage capacity in the storage page of air conditioner D, then the number of pre-divided storage segments in each storage page of air conditioner C can be greater than the number of pre-divided storage segments in each storage page of air conditioner D.

[0113] The target storage segment refers to the storage segment within the pre-partitioned storage segment of the target storage page that has not yet been written to. If there are multiple free pre-partitioned storage segments in the target storage page, any one of them can be selected as the target storage segment.

[0114] The following example illustrates this: If the storage space is divided into n storage pages, and each storage page is further divided into m pre-partitioned storage segments, then the air conditioner's storage space contains a total of n*m pre-partitioned storage segments. When there is no data stored in the storage space, if one piece of data is written each time, it can be written a total of n*m times. Therefore, the frequency of erasing the storage space in the air conditioner can be reduced. On the one hand, this can reduce the frequency of CPU shutdown, avoiding a series of problems such as display flickering, unstable fan speed, and communication packet loss. On the other hand, it can reduce the number of times the storage space in the air conditioner is erased, thus extending the lifespan of the storage hardware in the air conditioner.

[0115] Understandably, if there are no free storage segments in the target storage page, it means that data cannot be written to the air conditioner's storage space. In order to ensure the normal operation of the air conditioner, the storage pages other than the target storage page will be erased.

[0116] 303. Write the new user control instructions into the target storage segment.

[0117] After the target storage segment is determined, new user control instructions can be written to the target storage segment to update the operating parameters in the air conditioner. For example, if the target instructions include the current fan speed, cooling / heating mode, dehumidification / humidification mode, and the set temperature after heating, the air conditioner will only change the set temperature after writing, without adjusting other operating parameters.

[0118] In other embodiments, the storage pages other than the target storage page can also be erased each time the air conditioner is turned off, so that there are enough free storage segments in the storage space when the air conditioner is turned on next time. This reduces the frequency of erasure during use, and since the user is no longer using the air conditioner when it is turned off, a series of problems such as display flickering, unstable fan speed, and communication packet loss caused during the erasure process will not have an adverse impact on the user experience.

[0119] In some embodiments, staff can also define automated testing logic for electronic devices to write data into a target chip within the air conditioner for testing when local power outages are frequent. (Reference) Figure 4 At this point, before the step "obtain the target instruction of the air conditioner", the method further includes:

[0120] 401. Obtain the target area where the air conditioner is located.

[0121] The target region is one of multiple pre-divided preset regions. This application embodiment does not limit the division of preset regions; for example, each city can be divided into a preset region, in which case step 401 is the electronic device obtaining the city where the air conditioner is located.

[0122] 402. Based on the preset time range and the current time, query the historical number of power outages in the target area.

[0123] The time range can be set according to the needs of the actual scenario. For example, a month can be set as the time range, or a week can be set as the time range. This application embodiment does not limit this.

[0124] When performing step 402, the electronic device can determine the historical time range based on the current time and a preset time range, and then query the number of power outages in the target area within the historical time range. For example, if the time range is one month and the current time is February 1, 2022, the historical time range refers to January 1, 2022 to February 1, 2022. Therefore, the historical power outage count refers to the number of power outages in the target area between January 1, 2022 and February 1, 2022.

[0125] 403. If the number of historical power outages is greater than or equal to a preset threshold, then the step of obtaining the target instruction of the air conditioner is executed.

[0126] The frequency threshold is a preset value used to assess the magnitude of historical power outages. When the number of historical power outages is greater than or equal to the threshold, it indicates that the number of historical power outages is too high, and power outages frequently occur in the target area. For example, the average number of power outages in the target area over several years can be set as the frequency threshold. If the number of historical power outages is greater than or equal to the threshold, it means that within a preset time range, the number of power outages in the target area is already higher than the average, and the air conditioner is more likely to lose power. Therefore, the air conditioner needs to be tested to avoid the situation where the power outage memory function malfunctions due to power outages.

[0127] In some embodiments, for the purpose of stabilization, i.e., when a worker sends commands frequently due to unforeseen circumstances, only the last received command can be set as the target command. (See reference) Figure 5 At this point, the step "Obtain the target instruction for the air conditioner" includes:

[0128] 501. After the air conditioner is powered on, respond to the command input operation and obtain the first and second commands input in sequence.

[0129] The first and second instructions have the same meaning as the initial instruction; they both refer to real-time instructions used to control the operation of the air conditioner. For example, the first and second instructions may contain different air conditioner operating parameters. For example, an operator can issue two user control instructions via a remote control, a test management platform, or a mobile app, with each user control instruction being the first and second instruction, respectively. For instance, when the operator presses the temperature up button on the remote control, the user control instruction issued at this time is the first instruction. Subsequently, the user presses the fan speed adjustment button on the remote control, and the user control instruction issued at this time is the second instruction.

[0130] The formats of the first and second instructions can also be determined based on the storage format within the air conditioner, which will not be elaborated further.

[0131] 502. If the input time interval between the first instruction and the second instruction is less than a preset interval threshold, and the instruction types of the first instruction and the second instruction are different, then the second instruction is set as the target instruction.

[0132] The preset interval threshold is used to assess whether the first instruction is a user control instruction accidentally entered by the staff. For example, the interval threshold can be set to 3 seconds. That is, if the staff enters the first instruction and the second instruction within 3 seconds by operating the remote control, the test management platform, or the mobile APP, it means that the first instruction is an instruction accidentally entered by the test management platform. The second instruction can then be set as the target instruction to avoid the first instruction, which is not actively entered by the staff, occupying a pre-allocated storage segment and wasting storage resources.

[0133] In some embodiments, the model number of the air conditioner can be read first. If the model number can be read, the model number of the target chip in the air conditioner can be determined based on the obtained model number. If the model number cannot be read, steps 201-203 are then executed to reduce the computational load. (Reference) Figure 6 At this point, before the step "obtain the target instruction of the air conditioner", the method further includes:

[0134] 601. Receive the air conditioner model reading instruction and read the target model of the air conditioner.

[0135] At this point, it can be understood that the target instruction can refer to the first user control instruction following the model read instruction.

[0136] Specifically, electronic devices can read the model identifier of the air conditioner from its storage space. If the model identifier can be read, the target model can be determined based on the model identifier.

[0137] 602. If the target model cannot be read, then execute the step of obtaining the target instruction for the air conditioner.

[0138] The following describes a process for storing test data of an air conditioner during testing. This process is for illustrative purposes only and should not be construed as a limitation on the embodiments of this application:

[0139] (a) After the air conditioner is powered on, the initial command is monitored in real time, and the target command whose target byte is the same as the preset byte is determined from it;

[0140] (b) For each preset chip address, the target instruction is written and read sequentially to obtain the read result of each preset chip address;

[0141] (c) Determine the target chip address from the preset chip addresses that matches the target instruction with the corresponding read result;

[0142] (d) Set the chip type corresponding to the target chip address to the target chip type of the target chip in the air conditioner;

[0143] (e) Determine different writing methods based on the target chip type:

[0144] (e1) If the target chip type is an analog chip, when a new user control instruction is received, the target memory page that is not full is obtained from multiple pre-divided memory pages;

[0145] (e2.1) Among the multiple pre-partitioned storage segments of the target storage page, determine the free target storage segment;

[0146] (e2.2) If there is no free storage segment in the target storage page, it means that data cannot be written to the storage space of the air conditioner. In order to ensure the normal operation of the air conditioner, the storage pages other than the target storage page will be erased.

[0147] (e3) Write the new user control instructions into the target storage segment.

[0148] (f) If a shutdown command is received from the staff, all storage pages except the target storage page are erased to reduce the frequency of erasure of the air conditioner on the next startup.

[0149] To better implement the air conditioner test data storage method in this application embodiment, based on the air conditioner test data storage method, this application embodiment also provides an air conditioner test data storage device, such as... Figure 7 The diagram shown is a structural schematic of one embodiment of the air conditioner test data storage device 700 in this application. The air conditioner test data storage device 700 includes:

[0150] Acquisition unit 701 is used to acquire the target instruction of the air conditioner;

[0151] The determining unit 702 is used to verify the target chip in the air conditioner according to the target instruction and determine the target chip type of the target chip;

[0152] The writing unit 703 is used to write new user control instructions into the target chip according to the target chip type.

[0153] In one possible implementation of this application, the determining unit 702 is further configured to:

[0154] For each preset chip address, the target instruction is written and read sequentially to obtain the read result corresponding to each preset chip address, wherein each preset chip address corresponds to a different chip type;

[0155] Determine the target chip address that matches the corresponding read result with the target instruction;

[0156] Set the chip type corresponding to the target chip address to the target chip type of the target chip in the air conditioner.

[0157] In one possible implementation of this application, the acquiring unit 701 is further configured to:

[0158] After the air conditioner is powered on, obtain the initial instructions from the air conditioner;

[0159] If the target byte in the initial instruction is the same as the preset byte, then the initial instruction is determined to be the first user control instruction after the air conditioner is turned on, and the initial instruction is set as the target instruction.

[0160] In one possible implementation of this application, the writing unit 703 is further configured to:

[0161] If the target chip type is an analog chip, when a new user control instruction is received, an unfilled target memory page is obtained from multiple pre-divided memory pages;

[0162] Among the multiple pre-partitioned storage segments of the target storage page, a free target storage segment is determined;

[0163] The new user control instructions are written to the target storage segment.

[0164] In one possible implementation of this application, the acquiring unit 701 is further configured to:

[0165] Find the target area where the air conditioner is located;

[0166] Based on a preset time range and the current time, query the historical number of power outages in the target area;

[0167] If the number of historical power outages is greater than or equal to a preset threshold, then the step of obtaining the target instruction for the air conditioner is executed.

[0168] In one possible implementation of this application, the acquiring unit 701 is further configured to:

[0169] After the air conditioner is powered on, it responds to the command input operation and obtains the first and second commands input sequentially.

[0170] If the input time interval between the first instruction and the second instruction is less than a preset interval threshold, and the instruction types of the first instruction and the second instruction are different, then the second instruction is set as the target instruction.

[0171] In one possible implementation of this application, the air conditioner test data storage device 700 further includes a model reading unit 704, which is used for:

[0172] Receive the air conditioner model reading command and read the target model of the air conditioner;

[0173] If the target model cannot be read, then the step of obtaining the target instruction for the air conditioner is executed.

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

[0175] Because this air conditioner test data storage device can execute the present application, such as Figures 1 to 7 Corresponding to the steps in the air conditioner test data storage method in any embodiment, the present application can be implemented as described above. Figures 1 to 7 For details on the beneficial effects that the air conditioner test data storage method can achieve in any embodiment, please refer to the preceding description, which will not be repeated here.

[0176] Furthermore, to better implement the air conditioner test data storage method in this application embodiment, based on the air conditioner test data storage method, this application embodiment also provides an electronic device, see below. Figure 8 , Figure 8 This illustration shows a structural diagram of an electronic device according to an embodiment of this application. Specifically, the electronic device provided in this embodiment includes a processor 801, which executes a computer program stored in a memory 802 to implement, for example... Figures 1 to 7 Corresponding to each step of the air conditioner test data storage method in any embodiment; or, when the processor 801 executes the computer program stored in the memory 802, it implements as follows: Figure 7 The functions of each unit in the corresponding embodiment.

[0177] For example, a computer program may be divided into one or more modules / units, one or more of which are stored in memory 802 and executed by processor 801 to complete the embodiments of this application. One or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in a computer device.

[0178] The electronic device may include, but is not limited to, processor 801 and memory 802. Those skilled in the art will understand that the illustrations are merely examples of an electronic device and do not constitute a limitation on the electronic device. It may include more or fewer components than illustrated, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc., with processor 801, memory 802, input / output devices, and network access devices connected via a bus.

[0179] The processor 801 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the electronic device, connecting various parts of the electronic device through various interfaces and lines.

[0180] The memory 802 can be used to store computer programs and / or modules. The processor 801 implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory 802 and by calling data stored in the memory 802. The memory 802 may mainly include a program storage area and a target instruction area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the target instruction area may store data created according to the use of the electronic device (such as audio data, video data, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0181] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the air conditioner test data storage device, electronic equipment, and its corresponding units described above can be found in [reference to...]. Figures 1 to 4 The description of the air conditioner test data storage method corresponding to any embodiment will not be repeated here.

[0182] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0183] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute the present application. Figures 1 to 7 For the steps in the air conditioner test data storage method corresponding to any embodiment, please refer to the following for specific operations: Figures 1 to 7 The description of the air conditioner test data storage method corresponding to any embodiment will not be repeated here.

[0184] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0185] Because of the instructions stored in the computer-readable storage medium, the present application can be executed as follows. Figures 1 to 7 Corresponding to the steps in the air conditioner test data storage method in any embodiment, the present application can be implemented as described above. Figures 1 to 7For details on the beneficial effects that the air conditioner test data storage method can achieve in any embodiment, please refer to the preceding description, which will not be repeated here.

[0186] The present application provides a detailed description of an air conditioner test data storage method, apparatus, electronic device, and computer-readable storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present application. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present application. Therefore, the content of this specification should not be construed as a limitation of the present application.

Claims

1. A method for storing test data of an air conditioner, characterized in that, The method includes: Obtain the target command from the air conditioner; the target command is the first user control command issued by the user after the air conditioner is turned on. The target chip in the air conditioner is verified according to the target instruction to determine the target chip type; Based on the target chip type, new user control instructions are written into the target chip; The step of verifying the target chip in the air conditioner according to the target instruction and determining the target chip type includes: For each preset chip address, the target instruction is written and read sequentially to obtain the read result corresponding to each preset chip address, wherein each preset chip address corresponds to a different chip type; Determine the target chip address that matches the corresponding read result with the target instruction; Set the chip type corresponding to the target chip address to the target chip type of the target chip in the air conditioner.

2. The air conditioner test data storage method according to claim 1, characterized in that, The target instruction for obtaining the air conditioner includes: After the air conditioner is powered on, obtain the initial instructions from the air conditioner; If the target byte in the initial instruction is the same as the preset byte, then the initial instruction is determined to be the first user control instruction after the air conditioner is turned on, and the initial instruction is set as the target instruction.

3. The air conditioner test data storage method according to claim 1, characterized in that, The step of writing new user control instructions into the target chip according to the target chip type includes: If the target chip type is an analog chip, when a new user control instruction is received, an unfilled target memory page is obtained from multiple pre-divided memory pages; Among the multiple pre-partitioned storage segments of the target storage page, a free target storage segment is determined; The new user control instructions are written to the target storage segment.

4. The air conditioner test data storage method according to claim 1, characterized in that, Before obtaining the target instruction from the air conditioner, the method further includes: Find the target area where the air conditioner is located; Based on a preset time range and the current time, query the historical number of power outages in the target area; If the number of historical power outages is greater than or equal to a preset threshold, then the step of obtaining the target instruction for the air conditioner is executed.

5. The air conditioner test data storage method according to claim 1, characterized in that, The target instruction for obtaining the air conditioner includes: After the air conditioner is powered on, it responds to the command input operation and obtains the first and second commands input sequentially. If the input time interval between the first instruction and the second instruction is less than a preset interval threshold, and the instruction types of the first instruction and the second instruction are different, then the second instruction is set as the target instruction.

6. The air conditioner test data storage method according to claim 1, characterized in that, Before obtaining the target instruction from the air conditioner, the method further includes: Receive the air conditioner model reading command and read the target model of the air conditioner; If the target model cannot be read, then the step of obtaining the target instruction for the air conditioner is executed.

7. An air conditioner test data storage and control device, characterized in that, The air conditioner test data storage and control device includes: The acquisition unit is used to acquire the target instruction of the air conditioner; the target instruction is the first user control instruction issued by the user after the air conditioner is turned on. The determining unit is used to verify the target chip in the air conditioner according to the target instruction and determine the target chip type of the target chip; A writing unit is used to write new user control instructions into the target chip according to the target chip type; The determining unit is also used for: For each preset chip address, the target instruction is written and read sequentially to obtain the read result corresponding to each preset chip address, wherein each preset chip address corresponds to a different chip type; Determine the target chip address that matches the corresponding read result with the target instruction; Set the chip type corresponding to the target chip address to the target chip type of the target chip in the air conditioner.

8. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the air conditioner test data storage method as described in any one of claims 1 to 6 when it calls the computer program in the memory.

9. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to execute the steps in the air conditioner test data storage method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Reset method and equipment for chips, electronic equipment and storage medium

    CN107589920A

  • Chip test method, terminal and storage medium

    CN112331253A

  • Data storage method and device, electronic equipment and storage medium

    CN114047884A