CN113566878B - Environment data detection method and device - Google Patents

Environment data detection method and device Download PDF

Info

Publication number
CN113566878B
CN113566878B CN202110729987.0A CN202110729987A CN113566878B CN 113566878 B CN113566878 B CN 113566878B CN 202110729987 A CN202110729987 A CN 202110729987A CN 113566878 B CN113566878 B CN 113566878B
Authority
CN
China
Prior art keywords
data
environment
target
environmental data
sensors
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
CN202110729987.0A
Other languages
Chinese (zh)
Other versions
CN113566878A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110729987.0A priority Critical patent/CN113566878B/en
Publication of CN113566878A publication Critical patent/CN113566878A/en
Application granted granted Critical
Publication of CN113566878B publication Critical patent/CN113566878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The application discloses a method and a device for detecting environmental data. Wherein the method comprises the following steps: receiving a query request for querying environment data of a target environment; responding to the inquiry request, and transmitting the effective environment data with the generation time within the effective time; receiving report data transmitted by a plurality of sensors arranged in a target environment under the condition that effective environment data are not stored, wherein the report data comprise environment data detected by the plurality of sensors; determining the environmental data of the target environment according to the preset weight corresponding to each sensor and the environmental data in the reported data; and transmitting the determined environmental parameters. The application solves the technical problems that the temperature and humidity of the detection space of a plurality of sensors in the related technology are difficult to comprehensively coordinate, and have a certain difference with the real situation.

Description

Environment data detection method and device
Technical Field
The application relates to the field of environment detection, in particular to a method and a device for detecting environment data.
Background
As smart home devices are becoming more common, when the smart home devices autonomously adjust environmental data, the collection of the environmental data is particularly important. FIG. 3 is a flow chart of environmental data detection in the prior art, as shown in FIG. 3, a method for collecting environmental data includes the following steps:
step 1: a user initiates inquiry of temperature and humidity environment data of a family bedroom, a living room and other spaces through APP or voice;
step 2: the platform service detects a device list in a user query space;
step 3: acquiring equipment with queried environment data in a user space equipment list, and selecting one of the equipment;
step 4: if the cloud end of the device has the newer aged data, the device returns directly, otherwise, a device control instruction is issued, and the device reports the state;
step 5: reporting data by the equipment;
step 6: the platform reports data through the equipment, and obtains the function of inquiring the environment information by the user in the data, and obtains the function value { such as the specific value of the temperature function };
step 7: the platform returns the value obtained in step 6 directly to the application.
In the related art, environmental data such as temperature and humidity of a home space are directly acquired on temperature and humidity acquisition equipment in response to a query request of a user, and temperature and humidity information of one equipment under the home space is actually directly acquired.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for detecting environmental data, which at least solve the technical problems that the temperature and the humidity of a plurality of sensors in the related technology are difficult to comprehensively coordinate, and have a certain difference with the real situation.
According to an aspect of an embodiment of the present application, there is provided a method for detecting environmental data, including: receiving a query request for querying environment data of a target environment; responding to the inquiry request, and transmitting the effective environment data with the generated time within the effective time to a user; receiving report data transmitted by a plurality of sensors arranged in the target environment under the condition that the effective environment data is not stored, wherein the report data comprises environment data detected by the plurality of sensors; determining the environmental data of the target environment according to the preset weight corresponding to each sensor and the environmental data in the reported data; and sending the determined environment parameters.
Optionally, receiving the reported data transmitted by the plurality of sensors disposed in the target environment without storing the valid environment data includes: transmitting a query instruction to a plurality of sensors in response to the query request; and receiving the report data reported by the plurality of sensors in response to the query instruction, storing the report data, and recording the report time.
Optionally, determining the environmental data of the target environment according to preset weights corresponding to the plurality of sensors and the environmental data in the report data includes: selecting reported data of a plurality of sensors in effective time as target data; and determining the environment data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights.
Optionally, the preset weights include: the first preset weight and the second preset weight; the first preset weight is the weight of the precision of the acquisition parameter item of the sensor; the second preset weight is the weight of the parameter item acquired by the sensor.
Optionally, determining the environmental data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights includes: calculating a value of a parameter item of the environment data of the target environment by:wherein Z is the value of the parameter item of the environmental data of the target environment, Z i Representing parameter items in target data of the ith sensor, D i A first preset weight representing the parameter item of the ith sensor, F i A second preset weight representing the parameter item of the ith sensor, i being a natural number greater than between 1 and n; and determining the environment data of the target environment according to the values of a plurality of parameter items of the environment data of the target environment.
Optionally, before determining the environmental data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights, the method further includes: determining a value of a parameter item of target data of the sensor; and taking the average value of the plurality of parameter items as the value of the parameter item of the target data when the parameter items of the target data are a plurality of.
Optionally, after determining the environmental data of the target environment according to the plurality of parameter items of the environmental data of the target environment, the method further includes: recording the generation time of the environment data; when the time difference between the generation time of the environmental data and the generation time of the last environmental data is smaller than the effective time, replacing the last environmental data with the newly generated environmental data to serve as the environmental data of the effective time; and generating an environment data curve of the target environment with the effective time as time granularity according to the environment data of the effective times.
According to another aspect of the embodiment of the present application, there is also provided an apparatus for detecting environmental data, including: the first receiving module is used for receiving a query request for querying environment data of the target environment; the first sending module is used for responding to the query request and sending the effective environment data with the generation time within the effective time; the second receiving module is used for receiving reporting data transmitted by a plurality of sensors arranged in the target environment under the condition that the effective environment data are not stored, wherein the reporting data comprise environment data detected by the plurality of sensors; the determining module is used for determining the environmental data of the target environment according to the preset weight corresponding to each sensor and the environmental data in the reported data; and the second sending module is used for sending the determined environment parameters.
According to another aspect of the embodiment of the present application, there is further provided a processor, where the processor is configured to run a program, and when the program runs, perform the method for detecting environmental data according to any one of the above.
According to another aspect of the embodiment of the present application, there is further provided a computer storage medium, where the computer storage medium includes a stored program, and when the program runs, the device in which the computer storage medium is controlled to execute the method for detecting environmental data according to any one of the above.
In the embodiment of the application, a query request for receiving environment data for querying a target environment is adopted; responding to the inquiry request, and transmitting the effective environment data with the generated time within the effective time to a user; receiving report data transmitted by a plurality of sensors arranged in a target environment under the condition that effective environment data are not stored, wherein the report data comprise environment data detected by the plurality of sensors; according to the preset weight corresponding to each sensor and the environmental data in the reported data, the environmental data of the target environment is determined, so that the purpose of comprehensively determining the environmental data of the target environment by setting weights for a plurality of sensors is achieved, the accuracy and stability of environmental data detection are improved, the technical effect of the real condition of the target environment is more similar, and the technical problems that the temperature and humidity of the detection space of a plurality of sensors are difficult to comprehensively coordinate, and certain difference is caused between the temperature and humidity of the detection space of the sensors and the real condition in the related art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a method for detecting environmental data according to embodiment 1 of the present application;
FIG. 2 is a flowchart showing the whole steps of a method for detecting environmental data according to embodiment 1 of the present application;
FIG. 3 is a flow chart of prior art environmental data detection;
FIG. 4 is a flow chart of environmental data detection according to embodiment 2 of the present application;
fig. 5 is a schematic diagram of an apparatus for detecting environmental data according to embodiment 3 of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present application, there is provided a method embodiment of a method for detecting environmental data, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different from that herein.
Fig. 1 is a flowchart of a method for detecting environmental data according to an embodiment of the present application, as shown in fig. 1, the method includes the steps of:
step S102, receiving a query request for querying environment data of a target environment;
step S104, responding to the inquiry request, and transmitting the effective environment data with the generation time within the effective time to the user;
step S106, receiving report data transmitted by a plurality of sensors arranged in a target environment under the condition that effective environment data are not stored, wherein the report data comprise environment data detected by the plurality of sensors;
step S108, according to the preset weight corresponding to each sensor and the environmental data in the reported data, determining the environmental data of the target environment;
step S110, the determined environment parameters are sent.
Through the steps, the method comprises the steps of receiving report data transmitted by a plurality of sensors arranged in a target environment, wherein the report data comprises environment data detected by the plurality of sensors; according to the preset weight corresponding to each sensor and the environmental data in the reported data, the environmental data of the target environment is determined, so that the purpose of comprehensively determining the environmental data of the target environment by setting weights for a plurality of sensors is achieved, the accuracy and stability of environmental data detection are improved, the technical effect of the real condition of the target environment is more similar, and the technical problems that the temperature and humidity of the detection space of a plurality of sensors are difficult to comprehensively coordinate, and certain difference is caused between the temperature and humidity of the detection space of the sensors and the real condition in the related art are solved.
The plurality of sensors may be a temperature sensor, a humidity sensor, a PM2.5 sensor, a CO2 sensor, etc., and may be other sensors for detecting environmental data. The sensor may be a specific sensing device, or may be a device having a data acquisition function, for example, a home appliance equipped with a sensor, for example, an air conditioner having a temperature sensor, an air purifier having a PM2.5 sensor, or the like.
The target environment may be a space having a certain degree of closure, such as a home, a room, etc. The environmental data are collected so as to better change the environmental data, the environmental data are easy to change in a smaller range, and the environmental data of a space with a certain sealing degree only have collection significance. However, in other cases, the collected environmental data is simply collected environmental data, and is not intended to change the environmental data of the target environment, and the target environment may be outdoor, open, and not have a space with a closed degree.
The target environment data is typically a query request of a client-based application, and is responded to by the query request. Specifically, fig. 2 is a flowchart of the complete steps of the method for detecting environmental data according to embodiment 1 of the present application, as shown in fig. 2, step S106, where, in the case where valid environmental data is not stored, receiving reported data transmitted by a plurality of sensors disposed in a target environment includes: step S1062, transmitting a query command to the plurality of sensors in response to the query request; step S1064, receiving the report data reported by the plurality of sensors in response to the query command, storing the report data, and recording the report time.
However, in this embodiment, the reported data of the sensor may be received in real time and cached, so that a user can respond quickly when requesting. That is, after the step S102 and the step S110, the environment data is directly transmitted to the client by receiving a query request for querying the environment data of the target environment.
That is, step S110 includes, after determining the environmental data of the target environment according to the plurality of parameter items of the environmental data of the target environment, step S1122 of recording the generation time of the environmental data; step S1124, when the generation time of the environmental data and the generation time of the last environmental data are less than the effective time, replacing the newly generated environmental data with the last environmental data as the environmental data of the effective time; in step S1126, an environment data curve of the target environment with the valid time as the time granularity is generated according to the environment data of the valid times. Thereby ensuring validity of the environmental data within the validity time. The effective time may be 1 minute.
And then, after receiving the inquiry request, responding and sending the environment data in the effective time to the client. However, if the environment data does not exist in the valid time after the request is received, the environment data needs to be determined according to the flow of the step S102 to the step S110, and the query request needs to be responded.
Step S108, according to preset weights corresponding to the plurality of sensors and environment data in the reported data, determining the environment data of the target environment comprises: step S1082, selecting the reported data of a plurality of sensors in the effective time as target data; in step S1084, environmental data of the target environment is determined according to the target data of the plurality of sensors and the corresponding preset weights.
The preset weight includes: the first preset weight and the second preset weight; the first preset weight is a weight of accuracy of the acquisition parameter item of the sensor, for example, as shown in table 2, and the evaluation coefficient of the device function is the first preset weight; the second preset weight is a weight of a parameter item collected by the sensor, for example, as shown in table 3, and the evaluation coefficient of the equipment class is the second preset weight.
Optionally, step S1084 includes determining, according to the target data of the plurality of sensors and the corresponding preset weights, environment data of the target environment: step S1086, calculating a value of one parameter item of the environment data of the target environment by:
wherein Z is the value of the parameter item of the environmental data of the target environment, Z i Representing parameter items in target data of the ith sensor, D i A first preset weight representing a parameter item of the ith sensor, F i A second preset weight representing a parameter item of the ith sensor, i being a natural number greater than between 1 and n; in step S1088, the environmental data of the target environment is determined according to the values of the plurality of parameter items of the environmental data of the target environment.
When the value of the parameter item of the target data of the sensor is determined, the determination is carried out according to the number of the parameter items of the target data in the effective time, and when the number of the parameter items of the target data is multiple, the average value of the multiple parameter items is taken as the value of the parameter item of the target data. In the case where the parameter item of the target data is one, the value of the parameter item is regarded as the value of the parameter item in the valid time.
Optionally, after determining the environmental data of the target environment according to the plurality of parameter items of the environmental data of the target environment, the method further includes: recording the generation time of the environment data; when the generation time of the environmental data and the generation time of the last environmental data are smaller than the effective time, the newly generated environmental data are replaced with the last environmental data to serve as the environmental data of the effective time; and generating an environment data curve of the target environment with the effective time as time granularity according to the environment data of the effective times. So that the application measures the history curve of the space data for subsequent description.
Example 2
Fig. 4 is a flowchart of environment data detection according to embodiment 2 of the present application, as shown in fig. 4, embodiment 2 provides a method and a system for acquiring current environment data of a home space, where the method is based on equipment environment acquisition precision and equipment class scoring mode with environment detection capability in space, and the spatial environment data is acquired by weighting and summarizing, so that information can be more comprehensively displayed to a user. The response data of the application query space environment data can be solved by combining the device reporting advance budget. The response time and the data validity period mechanism of the device are increased, the problem that the device needs to be directly accessed when the environment data can be queried is solved, and the user can also be responded quickly.
As shown in fig. 4, the method of the embodiment 2 is divided into that the device reports data and then calculates the space environment data in advance; the application side inquires whether the data in time (variable, default 1 minute) exist or not, if yes, the application is directly returned, and if no, the space equipment is inquired and then the operation is returned, wherein the specific steps are as follows:
interaction step of reporting data by device (1-6 in fig. 4):
step 1: the equipment detects the change of environmental information and reports environmental function data such as temperature and humidity;
step 2: after receiving the data reported by the equipment, the platform inquires whether the equipment has environmental function data, and if not, the process is ended; if yes, inquiring the specific carried functions (such as temperature and humidity), and entering step 3;
step 3: inquiring the family and room to which the equipment belongs;
step 4: inquiring a list of other devices with environmental functions in the target family and the room;
step 5: detecting a specific data value of a device environment function in a cloud device shadow (cloud cache) in a device list; according to the sampling validity period of different equipment environment data configured by the platform, available data are taken to enter a step 6 for calculation;
step 6: according to the screened equipment and the functional data, calculating, wherein the algorithm is described in the following; storing according to the granularity of 1 minute; i.e. the space is calculated to store other data values within 1 minute, the recording time and the value are updated; if the time is more than 1 minute, the record is newly added. So as to be used for measuring the history curve of the space data for subsequent description;
interaction step of application query data (7-12 in fig. 4):
step 7: the application initiates a request for inquiring space environment data;
step 8: the platform detects whether space data within nearly 1 minute exist in the space { according to service conditions, the valid period time strategy is configurable, the default time is 1 minute }, and if the space data exist, the space data are directly returned to the application end; if not, the step 9 is entered;
step 9: querying all devices in the space, screening the devices { the platform has corresponding environmental data attribute according to the device model }, and issuing a query state instruction;
step 10: after the equipment receives the execution, reporting the function state data;
step 11: the platform calculates according to a calculation method and stores according to 1 minute granularity;
step 12: and returning the data to the application side.
Table 1 is an environment function identification table, as shown in table 1, an environment function identification of a device obtains whether the device has a corresponding environment detection capability according to the relationship between the device function definition and the platform definition table;
table 1 environmental function identification table
Environmental data Description of the application Unit (B) Step size Value range
Temperature (temperature) entTemperature Degree centigrade 1 0-100
Humidity of the water entHumidity Percentage of 1 0-100
PM2.5 entPM2p5Value —— 1 0-1000
The method comprises the steps of respectively grading the functional precision and the equipment class for the detection precision of the equipment on the environmental data and the common position of the equipment, and then grading through weighting summarization;
1. the device function evaluation coefficient is the first preset weight.
Configuring an evaluation coefficient (weight) according to the precision configuration for the environmental function, wherein the weight coefficient can be larger than 1, and the coefficients in different precision ranges can be configured into corresponding coefficients;
table 2 is a table of evaluation coefficients of functions of the apparatus, and as shown in table 2, the evaluation coefficients are divided into 4 levels (the number of levels can be increased as needed), and the temperature, the humidity, and the like are evaluated according to different coefficients, respectively; and (3) injection: the rating factor level for different environmental functions may be different;
table 2 evaluation coefficient table for functions of apparatus
2. The equipment class evaluation coefficient is the second preset weight.
Table 3 is a table of evaluation coefficients of the equipment categories, and as shown in Table 3, the coefficients of different equipment categories are evaluated, and the evaluation method is the same as the equipment function evaluation;
TABLE 3 evaluation coefficient Table for Equipment items
The spatial environment data calculation formula:
single environmental attribute= (equipment class 1 evaluation coefficient d1 evaluation coefficient f1+equipment class 2 evaluation coefficient d2 evaluation coefficient f2+)/(evaluation coefficient d1 evaluation coefficient f1+evaluation coefficient d2 evaluation coefficient f2+).
Example 3
Fig. 5 is a schematic diagram of an apparatus for detecting environmental data according to embodiment 3 of the present application, and as shown in fig. 5, according to another aspect of an embodiment of the present application, there is further provided an apparatus for detecting environmental data, including: the first receiving module 30, the first transmitting module 32, the second receiving module 34, the determining module 36 and the second transmitting module 38 are described in detail below.
A first receiving module 30 for receiving a query request for querying environment data of a target environment; the first sending module 32 is connected to the first receiving module 30, and is configured to send, in response to the query request, valid environment data with a generation time within a valid time; the second receiving module 34 is connected to the first sending module 32, and is configured to receive, without storing the valid environmental data, report data transmitted by a plurality of sensors disposed in the target environment, where the report data includes environmental data detected by the plurality of sensors; the determining module 36 is connected to the second receiving module 34, and is configured to determine environmental data of the target environment according to the preset weight corresponding to each sensor and the environmental data in the reported data; and a second transmitting module 38, connected to the determining module 36, for transmitting the determined environmental parameter.
By the device, a query request for receiving environment data for querying a target environment is adopted; responding to the inquiry request, and transmitting the effective environment data with the generated time within the effective time to a user; receiving report data transmitted by a plurality of sensors arranged in a target environment under the condition that effective environment data are not stored, wherein the report data comprise environment data detected by the plurality of sensors; according to the preset weight corresponding to each sensor and the environmental data in the reported data, the environmental data of the target environment is determined, so that the purpose of comprehensively determining the environmental data of the target environment by setting weights for a plurality of sensors is achieved, the accuracy and stability of environmental data detection are improved, the technical effect of the real condition of the target environment is more similar, and the technical problems that the temperature and humidity of the detection space of a plurality of sensors are difficult to comprehensively coordinate, and certain difference is caused between the temperature and humidity of the detection space of the sensors and the real condition in the related art are solved.
The second receiving module includes: the response unit is used for responding to the query request and sending query instructions to the plurality of sensors; and the receiving unit is used for receiving the report data reported by the plurality of sensors in response to the query instruction, storing the report data and recording the report time.
The determining module comprises: the selecting unit is used for selecting reported data of a plurality of sensors in effective time as target data; and the determining unit is used for determining the environment data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights.
The preset weight includes: the first preset weight and the second preset weight; the first preset weight is the weight of the precision of the acquisition parameter item of the sensor; the second preset weight is the weight of the parameter item acquired by the sensor.
The determination unit includes: a first calculation unit for calculating a value of one parameter item of environment data of the target environment by:wherein Z is the value of a parameter item of the environmental data of the target environment, zi represents the parameter item in the target data of the ith sensor, D i A first preset weight representing a parameter item of the ith sensor, F i A second preset weight representing a parameter item of the ith sensor, i being a natural number greater than between 1 and n; and the second computing unit is used for determining the environment data of the target environment according to the values of a plurality of parameter items of the environment data of the target environment.
The apparatus further comprises: the recording module is used for recording the generation time of the environment data; the updating module is used for replacing the newly generated environmental data with the last environmental data to serve as the environmental data of the effective time under the condition that the generation time of the environmental data and the generation time of the last environmental data are smaller than the effective time; and the generating module is used for generating an environment data curve of the target environment with the effective time as the time granularity according to the environment data of the effective times.
The apparatus further comprises: an averaging module for determining values of parameter items of target data of the sensor; when the number of parameter items of the target data is plural, an average value of the plurality of parameter items is taken as a value of the parameter item of the target data.
Example 4
According to another aspect of the embodiment of the present application, there is also provided a processor, configured to execute a program, where the program executes the method for detecting environmental data in any one of the foregoing steps.
Receiving a query request for querying environment data of a target environment; responding to the inquiry request, and transmitting the effective environment data with the generated time within the effective time to a user; receiving report data transmitted by a plurality of sensors arranged in a target environment under the condition that effective environment data are not stored, wherein the report data comprise environment data detected by the plurality of sensors; determining the environmental data of the target environment according to the preset weight corresponding to each sensor and the environmental data in the reported data; and transmitting the determined environmental parameters.
As an alternative embodiment, receiving the reported data transmitted by the plurality of sensors disposed in the target environment without storing valid environment data includes: transmitting a query instruction to a plurality of sensors in response to the query request; and receiving the report data reported by the plurality of sensors in response to the query instruction, storing the report data, and recording the report time.
As an optional implementation manner, determining the environmental data of the target environment according to the preset weights corresponding to the plurality of sensors and the environmental data in the report data includes: selecting reported data of a plurality of sensors in effective time as target data; and determining the environment data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights.
As an optional implementation manner, the preset weights include: the first preset weight and the second preset weight; the first preset weight is the weight of the precision of the acquisition parameter item of the sensor; the second preset weight is the weight of the parameter item acquired by the sensor.
As an alternative embodiment, determining the environmental data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights includes: calculating a value of a parameter item of the environment data of the target environment by:wherein Z is the value of the parameter item of the environmental data of the target environment, Z i Representing parameter items in target data of the ith sensor, D i A first preset weight representing a parameter item of the ith sensor, F i A second preset weight representing a parameter item of the ith sensor, i being a natural number greater than between 1 and n; and determining the environmental data of the target environment according to the values of a plurality of parameter items of the environmental data of the target environment.
As an alternative embodiment, before determining the environmental data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights, the method further includes: determining a value of a parameter item of target data of the sensor; when the number of parameter items of the target data is plural, an average value of the plurality of parameter items is taken as a value of the parameter item of the target data.
As an alternative embodiment, after determining the environmental data of the target environment according to the plurality of parameter items of the environmental data of the target environment, the method further includes: recording the generation time of the environment data; when the generation time of the environmental data and the generation time of the last environmental data are smaller than the effective time, the newly generated environmental data are replaced with the last environmental data to serve as the environmental data of the effective time; and generating an environment data curve of the target environment with the effective time as time granularity according to the environment data of the effective times.
Example 5
According to another aspect of the embodiment of the present application, there is also provided a computer storage medium including a stored program, wherein the program controls a device in which the computer storage medium is located to execute the following steps when running.
Receiving a query request for querying environment data of a target environment; responding to the inquiry request, and transmitting the effective environment data with the generated time within the effective time to a user; receiving report data transmitted by a plurality of sensors arranged in a target environment under the condition that effective environment data are not stored, wherein the report data comprise environment data detected by the plurality of sensors; determining the environmental data of the target environment according to the preset weight corresponding to each sensor and the environmental data in the reported data; and transmitting the determined environmental parameters.
As an alternative embodiment, receiving the reported data transmitted by the plurality of sensors disposed in the target environment without storing valid environment data includes: transmitting a query instruction to a plurality of sensors in response to the query request; and receiving the report data reported by the plurality of sensors in response to the query instruction, storing the report data, and recording the report time.
As an optional implementation manner, determining the environmental data of the target environment according to the preset weights corresponding to the plurality of sensors and the environmental data in the report data includes: selecting reported data of a plurality of sensors in effective time as target data; and determining the environment data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights.
As an optional implementation manner, the preset weights include: the first preset weight and the second preset weight; the first preset weight is the weight of the precision of the acquisition parameter item of the sensor; the second preset weight is the weight of the parameter item acquired by the sensor.
As an alternative embodiment, determining the environmental data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights includes: calculating a value of a parameter item of the environment data of the target environment by:wherein Z is the value of the parameter item of the environmental data of the target environment, Z i Representing parameter items in target data of the ith sensor, D i A first preset weight representing a parameter item of the ith sensor, F i A second preset weight representing a parameter item of the ith sensor, i being a natural number greater than between 1 and n; and determining the environmental data of the target environment according to the values of a plurality of parameter items of the environmental data of the target environment.
As an alternative embodiment, before determining the environmental data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights, the method further includes: determining a value of a parameter item of target data of the sensor; when the number of parameter items of the target data is plural, an average value of the plurality of parameter items is taken as a value of the parameter item of the target data.
As an alternative embodiment, after determining the environmental data of the target environment according to the plurality of parameter items of the environmental data of the target environment, the method further includes: recording the generation time of the environment data; when the generation time of the environmental data and the generation time of the last environmental data are smaller than the effective time, the newly generated environmental data are replaced with the last environmental data to serve as the environmental data of the effective time; and generating an environment data curve of the target environment with the effective time as time granularity according to the environment data of the effective times.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (8)

1. A method for detecting environmental data, comprising:
receiving a query request for querying environment data of a target environment;
responding to the inquiry request, and transmitting the effective environment data with the generation time within the effective time;
receiving report data transmitted by a plurality of sensors arranged in the target environment under the condition that the effective environment data is not stored, wherein the report data comprises environment data detected by the plurality of sensors;
determining the environmental data of the target environment according to the preset weight corresponding to each sensor and the environmental data in the report data, wherein the preset weight comprises: the first preset weight and the second preset weight; the first preset weight is the weight of the precision of the acquisition parameter item of the sensor; the second preset weight is the weight of the equipment class corresponding to the sensor;
transmitting the determined environment data of the target environment;
the determining the environmental data of the target environment according to the preset weight corresponding to each sensor and the environmental data in the reported data comprises the following steps:
calculating a value of a parameter term of the environmental data of the target environment by a formula:
Z=,
in the method, in the process of the application,values of parameter items of environment data for said target environment, < >>Parameter item in target data representing the ith sensor,/->First preset weights of said parameter items representing the ith sensor,/->A second preset weight representing the parameter item of the ith sensor, i being a natural number greater than between 1 and n;
and determining the environment data of the target environment according to the values of a plurality of parameter items of the environment data of the target environment.
2. The method of claim 1, wherein receiving the reported data transmitted by the plurality of sensors disposed in the target environment without storing the valid environment data comprises:
transmitting a query instruction to a plurality of sensors in response to the query request;
and receiving the report data reported by the plurality of sensors in response to the query instruction, storing the report data, and recording the report time.
3. The method of claim 2, wherein determining the environmental data of the target environment according to the preset weights corresponding to the plurality of sensors and the environmental data in the reported data comprises:
selecting reported data of a plurality of sensors in effective time as target data;
and determining the environment data of the target environment according to the target data of the plurality of sensors and the corresponding preset weights.
4. The method of claim 1, wherein prior to determining environmental data of the target environment from the target data of a plurality of sensors and corresponding preset weights, the method further comprises:
determining a value of a parameter item of target data of the sensor;
and taking the average value of the plurality of parameter items as the value of the parameter item of the target data when the parameter items of the target data are a plurality of.
5. The method according to any one of claims 1 to 4, wherein after determining the environmental data of the target environment from a plurality of parameter items of the environmental data of the target environment, the method further comprises:
recording the generation time of the environment data;
when the time difference between the generation time of the environmental data and the generation time of the last environmental data is smaller than the effective time, replacing the last environmental data with the newly generated environmental data to serve as the environmental data of the effective time;
and generating an environment data curve of the target environment with the effective time as time granularity according to the environment data of the effective times.
6. An apparatus for detecting environmental data, comprising:
the first receiving module is used for receiving a query request for querying environment data of the target environment;
the first sending module is used for responding to the query request and sending the effective environment data with the generation time within the effective time;
the second receiving module is used for receiving reporting data transmitted by a plurality of sensors arranged in the target environment under the condition that the effective environment data are not stored, wherein the reporting data comprise environment data detected by the plurality of sensors;
the determining module is configured to determine environmental data of the target environment according to preset weights corresponding to each sensor and the environmental data in the reported data, where the preset weights include: the first preset weight and the second preset weight; the first preset weight is the weight of the precision of the acquisition parameter item of the sensor; the second preset weight is the weight of the equipment class corresponding to the sensor;
the second sending module is used for sending the determined environment data of the target environment;
wherein the determining module is further configured to calculate a value of a parameter item of the environmental data of the target environment by a formula:
Z=,
in the middle of,Values of parameter items of environment data for said target environment, < >>Parameter item in target data representing the ith sensor,/->First preset weights of said parameter items representing the ith sensor,/->A second preset weight representing the parameter item of the ith sensor, i being a natural number greater than between 1 and n;
and determining the environment data of the target environment according to the values of a plurality of parameter items of the environment data of the target environment.
7. A processor, characterized in that the processor is configured to run a program, wherein the program, when run, performs the method of detecting environmental data according to any one of claims 1 to 5.
8. A computer storage medium, characterized in that the computer storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer storage medium is located to perform the method of detecting environmental data according to any one of claims 1 to 5.
CN202110729987.0A 2021-06-29 2021-06-29 Environment data detection method and device Active CN113566878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110729987.0A CN113566878B (en) 2021-06-29 2021-06-29 Environment data detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110729987.0A CN113566878B (en) 2021-06-29 2021-06-29 Environment data detection method and device

Publications (2)

Publication Number Publication Date
CN113566878A CN113566878A (en) 2021-10-29
CN113566878B true CN113566878B (en) 2023-10-24

Family

ID=78163148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110729987.0A Active CN113566878B (en) 2021-06-29 2021-06-29 Environment data detection method and device

Country Status (1)

Country Link
CN (1) CN113566878B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572545A (en) * 2016-11-11 2017-04-19 珠海格力电器股份有限公司 Air detection device and method
CN107066831A (en) * 2017-05-19 2017-08-18 君晟合众(北京)科技有限公司 A kind of regional complex environmental assessment techniques, apparatus and system
CN107883536A (en) * 2017-09-30 2018-04-06 珠海格力电器股份有限公司 The parameter regulation means and device of air-conditioning equipment, terminal
KR102094856B1 (en) * 2019-08-09 2020-03-30 주식회사 엠에스텍 Dangerous factors prediction system using artificial intelligence based on big data
CN111046079A (en) * 2019-11-13 2020-04-21 广州中海达创新科技集团有限公司 Environmental parameter control method, device, equipment and storage medium
CN111273573A (en) * 2018-12-04 2020-06-12 北京嘀嘀无限科技发展有限公司 Environmental data monitoring method and device
CN111684235A (en) * 2019-01-09 2020-09-18 深圳市大疆创新科技有限公司 Temperature data processing method and device, distance measuring system and mobile terminal
CN111859058A (en) * 2020-07-27 2020-10-30 海尔优家智能科技(北京)有限公司 Method and device for acquiring environmental data, storage medium and electronic device
CN112862188A (en) * 2021-02-06 2021-05-28 罗普特科技集团股份有限公司 Multi-sensor environment prediction method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572545A (en) * 2016-11-11 2017-04-19 珠海格力电器股份有限公司 Air detection device and method
CN107066831A (en) * 2017-05-19 2017-08-18 君晟合众(北京)科技有限公司 A kind of regional complex environmental assessment techniques, apparatus and system
CN107883536A (en) * 2017-09-30 2018-04-06 珠海格力电器股份有限公司 The parameter regulation means and device of air-conditioning equipment, terminal
CN111273573A (en) * 2018-12-04 2020-06-12 北京嘀嘀无限科技发展有限公司 Environmental data monitoring method and device
CN111684235A (en) * 2019-01-09 2020-09-18 深圳市大疆创新科技有限公司 Temperature data processing method and device, distance measuring system and mobile terminal
KR102094856B1 (en) * 2019-08-09 2020-03-30 주식회사 엠에스텍 Dangerous factors prediction system using artificial intelligence based on big data
CN111046079A (en) * 2019-11-13 2020-04-21 广州中海达创新科技集团有限公司 Environmental parameter control method, device, equipment and storage medium
CN111859058A (en) * 2020-07-27 2020-10-30 海尔优家智能科技(北京)有限公司 Method and device for acquiring environmental data, storage medium and electronic device
CN112862188A (en) * 2021-02-06 2021-05-28 罗普特科技集团股份有限公司 Multi-sensor environment prediction method and system

Also Published As

Publication number Publication date
CN113566878A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
US7225089B2 (en) System and method for remote identification of energy consumption systems and components
US10353362B2 (en) Method and system for predictive air filter maintenance for sustained indoor air quality
Redfern et al. Biases in estimating population size from an aerial census: A case study in the Kruger National Park, South Africa: Starfield Festschrift
WO2020000504A1 (en) Arima-based cold storage temperature and humidity data prediction method and related product
GB2491109A (en) Populating event probability density maps for non-intrusive load monitoring
JP6773012B2 (en) Operation improvement effect calculation device, operation improvement effect calculation method, operation improvement effect calculation program, and recording medium
JP6159594B2 (en) Observation value processing apparatus, observation value processing method, and observation value processing program
JP2018092445A5 (en)
CN106202280A (en) A kind of information processing method and server
CN116066343A (en) Intelligent early warning method and system for fault model of oil delivery pump unit
CN110660198A (en) Alarm information processing method and device and household appliance
CN113566878B (en) Environment data detection method and device
CN111059734A (en) Automatic control method and device of air conditioner, storage medium and air conditioning equipment
CN110736226B (en) Control method and device of air conditioner and air conditioner equipment
CN117030944A (en) Formaldehyde concentration prediction method, terminal equipment and medium for avoiding ethanol interference
JP2021144629A (en) Data management system and data management method
Salem et al. A semi-supervised and online learning approach for non-intrusive load monitoring
US20220197270A1 (en) Systems and methods for data analytics and fault detection in equipment
CN107403224B (en) Deterioration estimation method and deterioration estimation device
KR20190088395A (en) Sales estimation system based on the amount of power usage and method thereof
CN111127814B (en) Fire alarm identification method and related device
CN118035780B (en) River state evaluation method and system based on multidimensional sensor
CN110363897B (en) Client heat map generation method and device
KR102320878B1 (en) Integrated control method and integrated control device
WO2013136045A1 (en) Traffic volume estimation

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