Summary of the invention
For overcoming problem present in correlation technique, the present invention provides a kind of content that pushes to determine method and device.
First aspect according to embodiments of the present invention, it is provided that a kind of content that pushes determines method, including:
Detect whether to receive the environment measuring information that terminal sends, described environment measuring information comprises the ambient parameter of at least one environmental detection sensor detection;
When receiving the environment measuring information that terminal sends, it may be judged whether there is the described ambient parameter exceeding parameter preset threshold value;
When exist exceed the described ambient parameter of parameter preset threshold value time, determine that the preset content classification exceeding the described ambient parameter of parameter preset threshold value corresponding is object content classification, the corresponding multiple propelling movement contents of described preset content classification;
The described object content classification described propelling movement content of corresponding predetermined number is pushed to described terminal.
Alternatively, described ambient parameter includes: parameter identification and parameter value;
The described described ambient parameter judging whether to exceed parameter preset threshold value, including:
Obtain at least one parameter identification in described environment measuring information;
According to the corresponding relation between default parameter identification and parameter preset threshold value, search the parameter preset threshold value corresponding with each described parameter identification respectively;
Judge whether that at least one described parameter value exceedes the described parameter preset threshold value corresponding with described parameter identification;
When there is at least one described parameter value and exceeding the described parameter preset threshold value corresponding with described parameter identification, determine and there is the described ambient parameter exceeding parameter preset threshold value.
Alternatively, push the described object content classification described propelling movement content of corresponding predetermined number to described terminal, including
Obtain the multiple propelling movement contents corresponding with described object content classification and the uplink time of each described propelling movement content;
According to the uplink time of each described propelling movement content, multiple described propelling movement contents are ranked up according to preset order;
Choose the described propelling movement content of uplink time predetermined number the latest after sequence;
The described propelling movement content of a predetermined number chosen is pushed to described terminal.
Alternatively, described method also includes:
When there is the described ambient parameter exceeding parameter preset threshold value, it is judged that whether the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set, comprises at least one alarm parameters in the prompting set of described preset alarm;
When the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set, push alarm to terminal.
Second aspect according to embodiments of the present invention, it is provided that a kind of content that pushes determines that method, described method include:
Whether detection receives the ambient parameter that at least one environmental detection sensor gathers in preset time period;
When receiving the ambient parameter that at least one environmental detection sensor gathers in preset time period, according to all described ambient parameter build environment detection information received;
Described environment measuring information is sent to server.
The third aspect according to embodiments of the present invention, it is provided that a kind of content that pushes determines device, including:
First detection module, for detecting whether receive the environment measuring information that terminal sends, comprises the ambient parameter of at least one environmental detection sensor detection in described environment measuring information;
First judge module, for when receiving the environment measuring information that terminal sends, it may be judged whether there is the described ambient parameter exceeding parameter preset threshold value;
Determine module, for when exist exceed the described ambient parameter of parameter preset threshold value time, determine that the preset content classification exceeding the described ambient parameter of parameter preset threshold value corresponding is object content classification, the corresponding multiple propelling movement contents of described preset content classification;
Second pushing module, for pushing the described object content classification described propelling movement content of corresponding predetermined number to described terminal.
Alternatively, described ambient parameter includes: parameter identification and parameter value;
Described first judge module, including:
First obtains submodule, for obtaining at least one parameter identification in described environment measuring information;
Search submodule, for according to the corresponding relation between parameter identification and the parameter preset threshold value preset, search the parameter preset threshold value corresponding with each described parameter identification respectively;
Judge submodule, for judging whether that at least one described parameter value exceedes the described parameter preset threshold value corresponding with described parameter identification;
Determine submodule, for when there is at least one described parameter value and exceeding the described parameter preset threshold value corresponding with described parameter identification, determining and there is the described ambient parameter exceeding parameter preset threshold value.
Alternatively, described second pushing module, including
Second obtains submodule, for obtaining the multiple propelling movement contents corresponding with described object content classification and the uplink time of each described propelling movement content;
Multiple described propelling movement contents, for the uplink time according to each described propelling movement content, are ranked up by sorting sub-module according to preset order;
Choose submodule, the described propelling movement content of uplink time predetermined number the latest after choosing sequence;
Push submodule, for the described propelling movement content of a predetermined number chosen is pushed to described terminal.
Alternatively, described device also includes:
, for when there is the described ambient parameter exceeding parameter preset threshold value in the second judge module, it is judged that whether the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set, comprises at least one alarm parameters in the prompting set of described preset alarm;
Second pushing module, for when the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set, pushing alarm to terminal.
Fourth aspect according to embodiments of the present invention, it is provided that a kind of content that pushes determines that device, described device include:
Whether the second detection module, receive, for detection, the ambient parameter that at least one environmental detection sensor gathers in preset time period;
Generation module, for when receiving the ambient parameter that at least one environmental detection sensor gathers, according to all described ambient parameter build environment detection information received in preset time period;
Sending module, for being sent to server by described environment measuring information.
The technical scheme that embodiments of the invention provide can include following beneficial effect:
The present invention is by detecting whether to receive the environment measuring information of terminal transmission, when receiving the environment measuring information that terminal sends, judge whether to exceed the described ambient parameter of parameter preset threshold value, when there is the described ambient parameter exceeding parameter preset threshold value, determine that the preset content classification exceeding the described ambient parameter of parameter preset threshold value corresponding is object content classification, the described object content classification described propelling movement content of corresponding predetermined number can be pushed to described terminal.
The method that the present invention provides, can be automatically according to user's room air detection case, automatically it is the terminal possible propelling movement content needed of propelling movement user of user, user is facilitated to learn room air situation and improve the mode of air conditions, saving user actively removal search is correlated with and is pushed the time of content, reduce user due to after know that aftersensation, due to the IAQ (indoor air quality) ill probability of difference, meets user to healthy demand.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the present invention can not be limited.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.When explained below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with describe in detail in appended claims, the present invention some in terms of the example of consistent apparatus and method.
As it is shown in figure 1, in one embodiment of the invention, it is provided that a kind of content that pushes determines method, comprises the following steps.
In step S101, detect whether to receive the environment measuring information that terminal sends.
In embodiments of the present invention, described environment measuring information comprises the ambient parameter of at least one environmental detection sensor detection, environmental detection sensor can be the PM2.5 sensor of PM2.5 content in air in sensing chamber, the carbon monoxide transducer of carbon monoxide levels in air in sensing chamber, the carbon dioxide sensor of Carbon Dioxide in Air content in sensing chamber, the oxygen sensor of content of oxygen in air in sensing chamber, the nitrogen sensor of nitrogen content in detection room air, the temperature sensor of detection indoor temperature, the humidity sensor of sensing chamber's humidity, the methane transducer of methane content and Smoke Sensor of smog content etc. in detection room air in detection indoor gas, the parameter value of each of the above sensor acquisition is all as an ambient parameter.
When receiving the environment measuring information that terminal sends, in step s 102, it may be judged whether there is the described ambient parameter exceeding parameter preset threshold value.
nullIn embodiments of the present invention,Each ambient parameter can be compared with corresponding parameter preset threshold value respectively,Such as,The ambient parameter of PM2.5 sensor acquisition is compared with the parameter preset threshold value of PM2.5 content in air,The parameter preset threshold value of the ambient parameter of carbon monoxide transducer collection with carbon monoxide levels in air is compared,The parameter preset threshold value of the ambient parameter of carbon dioxide sensor collection Yu Carbon Dioxide in Air content is compared etc.,When ambient parameter is more than parameter preset threshold value,May determine that this ambient parameter exceedes parameter preset threshold value,Such as,The ambient parameter of PM2.5 sensor acquisition is 50 micrograms/cubic meter,In room air, the parameter preset threshold value of PM2.5 content is 10 micrograms/cubic meter,Then may determine that the ambient parameter of this PM2.5 sensor acquisition exceedes parameter preset threshold value.
When exist exceed the described ambient parameter of parameter preset threshold value time, in step s 103, determine that the preset content classification exceeding the described ambient parameter of parameter preset threshold value corresponding is object content classification.
In embodiments of the present invention, preset content classification can refer to preset ad content classification, such as, advertisement about air purifier, contribute to promoting the green of oxygen content in room air to plant, oxygen breathing device etc., the corresponding relation between ambient parameter and preset content classification can be pre-set, such as: corresponding relation can be set up with the advertisement of air purifier class about the ambient parameter of PM2.5 content in room air, can plant with contributing to promoting the green of oxygen content in room air about the ambient parameter of oxygen content in room air, corresponding relation etc. is set up in the advertisement of oxygen breathing device class, ambient parameter about indoor temperature can be with electric heater, corresponding relation is set up in the advertisement of air-conditioning class.
The corresponding multiple propelling movement contents of described preset content classification, push the ad content that content can be the air purifier about AAA brand, it is also possible to for ad content of air purifier about BBB brand etc..
In this step, first can find the preset content classification of correspondence according to the ambient parameter exceeding parameter preset threshold value, the most again the preset content classification found is defined as object content classification.
In step S104, push the described object content classification described propelling movement content of corresponding predetermined number to described terminal.
In this step, first all propelling movement contents in object content classification can be screened, such as, screen according to uplink time, carry out screening etc. according to the evaluation that user provides after using the product pushed.
So, terminal, after receiving propelling movement content, can be play in the gap playing video content and push content, it is also possible to play these when start and push content etc..
The present invention is by detecting whether to receive the environment measuring information of terminal transmission, when receiving the environment measuring information that terminal sends, judge whether to exceed the described ambient parameter of parameter preset threshold value, when there is the described ambient parameter exceeding parameter preset threshold value, determine that the preset content classification exceeding the described ambient parameter of parameter preset threshold value corresponding is object content classification, the described object content classification described propelling movement content of corresponding predetermined number can be pushed to described terminal.
The method that the embodiment of the present invention provides, can be automatically according to user's room air detection case, automatically it is the terminal possible propelling movement content needed of propelling movement user of user, user is facilitated to learn room air situation and improve the mode of air conditions, saving user actively removal search is correlated with and is pushed the time of content, reduce user due to after know that aftersensation, due to the IAQ (indoor air quality) ill probability of difference, meets user to healthy demand.
In another embodiment of the present invention, described ambient parameter includes: parameter identification and parameter value;
Described step S102, comprises the following steps.
In step s 201, at least one parameter identification in described environment measuring information is obtained.
In this step, all parameter identifications comprised can be obtained in environment measuring information.
In step S202, according to the corresponding relation between default parameter identification and parameter preset threshold value, search the parameter preset threshold value corresponding with each described parameter identification respectively.
In embodiments of the present invention, each parameter identification is applicable to identify each ambient parameter, such as, parameter identification can be PM2.5 content, carbon monoxide content, oxygen content etc., parameter value is the detection numerical value of the sensor acquisition that parameter identification is corresponding, such as, the detection numerical value of PM2.5 sensor acquisition is 50 micrograms/cubic meter, the detection numerical value of carbon monoxide transducer collection is 50ppm, the detection numerical value of temperature sensor collection is 28 DEG C etc., at this moment, corresponding parameter preset threshold value can be searched according to parameter identification, parameter identification can be as shown in table 1 below with the corresponding relation of parameter preset threshold value:
Table 1
Table 1 Parameter identification | Parameter preset threshold value |
PM2.5 | 10 micrograms/cubic meter |
Carbon monoxide | 50ppm |
Temperature | 23-27 degree Celsius |
Humidity | 40%-65% |
In step S203, it may be judged whether there is at least one described parameter value and exceed the described parameter preset threshold value corresponding with described parameter identification.
In this step, for each ambient parameter, first can search corresponding parameter preset threshold value according to parameter identification, then parameter value be compared with the parameter preset threshold value found.
When there is at least one described parameter value and exceeding the described parameter preset threshold value corresponding with described parameter identification, in step S204, determine and there is the described ambient parameter exceeding parameter preset threshold value.
The present invention is by obtaining at least one parameter identification in described environment measuring information, according to the corresponding relation between default parameter identification and parameter preset threshold value, search the parameter preset threshold value corresponding with each described parameter identification respectively, judge whether that at least one described parameter value exceedes the described parameter preset threshold value corresponding with described parameter identification, when there is at least one described parameter value and exceeding the described parameter preset threshold value corresponding with described parameter identification, it may be determined that there is the described ambient parameter exceeding parameter preset threshold value.
The method that the embodiment of the present invention provides, it is possible to automatically determine whether ambient parameter exceedes parameter preset threshold value, it is simple to determine object content classification, method is simple, efficiently.
In another embodiment of the present invention, shown step S104, comprise the following steps.
In step S301, obtain the multiple propelling movement contents corresponding with described object content classification and the uplink time of each described propelling movement content.
In embodiments of the present invention, uplink time can refer to that advertiser by the time in this propelling movement content uploading to server, or pushes the time etc. that content is stored in server.
In this step, the uplink time of this propelling movement content can be searched in the attribute information that each propelling movement content is corresponding.
In step s 302, according to the uplink time of each described propelling movement content, multiple described propelling movement contents are ranked up according to preset order.
In this step, can be according to uplink time, by multiple propelling movement contents according to time Bit-reversed, uplink time being positioned at before the latest, uplink time being positioned at the earliest is last, or sorts according to time positive sequence, uplink time being positioned at before the earliest, uplink time being positioned at the latest is last.
In step S303, choose the described propelling movement content of uplink time predetermined number the latest after sequence.
In this step, uplink time predetermined number the latest can be selected to push content, predetermined number can be 3,5 etc..
In step s 304, the described propelling movement content of a predetermined number chosen is pushed to described terminal.
In this step, predetermined number propelling movement content can be sent to terminal several times, it is also possible to being once sent to terminal, the mode of transmission can be wirelessly, it is also possible to passes through wired mode.
When sending, the mark of terminal can be first looked for, such as IP (Internet Protocol Address, internet protocol address) address, MAC (Media Access Control or Medium Access Control, media interviews control) address etc., then it is sent to corresponding terminal according to the mark of terminal by pushing content.
First the present invention by obtaining the multiple propelling movement contents corresponding with described object content classification and the uplink time of each described propelling movement content, then according to the uplink time of each described propelling movement content, multiple described propelling movement contents are ranked up according to preset order, choose the described propelling movement content of uplink time predetermined number the latest after sequence again, the described propelling movement content of a predetermined number chosen can be pushed to described terminal.
The method that the embodiment of the present invention provides, it is possible to automatically selecting the propelling movement content being pushed to terminal, method is simple, convenient.
The ambient parameter of parameter preset threshold value is exceeded for some, owing to may directly threaten the life security of user, so, in another embodiment of the present invention, described method also includes:
In step S401, when there is the described ambient parameter exceeding parameter preset threshold value, it is judged that whether the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set.
In embodiments of the present invention, comprising at least one alarm parameters in the prompting set of described preset alarm, these alarm parameters typically could be arranged to affect the ambient parameter of user's life security, such as, carbon monoxide, methane etc. when exceeding parameter preset threshold value.
In this step, can will exceed the ambient parameter of parameter preset threshold value, compare with each alarm parameters in preset alarm prompting set, the alarm parameters that the ambient parameter that judges whether and exceed parameter preset threshold value is identical, if it is present determine that this ambient parameter exceeding parameter preset threshold value is positioned in the prompting set of described preset alarm.
In step S402, when the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set, push alarm to terminal.
In embodiments of the present invention, alarm can refer to send audible alarm, the flicker of terminal demonstration interface is reported to the police and/or display alarm interface etc. on terminal demonstration interface.
By when there is the described ambient parameter exceeding parameter preset threshold value in the present invention, judge whether the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set, the prompting set of described preset alarm comprises at least one alarm parameters, when the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set, alarm can be pushed to terminal.
The method that the embodiment of the present invention provides, it is possible to when detecting that the ambient parameter directly threatening user's life security exceedes parameter preset threshold value, push alarm to user, allows the user to recognize danger present in indoor environment in time.
As in figure 2 it is shown, in another embodiment of the present invention, it is provided that a kind of content that pushes determines method, said method comprising the steps of.
In step S501, whether detection receives the ambient parameter that at least one environmental detection sensor gathers in preset time period.
In embodiments of the present invention, in order to save energy, environmental detection sensor can pre-set and detect ambient parameter such as 30 seconds, 2 minutes etc. every certain time interval, preset time period can refer to 1 minute, 10 minutes etc., all detect whether to receive the ambient parameter that environmental detection sensor gathers in each preset time period, after receiving at least one ambient parameter, can carry out being temporarily stored in default staging area by this ambient parameter.
When receiving the ambient parameter that at least one environmental detection sensor gathers in preset time period, in step S502, according to all described ambient parameter build environment detection information received.
In this step, multiple environment measuring information can be generated respectively according to the ambient parameter received in each preset time period.
In step S503, described environment measuring information is sent to server.
Whether the present invention receives, by detection, the ambient parameter that at least one environmental detection sensor gathers in preset time period, when receiving the ambient parameter that at least one environmental detection sensor gathers in preset time period, according to all described ambient parameter build environment detection information received, described environment measuring information can be sent to server.
The method that the embodiment of the present invention provides, it is possible to automatically according to the ambient parameter detected, build environment detection information, and upload onto the server, it is simple to server uses when determining object content classification.
As it is shown on figure 3, in another embodiment of the present invention, it is provided that a kind of content that pushes determines device, including: first detection module the 11, first judge module 12, determine module 13 and the second pushing module 14.
First detection module 11, for detecting whether receive the environment measuring information that terminal sends, comprises the ambient parameter of at least one environmental detection sensor detection in described environment measuring information.
First judge module 12, for when receiving the environment measuring information that terminal sends, it may be judged whether there is the described ambient parameter exceeding parameter preset threshold value.
Determine module 13, for when exist exceed the described ambient parameter of parameter preset threshold value time, determine that the preset content classification exceeding the described ambient parameter of parameter preset threshold value corresponding is object content classification, the corresponding multiple propelling movement contents of described preset content classification.
Second pushing module 14, for pushing the described object content classification described propelling movement content of corresponding predetermined number to described terminal.
In another embodiment of the present invention, described ambient parameter includes: parameter identification and parameter value;
Described first judge module 12, including: first obtain submodule, search submodule, judge submodule and determine submodule.
First obtains submodule, for obtaining at least one parameter identification in described environment measuring information.
Search submodule, for according to the corresponding relation between parameter identification and the parameter preset threshold value preset, search the parameter preset threshold value corresponding with each described parameter identification respectively.
Judge submodule, for judging whether that at least one described parameter value exceedes the described parameter preset threshold value corresponding with described parameter identification.
Determine submodule, for when there is at least one described parameter value and exceeding the described parameter preset threshold value corresponding with described parameter identification, determining and there is the described ambient parameter exceeding parameter preset threshold value.
In another embodiment of the present invention, described second pushing module, including
Second obtains submodule, for obtaining the multiple propelling movement contents corresponding with described object content classification and the uplink time of each described propelling movement content;
Multiple described propelling movement contents, for the uplink time according to each described propelling movement content, are ranked up by sorting sub-module according to preset order;
Choose submodule, the described propelling movement content of uplink time predetermined number the latest after choosing sequence;
Push submodule, for the described propelling movement content of a predetermined number chosen is pushed to described terminal.
In another embodiment of the present invention, described device also includes:
, for when there is the described ambient parameter exceeding parameter preset threshold value in the second judge module, it is judged that whether the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set, comprises at least one alarm parameters in the prompting set of described preset alarm;
Second pushing module, for when the ambient parameter exceeding parameter preset threshold value is positioned in preset alarm prompting set, pushing alarm to terminal.
As shown in Figure 4, in another embodiment of the present invention, it is provided that a kind of content that pushes determines that device, described device include: the second detection module 21, generation module 22 and sending module 23.
Whether the second detection module 21, receive, for detection, the ambient parameter that at least one environmental detection sensor gathers in preset time period.
Generation module 22, for when receiving the ambient parameter that at least one environmental detection sensor gathers, according to all described ambient parameter build environment detection information received in preset time period.
Sending module 23, for being sent to server by described environment measuring information.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other embodiments of the present invention.The application is intended to any modification, purposes or the adaptations of the present invention, and these modification, purposes or adaptations are followed the general principle of the present invention and include the undocumented common knowledge in the art of the present invention or conventional techniques means.Description and embodiments is considered only as exemplary, and true scope and spirit of the invention are pointed out by appended claim.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and various modifications and changes can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.