Data acquisition method and device, air conditioner, electronic equipment and storage medium

By dynamically adjusting the filter threshold in the air-conditioning equipment according to changes in the environment and operating mode and only uploading valid data, the problem of high network traffic costs when uploading data by the air-conditioning equipment is solved, and the data transmission volume and cost savings are achieved.

CN119665426APending Publication Date: 2025-03-21GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411928082.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The network traffic costs are high when uploading and running data from air conditioners, and no effective solution has been proposed in the existing technology.

Method used

By adjusting the filter threshold of each parameter according to environmental changes and operating mode changes during the air conditioner operation, we can judge whether the current collected value is valid data, and only upload valid data to the server.

Benefits of technology

Reduces data transmission volume, reduces network traffic costs, saves company costs, and improves the accuracy of data filtering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119665426A_ABST
    Figure CN119665426A_ABST
Patent Text Reader

Abstract

The invention discloses a data acquisition method and device, an air conditioner, electronic equipment and a storage medium. The method comprises the steps that in the operation process of the air conditioner, the filtering threshold value of each parameter is adjusted according to the environment change condition and the operation mode change condition, and different parameters correspond to the respective filtering threshold values; judging whether the current acquisition value of the corresponding parameter is valid data or not according to the filtering threshold value; and uploading the valid data to a server. In the air conditioner operation process, data filtering is automatically carried out based on the filtering threshold value, and only effective data meeting the change amplitude requirement is uploaded to the server, so that the data transmission amount is reduced, the network flow cost is reduced, the company cost is saved, and the problem that the network flow cost is high when the air conditioner equipment uploads the operation data is solved; and moreover, the filtering threshold value of each parameter is dynamically adjusted on the basis of the environment change condition and the operation mode change condition, so that the filtering threshold value better fits the actual operation condition of the air conditioner, and data filtering is more accurately carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of air conditioning equipment, and in particular to a data acquisition method, device, air conditioner, electronic equipment and storage medium. Background Art

[0002] With the development of smart home and Internet of Things technologies, the collection and analysis of air-conditioning equipment operation data has become increasingly important for remote monitoring, fault diagnosis, energy management, etc. of equipment.

[0003] At present, the data acquisition devices on the air-conditioning equipment side often upload all collected data indiscriminately, which will consume a large amount of network traffic and even exceed the traffic quota, increase the company's hidden costs, and may also cause an excessive burden on data processing on the server side.

[0004] With regard to the problem of high network traffic costs when air-conditioning equipment uploads operating data in the prior art, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a data collection method, device, air conditioner, electronic device and storage medium, so as to at least solve the problem of high network traffic cost when the air conditioner uploads operation data in the prior art.

[0006] In order to solve the above technical problems, an embodiment of the present invention provides a data collection method, comprising:

[0007] During the operation of the air conditioner, the filtering threshold of each parameter is adjusted according to the changes in the environment and the operation mode, wherein different parameters correspond to their own filtering thresholds;

[0008] Determining whether the current collected value of the corresponding parameter is valid data according to the filtering threshold;

[0009] Upload valid data to the server.

[0010] Optionally, the filtering threshold of any parameter includes: a first threshold and a second threshold, the first threshold being greater than the second threshold;

[0011] Judging whether the current collected value of the corresponding parameter is valid data according to the filtering threshold includes:

[0012] For any parameter, the absolute value of the difference between the current collected value of the parameter and the reference value of the parameter is calculated to obtain the current variation range of the parameter;

[0013] If the current variation of the parameter is greater than the first threshold value of the parameter, it is determined that the current collected value of the parameter is valid data, and the current collected value of the parameter is used as the reference value of the parameter;

[0014] If the current variation range of the parameter is less than the second threshold value of the parameter, it is determined that the current collected value of the parameter is invalid data;

[0015] If the current change range of the parameter is greater than or equal to the second threshold value of the parameter and less than or equal to the first threshold value of the parameter, it is determined whether the current collected value of the parameter is valid data based on the historical change range of the parameter and environmental variables.

[0016] Optionally, judging whether the currently collected value of the parameter is valid data according to the historical change range of the parameter and the environmental variables includes:

[0017] Get the historical change range of the parameter;

[0018] Determine the environmental weight coefficient according to the current environmental temperature and the current environmental humidity;

[0019] Calculate the comprehensive change value of the parameter according to the current change range of the parameter, the historical change range, the first threshold, the second threshold and the environmental weight coefficient;

[0020] If the comprehensive change value of the parameter is greater than or equal to the third threshold value of the parameter, it is determined that the current collected value of the parameter is valid data, and the current collected value of the parameter is used as the reference value of the parameter;

[0021] If the comprehensive change value of the parameter is less than the third threshold value of the parameter, it is determined that the current collected value of the parameter is invalid data.

[0022] Optionally, the comprehensive change value of the parameter is calculated according to the following formula:

[0023]

[0024] Wherein, P represents the comprehensive change value of the parameter; ΔD represents the current change amplitude of the parameter; D represents the average value of all change amplitudes of the parameter within the recent preset time, as the historical change amplitude of the parameter; H represents the first threshold value of the parameter; L represents the second threshold value of the parameter; W represents the environmental weight coefficient, T c Indicates the current ambient temperature, T a Indicates the average ambient temperature within the recent preset time, H c Indicates the current ambient humidity, H a Indicates the average ambient humidity within the recent preset time, k 5 Indicates the preset ambient temperature coefficient, k 6 Indicates the preset ambient humidity coefficient.

[0025] Optionally, the filtering threshold of any parameter includes: a first threshold and a second threshold, the first threshold being greater than the second threshold;

[0026] During the operation of the air conditioner, the filtering thresholds of various parameters are adjusted according to changes in the environment and the operation mode, including:

[0027] During the operation of the air conditioner, any change in the ambient temperature, ambient humidity or operation mode is detected;

[0028] The first threshold of each parameter is updated according to the ambient temperature change value, the ambient humidity change value and the operation mode weight, and the second threshold of each parameter is updated according to the ambient temperature change value and the ambient humidity change value.

[0029] Optionally, updating the first threshold of each parameter according to the ambient temperature change value, the ambient humidity change value and the operation mode weight, and updating the second threshold of each parameter according to the ambient temperature change value and the ambient humidity change value, includes:

[0030] For any parameter, calculate H = H 0 +M×(k 1 ×|ΔT|+k 2 ×|ΔH|), obtain the first threshold value after the parameter is updated; and calculate L=L 0 +(k 3 ×|ΔT|+k 4 ×|ΔH|), and obtain the second threshold after the parameter is updated;

[0031] Among them, H represents the first threshold of the parameter, H 0 represents the initial setting value of the first threshold of the parameter, M represents the weight coefficient of the current operation mode, k 1 Indicates the preset first temperature coefficient, k 2 represents the preset first humidity coefficient, ΔT represents the ambient temperature change value, ΔH represents the ambient humidity change value, L represents the second threshold value of the parameter, L 0 represents the initial setting value of the second threshold of the parameter, k 3 Indicates the preset second temperature coefficient, k 4 Indicates the preset second humidity coefficient.

[0032] The embodiment of the present invention further provides a data acquisition device, comprising:

[0033] An adjustment module is used to adjust the filtering threshold of each parameter according to the environmental changes and the operating mode changes during the operation of the air conditioner, wherein different parameters correspond to their own filtering thresholds;

[0034] A judgment module, used to judge whether the current collected value of the corresponding parameter is valid data according to the filtering threshold;

[0035] The upload module is used to upload valid data to the server.

[0036] An embodiment of the present invention further provides an air conditioner, comprising: the data acquisition device described in the embodiment of the present invention.

[0037] An embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data collection method described in the embodiment of the present invention when executing the computer program.

[0038] The embodiment of the present invention further provides a non-volatile computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data collection method described in the embodiment of the present invention is implemented.

[0039] By applying the technical solution of the present invention, data filtering is automatically performed based on the filtering threshold during the operation of the air conditioner, and only valid data that meets the change range requirements is uploaded to the server, thereby reducing the data transmission volume, lowering network traffic costs, saving company costs, and solving the problem of high network traffic costs when the air-conditioning equipment uploads operating data; and, based on environmental changes and operating mode changes, the filtering threshold of each parameter is dynamically adjusted to make the filtering threshold more in line with the actual operation of the air conditioner, thereby more accurately filtering the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is a flow chart of a data collection method provided by an embodiment of the present invention;

[0041] Figure 2 It is a schematic diagram of the architecture of an air conditioner uploading data to a server provided by an embodiment of the present invention;

[0042] Figure 3 is a structural block diagram of a data acquisition device provided by an embodiment of the present invention;

[0043] Figure 4 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

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

[0046] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0047] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0048] The optional embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0049] During the operation of the air conditioner, various parameter values ​​are periodically collected and uploaded to the server as air conditioner operation data, such as high pressure, compressor operation frequency, user set temperature, etc. When the air conditioner is running stably, the values ​​of most parameters are the same or do not change much. If all the collected data is uploaded to the server, it will result in a large amount of data transmission and high network traffic costs.

[0050] This embodiment provides a data collection method, which is applied to air conditioners. Figure 1 is a flow chart of a data collection method provided by an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0051] S101, during the operation of the air conditioner, adjusting the filtering threshold of each parameter according to changes in the environment and the operation mode, wherein different parameters correspond to their own filtering thresholds.

[0052] S102: Determine whether the currently collected value of the corresponding parameter is valid data according to the filtering threshold.

[0053] S103, upload the valid data to the server.

[0054] In this embodiment, each parameter of the air conditioner corresponds to its own filtering threshold value, and the filtering threshold value is used to measure the magnitude of the change range of the air conditioner parameter collection value. For example, if the change range of the parameter collection value is large, the parameter collection value is considered to be valid data and needs to be uploaded to the server. If the change range of the parameter collection value is small, the parameter collection value is considered to be invalid data and does not need to be uploaded to the server. In this embodiment, the parameter data that meets the change range requirements is uploaded to the server, and data filtering is implemented, thereby reducing the amount of data transmission and reducing the consumed network traffic.

[0055] Environmental changes include: changes in ambient temperature and / or changes in ambient humidity. Operation modes include: cooling, heating, and standby. Under different environmental conditions and / or in different operation modes, the operating data of the air conditioner will be different, and there may even be large differences, so the adapted filtering thresholds will also be different. This embodiment dynamically adjusts the filtering thresholds of various parameters based on environmental changes and operating mode changes, so that the filtering thresholds are more in line with the actual operation of the air conditioner, thereby improving the accuracy of data filtering.

[0056] This embodiment automatically performs data filtering based on the filtering threshold during the operation of the air conditioner, and only uploads valid data that meets the change range requirements to the server, thereby reducing the amount of data transmission, lowering network traffic costs, saving company costs, and solving the problem of high network traffic costs when the air-conditioning equipment uploads operating data; and, based on environmental changes and operating mode changes, dynamically adjusts the filtering threshold of each parameter, so that the filtering threshold is more in line with the actual operation of the air conditioner, thereby more accurately filtering data.

[0057] The filtering threshold of any parameter may include only one threshold, that is, if the change range of the parameter collection value is greater than the threshold, the parameter collection value is considered to be valid data; if the change range of the parameter collection value is less than the threshold, the parameter collection value is considered to be invalid data.

[0058] In order to perform data filtering more accurately, the filtering threshold of any parameter may also include two thresholds, that is, the filtering threshold of any parameter includes: a first threshold and a second threshold, and the first threshold is greater than the second threshold.

[0059] Correspondingly, judging whether the current collected value of the corresponding parameter is valid data according to the filtering threshold includes:

[0060] For any parameter, the absolute value of the difference between the current collected value of the parameter and the reference value of the parameter is calculated to obtain the current variation range of the parameter;

[0061] If the current variation of the parameter is greater than the first threshold value of the parameter, it is determined that the current collected value of the parameter is valid data, and the current collected value of the parameter is used as the reference value of the parameter;

[0062] If the current variation range of the parameter is less than the second threshold value of the parameter, it is determined that the current collected value of the parameter is invalid data;

[0063] If the current change range of the parameter is greater than or equal to the second threshold value of the parameter and less than or equal to the first threshold value of the parameter, it is determined whether the current collected value of the parameter is valid data based on the historical change range of the parameter and environmental variables.

[0064] For any parameter, this implementation method updates the reference value of the parameter according to the valid data each time the valid data of the parameter is marked, and calculates the change range based on the current collected value of the parameter and the last valid data of the parameter, which is more reference-oriented. The valid data is judged based on the first threshold and the second threshold. If the current change range of the parameter is between the second threshold and the first threshold, further judgment is made in combination with the historical change range and environmental variables, which can ensure the accuracy of data filtering.

[0065] Furthermore, judging whether the currently collected value of the parameter is valid data according to the historical variation range of the parameter and the environmental variables includes:

[0066] Get the historical change range of the parameter;

[0067] Determine the environmental weight coefficient according to the current environmental temperature and the current environmental humidity;

[0068] Calculate the comprehensive change value of the parameter according to the current change range of the parameter, the historical change range, the first threshold, the second threshold and the environmental weight coefficient;

[0069] If the comprehensive change value of the parameter is greater than or equal to the third threshold value of the parameter, it is determined that the current collected value of the parameter is valid data, and the current collected value of the parameter is used as the reference value of the parameter;

[0070] If the comprehensive change value of the parameter is less than the third threshold value of the parameter, it is determined that the current collected value of the parameter is invalid data.

[0071] The corresponding third threshold value may be set in advance for each parameter of the air conditioner through experiments.

[0072] In this embodiment, when the current change range of the parameter is greater than or equal to the second threshold value of the parameter and less than or equal to the first threshold value of the parameter, the validity of the current collected value of the parameter is further judged based on the historical change range of the parameter and environmental variables, so that potential valid data can be judged, and the judgment result is more accurate.

[0073] In practical applications, the comprehensive change value of this parameter can be calculated according to the following formula:

[0074]

[0075] Where P represents the comprehensive change value of the parameter; ΔD represents the current change amplitude of the parameter; D represents the average value of all change amplitudes of the parameter within the recent preset time, which is used as the historical change amplitude of the parameter. n represents the number of all changes of the parameter within the recent preset time; H represents the first threshold of the parameter; L represents the second threshold of the parameter; W represents the environmental weight coefficient. The preset time can be set according to actual conditions.

[0076] T c Indicates the current ambient temperature, T a Indicates the average ambient temperature within the recent preset time, H c Indicates the current ambient humidity, H a Indicates the average ambient humidity within the recent preset time, k 5 Indicates the preset ambient temperature coefficient, k 6 Indicates the preset environmental humidity coefficient, k 5 It can reflect the influence of ambient temperature on parameter changes, k 6 It can reflect the influence of environmental humidity on parameter changes, for example, k 5 =0.8, k 6 =0.8.

[0077] This implementation utilizes the historical variation range of the parameter and environmental variables for correction to obtain the comprehensive variation value of the parameter, thereby being able to further accurately judge the validity of the current collected value of the parameter, providing a guarantee for accurate data filtering, and ensuring the accuracy of transmitted data while reducing data traffic.

[0078] Invalid data can be directly discarded. Valid data can be uploaded to the server according to the first cycle, that is, the determined valid data is cached, and when the first cycle arrives, the valid data cached in the cycle is packaged and transmitted to the server, for example, the first cycle is 10 seconds.

[0079] In order to further reduce network traffic, the frequency of uploading valid data can be optimized. Specifically, for the valid data determined when the current change amplitude of the parameter is greater than the first threshold of the parameter, it is uploaded to the server according to the first cycle. The corresponding fourth threshold can also be set for each parameter. The fourth threshold of any parameter is greater than the third threshold of the parameter. If the comprehensive change value of the parameter is greater than the fourth threshold of the parameter, the current collected value of the parameter is determined to be valid data and uploaded to the server according to the first cycle; if the comprehensive change value of the parameter is greater than or equal to the third threshold of the parameter and less than or equal to the fourth threshold of the parameter, the current collected value of the parameter is determined to be valid data and uploaded to the server according to the second cycle. The second cycle is greater than the first cycle, for example, the second cycle is 5 hours. By reducing the frequency of data upload, network traffic can also be reduced to a certain extent.

[0080] In an optional embodiment, during the operation of the air conditioner, the filtering threshold of each parameter is adjusted according to the environmental changes and the operating mode changes, including: during the operation of the air conditioner, any change in the ambient temperature, ambient humidity or operating mode is detected; the first threshold of each parameter is updated according to the ambient temperature change value, the ambient humidity change value and the operating mode weight, and the second threshold of each parameter is updated according to the ambient temperature change value and the ambient humidity change value.

[0081] This implementation method takes into account the impact of environmental changes and operating modes on air-conditioning operating data, and dynamically adjusts the filtering threshold of each parameter in a timely manner to make the filtering threshold more in line with the actual operating conditions of the air-conditioning, thereby performing data filtering more accurately.

[0082] Further, updating the first threshold of each parameter according to the ambient temperature change value, the ambient humidity change value and the operation mode weight, and updating the second threshold of each parameter according to the ambient temperature change value and the ambient humidity change value, including:

[0083] For any parameter, calculate H = H 0 +M×(k 1 ×|ΔT|+k 2 ×|ΔH|), obtain the first threshold value after the parameter is updated; and calculate L=L 0 +(k 3 ×|ΔT|+k 4 ×|ΔH|), and obtain the second threshold after the parameter is updated.

[0084] Among them, H represents the first threshold of the parameter, H 0 represents the initial setting value of the first threshold of the parameter, M represents the weight coefficient of the current operation mode, k 1 Indicates the preset first temperature coefficient, k 2represents the preset first humidity coefficient, ΔT represents the ambient temperature change value, ΔH represents the ambient humidity change value, L represents the second threshold value of the parameter, L 0 represents the initial setting value of the second threshold of the parameter, k 3 Indicates the preset second temperature coefficient, k 4 Indicates the preset second humidity coefficient. The first threshold value may vary based on the operation mode. The second threshold value is used to filter out invalid data and needs to be relatively stable and not change with the operation mode.

[0085] This implementation can quickly and accurately adjust the filtering threshold.

[0086] For each parameter of the air conditioner, its initial filtering threshold can be set in advance through experiments, including: the initial setting value of the first threshold and the initial setting value of the second threshold, so as to serve as the basis for judging the effective data when the air conditioner is just put into operation, and as the basis for dynamically adjusting the filtering threshold as the air conditioner is running. 0 >L 0 .

[0087] The weight coefficient of the operating mode is M∈[0, 1], where M can be set according to actual conditions. For example, the weight coefficient of standby mode is the lowest, and the weight coefficient of heating mode is the highest. The weight coefficient of cooling mode is 0.7, the weight coefficient of heating mode is 0.8, and the weight coefficient of standby mode is 0.3.

[0088] k 1 represents the sensitivity of the first threshold to temperature changes, k 2 represents the sensitivity of the first threshold to humidity changes, for example, k 1 =1, k 2 =1. k 3 represents the sensitivity of the second threshold to temperature changes, k 4 represents the sensitivity of the second threshold to humidity changes, for example, k 3 =0.5, k 4 =0.5.

[0089] If the ambient temperature does not change, ΔT=0. Similarly, if the ambient humidity does not change, ΔH=0.

[0090] The data collection method is described below in conjunction with a specific embodiment. However, it is worth noting that this specific embodiment is only for better illustrating the present application and does not constitute an improper limitation on the present application. The explanation of terms that are the same or corresponding to the above embodiment will not be repeated in this embodiment.

[0091] like Figure 2As shown, each air conditioner 10 is equipped with a DTU (Data Transfer Unit) 20, which is used as a data acquisition device to collect the operating data of the air conditioner 10 and upload the valid data therein to the server 30. When the network traffic of the DTU 20 is insufficient, other DTUs 20 with sufficient network traffic can be used to upload data on its behalf.

[0092] The DTU 20 internally stores filtering thresholds corresponding to various parameters of the air conditioner 10 , which may be stored in the form of a parameter mapping table. After data filtering is performed according to the parameter mapping table, valid data is uploaded to the server 30 .

[0093] Before the air conditioner leaves the factory, initial filtering thresholds can be set for its parameters through experiments, including: the initial setting value of the first threshold and the initial setting value of the second threshold. After the air conditioner is put into use, the filtering thresholds of each parameter can be dynamically adjusted at any time according to the environment in which the air conditioner is located and its actual operating conditions. This can make the filtering thresholds more in line with the actual operating conditions of the air conditioner and perform data filtering more accurately.

[0094] DTU 20 collects the corresponding air conditioner parameter data and determines the data validity based on the parameter change range and filtering threshold.

[0095] Assuming that the parameter change amplitude is ΔD, if ΔD>H, it is marked as valid data and sent in the first cycle; if ΔD<L, it is marked as invalid data and discarded directly; if L≤ΔD≤H, it enters the fuzzy threshold area judgment. Specifically, the comprehensive parameter change value P is dynamically calculated based on the historical change amplitude and environmental variables:

[0096]

[0097] Where P represents the comprehensive change value of the parameter; ΔD represents the current change amplitude of the parameter; D represents the average value of all change amplitudes of the parameter within the recent preset time, which is used as the historical change amplitude of the parameter. n represents the number of all changes of the parameter within the recent preset time; H represents the first threshold of the parameter; L represents the second threshold of the parameter; W represents the environmental weight coefficient. The preset time can be set according to actual conditions.

[0098] T c Indicates the current ambient temperature, T a Indicates the average ambient temperature within the recent preset time, H c Indicates the current ambient humidity, H a Indicates the average ambient humidity within the recent preset time, k 5 Indicates the preset ambient temperature coefficient, k 6 Indicates the preset environmental humidity coefficient, k5 It can reflect the influence of ambient temperature on parameter changes, k 6 It can reflect the influence of environmental humidity on parameter changes, for example, k 5 =0.8, k 6 =0.8.

[0099] According to the calculated parameter comprehensive change value P, further judgment is made: if P>0.7, it is marked as valid data and sent in the first cycle; if P<0.3, it is marked as invalid data and discarded; if 0.3≤P≤0.7, it is marked as valid data, and the data is temporarily stored and waits for batch sending, that is, it is sent in the second cycle, and the second cycle is greater than the first cycle. Among them, 0.3 is equivalent to the third threshold described in the above embodiment, and 0.7 is equivalent to the fourth threshold described in the above embodiment.

[0100] This embodiment discards invalid data to reduce memory usage, caches valid data, and when a period is reached, packages the valid data within the period and transmits it to the server via wired or wireless means in a lightweight data format, for example, Avro or CBOR format. This embodiment only uploads valid data to the server, and uploads it periodically, reducing the amount of data transmission and the frequency of data transmission, thereby effectively reducing traffic consumption and network traffic costs.

[0101] Exemplarily, taking the parameter of user-set temperature as an example, the filtering thresholds of the user-set temperature are: the first threshold is 1°C, the second threshold is 0.5°C, the reference value of the user-set temperature is 26°C, the collected value of the user-set temperature at time t1 is 26.4°C, the change range is 0.4°C, which is less than the second threshold of 0.5°C, and the collected value is marked as invalid data and discarded; the collected value of the user-set temperature at time t2 is 26.6°C, the change range is 0.6°C, which is greater than the second threshold of 0.5°C and less than the first threshold of 1°C. It is necessary to further calculate the comprehensive change value of the parameter for judgment, for example, the calculated P=0.1, which is less than the third threshold of 0.3, and is marked as invalid data; the collected value of the user-set temperature at time t3 is 27.1°C, the change range is 1.1°C, which is greater than the first threshold of 1°C, and is marked as valid data, and its reference value is updated to 27.1°C.

[0102] During the operation of the air conditioner, the filter threshold of each parameter can be adjusted dynamically and timely according to the changes in the environment and the operation mode. For any parameter, the adjustment formula of the filter threshold is as follows:

[0103] H=H 0 +M×(k 1 ×|ΔT|+k 2 ×|ΔH|);

[0104] L=L 0 +(k3 ×|ΔT|+k 4 ×|ΔH|);

[0105] Among them, H represents the first threshold of the parameter, H 0 represents the initial setting value of the first threshold of the parameter, M represents the weight coefficient of the current operation mode, k 1 Indicates the preset first temperature coefficient, k 2 represents the preset first humidity coefficient, ΔT represents the ambient temperature change value, ΔH represents the ambient humidity change value, L represents the second threshold value of the parameter, L 0 represents the initial setting value of the second threshold of the parameter, k 3 Indicates the preset second temperature coefficient, k 4 Indicates the preset second humidity coefficient.

[0106] This specific embodiment automatically performs data filtering based on the filtering threshold during the operation of the air conditioner, and only uploads valid data that meets the change range requirements to the server, thereby reducing the amount of data transmission, lowering network traffic costs, saving company costs, and solving the problem of high network traffic costs when the air-conditioning equipment uploads operating data; and, based on environmental changes and operating mode changes, dynamically adjusts the filtering threshold of each parameter, so that the filtering threshold is more in line with the actual operation of the air conditioner, thereby more accurately filtering data.

[0107] Based on the same inventive concept, this embodiment provides a data acquisition device, which can be used to implement the data acquisition method described in the above embodiment. The data acquisition device can be implemented by software and / or hardware.

[0108] Figure 3 is a structural block diagram of a data acquisition device provided by an embodiment of the present invention, such as Figure 3 As shown, the data acquisition device comprises:

[0109] An adjustment module 31 is used to adjust the filtering threshold of each parameter according to the environmental changes and the operating mode changes during the operation of the air conditioner, wherein different parameters correspond to their own filtering thresholds;

[0110] A judgment module 32, used to judge whether the current collected value of the corresponding parameter is valid data according to the filtering threshold;

[0111] The uploading module 33 is used to upload the valid data to the server.

[0112] Optionally, the filtering threshold of any parameter includes: a first threshold and a second threshold, and the first threshold is greater than the second threshold.

[0113] The judging module 32 includes:

[0114] A calculation unit, used for calculating, for any parameter, an absolute value of a difference between a current collected value of the parameter and a reference value of the parameter, to obtain a current variation range of the parameter;

[0115] a first determining unit, configured to determine that a currently collected value of the parameter is valid data if a current variation range of the parameter is greater than a first threshold value of the parameter, and use the currently collected value of the parameter as a reference value of the parameter;

[0116] A second determination unit, configured to determine that a currently collected value of the parameter is invalid data if the current variation range of the parameter is less than a second threshold value of the parameter;

[0117] The third determination unit is used to determine whether the current collected value of the parameter is valid data based on the historical change range of the parameter and environmental variables if the current change range of the parameter is greater than or equal to the second threshold of the parameter and less than or equal to the first threshold of the parameter.

[0118] Optionally, the third determining unit includes:

[0119] Get subunit, used to get the historical change range of the parameter;

[0120] A first determining subunit, used to determine an environmental weight coefficient according to a current environmental temperature and a current environmental humidity;

[0121] A calculation subunit, configured to calculate a comprehensive change value of the parameter according to the current change range, the historical change range, the first threshold, the second threshold and the environmental weight coefficient of the parameter;

[0122] a second determination subunit, configured to determine that the current collected value of the parameter is valid data if the comprehensive change value of the parameter is greater than or equal to a third threshold value of the parameter, and use the current collected value of the parameter as a reference value of the parameter;

[0123] The third determination subunit is used to determine that the current collected value of the parameter is invalid data if the comprehensive change value of the parameter is less than a third threshold value of the parameter.

[0124] Optionally, the calculation subunit calculates the comprehensive change value of the parameter according to the following formula:

[0125]

[0126] Wherein, P represents the comprehensive change value of the parameter; ΔD represents the current change amplitude of the parameter; D represents the average value of all change amplitudes of the parameter within the recent preset time, as the historical change amplitude of the parameter; H represents the first threshold value of the parameter; L represents the second threshold value of the parameter; W represents the environmental weight coefficient, T c Indicates the current ambient temperature, Ta Indicates the average ambient temperature within the recent preset time, H c Indicates the current ambient humidity, H a Indicates the average ambient humidity within the recent preset time, k 5 Indicates the preset ambient temperature coefficient, k 6 Indicates the preset ambient humidity coefficient.

[0127] Optionally, the filtering threshold of any parameter includes: a first threshold and a second threshold, and the first threshold is greater than the second threshold.

[0128] The adjustment module 31 includes:

[0129] A detection unit, used to detect any change in ambient temperature, ambient humidity or operating mode during the operation of the air conditioner;

[0130] The updating unit is used to update the first threshold of each parameter according to the ambient temperature change value, the ambient humidity change value and the operation mode weight, and to update the second threshold of each parameter according to the ambient temperature change value and the ambient humidity change value.

[0131] Optionally, the updating unit is specifically configured to: for any parameter, calculate H=H 0 +M×(k 1 ×|ΔT|+k 2 ×|ΔH|), obtain the first threshold value after the parameter is updated; and calculate L=L 0 +(k 3 ×|ΔT|+k 4 ×|ΔH|), and obtain the second threshold after the parameter is updated;

[0132] Among them, H represents the first threshold of the parameter, H 0 represents the initial setting value of the first threshold of the parameter, M represents the weight coefficient of the current operation mode, k 1 Indicates the preset first temperature coefficient, k 2 represents the preset first humidity coefficient, ΔT represents the ambient temperature change value, ΔH represents the ambient humidity change value, L represents the second threshold value of the parameter, L 0 represents the initial setting value of the second threshold of the parameter, k 3 Indicates the preset second temperature coefficient, k 4 Indicates the preset second humidity coefficient.

[0133] The above data acquisition device can execute the data acquisition method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the data acquisition method provided by the embodiment of the present invention.

[0134] An embodiment of the present invention further provides an air conditioner, comprising: the data acquisition device described in the above embodiment.

[0135] An embodiment of the present invention further provides a non-volatile computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data collection method described in the above embodiment is implemented.

[0136] An embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data collection method described in the above embodiment when executing the computer program.

[0137] Figure 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention, such as Figure 4 As shown, the electronic device includes:

[0138] One or more processors 410 and memory 420, Figure 4 A processor 410 is taken as an example.

[0139] The electronic device may further include: an input device 430 and an output device 440 .

[0140] The processor 410, the memory 420, the input device 430 and the output device 440 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0141] The memory 420 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the data acquisition method in the embodiment of the present invention. The processor 410 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 420, that is, implementing the above-mentioned data acquisition method.

[0142] The memory 420 may include a program storage area and a data storage area, wherein the program storage area may store an application required for operating the device and at least one function; the data storage area may store filtering thresholds of various parameters, etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0143] The input device 430 can receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 440 can include a display device such as a display screen.

[0144] The one or more modules are stored in the memory 420, and when executed by the one or more processors 410, the above-mentioned data collection method is performed.

[0145] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data collection method, characterized in that: include: During the operation of the air conditioner, the filtering threshold of each parameter is adjusted according to the changes in the environment and the operation mode, wherein different parameters correspond to their own filtering thresholds; Determining whether the current collected value of the corresponding parameter is valid data according to the filtering threshold; Upload valid data to the server.

2. The method according to claim 1, characterized in that The filtering threshold of any parameter includes: a first threshold and a second threshold, wherein the first threshold is greater than the second threshold; Judging whether the current collected value of the corresponding parameter is valid data according to the filtering threshold includes: For any parameter, the absolute value of the difference between the current collected value of the parameter and the reference value of the parameter is calculated to obtain the current variation range of the parameter; If the current variation of the parameter is greater than the first threshold value of the parameter, it is determined that the current collected value of the parameter is valid data, and the current collected value of the parameter is used as the reference value of the parameter; If the current variation range of the parameter is less than the second threshold value of the parameter, it is determined that the current collected value of the parameter is invalid data; If the current change range of the parameter is greater than or equal to the second threshold value of the parameter and less than or equal to the first threshold value of the parameter, it is determined whether the current collected value of the parameter is valid data based on the historical change range of the parameter and environmental variables.

3. The method according to claim 2, characterized in that Determine whether the current collected value of the parameter is valid data based on the historical change range of the parameter and environmental variables, including: Get the historical change range of the parameter; Determine the environmental weight coefficient according to the current environmental temperature and the current environmental humidity; Calculate the comprehensive change value of the parameter according to the current change range of the parameter, the historical change range, the first threshold, the second threshold and the environmental weight coefficient; If the comprehensive change value of the parameter is greater than or equal to the third threshold value of the parameter, it is determined that the current collected value of the parameter is valid data, and the current collected value of the parameter is used as the reference value of the parameter; If the comprehensive change value of the parameter is less than the third threshold value of the parameter, it is determined that the current collected value of the parameter is invalid data.

4. The method according to claim 3, characterized in that The comprehensive change value of this parameter is calculated according to the following formula: Wherein, P represents the comprehensive change value of the parameter; ΔD represents the current change amplitude of the parameter; D represents the average value of all change amplitudes of the parameter within the recent preset time, as the historical change amplitude of the parameter; H represents the first threshold value of the parameter; L represents the second threshold value of the parameter; W represents the environmental weight coefficient, T c Indicates the current ambient temperature, T a Indicates the average ambient temperature within the recent preset time, H c Indicates the current ambient humidity, H a It represents the average ambient humidity in the recent preset time, k5 represents the preset ambient temperature coefficient, and k6 represents the preset ambient humidity coefficient.

5. The method according to any one of claims 1 to 4, characterized in that The filtering threshold of any parameter includes: a first threshold and a second threshold, wherein the first threshold is greater than the second threshold; During the operation of the air conditioner, the filtering thresholds of various parameters are adjusted according to changes in the environment and the operation mode, including: During the operation of the air conditioner, any change in the ambient temperature, ambient humidity or operation mode is detected; The first threshold of each parameter is updated according to the ambient temperature change value, the ambient humidity change value and the operation mode weight, and the second threshold of each parameter is updated according to the ambient temperature change value and the ambient humidity change value.

6. The method according to claim 5, characterized in that Updating the first threshold of each parameter according to the ambient temperature change value, the ambient humidity change value and the operation mode weight, and updating the second threshold of each parameter according to the ambient temperature change value and the ambient humidity change value, including: For any parameter, H=H0+M×(k1×|ΔT|+k2×|ΔH|) is calculated to obtain the first threshold after the parameter is updated; and L=L0+(k3×|ΔT|+k4×|ΔH|) is calculated to obtain the second threshold after the parameter is updated; Among them, H represents the first threshold value of the parameter, H0 represents the initial setting value of the first threshold value of the parameter, M represents the weight coefficient of the current operating mode, k1 represents the preset first temperature coefficient, k2 represents the preset first humidity coefficient, ΔT represents the ambient temperature change value, ΔH represents the ambient humidity change value, L represents the second threshold value of the parameter, L0 represents the initial setting value of the second threshold value of the parameter, k3 represents the preset second temperature coefficient, and k4 represents the preset second humidity coefficient.

7. A data acquisition device, characterized in that: include: An adjustment module is used to adjust the filtering threshold of each parameter according to the environmental changes and the operating mode changes during the operation of the air conditioner, wherein different parameters correspond to their own filtering thresholds; A judgment module, used to judge whether the current collected value of the corresponding parameter is valid data according to the filtering threshold; The upload module is used to upload valid data to the server.

8. An air conditioner, characterized in that: include: The data acquisition device as claimed in claim 7.

9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data acquisition method according to any one of claims 1 to 6 when executing the computer program.

10. A non-volatile computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data collection method according to any one of claims 1 to 6 is implemented.