Earphone and earphone control method
By collecting the current temperature and working time of the headphones in real time and calculating the target compensation temperature using a preset mapping relationship, the problem of heat interference from electronic components in headphone temperature measurement is solved, and accurate biological surface temperature measurement is achieved.
Patent Information
- Application Number
- CN202510774863.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-11
- Publication Date
- 2025-09-19
AI Technical Summary
When existing smart headphones measure human body temperature, the data collected by the temperature sensor is inaccurate due to heat interference generated by the operation of electronic components.
By collecting the current temperature and working time in real time, and using the preset mapping relationship to calculate the target compensation temperature, the heat interference of the earphone's own electronic components is eliminated, and the biological surface temperature is accurately measured.
This effectively eliminates the interference of the earphone's own heat during temperature measurement, thereby improving the accuracy of temperature measurement.
Smart Images

Figure CN120676285A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of earphone equipment, and in particular to an earphone and an earphone control method. Background Art
[0002] In existing smart headset technology, measuring human body temperature through built-in sensors in headsets has become an emerging health monitoring method.
[0003] However, when the earphones are used for a long time, the heat generated by the electronic components (such as Bluetooth modules, batteries, processors, etc.) will be transferred to the casing and contact parts, causing the data collected by the temperature sensor to contain superimposed interference from the heating of the device.
[0004] Therefore, the current headphone temperature measurement technology is subject to the interference of the device's own heat, and there is an urgent need for a method that can avoid self-interference and accurately measure the surface temperature of biological organisms. Summary of the Invention
[0005] In view of this, the present invention provides an earphone and an earphone control method to solve the problem of how to avoid self-interference and accurately measure the surface temperature of a biological body.
[0006] In a first aspect, the present invention provides a method for controlling an earphone, the method comprising: Based on the in-ear signal, the current temperature is collected in real time; Acquiring operating information, and obtaining a target compensation temperature based on the operating information, wherein the operating information at least includes operating time; The actual body surface temperature is obtained based on the current temperature and the target compensation temperature.
[0007] Beneficial effect: The control method provided by the present invention can obtain the target compensation temperature based on the working time by obtaining the working time, so as to simulate the heat generated by its own electronic components as they work, thereby obtaining the actual body surface temperature based on the current temperature and target compensation temperature collected in real time, eliminating the interference of the working heat of the electronic components of the headset itself, realizing accurate measurement of the biological surface temperature, and improving the accuracy of the measurement.
[0008] In an optional embodiment, a first mapping relationship between the working time and the target compensation temperature is preset, and the first mapping relationship is used to represent a positive correlation between the working time and the target compensation temperature; and obtaining the target compensation temperature based on the working information includes: A target compensation temperature corresponding to the working time is determined according to the first mapping relationship.
[0009] In an optional embodiment, the working information further includes a rest duration; and the step of obtaining the target compensation temperature based on the working information includes: Determining a first compensation temperature based on the working time, wherein the working time and the first compensation temperature are positively correlated; determining a second compensation temperature based on the rest time, wherein the rest time is positively correlated with the second compensation temperature; A target compensation temperature is obtained based on the first compensation temperature and the second compensation temperature.
[0010] In an optional embodiment, the operating information further includes operating power; and the step of determining the first compensation temperature based on the operating time includes: A first compensation temperature is determined based on the operating power and the operating time corresponding to the operating power, wherein the operating power and the first compensation temperature are positively correlated.
[0011] In an optional embodiment, a plurality of continuous operating power intervals are preset, each of the operating power intervals corresponds to a temperature compensation coefficient, and the operating power intervals and the temperature compensation coefficient are positively correlated; determining the first compensation temperature based on the operating power and the operating time corresponding to the operating power includes: Dividing the working power within the working time into working power intervals to obtain the corresponding working time corresponding to each working power interval; The sum of the products of the temperature compensation coefficients corresponding to each working power interval and the corresponding working duration is used as the first compensation temperature.
[0012] In an optional embodiment, a second mapping relationship between the rest duration and the second compensation temperature is preset, and the second mapping relationship is used to represent a positive correlation between the rest duration and the second compensation temperature; and the step of determining the second compensation temperature based on the rest duration includes: A second compensation temperature corresponding to the rest time is determined according to the second mapping relationship.
[0013] In an optional embodiment, the step of obtaining a target compensation temperature based on the first compensation temperature and the second compensation temperature includes: Determine the magnitude of the first compensation temperature and the second compensation temperature; If the first compensation temperature is not less than the second compensation temperature, the difference between the first compensation temperature and the second compensation temperature is used as the target compensation temperature.
[0014] In an optional implementation, if the first compensation temperature is lower than the second compensation temperature, the working time and the rest time are reset to zero, and the timing is restarted when the headset enters the working state next time.
[0015] In an optional embodiment, the step of obtaining the actual body surface temperature based on the current temperature and the target compensation temperature includes: The difference between the current temperature and the target compensation temperature is calculated, and the difference between the current temperature and the target compensation temperature is used as the actual body surface temperature.
[0016] In a second aspect, the present invention provides an earphone comprising a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for controlling the earphone described in any of the above embodiments by executing the computer instructions.
[0017] Beneficial effect: The earphones provided by the present invention can obtain the target compensation temperature based on the working time by obtaining the working time, so as to simulate the heat generated by its own electronic components as it works, thereby obtaining the actual body surface temperature based on the current temperature and target compensation temperature collected in real time, eliminating the interference of the working heat of the electronic components of the earphones themselves, realizing accurate measurement of the biological surface temperature, and improving the accuracy of the measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 is a flowchart of a method for controlling an earphone according to an embodiment of the present application; Figure 2 is a flowchart of another earphone control method according to an embodiment of the present application; Figure 3 is a flowchart of another earphone control method according to an embodiment of the present application; Figure 4 This is a diagram of the internal structure of a computer device of a headset according to an embodiment of the present application. DETAILED DESCRIPTION
[0020] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0021] According to an embodiment of the present invention, an embodiment of a control method for a hairdressing device is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system, such as a set of computer-executable instructions. Moreover, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in an order different from that shown.
[0022] In this embodiment, a method for controlling headphones is provided. The headphones are provided with a control unit, a temperature sensor, and a pressure sensor. The pressure sensor is used to detect the pressure around the headphones, and the temperature sensor is used to detect the temperature of the ear of the wearer of the headphones. The control unit is used to obtain the temperature detected by the temperature detection unit and the pressure detected by the pressure sensor, and control the operation of the headphones according to the control logic. Figure 1 FIG. 1 is a flow chart of a method for controlling headphones according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps: Step S100: Based on the in-ear information, the current temperature is collected in real time.
[0023] Here, when the user wears headphones, the pressure sensor can detect the pressure value and send it to the control unit. The control unit recognizes the in-ear information that the user is wearing headphones through the pressure value and controls the temperature sensor to collect the current temperature in real time.
[0024] Step S200: Acquire the working time, and obtain the target compensation temperature based on the working time.
[0025] Specifically, a first mapping relationship between the operating time and the target compensation temperature can be preset, where the first mapping relationship is used to represent a positive correlation between the operating time and the target compensation temperature, thereby determining the target compensation temperature corresponding to the operating time based on the first mapping relationship. It is understood that the longer the operating time, the greater the heat generated by the electronic components of the headset, and the greater the impact on the current temperature detected by the temperature sensor. Therefore, determining the corresponding target compensation temperature based on the operating time can improve the accuracy of body surface temperature detection.
[0026] In this embodiment, the first mapping relationship can be a preset compensation coefficient, and the target compensation temperature is obtained by multiplying the working time and the preset compensation coefficient. For example, the preset compensation coefficient can be 0.2. When the working time is 2 hours, the target compensation temperature is 0.2*2 hours = 0.4 degrees Celsius. In addition, the first mapping relationship can also be a preset table, which can be measured by preliminary experiments. The preset table includes multiple working time intervals and their corresponding target compensation temperatures. For example, the target compensation temperature corresponding to 0~0.5 hours is 0.1 degrees Celsius, and the target compensation temperature corresponding to 0.5 hours to 1 hour is The target compensation temperature for 1H~1.5H is 0.35℃, the target compensation temperature for 1.5H~2H is 0.5℃, and so on. When the working time is 1.2H, the corresponding target compensation temperature is 0.35℃. It should be noted that the target compensation temperature differences in adjacent working time intervals are not exactly the same. The longer the working time, the greater the target compensation temperature difference. However, at a certain temperature, there is a maximum target compensation temperature upper limit. It is understandable that the longer the electronic components work, the more significant the increase in heat generation is. However, at a certain temperature, the increase in heat generation is not large.
[0027] S500: Obtain actual body surface temperature based on current temperature and target compensation temperature.
[0028] Specifically, the difference between the current temperature and the target compensation temperature may be calculated, and the difference between the current temperature and the target compensation temperature may be used as the actual body surface temperature.
[0029] Furthermore, since the earphones include a left earphone and a right earphone, a first difference between the left earphone's current temperature and the target compensation temperature and a second difference between the right earphone's current temperature and the target compensation temperature can be calculated, and the average of the first and second differences can be used as the actual body surface temperature. This embodiment can balance the measured temperatures of the two earphones, further accurately measuring body surface temperature.
[0030] The control method provided in this embodiment can obtain the target compensation temperature based on the working time by obtaining the working time, so as to simulate the heat generated by its own electronic components as they work, thereby obtaining the actual body surface temperature based on the current temperature and target compensation temperature collected in real time, eliminating the interference of the working heat of the electronic components of the headset itself, realizing accurate measurement of the biological surface temperature, and improving the accuracy of the measurement.
[0031] Figure 2 FIG. 1 is a flow chart of a method for controlling headphones according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps: Step 100: Based on the in-ear signal, collect the current temperature in real time; This step refers to step S100 of the previous embodiment and will not be explained in detail here.
[0032] Step 300: Obtain working time and rest time, and obtain target compensation temperature based on the working time and rest time. Specifically, step S300 includes: Step S310: determining a first compensation temperature based on the working time, wherein the working time and the first compensation temperature are positively correlated; Specifically, a third mapping relationship between the operating time and the first compensation temperature can be preset, and the third mapping relationship is used to represent the positive correlation between the operating time and the first compensation temperature, so that the first compensation temperature corresponding to the operating time is determined based on the third mapping relationship. It is understandable that the longer the operating time, the greater the heat generated by the electronic components of the headset, and the greater the impact on the current temperature detected by the temperature sensor. Therefore, obtaining the corresponding first compensation temperature based on the operating time can improve the accuracy of body surface temperature detection.
[0033] Step S320: determining a second compensation temperature based on the rest time, wherein the rest time and the second compensation temperature are positively correlated; Specifically, a second mapping relationship between the rest period and the second compensation temperature can be preset, where the second mapping relationship is used to represent a positive correlation between the rest period and the second compensation temperature, thereby determining the second compensation temperature corresponding to the rest period based on the second mapping relationship. It will be appreciated that the longer the rest period, the greater the heat generated by the electronic components of the headset, and the greater the impact on the current temperature detected by the temperature sensor. Therefore, determining the corresponding second compensation temperature based on the rest period can improve the accuracy of body surface temperature detection.
[0034] Step S330: Obtain a target compensation temperature based on the first compensation temperature and the second compensation temperature.
[0035] Specifically, the difference between the first compensation temperature and the second compensation temperature is used as the target compensation temperature. The first compensation temperature represents the heat generated by the electronic component, and the second compensation temperature represents the heat dissipated by the electronic component during rest. Therefore, the current cumulative heat generated can be accurately obtained through the difference between the two, thereby improving the calculation accuracy of the target compensation temperature.
[0036] Furthermore, the growth rate of the first compensation temperature may be set to be lower than the growth rate of the second compensation temperature because the heat dissipation rate of the electronic component exceeds its heat generation rate, thereby improving the calculation accuracy of the target compensation temperature.
[0037] Furthermore, the magnitude of the first compensation temperature and the second compensation temperature may be determined; If the first compensation temperature is not less than the second compensation temperature, the difference between the first compensation temperature and the second compensation temperature is used as the target compensation temperature; If the first compensation temperature is lower than the second compensation temperature, the target compensation temperature is zero.
[0038] In this embodiment, the fact that most of the heat dissipated is generated as heat is taken into consideration, thereby further improving the calculation accuracy of the target compensation temperature.
[0039] Furthermore, when the first compensation temperature is lower than the second compensation temperature, the working time and the rest time may be reset to zero, and the timing may be restarted when the headset enters the working state next time.
[0040] It can be understood that if the first compensation temperature is lower than the second compensation temperature, it means that the user has not used the earphones for a certain period of time, and the heating of the electronic components of the earphones no longer affects the measurement of the actual body surface temperature. Therefore, the timer can be reset to zero, and the timer can be re-calculated after entering the working state next time, thereby effectively reducing the power consumption of the earphones.
[0041] Step S500: Obtain the actual body surface temperature according to the current temperature and the target compensation temperature.
[0042] This step refers to step S500 of the previous embodiment and will not be explained in detail here.
[0043] The control method provided in this embodiment obtains the working time and the rest time, and can obtain a first compensation temperature based on the working time to simulate the heat generated by its own electronic components while working, and obtain a second compensation temperature based on the rest time to simulate the heat dissipated by its own electronic components while resting, and accurately calculate the target compensation temperature based on the first compensation temperature and the second compensation temperature, so as to obtain the actual body surface temperature based on the current temperature and the target compensation temperature collected in real time, eliminate the interference of the working heat of the electronic components of the headset itself, realize accurate measurement of the biological surface temperature, and improve the accuracy of the measurement.
[0044] In one embodiment, reference Figure 3 , Figure 3 FIG. 1 is a flow chart of another method for controlling headphones according to an embodiment of the present application, the method comprising: Step 100: Based on the in-ear signal, collect the current temperature in real time; This step refers to step S100 of the previous embodiment and will not be explained in detail here.
[0045] Step S400: Obtain working time, rest time, and working power, and obtain a target compensation temperature based on the working time, rest time, and working power. Specifically, step S400 includes: Step S410: determining a first compensation temperature based on the operating power and the operating time corresponding to the operating power, wherein the operating power and the first compensation temperature are positively correlated; Specifically, a plurality of continuous operating power intervals may be preset, each of which corresponds to a temperature compensation coefficient, and the operating power interval and the temperature compensation coefficient have a positive correlation; step S410 includes: Step S411: Divide the working power within the working time into working power intervals to obtain the corresponding working time corresponding to each working power interval.
[0046] Exemplarily, multiple continuous working power intervals include a 10W~100W working power interval, a 100W~200W working power interval, a 200W~300W working power interval, etc. The 10W~100W working power interval corresponds to a temperature compensation coefficient of 0.1, the 100W~200W working power interval corresponds to a temperature compensation coefficient of 0.2, and the 200W~300W working power interval corresponds to a temperature compensation coefficient of 0.3. The working power within the working time is divided into 10W~100W working power interval, 100W~200W working power interval, 200W~300W working power interval, etc., and the corresponding working time corresponding to the 10W~100W working power interval is 1H, the 100W~200W working power interval is 2H, and the 200W~300W working power interval is 1H.
[0047] Step S412: The sum of the products of the temperature compensation coefficients corresponding to each working power interval and the corresponding working duration is used as the first compensation temperature.
[0048] For example, the product of the temperature compensation coefficient and the corresponding working time corresponding to each working power interval is calculated respectively. The working power interval of 10W~100W is 1H*0.1=0.1℃, the working power interval of 100W~200W is 2H*0.2=0.4℃, and the working power interval of 200W~300W is 1H*0.3=0.3℃. Then the first compensation temperature is 0.1℃+0.4℃+0.3℃=0.8℃.
[0049] Step S420: determining a second compensation temperature based on the rest time, wherein the rest time and the second compensation temperature are positively correlated; Specifically, a second mapping relationship between the rest period and the second compensation temperature can be preset, where the second mapping relationship is used to represent a positive correlation between the rest period and the second compensation temperature, thereby determining the second compensation temperature corresponding to the rest period based on the second mapping relationship. It will be appreciated that the longer the rest period, the greater the heat generated by the electronic components of the headset, and the greater the impact on the current temperature detected by the temperature sensor. Therefore, determining the corresponding second compensation temperature based on the rest period can improve the accuracy of body surface temperature detection.
[0050] Step S430: Obtain a target compensation temperature based on the first compensation temperature and the second compensation temperature.
[0051] Specifically, the difference between the first compensation temperature and the second compensation temperature is used as the target compensation temperature. The first compensation temperature represents the heat generated by the electronic component, and the second compensation temperature represents the heat dissipated by the electronic component during rest. Therefore, the current cumulative heat generated can be accurately obtained through the difference between the two, thereby improving the calculation accuracy of the target compensation temperature.
[0052] Furthermore, the growth rate of the first compensation temperature may be set to be lower than the growth rate of the second compensation temperature because the heat dissipation rate of the electronic component exceeds its heat generation rate, thereby improving the calculation accuracy of the target compensation temperature.
[0053] Furthermore, the magnitude of the first compensation temperature and the second compensation temperature may be determined; If the first compensation temperature is not less than the second compensation temperature, the difference between the first compensation temperature and the second compensation temperature is used as the target compensation temperature; If the first compensation temperature is lower than the second compensation temperature, the target compensation temperature is zero.
[0054] In this embodiment, the fact that most of the heat dissipated is generated as heat is taken into consideration, thereby further improving the calculation accuracy of the target compensation temperature.
[0055] Furthermore, when the first compensation temperature is lower than the second compensation temperature, the working time and the rest time may be reset to zero, and the timing may be restarted when the headset enters the working state next time.
[0056] It can be understood that if the first compensation temperature is lower than the second compensation temperature, it means that the user has not used the earphones for a certain period of time, and the heating of the electronic components of the earphones no longer affects the measurement of the actual body surface temperature. Therefore, the timer can be reset to zero, and the timer can be re-calculated after entering the working state next time, thereby effectively reducing the power consumption of the earphones.
[0057] Step S500: Obtain the actual body surface temperature according to the current temperature and the target compensation temperature.
[0058] This step refers to step S500 of the previous embodiment and will not be explained in detail here.
[0059] The control method provided in this embodiment obtains the working time, rest time and working power, and can obtain a first compensation temperature based on the working time and working power to simulate the heat generated by its own electronic components while working, and obtain a second compensation temperature based on the rest time to simulate the heat dissipated by its own electronic components while resting, and accurately calculate the target compensation temperature based on the first compensation temperature and the second compensation temperature, so as to obtain the actual body surface temperature based on the current temperature and target compensation temperature collected in real time, eliminate the interference of the working heat of the electronic components of the headset itself, realize accurate measurement of the biological surface temperature, and improve the accuracy of the measurement.
[0060] In one embodiment, if Figure 4 As shown, Figure 4 FIG. 1 is an internal structural diagram of a computer device of a headset provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device of the hairdressing device includes a control module, which includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components communicate with each other using different buses and can be installed on a common motherboard or in other ways as needed. The processor can process instructions executed within the hairdressing device, including instructions stored in or on the memory for displaying graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if desired, multiple processors and / or multiple buses can be used with multiple memories and multiple storage devices. Similarly, multiple hairdressers can be connected, with each device providing a portion of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.
[0061] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0062] The memory 20 stores instructions that can be executed by at least one processor 10, so as to enable at least one processor 10 to execute the method shown in the above embodiment.
[0063] The memory 20 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for the function; the data storage area may store data generated by the use of the hairdresser, etc. Furthermore, the memory 20 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some optional embodiments, the memory 20 may optionally include a memory remote from the processor 10. Such remote memory may be connected to the hairdresser via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0064] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0065] The hairdressing device further comprises a communication interface 30 for the hairdressing device to communicate with other devices or a communication network.
[0066] The earphones provided in this embodiment can obtain a target compensation temperature based on the operating time by obtaining the operating time, so as to simulate the heat generated by its own electronic components as they work, thereby obtaining the actual body surface temperature based on the current temperature and target compensation temperature collected in real time, eliminating the interference of the working heat of the electronic components of the earphones themselves, realizing accurate measurement of the biological surface temperature, and improving the accuracy of the measurement.
[0067] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0068] A portion of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the form in which the computer program instruction exists in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc. Accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium that can be accessed by the computer.
[0069] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for controlling headphones, characterized in that: The method comprises: Based on the in-ear signal, the current temperature is collected in real time; Acquiring operating information, and obtaining a target compensation temperature based on the operating information, wherein the operating information at least includes operating time; The actual body surface temperature is obtained based on the current temperature and the target compensation temperature.
2. The method according to claim 1, characterized in that A first mapping relationship between the working time and the target compensation temperature is preset, and the first mapping relationship is used to represent a positive correlation between the working time and the target compensation temperature; Obtaining the target compensation temperature based on the working information includes: A target compensation temperature corresponding to the working time is determined according to the first mapping relationship.
3. The method according to claim 1, characterized in that The working information also includes a rest period; and the step of obtaining a target compensation temperature based on the working information includes: Determining a first compensation temperature based on the working time, wherein the working time and the first compensation temperature are positively correlated; determining a second compensation temperature based on the rest time, wherein the rest time and the second compensation temperature are positively correlated; A target compensation temperature is obtained based on the first compensation temperature and the second compensation temperature.
4. The method according to claim 3, characterized in that The working information also includes working power; and the step of determining the first compensation temperature based on the working duration includes: A first compensation temperature is determined based on the operating power and the operating time corresponding to the operating power, wherein the operating power and the first compensation temperature are positively correlated.
5. The method according to claim 4, characterized in that A plurality of continuous operating power intervals are preset, each of which corresponds to a temperature compensation coefficient, and the operating power interval and the temperature compensation coefficient have a positive correlation; The determining the first compensation temperature based on the operating power and the operating time corresponding to the operating power includes: Dividing the working power within the working time into working power intervals to obtain the corresponding working time corresponding to each working power interval; The sum of the products of the temperature compensation coefficients corresponding to each working power interval and the corresponding working duration is used as the first compensation temperature.
6. The method according to claim 3, characterized in that A second mapping relationship between the rest time and the second compensation temperature is preset, and the second mapping relationship is used to represent a positive correlation between the rest time and the second compensation temperature; The step of determining the second compensation temperature based on the rest time includes: A second compensation temperature corresponding to the rest time is determined according to the second mapping relationship.
7. The method according to claim 3, characterized in that The step of obtaining a target compensation temperature based on the first compensation temperature and the second compensation temperature includes: Determine the magnitude of the first compensation temperature and the second compensation temperature; If the first compensation temperature is not less than the second compensation temperature, the difference between the first compensation temperature and the second compensation temperature is used as the target compensation temperature.
8. The method according to claim 7, characterized in that If the first compensation temperature is lower than the second compensation temperature, the working time and the rest time are reset to zero, and the timing is restarted when the headset enters the working state next time.
9. The method according to claim 1, characterized in that The step of obtaining the actual body surface temperature based on the current temperature and the target compensation temperature includes: The difference between the current temperature and the target compensation temperature is calculated, and the difference between the current temperature and the target compensation temperature is used as the actual body surface temperature.
10. A headset, characterized in that: include: The invention comprises a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for controlling the earphone according to any one of claims 1 to 9 by executing the computer instructions.