Temperature determination method, apparatus, and electronic device

By setting a temperature sensor in the sound transmission channel of the earphone, calculating the temperature difference and determining the target temperature, the problem of poor immediacy in measuring body temperature with ear thermometers is solved, and flexible measurement and improved accuracy of body temperature inside the earphone are achieved.

CN115355992BActive Publication Date: 2026-02-17VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210979368.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-16
Publication Date
2026-02-17
Estimated Expiration
2042-08-16

AI Technical Summary

Technical Problem

The use of ear thermometers to measure body temperature in existing technologies is limited, resulting in poor timeliness of temperature measurement.

Method used

By setting a first temperature sensor and a second temperature sensor in the sound transmission channel of the headphones, the difference between the two is calculated, and the target temperature is determined when the difference is consistently less than a preset duration and a temperature threshold.

Benefits of technology

It enables timely acquisition of body temperature when the user is wearing headphones, improving the immediacy and accuracy of body temperature measurement, expanding application scenarios, and determining the temperature more accurately under thermal equilibrium conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115355992B_ABST
    Figure CN115355992B_ABST
Patent Text Reader

Abstract

The application discloses a temperature determination method, 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, the first temperature being detected at a first position in a sound transmission channel of earphones, the second temperature being detected at a second position in the sound transmission channel, the first position and the second position being spaced apart along a sound transmission direction of the sound transmission channel; calculating a difference between the first temperature and the second temperature; in the case that a first duration, which is a duration during which the difference is less than or equal to a preset temperature threshold, is less than or equal to a first preset duration, determining a target temperature based on the first temperature and the second temperature.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of electronics, and particularly relates to a temperature determination method and device and electronic equipment. BACKGROUND

[0002] At present, in order to measure the body temperature, the temperature measuring part of an ear thermometer is usually inserted into the ear canal of a user, and a temperature sensor arranged in the temperature measuring part of the ear thermometer is used to obtain the temperature signal in the ear canal of the user and generate the body temperature of the user. However, the use scenario of the ear thermometer is limited, and the immediacy of obtaining the body temperature of the user is poor. SUMMARY

[0003] The embodiments of the present application aim to provide a temperature determination method and device and electronic equipment, and solve the problem of poor immediacy of measuring the body temperature.

[0004] In a first aspect, the embodiments of the present application provide a temperature determination method, comprising:

[0005] obtaining a first temperature and a second temperature, the first temperature being detected at a first position in a sound transmission channel of a headset, the second temperature being detected at a second position in the sound transmission channel, the first position and the second position being spaced apart along the sound transmission direction of the sound transmission channel;

[0006] calculating the difference between the first temperature and the second temperature;

[0007] in a case where a first duration, which is the duration during which the difference is less than or equal to a preset temperature threshold, is less than or equal to a first preset duration, determining a target temperature based on the first temperature and the second temperature.

[0008] In a second aspect, the embodiments of the present application provide a temperature determination device, comprising:

[0009] a temperature obtaining module configured to obtain a first temperature and a second temperature, the first temperature being detected at a first position in a sound transmission channel of a headset, the second temperature being detected at a second position in the sound transmission channel, the first position and the second position being spaced apart along the sound transmission direction of the sound transmission channel;

[0010] a difference calculating module configured to calculate the difference between the first temperature and the second temperature;

[0011] The first determining module is configured to determine a target temperature based on the first temperature and the second temperature when the first duration, during which the difference value is less than or equal to the preset temperature threshold, is less than or equal to a first preset duration.

[0012] In a third aspect, an electronic device is provided, which includes a processor and a memory. The memory stores programs or instructions executable on the processor. When the programs or instructions are executed by the processor, the steps of the method according to the first aspect are implemented.

[0013] In a fourth aspect, a readable storage medium is provided. The readable storage medium stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the method according to the first aspect are implemented.

[0014] In a fifth aspect, a chip is provided. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to execute programs or instructions to implement the method according to the first aspect.

[0015] In a sixth aspect, a computer program product is provided. The computer program product is stored in a storage medium. The computer program product is executed by at least one processor to implement the method according to the first aspect.

[0016] In the embodiments of the present application, the first temperature and the second temperature are detected by acquiring the first position and the second position in the sound transmission channel of the earphone, and the difference value between the first temperature and the second temperature is calculated. When the first duration, during which the difference value between the first temperature and the second temperature is less than or equal to the preset temperature threshold, is less than or equal to the first preset duration, the target temperature is determined based on the first temperature and the second temperature. In this way, the body temperature of the user can be determined when the user wears the earphone. Compared with measuring the body temperature by using an ear thermometer, the application scenario is more flexible and extensive because the earphone is an item that can be carried by the user. Therefore, the electronic device can obtain the body temperature of the user in time, and the instantaneity of obtaining the body temperature of the user is improved. In addition, when the difference value between the first temperature and the second temperature is less than or equal to the preset temperature threshold, the temperature in the sound transmission channel can reach a thermal equilibrium. When the first duration under the thermal equilibrium is less than or equal to the first preset duration, the target temperature is determined based on the first temperature and the second temperature. Therefore, the determined target temperature is more accurate, and the accuracy of the determined body temperature is improved. BRIEF DESCRIPTION OF DRAWINGS

[0017] Figure 1 is a structural schematic diagram of an embodiment of the earphone provided by the present application;

[0018] Figure 2 is a circuit structure schematic diagram in an embodiment of the earphone provided in the present application;

[0019] Figure 3 is a flowchart of an embodiment of the temperature determination method provided in the present application;

[0020] Figure 4 is a flowchart of the actual application of an embodiment of the temperature determination method provided in the present application;

[0021] Figure 5 is a structure schematic diagram of an embodiment of the temperature determination device provided in the present application;

[0022] Figure 6 is a structure schematic diagram of an embodiment of the electronic device provided in the present application;

[0023] Figure 7 is a structure schematic diagram of another embodiment of the electronic device provided in the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0025] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a category, and are not limited to the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in an "or" relationship.

[0026] The temperature determination method, device and electronic device provided in the embodiments of the present application will be described in detail below with reference to the drawings, through specific embodiments and application scenarios.

[0027] Please refer to Figure 1 , which is a structure schematic diagram of the earphone provided in the embodiments of the present application. As Figure 1 shown, the earphone includes:

[0028] The shell 10 is provided with a sound transmission channel in the shell 10;

[0029] A first temperature sensor 20 (each sensor is shown in a dashed box) and a second temperature sensor 30, the first temperature sensor 20 is arranged at a first position in the sound transmission channel, and the second temperature sensor 30 is arranged at a second position in the sound transmission channel, the first position and the second position are spaced apart along the sound transmission direction, the first temperature sensor 20 is used to detect the temperature at the first position in the shell 10, and the second temperature sensor 30 is used to detect the temperature at the second position in the shell 10.

[0030] In the embodiment of the present application, the earphone can be a sound generating device that can be worn at least partially in the user's ear, and the earphone can be a wireless earphone or a wired earphone.

[0031] The shell 10 can also be referred to as the shell of the earphone, which is provided with a sound outlet 100 and a cavity communicating with the sound outlet, and the sound generating assembly 40 of the earphone can be arranged in the cavity, and the sound generating assembly 40 and the sound outlet 100 can form a sound transmission channel. In the case of converting the received electrical signal into sound by the sound generating assembly 40, the sound generated by the sound generating assembly 40 can propagate in the sound transmission channel and be output from the sound outlet 100 to the user's ear.

[0032] In the embodiment of the present application, the earphone further comprises a first temperature sensor 20 and a second temperature sensor 30, which can be any temperature sensor for detecting the temperature in the shell 10.

[0033] The first temperature sensor 20 is arranged at a first position in the sound transmission channel, and the second temperature sensor 30 is arranged at a second position in the sound transmission channel, and the first position and the second position are spaced apart along the sound transmission direction, so that the first temperature sensor 20 and the second temperature sensor 30 can detect the temperature at different positions in the shell 10 along the sound transmission direction, that is, the first temperature sensor 20 detects the first temperature at the first position in the shell 10, and the second temperature sensor 30 detects the second temperature at the second position in the shell 10. Wherein, the sound transmission direction refers to the direction from the sound generating assembly 40 to the sound outlet 100.

[0034] The first position and the second position can be any position in the shell 10. Specifically, the first position and the second position can be arranged close to the sound outlet 100, so that the measured body temperature is more accurate.

[0035] In some embodiments, the earphone can further comprise a third temperature sensor 50, which is arranged on the side of the shell 10 away from the cavity thereof.

[0036] The third temperature sensor 50 can be used to detect the ambient temperature (i.e., the third temperature) of the environment in which the earphone is located when the earphone is worn in the user's ear. Specifically, the third temperature sensor 50 can be arranged away from the sound outlet 100 of the earphone, so that when the earphone is worn in the user's ear, the third temperature sensor 50 can be away from the user's ear, thereby reducing the influence of the target temperature of the user on the accuracy of the third temperature detected by the third temperature sensor 50.

[0037] The third temperature sensor 50 described above can be arranged at any position on the side of the shell 10 away from the cavity thereof. For example, in the case where the shell includes a head portion 11 and a stem portion 12, the head portion 11 is provided with the sound outlet 100 described above, and the stem portion 12 is connected to the head portion 11, and the third temperature sensor 50 described above can be arranged on the head portion 11 or the stem portion 12.

[0038] In some embodiments, the earphone can further be provided with a wearing sensor 60 arranged on the shell 10.

[0039] The wearing sensor 60 can be any sensor that can be used to detect whether the earphone is worn in the user's ear. For example, the wearing sensor 60 described above can include at least one of an infrared sensor and a specific absorption rate (SAR) sensor.

[0040] In the case where the earphone is provided with the wearing sensor 60, the earphone can detect the first temperature and the second temperature, or the first temperature, the second temperature and the third temperature, when it is detected that the earphone is worn in the user's ear.

[0041] It should be noted that the earphone can further be provided with other components. For example, as shown in Figure 2 The earphone can further include a microcontroller unit (MCU) 70, a sensor hub 80 and an antenna 90, and each of the sensors (including the first temperature sensor 20, the second temperature sensor 30, the third temperature sensor 50 and the wearing sensor 60) can be electrically connected to the MCU 70 through the sensor hub 80, and the MCU 70 can be electrically connected to the sound generating assembly 40 and the antenna 90, and the MCU 70 can control the operation of each of the sensors, the sound generating assembly 40 and the antenna 90. In some embodiments, the MCU 70 can determine the target temperature according to the data obtained by each of the sensors.

[0042] Please refer to Figure 3 is a flowchart of a temperature determination method provided by an embodiment of the present application. The temperature determination method is applied to an electronic device, such as Figure 3As shown, the method comprises the following steps:

[0043] Step 301, obtaining a first temperature and a second temperature, the first temperature being detected at a first position in a sound transmission channel of the earphone, the second temperature being detected at a second position in the sound transmission channel, the first position and the second position being spaced apart along a sound transmission direction of the sound transmission channel;

[0044] Step 302, calculating a difference between the first temperature and the second temperature;

[0045] Step 303, in a case where a 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, the first duration being a duration during which the difference is less than or equal to a preset temperature threshold.

[0046] In the embodiments of the present application, the first temperature and the second temperature are obtained by detecting the first temperature at the first position in the sound transmission channel of the earphone and the second temperature at the second position in the sound transmission channel, and the difference between the first temperature and the second temperature is calculated. In a case where the first duration during which the difference between the first temperature and the second temperature is less than or equal to the preset temperature threshold is less than or equal to the first preset duration, the target temperature is determined based on the first temperature and the second temperature. In this way, the body temperature of the user can be determined when the user wears the earphone. Since the earphone is an item that can be carried by the user, the application scenario is more flexible and extensive compared to measuring the body temperature by using an ear thermometer, so that the electronic device can obtain the body temperature of the user in time, and the instantaneity of obtaining the body temperature of the user is improved. In addition, since the temperature in the sound transmission channel can reach thermal equilibrium in a case where the difference between the first temperature and the second temperature is less than or equal to the preset temperature threshold, and the first duration under the thermal equilibrium is less than or equal to the first preset duration in a case where the target temperature is determined based on the first temperature and the second temperature, the determined target temperature can be more accurate, and the accuracy of the determined body temperature is improved.

[0047] It should be noted that the above electronic device can be the above earphone, and the earphone can determine the target temperature according to the data detected by the earphone.

[0048] Alternatively, the above electronic device can also be a device other than the above earphone, and the electronic device is connected (which can be wireless or wired connection) with the earphone, so that the earphone can transmit the data obtained by the earphone to the electronic device, and the electronic device can determine the target temperature according to the data transmitted by the earphone. The electronic device can include at least one of a mobile phone, a tablet computer, and a smart wearable device.

[0049] In the above step 301, the above electronic device can obtain the above first temperature and second temperature.

[0050] Specifically, in the case that the electronic device is the earphone, the earphone can detect the first temperature at the first position by the first temperature sensor, and detect the second temperature at the second position by the second temperature sensor.

[0051] Alternatively, in the case that the electronic device is connected with the earphone, and the earphone detects the first temperature and the second temperature by the first temperature sensor and the second temperature sensor respectively, the earphone can transmit the first temperature and the second temperature to the electronic device.

[0052] The first temperature and the second temperature can be obtained by the electronic device according to a preset period. For example, the electronic device can obtain the first temperature and the second temperature every 1 minute (i.e. the preset period), and the like.

[0053] In the step 302, after the electronic device obtains the first temperature and the second temperature, the electronic device can calculate the difference between the first temperature and the second temperature.

[0054] For example, the MCU of the earphone can obtain the first temperature and the second temperature, and calculate the difference between the first temperature and the second temperature; alternatively, the electronic device can receive the first temperature and the second temperature, and calculate the difference between the first temperature and the second temperature.

[0055] It should be noted that the difference between the first temperature and the second temperature can be the value obtained by subtracting the second temperature from the first temperature, or the value obtained by subtracting the first temperature from the second temperature. Specifically, the difference between the first temperature and the second temperature can also be the absolute value obtained by subtracting the second temperature from the first temperature.

[0056] In the step 303, after the electronic device calculates the difference between the first temperature and the second temperature, the electronic device can 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 in the case that the first duration in which the difference is less than or equal to the preset temperature threshold is less than or equal to a first preset duration.

[0057] Since the first position and the second position are distributed along the sound transmission direction in the sound transmission channel, there is a temperature difference between the first temperature and the second temperature.

[0058] The preset temperature threshold can be a preset temperature threshold in the electronic device, and the preset temperature threshold can be used to indicate whether the temperature in the earphone is in thermal equilibrium. In other words, when the 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 equilibrium; and when the difference between the first temperature and the second temperature is greater than the preset temperature threshold, it is determined that the temperature in the earphone is not in thermal equilibrium.

[0059] When the electronic device determines that the temperature in the earphone is in thermal equilibrium, the electronic device can obtain a first duration in which the temperature in the earphone is in thermal equilibrium. When the first duration is less than or equal to a first preset duration, the electronic device can determine that the heat generated by the internal device of the earphone has little effect on the temperature detected by the first temperature sensor and the second temperature sensor. In this case, the electronic device can determine a target temperature based on the first temperature and the second temperature. The target temperature can be the body temperature of the user.

[0060] The preset temperature threshold and the first preset duration can be values preset in the electronic device, and both of them can be obtained through historical experimental data.

[0061] The determination of the target temperature based on the first temperature and the second temperature can be that the first temperature and the second temperature are input into a preset temperature calculation formula, and the target temperature is output. For example, the average of the first temperature and the second temperature can be used as the target temperature, and so on.

[0062] In the embodiments of the present application, after the electronic device determines the target temperature, the electronic device can output the target temperature to enable the user to know the target temperature in time.

[0063] For example, when the electronic device is an earphone, the earphone can output the target temperature through voice broadcasting, and so on. When the electronic device is connected with the earphone, the electronic device can display the target temperature, and so on.

[0064] In some embodiments, before the target temperature is determined based on the first temperature and the second temperature, the method further includes:

[0065] obtaining a third temperature, the third temperature being an ambient temperature detected outside the sound transmission channel.

[0066] After the difference between the first temperature and the second temperature is calculated, the method can further include:

[0067] When the first duration is greater than the first preset duration, the target temperature is determined based on the first temperature, the second temperature, and the third temperature.

[0068] In the embodiment, when the first duration is greater than the first preset duration, the heat generated by the internal device of the earphone is continuously increased, so that the heat generated by the internal device of the earphone has an impact on the temperature detected by the first temperature sensor and the second temperature sensor. The target temperature is determined based on the ambient temperature and the first temperature and the second temperature, so that the accuracy of the determined body temperature can be improved.

[0069] The target temperature determined based on the first temperature, the second temperature and the third temperature can be that the electronic device is preconfigured with weights corresponding to the first temperature, the second temperature and the third temperature, and the target temperature is calculated based on the first temperature, the second temperature, the third temperature and the weights corresponding to the temperatures.

[0070] In some embodiments, the second target temperature is generated based on the first temperature, the second temperature and the third temperature, comprising:

[0071] The compensation temperature is determined based on the third temperature and the first duration.

[0072] The target temperature is determined based on the first temperature, the second temperature and the compensation temperature.

[0073] In the embodiment, because the duration (i.e. the first duration) of the heat generated by the internal device of the earphone is different during the determination of the target temperature, the influence on the first temperature and the second temperature is different, so the compensation temperature is determined based on the third temperature and the first duration, and the target temperature is determined based on the first temperature, the second temperature and the compensation temperature, so that the accuracy of the determined body temperature can be further improved.

[0074] The compensation temperature determined based on the third temperature and the first duration can be that a temperature proportion coefficient corresponding to the first duration is determined according to a preset mapping relationship between duration and temperature proportion, and a product of the third temperature and the determined temperature proportion coefficient is determined as the compensation temperature. The mapping relationship between duration and temperature proportion can be constructed by a large amount of historical experimental data.

[0075] The target temperature determined based on the first temperature, the second temperature and the compensation temperature can be that an average value of the first temperature and the second temperature is obtained, and a sum of the obtained average value and the compensation temperature is determined as the target temperature. It should be noted that the compensation temperature can be positive or negative.

[0076] In some embodiments, before the target temperature is determined based on the first temperature and the second temperature, the method further comprises:

[0077] Obtain a plurality of sets of historical body temperature data, each set of historical data including a first historical temperature, a second historical temperature, and a historical body temperature, the first historical temperature being detected at a first position, and the second historical temperature being detected at a second position;

[0078] Based on the plurality of sets of historical body temperature data, generate a temperature mapping relationship table, the mapping relationship table including a plurality of mapping relationships, each mapping relationship indicating a relationship between the first historical temperature, the second historical temperature, and the historical body temperature.

[0079] The above determination of the target temperature based on the first temperature and the second temperature can include:

[0080] In the mapping relationship table, the historical body temperature having a mapping relationship with the first temperature and the second temperature is determined as the target temperature.

[0081] In the present embodiment, through the plurality of sets of historical body temperature data, a temperature mapping relationship table can be generated, and in the process of determining the target temperature, the actual historical body temperature having a mapping relationship with the first temperature and the second temperature is found in the temperature mapping relationship table as the target temperature, which not only improves the efficiency of determining the body temperature, but also improves the accuracy of the determined body temperature.

[0082] The first historical temperature and the second historical temperature can be measured by the above earphone or other earphones having the same structure as the above earphone; and the historical body temperature can be an actual body temperature measured by other body temperature measuring devices (such as an ear thermometer) having a measurement accuracy higher than a preset accuracy when the first historical temperature and the second historical temperature are measured.

[0083] Of course, the electronic device can also be pre-set with a mapping relationship table corresponding to the first temperature, the second temperature, and the third temperature, and through the mapping relationship table, the historical body temperature having a mapping relationship with the first temperature, the second temperature, and the third temperature can be determined as the target temperature; or, a mapping relationship table corresponding to the third temperature, the duration, and the compensation coefficient can also be pre-set, each mapping relationship in the mapping relationship table being a corresponding relationship between the third historical temperature, the historical duration, and the historical compensation temperature, the third historical temperature being a historical environmental temperature, and the historical compensation temperature being determined by the historical body temperature and the first historical temperature and the second historical temperature, so that the compensation temperature having a mapping relationship with the third temperature and the first duration can be determined, and the target temperature can be determined by the first temperature, the second temperature, and the compensation temperature.

[0084] In the embodiment of the present application, when the difference between the first temperature and the second temperature is greater than the preset temperature threshold, i.e., when the earphone is not in thermal equilibrium, the electronic device can continuously acquire 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.

[0085] In some embodiments, after the difference between the first temperature and the second temperature is calculated, the method further includes:

[0086] When the second duration is greater than or equal to the second preset duration, the target temperature is determined based on the first temperature, the second temperature, and the third temperature, and the second duration is the duration during which the difference is greater than the preset temperature threshold.

[0087] In the embodiment, when the duration during which the earphone is not in thermal equilibrium reaches the second preset duration, the electronic device can determine the target temperature based on the first temperature, the second temperature, and the third temperature, thereby improving the immediacy of determining the body temperature.

[0088] 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 can 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 thus will not be described here.

[0089] In some embodiments, the method of acquiring the first temperature and the second temperature includes:

[0090] When the earphone is worn in the user's ear, the first temperature and the second temperature are acquired.

[0091] Therefore, the first temperature and the second temperature are acquired only when it is determined that the earphone is worn in the user's ear, so as to determine the target temperature, thereby reducing the misoperation of the electronic device and saving the power consumption of the electronic device.

[0092] To facilitate the understanding of the method of determining the temperature provided by the embodiments of the present application, the actual application process of the method will be described here. Figure 4 The method includes the following steps 401 to 407.

[0093] Step 401: detecting the wearing state of the earphone by a wearing sensor.

[0094] Step 402: determining whether the earphone is worn in the ear according to the wearing state, i.e., the wearing sensor transmits sensing data to the MCU, and the MCU determines whether the earphone is worn in the ear.

[0095] Step 403, when it is determined that the earphone is worn on the ear, the temperature sensors are controlled to start temperature detection, and timing is started.

[0096] Step 404, the first temperature TEMP1 collected by the first temperature sensor, the second temperature TEMP2 collected by the second temperature sensor, and the third temperature TEMP3 collected by the third temperature sensor are acquired.

[0097] Step 405, it is determined whether the difference between the first temperature and the second temperature in the earphone is less than or equal to a preset temperature threshold ΔTthr, that is, whether Δ|TEMP1-TEMP2|≤ΔTthr is satisfied.

[0098] Step 406, if Δ|TEMP1-TEMP2|≤ΔT thr , it is determined that the earphone reaches thermal equilibrium, and it is determined whether the timing duration t (i.e., the first duration) is less than or equal to t s1 .

[0099] If t≤t s1 , it indicates that the time for the earphone to reach thermal equilibrium is short enough, and the temperature rise effect in the earphone is not enough to affect the sensing of the temperature sensor 1 and the temperature sensor 2. It is determined that the target temperature is only related to 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(TEMP2,TEMP1) (i.e., the target temperature is determined based on the first temperature and the second temperature) can be determined. Wherein, f(TEMP2,TEMP1) is a TEMP, TEMP1, TEMP2 relationship table (i.e., a mapping relationship table) that can be established according to historical measurements of different ear temperature groups in different environmental temperatures.

[0100] If t>t s1 , it indicates that the time for the earphone to reach thermal equilibrium is not short enough, and the temperature rise effect in the earphone can affect the sensing of the temperature sensor 1 and the temperature sensor 2. At this time, it is considered that the target temperature is not only related to TEMP1 and TEMP2, but also related to TEMP3 collected by the temperature sensor 3, and the target temperature TEMP=f(TEMP2,TEMP1)+f(TEMP3,t) (i.e., the target temperature is determined based on the first temperature, the second temperature, and the third temperature) can be determined. f(TEMP3,t) is a relationship between the temperature value TEMP3 of the temperature sensor 3, the time t, and the measured compensation value.

[0101] Step 407, if Δ|TEMP1-TEMP2|>ΔT thr , it is determined that the earphone does not reach thermal equilibrium, and timing is continued, and it is determined whether the timing duration t (at this time, t=t+1, i.e., the second duration) reaches the second preset duration t s, if t s , re-control the first temperature sensor, the second temperature sensor and the third temperature sensor to collect temperature; if t s , forcedly output value, determine target temperature TEMP = f'(TEMP2, TEMP1) + f'(TEMP3, t) (i.e. determine target temperature based on first temperature, second temperature and third temperature). f'(TEMP2, TEMP1) is a table of TEMP, TEMP1, TEMP2 relationship established according to historical measurement of different ear temperature population at different ambient temperature; f'(TEMP3, t) is a relationship established according to historical measurement of temperature sensor 3 temperature value TEMP3, time t and measured compensation value.

[0102] The temperature determination method provided in the embodiments of the present application can be executed by a temperature determination device. The temperature determination method executed by the temperature determination device is taken as an example in the embodiments of the present application to illustrate the temperature determination device provided in the embodiments of the present application.

[0103] Please refer to Figure 5 , which is a structural schematic diagram of the temperature determination device provided in the embodiments of the present application. As shown in Figure 5 , the temperature determination device 500 includes:

[0104] The temperature acquisition module 501 is configured to acquire a first temperature and a second temperature, the first temperature being detected at a first position in a sound transmission channel of a headset, and the second temperature being detected at a second position in the sound transmission channel, the first position and the second position being distributed along a sound transmission direction of the sound transmission channel.

[0105] The difference calculation module 502 is configured to calculate a difference between the first temperature and the second temperature.

[0106] The first determination module 503 is configured to, in a case where a first duration is less than or equal to a first preset duration, determine a target temperature based on the first temperature and the second temperature, the first duration being a duration during which the difference is less than or equal to a preset temperature threshold.

[0107] In some embodiments, the device 500 further includes:

[0108] The second temperature acquisition module is configured to acquire a third temperature, the third temperature being an ambient temperature detected outside the sound transmission channel.

[0109] The second determination module is configured to, in a case where the first duration is greater than the first preset duration, determine the target temperature based on the first temperature, the second temperature and the third temperature.

[0110] In some embodiments, the second determination module includes:

[0111] The compensation temperature determining unit is configured to determine a compensation temperature based on the third temperature and the first duration;

[0112] The target temperature determining unit is configured to determine a target temperature based on the first temperature, the second temperature and the compensation temperature.

[0113] In some embodiments, the apparatus 500 further includes:

[0114] The third determining module is configured to determine the target temperature based on the first temperature, the second temperature and the third temperature, in a case where the second duration is greater than or equal to the second preset duration, the second duration being a duration during which the difference value is greater than the preset temperature threshold.

[0115] In some embodiments, the apparatus 500 further includes:

[0116] The data set obtaining module is configured to obtain a plurality of sets of historical body temperature data, each set of historical data including a first historical temperature, a second historical temperature and a historical body temperature, the first historical temperature being detected at the first position and the second historical temperature being detected at the second position.

[0117] The relationship table generating module is configured to generate a temperature mapping relationship table based on the plurality of sets of historical body temperature data, the mapping relationship table including a plurality of mapping relationships, each mapping relationship being used to indicate a relationship among the first historical temperature, the second historical temperature and the historical body temperature.

[0118] The first determining module 503 can be specifically configured to:

[0119] In the mapping relationship table, the historical body temperature having a mapping relationship with the first temperature and the second temperature is determined as the target temperature.

[0120] In some embodiments, the temperature obtaining module 501 can be specifically configured to:

[0121] In a case where the earphone is worn in the user's ear, the first temperature and the second temperature are obtained.

[0122] The temperature determination apparatus in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device than a terminal. For example, the electronic device can be 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, a personal digital assistant (PDA), or the like, and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a cash register, a self-service machine, or the like. The embodiments of the present application are not limited in this regard.

[0123] The temperature determination apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating system. The embodiments of the present application are not limited in this regard.

[0124] The temperature determination apparatus provided in the embodiments of the present application can implement the method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein. Figure 3 The method embodiments implement various processes and achieve the same technical effects. To avoid repetition, details are not described herein.

[0125] Optionally, as shown in Figure 6 The embodiments of the present application also provide an electronic device 600, which includes a processor 601 and a memory 602. The memory 602 stores programs or instructions executable on the processor 601. When the programs or instructions are executed by the processor 601, various steps of the above temperature determination method embodiments are implemented, and the same technical effects are achieved. To avoid repetition, details are not described herein.

[0126] It should be noted that the electronic device in the embodiments of the present application includes the above mobile electronic device and non-mobile electronic device.

[0127] Figure 7 To implement the hardware structure of the electronic device in the embodiments of the present application.

[0128] 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, etc.

[0129] Those skilled in the art can understand that the electronic device 700 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 710 through a power management system, so that the power management system can realize functions such as management of charging, discharging, and power consumption management. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described here.

[0130] The processor 710 is configured to:

[0131] obtain a first temperature and a second temperature, the first temperature being detected at a first position in a sound transmission channel of the earphone, and the second temperature being detected at a second position in the sound transmission channel, the first position and the second position being spaced apart along a sound transmission direction of the sound transmission channel;

[0132] calculate a difference between the first temperature and the second temperature;

[0133] In a case where the first duration is less than or equal to the first preset duration, determine a target temperature based on the first temperature and the second temperature, the first duration being a duration in which the difference is less than or equal to a preset temperature threshold.

[0134] In some embodiments, the processor 710 is further configured to:

[0135] obtain a third temperature, the third temperature being an ambient temperature detected outside the sound transmission channel;

[0136] In a case where the first duration is greater than the first preset duration, determine the target temperature based on the first temperature, the second temperature, and the third temperature.

[0137] In some embodiments, the processor 710 is further configured to:

[0138] determine a compensation temperature based on the third temperature and the first duration;

[0139] determine the target temperature based on the first temperature, the second temperature, and the compensation temperature.

[0140] In some embodiments, the processor 710 is further configured to:

[0141] In a case that the second duration is greater than or equal to the second preset duration, the target temperature is determined based on the first temperature, the second temperature and the third temperature, and the second duration is a duration during which the difference value is greater than the preset temperature threshold.

[0142] In some embodiments, the processor 710 is further configured to:

[0143] obtain a plurality of groups of historical body temperature data, each group of historical data including a first historical temperature, a second historical temperature and a historical body temperature, the first historical temperature being detected at a first position, the second historical temperature being detected at a second position;

[0144] generate a temperature mapping relationship table based on the plurality of groups of historical body temperature data, the mapping relationship table including a plurality of mapping relationships, each mapping relationship being used to indicate a relationship among the first historical temperature, the second historical temperature and the historical body temperature;

[0145] In the mapping relationship table, the historical body temperature having a mapping relationship with the first temperature and the second temperature is determined as the target temperature.

[0146] In some embodiments, the processor 710 is further configured to:

[0147] In a case that the earphone is worn in the user's ear, the first temperature and the second temperature are obtained.

[0148] The temperature determination apparatus provided by the embodiments of the present application can realize Figure 3 The method embodiments realize each process and achieve the same technical effects, and thus details are not repeated here.

[0149] It should be understood that, in the embodiments of the present application, the input unit 704 can include a graphics processor (GPU) 7041 and a microphone 7042. The graphics processor 7041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 706 can include a display panel 7061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. 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 called a touch screen. The touch panel 7071 can include a touch detection device and a touch controller. The other input devices 7072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which are not repeated here.

[0150] The memory 709 can be used to store software programs and various data. The memory 709 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 709 can include a volatile memory or a non-volatile memory, or the memory 709 can include both a volatile memory and a non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus 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.

[0151] The processor 710 can include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 710.

[0152] The embodiments of the present application also provide a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize each process of the above-mentioned temperature determination method embodiments, and the same technical effects can be achieved, and thus details are not repeated here.

[0153] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0154] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize the processes of the temperature determination method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.

[0155] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system chip, a system chip, a chip system or a system on chip, etc.

[0156] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to realize the processes of the temperature determination method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.

[0157] It should be noted that in this paper, the term "includes", "contains" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "includes a" does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of the functions shown or discussed, but can also include the functions performed in a substantially simultaneous manner or in the opposite order according to the functions involved, for example, the described method can be performed in an order different from the described order, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.

[0158] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.

[0159] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. A temperature determination method, characterized by, The method comprises: obtaining a first temperature, a second temperature and a third temperature, the first temperature being detected at a first position in a sound transmission channel of a headset, the second temperature being detected at a second position in the sound transmission channel, the first position and the second position being spaced apart along a sound transmission direction of the sound transmission channel, and the third temperature being an ambient temperature detected outside the sound transmission channel; calculating a difference between the first temperature and the second temperature; in a case where a first duration, during which the difference is less than or equal to a preset temperature threshold, is less than or equal to a first preset duration, determining a target temperature based on the first temperature and the second temperature; in a case where the first duration is greater than the first preset duration, determining a target temperature based on the first temperature, the second temperature and the third temperature.

2. The method of claim 1, wherein, The method further comprises: determining a compensation temperature based on the third temperature and the first duration; and determining a target temperature based on the first temperature, the second temperature and the compensation temperature.

3. The method of claim 1, wherein, The method further comprises: in a case where a second duration, during which the difference is greater than the preset temperature threshold, 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.

4. The method of claim 1, wherein, The method further comprises: obtaining a plurality of groups of historical body temperature data, each group of the historical body temperature data comprising a first historical temperature, a second historical temperature and a historical body temperature, the first historical temperature being detected at the first position and the second historical temperature being detected at the second position; and generating a temperature mapping relationship table based on the plurality of groups of historical body temperature data, the mapping relationship table comprising a plurality of mapping relationships, each mapping relationship being used to indicate a relationship among the first historical temperature, the second historical temperature and the historical body temperature. The method further comprises: determining, in the mapping relationship table, a historical body temperature that has a mapping relationship with the first temperature and the second temperature as a target temperature.

5. A temperature determining device, characterized by The method comprises: a first temperature obtaining module configured to obtain a first temperature, a second temperature and a third temperature, the first temperature being detected at a first position in a sound transmission channel of a headset, the second temperature being detected at a second position in the sound transmission channel, the first position and the second position being spaced apart along a sound transmission direction of the sound transmission channel, and the third temperature being an ambient temperature detected outside the sound transmission channel; a difference calculating module configured to calculate a difference between the first temperature and the second temperature; and a target temperature determining module configured to determine a target temperature based on the first temperature and the second temperature in a case where a first duration, during which the difference is less than or equal to a preset temperature threshold, is less than or equal to a first preset duration. The first determining module is configured to determine a 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, the first duration being a duration during which the difference value is less than or equal to a preset temperature threshold. The second determining module is configured to determine a target temperature based on the first temperature, the second temperature and a third temperature when the first duration is greater than the first preset duration.

6. The apparatus of claim 5, wherein, The second determining module includes: A compensation temperature determining unit configured to determine a compensation temperature based on the third temperature and the first duration. A target temperature determining unit configured to determine a target temperature based on the first temperature, the second temperature and the compensation temperature.

7. The apparatus of claim 5, wherein, Further comprising: 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, the second duration being a duration during which the difference value is greater than the preset temperature threshold.

8. The apparatus of claim 5, wherein, Further comprising: A data set obtaining module configured to obtain a plurality of historical body temperature data sets, each of the historical body temperature data sets including a first historical temperature, a second historical temperature and a human historical temperature, the first historical temperature being detected at the first position and the second historical temperature being detected at the second position; A relationship table generating module configured to generate a temperature mapping relationship table based on the plurality of historical body temperature data sets, the mapping relationship table including a plurality of mapping relationships, each of the mapping relationships being used to indicate a relationship among the first historical temperature, the second historical temperature and the human historical temperature; The first determining module is specifically configured to: In the mapping relationship table, determine a human historical temperature having a mapping relationship with the first temperature and the second temperature as a target temperature.

9. An electronic device, comprising: A processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions being executed by the processor to implement the steps of the temperature determining method according to any one of claims 1-4.

10. A readable storage medium, characterized by, The readable storage medium stores programs or instructions, the programs or instructions being executed by the processor to implement the steps of the temperature determining method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Devices and sensing methods for measuring temperature from an ear

    US20190117155A1