Temperature detection method, temperature detection device and electronic equipment

Through the combination of iterative algorithm and relational model, temperature detection points and power consumption information are used to gradually calculate the ambient temperature, which solves the problem of large ambient temperature detection errors in the existing technology and improves detection accuracy and reliability of electronic equipment.

CN113835948BActive Publication Date: 2024-10-18HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010578363.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-23
Publication Date
2024-10-18
Estimated Expiration
2040-06-23

AI Technical Summary

Technical Problem

In the existing technology, due to the complex changes in power consumption of various systems of electronic equipment during ambient temperature detection, the accuracy of solving the ambient temperature is affected, resulting in large errors, which affects the reliability of electronic devices.

Method used

Using an iterative algorithm, a relationship model is established through the measurement parameter set including the measured temperature and power consumption of the temperature detection point, and the ambient temperature is gradually and iteratively calculated to avoid directly solving the inverse problem and improve detection accuracy.

Benefits of technology

It improves the accuracy of ambient temperature detection, reduces the occupation of computing resources, reduces hardware costs, and enhances the reliability of electronic equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113835948B_ABST
    Figure CN113835948B_ABST
Patent Text Reader

Abstract

The present application provides an ambient temperature detection method and device. The method includes: obtaining a set of measurement parameters, inputting a first ambient temperature and a set of measured temperatures into a first relationship model, and using the second ambient temperature output by the current iteration of the first relationship model as the third ambient temperature. The set of measurement parameters is used to indicate the measured temperatures of multiple temperature detection points set in the electronic device at the current moment. The third ambient temperature and the set of measured temperatures are input into the first relationship model for the next iteration. When the difference between the second ambient temperature output by the current iteration and the third ambient temperature input by the current iteration is less than or equal to a preset value, the second ambient temperature output by the current iteration is used as the ambient detection temperature at the current moment. The final ambient detection temperature is obtained through an iterative algorithm, and the ambient temperature is no longer directly solved, thereby avoiding the error introduced by the direct solution of the inverse problem and improving the accuracy of the detected ambient temperature.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of temperature detection, and in particular to a temperature detection method, a temperature detection device and an electronic device. Background Art

[0002] Ambient temperature is an important working parameter that affects electronic devices. Too high or too low temperature of electronic devices may cause the performance of electronic devices to deteriorate, thus affecting the user experience. Ambient temperature affects the heat dissipation efficiency of electronic devices, thereby affecting the temperature of electronic devices. Therefore, adjusting the working state of electronic devices according to changes in ambient temperature can improve the reliability of electronic devices.

[0003] The ambient temperature and the power consumption of electronic devices affect the temperature of each temperature detection point in the electronic device. In the process of solving the ambient temperature, it is necessary to make assumptions about the power consumption of each system. Due to the complex changes in the power consumption of each system of the electronic device, the assumptions about the power consumption of each system introduce errors, affecting the accuracy of solving the ambient temperature. Summary of the invention

[0004] The present application provides a temperature detection method, a temperature detection device and an electronic device, which can improve the detection accuracy of ambient temperature.

[0005] In a first aspect, a method for detecting an ambient temperature is provided, comprising: obtaining a set of measurement parameters, the set of measurement parameters being used to indicate the measured temperatures of a plurality of temperature detection points set in an electronic device at a current moment; inputting a first ambient temperature and the set of measured temperatures into a first relationship model; using a second ambient temperature output by a current iteration of the first relationship model as a third ambient temperature, and inputting the third ambient temperature and the set of measured temperatures into the first relationship model for a next iteration; when the difference between the second ambient temperature output by a current iteration and the third ambient temperature input by a current iteration is less than or equal to a preset value, using the second ambient temperature output by the current iteration as the ambient detection temperature at the current moment.

[0006] By using an iterative algorithm, the first ambient temperature is taken as the input of the first relationship model for iterative calculation to obtain the final ambient detection temperature. The ambient temperature is no longer directly solved, which avoids the error introduced by the direct solution of the inverse problem and can improve the accuracy of the detected ambient temperature.

[0007] In combination with the first aspect, in some possible implementations, the measurement parameter set is used to indicate the association between the measured temperature and time of each of the temperature detection points within a preset time period before the current moment.

[0008] The measurement parameter set is used to indicate the correlation between the measured temperature and time of each temperature detection point within a preset time period before the current moment. While improving the accuracy of the calculated ambient detection temperature, it can reduce the types of data required for the calculation of the ambient detection temperature and reduce the amount of detected data.

[0009] In combination with the first aspect, in some possible implementations, the set of measurement parameters includes power consumption of a system of the electronic device at the current moment.

[0010] When determining the ambient temperature, calculations may be performed based on the power consumption of each system, thereby improving the accuracy of the calculated ambient detection temperature.

[0011] In combination with the first aspect, in some possible implementations, the electronic device has multiple usage forms, each usage form corresponds to a relationship model, and the method also includes: obtaining a first usage form of the electronic device at the current moment, the multiple usage forms including the first usage form; and determining a first relationship model corresponding to the first usage form from multiple relationship models based on the first usage form of the electronic device, each usage form corresponding to a relationship model among the multiple relationship models.

[0012] If the electronic device has multiple usage forms, each usage form can correspond to a relationship model. The relationship models corresponding to different usage forms can be the same or different. In the case of different usage forms of the electronic device, the power consumption of each system has different effects on the temperature of the temperature detection point. Setting a relationship model corresponding to each usage form can improve the accuracy of the calculated ambient detection temperature.

[0013] In combination with the first aspect, in some possible implementations, the first ambient temperature is an ambient detection temperature at a previous moment.

[0014] Generally, the ambient temperature changes slowly. Using the ambient temperature detected at the last moment as the first ambient temperature can reduce the number of iterations, the amount of calculation, and the occupation of resources.

[0015] In a second aspect, an ambient temperature detection device is provided, comprising an acquisition module and a processing module. The acquisition module is used to acquire a set of measurement parameters, and the set of measurement parameters is used to indicate the measured temperatures of multiple temperature detection points set in the electronic device at the current moment. The processing module is used to input the first ambient temperature and the set of measured temperatures into a first relationship model. The processing module is also used to use the second ambient temperature output by the current iteration of the first relationship model as the third ambient temperature, and input the third ambient temperature and the set of measured temperatures into the first relationship model for the next iteration operation. The processing module is also used to use the second ambient temperature output by the current iteration as the ambient detection temperature at the current moment when the difference between the second ambient temperature output by the current iteration and the third ambient temperature input by the current iteration is less than or equal to a preset value.

[0016] In combination with the second aspect, in some possible implementations, the measurement parameter set is used to indicate the association between the measured temperature and time of each of the temperature detection points within a preset time period before the current moment.

[0017] In combination with the second aspect, in some possible implementations, the set of measurement parameters includes power consumption of a system of the electronic device at the current moment.

[0018] In conjunction with the second aspect, in some possible implementations, the electronic device has multiple usage forms, each of which corresponds to a relationship model. The acquisition module is further configured to acquire a first usage form of the electronic device at the current moment. The processing module is further configured to determine a first relationship model corresponding to the first usage form.

[0019] In combination with the second aspect, in some possible implementations, the first ambient temperature is an ambient detection temperature at a previous moment.

[0020] In a third aspect, an ambient temperature detection device is provided, comprising a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to execute the program instructions to execute the method described in the first aspect.

[0021] In a fourth aspect, an electronic device is provided, comprising the ambient temperature detection device of the second aspect or the third aspect.

[0022] In a fifth aspect, a computer program storage medium is provided, characterized in that the computer program storage medium has program instructions, and when the program instructions are executed by a processor, the processor executes the ambient temperature detection method described above.

[0023] In a sixth aspect, a chip system is provided, characterized in that the chip system includes at least one processor, and when the program instructions are executed in the at least one processor, the at least one processor executes the signal processing method based on the antenna array described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a schematic diagram of the hardware structure of an electronic device.

[0025] Figure 2 It is a software structure block diagram of the electronic device according to an embodiment of the present application.

[0026] Figure 3 It is a schematic structure diagram of the chip.

[0027] Figure 4 It is a schematic flow chart of an ambient temperature detection method provided in an embodiment of the present application.

[0028] Figure 5 It is a schematic flowchart of a method for establishing a relationship model provided in an embodiment of the present application.

[0029] Figure 6 It is a schematic flow chart of another ambient temperature detection method provided in an embodiment of the present application.

[0030] Figure 7 It is a schematic diagram of the detection results of the ambient temperature detection method provided in an embodiment of the present application.

[0031] Figure 8 It is a schematic flow chart of another ambient temperature detection method provided in an embodiment of the present application.

[0032] Fig. 9 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

[0033] Fig.10 It is a schematic flow chart of another ambient temperature detection method provided in an embodiment of the present application.

[0034] Fig.11 It is a schematic structural diagram of an ambient temperature detection device provided in an embodiment of the present application.

[0035] Fig.12 It is a schematic structural diagram of another ambient temperature detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0037] Figure 1 It is a schematic diagram of the hardware structure of an electronic device.

[0038] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0039] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0040] Figure 2 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.

[0041] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0042] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0043] For example, in the present application, algorithms for processing images and the like can be included in the application framework layer.

[0044] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0045] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0046] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0047] For example, in the present application, the content controller can obtain the image captured in the preview interface in real time, and display the processed image in the preview interface.

[0048] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0049] For example, in the present application, the content such as "user action video", "standard fitness action", "guidance information" etc. displayed on the display interface can be displayed by the visual system receiving instructions from the processor.

[0050] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0051] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0052] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0053] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0054] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0055] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0056] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0057] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0058] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0059] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0060] A 2D graphics engine is a drawing engine for 2D drawings.

[0061] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0062] For ease of understanding, the following embodiments of the present application will be described in detail with Figure 1 and Figure 2 Taking the electronic device with the structure shown as an example, the temperature detection method provided in the embodiment of the present application is specifically described in combination with the accompanying drawings and application scenarios.

[0063] Electronic devices include a large number of electronic components.

[0064] Ambient temperature is an important working parameter that affects electronic devices. Too high or too low temperature of electronic devices may cause the performance of electronic devices to deteriorate, thus affecting the user experience. Ambient temperature affects the heat dissipation efficiency of electronic devices, thereby affecting the temperature of electronic devices. Therefore, adjusting the working state of electronic devices according to changes in ambient temperature can improve the reliability of electronic devices.

[0065] A temperature sensor is installed at the air inlet of the electronic equipment or at a location that is less affected by heat sources, such as a location away from heating components. The ambient temperature can be determined based on the detection value of the temperature sensor.

[0066] It is necessary to place an additional temperature sensor separately at a location far away from the main heat-generating device, and it is often necessary to perform heat insulation between the temperature sensor and the main heat-generating device, resulting in additional hardware costs.

[0067] Nowadays, electronic devices tend to be integrated and miniaturized. In order to adapt to miniaturized application scenarios, multiple temperature detection points 310 can be set on the chip 300, such as Figure 3 A temperature sensor can be set at each temperature detection point to detect the temperature of the temperature detection point.

[0068] The ambient temperature and the power consumption of each subsystem 320 in the chip 300 during operation both affect the temperature of the temperature detection point.

[0069] A relationship model between the power consumption of each subsystem, the detection temperature and the ambient temperature can be established. That is, the power consumption of each subsystem 320 and the temperature value of each temperature detection point 310 are input into the relationship model, and the relationship model can output the corresponding ambient temperature.

[0070] Different heating devices have different effects on temperature sensors. When the working state of the electronic device changes, the power consumption of each heating device also changes. However, the change of chip temperature lags behind the change of chip power consumption. Therefore, the above correspondence cannot accurately reflect the ambient temperature when the power consumption of the chip changes frequently.

[0071] The ambient temperature and the power consumption of the electronic device affect the temperature of each temperature detection point in the electronic device. The solution to the ambient temperature is the solution to the inverse problem.

[0072] The inverse problem is relative to the direct problem.

[0073] The positive problem generally involves studying the evolution process or distribution pattern of things according to the order of natural laws, that is, inferring the results from the causes.

[0074] The inverse problem is to determine the cause of the result based on the result, observable phenomena, the internal laws of things, or the external influences they are subject to.

[0075] In the process of solving the inverse problem of ambient temperature, due to the complex changes in the power consumption of each system of the electronic equipment, the assumptions about the power consumption of each system introduce errors, affecting the accuracy of the solution to the ambient temperature.

[0076] In order to solve the above problems, an embodiment of the present application provides a method for detecting ambient temperature.

[0077] Figure 4 It is a schematic flow chart of an ambient temperature detection method provided in an embodiment of the present application.

[0078] In S201, a measurement parameter set is acquired, where the measurement parameter set is used to indicate the measured temperatures of multiple temperature detection points set in the electronic device at the current moment.

[0079] The electronic device may be provided with a plurality of temperature detection points. Each temperature detection point may be provided with a temperature sensor. The temperature sensor is used to detect the temperature. The measurement parameter set may include the measured temperature of each temperature detection point at the current moment.

[0080] In S202, the first ambient temperature and the measured temperature set are input into a first relationship model to obtain a second ambient temperature.

[0081] The first ambient temperature may be a preset value or a random value within a certain temperature range.

[0082] Generally, the ambient temperature changes slowly. In order to reduce the number of iterations of the iterative calculation in the subsequent step S203, the ambient temperature detected at the last moment can be used as the first ambient temperature. The ambient temperature detected at the last moment is the ambient temperature detected by performing S201 to S204 at the last moment.

[0083] In S203, the second ambient temperature obtained in the current iteration is used as the first ambient temperature in the next iteration to perform iterative calculation.

[0084] In S204, when the difference between the second ambient temperature obtained in the current iteration and the first ambient temperature in the current iteration is less than or equal to a preset value, the second ambient temperature obtained in the current iteration is used as the ambient detection temperature.

[0085] Through S201 to S204, an iterative algorithm is used to gradually reduce the difference between the ambient temperature output by the first relationship model and the ambient temperature input, so that the ambient temperature output by the first relationship model approaches the real ambient temperature value.

[0086] Through the iterative algorithm, the first ambient temperature is used as the input of the first relationship model to obtain the final ambient temperature detection, and the ambient temperature is no longer directly solved. In other words, through S201 to S204, the error introduced by the direct solution of the inverse problem is avoided, and the accuracy of the detected ambient temperature is improved.

[0087] The temperature of each temperature detection point is affected by the actual ambient temperature at the current moment and the power consumption of each subsystem in the electronic device.

[0088] The set of measurement parameters may include power consumption of each of a plurality of systems in the electronic device at the current moment.

[0089] Therefore, when determining the ambient temperature, calculation can be performed based on the power consumption of each system, thereby improving the accuracy of the calculated ambient detection temperature.

[0090] Furthermore, the measurement parameter set may also be used to indicate the correlation between the power consumption of each system and time within a preset time period before the current moment.

[0091] The measurement parameter set may also be used to indicate the correlation between the measured temperature and time of each temperature detection point within a preset time period before the current moment.

[0092] Exemplarily, the measurement parameter set includes the measured temperature of each temperature detection point at each time point in a preset time period before the current moment.

[0093] By measuring the correlation between temperature and time, the influence of the power consumption change of the subsystem on the chip temperature can be reflected. The detection of the ambient temperature can be carried out continuously, that is, the measured temperature of each temperature detection point at each moment can be continuously obtained. The correlation between the measured temperature and time can be determined based on the measured temperature of each temperature detection point at each moment continuously obtained.

[0094] Therefore, the measurement parameter set is used to indicate the correlation between the measured temperature and time of each temperature detection point within a preset time period before the current moment. While improving the accuracy of the calculated ambient detection temperature, it can reduce the types of data required for the calculation of the ambient detection temperature and reduce the amount of detected data.

[0095] It should be understood that the measurement parameter set includes the measured temperature of each temperature detection point at the current moment. The measurement parameter set may also include at least one of the following information: (1) the power consumption of each system at the current moment, (2) the correlation between the power consumption of each system and time in a first preset time period before the current moment, and (3) the correlation between the measured temperature of each temperature detection point and time in a second preset time period before the current moment.

[0096] The electronic device may be a television, a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the present application example does not make any specific limitation.

[0097] An electronic device may have one or more usage forms. For example, a foldable screen mobile phone may have two usage forms: folded and unfolded.

[0098] If the electronic device has multiple usage forms, each usage form may correspond to a relationship model. The relationship models corresponding to different usage forms may be the same or different.

[0099] Before performing S202 , the first usage mode of the electronic device at the current moment may be obtained.

[0100] According to the first usage form of the electronic device, a first relationship model corresponding to the first usage form can be determined from a plurality of relationship models, and each usage form corresponds to a relationship model in the plurality of relationship models.

[0101] When the electronic device is used in different modes, the power consumption of each system has different effects on the temperature of the temperature detection point. Setting a relationship model corresponding to each use mode can improve the accuracy of the calculated environment detection temperature.

[0102] The ambient temperature detection method provided in the embodiment of the present application can calculate the ambient temperature through a software algorithm based on the temperature sensor set inside the electronic device for other functional requirements, without the need for additional hardware.

[0103] The ambient temperature detection method provided in the embodiment of the present application has good adaptability to a variety of application scenarios and can output the ambient temperature detection more accurately, because the relationship model is obtained by training the data measured in the application scenarios where the electronic device realizes different signal processing functions. The input of the relationship model includes the detection value of the temperature sensor and the detection value of the information indicating the power consumption of the system, and the input information of the relationship model is easy to measure. Therefore, the error of the ambient temperature detection is small. It should be understood that electronic devices such as smart phones or tablet computers realize different signal processing functions, which can be the electronic device running different combinations of applications.

[0104] The ambient temperature detection method provided in the embodiment of the present application does not need to directly solve the inverse problem, thus avoiding the problem of inaccurate ambient temperature solution caused by multiple solutions when solving the inverse problem under complex power consumption changes. The iterative algorithm is used, which is suitable for the situation where the power consumption of electronic equipment changes complexly, and improves the accuracy of the output ambient temperature detection.

[0105] Figure 5 It is a schematic flowchart of a method for establishing a relationship model provided in an embodiment of the present application.

[0106] At S510, when the electronic device is running, training data is obtained. The training data includes a training environment temperature and a training detection temperature set. The training detection temperature set includes the temperature of each temperature detection point when the training environment temperature in the set of training data is detected. The training environment temperature is obtained by detecting the environment temperature.

[0107] The electronic device may be, for example, a smart phone or a tablet computer, etc. It may control the execution of one or more programs, which may include, for example, applications that are frequently used by the user.

[0108] Running different combinations of applications simultaneously can be understood as different scenarios. At each of the multiple ambient temperatures, different applications can be controlled to run, so as to collect multiple sets of training data at each ambient temperature and each different scenario.

[0109] At S520, the training data is input into the original relational model to obtain a training output temperature.

[0110] At S530 , according to the error between the training output temperature and the training environment temperature, the parameters of the initial relationship model are adjusted to minimize the error.

[0111] In some embodiments, multiple sets of training data may be input into the original relationship model at S520 to obtain training output temperatures corresponding to the multiple sets of training data. At S530, according to the error between the training output temperature corresponding to each set of training data and the training environment temperature, the parameters of the initial relationship model are adjusted to minimize the overall error.

[0112] In other embodiments, each time S520 is performed, a set of training data may be input into the original relational model, and after S530, the adjusted parameter values ​​may be used to return to continue executing S520 and S530 until the error gradually converges to obtain a trained relational model.

[0113] Through S510 to S530, the original relationship model can be trained to obtain a trained relationship model.

[0114] In order to improve the adaptability of the relationship model, at S510 , the electronic device may be controlled to operate under various power consumption conditions.

[0115] The power consumption of multiple systems of electronic equipment affects the temperature of the temperature detection point.

[0116] In order to improve the accuracy of the relationship model, each set of training data may include a training power consumption set, which includes the power consumption of each system of the electronic system in the training power consumption set when the training environment temperature in the set of training data is detected.

[0117] Further, the training power consumption set may be used to indicate the correlation between the power consumption of each system and time within a preset time period before the moment of detecting the training environment temperature in the set of training data.

[0118] By measuring the correlation between temperature and time, the impact of the power consumption change of the subsystem on the chip temperature can be reflected. The detection of the ambient temperature can be carried out continuously, that is, the measured temperature of each temperature detection point at each moment can be continuously obtained.

[0119] In order to reduce the types of data required for the calculation of the ambient temperature and the amount of measured data while improving the accuracy, each set of training data can be used to indicate the correlation between the measured temperature and time of each temperature detection point in the second preset time period before the moment of detecting the training ambient temperature in the set of training data.

[0120] That is, each set of training data includes a training environment temperature and a training detection temperature set. The training detection temperature set includes the temperature of each temperature detection point when the training environment temperature in the set of training data is detected.

[0121] Furthermore, for the i-th group of training data, the time for detecting the training environment temperature is ti, and the training detection temperature set may also include at least one of the following information: (1) the power consumption of each system at time ti, (2) the correlation between the power consumption of each system and time in a first preset time period before time ti, (3) the correlation between the measured temperature of each temperature detection point and time in a second preset time period before time ti, etc., where i is a positive integer

[0122] The electronic device may have multiple usage modes. When the electronic device is in each usage mode, S510 to S540 may be performed to obtain a relationship model corresponding to each usage mode.

[0123] Figure 6 It is a schematic flow chart of an ambient temperature detection method 600 provided in an embodiment of the present application.

[0124] Electronic devices include multiple systems. The power consumption of each system can be measured and represented separately. For example, the display brightness can represent the power consumption of the display, the intensity of the sound played can represent the power consumption of the headphone driver and speaker, and the signal frequency can represent the power consumption of the processor chip.

[0125] There are multiple temperature detection points on the electronic device. Specifically, Fig. 9 shown.

[0126] Before performing S610 , a relationship model is obtained.

[0127] You can obtain a third-party trained relationship model. Alternatively, you can Figure 5 From S510 to S540 shown, the relationship model is trained.

[0128] In the process of training the relationship model, each set of training data includes a training environment temperature and a training detection temperature set. The training detection temperature set in the i-th set of training data includes the temperature of each temperature detection point at the time ti when the training environment temperature in the set of training data is detected. The training detection temperature set also includes the correlation between the measured temperature and time of each temperature detection point in a preset time period before the time ti.

[0129] The relational model can be expressed as: A1 =f(T S ,t A2 ), where T S is the measured temperature set, t A2 is the ambient temperature of the input relation model, t A1 The ambient temperature output by the relational model.

[0130] The relationship model is used to represent the relationship between the ambient temperature and the measured temperature of each temperature detection point within a preset time period.

[0131] After that, the electronic device can operate normally.

[0132] At S610, a measured temperature set T is obtained. S , measured temperature set T S It includes the measured temperature of each temperature detection point at the current moment, and the correlation between the measured temperature of each temperature detection point and time in a preset time period before the current moment.

[0133] In S620, the preset temperature value t B The ambient temperature t as input to the relational model A2 .

[0134] The relational model is used to represent the association between the ambient temperature and the temperatures in the measured temperature set.

[0135] In S630, t A2 and the measured temperature set T S Input the relational model to obtain the ambient temperature t output by the relational model A1 .

[0136] At S640, t is calculated. A1 With t A2 The difference between .

[0137] When t A1 With t A2 When the difference between the two is greater than the threshold, t A1 As t A2 , and perform S630 to S640 again. A1 With t A2 When the difference between them is less than or equal to the threshold, proceed to S650.

[0138] At S650, the ambient temperature t output by the relational model A1 As the current ambient temperature.

[0139] Steps S610 to S650 in method 600 may be implemented, for example, by the following code:

[0140]

[0141] Among them, T_ambient_update represents t A1 , T_ambient_update represents t A2 , T_sensor represents the measured temperature set T S .

[0142] Figure 7 It is a schematic diagram of the detection results of the ambient temperature detection method provided in an embodiment of the present application.

[0143] like Figure 7 The calculated temperatures shown are those obtained using Figure 6 The ambient temperature detection method shown in FIG. Figure 7 The actual temperatures shown are true ambient temperatures.

[0144] When the ambient temperature changes suddenly, the calculated temperature can respond quickly to the change in ambient temperature within a few minutes.

[0145] Figure 8 It is a schematic flow chart of an ambient temperature detection method 800 provided in an embodiment of the present application.

[0146] The electronic device includes multiple systems and is provided with multiple temperature detection points.

[0147] Before performing S810 , a relationship model is obtained.

[0148] You can obtain a third-party trained relationship model. Alternatively, you can Figure 5 From S510 to S540 shown, the relationship model is trained.

[0149] The relationship model used in method 800 is different from the relationship model in method 600 in that, during the process of training the relationship model in method 800, each set of training data includes a training power consumption set in addition to a training environment temperature set and a training detection temperature set.

[0150] The training detection temperature set in the i-th group of training data is used to indicate the temperature of each temperature detection point at time ti when the training environment temperature in the group of training data is detected.

[0151] The training power consumption set in the i-th group of training data is used to represent the power consumption of each system of multiple systems of the electronic device at time ti.

[0152] The trained relational model can be expressed as: A1 =f(P,T S ,t A2 ), where T S is the measured temperature set, t A2 is the ambient temperature of the input relation model, t A1 is the ambient temperature output by the relational model, and P is the set of measured power consumption.

[0153] The relationship model is used to represent the relationship between the ambient temperature and the measured temperature of each temperature detection point within a preset time period and the power consumption of each system.

[0154] At S810, a measured temperature set T is obtained. S And the measured power consumption set P, the measured temperature set T S Including the measured temperature of each temperature detection point at the current moment. The measured power consumption set P is used to indicate the power consumption of each system at the current moment.

[0155] In S620, the preset temperature value t B The ambient temperature t as input to the relational model A2 .

[0156] The relational model is used to represent the association between the ambient temperature and the temperatures in the measured temperature set.

[0157] In S830, t A2 , measured power consumption set P and measured temperature set T S Input the relational model to obtain the ambient temperature t output by the relational model A1 .

[0158] At S640, t is calculated. A1 With t A2 The difference between .

[0159] When t A1 With t A2 When the difference between the two is greater than the threshold, t A1 As t A2 , and perform S830 to S640 again. A1 With t A2 When the difference between them is less than or equal to the threshold, proceed to S650.

[0160] At S650, the ambient temperature t output by the relational model A1 As the current ambient temperature.

[0161] and Figure 6 Compared with the method 600 shown in the figure, in the process of determining the current ambient detection temperature using the relational model, method 800 uses not only the measured temperature of each temperature detection point at the current moment, but also the power consumption of each system at the current moment, thereby making the ambient detection temperature more accurate.

[0162] Fig. 9 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

[0163] The electronic device 900 includes a camera, a flash, a battery, and multiple chips.

[0164] Electronic equipment is provided with multiple temperature detection points.

[0165] Multiple temperature detection points can be distributed in different locations of the electronic device. For example, some temperature detection points can be located on the central processing unit (CPU) chip of the electronic device, some temperature detection points can be located on the battery, and some temperature detection points can be located on the controller of the camera.

[0166] like Fig. 9 All or part of the temperature sensors shown may be temperature sensors provided for other functional requirements. In other words, the ambient temperature detection method provided in the embodiment of the present application does not require additional hardware.

[0167] The temperature sensor can be a board-level temperature sensor or a chip temperature sensor. A board-level temperature sensor is a temperature sensor that is set on a printed circuit board (PCB) and is used to detect the temperature of the PCB. A chip temperature sensor is a temperature sensor that is set on a chip and is used to detect the temperature of the chip.

[0168] Fig.10 It is a schematic flow chart of an ambient temperature detection method 1000 provided in an embodiment of the present application.

[0169] The electronic device may be a personal computer (PC) or a foldable screen mobile phone. A PC is used as an example for explanation.

[0170] When the PC is in the folded and unfolded states, the power consumption of different systems in the PC has different effects on the temperatures at the locations of the temperature sensors set in the PC. Different relationship models can be set for PCs in different usage forms.

[0171] Before S1020, an expanded relationship model and a collapsed relationship model are obtained.

[0172] You can obtain the expanded relationship model and collapsed relationship model that have been trained by a third party. Or, when the PC is in the expanded state, Figure 5 S510 to S540 shown in the figure, training the unfolding relationship model; and when the PC is in the folded state, performing Figure 5 From S510 to S540 shown, a folding relationship model is trained.

[0173] At S1010, usage state information is acquired, where the usage state information is used to indicate whether the PC is currently in an unfolded state or a folded state.

[0174] In S1020, it is determined that the relationship model corresponding to the usage morphology information is the relationship model used in step S830.

[0175] The electronic device stores a relational model t corresponding to the unfolded state A1 =f 展开 (P,T S ,t A2 ), and the relational model t corresponding to the folded state A1 =f 折叠 (P,T S ,t A2 ). When the form information is used to indicate that the PC is in the unfolded state at the current moment, the relationship model t A1 =f 展开 (P,T S ,t A2 ) as the relational model used in the subsequent step S830.

[0176] At S810, a measured temperature set T is obtained. S And the measured power consumption set P, the measured temperature set T S Including the measured temperature of each temperature detection point at the current moment. The measured power consumption set P is used to indicate the power consumption of each system at the current moment.

[0177] In S620, the preset temperature value t B The ambient temperature t as input to the relational model A2 .

[0178] The relational model is used to represent the association between the ambient temperature and the temperatures in the measured temperature set.

[0179] In S830, t A2 , measured power consumption set P and measured temperature set T S Input the relational model to obtain the ambient temperature t output by the relational model A1 .

[0180] At S640, t is calculated. A1 With t A2 The difference between .

[0181] When t A1 With t A2 When the difference between the two is greater than the threshold, t A1 As t A2 , and perform S830 to S640 again. A1 With t A2 When the difference between them is less than or equal to the threshold, proceed to S650.

[0182] At S650, the ambient temperature t output by the relational model is A1 As the current ambient temperature.

[0183] Steps S1010 to S650 in method 1000 may be implemented, for example, by the following code:

[0184]

[0185] Among them, T_ambient_update represents t A1 , T_ambient_update represents t A2 , “f expand” represents the relational model in the expanded state, “f fold” represents the relational model in the unfolded state, and T_sensor represents the measured temperature set T S .

[0186] Through the method 1000, different relationship models are set for different usage modes of the electronic device. After the usage mode of the electronic device is determined, the relationship model corresponding to the usage mode is used according to the different usage modes, thereby improving the accuracy of ambient temperature calculation.

[0187] Combine the following Fig.11 and Fig.12, describes the device embodiment of the present application. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0188] Fig.11 It is a schematic structural diagram of an ambient temperature detection device provided in an embodiment of the present application.

[0189] The ambient temperature detection device 1100 includes an acquisition module 1101, a processing module 1102,

[0190] The acquisition module 1101 is used to acquire a measurement parameter set, where the measurement parameter set is used to indicate the measured temperatures of multiple temperature detection points set in the electronic device at the current moment.

[0191] The processing module 1102 is used to input the first ambient temperature and the measured temperature set into a first relationship model.

[0192] The processing module 1102 is further configured to use the second ambient temperature output by the first relationship model in the current iteration as the third ambient temperature, and input the third ambient temperature and the measured temperature set into the first relationship model for the next iteration operation.

[0193] The processing module 1102 is further configured to use the second ambient temperature output by the current iteration as the ambient detection temperature at the current moment when the difference between the second ambient temperature output by the current iteration and the third ambient temperature input by the current iteration is less than or equal to a preset value.

[0194] Optionally, the ambient temperature detection device 1100 is located in the electronic device. Thus, the difficulty and transmission time of obtaining the measurement parameter set can be reduced, and the time taken by the measurement parameter set transmission can be reduced, so that the ambient temperature detection calculation result is real-time.

[0195] Optionally, the measurement parameter set is used to indicate the correlation between the measured temperature and time of each temperature detection point within a preset time period before the current moment.

[0196] The relationship between the measured temperature of the temperature detection point and time can reflect the power consumption changes of each system in the electronic device. The measurement parameter set indicates the relationship between the measured temperature of the temperature detection point and time, which can improve the accuracy of the calculation result of the environmental detection temperature.

[0197] The measurement parameter set includes the power consumption of the system of the electronic device at the current moment.

[0198] It should be understood that an electronic device may include one or more systems. Each system may be a system whose power consumption can be measured separately. For example, multiple systems may include a CPU, a graphics processing unit (GPU), a neural-network processing unit (NPU), etc. located in a processor chip, and the power consumption of each system can be controlled and measured separately.

[0199] The measurement parameter set may include the power consumption of all or part of the one or more systems of the electronic device at the current moment, thereby improving the accuracy of the calculation result of the environment detection temperature.

[0200] Optionally, the electronic device has multiple usage forms, and each usage form corresponds to a relationship model.

[0201] The acquisition module 1101 is further used to acquire the first usage status of the electronic device at the current moment.

[0202] The processing module 1102 is further configured to determine a first relationship model corresponding to the first usage form.

[0203] Optionally, the first ambient temperature is an ambient temperature detected at a previous moment.

[0204] Fig.12 It is a schematic structural diagram of an ambient temperature detection device provided in an embodiment of the present application.

[0205] The ambient temperature detection device 1200 includes a memory 1210 and a processor 1220 .

[0206] The memory 1210 is used to store program instructions.

[0207] The processor 1220 is used to execute the program instructions to perform the following method:

[0208] Acquire a measurement parameter set, where the measurement parameter set is used to indicate the measured temperatures of multiple temperature detection points set in the electronic device at a current moment;

[0209] Inputting the first ambient temperature and the set of measured temperatures into a first relationship model;

[0210] Taking the second ambient temperature output by the first relationship model in the current iteration as the third ambient temperature, and inputting the third ambient temperature and the measured temperature set into the first relationship model for the next iteration operation;

[0211] When the difference between the second ambient temperature output by the current iteration and the third ambient temperature input by the current iteration is less than or equal to a preset value, the second ambient temperature output by the current iteration is used as the ambient detection temperature at the current moment.

[0212] Optionally, the measurement parameter set is used to indicate the correlation between the measured temperature and time of each of the temperature detection points within a preset time period before the current moment.

[0213] Optionally, the measurement parameter set includes power consumption of a system of the electronic device at the current moment.

[0214] Optionally, the electronic device has multiple usage modes, and each usage mode corresponds to a relationship model.

[0215] The processor 1220 is further configured to obtain a first usage state of the electronic device at the current moment.

[0216] The processor 1220 is further configured to determine a first relationship model corresponding to the first usage form.

[0217] Optionally, the first ambient temperature is an ambient temperature detected at a previous moment.

[0218] An embodiment of the present application further provides a computer program storage medium, characterized in that the computer program storage medium has program instructions, and when the program instructions are directly or indirectly executed, the method in the foregoing text is implemented.

[0219] An embodiment of the present application also provides a chip system, characterized in that the chip system includes at least one processor, and when program instructions are executed in the at least one processor, the method described above is implemented.

[0220] An embodiment of the present application also provides an electronic device, comprising the ambient temperature detection device described above.

[0221] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0222] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0223] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0224] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0225] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0226] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0227] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for detecting ambient temperature, characterized in that: The method comprises: Acquire a measurement parameter set, where the measurement parameter set is used to indicate the measured temperatures of multiple temperature detection points set in the electronic device at a current moment; Inputting the first ambient temperature and the set of measurement parameters into a first relationship model; Using the second ambient temperature output by the first relationship model in the current iteration as the third ambient temperature, and inputting the third ambient temperature and the measurement parameter set into the first relationship model for the next iteration operation; When the difference between the ambient temperature output by the current iteration and the ambient temperature input by the current iteration is less than or equal to a preset value, the ambient temperature output by the current iteration is used as the ambient detection temperature at the current moment.

2. The method according to claim 1, characterized in that: The measurement parameter set is used to indicate the correlation between the measured temperature and time of each of the temperature detection points within a preset time period before the current moment.

3. The method according to claim 1 or 2, characterized in that: The measurement parameter set includes the power consumption of the system of the electronic device at the current moment.

4. The method according to claim 1 or 2, characterized in that: The electronic device has multiple usage modes, each usage mode corresponds to a relationship model, The method further comprises: Acquire a first usage state of the electronic device at the current moment; A first relationship model corresponding to the first usage form is determined.

5. The method according to claim 1 or 2, characterized in that: The first ambient temperature is the ambient temperature detected at the last moment.

6. An ambient temperature detection device, characterized in that: include: Acquisition module, processing module; The acquisition module is used to acquire a set of measurement parameters, where the set of measurement parameters is used to indicate the measured temperatures of multiple temperature detection points set in the electronic device at the current moment; The processing module is used to input the first ambient temperature and the measurement parameter set into a first relationship model; The processing module is further used to use the second ambient temperature output by the first relationship model in the current iteration as the third ambient temperature, and input the third ambient temperature and the measurement parameter set into the first relationship model for the next iteration operation; The processing module is further configured to use the ambient temperature output by the current iteration as the ambient detection temperature at the current moment when the difference between the ambient temperature output by the current iteration and the ambient temperature input by the current iteration is less than or equal to a preset value.

7. The device according to claim 6, characterized in that The measurement parameter set is used to indicate the correlation between the measured temperature and time of each of the temperature detection points within a preset time period before the current moment.

8. The device according to claim 6 or 7, characterized in that The measurement parameter set includes the power consumption of the system of the electronic device at the current moment.

9. The device according to claim 6 or 7, characterized in that The electronic device has a plurality of usage modes, each of which corresponds to a relationship model. The acquisition module is further used to acquire the first usage state of the electronic device at the current moment; The processing module is further used to determine a first relationship model corresponding to the first usage form.

10. The device according to claim 6 or 7, characterized in that The first ambient temperature is the ambient temperature detected at the last moment.

11. An ambient temperature detection device, characterized in that: The ambient temperature detection device comprises a processor and a memory, wherein the memory is used to store program instructions, and the processor is used to execute the program instructions to execute the method according to any one of claims 1 to 5.

12. A computer program storage medium, characterized in that: The computer program storage medium has program instructions, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 5.

13. A chip, characterized in that: The chip includes at least one processor. When program instructions are executed by the at least one processor, the at least one processor performs the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for detecting internal temperature of heat apparatus

    CN101660951A

  • Ambient temperature detecting method and device and electronic equipment

    CN106546357A