CN110131852B - Air conditioner data collection method and device, computer equipment and storage medium - Google Patents

Air conditioner data collection method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110131852B
CN110131852B CN201910383355.6A CN201910383355A CN110131852B CN 110131852 B CN110131852 B CN 110131852B CN 201910383355 A CN201910383355 A CN 201910383355A CN 110131852 B CN110131852 B CN 110131852B
Authority
CN
China
Prior art keywords
data
parameter
combination
parameter combination
air conditioner
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910383355.6A
Other languages
Chinese (zh)
Other versions
CN110131852A (en
Inventor
牟桂贤
申伟刚
陈宗衍
司徒沃荣
李石江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910383355.6A priority Critical patent/CN110131852B/en
Publication of CN110131852A publication Critical patent/CN110131852A/en
Application granted granted Critical
Publication of CN110131852B publication Critical patent/CN110131852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data

Landscapes

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

Abstract

The application relates to an air conditioner data collection method and device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps that linkage air conditioner data are obtained from the air conditioning equipment according to a preset collection period, the linkage air conditioner data comprise first parameters and corresponding first parameter information, the data volume is reduced by obtaining only changed air conditioner data, combination retrieval is carried out in a first parameter combination library, and whether a parameter combination determined based on the first parameters exists is determined; when the parameter combination exists, acquiring a combination code of the parameter combination; and taking the combined code number and the corresponding first parameter information as acquisition data and sending the acquisition data to a data collection server. The existing parameter combination can be transmitted after being replaced by the combined code, so that the data volume is reduced, and the transmission flow cost of the air conditioner data is effectively reduced.

Description

Air conditioner data collection method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an air conditioner data collection method and apparatus, a computer device, and a storage medium.
Background
Information technology is continuously developed, the mode of manual questionnaires is gradually quitted, and big data gradually becomes the mode of acquiring user information and product use condition information in various industries. In the air-conditioning industry, the operating condition of the air conditioner is influenced by countless dimensions such as different humanities, regions, climates, personal habits and the like, and countless possible working condition characteristics are generated.
In order to obtain more comprehensive working condition characteristics, the air conditioner data of all dimensions needs to be contained, the data acquisition range needs to be expanded to all air conditioner users nationwide, the air conditioner data acquisition stability needs to be ensured, the possibility of human intervention is reduced as much as possible, a DTU (data acquisition terminal) module needs to be configured to acquire the air conditioner data of the air conditioner equipment, and the data is transmitted to a server through wireless cellular data. The air conditioner data volume that needs to gather is big, when transmitting the air conditioner data who gathers for the collection side, has brought a large amount of flow costs for the enterprise.
Disclosure of Invention
In view of the above, it is necessary to provide an air conditioning data collection method, an apparatus, a computer device, and a storage medium that effectively reduce the transmission flow rate cost of air conditioning data.
An air conditioning data collection method, the method comprising:
acquiring linkage air conditioner data from air conditioning equipment according to a preset acquisition period, wherein the linkage air conditioner data comprises a first parameter and corresponding first parameter information;
performing combination retrieval in a first parameter combination library, and determining whether a parameter combination determined based on the first parameter exists;
when the parameter combination exists, acquiring a combination code of the parameter combination;
and taking the combined code number and the corresponding first parameter information as acquisition data and sending the acquisition data to a data collection server.
In one embodiment, the method further comprises the following steps:
and when the parameter combination does not exist, the first parameter and the corresponding first parameter information are used as acquisition data and are sent to a data collection server.
In one embodiment, the step of acquiring the linkage air conditioner data from the air conditioning equipment according to a preset acquisition cycle includes:
acquiring current period air conditioning data to air conditioning equipment according to a preset acquisition period, wherein the air conditioning data comprises second parameters and corresponding second parameter information;
comparing the current period air conditioner data with the last acquisition period air conditioner data to determine changed air conditioner data;
and determining the changed air conditioner data as linkage air conditioner data.
In one embodiment, the step of performing a combination search in a first parameter combination library to determine whether a parameter combination determined based on the first parameter exists includes:
determining a parameter combination according to each parameter in the first parameters;
performing unordered comparison in a first parameter combination library according to the parameter combination;
when the combination of the first parameter combination library has the same combination with each parameter of the parameter combination, determining that the parameter combination exists;
when the combination identical to each parameter of the parameter combination does not exist in the combination of the first parameter combination library, determining that the parameter combination does not exist.
In one embodiment, the step of sending the combination code and the corresponding first parameter information to a data collection server as collected data includes:
adjusting the position of the first parameter information according to the parameter sequence in the combined code to obtain the adjusted first parameter information;
and storing the combined code and the adjusted first parameter information into a minimum storage unit of a data frame, and sending the data frame to the data collection server.
In one embodiment, the method further comprises:
sending the version number of the first parameter combination library to the data collection server through heartbeat interaction;
receiving feedback data of the data collection server;
and updating the first parameter combination library according to the feedback data.
In one embodiment, the step of updating the first parameter combination library according to the feedback data includes:
updating the version number of the first parameter combination library according to the version number in the feedback data;
and updating the parameter combination in the first parameter combination library according to the addition and deletion parameter combination details in the feedback data.
An air conditioning data collection method, the method comprising:
receiving collected data sent by a data collecting terminal;
when the collected data carries a combined code, acquiring a parameter combination corresponding to the combined code;
and according to the parameter combination, determining parameter information corresponding to each parameter in the parameter combination in the acquired data to obtain linkage air conditioner data.
In one embodiment, the method further comprises the following steps:
when the acquired data is a first parameter and corresponding first parameter information;
and analyzing according to the first parameter and the corresponding first parameter information to obtain linkage air conditioner data.
In one embodiment, the method further comprises the following steps:
when the acquired data is a first parameter and corresponding first parameter information;
generating a combined code of the parameter combination determined by the first parameter according to a preset combined code generation mode;
and updating the second parameter combination library according to the combination code and the parameter combination.
In one embodiment, the method further comprises the following steps:
receiving the version number of a first parameter combination library sent by the data acquisition terminal through heartbeat interaction;
verifying the version of the first parameter combination library according to the version number, and determining whether the version is the latest version;
and when the version of the first parameter combination library is not the latest version, sending feedback data to the data acquisition terminal, wherein the feedback data comprises the latest version number and the added and deleted parameter combination details.
An air conditioning data collection device comprising:
the air conditioner data acquisition module is used for acquiring linkage air conditioner data from the air conditioner according to a preset acquisition cycle, wherein the linkage air conditioner data comprises a first parameter and corresponding first parameter information;
the combined retrieval module is used for performing combined retrieval in a first parameter combined library and determining whether a parameter combination determined based on the first parameter exists;
a combined code number obtaining module, configured to obtain a combined code number of the parameter combination when the parameter combination exists;
and the air conditioner data sending module is used for sending the combined code and the corresponding first parameter information to a data collection server as collected data.
An air conditioning data collection device comprising:
the data acquisition terminal is used for acquiring data;
the parameter combination acquisition module is used for acquiring a parameter combination corresponding to a combined code number when the acquired data carries the combined code number;
and the linkage air conditioner data acquisition module is used for determining parameter information corresponding to each parameter in the parameter combination in the acquired data according to the parameter combination to acquire linkage air conditioner data.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method.
According to the air conditioner data collection method and device, the computer equipment and the storage medium, the linkage air conditioner data are obtained from the air conditioner equipment according to the preset collection period, the linkage air conditioner data comprise the first parameters and the corresponding first parameter information, the data volume is reduced by only obtaining the changed air conditioner data, the combination retrieval is carried out in the first parameter combination library, and whether the parameter combination determined based on the first parameters exists or not is determined; when the parameter combination exists, acquiring a combination code of the parameter combination; and taking the combined code number and the corresponding first parameter information as acquisition data and sending the acquisition data to a data collection server. The existing parameter combination can be transmitted after being replaced by the combined code, so that the data volume is reduced, and the transmission flow cost of the air conditioner data is effectively reduced.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for collecting data from an air conditioner;
FIG. 2 is a schematic flow chart diagram illustrating a method for collecting air conditioning data according to one embodiment;
FIG. 3 is a flow chart illustrating a method for collecting air conditioning data according to one embodiment;
FIG. 4 is a schematic diagram of data interaction of an air conditioner data collection method in another embodiment;
FIG. 5 is a block diagram showing the construction of an air conditioning data collecting apparatus according to an embodiment;
FIG. 6 is a block diagram showing the construction of an air conditioning data collecting apparatus according to an embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment;
fig. 8 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The air conditioner data collection method provided by the application can be applied to the application environment shown in fig. 1. The air conditioning equipment 102 is connected to the data acquisition terminal 104 through a bus, and the data acquisition terminal 104 communicates with the data collection server 106 through a network by wireless. The data acquisition terminal 104 acquires linkage air-conditioning data from the air-conditioning equipment 102 according to a preset acquisition cycle, wherein the linkage air-conditioning data comprises a first parameter and corresponding first parameter information; the data acquisition terminal 104 performs combined retrieval in the first parameter combination library to determine whether a parameter combination determined based on the first parameter exists; when the parameter combination exists, acquiring a combination code of the parameter combination; and sending the combined code and the corresponding first parameter information to the data collection server 106 as collected data. The air conditioner 102 may be but not limited to a central air conditioner, an embedded air conditioner, and the like, the data collection terminal 104 may be but not limited to DTUs of various models (a DTU refers to a wireless terminal device dedicated for converting serial data into IP data or converting IP data into serial data and transmitting the serial data through a wireless communication network), and the like, and the data collection server 106 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, an air conditioner data collection method is provided, which is described by taking the method as an example applied to the data collection terminal 104 in fig. 1, and includes steps S220 to S280:
step S220, linkage air conditioner data are acquired from the air conditioning equipment according to a preset acquisition cycle, and the linkage air conditioner data comprise first parameters and corresponding first parameter information.
Wherein, the collection cycle refers to the time interval of collecting the air conditioner data, and the preset collection cycle can be the collection cycle determined according to the analysis of the change condition of the air conditioner data, such as: the air conditioner data can be obviously changed after 1 second, the preset acquisition period can be set to be 1 second, the air conditioner data can be obviously changed after 5 seconds, the preset acquisition period can be set to be 5 seconds, and the acquisition period can be in units of seconds, minutes and the like. The acquisition period can be set in advance, or after the acquisition period is set, the acquisition period can be analyzed according to the acquired data to determine whether the acquisition period needs to be adjusted. The air conditioning equipment can be a central air conditioner, and can be linkage air conditioning data of the whole central air conditioning system is acquired from the air conditioning equipment, wherein the linkage air conditioning data refers to air conditioning data which changes when the air conditioning data in the current acquisition period is compared with the air conditioning data in the previous acquisition period. The first parameter refers to all parameters in the changed air-conditioning data, the first parameter may include multiple parameters or only one parameter, and the first parameter information refers to all parameter information corresponding to all parameters in the changed air-conditioning data, such as: the air conditioning data that changes are: temperature: 25 ℃, humidity: 40%, then: the first parameter is: temperature, humidity, first parameter information is: 25 ℃ and 40%, the temperature parameter of the first parameter corresponds to 25% of the first parameter information, and the humidity parameter of the first parameter corresponds to 40% of the first parameter information.
In one embodiment, the step of acquiring the linkage air conditioner data from the air conditioner according to a preset acquisition cycle includes: acquiring current period air conditioning data to the air conditioning equipment according to a preset acquisition period, wherein the air conditioning data comprises second parameters and corresponding second parameter information; comparing the air conditioner data of the current period with the air conditioner data of the last acquisition period to determine changed air conditioner data; and determining the changed air conditioning data as linkage air conditioning data.
The preset acquisition cycle is 10 seconds, and the time for acquiring the air conditioning data last time is 12 o 'clock 30 min 40 seconds of 12 days of 2 months and 12 months in 2019, so that the air conditioning data in the current cycle is the air conditioning data acquired by 12 o' clock 30 min 50 seconds of 12 days of 2 months and 12 months in 2019. The air-conditioning data refers to all data of the whole central air-conditioning system, including changed air-conditioning data and unchanged air-conditioning data, the changed air-conditioning data refers to the air-conditioning data in the current period compared with the air-conditioning data in the last acquisition period, the second parameter information corresponding to the second parameter is changed, the second parameter refers to all parameters in the air-conditioning data, and the second parameter information refers to all parameter information corresponding to all parameters in the air-conditioning data, such as: suppose that the current period air-conditioning data includes: temperature: 25 ℃, humidity: 40%, power consumption: 100KWH, then: the second parameter is: temperature, humidity, power consumption, second parameter information is: 25 ℃, 40% and 100KWH, the temperature parameter of the second parameter corresponds to 25% of the second parameter information, the humidity parameter of the second parameter corresponds to 40% of the second parameter information, the power consumption parameter of the second parameter corresponds to 100KWH of the second parameter information, and the air conditioning data in the previous collection period is assumed as follows: temperature: 24 ℃, humidity: 30%, power consumption: 100KWH, then: the second parameter is: temperature, humidity, power consumption, second parameter information is: 24 ℃, 30% and 100KWH, the temperature parameter of the second parameter corresponds to 24% of the second parameter information, the humidity parameter of the second parameter corresponds to 30% of the second parameter information, the power consumption parameter of the second parameter corresponds to 100KWH of the second parameter information, and the changed air conditioner data are as follows: temperature: 25 ℃, humidity: and 40%, the linkage air-conditioning data is as follows: temperature: 25 ℃, humidity: 40 percent.
By only acquiring the linkage air conditioner data, the data volume of data transmission can be reduced, the flow cost is saved, the contact between the data can be prevented from being disturbed, and an effective basis is provided for subsequent data mining.
And step 240, performing combination retrieval in the first parameter combination library, and determining whether a parameter combination determined based on the first parameter exists.
The parameter combination determined by the first parameter refers to a set formed by all parameters in the first parameter in the linkage air-conditioning data, such as: the first parameters are: and if the temperature and the humidity are two parameters, the set formed by the temperature and the humidity is a parameter combination, and all the parameters in the parameter combination determined by the first parameter are all the parameters in the first parameter. The first parameter combination database is used for storing the existing parameter combination data by the data acquisition terminal, the existing parameter combination data can be linkage air-conditioning data in all central air-conditioning systems collected by the data acquisition server, the determined parameter combination is obtained, the existing parameter combination data is obtained from the data acquisition server and stored in the first parameter combination database, or the parameter group determined by the linkage air-conditioning data acquired by the data acquisition terminal in the central air-conditioning system per se is cooperated into the existing parameter combination data in the acquisition period. The existing parameter combination data are all parameter combinations determined by linkage air conditioner data acquired in a period before the current acquisition period. And comparing the parameter combination determined based on the first parameter with the existing parameter combination in the first parameter combination library, and judging whether the first parameter combination library has the same combination of the parameter combination determined based on the first parameter.
In one embodiment, the step of performing a combination search in the first parameter combination library to determine whether a parameter combination determined based on the first parameter exists comprises: determining a parameter combination according to each parameter in the first parameters; performing disorder comparison in a first parameter combination library according to the parameter combination; when the combination of the first parameter combination library has the combination same as each parameter of the parameter combination, determining that the parameter combination exists; when the combination identical to each parameter of the parameter combination does not exist in the combinations of the first parameter combination library, it is determined that the parameter combination does not exist.
Wherein, assume the first parameters are: the two parameters of temperature and humidity are combined, the set of temperature and humidity is a parameter combination, and the unordered comparison means that the sequence of each parameter in the parameter combination does not need to be considered, such as: the parameter combination is temperature and humidity, in the comparison process, only the combination in the first parameter combination library is needed to be compared, whether the combination only has the combination of the two parameters of temperature and humidity is not needed to be considered, the parameter combination is assumed to be temperature and humidity, the combination in the first parameter combination library has a set consisting of two parameters of { temperature and humidity }, or a set consisting of two parameters of { humidity and temperature } can be determined that the combination of the first parameter combination library has the same combination as each parameter of the parameter combination, the combination of the first parameter combination library has no set consisting of two parameters of { temperature and humidity } or the set consisting of two parameters of { humidity and temperature } in the assumption that the parameter combination is temperature and humidity, the combinations in the first parameter combination library do not have the same combination as each parameter of the parameter combination.
Step 260, when the parameter combination exists, acquiring the combination code of the parameter combination.
The combination code of the parameter combination is generated according to a preset combination code generation mode when the data collection server collects air conditioner data from each central air conditioner and the parameter combination appears for the first time. Corresponding parameter combinations can be obtained through the combination codes, and the combination codes can be used for identifying each parameter combination. When the parameter combination exists in the first parameter combination library, the combination code may be correspondingly obtained in the first parameter combination library.
And step 280, sending the combined code and the corresponding first parameter information as collected data to a data collection server.
The combination code is used to replace the parameter combination, and the corresponding first parameter information is the first parameter information corresponding to the parameter combination, that is, the first parameter information corresponding to the first parameter.
In one embodiment, the step of sending the combination code and the corresponding first parameter information to the data collection server as the collected data includes: adjusting the position of the first parameter information according to the parameter sequence in the combined code to obtain the adjusted first parameter information; and storing the combined code and the adjusted first parameter information into a minimum storage unit of the data frame, and sending the data frame to a data collection server.
Wherein, suppose linkage air conditioner data is: temperature: 25 ℃, humidity: 40%, the parameter order of the parameter combination determined by the first parameter is: temperature, humidity, the parameter information of first parameter information is ordered as: and at 25 ℃ and 40%, assuming the parameter combination determined by the first parameter, and the parameter sequence in the corresponding combination code is as follows: humidity and temperature, the position of the first parameter information (i.e. parameter information sequence) is adjusted to: 40% and 25 ℃. The combined code and the adjusted first parameter information are stored in a minimum storage unit of the data frame, the combined code can be carried in a frame head of the data frame, whether the combined code or the parameter combination is carried is convenient to determine, the minimum storage unit is bit, one byte has 8 bits, one bit can only express 0 and 1, and a plurality of data which only need to distinguish 1 (yes) or 0 (no) exist in the air-conditioning data, so that the Boolean air-conditioning data is stored by using one bit as far as possible, the minimum storage unit is fully utilized, the collected data is stored in a transmission unit (byte) as small as possible, and the problem that the Boolean data collection head has little big data is solved.
According to the air conditioner data collection method, the linkage air conditioner data are obtained from the air conditioner equipment according to the preset collection period, the linkage air conditioner data comprise the first parameters and the corresponding first parameter information, the data volume is reduced by only obtaining the changed air conditioner data, the combination retrieval is carried out in the first parameter combination library, and whether the parameter combination determined based on the first parameters exists is determined; when the parameter combination exists, acquiring a combination code of the parameter combination; and taking the combined code number and the corresponding first parameter information as acquisition data and sending the acquisition data to a data collection server. The existing parameter combination can be transmitted after being replaced by the combined code, so that the data volume is reduced, and the transmission flow cost of the air conditioner data is effectively reduced.
In one embodiment, further comprising: and when the parameter combination does not exist, the first parameter and the corresponding first parameter information are used as collected data and sent to the data collection server.
If the parameter combination is temperature and humidity, and there is no set of temperature and humidity or no set of humidity and temperature in the combination of the first parameter combination library, then there is no combination of the same parameters as the parameter combination in the combination of the first parameter combination library, and then the first parameter and the corresponding first parameter information are stored in the minimum storage unit of the data frame, and the data frame is sent to the data collection server.
In one embodiment, the method further comprises: sending the version number of the first parameter combination library to a data collection server through heartbeat interaction; receiving feedback data of a data collection server; and updating the first parameter combination library according to the feedback data.
The heartbeat interaction is timing handshake interaction, generally used to confirm a connection state, and may also carry a small amount of data information. The method is mainly used for judging whether the first parameter combination library needs to be updated or not in the process of updating the first parameter combination library. And the version number of the first parameter combination library is the version number of the current first parameter combination library of the data acquisition terminal. The feedback data comprises the latest version number and the added and deleted parameter combination details, and the data acquisition terminal can perform combination updating on the combination in the first parameter combination library according to the added and deleted parameter combination details and modify the version number of the updated first parameter combination library. The version number of the first parameter combination library is sent to the data collection server through heartbeat interaction, and meanwhile, a library data check code is also sent, and the library data check code is used for checking the uniqueness of data, so that the situation that the data collection server makes a mistake in judging whether the first parameter combination library needs to be updated or not due to delay and the like in the transmission process is avoided.
In one embodiment, the step of updating the first parameter combination library according to the feedback data comprises: updating the version number of the first parameter combination library according to the version number in the feedback data; and updating the parameter combination in the first parameter combination library according to the addition and deletion parameter combination details in the feedback data.
And updating the version number by replacing the version number of the first parameter combination library with the version number in the feedback data, and adding or deleting the existing parameter combination in the first parameter combination library according to the added and deleted parameter combination details in the feedback data. The first parameter combination library can be updated in time, and whether the parameter combination of the acquired linkage air conditioner data exists can be judged more accurately, so that the data volume is reduced, and the transmission flow cost of the air conditioner data is effectively reduced.
As shown in fig. 3, an air-conditioning data collection method is provided, which is described by taking the method as an example applied to the data collection server 106 in fig. 1, and includes steps S320 to S360:
step S320, receiving the collected data sent by the data collecting terminal.
And the acquired data is acquired by the data acquisition terminal corresponding to the central air conditioner. The data acquisition terminals can be a plurality of data acquisition terminals, and can be data acquisition terminals of all central air conditioners which need to acquire data, each central air conditioner corresponds to one data acquisition terminal, and each data acquisition terminal is received to send each acquired data. The acquisition data may be transmitted via data frames.
Step S340, when the collected data carries the combined code, acquiring the parameter combination corresponding to the combined code.
Whether the carried information is the combined code can be judged by analyzing the collected data in the data frame, the combined code can be judged by storing the combined code in different formats of the data frame, or the data types of the combined code are different, each combined code corresponds to a unique parameter combination, and therefore the corresponding parameter combination can be obtained by indexing the combined code.
And step S360, determining parameter information corresponding to each parameter in the parameter combination in the collected data according to the parameter combination, and obtaining linkage air conditioner data.
Wherein, it is assumed that the content of the received collected data is: the combination code is 1, the parameter information is 101010, the corresponding parameter combination is obtained based on the combination code 1, ABCDEF, and the linkage air conditioner data is as follows: the parameter information of the parameter a is 1, the parameter information of the parameter B is 0, the parameter information of the parameter C is 1, the parameter information of the parameter D is 0, the parameter information of the parameter E is 1, and the parameter information of the parameter F is 0.
According to the air conditioner data collection method, the collected data sent by the data collection terminal are received, when the collected data carry the combined code, the parameter combination corresponding to the combined code is obtained, and the parameter information corresponding to each parameter in the parameter combination in the collected data is determined according to the parameter combination, so that the linkage air conditioner data is obtained. The existing parameter combination can be transmitted after being replaced by the combined code, so that the data volume is reduced, and the transmission flow cost of the air conditioner data is effectively reduced.
In one embodiment, further comprising:
when the acquired data is the first parameter and the corresponding first parameter information; and analyzing according to the first parameter and the corresponding first parameter information to obtain linkage air conditioner data.
Whether the collected data in the data frame carries the combined code or not can be analyzed, if not, the collected data is determined to be the first parameter and the corresponding first parameter information, and the analysis is performed according to the first parameter and the corresponding first parameter information to obtain linkage air conditioner data, such as: assume that the content of the received collected data is: the first parameter is ABCDEF, and the first parameter information is: 101010, the linkage air conditioner data is: the parameter information of the parameter a is 1, the parameter information of the parameter B is 0, the parameter information of the parameter C is 1, the parameter information of the parameter D is 0, the parameter information of the parameter E is 1, and the parameter information of the parameter F is 0.
In one embodiment, further comprising: when the acquired data is the first parameter and the corresponding first parameter information; generating a combined code of a parameter combination determined by the first parameter according to a preset combined code generation mode; and updating the second parameter combination library according to the combination code and the parameter combination.
When the acquired data is the first parameter and the corresponding first parameter information, it is indicated that all the parameters in the first parameter are changed for the first time, a combined code is generated for the parameter combination formed by the parameters in the first parameter, and the setting is performed through a preset combined code generation mode, wherein the preset combined code generation mode can be generated according to a certain rule or can be generated according to a sequence, and only the combined code is required to be unique. And adding the combined code and the parameter combination to a second parameter combination library, and changing the version number of the second parameter combination library, wherein the second parameter combination library is a database used for storing the existing parameter combination data by a data collection server.
In one embodiment, further comprising: receiving a version number of a first parameter combination library sent by a data acquisition terminal through heartbeat interaction; verifying the version of the first parameter combination library according to the version number, and determining whether the version is the latest version; when the version of the first parameter combination library is not the latest version, sending feedback data to the data acquisition terminal, wherein the feedback data comprises: and combining and detailing the latest version number and the added and deleted parameters.
The version number of the first parameter combination library is the current version number of the data acquisition terminal, whether the first parameter combination library of the data acquisition terminal is the latest version can be judged according to the version number, when the version number of the first parameter combination library sent by the data acquisition terminal is the same as that of the second parameter combination library, the first parameter combination library of the data acquisition terminal is the latest version and does not need to be updated, when the version number of the first parameter combination library sent by the data acquisition terminal is different from that of the second parameter combination library, the first parameter combination library of the data acquisition terminal is not the latest version, and the detailed and latest version numbers of the parameter combinations are determined according to the version of the first parameter combination library of the data acquisition terminal and compared with that of the second parameter combination library, and feedback data are sent to the data acquisition terminal, wherein the feedback data comprise: and combining and detailing the latest version number and the added and deleted parameters. The first parameter combination library of the data acquisition terminal can be updated in time, so that the data acquisition terminal can more accurately judge whether the parameter combination of the acquired linkage air conditioner data exists, the data volume is reduced, and the transmission flow cost of the air conditioner data is effectively reduced.
As shown in fig. 4, an air conditioner data collection method is provided, which is implemented as follows:
in the normal operating process of air conditioner, pass through data network and data collection server to the data acquisition terminal and be connected, carry out the heartbeat interaction with the data collection server every other cycle, the data acquisition terminal lasts the air conditioning data who gathers and analyze air conditioning equipment, handles the air conditioning data that the data acquisition terminal gathered, obtains the data collection, and wherein the air conditioning data is handled the step and is included: selecting linked air conditioner data which are changed at the same time from the collected air conditioner data, aiming at the Boolean-type linked air conditioner data which are changed at the same time, firstly determining a parameter combination, searching (the searching is disordered comparison) whether the parameter combination exists in a first parameter combination library, if so, assigning a combination code of the parameter combination before a data frame to be sent, and then storing the parameter combinations corresponding to parameter information into the data frame one by one. If the parameter combination does not exist in the first parameter combination library, assigning the parameter combination to a data frame to be sent, and storing the parameter combinations corresponding to the parameter information into the data frame one by one. When the data frame is stored, a minimum storage unit (bit) is adopted to re-combine the collected Boolean-type linkage air-conditioning data (namely, parameter combination and parameter information) according to a combination sequence (the combination comprises a combination code number + the parameter information, the parameter combination + the parameter information) and then store the data into a minimum transmission unit (byte). The data in the data frame and the assigned combined code or the data in the data frame and the assigned parameter are combined into collected data, and the collected data are sent to a data collection server. After the air conditioning data are processed, the problems of repeated air conditioning data storage and little big data of a Boolean data acquisition head can be solved.
The data collection server determines whether the parameter combination is the existing parameter combination or not based on whether the combination code or the parameter combination is assigned in the data frame, and if the parameter combination is the existing parameter combination, the parameter information in the data frame is directly analyzed to obtain the collected data and store the data; if the parameter combination is the new parameter combination, analyzing the parameter combination and the parameter information in the data frame, acquiring and storing the acquired data, generating a combination code of the new parameter combination, updating a second parameter combination library in the data server, and changing the version number of the second parameter combination library.
In heartbeat interaction, a data acquisition terminal sends a first parameter combination library version number and a library data check code to a data acquisition server, the data acquisition server compares the version number in a second parameter combination library, and if the version number of the first parameter combination library sent by the data acquisition terminal is different from the version number of the second parameter combination library, the latest version number and the added and deleted parameter combination details are sent to the data acquisition terminal according to the version of the second parameter combination library.
And after receiving the latest version number and the added and deleted parameter combination details, the data acquisition terminal updates the first parameter combination library (the updating content comprises the parameter combination, the combination code number and the version number corresponding to the parameter combination). The first parameter combination library of the data acquisition terminal can be updated in time, so that the data acquisition terminal can more accurately judge whether the parameter combination of the acquired linkage air conditioner data exists, the data volume is reduced, and the transmission flow cost of the air conditioner data is effectively reduced.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided an air conditioning data collecting apparatus applied to the data collecting terminal 104, the air conditioning data collecting apparatus corresponding to an air conditioning data collecting method applied to the data collecting terminal 104, including:
the air conditioner data acquisition module 310 is configured to acquire linkage air conditioner data from an air conditioner according to a preset acquisition cycle, where the linkage air conditioner data includes a first parameter and corresponding first parameter information;
a combination searching module 320, configured to perform a combination search in a first parameter combination library, and determine whether a parameter combination determined based on the first parameter exists;
a combination code number obtaining module 330, configured to obtain a combination code number of the parameter combination when the parameter combination exists;
and the air conditioner data sending module 340 is configured to send the combination code and the corresponding first parameter information to a data collection server as collected data.
In one embodiment, as shown in fig. 6, there is provided an air conditioning data collecting apparatus applied to the data collecting server 106, the air conditioning data collecting apparatus corresponding to an air conditioning data collecting method applied to the data collecting server 106, including:
a collected data receiving module 510, configured to receive collected data sent by a data collecting terminal;
a parameter combination obtaining module 520, configured to obtain a parameter combination corresponding to a combination code when the collected data carries the combination code;
and a linkage air conditioner data obtaining module 530, configured to determine, according to the parameter combination, parameter information corresponding to each parameter in the parameter combination in the collected data, and obtain linkage air conditioner data.
For specific limitations of the air conditioning data device, reference may be made to the above limitations of the air conditioning data method, which are not described herein again. All or part of each module in the air conditioner data device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server or a terminal, etc., and when the computer device is a server, its internal structure diagram may be as shown in fig. 7, including a processor, a memory, a network interface, and a database connected by a system bus. When the computer device is a terminal, its internal structure diagram may be as shown in fig. 8, and includes a processor, a memory, a network interface, a display screen, and an input device, which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as parameter combinations and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an air conditioning data collection method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. An air conditioning data collection method, the method comprising:
acquiring linkage air conditioner data from air conditioner equipment according to a preset acquisition cycle, wherein the linkage air conditioner data represent air conditioner data which change when the air conditioner data of the current acquisition cycle are compared with the air conditioner data of the previous acquisition cycle, and the linkage air conditioner data comprise first parameters and corresponding first parameter information;
according to each parameter in the first parameters, performing combined retrieval in a first parameter combination library to determine whether a parameter combination determined based on each parameter in the first parameters exists, wherein the first parameter combination library is used for storing a database of the existing parameter combinations;
when the parameter combination exists, acquiring a combination code of the parameter combination from the first parameter combination library, wherein the combination code is used for identifying the corresponding parameter combination, and the combination code is generated according to a preset combination code generation mode when the parameter combination appears for the first time when the data collection server collects air conditioner data from each air conditioner;
performing position adjustment on the first parameter information according to the parameter sequence in the combined code to obtain adjusted first parameter information, storing the combined code and the adjusted first parameter information into a minimum storage unit of a data frame, and sending the data frame to the data collection server, wherein the combined code is carried in a frame header of the data frame, and the data collection server obtains corresponding linkage air conditioner data based on the combined code;
sending the version number of the first parameter combination library to the data collection server through heartbeat interaction, receiving feedback data of the data collection server, updating the version number of the first parameter combination library according to the version number in the feedback data, and updating the parameter combination in the first parameter combination library according to the adding and deleting parameter combination details in the feedback data.
2. The method of claim 1, further comprising:
and when the parameter combination does not exist, storing the first parameter and the corresponding first parameter information into a minimum storage unit of a data frame, and sending the data frame to the data collection server.
3. The method of claim 1, wherein the step of acquiring the linked air conditioning data from the air conditioning equipment according to a preset acquisition cycle comprises:
acquiring current period air conditioning data to air conditioning equipment according to a preset acquisition period, wherein the air conditioning data comprises second parameters and corresponding second parameter information;
comparing the current period air conditioner data with the last acquisition period air conditioner data to determine changed air conditioner data;
and determining the changed air conditioner data as linkage air conditioner data.
4. The method of claim 1, wherein the step of performing a combination search in a first parameter combination library to determine whether a parameter combination determined based on the first parameter exists comprises:
determining a parameter combination according to each parameter in the first parameters;
performing unordered comparison in a first parameter combination library according to the parameter combination;
when the combination of the first parameter combination library has the same combination with each parameter of the parameter combination, determining that the parameter combination exists;
when the combination identical to each parameter of the parameter combination does not exist in the combination of the first parameter combination library, determining that the parameter combination does not exist.
5. An air conditioning data collection method, the method comprising:
receiving collected data sent by a data collecting terminal through a data frame, wherein the collected data are stored in a minimum storage unit of the data frame;
when the collected data carries a combined code, acquiring a parameter combination corresponding to the combined code from a second parameter combination library, wherein the combined code is used for identifying the corresponding parameter combination, and the combined code is generated according to a preset combined code generation mode when the parameter combination appears for the first time when the data collection server collects air conditioner data from each air conditioner;
determining parameter information corresponding to each parameter in the parameter combination in the collected data according to the parameter combination to obtain linkage air-conditioning data, wherein the linkage air-conditioning data represents air-conditioning data which changes when the air-conditioning data in the current collection period is compared with the air-conditioning data in the previous collection period;
receiving a version number of a first parameter combination library sent by the data acquisition terminal through heartbeat interaction, verifying the version of the first parameter combination library according to the version number, determining whether the version is the latest version, and sending feedback data to the data acquisition terminal when the version of the first parameter combination library is not the latest version, wherein the feedback data comprises the latest version number and the added and deleted parameter combination details.
6. The method of claim 5, further comprising:
when the acquired data is a first parameter and corresponding first parameter information;
and analyzing according to the first parameter and the corresponding first parameter information to obtain linkage air conditioner data.
7. The method of claim 5 or 6, further comprising:
when the acquired data is a first parameter and corresponding first parameter information;
generating a combined code of the parameter combination determined by the first parameter according to a preset combined code generation mode;
and updating the second parameter combination library according to the combination code and the parameter combination.
8. An air conditioning data collection device, comprising:
the system comprises an air conditioner data acquisition module, a data processing module and a data processing module, wherein the air conditioner data acquisition module is used for acquiring linkage air conditioner data from air conditioning equipment according to a preset acquisition cycle, the linkage air conditioner data represents air conditioner data which changes when the air conditioner data in the current acquisition cycle is compared with the air conditioner data in the previous acquisition cycle, and the linkage air conditioner data comprises first parameters and corresponding first parameter information;
the combined retrieval module is used for performing combined retrieval on a first parameter combined library according to each parameter in the first parameters, and determining whether a parameter combination determined based on each parameter in the first parameters exists or not, wherein the first parameter combined library is used for storing a database of the existing parameter combination;
a combined code number obtaining module, configured to obtain a combined code number of the parameter combination from the first parameter combination library when the parameter combination exists, where the combined code number is used to identify the corresponding parameter combination, and the combined code number is a combined code number generated according to a preset combined code number generation manner when the data collection server collects air-conditioning data from each air-conditioning device for the first time when the parameter combination occurs;
the air conditioner data sending module is used for carrying out position adjustment on the first parameter information according to the parameter sequence in the combined code to obtain adjusted first parameter information, storing the combined code and the adjusted first parameter information into a minimum storage unit of a data frame, and sending the data frame to the data collection server, wherein the combined code is carried in a frame header of the data frame, and the data collection server obtains corresponding linkage air conditioner data based on the combined code;
and the updating module is used for sending the version number of the first parameter combination library to the data collection server through heartbeat interaction, receiving feedback data of the data collection server, updating the version number of the first parameter combination library according to the version number in the feedback data, and updating the parameter combination in the first parameter combination library according to the adding and deleting parameter combination details in the feedback data.
9. An air conditioning data collection device, comprising:
the data acquisition terminal comprises an acquisition data receiving module, a data frame processing module and a data processing module, wherein the acquisition data receiving module is used for receiving acquisition data sent by the data acquisition terminal through a data frame, and the acquisition data is stored in a minimum storage unit of the data frame;
a parameter combination obtaining module, configured to obtain, when the collected data carries a combination code, a parameter combination corresponding to the combination code from a second parameter combination library, where the combination code is used to identify the corresponding parameter combination, and the combination code is a combination code generated according to a preset combination code generation manner when the data collection server collects air-conditioning data from each air-conditioning device and the parameter combination occurs for the first time;
the linkage air conditioner data acquisition module is used for determining parameter information corresponding to each parameter in the parameter combination in the collected data according to the parameter combination to acquire linkage air conditioner data, and the linkage air conditioner data represents air conditioner data which changes when the air conditioner data in the current collection period is compared with the air conditioner data in the previous collection period;
the feedback module is used for receiving the version number of the first parameter combination library sent by the data acquisition terminal through heartbeat interaction, verifying the version of the first parameter combination library according to the version number, determining whether the version is the latest version, and sending feedback data to the data acquisition terminal when the version of the first parameter combination library is not the latest version, wherein the feedback data comprises the latest version number and the added and deleted parameter combination details.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201910383355.6A 2019-05-08 2019-05-08 Air conditioner data collection method and device, computer equipment and storage medium Active CN110131852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910383355.6A CN110131852B (en) 2019-05-08 2019-05-08 Air conditioner data collection method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910383355.6A CN110131852B (en) 2019-05-08 2019-05-08 Air conditioner data collection method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110131852A CN110131852A (en) 2019-08-16
CN110131852B true CN110131852B (en) 2021-02-02

Family

ID=67576888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910383355.6A Active CN110131852B (en) 2019-05-08 2019-05-08 Air conditioner data collection method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110131852B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112378034A (en) * 2020-10-29 2021-02-19 四川虹美智能科技有限公司 Central air-conditioning control system and method
CN117249544A (en) * 2022-06-10 2023-12-19 佛山市顺德区美的电子科技有限公司 Control method, device, apparatus, medium and program product for air conditioning apparatus

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2939933B2 (en) * 1994-03-11 1999-08-25 株式会社エヌ・ティ・ティ・データ Communication system for time series information
CN101741880A (en) * 2008-11-10 2010-06-16 江苏省电力公司南京供电公司 Power service mobile service system-based method for interacting wireless remote data
CN106152394A (en) * 2015-05-11 2016-11-23 李彬 Data center's entirety energy consuming solution and system
CN105049094B (en) * 2015-07-16 2018-09-28 陈飞 A kind of method and system of the multigroup parameter transcoding transmission of complexity
CN106941458A (en) * 2017-02-21 2017-07-11 深圳市智物联网络有限公司 The method and device of data transfer
CN107864195A (en) * 2017-10-31 2018-03-30 上海雅直科技有限公司 A kind of Edge Server being used in building and its method of work
CN108173972B (en) * 2018-02-10 2021-01-19 杭州后博科技有限公司 Method and system for reducing transmission quantity of iron tower data

Also Published As

Publication number Publication date
CN110131852A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110647438B (en) Event monitoring method and device, computer equipment and storage medium
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN108897638B (en) Data backup method and device, computer equipment and storage medium
CN110866198B (en) Static resource caching method, system, device, computer equipment and storage medium
CN110131852B (en) Air conditioner data collection method and device, computer equipment and storage medium
CN110880014B (en) Data processing method, device, computer equipment and storage medium
CN109002424B (en) File format conversion method and device, computer equipment and storage medium
CN109413153B (en) Data crawling method and device, computer equipment and storage medium
CN110717647A (en) Decision flow construction method and device, computer equipment and storage medium
CN110941555A (en) Test case recommendation method and device, computer equipment and storage medium
CN111737227B (en) Data modification method and system
CN111107042B (en) Message parsing method and device, computer equipment and storage medium
CN111177121A (en) Order data feedback method and device, computer equipment and storage medium
CN112613067A (en) User behavior data acquisition method and device, computer equipment and storage medium
CN111741112A (en) File downloading method, device, equipment and storage medium based on artificial intelligence
CN112051771B (en) Multi-cloud data acquisition method and device, computer equipment and storage medium
CN111176767A (en) Table data processing method and device, computer equipment and storage medium
CN112351088A (en) CDN cache method, device, computer equipment and storage medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN111177217A (en) Data preprocessing method and device, computer equipment and storage medium
CN109614399B (en) Bitmap data query method and device, computer equipment and storage medium
CN109218131B (en) Network monitoring method and device, computer equipment and storage medium
CN110659435A (en) Page data acquisition processing method and device, computer equipment and storage medium
CN108389124B (en) Data processing method, data processing device, computer equipment and storage medium
CN113419950A (en) Method and device for generating UI automation script, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant