CN115355992A - Temperature determination method and device and electronic equipment - Google Patents
Temperature determination method and device and electronic equipment Download PDFInfo
- Publication number
- CN115355992A CN115355992A CN202210979368.1A CN202210979368A CN115355992A CN 115355992 A CN115355992 A CN 115355992A CN 202210979368 A CN202210979368 A CN 202210979368A CN 115355992 A CN115355992 A CN 115355992A
- Authority
- CN
- China
- Prior art keywords
- temperature
- duration
- historical
- determining
- target
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000005540 biological transmission Effects 0.000 claims abstract description 54
- 238000013507 mapping Methods 0.000 claims description 43
- 230000036760 body temperature Effects 0.000 claims description 37
- 238000001514 detection method Methods 0.000 claims description 12
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 10
- 230000000694 effects Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 238000009529 body temperature measurement Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000010521 absorption reaction Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J5/00—Radiation pyrometry, e.g. infrared or optical thermometry
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01K—MEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
- G01K13/00—Thermometers specially adapted for specific purposes
- G01K13/20—Clinical contact thermometers for use with humans or animals
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Measuring And Recording Apparatus For Diagnosis (AREA)
Abstract
The application discloses a temperature determination method and device and electronic equipment, and belongs to the technical field of electronics. The method comprises the following steps: acquiring a first temperature and a second temperature, wherein the first temperature is obtained by detecting a first position in a sound transmission channel of an earphone, the second temperature is obtained by detecting a second position in the sound transmission channel, and the first position and the second position are distributed at intervals along the sound transmission direction of the sound transmission channel; calculating a difference between the first temperature and the second temperature; and under the condition that the first duration is less than or equal to a first preset duration, determining the target temperature based on the first temperature and the second temperature, wherein the first duration is the duration of the difference value, and the first duration is less than or equal to a preset temperature threshold value.
Description
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a temperature determination method and device and electronic equipment.
Background
At present, for the measurement of realization to body temperature, usually stretch into to user's duct through the temperature measurement part with ear thermometer, the temperature sensor through the temperature measurement part setting of ear thermometer acquires the temperature signal in user's the duct and generates user's body temperature. However, the manner of measuring body temperature by an ear thermometer is limited in the usage scenario, so that the instantaneity of obtaining the body temperature by a user is poor.
Disclosure of Invention
The embodiment of the application aims to provide a temperature determination method, a temperature determination device and electronic equipment, which can solve the problem of poor instantaneity of body temperature measurement.
In a first aspect, an embodiment of the present application provides a temperature determination method, including:
acquiring a first temperature and a second temperature, wherein the first temperature is obtained by detecting a first position in a sound transmission channel of an earphone, the second temperature is obtained by detecting a second position in the sound transmission channel, and the first position and the second position are distributed at intervals along the sound transmission direction of the sound transmission channel;
calculating a difference between the first temperature and the second temperature;
and under the condition that the first duration is less than or equal to a first preset duration, determining a target temperature based on the first temperature and the second temperature, wherein the first duration is the duration of the difference value which is less than or equal to a preset temperature threshold value continuously.
In a second aspect, an embodiment of the present application provides a temperature determination apparatus, including:
the temperature acquisition module is used for acquiring a first temperature and a second temperature, wherein the first temperature is obtained by detecting a first position in a sound transmission channel of the earphone, the second temperature is obtained by detecting a second position in the sound transmission channel, and the first position and the second position are distributed at intervals along the sound transmission direction of the sound transmission channel;
a difference calculation module for calculating a difference between the first temperature and the second temperature;
the first determining module is used for determining the target temperature based on the first temperature and the second temperature under the condition that a first duration is less than or equal to a first preset duration, wherein the first duration is a duration that the difference value is less than or equal to a preset temperature threshold value continuously.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, a first temperature and a second temperature are obtained by obtaining a first position and a second position in a sound transmission channel of an earphone and calculating a difference value between the first temperature and the second temperature, and when a first duration of the difference value between the first temperature and the second temperature which is continuously less than or equal to a preset temperature threshold value is less than or equal to a first preset duration, a target temperature is determined based on the first temperature and the second temperature. Therefore, the body temperature of the user can be determined when the user wears the earphone, and the earphone is an article which can be carried by the user, so that compared with the method of measuring the body temperature only through an ear thermometer, the application scene is more flexible and wide, the electronic equipment can acquire the body temperature of the user in time, and the instantaneity of acquiring the body temperature of the user is improved; in addition, because the temperature in the sound transmission channel can reach thermal equilibrium under the condition that the difference value between the first temperature and the second temperature is less than or equal to the preset temperature threshold value, and the target temperature is determined through the first temperature and the second temperature under the condition that the first duration time under the thermal equilibrium is less than or equal to the first preset time, the determined target temperature can be more accurate, and the accuracy of the determined body temperature is improved.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of a headset provided herein;
fig. 2 is a schematic circuit diagram of an embodiment of the earphone provided in the present application;
FIG. 3 is a schematic flow chart diagram of an embodiment of a temperature determination method provided herein;
FIG. 4 is a schematic flow chart diagram of a practical application of an embodiment of a temperature determination method provided herein;
FIG. 5 is a schematic block diagram of an embodiment of a temperature determining apparatus provided herein;
FIG. 6 is a schematic structural diagram of an embodiment of an electronic device provided herein;
fig. 7 is a schematic structural diagram of another embodiment of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below clearly with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application are capable of operation in sequences other than those illustrated or described herein, and that the terms "first," "second," etc. are generally used in a generic sense and do not limit the number of terms, e.g., a first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The temperature determination method, the temperature determination device, and the electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Please refer to fig. 1, which is a schematic structural diagram of an earphone provided in an embodiment of the present application. As shown in fig. 1, the headset includes:
a housing 10, wherein a sound transmission channel is arranged in the housing 10;
a first temperature sensor 20 (each sensor is shown by a dashed line box in the figure) and a second temperature sensor 30, the first temperature sensor 20 is arranged at a first position in the sound transmission channel, the second temperature sensor 30 is arranged at a second position in the sound transmission channel, the first position and the second position are distributed at intervals along the sound transmission direction, the first temperature sensor 20 is used for detecting the temperature of the first position in the casing 10, and the second temperature sensor 30 is used for detecting the temperature of the second position in the casing 10.
In the embodiment of the present application, the earphone may be a sound generating device at least partially capable of being worn in the ear of the user, and the earphone may be a wireless earphone or a wired earphone.
The casing 10 may also be referred to as a casing of an earphone, and is provided with a sound outlet 100 and a cavity communicated with the sound outlet, and a sound generating component 40 of the earphone may be disposed in the cavity, and a sound transmission channel may be formed between the sound generating component 40 and the sound outlet 100. In the case where the sound emitting assembly 40 converts the received electrical signal into sound, the sound generated by the sound emitting assembly 40 may propagate in the sound transmission channel and be output from the sound outlet 100 to the ear of the user.
In the embodiment of the present application, the earphone further includes a first temperature sensor 20 and a second temperature sensor 30, and the first temperature sensor 20 and the second temperature sensor 30 may be any temperature sensors for detecting the temperature in the housing 10.
The first temperature sensor 20 is disposed at a first position in the sound transmission channel, the second temperature sensor 30 is disposed at a second position in the sound transmission channel, and the first position and the second position are spaced apart from each other along the sound transmission direction, so that the first temperature sensor 20 and the second temperature sensor 30 can detect temperatures at different positions in the sound transmission direction in the housing 10, that is, the first temperature sensor 20 detects a first temperature at the first position in the housing 10, and the second temperature sensor 30 detects a second temperature at the second position in the housing 10. The sound transmission direction is a direction from the sound emitting unit 40 to the sound outlet 100.
The first position and the second position may be any positions within the housing 10. Specifically, the first position and the second position may be disposed near the sound outlet 100, so that the measured body temperature is more accurate.
In some embodiments, the earphone may further include a third temperature sensor 50, and the third temperature sensor 50 is disposed on a side of the housing 10 away from the cavity thereof.
The third temperature sensor 50 may be used to detect an ambient temperature (i.e. a third temperature) of an environment in which the headset is located, in case the headset is worn in the ear of the user. Specifically, it may be that the third temperature sensor 50 is disposed away from the sound outlet 100 of the earphone so that, in a case where the earphone is worn in the ear of the user, the third temperature sensor 50 may be away from the ear of the user, so that an influence of the target temperature of the user on the accuracy of the third temperature detected by the third temperature sensor 50 may be reduced.
The third temperature sensor 50 may be located at any position on the side of the housing 10 away from the cavity thereof. For example, when the housing includes a head 11 and a stem 12, the sound outlet 100 is provided in the head 11, the stem 12 is connected to the head 11, and the third temperature sensor 50 may be provided in the head 11 or the stem 12.
In some embodiments, a wearing sensor 60 may be further disposed in the earphone, and the wearing sensor 60 is disposed in the housing 10.
The wearing sensor 60 may be any sensor that can be used to detect whether the headset is worn in the ear of the user. For example, the wearable sensor 60 may include at least one of an infrared sensor and an electromagnetic wave energy Absorption Rate (SAR) sensor.
In the case where the earphone is provided with the wearing sensor 60, the earphone may detect the first temperature and the second temperature, or may detect the first temperature, the second temperature, and the third temperature when it is detected that the earphone is worn in the ear of the user.
It should be noted that the above-mentioned earphone may also be provided with other components. For example, as shown in fig. 2, a Micro Controller Unit (MCU) 70, a sensor hub 80, an antenna 90, etc. may be further included, the above sensors (including the first temperature sensor 20, the second temperature sensor 30, the third temperature sensor 50, the wearing sensor 60, etc.) may be electrically connected to the MCU70 through the sensor hub 80, the MCU70 is also electrically connected to the above sounding component 40 and the antenna 90, and the MCU70 may control the operation of the sensors, the sounding component 40, and the antenna 90. In some embodiments, MCU70 may also determine the target temperature from data acquired by the various sensors described above.
Fig. 3 is a schematic flow chart of a temperature determination method according to an embodiment of the present application. The temperature determination method is applied to an electronic device, and as shown in fig. 3, the method comprises the following steps:
301, acquiring a first temperature and a second temperature, wherein the first temperature is detected at a first position in a sound transmission channel of the earphone, the second temperature is detected at a second position in the sound transmission channel, and the first position and the second position are distributed at intervals along the sound transmission direction of the sound transmission channel;
In the embodiment of the application, a first temperature and a second temperature are obtained by obtaining a first position and a second position in a sound transmission channel of an earphone and detecting, and a difference value between the first temperature and the second temperature is obtained by calculation, and when a first duration time of the difference value between the first temperature and the second temperature which is continuously less than or equal to a preset temperature threshold value is less than or equal to a first preset duration time, a target temperature is determined based on the first temperature and the second temperature. Therefore, the body temperature of the user can be determined when the user wears the earphone, and the earphone is an article which can be carried by the user, so that compared with the body temperature measurement through an ear thermometer, the application scene is more flexible and wide, the electronic equipment can acquire the body temperature of the user in time, and the instantaneity of the user in acquiring the body temperature is improved; in addition, because the temperature in the sound transmission channel can reach thermal equilibrium under the condition that the difference value between the first temperature and the second temperature is less than or equal to the preset temperature threshold value, and the target temperature is determined through the first temperature and the second temperature under the condition that the first duration time under the thermal equilibrium is less than or equal to the first preset time length, the determined target temperature can be more accurate, and the accuracy of the determined body temperature is improved.
It should be noted that the electronic device may be the earphone, and the earphone may determine the target temperature according to the detected data.
Or, the electronic device may be a device other than the earphone, and the electronic device is connected to the earphone (which may be in a wireless or wired connection), so that the earphone may transmit the data acquired by the electronic device to the electronic device, and the electronic device may determine the target temperature according to the data transmitted by the earphone. The electronic device may include at least one of a mobile phone, a tablet computer, a smart wearable device, and the like.
In step 301, the electronic device may obtain the first temperature and the second temperature.
Specifically, in the case where the electronic device is the earphone, the earphone may detect a first temperature at the first position by a first temperature sensor thereof, and detect a second temperature at the second position by a second temperature sensor thereof.
Alternatively, when the electronic device is connected to the earphone, the earphone may transmit the first temperature and the second temperature to the electronic device when the earphone detects the first temperature and the second temperature by the first temperature sensor and the second temperature sensor, respectively.
The above-mentioned obtaining the first temperature and the second temperature may be that the electronic device obtains the first temperature and the second temperature according to a preset period. For example, it may be that the electronic device acquires the first temperature and the second temperature every 1 minute (i.e., a preset period), and so on.
In the step 302, after the electronic device obtains the first temperature and the second temperature, the electronic device may calculate a difference between the first temperature and the second temperature.
For example, the MCU of the earphone may obtain the first temperature and the second temperature, and calculate a difference between the first temperature and the second temperature; alternatively, after the electronic device receives the first temperature and the second temperature, a difference between the first temperature and the second temperature may be calculated.
The difference between the first temperature and the second temperature may be a value obtained by subtracting the second temperature from the first temperature, or may be a value obtained by subtracting the first temperature from the second temperature. Specifically, the difference between the first temperature and the second temperature may be an absolute value obtained by subtracting the first temperature from the second temperature.
In step 303, after the electronic device calculates the difference between the first temperature and the second temperature, the electronic device may compare the difference between the first temperature and the second temperature with a preset temperature threshold, and determine the target temperature based on the first temperature and the second temperature if a first duration of the difference being less than or equal to the preset temperature threshold is less than or equal to a first preset duration.
Since the first and second locations are spaced apart in the sound transmission direction in the sound transmission channel, a temperature difference may exist between the first and second temperatures.
The preset temperature threshold may be a preset temperature threshold in the electronic device, which is used to indicate whether the temperature in the earphone is in thermal balance, that is, when a difference between the first temperature and the second temperature is less than or equal to the preset temperature threshold, it is determined that the temperature in the earphone is in thermal balance; and determining that the thermal equilibrium is not present in the earphone if the difference between the first temperature and the second temperature is greater than a preset temperature threshold.
In the case that the electronic device determines that the electronic device is in thermal equilibrium within the headset, the electronic device may obtain a first duration time of the thermal equilibrium within the headset, and in the case that the first duration time is less than or equal to a first preset time period, the electronic device may determine that the heat energy generated by the internal device of the headset has substantially no influence on the temperatures detected by the first temperature sensor and the second temperature sensor, at this time, the electronic device may determine the target temperature based on the first temperature and the second temperature. The target temperature may be a body temperature of the user.
The preset temperature threshold and the first preset time period may be values preset in the electronic device, respectively, and both may be acquired through historical experimental data.
The determining of the target temperature based on the first temperature and the second temperature may be outputting the first temperature and the second temperature as input quantities through a preset temperature calculation formula to obtain the target temperature. For example, an average value of the first temperature and the second temperature may be set as the target temperature, and so on.
In this embodiment, after the electronic device determines the target temperature, the electronic device may output the target temperature, so that a user can timely know the target temperature.
For example, in the case that the electronic device is an earphone, the earphone may output the target temperature in a voice broadcast manner, and so on; and in the case where the above-mentioned electronic device is connected to an earphone, the electronic device may display the target temperature, and so on.
In some embodiments, prior to determining the target temperature based on the first temperature and the second temperature, the method further comprises:
and acquiring a third temperature, wherein the third temperature is the ambient temperature detected outside the sound transmission channel.
After calculating the difference between the first temperature and the second temperature, the method may further include:
in the case that the first duration is greater than a first preset duration, a target temperature is determined based on the first temperature, the second temperature, and the third temperature.
In this embodiment, when the first duration is longer than the first preset duration, since the heat energy generated by the internal device of the earphone is continuously increased, the heat energy generated by the internal device of the earphone affects the temperatures detected by the first temperature sensor and the second temperature sensor, and the target temperature is determined according to the ambient temperature, the first temperature and the second temperature, so that the accuracy of the determined body temperature can be improved.
The determining the target temperature based on the first temperature, the second temperature and the third temperature may be that weights corresponding to the first temperature, the second temperature and the third temperature are preset in the electronic device, and the target temperature is calculated by the first temperature, the second temperature, the third temperature and the weights corresponding to the respective temperatures.
In some embodiments, the generating a second target temperature based on the first temperature, the second temperature, and the third temperature includes:
determining a compensated temperature based on the third temperature and the first duration;
based on the first temperature, the second temperature, and the compensated temperature, a target temperature is determined.
In this embodiment, in the process of determining the target temperature, the time lengths (i.e., the first duration) for generating heat energy by the internal device of the earphone are different, and the influences on the first temperature and the second temperature are different, so that the compensation temperature is determined by the third temperature and the first duration, and then the target temperature is determined by the first temperature, the second temperature and the compensation temperature, so that the accuracy of the determined body temperature can be further improved.
The determining of the compensated temperature based on the third temperature and the first duration may be determining a temperature scaling factor corresponding to the first duration according to a mapping relationship between preset durations and temperature proportions, and then determining a product of the third temperature and the determined temperature scaling factor as the compensated temperature. The mapping relation between the time length and the temperature ratio can be constructed through a large amount of historical experimental data.
The determining of the target temperature based on the first temperature, the second temperature and the compensation temperature may be performed by obtaining an average value of the first temperature and the second temperature, and then determining a sum of the obtained average value and the compensation temperature as the target temperature. It should be noted that the compensation temperature may be a positive value or a negative value.
In some embodiments, before determining the target temperature based on the first temperature and the second temperature, the method further includes:
acquiring a plurality of groups of historical body temperature data sets, wherein each group of historical data set comprises a first historical temperature, a second historical temperature and a human body historical temperature, the first historical temperature is obtained by detection at a first position, and the second historical temperature is obtained by detection at a second position;
and generating a temperature mapping relation table based on the plurality of sets of historical body temperature data, wherein the mapping relation table comprises a plurality of sets of mapping relations, and each mapping relation is used for indicating the relation among the first historical temperature, the second historical temperature and the human body historical temperature.
The determining the target temperature based on the first temperature and the second temperature may include:
and determining the historical temperature of the human body, which has a mapping relation with the first temperature and the second temperature, as the target temperature in the mapping relation table.
In this embodiment, a temperature mapping relation table may be generated by using a plurality of sets of historical body temperature data, and in the process of determining the target temperature, the actual historical human body temperature having a mapping relation with the first temperature and the second temperature is searched in the temperature mapping relation table to serve as the target temperature, so that not only the efficiency of determining the body temperature but also the accuracy of determining the body temperature may be improved.
The first historical temperature and the second historical temperature can be measured by the earphone or other earphones with the same structure as the earphone; the historical human body temperature is the actual body temperature measured by other body temperature measuring devices (such as ear thermometer and the like) with the measuring accuracy higher than the preset accuracy when the first historical human body temperature and the second historical human body temperature are measured.
Certainly, a mapping relationship table corresponding to the first temperature, the second temperature, and the third temperature may also be preset in the electronic device, and the historical temperature of the human body having a mapping relationship with the first temperature, the second temperature, and the third temperature may be determined as the target temperature through the mapping relationship table; or, a mapping relation table corresponding to a third temperature, a duration and a compensation coefficient may be preset, where each mapping relation in the mapping relation table is a corresponding relation between a third history temperature, a history duration and a history compensation temperature, the third history temperature is a history ambient temperature, and the history compensation temperature is determined by the history temperature of the human body, the first history temperature and the second history temperature, so that a compensation temperature having a mapping relation with the third temperature and the first duration may be determined, and the target temperature may be determined by the first temperature, the second temperature and the compensation temperature.
In this embodiment, when the difference between the first temperature and the second temperature is greater than the preset temperature threshold, that is, the earphone is not in thermal equilibrium, the electronic device may continuously obtain the first temperature and the second temperature until the difference between the first temperature and the second temperature is less than or equal to the preset temperature threshold, and determine the target temperature.
In some embodiments, after calculating the difference between the first temperature and the second temperature, the method further includes:
and under the condition that the second duration is greater than or equal to a second preset duration, determining the target temperature based on the first temperature, the second temperature and the third temperature, wherein the second duration is a duration of which the difference value is continuously greater than the preset temperature threshold value.
In this embodiment, when the duration of the short of the thermal equilibrium in the earphone reaches the second preset duration, the electronic device may determine the target temperature through the first temperature, the second temperature, and the third temperature, so as to improve the instantaneity of determining the body temperature.
The process of determining the target temperature based on the first temperature, the second temperature and the third temperature when the second duration is greater than or equal to the second preset duration may be the same as the process of determining the target temperature based on the first temperature, the second temperature and the third temperature when the first duration is greater than the first preset duration, and is not described herein again.
In some embodiments, the obtaining the first temperature and the second temperature includes:
the first temperature and the second temperature are acquired with the headset worn in the ear of the user.
Based on the above, the first temperature and the second temperature are obtained only under the condition that the earphone is determined to be worn in the ear of the user, so that the target temperature is determined, misoperation of the electronic equipment can be reduced, and consumption of electric quantity of the electronic equipment is reduced.
In order to facilitate understanding of the method for determining the temperature provided in the embodiments of the present application, a practical application process of the method is described herein with reference to fig. 4, and specifically includes the following steps 401 to 407.
And step 403, controlling each temperature sensor to start temperature detection and start timing when the earphone is determined to be worn on the ear.
And 405, judging whether the difference value of the first temperature and the second temperature in the earphone is less than or equal to a preset temperature threshold value delta Tthr, namely judging whether delta | TEMP1-TEMP2| is less than or equal to delta Tthr.
If t is less than or equal to t s1 It means that the time for heat balance to be achieved in the earphone is sufficiently short, and at this time, heat is generated in the earphoneThe temperature rise effect of (a) is not enough to affect the sensing of the temperature sensor 1 and the temperature sensor 2, the target temperature is determined to be related to only the sensing value TEMP1 of the temperature sensor 1 and the sensing value TEMP2 of the temperature sensor 2, and the target temperature TEMP = f (TEMP 2, TEMP 1) can be determined (i.e., the target temperature is determined based on the first temperature and the second temperature). Wherein, f (TEMP 2, TEMP 1) is a TEMP, TEMP1, TEMP2 relational expression table (i.e. mapping relational table) which can be established under different environmental temperatures according to different ear temperature crowds measured historically.
If t > t s1 It means that the time for achieving the thermal equilibrium in the headphone is not short enough, and the temperature rise effect generated inside the headphone may affect the sensing of the temperature sensor 1 and the temperature sensor 2, and at this time, it is considered that the target temperature is related to not only the TEMP1 and the TEMP2 but also the TEMP3 collected by the temperature sensor 3, and the target temperature TEMP = f (TEMP 2, TEMP 1) + f (TEMP 3, t) may be determined (i.e., the target temperature is determined based on the first temperature, the second temperature, and the third temperature). f (TEMP 3, t) is a relational expression established between the temperature value TEMP3 of the temperature sensor 3 measured in history, the time t and the actually measured compensation value.
According to the temperature determination method provided by the embodiment of the application, the execution main body can be a temperature determination device. In the embodiment of the present application, a temperature determination device executing a temperature determination method is taken as an example, and the temperature determination device provided in the embodiment of the present application is described.
Fig. 5 is a schematic structural diagram of a temperature determination device according to an embodiment of the present application. As shown in fig. 5, the temperature determination device 500 includes:
a temperature obtaining module 501, configured to obtain a first temperature and a second temperature, where the first temperature is detected at a first position in a sound transmission channel of the earphone, and the second temperature is detected at a second position in the sound transmission channel, and the first position and the second position are distributed at intervals along a sound transmission direction of the sound transmission channel;
a difference calculation module 502 for calculating a difference between the first temperature and the second temperature;
the first determining module 503 is configured to determine the target temperature based on the first temperature and the second temperature when the first duration is less than or equal to a first preset duration, where the first duration is a duration that a difference value is less than or equal to a preset temperature threshold.
In some embodiments, the apparatus 500 further comprises:
the second temperature acquisition module is used for acquiring a third temperature, wherein the third temperature is an ambient temperature detected outside the sound transmission channel;
and the second determination module is used for determining the target temperature based on the first temperature, the second temperature and the third temperature under the condition that the first duration is longer than a first preset duration.
In some embodiments, the second determining module comprises:
a compensation temperature determination unit for determining a compensation temperature based on the third temperature and the first duration;
a target temperature determination unit for determining a target temperature based on the first temperature, the second temperature and the compensation temperature.
In some embodiments, the apparatus 500, further comprises:
and the third determining module is used for determining the target temperature based on the first temperature, the second temperature and the third temperature under the condition that the second duration is longer than or equal to a second preset duration, wherein the second duration is a duration that the difference value is continuously longer than a preset temperature threshold value.
In some embodiments, the apparatus 500 further comprises:
the data set acquisition module is used for acquiring a plurality of groups of historical body temperature data sets, each group of historical data sets comprises a first historical temperature, a second historical temperature and a human body historical temperature, the first historical temperature is obtained by detection at a first position, and the second historical temperature is obtained by detection at a second position;
and the relation table generating module is used for generating a temperature mapping relation table based on the plurality of groups of historical body temperature data sets, the mapping relation table comprises a plurality of groups of mapping relations, and each mapping relation is used for indicating the relation among the first historical temperature, the second historical temperature and the human body historical temperature.
The first determining module 503 may specifically be configured to:
and determining the historical temperature of the human body, which has a mapping relation with the first temperature and the second temperature, as the target temperature in the mapping relation table.
In some embodiments, the temperature obtaining module 501 is specifically configured to:
the first temperature and the second temperature are acquired with the headset worn in the ear of the user.
The temperature determination device in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a personal computer (NAS), a Television (TV), an assistant, a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The temperature determination device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The temperature determination device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 3, and can achieve the same technical effect, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in an embodiment of the present application, and includes a processor 601 and a memory 602, where a program or an instruction that can be executed on the processor 601 is stored in the memory 602, and when the program or the instruction is executed by the processor 601, the steps of the embodiment of the temperature determining method are implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 710 is configured to:
acquiring a first temperature and a second temperature, wherein the first temperature is obtained by detecting a first position in a sound transmission channel of the earphone, the second temperature is obtained by detecting a second position in the sound transmission channel, and the first position and the second position are distributed at intervals along the sound transmission direction of the sound transmission channel;
calculating a difference between the first temperature and the second temperature;
and under the condition that the first duration is less than or equal to a first preset duration, determining the target temperature based on the first temperature and the second temperature, wherein the first duration is a duration of which the difference value is less than or equal to a preset temperature threshold value continuously.
In some embodiments, the processor 710 is further configured to:
acquiring a third temperature, wherein the third temperature is an ambient temperature detected outside the sound transmission channel;
in the case that the first duration is greater than a first preset duration, a target temperature is determined based on the first temperature, the second temperature, and the third temperature.
In some embodiments, the processor 710 is further configured to:
determining a compensated temperature based on the third temperature and the first duration;
based on the first temperature, the second temperature, and the compensated temperature, a target temperature is determined.
In some embodiments, the processor 710 is further configured to:
and under the condition that the second duration is greater than or equal to a second preset duration, determining the target temperature based on the first temperature, the second temperature and the third temperature, wherein the second duration is a duration of which the difference value is continuously greater than the preset temperature threshold value.
In some embodiments, the processor 710 is further configured to:
acquiring a plurality of groups of historical body temperature data sets, wherein each group of historical data set comprises a first historical temperature, a second historical temperature and a human body historical temperature, the first historical temperature is obtained by detection at a first position, and the second historical temperature is obtained by detection at a second position;
generating a temperature mapping relation table based on the plurality of groups of historical body temperature data, wherein the mapping relation table comprises a plurality of groups of mapping relations, and each mapping relation is used for indicating the relation among the first historical temperature, the second historical temperature and the human body historical temperature;
and determining the historical temperature of the human body, which has a mapping relation with the first temperature and the second temperature, as the target temperature in the mapping relation table.
In some embodiments, the processor 710 is further configured to:
the first temperature and the second temperature are acquired with the headset worn in the ear of the user.
The temperature determination device provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 3, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a first storage area for storing a program or an instruction and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. Further, the memory 709 may include volatile memory or nonvolatile memory, or the memory 709 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 709 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor, which primarily handles operations related to the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned embodiment of the temperature determining method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing temperature determination method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing embodiments of the temperature determination method, and achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (12)
1. A method of temperature determination, comprising:
acquiring a first temperature and a second temperature, wherein the first temperature is obtained by detecting a first position in a sound transmission channel of an earphone, the second temperature is obtained by detecting a second position in the sound transmission channel, and the first position and the second position are distributed at intervals along the sound transmission direction of the sound transmission channel;
calculating a difference between the first temperature and the second temperature;
and under the condition that the first duration is less than or equal to a first preset duration, determining the target temperature based on the first temperature and the second temperature, wherein the first duration is the duration of the difference value which is less than or equal to a preset temperature threshold value continuously.
2. The method of claim 1, wherein prior to said determining a target temperature based on said first temperature and said second temperature, said method further comprises:
acquiring a third temperature, wherein the third temperature is an ambient temperature detected outside the sound transmission channel;
after the calculating the difference between the first temperature and the second temperature, the method further comprises:
determining a target temperature based on the first temperature, the second temperature, and the third temperature if the first duration is greater than the first preset duration.
3. The method of claim 2, wherein generating a target temperature based on the first temperature, the second temperature, and the third temperature comprises:
determining a compensated temperature based on the third temperature and the first duration;
determining a target temperature based on the first temperature, the second temperature, and the compensated temperature.
4. The method of claim 2, further comprising, after said calculating the difference between the first temperature and the second temperature:
and under the condition that the second duration is greater than or equal to a second preset duration, determining a target temperature based on the first temperature, the second temperature and the third temperature, wherein the second duration is a duration in which the difference value is continuously greater than the preset temperature threshold.
5. The method of claim 1, further comprising, prior to said determining a target temperature based on said first temperature and said second temperature:
acquiring a plurality of groups of historical body temperature data sets, wherein each group of historical data set comprises a first historical temperature, a second historical temperature and a human body historical temperature, the first historical temperature is obtained by detection at the first position, and the second historical temperature is obtained by detection at the second position;
generating a temperature mapping relation table based on the plurality of groups of historical body temperature data, wherein the mapping relation table comprises a plurality of groups of mapping relations, and each mapping relation is used for indicating the relation among the first historical temperature, the second historical temperature and the human body historical temperature;
the determining a target temperature based on the first temperature and the second temperature comprises:
and determining the historical temperature of the human body having the mapping relation with the first temperature and the second temperature in the mapping relation table as the target temperature.
6. A temperature determining apparatus, comprising:
the earphone comprises a first temperature acquisition module, a second temperature acquisition module and a control module, wherein the first temperature acquisition module is used for acquiring a first temperature and a second temperature, the first temperature is obtained by detecting a first position in a sound transmission channel of the earphone, the second temperature is obtained by detecting a second position in the sound transmission channel, and the first position and the second position are distributed at intervals along the sound transmission direction of the sound transmission channel;
a difference calculation module for calculating a difference between the first temperature and the second temperature;
the first determining module is used for determining the target temperature based on the first temperature and the second temperature under the condition that a first duration is less than or equal to a first preset duration, wherein the first duration is a duration that the difference value is less than or equal to a preset temperature threshold value continuously.
7. The apparatus of claim 6, further comprising:
the second temperature acquisition module is used for acquiring a third temperature, wherein the third temperature is an ambient temperature detected outside the sound transmission channel;
a second determination module to determine a target temperature based on the first temperature, the second temperature, and the third temperature if the first duration is greater than the first preset duration.
8. The apparatus of claim 7, wherein the second determining module comprises:
a compensated temperature determination unit configured to determine a compensated temperature based on the third temperature and the first duration;
a target temperature determination unit to determine a target temperature based on the first temperature, the second temperature, and the compensated temperature.
9. The apparatus of claim 7, further comprising:
and a third determining module, configured to determine a target temperature based on the first temperature, the second temperature, and the third temperature when a second duration is greater than or equal to a second preset duration, where the second duration is a duration in which the difference is continuously greater than the preset temperature threshold.
10. The apparatus of claim 6, further comprising:
the data set acquisition module is used for acquiring a plurality of groups of historical body temperature data sets, wherein each group of historical data set comprises a first historical temperature, a second historical temperature and a human body historical temperature, the first historical temperature is obtained by detection at the first position, and the second historical temperature is obtained by detection at the second position;
the relation table generating module is used for generating a temperature mapping relation table based on the multiple groups of historical body temperature data groups, the mapping relation table comprises multiple groups of mapping relations, and each mapping relation is used for indicating the relation among the first historical temperature, the second historical temperature and the human body historical temperature;
the first determining module is specifically configured to:
and determining the historical temperature of the human body with the mapping relation between the first temperature and the second temperature in the mapping relation table as a target temperature.
11. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the temperature determination method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that a program or instructions are stored on the readable storage medium, which program or instructions, when executed by a processor, carry out the steps of the temperature determination method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210979368.1A CN115355992A (en) | 2022-08-16 | 2022-08-16 | Temperature determination method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210979368.1A CN115355992A (en) | 2022-08-16 | 2022-08-16 | Temperature determination method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115355992A true CN115355992A (en) | 2022-11-18 |
Family
ID=84033616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210979368.1A Pending CN115355992A (en) | 2022-08-16 | 2022-08-16 | Temperature determination method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115355992A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115944278A (en) * | 2023-01-04 | 2023-04-11 | 歌尔股份有限公司 | Body temperature detection method, earphone device and computer readable storage medium |
CN117490887A (en) * | 2023-12-19 | 2024-02-02 | 珠海智融科技股份有限公司 | Correction method and device for chip temperature detection |
-
2022
- 2022-08-16 CN CN202210979368.1A patent/CN115355992A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115944278A (en) * | 2023-01-04 | 2023-04-11 | 歌尔股份有限公司 | Body temperature detection method, earphone device and computer readable storage medium |
CN115944278B (en) * | 2023-01-04 | 2024-05-31 | 歌尔股份有限公司 | Body temperature detection method, earphone device and computer readable storage medium |
CN117490887A (en) * | 2023-12-19 | 2024-02-02 | 珠海智融科技股份有限公司 | Correction method and device for chip temperature detection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2850393B1 (en) | Method for operating a portable electronic device | |
CN108076218B (en) | Charging reminding method and mobile terminal | |
CN115355992A (en) | Temperature determination method and device and electronic equipment | |
US9500535B1 (en) | Determining temperature using multiple sensors | |
CN108390117B (en) | Charging method and mobile terminal | |
EP2808652A1 (en) | Portable electronic device with integrated temperature sensor being compensated by other sensing data | |
EP1301014A1 (en) | Mobile telephone featuring accelerated ambient temperature measurement module | |
CN104111088A (en) | System and method for determining sensor accuracy of a portable electronic device | |
JP7303900B2 (en) | Parameter acquisition method and terminal equipment | |
US10060868B2 (en) | Calculating an effective heat transfer coefficient of a device | |
WO2015015047A1 (en) | Distance estimation | |
CN112415554B (en) | Positioning method and device, electronic equipment and computer readable storage medium | |
CN109962514B (en) | Charging method and mobile terminal | |
KR102023822B1 (en) | Electric power management method and apparatus, and electronic device | |
CN111207839B (en) | Infrared body temperature measuring method and device and terminal equipment | |
CN105571722A (en) | Temperature measuring method and terminal | |
CN112162684A (en) | Parameter adjusting method and device and electronic equipment | |
CN112414587B (en) | Temperature detection method and terminal equipment | |
CN111855020A (en) | Temperature detection method and device, wearable device and storage medium | |
US10317355B2 (en) | Environmental sensor and method for measuring and predicting environmental parameters | |
CN112082656A (en) | Temperature determination method and device, electronic equipment and storage medium | |
CN111739093B (en) | Steam pipeline displacement monitoring method and device and electronic equipment | |
CN110456923B (en) | Gesture sensing data processing method and electronic equipment | |
CN109860743B (en) | Charging method and terminal equipment | |
EP2808651A1 (en) | Portable electronic device with integrated temperature sensor being compensated by other sensing data |
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 |