CN112268634A - Temperature monitoring method and device and storage medium - Google Patents

Temperature monitoring method and device and storage medium Download PDF

Info

Publication number
CN112268634A
CN112268634A CN202011141899.0A CN202011141899A CN112268634A CN 112268634 A CN112268634 A CN 112268634A CN 202011141899 A CN202011141899 A CN 202011141899A CN 112268634 A CN112268634 A CN 112268634A
Authority
CN
China
Prior art keywords
temperature
preset
oscillation frequency
monitoring
temperature measurement
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.)
Pending
Application number
CN202011141899.0A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011141899.0A priority Critical patent/CN112268634A/en
Publication of CN112268634A publication Critical patent/CN112268634A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K7/00Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements
    • G01K7/32Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using change of resonant frequency of a crystal

Landscapes

  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The present disclosure relates to a method, an apparatus and a storage medium for temperature monitoring, wherein the method is applied to an electronic device, and the method comprises: acquiring the oscillation frequency of a frequency source of the electronic equipment in a preset temperature measuring period; determining the temperature of a target object to be subjected to temperature measurement according to the oscillation frequency and a preset reference temperature; and executing preset monitoring operation according to the temperature, wherein the preset monitoring operation is used for outputting prompt information under the condition that the temperature meets preset monitoring conditions.

Description

Temperature monitoring method and device and storage medium
Technical Field
The present disclosure relates to the field of intelligent temperature measurement, and in particular, to a method and an apparatus for temperature monitoring, and a storage medium.
Background
At present, the measurement of body temperature is mostly based on the measurement result of mercury column, but the measurement of body temperature by means of mercury column is not convenient enough while being trusted by people, for example, for many people, it is difficult to read the measurement result of mercury thermometer.
In order to improve the convenience of body temperature measurement in the related art, an infrared body temperature testing technology and a surface acoustic wave body temperature testing technology are developed, but when the body temperature is measured by adopting the infrared body temperature testing technology, the accuracy of a measuring result is low, when the body temperature is measured by adopting the surface acoustic wave body temperature testing technology, an electromagnetic wave needs to be transmitted to a temperature measuring device (such as a temperature measuring wrist strap or a temperature measuring watch) through a temperature detecting host, and the measuring result is displayed through the temperature detecting host, namely, when the body temperature is measured by adopting the surface acoustic wave body temperature testing technology, a temperature detecting host needs to be additionally added, therefore, when the body temperature is measured by adopting the surface acoustic wave body temperature testing technology, the system.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a storage medium for temperature monitoring.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for temperature monitoring, the method being applied to an electronic device, the method including:
acquiring the oscillation frequency of a frequency source of the electronic equipment in a preset temperature measuring period;
determining the temperature of a target object to be subjected to temperature measurement according to the oscillation frequency and a preset reference temperature;
and executing preset monitoring operation according to the temperature, wherein the preset monitoring operation is used for outputting prompt information under the condition that the temperature meets preset monitoring conditions.
Optionally, the determining the temperature of the target object to be measured according to the oscillation frequency and a preset reference temperature includes: acquiring a corresponding preset oscillation frequency of the frequency source at the preset reference temperature; determining a first oscillation frequency variation of the frequency source according to the preset oscillation frequency and a temperature coefficient of the frequency source, wherein the temperature coefficient is used for representing a corresponding relation between the temperature variation of the target object to be subjected to temperature measurement and the preset oscillation frequency variation; the first oscillation frequency variation represents variation of the oscillation frequency under the condition that the temperature variation is a preset unit temperature; acquiring a reference oscillation frequency of the frequency source in the preset temperature measurement period based on the preset oscillation frequency; calculating a difference value between the oscillation frequency and the reference oscillation frequency to obtain a second oscillation frequency variation of the frequency source; and determining the temperature of the target object according to the first oscillation frequency variation, the second oscillation frequency variation and the preset reference temperature.
Optionally, before the obtaining the oscillation frequency of the frequency source of the electronic device within the preset temperature measurement period, the method further includes: determining a current temperature measurement scene; determining a target temperature measurement period corresponding to the current temperature measurement scene from a plurality of preset temperature measurement periods; the acquiring of the oscillation frequency of the frequency source of the electronic device in a preset temperature measurement period includes: and acquiring the oscillation frequency of the frequency source of the electronic equipment in the target temperature measurement period.
Optionally, the current temperature measurement scene comprises a body temperature monitoring scene in an epidemic situation area; the determining the current temperature measurement scene comprises: acquiring the position information of the electronic equipment, and determining whether the area of the electronic equipment is an epidemic situation occurrence area or not according to the position information; and under the condition that the area where the electronic equipment is located is determined to be the epidemic situation generating area, determining that the current temperature measuring scene is a temperature monitoring scene in the epidemic situation area.
Optionally, the determining, from the multiple preset temperature measurement cycles, the target temperature measurement cycle corresponding to the current temperature measurement scene includes: acquiring an epidemic situation grade corresponding to the area where the electronic equipment is located under the condition that the current temperature measuring scene is the body temperature monitoring scene in the epidemic situation area; and determining the target temperature measuring period corresponding to the epidemic situation grade from the plurality of preset temperature measuring periods, wherein different epidemic situation grades correspond to different preset temperature measuring periods.
Optionally, the current thermometry scene comprises a body state and body temperature monitoring scene; the determining the current temperature measurement scene comprises: acquiring preset temperature measurement time; acquiring historical temperature measuring time within a preset time period before the temperature measuring time; and under the condition that the body temperatures measured in the continuous preset number of historical temperature measurement time are all within a preset temperature range, taking a target body temperature monitoring scene corresponding to the preset temperature range in at least one body state body temperature monitoring scene as the current temperature measurement scene, wherein different preset temperature ranges correspond to different target body temperature detection scenes.
Optionally, the body state and body temperature monitoring scene includes a female physiological cycle body temperature monitoring scene, a chronic disease body temperature monitoring scene, or an aerobic exercise body temperature monitoring scene.
Optionally, the preset monitoring condition includes one or more of the following: for each of a plurality of preset times, the temperature of the target object at the preset time is within a preset temperature range; the temperature is outside a preset normal temperature range; and the temperature of the target object in a preset historical time period is within the preset normal temperature range.
Optionally, the preset monitoring operation includes: and sending the temperature to a target terminal so that the target terminal outputs the prompt information under the condition that the target object meets the preset monitoring condition according to the temperature.
Optionally, the preset monitoring operation includes: and outputting the prompt information under the condition that the target object meets the preset monitoring condition according to the temperature.
Optionally, the method further comprises: displaying, by the electronic device, the temperature; and/or sending the temperature to a target terminal so as to display the temperature through the target terminal.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for temperature monitoring, which is applied to an electronic device, the device including:
the acquisition module is configured to acquire the oscillation frequency of a frequency source of the electronic equipment in a preset temperature measurement period;
the first determination module is configured to determine the temperature of a target object to be subjected to temperature measurement according to the oscillation frequency and a preset reference temperature;
and the execution module is configured to execute preset monitoring operation according to the temperature, wherein the preset monitoring operation is used for outputting prompt information under the condition that the temperature meets a preset monitoring condition.
Optionally, the first determining module is configured to obtain a preset oscillation frequency corresponding to the frequency source at the preset reference temperature; determining a first oscillation frequency variation of the frequency source according to the preset oscillation frequency and a temperature coefficient of the frequency source, wherein the temperature coefficient is used for representing a corresponding relation between the temperature variation of the target object to be subjected to temperature measurement and the preset oscillation frequency variation; the first oscillation frequency variation represents variation of the oscillation frequency under the condition that the temperature variation is a preset unit temperature; acquiring a reference oscillation frequency of the frequency source in the preset temperature measurement period based on the preset oscillation frequency; calculating a difference value between the oscillation frequency and the reference oscillation frequency to obtain a second oscillation frequency variation of the frequency source; and determining the temperature of the target object according to the first oscillation frequency variation, the second oscillation frequency variation and the preset reference temperature.
Optionally, the apparatus further comprises:
the second determining module is configured to determine a current temperature measurement scene and determine a target temperature measurement period corresponding to the current temperature measurement scene from a plurality of preset temperature measurement periods;
the acquisition module is configured to acquire an oscillation frequency of a frequency source of the electronic device in the target temperature measurement period.
Optionally, the current temperature measurement scene comprises a body temperature monitoring scene in an epidemic situation area; the second determining module is configured to acquire the position information of the electronic equipment and determine whether the area of the electronic equipment is an epidemic situation occurrence area according to the position information; and under the condition that the area where the electronic equipment is located is determined to be the epidemic situation generating area, determining that the current temperature measuring scene is a temperature monitoring scene in the epidemic situation area.
Optionally, the second determining module is configured to, when the current temperature measurement scene is a temperature monitoring scene in the epidemic situation area, obtain an epidemic situation level corresponding to an area where the electronic device is located; and determining the target temperature measuring period corresponding to the epidemic situation grade from the plurality of preset temperature measuring periods, wherein different epidemic situation grades correspond to different preset temperature measuring periods.
Optionally, the current thermometry scene comprises a body state and body temperature monitoring scene; the second determination module is configured to acquire preset temperature measurement time; acquiring historical temperature measuring time within a preset time period before the temperature measuring time; and under the condition that the body temperatures measured in the continuous preset number of historical temperature measurement time are all within a preset temperature range, taking a target body temperature monitoring scene corresponding to the preset temperature range in at least one body state body temperature monitoring scene as the current temperature measurement scene, wherein different preset temperature ranges correspond to different target body temperature detection scenes.
Optionally, the body state and body temperature monitoring scene includes a female physiological cycle body temperature monitoring scene, a chronic disease body temperature monitoring scene, or an aerobic exercise body temperature monitoring scene.
Optionally, the preset monitoring condition includes one or more of the following: for each of a plurality of preset times, the temperature of the target object at the preset time is within a preset temperature range; the temperature is outside a preset normal temperature range; and the temperature of the target object in a preset historical time period is within the preset normal temperature range.
Optionally, the execution module is configured to send the temperature to a target terminal, so that the target terminal outputs the prompt information when it is determined that the target object meets the preset monitoring condition according to the temperature.
Optionally, the execution module is configured to output the prompt message when it is determined that the target object meets the preset monitoring condition according to the temperature.
Optionally, the apparatus further comprises: a presentation module configured to present the temperature via the electronic device; and/or the sending module is configured to send the temperature to a target terminal so as to display the temperature through the target terminal.
According to a third aspect of the embodiments of the present disclosure, there is provided a temperature monitoring apparatus, including:
a processor; a memory for storing processor-executable instructions;
wherein the processor is configured to: acquiring the oscillation frequency of a frequency source of the electronic equipment in a preset temperature measuring period; determining the temperature of a target object to be subjected to temperature measurement according to the oscillation frequency and a preset reference temperature; and executing preset monitoring operation according to the temperature, wherein the preset monitoring operation is used for outputting prompt information under the condition that the temperature meets preset monitoring conditions.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of temperature monitoring provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: measuring and monitoring the temperature by using electronic equipment, and firstly, acquiring the oscillation frequency of a frequency source of the electronic equipment in a preset temperature measurement period; then determining the temperature of the target object to be subjected to temperature measurement according to the oscillation frequency and a preset reference temperature; then, a preset monitoring operation can be executed according to the temperature, the preset monitoring operation is used for outputting prompt information under the condition that the temperature meets a preset monitoring condition, the crystal oscillator can be used as a frequency source, most of electronic equipment is provided with the crystal oscillator, and the oscillation frequency of the crystal oscillator can be influenced by the environmental temperature, so that temperature measurement can be realized by using the existing hardware equipment of the electronic equipment by adopting the method, for example, the body temperature of a human body can be measured by a smart watch in real time, the convenience and low cost of temperature measurement are ensured, and the sensitivity of the oscillation frequency of the crystal oscillator influenced by the environmental temperature is considered to be higher, so that the accuracy of determining the temperature of a target object of the temperature to be measured is higher according to the preset reference temperature and the oscillation frequency of the crystal oscillator in a preset temperature measurement period, by adopting the method, the temperature of the target object can be intelligently monitored according to the temperature measurement result, so that convenience is provided as much as possible in daily health care, epidemic situation control and the like.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a first method of temperature monitoring in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a second method of temperature monitoring in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram of a crystal oscillator according to an exemplary embodiment;
FIG. 4 is a block diagram illustrating a first temperature monitoring arrangement according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating a second temperature monitoring arrangement according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating a third temperature monitoring apparatus according to an exemplary embodiment;
FIG. 7 is a block diagram illustrating an apparatus for temperature monitoring in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
First, an application scenario of the present disclosure is introduced, and the present disclosure is mainly applied to measurement of temperatures such as human body temperature and ambient temperature, and at present, measurement of body temperature is mostly based on a measurement result of mercury columns, but convenience of measuring body temperature by means of mercury columns is insufficient, for example, for many people, it is difficult to read a measurement result of a mercury thermometer.
In order to improve the convenience of body temperature measurement in the related art, an infrared body temperature testing technology and a surface acoustic wave body temperature testing technology are developed, but when the infrared body temperature testing technology is adopted to measure body temperature, the accuracy of a measuring result is low, when the surface acoustic wave body temperature testing technology is adopted to measure body temperature, electromagnetic waves need to be transmitted to a temperature measuring device (such as a temperature measuring wrist strap or a temperature measuring watch) through a temperature detecting host, after the temperature measuring device receives the electromagnetic waves transmitted by the host, the electromagnetic waves are reflected back to the host through a surface acoustic wave element, when the surface acoustic wave element is at different temperatures, the amplitude and the time delay of the reflected electromagnetic waves are different, therefore, the characteristics of the electromagnetic waves reflected by the temperature measuring device to the host are different along with the temperature of the surface acoustic wave element, the temperature at the temperature measuring device can be obtained after the reflected electromagnetic waves are processed, this will undoubtedly increase the cost of temperature measurement, and the convenience of temperature measurement is also insufficient.
In order to solve the existing problems, the present disclosure provides a method, an apparatus, and a storage medium for temperature monitoring, where the method is applied to an electronic device, and the electronic device includes a frequency source. In some embodiments, because a crystal oscillator is used as a frequency source, most electronic devices are equipped with crystal oscillators, and the oscillation frequency of the crystal oscillator can be influenced by the environmental temperature, therefore, the method can realize temperature measurement by utilizing the existing hardware equipment of the electronic equipment, for example, the temperature of a human body can be measured in real time by a smart watch, the convenience and the low cost of temperature measurement are ensured, and considering that the sensitivity of the oscillation frequency of the crystal oscillator affected by the ambient temperature is high, therefore, the accuracy of the temperature of the target object to be measured is determined to be high according to the preset reference temperature and the oscillation frequency of the crystal oscillator in the preset temperature measurement period, and the method can be used for intelligently monitoring the temperature of the target object according to the temperature measurement result, so that convenience is provided for daily health care, epidemic situation control and the like as much as possible.
Specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for monitoring temperature, which is applied to an electronic device, such as a smart watch, a smart wristband, a television, a sound box, a router, or a game device, according to an exemplary embodiment, and the method for monitoring temperature provided by the present disclosure may be used to measure and monitor a body temperature of a human body, an ambient temperature, or a device temperature of the electronic device, as shown in fig. 1, and the method includes the following steps:
in step S11, the oscillation frequency of the frequency source of the electronic device in the preset temperature measurement period is obtained.
The frequency source may include a crystal oscillator, the preset temperature measurement period may be set arbitrarily according to an actual temperature measurement requirement, for example, the preset temperature measurement period may be set to any time such as 1 second, 5 seconds, 10 seconds, 1 minute, and the like, the oscillation frequency refers to the collected frequency source, for example, the crystal oscillator, the oscillation frequency in the preset temperature measurement period may be represented by an actual oscillation frequency, it can be understood that the oscillation frequency of the crystal oscillator in the preset temperature measurement period has a relationship with the oscillation frequency, and the oscillation frequency is affected by the temperature at the electronic device, so that the temperature measurement may be performed according to the oscillation frequency of the currently and actually collected frequency source of the electronic device in the preset temperature measurement period.
In step S12, the temperature of the target object to be measured is determined based on the oscillation frequency and a preset reference temperature.
The preset reference temperature can be set arbitrarily according to actual requirements, for example, when the body temperature of a human body is measured, the preset reference temperature can be set to any value such as 36.5 ℃, 36.8 ℃, 38 ℃ and the like; when the ambient temperature at the electronic device is measured, the preset reference temperature may be set to a temperature of 20 ℃, 25 ℃, or 30 ℃, which is only an example and is not limited by the present disclosure, and the target object may be a human body temperature, an ambient temperature, or a temperature of the electronic device.
In step S13, a preset monitoring operation is performed according to the temperature, and the preset monitoring operation is used for outputting a prompt message if the temperature meets a preset monitoring condition.
The prompt information can include alarm information when the body temperature exceeds a preset normal body temperature range, or reward information when the body temperature keeps normal in a continuous preset time period, and the like, and can be output in any mode of voice, vibration, light flicker, characters and the like.
It should be noted that, in the process of executing the preset monitoring operation according to the temperature, the step may be executed by the electronic device, or the electronic device may send the temperature to a target terminal (such as a user mobile phone), and the target terminal executes the preset monitoring operation according to the temperature.
In addition, after the temperature of the target object is acquired, the temperature can be displayed to a user in real time through the electronic equipment, and/or the temperature can be sent to a target terminal, and the temperature can be displayed to the user through the target terminal.
The crystal oscillator is used as a frequency source, and most electronic equipment is provided with the crystal oscillator, and the oscillation frequency of the crystal oscillator can be influenced by the environmental temperature, therefore, the method can realize temperature measurement by utilizing the existing hardware equipment of the electronic equipment, for example, the temperature of a human body can be measured in real time by a smart watch, the convenience and the low cost of temperature measurement are ensured, and considering that the sensitivity of the oscillation frequency of the crystal oscillator affected by the ambient temperature is high, therefore, the accuracy of the temperature of the target object to be measured is determined to be high according to the preset reference temperature and the oscillation frequency of the crystal oscillator in the preset temperature measurement period, and the method can be used for intelligently monitoring the temperature of the target object according to the temperature measurement result, so that convenience is provided for daily health care, epidemic situation control and the like as much as possible.
Fig. 2 is a flowchart illustrating a method for temperature monitoring according to an exemplary embodiment, which may be applied to an electronic device, such as a smart watch, a smart wristband, a television, a speaker, a router, or a game device, and the method is illustrated in the embodiment of fig. 2 by taking the electronic device with a frequency source as a crystal oscillator to implement temperature monitoring.
First, a description will be given of a principle of temperature measurement using a crystal oscillator, in which the oscillation frequency of the crystal oscillator is affected by the ambient temperature, and the degree of the effect can be expressed by a temperature coefficient (usually, the temperature coefficient is 2 to 5 ppm/DEG C), the temperature coefficient of the same crystal oscillator is constant, and assuming that the oscillation frequency of the crystal oscillator in the electronic device to be used for temperature measurement is 40MHz and the temperature coefficient is +2.5 ppm/DEG C, the resonance frequency of the crystal is increased by 100Hz (40MHz is 2.5 ppm/DEG C is 100Hz) for every 1 second rise in temperature, and the counter is used for counting, that is, for every 1℃ rise in temperature, the counter is increased by 100 times for 1 second than before the rise in temperature, that is, for every 1 second, the corresponding temperature rise is 0.01 ℃, otherwise, for every 1 second, the increment of the counter is decreased by 1, the corresponding temperature decrease was also 0.01 ℃.
Therefore, the electronic equipment provided with the crystal oscillator can accurately measure the temperature by utilizing the temperature characteristic of the crystal, and the temperature measurement accuracy can reach at least 0.01 ℃.
As shown in fig. 2, the method comprises the steps of:
in step S21, the current thermometry scenario is determined.
Considering that temperature measurement accuracy required under different temperature monitoring scenes and triggering conditions of temperature prompt are different, for example, the body temperature of each person needs to be strictly monitored during epidemic situation occurrence, the requirement on the accuracy of a body temperature measurement result is higher, and usually, prompt information needs to be sent out in time under the condition that the body temperature is higher than or equal to 37.2 ℃; compared with the body temperature monitoring during the epidemic situation, the monitoring of the body temperature in the daily health care process has the advantages that the requirement on the accuracy of the body temperature measurement result is slightly low, prompt information can be sent under the condition that the body temperature is normal, abnormal or regularly changed, and the corresponding temperature measurement precision is higher as the temperature measurement period is longer when the temperature measurement is carried out by adopting the temperature characteristic of the crystal oscillator, so that the current temperature measurement scene can be firstly determined, and then the target temperature measurement period and the preset monitoring condition which are adaptive to the current temperature measurement scene are determined in the temperature monitoring process, so that the optimal temperature monitoring effect is achieved.
For example, the current temperature monitoring scene may include a body temperature monitoring scene in an epidemic situation area or a body state and body temperature monitoring scene, wherein the body state and body temperature monitoring scene may further include a female physiological cycle body temperature monitoring scene, a chronic disease body temperature monitoring scene, an aerobic exercise body temperature monitoring scene, or the like.
In a possible implementation manner of this step, location information of the electronic device may be obtained (for example, the location information is obtained through a GPS positioning function of the electronic device), and it is determined whether an area where the electronic device is located is an epidemic situation occurrence area according to the location information; under the condition that the area where the electronic equipment is located is determined to be the epidemic situation occurrence area, the current temperature measurement scene can be determined to be the body temperature monitoring scene in the epidemic situation area, wherein the epidemic situation (such as the occurrence of the epidemic situation, the epidemic situation risk level, the number of confirmed cases and other data) of the area where the electronic equipment is located can be obtained from a third-party database according to the position information, and therefore whether the area where the electronic equipment is located is the epidemic situation occurrence area is further determined.
In another possible implementation manner of this step, it may be determined whether the current temperature measurement scenario is the body state and temperature monitoring scenario by:
acquiring preset temperature measurement time; acquiring historical temperature measuring time within a preset time period before the temperature measuring time; and under the condition that the body temperatures measured in N continuous historical temperature measuring times are all within a preset temperature range, taking a target body temperature monitoring scene corresponding to the preset temperature range in at least one body state body temperature monitoring scene as the current temperature measuring scene, and enabling different preset temperature ranges to correspond to different target body temperature detection scenes, wherein N is a positive integer greater than 0.
For different temperature measurement scenes, a user can set different temperature measurement time according to the actual situation, for example, for a temperature monitoring scene of a female physiological cycle, considering that the female physiological cycle is usually fixed days of each month, the temperature measurement time can be the date (such as No. 1 to No. 4 of each month) in the physiological cycle preset by the user every month, and in addition, since the body temperature during each month of the physiological cycle is usually slightly higher than the body temperature during a non-physiological cycle, for example, the body temperature during the female physiological cycle is usually between 36.8 ℃ and 37.3 ℃, the preset temperature range corresponding to the temperature monitoring scene of the female physiological cycle can be set to be 36.8 ℃ to 37.3 ℃; for a chronic disease body temperature monitoring scene, considering that some chronic disease patients usually have low fever (for example, the body temperature is between 37.2 ℃ and 38 ℃) in the afternoon (for example, 13 o 'clock to 15 o' clock), the temperature measuring time can be the daily afternoon preset by the user (for example, 13 o 'clock to 15 o' clock daily), and the preset temperature range corresponding to the chronic disease body temperature monitoring scene can be set to be 37.2 ℃ to 38 ℃; for the aerobic exercise body temperature monitoring scene, considering that the body temperature during the aerobic exercise is generally lower than that during the non-aerobic exercise (for example, the body temperature during the aerobic exercise is between 35.5 ℃ and 36.5 ℃), assuming that the user usually runs between 7 to 8 morning hours each day, therefore, the temperature measurement time may be the morning running time each day (for example, between 7 to 8 morning hours each day) preset by the user, the preset temperature range corresponding to the aerobic exercise body temperature monitoring scene may be set to 35.5 ℃ to 36.5 ℃, the above descriptions of the temperature measurement time and the preset temperature range are all examples, and the disclosure does not limit the same; n is a preset number, which may be obtained based on long-term big data statistics, for example, the preset number predicted according to the temperature variation values measured in a plurality of historical temperature measurement periods, which is not limited in this disclosure.
It should be noted that, in the process of determining whether the current temperature measurement scene is the body state and temperature monitoring scene, the electronic device may be triggered to automatically determine whether the current temperature measurement scene is the body state and temperature monitoring scene by setting the preset time period, and different body state and temperature monitoring scenes may correspond to different preset time periods.
For example, for a temperature monitoring scenario of a female physiological cycle, assuming that the temperature measuring time is from No. 2 to No. 4 per month, the preset time period corresponding to the temperature measuring time may be a whole day of No. 1 per month; for a chronic disease body temperature monitoring scene, assuming that the temperature measuring time is 13 to 15 points per day, the corresponding preset time period can be 12 to 13 points per day; aiming at an aerobic exercise body temperature monitoring scene, assuming that the temperature measuring time is from 7 to 8 points per day, and the corresponding preset time period can be from 6 to 7 points per day, so that when the current time is determined to reach the current month No. 1, the historical temperature measuring time can be obtained, and if the body temperatures measured from No. 2 to No. 4 of 5 continuous months per month in the historical temperature measuring process are all within the range of 36.8-37.3 ℃, the current temperature measuring scene can be determined to be a female physiological cycle body temperature monitoring scene corresponding to the range of 36.8-37.3 ℃; when the current time is determined to reach 6 o ' clock of the day, the historical temperature measuring time can be obtained, if the body temperatures measured from 7 o ' clock to 8 o ' clock of each day in 5 consecutive days in the historical temperature measuring process are all within the range of 35.5-36.5 ℃, the current temperature measuring scene can be determined to be an aerobic exercise body temperature monitoring scene corresponding to the range of 35.5-36.5 ℃; when the current time is determined to reach 12 o ' clock of the day, the historical temperature measurement time may be obtained, and if the body temperatures measured at 13 o ' clock to 15 o ' clock of each day in 5 consecutive days in the historical temperature measurement process are all within the range of 37.2 ℃ -38 ℃, the current temperature measurement scene may be determined to be a chronic disease body temperature monitoring scene corresponding to the range of 37.2 ℃ -38 ℃.
It should be further noted that, in an actual application scenario, a plurality of body state body temperature monitoring modes, such as a female physiological cycle body temperature monitoring mode, a chronic disease body temperature monitoring mode, an aerobic exercise body temperature monitoring mode, and a normal mode (body temperature can be monitored in real time in the normal mode) may be preset on the electronic device, so that a user may manually select the body temperature monitoring mode adapted to the current body condition of the user, and after obtaining a target temperature measurement mode selected by the user, the electronic device may generate a cycle temperature measurement instruction according to the target temperature measurement mode, where the cycle temperature measurement instruction includes preset temperature measurement time.
Therefore, in another possible implementation manner of the present disclosure, the electronic device may determine that the current temperature measurement scenario is the body state and body temperature monitoring scenario when receiving the periodic temperature measurement instruction, and further determine what the body state and body temperature monitoring scenario is specific to the current temperature measurement scenario according to an instruction identifier of the periodic temperature measurement instruction (different body state and body temperature monitoring scenarios correspond to different instruction identifiers).
In step S22, a target temperature measurement period corresponding to the current temperature measurement scenario is determined from a plurality of preset temperature measurement periods.
In general, the temperature measurement periods corresponding to different temperature measurement scenes are different, and therefore, in this step, the target temperature measurement period corresponding to the current temperature measurement scene can be determined from a plurality of preset temperature measurement periods, and the preset temperature measurement period can be arbitrarily set according to actual temperature measurement needs, for example, the preset temperature measurement period can be set to 1 second, 10 seconds, 1 minute, half hour, and the like.
In this step, if the current temperature measuring scene is a temperature monitoring scene in the epidemic situation area, the epidemic situation grade corresponding to the area where the electronic equipment is located can be obtained, then determining the target temperature measuring period corresponding to the epidemic situation grade, wherein the longer the temperature measuring period is when the temperature is measured by adopting the temperature characteristic of the crystal oscillator, the higher the corresponding temperature measurement precision is, the higher the epidemic situation grade in the actual application scene is, the higher the precision requirement on the body temperature monitoring result is, but the real-time requirement of the body temperature monitoring during the epidemic situation is considered, therefore, the target temperature measuring period corresponding to different epidemic grades can be calibrated in advance according to the epidemic situation data and the medical reference data, and storing the corresponding relation between the pre-calibrated epidemic situation grade and the target temperature measurement period, so that if the current temperature measurement scene is a temperature monitoring scene in the epidemic situation area, the target temperature measurement period can be determined according to the corresponding relation.
In addition, if the current temperature measurement scene is a body state and temperature monitoring scene, different target temperature measurement periods may be further set for different body state and temperature monitoring scenes, for example, the target temperature measurement period corresponding to the female physiological period and temperature monitoring scene may be preset as a preset temperature measurement period 1, the target temperature measurement period corresponding to the aerobic exercise body temperature monitoring scene is a preset temperature measurement period 2, and the target temperature measurement period corresponding to the chronic disease body temperature monitoring scene is a preset temperature measurement period 3, which is only an example and is not limited in the present disclosure.
In step S23, the oscillation frequency of the crystal oscillator in the target temperature measurement period is acquired.
The oscillation frequency refers to the acquired oscillation frequency of the crystal oscillator in the preset temperature measurement period, and the oscillation frequency can be represented by actual oscillation times.
It should be noted that, the existing electronic devices generally have two sets of clocks, a local clock and a GPS time service system, and the GPS time service system adopts a satellite-borne atomic clock time service system, so that the accuracy thereof can reach 10-13And the GPS time service system does not change along with the local factors of the user of the electronic equipment, so that the target temperature measurement period can be determined based on the time service of the GPS as standard time to ensure the accuracy of the temperature test.
It can be understood that the oscillation frequency of the crystal oscillator in the target temperature measurement period is related to the oscillation frequency, and the magnitude of the oscillation frequency is influenced by the temperature at the temperature measurement electronic device, so that the temperature measurement can be performed according to the currently and actually acquired oscillation frequency of the crystal oscillator in the target temperature measurement period.
After acquiring the oscillation frequency, the temperature of the target object may be measured according to the oscillation frequency and the preset reference temperature by performing steps S24 to S28.
In step S24, a preset oscillation frequency of the crystal oscillator at a preset reference temperature is obtained.
The preset reference temperature can be set arbitrarily according to actual requirements, for example, when the body temperature of a human body is measured, the preset reference temperature can be set to any value such as 36.5 ℃, 36.8 ℃, 38 ℃ and the like; when the ambient temperature at the electronic device is measured, the preset reference temperature may be set to a room temperature such as 20 ℃, 25 ℃, or 30 ℃, which is only an example and is not limited by the present disclosure.
It has been mentioned above that, the oscillation frequency of the crystal oscillator is affected by the temperature at the crystal oscillator in the electronic device, the oscillation frequencies corresponding to different temperatures are also different, and the preset oscillation frequency refers to that, in the case that the temperature at the crystal oscillator in the electronic device is the preset reference temperature, the oscillation frequency of the crystal oscillator is different from the preset reference temperature, and the corresponding preset oscillation frequency is also different, for example, if the preset reference temperature is 36.8 ℃, the preset oscillation frequency corresponding to the preset reference temperature of 36.8 ℃ is 40MHz, which is only an example and is not limited by the present disclosure.
It should be noted that the preset oscillation frequency may be calibrated in advance before the electronic device leaves the factory, and the calibrated preset oscillation frequency is stored in the electronic device.
In step S25, a first oscillation frequency variation of the crystal oscillator is determined according to the preset oscillation frequency and the temperature coefficient of the crystal oscillator.
Wherein, the temperature coefficient is used to represent the corresponding relationship between the temperature variation of the target object to be measured and the variation of the preset oscillation frequency, for example, if the temperature coefficient is +2.5 ppm/DEG C, the variation of the preset oscillation frequency is 2.5ppm times of the preset oscillation frequency at every 1 ℃ rise is represented; the first oscillation frequency variation represents a variation of the oscillation frequency in a case where a temperature variation is a preset unit temperature, and the preset unit temperature may be 1 ℃.
For example, assuming that the preset oscillation frequency corresponding to the preset reference temperature (i.e., the initial temperature of the target object before the temperature changes) is 40MHz, the oscillation frequency of the crystal oscillator increases by 100Hz (40MHz × 2.5 — 100Hz) every time the temperature of the target object increases by 1 ℃, so that the first oscillation frequency change amount may be determined to be 100 Hz.
In step S26, a reference oscillation frequency of the crystal oscillator within the preset temperature measurement period based on the preset oscillation frequency is obtained.
Since the frequency of oscillation is generallyThe oscillation frequency of the crystal oscillator corresponds to each second (or unit time), and therefore, in one possible implementation, the reference oscillation frequency may be obtained by multiplying the preset oscillation frequency by the preset temperature measurement period, for example, assuming that the preset oscillation frequency is 40MHz, the preset temperature measurement period is 5 seconds, and the reference oscillation frequency is 40MHz, 5 ═ 2 ×, 10 ×, respectively8Hz。
In step S27, a difference between the oscillation frequency and the reference oscillation frequency is calculated to obtain a second oscillation frequency variation of the crystal oscillator.
In step S28, the temperature of the target object is determined according to the first oscillation frequency variation, the second oscillation frequency variation and the preset reference temperature.
In this step, the temperature of the target object may be determined by the following formula:
Figure BDA0002738530760000161
where T denotes the temperature of the target object, T1 denotes the preset reference temperature, Δ f0Represents the first oscillation frequency variation, Δ f1Represents the second oscillation frequency variation, and Δ f1May be positive, negative or 0.
At this point, the temperature of the target object can be measured by the electronic device provided with the crystal oscillator.
The above describes the temperature measurement process within a preset temperature measurement period, and it should be noted that the longer the preset temperature measurement period is, the higher the temperature measurement precision is, for example, as described above, if the preset temperature measurement period is 1 second, the oscillation frequency of the crystal oscillator increases by 100Hz for every 1 ℃ rise in temperature, and it is deduced that for every 1 second increment of the counter value, the corresponding temperature rise is 0.01 ℃, if the preset temperature measuring period is 100 seconds, in 100 seconds, the count value of the counter increases 10000 times (40MHz × 2.5 × 100 — 10000) for every 1 temperature rise (i.e., the temperature rises 0.0001 ℃ for every 1 time), and thus it can be seen that, the longer the preset temperature measurement period is, the higher the temperature measurement accuracy is, so that in an actual temperature measurement scene, the preset temperature measurement period can be set according to actual temperature measurement accuracy requirements.
In addition, if the preset temperature measurement period is set to be longer (for example, 100 seconds), in order to improve the temperature measurement efficiency, a plurality of counters can be preset, and counting is started after different time periods, so that multiple times of measurement can be completed in one preset temperature measurement period.
For example, assuming that the preset temperature measurement period is 100 seconds, 10 counters may be preset, so that temperature measurement may be performed every 10 seconds, that is, after 10 seconds from the first measurement, a second counter is started to start counting for performing a second measurement; similarly, after 10 seconds from the start of the second measurement, a third counter may be started to start counting, so as to perform the third measurement, and so on, after 10 seconds from the start of the tenth measurement, the first counter is restarted to start counting, and the temperature measurement in the next preset temperature measurement period is performed, so as to perform the cycle, thereby dynamically displaying the instant temperature every 10 seconds, which is only an example and is not limited by the present disclosure.
It should be further noted that, in the present disclosure, the electronic device provided with the crystal oscillator is used for temperature measurement, and the temperature measurement principle is based on the fact that the oscillation frequency of the crystal oscillator is affected by the temperature at the crystal oscillator, so that, in order to improve the accuracy of temperature measurement, the setting position of the crystal oscillator is also calibrated in advance.
For example, taking the example of measuring the body temperature of a human body through a smart watch as an example, in order to measure the body temperature more quickly and accurately, a metal shell of a crystal oscillator on the smart watch may be directly welded to a metal back shell of the watch, where the metal back shell refers to a portion that is tightly attached to the skin of the human body, so as to facilitate heat transfer of the body temperature between the human body and the crystal, or a heat-conducting silicone grease may be filled between the metal back shell of the smart watch and the crystal, so as to improve the sensitivity of the crystal oscillator in measuring the temperature.
It can be understood that, when the electronic device provided with the crystal oscillator is used for measuring temperature, the temperature measurement accuracy is highly related to the temperature coefficient of the crystal oscillator, and therefore, in order to further improve the temperature measurement accuracy, in another possible implementation manner of the present disclosure, a thermal capacitor (preferably, a thermal capacitor with a metal cladding) may be used as two oscillation starting capacitors in the crystal oscillator schematic diagram shown in fig. 3, so that the temperature coefficient of the crystal oscillator may be increased from 2 to 5 ppm/deg.c to 20 to 50 ppm/deg.c, and other performances of the smart watch may not be affected, but the temperature measurement accuracy may be further improved, and a metal shell of the metal cladding capacitor may also be welded on a metal back shell of the smart watch.
After the temperature of the target object is obtained, the temperature may be presented to the user by executing step S29.
In step S29, displaying the temperature by the electronic device; and/or sending the temperature to a target terminal so as to display the temperature through the target terminal.
The target terminal may include a user mobile phone or other preset terminals, which is not limited in this disclosure.
In the present disclosure, after acquiring the temperature of the target object, real-time and long-term data monitoring of the target object specific temperature may also be performed by performing step S30.
In step S30, a preset monitoring operation is performed according to the temperature, and the preset monitoring operation is used for outputting a prompt message if the temperature meets a preset monitoring condition.
The temperature of the target object in the preset historical time period is within the preset normal temperature range, the prompt information can include alarm information when the body temperature exceeds the preset normal body temperature range, or reward information when the body temperature keeps normal in the continuous preset time period, and the like, and the prompt information can be output in any mode of voice, vibration, light flicker, characters and the like, and the specific form of the prompt information is not limited by the disclosure.
It should be noted that, in the process of executing the preset monitoring operation according to the temperature, the step may be executed by the electronic device, or the electronic device may send the temperature to a target terminal (such as a user mobile phone), and the target terminal executes the preset monitoring operation according to the temperature, so that the step may be implemented in any one of the following two manners:
and in the first mode, the temperature is sent to a target terminal, so that the target terminal outputs the prompt information under the condition that the target object meets the preset monitoring condition according to the temperature.
In the first mode, the target terminal may be any preset terminal corresponding to a target object to be subjected to temperature measurement, for example, in a scene of measuring the body temperature of the user a, the target terminal may be a mobile phone of the user a, and may also be a terminal device of a home health center or a community health center corresponding to the user a.
And in a second mode, under the condition that the target object meets the preset monitoring condition according to the temperature, outputting the prompt information.
In addition, the preset monitoring conditions corresponding to different temperature monitoring scenes are different, so that after the current temperature measurement scene is determined, the preset monitoring condition corresponding to the current temperature measurement scene can be determined, and then the temperature is monitored and reminded according to the preset monitoring condition.
Wherein the preset monitoring condition may include one or more of the following: for each of a plurality of preset times, the temperature of the target object at the preset time is within a preset temperature range; the temperature is outside a preset normal temperature range; the temperature of the target object in the preset historical time period is within the preset normal temperature range.
The preset monitoring conditions will be described below.
Taking the monitoring of the body temperature of a human body as an example, the body temperature of a person can reflect the physiological status and the physical health status of each person in general, for example, for women, the body temperature during each monthly physiological cycle is usually slightly higher than the body temperature during non-physiological cycles; for another example, if a afternoon low-heat phenomenon frequently occurs, it is predicted that the target object may have a chronic disease, and therefore, the physical state of the person may be monitored according to the real-time detected body temperature data, and for such a case, the preset monitoring condition may be set as: for each of a plurality of preset times, the temperature of the target object at the preset time is within a preset temperature range, wherein the preset temperature range can be set to be different according to different temperature ranges of each body state (such as female physiological period, suffering from chronic diseases), the preset time can be set according to the regular occurrence time of abnormal temperature in the historical statistical process, for example, the preset time can be set to be the date that the female A (i.e. the target object) is in the physiological period every month, or the preset time is set to be 13 o 'clock to 15 o' clock (i.e. afternoon time) for the user B, which is only an example and is not limited by the disclosure, so that before the female physiological period comes, or in the case that the body temperature abnormality of the user is found in a fixed time period every day, warm prompt can be given to the medical advice, the care degree of the user body is improved, and the user experience is improved.
Moreover, by using the temperature monitoring method provided by the present disclosure, a good exercise lifestyle can be affirmed, for example, regular aerobic exercise can slightly lower the body temperature, and therefore, if it is determined that the body temperature of the target user between 7 to 9 points in the morning of each day is slightly lower than the body temperature of other times, it indicates that the target user insists on performing aerobic exercise in the morning of each day, in this case, a reward reminding message may be sent, for example, a word may be given in a voice manner, or a reward of points may be given in a form of points, which is only an example and is not limited by the present disclosure.
In addition, if the temperature is outside the preset normal temperature range, prompt may be timely performed, for example, if the measured body temperature of the human body is higher than 37.2 ℃ or lower than 36 ℃ (that is, the preset normal temperature range is 36 ℃ to 37.2 ℃), a warning prompt may be timely performed, so that the user may find out the abnormal body temperature condition in time, for example, if the measured ambient temperature (for example, room temperature or outdoor temperature) exceeds a preset temperature threshold (for example, 37 ℃), high-temperature high-heat prompt may be performed, or the user may be prompted to supplement moisture in time, so as to avoid heatstroke, which is only an example and is not limited in this disclosure.
It should be noted that, if the body temperature of the target subject in the preset historical time period is within the preset normal temperature range, the body temperature representing the target subject is kept normal, and it can also be reflected that the target subject has good living habits, and in this case, the reward information can also be sent.
By adopting the method, the crystal oscillator is used as a frequency source, most of electronic equipment is provided with the crystal oscillator, and the oscillation frequency of the crystal oscillator can be influenced by the environmental temperature, therefore, the method can realize temperature measurement by utilizing the existing hardware equipment of the electronic equipment, for example, the temperature of a human body can be measured in real time by a smart watch, the convenience and the low cost of temperature measurement are ensured, and considering that the sensitivity of the oscillation frequency of the crystal oscillator affected by the ambient temperature is high, therefore, the accuracy of the temperature of the target object to be measured is determined to be high according to the preset reference temperature and the oscillation frequency of the crystal oscillator in the preset temperature measurement period, and the method can be used for intelligently monitoring the temperature of the target object according to the temperature measurement result, so that convenience is provided for daily health care, epidemic situation control and the like as much as possible.
Fig. 4 is a block diagram of an apparatus for temperature monitoring according to an exemplary embodiment, applied to an electronic device, as shown in fig. 4, the apparatus including:
an obtaining module 401 configured to obtain an oscillation frequency of a frequency source of the electronic device within a preset temperature measurement period;
a first determining module 402 configured to determine a temperature of the target object to be measured according to the oscillation frequency and a preset reference temperature;
an executing module 403 configured to execute a preset monitoring operation according to the temperature, where the preset monitoring operation is used to output a prompt message if the temperature meets a preset monitoring condition.
Optionally, the first determining module 402 is configured to obtain a preset oscillation frequency corresponding to the frequency source at the preset reference temperature; determining a first oscillation frequency variation of the frequency source according to the preset oscillation frequency and the temperature coefficient of the frequency source, wherein the temperature coefficient is used for representing the corresponding relation between the temperature variation of the target object to be subjected to temperature measurement and the preset oscillation frequency variation; the first oscillation frequency variation represents variation of the oscillation frequency under the condition that the temperature variation is a preset unit temperature; acquiring a reference oscillation frequency of the frequency source in the preset temperature measurement period based on the preset oscillation frequency; calculating the difference value between the oscillation frequency and the reference oscillation frequency to obtain a second oscillation frequency variation of the frequency source; and determining the temperature of the target object according to the first oscillation frequency variation, the second oscillation frequency variation and the preset reference temperature.
Optionally, fig. 5 is a block diagram of an apparatus for temperature monitoring according to the embodiment shown in fig. 4, and as shown in fig. 5, the apparatus further includes:
a second determining module 404, configured to determine a current temperature measurement scenario, and determine a target temperature measurement period corresponding to the current temperature measurement scenario from a plurality of preset temperature measurement periods;
the obtaining module 401 is configured to obtain an oscillation frequency of a frequency source of the electronic device in the target temperature measurement period.
Optionally, the current temperature monitoring scene comprises a body temperature monitoring scene in an epidemic situation area; the second determining module 404 is configured to obtain location information of the electronic device, and determine whether the area of the electronic device is an epidemic situation occurrence area according to the location information; and under the condition that the area where the electronic equipment is located is determined to be the epidemic situation generating area, determining the current temperature measuring scene to be a temperature monitoring scene in the epidemic situation area.
Optionally, the second determining module 404 is configured to, when the current temperature measurement scenario is a body temperature monitoring scenario in the epidemic situation area, obtain an epidemic situation level corresponding to an area where the electronic device is located; and determining the target temperature measuring period corresponding to the epidemic situation grade from a plurality of preset temperature measuring periods, wherein different epidemic situation grades correspond to different preset temperature measuring periods.
Optionally, the current temperature measurement scene comprises a body state and body temperature monitoring scene; the second determining module 404 is configured to obtain a preset temperature measurement time; acquiring historical temperature measuring time within a preset time period before the temperature measuring time; and under the condition that the body temperatures measured in the continuous preset number of historical temperature measurement time are all within the preset temperature range, taking the target body temperature monitoring scene corresponding to the preset temperature range in at least one body state body temperature monitoring scene as the current temperature measurement scene, wherein different preset temperature ranges correspond to different target body temperature detection scenes.
Optionally, the body state and body temperature monitoring scene comprises a female physiological cycle body temperature monitoring scene, a chronic disease body temperature monitoring scene or an aerobic exercise body temperature monitoring scene.
Optionally, the preset monitoring condition comprises one or more of: for each of a plurality of preset times, the temperature of the target object at the preset time is within a preset temperature range; the temperature is outside a preset normal temperature range; the temperature of the target object in the preset historical time period is within the preset normal temperature range.
Optionally, the executing module 403 is configured to send the temperature to a target terminal, so that the target terminal outputs the prompt message when determining that the target object meets the preset monitoring condition according to the temperature.
Optionally, the executing module 403 is configured to output the prompt message when it is determined that the target object meets the preset monitoring condition according to the temperature.
Fig. 6 is a block diagram of an apparatus for temperature monitoring according to the embodiment shown in fig. 4, further comprising, as shown in fig. 6:
a presentation module 405 configured to present the temperature via the electronic device; and/or the presence of a gas in the gas,
a sending module 406 configured to send the temperature to a target terminal so as to display the temperature through the target terminal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
By adopting the device, the crystal oscillator is used as a frequency source, the crystal oscillator is arranged on most electronic equipment, and the oscillation frequency of the crystal oscillator can be influenced by the environmental temperature, therefore, the method can realize temperature measurement by utilizing the existing hardware equipment of the electronic equipment, for example, the temperature of a human body can be measured in real time by a smart watch, the convenience and the low cost of temperature measurement are ensured, and considering that the sensitivity of the oscillation frequency of the crystal oscillator affected by the ambient temperature is high, therefore, the accuracy of the temperature of the target object to be measured is determined to be high according to the preset reference temperature and the oscillation frequency of the crystal oscillator in the preset temperature measurement period, and the method can be used for intelligently monitoring the temperature of the target object according to the temperature measurement result, so that convenience is provided for daily health care, epidemic situation control and the like as much as possible.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of temperature monitoring provided by the present disclosure.
Fig. 7 is a block diagram illustrating an apparatus 700 for temperature monitoring in accordance with an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, sensor assembly 714 may also detect a change in position of device 700 or a component of device 700, the presence or absence of user contact with device 700, orientation or acceleration/deceleration of device 700, and a change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the temperature monitoring methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the temperature monitoring methods described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned temperature monitoring method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (22)

1. A method for temperature monitoring, applied to an electronic device, the method comprising:
acquiring the oscillation frequency of a frequency source of the electronic equipment in a preset temperature measuring period;
determining the temperature of a target object to be subjected to temperature measurement according to the oscillation frequency and a preset reference temperature;
and executing preset monitoring operation according to the temperature, wherein the preset monitoring operation is used for outputting prompt information under the condition that the temperature meets preset monitoring conditions.
2. The method of claim 1, wherein determining the temperature of the target object to be measured according to the oscillation frequency and a preset reference temperature comprises:
acquiring a corresponding preset oscillation frequency of the frequency source at the preset reference temperature;
determining a first oscillation frequency variation of the frequency source according to the preset oscillation frequency and a temperature coefficient of the frequency source, wherein the temperature coefficient is used for representing a corresponding relation between the temperature variation of the target object to be subjected to temperature measurement and the preset oscillation frequency variation; the first oscillation frequency variation represents variation of the oscillation frequency under the condition that the temperature variation is a preset unit temperature;
acquiring a reference oscillation frequency of the frequency source in the preset temperature measurement period based on the preset oscillation frequency;
calculating a difference value between the oscillation frequency and the reference oscillation frequency to obtain a second oscillation frequency variation of the frequency source;
and determining the temperature of the target object according to the first oscillation frequency variation, the second oscillation frequency variation and the preset reference temperature.
3. The method of claim 1, wherein before the obtaining the oscillation frequency of the frequency source of the electronic device within the preset thermometry period, the method further comprises:
determining a current temperature measurement scene;
determining a target temperature measurement period corresponding to the current temperature measurement scene from a plurality of preset temperature measurement periods;
the acquiring of the oscillation frequency of the frequency source of the electronic device in a preset temperature measurement period includes:
and acquiring the oscillation frequency of the frequency source of the electronic equipment in the target temperature measurement period.
4. The method of claim 3, wherein the current thermometry scenario comprises a thermometry monitoring scenario within an epidemic area;
the determining the current temperature measurement scene comprises:
acquiring the position information of the electronic equipment, and determining whether the area of the electronic equipment is an epidemic situation occurrence area or not according to the position information;
and under the condition that the area where the electronic equipment is located is determined to be the epidemic situation generating area, determining that the current temperature measuring scene is a temperature monitoring scene in the epidemic situation area.
5. The method of claim 4, wherein the determining the target temperature measurement period corresponding to the current temperature measurement scenario from a plurality of preset temperature measurement periods comprises:
acquiring an epidemic situation grade corresponding to the area where the electronic equipment is located under the condition that the current temperature measuring scene is the body temperature monitoring scene in the epidemic situation area;
and determining the target temperature measuring period corresponding to the epidemic situation grade from the plurality of preset temperature measuring periods, wherein different epidemic situation grades correspond to different preset temperature measuring periods.
6. The method of claim 3, wherein the current thermometry scenario includes a body state temperature monitoring scenario; the determining the current temperature measurement scene comprises:
acquiring preset temperature measurement time;
acquiring a plurality of historical temperature measuring times in a preset time period before the temperature measuring time;
and under the condition that the body temperatures measured in N continuous historical temperature measurement times are all within a preset temperature range, taking a target body temperature monitoring scene corresponding to the preset temperature range in at least one body state body temperature monitoring scene as the current temperature measurement scene, and enabling different preset temperature ranges to correspond to different target body temperature detection scenes, wherein N is a positive integer greater than 0.
7. The method of claim 1, wherein the preset monitoring conditions include one or more of:
for each of a plurality of preset times, the temperature of the target object at the preset time is within a preset temperature range; or
The temperature is outside a preset normal temperature range; or
And the temperature of the target object in a preset historical time period is within the preset normal temperature range.
8. The method of claim 1, wherein the predetermined monitoring operation comprises:
and sending the temperature to a target terminal so that the target terminal outputs the prompt information under the condition that the target object meets the preset monitoring condition according to the temperature.
9. The method of claim 1, wherein the predetermined monitoring operation comprises:
and outputting the prompt information under the condition that the target object meets the preset monitoring condition according to the temperature.
10. The method according to any one of claims 1 to 9, further comprising:
displaying, by the electronic device, the temperature; and/or the presence of a gas in the gas,
and sending the temperature to a target terminal so as to display the temperature through the target terminal.
11. An apparatus for temperature monitoring, applied to an electronic device, the apparatus comprising:
the acquisition module is configured to acquire the oscillation frequency of a frequency source of the electronic equipment in a preset temperature measurement period;
the first determination module is configured to determine the temperature of a target object to be subjected to temperature measurement according to the oscillation frequency and a preset reference temperature;
and the execution module is configured to execute preset monitoring operation according to the temperature, wherein the preset monitoring operation is used for outputting prompt information under the condition that the temperature meets a preset monitoring condition.
12. The apparatus for temperature monitoring according to claim 11, wherein the first determining module is configured to obtain a preset oscillating frequency corresponding to the frequency source at the preset reference temperature; determining a first oscillation frequency variation of the frequency source according to the preset oscillation frequency and a temperature coefficient of the frequency source, wherein the temperature coefficient is used for representing a corresponding relation between the temperature variation of the target object to be subjected to temperature measurement and the preset oscillation frequency variation; the first oscillation frequency variation represents variation of the oscillation frequency under the condition that the temperature variation is a preset unit temperature; acquiring a reference oscillation frequency of the frequency source in the preset temperature measurement period based on the preset oscillation frequency; calculating a difference value between the oscillation frequency and the reference oscillation frequency to obtain a second oscillation frequency variation of the frequency source; and determining the temperature of the target object according to the first oscillation frequency variation, the second oscillation frequency variation and the preset reference temperature.
13. The apparatus of claim 11, further comprising:
the second determining module is configured to determine a current temperature measurement scene and determine a target temperature measurement period corresponding to the current temperature measurement scene from a plurality of preset temperature measurement periods;
the acquisition module is configured to acquire an oscillation frequency of a frequency source of the electronic device in the target temperature measurement period.
14. The apparatus of claim 13, wherein the current thermometry scenario comprises a thermometry monitoring scenario within an epidemic area; the second determining module is configured to acquire the position information of the electronic equipment and determine whether the area of the electronic equipment is an epidemic situation occurrence area according to the position information; and under the condition that the area where the electronic equipment is located is determined to be the epidemic situation generating area, determining that the current temperature measuring scene is a temperature monitoring scene in the epidemic situation area.
15. The apparatus according to claim 14, wherein the second determining module is configured to obtain an epidemic situation level corresponding to an area where the electronic device is located, when the current temperature measurement scene is a temperature monitoring scene in the epidemic situation area; and determining the target temperature measuring period corresponding to the epidemic situation grade from the plurality of preset temperature measuring periods, wherein different epidemic situation grades correspond to different preset temperature measuring periods.
16. The apparatus of claim 13, wherein the current thermometry scenario comprises a body state temperature monitoring scenario; the second determination module is configured to acquire preset temperature measurement time; acquiring a plurality of historical temperature measuring times in a preset time period before the temperature measuring time; and under the condition that the body temperatures measured in N continuous historical temperature measurement times are all within a preset temperature range, taking a target body temperature monitoring scene corresponding to the preset temperature range in at least one body state body temperature monitoring scene as the current temperature measurement scene, and enabling different preset temperature ranges to correspond to different target body temperature detection scenes, wherein N is a positive integer greater than 0.
17. The apparatus of claim 11, wherein the preset monitoring conditions comprise one or more of: for each of a plurality of preset times, the temperature of the target object at the preset time is within a preset temperature range; the temperature is outside a preset normal temperature range; and the temperature of the target object in a preset historical time period is within the preset normal temperature range.
18. The device of claim 11, wherein the execution module is configured to send the temperature to a target terminal, so that the target terminal outputs the prompt message when determining that the target object meets the preset monitoring condition according to the temperature.
19. The apparatus of claim 11, wherein the execution module is configured to output the prompt message if it is determined that the target object meets the preset monitoring condition according to the temperature.
20. The apparatus of any one of claims 11 to 19, further comprising:
a presentation module configured to present the temperature via the electronic device; and/or the presence of a gas in the gas,
the sending module is configured to send the temperature to a target terminal so as to display the temperature through the target terminal.
21. An apparatus for temperature monitoring, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: acquiring the oscillation frequency of a frequency source of the electronic equipment in a preset temperature measuring period; determining the temperature of a target object to be subjected to temperature measurement according to the oscillation frequency and a preset reference temperature; and executing preset monitoring operation according to the temperature, wherein the preset monitoring operation is used for outputting prompt information under the condition that the temperature meets preset monitoring conditions.
22. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 10.
CN202011141899.0A 2020-10-22 2020-10-22 Temperature monitoring method and device and storage medium Pending CN112268634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011141899.0A CN112268634A (en) 2020-10-22 2020-10-22 Temperature monitoring method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011141899.0A CN112268634A (en) 2020-10-22 2020-10-22 Temperature monitoring method and device and storage medium

Publications (1)

Publication Number Publication Date
CN112268634A true CN112268634A (en) 2021-01-26

Family

ID=74342228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011141899.0A Pending CN112268634A (en) 2020-10-22 2020-10-22 Temperature monitoring method and device and storage medium

Country Status (1)

Country Link
CN (1) CN112268634A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113100718A (en) * 2021-03-04 2021-07-13 深圳正一电子电缆有限公司 Intelligent bracelet for epidemic prevention and control
CN116577596A (en) * 2023-07-13 2023-08-11 麦斯塔微电子(深圳)有限公司 Measuring method and measuring system of oscillator

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5836691A (en) * 1996-07-17 1998-11-17 Techno Togo Limited Company Method of thermometry and apparatus for the thermometry
CN102438066A (en) * 2011-10-24 2012-05-02 惠州Tcl移动通信有限公司 Mobile phone and temperature detection method based on same
CN103384816A (en) * 2011-02-07 2013-11-06 北欧半导体公司 Semiconductor temperature sensors
CN103499739A (en) * 2013-09-25 2014-01-08 浪潮电子信息产业股份有限公司 Frequency measurement method based on FPGA
CN103884446A (en) * 2014-04-08 2014-06-25 章礼道 Quartz crystal thermometer based on Beidou time service
CN203929885U (en) * 2014-03-12 2014-11-05 河南科技大学 Based on FPGA etc. precision frequency testing system
JP2017046036A (en) * 2015-08-24 2017-03-02 セイコーエプソン株式会社 Circuit device, physical quantity sensor, oscillator, electronic apparatus and mobile
CN108593134A (en) * 2018-04-17 2018-09-28 章礼道 Wearable high-precision body temperature transducer
CN111063450A (en) * 2020-02-17 2020-04-24 深圳市刷新智能电子有限公司 Epidemic suspected person screening method and system based on wearable body temperature sensor
CN111174941A (en) * 2020-04-10 2020-05-19 杭州沃朴物联科技有限公司 Body temperature monitoring system and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5836691A (en) * 1996-07-17 1998-11-17 Techno Togo Limited Company Method of thermometry and apparatus for the thermometry
CN103384816A (en) * 2011-02-07 2013-11-06 北欧半导体公司 Semiconductor temperature sensors
CN102438066A (en) * 2011-10-24 2012-05-02 惠州Tcl移动通信有限公司 Mobile phone and temperature detection method based on same
CN103499739A (en) * 2013-09-25 2014-01-08 浪潮电子信息产业股份有限公司 Frequency measurement method based on FPGA
CN203929885U (en) * 2014-03-12 2014-11-05 河南科技大学 Based on FPGA etc. precision frequency testing system
CN103884446A (en) * 2014-04-08 2014-06-25 章礼道 Quartz crystal thermometer based on Beidou time service
JP2017046036A (en) * 2015-08-24 2017-03-02 セイコーエプソン株式会社 Circuit device, physical quantity sensor, oscillator, electronic apparatus and mobile
CN108593134A (en) * 2018-04-17 2018-09-28 章礼道 Wearable high-precision body temperature transducer
CN111063450A (en) * 2020-02-17 2020-04-24 深圳市刷新智能电子有限公司 Epidemic suspected person screening method and system based on wearable body temperature sensor
CN111174941A (en) * 2020-04-10 2020-05-19 杭州沃朴物联科技有限公司 Body temperature monitoring system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113100718A (en) * 2021-03-04 2021-07-13 深圳正一电子电缆有限公司 Intelligent bracelet for epidemic prevention and control
CN116577596A (en) * 2023-07-13 2023-08-11 麦斯塔微电子(深圳)有限公司 Measuring method and measuring system of oscillator
CN116577596B (en) * 2023-07-13 2024-05-07 麦斯塔微电子(深圳)有限公司 Measuring method and measuring system of oscillator

Similar Documents

Publication Publication Date Title
CN109920418B (en) Method and device for adjusting awakening sensitivity
EP3162284B1 (en) Communication method and apparatus for wearable device
KR102257792B1 (en) Off-screen display method and device
CN106528389B (en) Performance evaluation method and device for system fluency and terminal
CN104065818A (en) Method and device for prompting user
US11586246B2 (en) Method and apparatus for providing notification regarding wearable device
CN106354571B (en) Message reminding method and device
RU2705424C1 (en) Method and device for controlling an alarm clock
CN112268634A (en) Temperature monitoring method and device and storage medium
CN109381164B (en) Skin humidity detection method and device
CN110706784A (en) Calorie intake amount calculation method, device, system, apparatus, and storage medium
CN108632391B (en) Information sharing method and device
WO2017096952A1 (en) Information pushing method and apparatus
US20160125303A1 (en) Method and apparatus for calculating smart indicator
CN112462997B (en) Content display method and device, electronic equipment and storage medium
CN106572431B (en) Equipment pairing method and device
CN110248020B (en) Timing method and device
CN114343597A (en) Physiological parameter monitoring method and device, keyboard, electronic equipment and storage medium
KR20180095358A (en) Electronic device and body composition analysing method
CN111685738A (en) Body temperature acquisition method and device, storage medium and electronic equipment
CN107122286B (en) Method and device for counting event information
CN106407804B (en) equipment state detection method and device
KR101839007B1 (en) Smart indicator calculation method, device, program, and recording medium
CN110866733B (en) Information processing method, device and storage medium
CN112386231A (en) In-vivo temperature measuring method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210126