Information processing method and device, electronic equipment and storage medium
By calculating the ambient temperature using the battery temperature and battery current of electronic devices, the impact of the device's own temperature on ambient temperature calculation is solved, and high-precision and real-time ambient temperature measurement is achieved.
Patent Information
- Application Number
- CN202311403401.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
The prior art cannot effectively avoid the impact of the temperature of the electronic device itself on the calculation of ambient temperature, resulting in the accuracy and timeliness of the ambient temperature cannot meet the usage requirements.
By obtaining the battery temperature and battery current of the electronic device, determine the target state of the device, and calculate the ambient temperature based on the target state to avoid the influence of the device's own temperature.
Real-time and high-precision calculation of ambient temperature is realized, meeting the needs of users, while avoiding the additional burden on electronic devices.
Smart Images

Figure CN119902094A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an information processing method, device, electronic device and storage medium. Background Art
[0002] In order to more conveniently obtain the current ambient temperature, an electronic device (such as a smart phone) can be used to measure the ambient temperature. However, in the prior art, it is impossible to avoid the influence of the internal heating device on the temperature sensor, resulting in the calculation of the ambient temperature failing to meet general use requirements in terms of accuracy and timeliness. Summary of the invention
[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0004] To this end, the first purpose of this application is to propose an information processing method to avoid the influence of the temperature of the electronic device itself on the calculation of the ambient temperature, to achieve real-time and high-precision calculation of the ambient temperature, and not to cause power consumption burden on the electronic device.
[0005] The second objective of the present application is to provide an information processing device.
[0006] The third objective of the present application is to provide an electronic device.
[0007] A fourth objective of the present application is to provide a computer-readable storage medium.
[0008] A fifth object of the present application is to provide a computer program product.
[0009] To achieve the above-mentioned purpose, the first aspect embodiment of the present application proposes an information processing method, including: determining the target state of the electronic device based on the battery temperature and / or battery current of the electronic device; determining the ambient temperature of the environment in which the electronic device is located according to the target state of the electronic device.
[0010] To achieve the above-mentioned purpose, the second aspect embodiment of the present application proposes an information processing device, including: a first determination module, used to determine the target state of the electronic device based on the battery temperature and / or battery current of the electronic device; a second determination module, used to determine the ambient temperature of the environment in which the electronic device is located according to the target state of the electronic device.
[0011] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes an electronic device, comprising: a processor; and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor can execute the information processing method described in the above-mentioned first aspect embodiment.
[0012] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium on which a computer program is stored, and the computer instructions are used to enable the computer to execute the information processing method described in the first aspect embodiment.
[0013] To achieve the above-mentioned purpose, the fifth aspect of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the information processing method described in the first aspect of the present application.
[0014] The information processing method, device, electronic device and storage medium provided by the present application determine the target state of the electronic device by obtaining the battery temperature and battery current of the electronic device. Then, the ambient temperature of the environment in which the electronic device is located is determined according to the target state, so that the user can quickly and easily determine the current ambient temperature, meeting the use requirements. Determining the ambient temperature based on the battery temperature and battery current avoids the influence of the temperature of the electronic device itself on the calculated ambient temperature, can realize real-time and high-precision calculation of the ambient temperature, and will not cause power consumption burden on the electronic device.
[0015] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0017] Figure 1 A flowchart of an information processing method provided in an embodiment of the present application;
[0018] Figure 2 A schematic diagram of storage data provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of a use scenario of an electronic device for measuring ambient temperature provided in an embodiment of the present application;
[0020] Figure 4 A flowchart of another information processing method provided in an embodiment of the present application;
[0021] Figure 5A schematic diagram of determining the ambient temperature of an environment in which an electronic device is located in a steady state of discharge provided in an embodiment of the present application;
[0022] Figure 6 A schematic diagram of the ambient temperature of the discharge steady state provided in the embodiment of the present application;
[0023] Figure 7 A flowchart of another information processing method provided in an embodiment of the present application;
[0024] Figure 8 A schematic diagram of determining the ambient temperature of an environment in which an electronic device is located during a non-stable discharge state provided in an embodiment of the present application.
[0025] Fig. 9 A schematic diagram of the ambient temperature of the non-stable discharge state provided in an embodiment of the present application.
[0026] Fig.10 A flowchart of another information processing method provided in an embodiment of the present application;
[0027] Fig.11 A schematic diagram of determining the ambient temperature of an environment in which an electronic device is located under static discharge provided in an embodiment of the present application;
[0028] Fig.12 A schematic diagram of the ambient temperature of static discharge provided in an embodiment of the present application.
[0029] Fig.13 A flowchart of another information processing method provided in an embodiment of the present application;
[0030] Fig.14 A schematic diagram of a process for determining a target state of an electronic device provided in an embodiment of the present application;
[0031] Fig.15 A flowchart of another information processing method provided in an embodiment of the present application;
[0032] Fig.16 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0034] The information processing method and device according to the embodiments of the present application are described below with reference to the accompanying drawings.
[0035] Figure 1 is a flowchart of an information processing method according to an exemplary embodiment. Figure 1 As shown, the information processing method of the embodiment of the present application includes but is not limited to the following steps:
[0036] S101, determining a target state of the electronic device based on a battery temperature and / or a battery current of the electronic device.
[0037] It should be noted that the execution subject of the information processing method provided in the embodiment of the present application is an electronic device, which may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device may be a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0038] In some implementations, the battery temperature and battery current of the electronic device may be collected in advance, and the collected data may be stored in an array so that the battery temperature and battery current may be directly acquired to determine the target state of the electronic device.
[0039] Optionally, the battery temperature and battery current of the electronic device can be collected based on one or more temperature sensors and current sensors of the electronic device itself. The battery temperature and battery current of the electronic device are obtained by reading the values output by the temperature sensor and the current sensor. Optionally, the battery temperature and battery current within the sampling window can be read cyclically at a constant frequency, and the collected data can be stored in an array. Among them, the sampling window refers to a fixed time.
[0040] For example, the battery temperature and battery current can be read cyclically within 5 minutes or 10 minutes at a frequency of 0.1 Hz, and the data can be stored in an array, such as Figure 2 The schematic diagram of storing data is shown in FIG. The collected battery temperature and battery current are stored in an array (data buffer) so that the data can be read directly from the array.
[0041] In some implementations, the state of the electronic device can be divided into a computable state and an incomputable state, and the computable state can be further divided into a stable state and an unstable state. Among them, the computable state refers to the electronic device being in a discharging state, and the incomputable state refers to the electronic device being in a charging state, that is, in the charging state, the electronic device cannot determine the ambient temperature.
[0042] In some implementations, it can be determined whether the electronic device is in a discharging state based on the collected current data of the battery current. Alternatively, it can be determined whether the electronic device is in a discharging state based on the positive or negative value of the current data. If the current data is a negative value, the electronic device is in a discharging state; if the current data is a positive value, the electronic device is in a charging state.
[0043] Further, when it is determined that the electronic device is in a discharging state, the target state of the electronic device can be determined based on the battery temperature and / or battery current of the electronic device. The target state includes a discharging stable state and a discharging unstable state.
[0044] It can be understood that the discharge steady state refers to a relatively stable state reached by the battery during the discharge process. In the steady state of the battery, the performance parameters of the battery remain basically unchanged, the voltage is maintained at a relatively stable level, the current changes little, and the capacity remains basically unchanged. The discharge steady state refers to the fact that parameters such as battery voltage, current and capacity may fluctuate or change instantaneously. For example, during the discharge process of the battery, when the battery is close to exhaustion, the voltage may drop sharply, which is also an unstable state.
[0045] Optionally, the target state of the electronic device can be determined based on the volatility of the current data and the gradient of the temperature data. If the volatility of the current data is less than or equal to a first fluctuation threshold, and the gradient of the temperature data decreases, it is determined that the electronic device is in an unsteady state of discharge. Further, if the gradient of the temperature data does not decrease, and the volatility of the temperature data is less than or equal to a second fluctuation threshold, it is determined that the electronic device is in a stable state of discharge.
[0046] S102, determining the ambient temperature of the environment in which the electronic device is located according to the target state of the electronic device.
[0047] In some implementations, if the target state of the electronic device is a discharge steady state, the ambient temperature of the environment in which the electronic device is located can be determined by calculating the average value of the battery temperature and the average value of the battery current within the sampling window.
[0048] In some implementations, if the target state of the electronic device is a non-steady state of discharge, an ambient temperature can be assumed, and the assumed battery temperature can be determined based on the assumed ambient temperature, thereby determining the minimum battery temperature within a sampling window. By comparing the difference between the minimum battery temperature and the measured battery temperature, it is determined whether the ambient temperature needs to be re-assumed. In other words, it can be determined whether the difference between the minimum battery temperature and the measured battery temperature is within a set range. If it is within the set range, the assumed ambient temperature is the ambient temperature of the environment in which the electronic device is located. If it is not within the set range, the ambient temperature is re-assumed, and the above judgment steps are repeated until the difference between the minimum battery temperature and the measured battery temperature is within the set range, and the assumed ambient temperature is determined to be the ambient temperature of the environment in which the electronic device is located.
[0049] In some implementations, the electronic device is located in an environment with relatively uniform temperature, such as indoors or outdoors. When the electronic device is in such a space, the ambient temperature (i.e., the air temperature) can be calculated more accurately. When the electronic device is placed in a confined space such as a pocket or a backpack, the local temperature of the corresponding location (such as the temperature inside the backpack) can be measured and calculated. Figure 3 The schematic diagram of the use of electronic equipment to measure ambient temperature is shown. Figure 3 The electronic device is a smart phone. When the smart phone is in a space, the ambient temperature of the current environment can be determined based on the battery current and the battery temperature.
[0050] In the embodiments of the present application, the ambient temperature calculated by the electronic device can be used for the performance and temperature control benchmark of the electronic device, the user's surrounding comfort perception, the indoor temperature monitoring of the air conditioning (Heating, Ventilation and Air Conditioning, HVAC) system, the urban zone temperature monitoring based on the big data crowdsourcing system, the urban heat island effect monitoring, etc.
[0051] In the information processing method provided in the embodiment of the present application, the target state of the electronic device is determined by acquiring the battery temperature and battery current of the electronic device. Then, the ambient temperature of the environment in which the electronic device is located is determined according to the target state, so that the user can quickly and easily determine the current ambient temperature, meeting the use requirements. The ambient temperature is determined based on the battery temperature and battery current, avoiding the influence of the temperature of the electronic device itself on the calculated ambient temperature, and can realize real-time and high-precision calculation of the ambient temperature without causing power consumption burden on the electronic device.
[0052] Figure 4 is a flowchart of an information processing method according to an exemplary embodiment. Figure 4 As shown, the information processing method of the embodiment of the present application includes but is not limited to the following steps:
[0053] S401, determining a target state of the electronic device based on a battery temperature and / or a battery current of the electronic device.
[0054] In the embodiment of the present application, the implementation method of step S401 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0055] S402, when the target state is a discharge steady state, statistical processing is performed on the battery temperature and the battery current, and the ambient temperature of the environment where the electronic device is located is determined based on the statistical results.
[0056] In some implementations, a processing flow matching the target state may be executed on the battery temperature and / or battery current of the electronic device to obtain the ambient temperature of the environment in which the electronic device is located. That is, when the target state is the discharge stable state, a processing flow matching the discharge stable state is executed to obtain the ambient temperature of the environment in which the electronic device is located; when the target state is the discharge unstable state, a processing flow matching the discharge unstable state is executed to obtain the ambient temperature of the environment in which the electronic device is located; when the target state is the discharge static state, a processing flow matching the discharge static state is executed to obtain the ambient temperature of the environment in which the electronic device is located.
[0057] In some implementations, when it is determined that the target state of the electronic device is a discharge steady state, the battery temperature and the battery current may be averaged to obtain the average battery temperature and the average battery current. For example, the sampling window is 5 minutes, the battery temperature and the battery current are collected within 5 minutes at a frequency of 0.1 Hz, and 30 battery temperature data and battery current data are obtained respectively, and then the average battery temperature and the average battery current within 5 minutes can be calculated.
[0058] Furthermore, the average battery temperature and the average battery current are linearly mapped to determine the ambient temperature of the environment in which the electronic device is located. Optionally, the ambient temperature of the environment in which the electronic device is located can be calculated based on a quadratic equation. The calculation formula is as follows:
[0059] T A =αI 2 +βT B (1)
[0060] Among them, T A is the ambient temperature, T B is the average battery temperature, I is the average battery current, and α and β are parameters that can be obtained by pre-training.
[0061] like Figure 5Schematic diagram of determining the ambient temperature of the environment in which the electronic device is located in the steady state of discharge shown in FIG. Determine that the electronic device is in the steady state of discharge, obtain the average value of the battery temperature and the average value of the battery current in the sampling window, and then determine the ambient temperature of the environment in which the electronic device is located based on formula (1). The ambient temperature in the steady state of discharge is as follows: Figure 6 shown.
[0062] In the information processing method provided in the embodiment of the present application, the target state of the electronic device is determined by acquiring the battery temperature and battery current of the electronic device. When the electronic device is in a steady state of discharge, the ambient temperature of the environment in which the electronic device is located is determined based on the average battery temperature and the average battery current in the sampling window, so that the user can quickly and easily determine the current ambient temperature, meeting the use requirements. Determining the ambient temperature based on the battery temperature and the battery current avoids the influence of the temperature of the electronic device itself on the calculated ambient temperature, can realize real-time and high-precision calculation of the ambient temperature, and will not cause power consumption burden on the electronic device.
[0063] Figure 7 is a flowchart of an information processing method according to an exemplary embodiment. Figure 7 As shown, the information processing method of the embodiment of the present application includes but is not limited to the following steps:
[0064] S701, determining a target state of the electronic device based on a battery temperature and / or a battery current of the electronic device.
[0065] In the embodiment of the present application, the implementation method of step S701 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0066] S702, when the target state is a discharge non-steady state, obtaining an estimated ambient temperature in a discharge steady state, and obtaining an estimated battery temperature in a discharge steady state based on the estimated ambient temperature.
[0067] In some implementations, when it is determined that the target state of the electronic device is a discharge non-stable state, the ambient temperature of the electronic device can be determined based on the estimated ambient temperature. Optionally, the estimated ambient temperature can be determined based on the ambient temperature of the discharge stable state recorded in history. For example, the ambient temperature of the discharge stable state in the previous sampling window can be used as the estimated ambient temperature.
[0068] Further, the battery current at the discharge steady state corresponding to the estimated ambient temperature is obtained, and based on the estimated ambient temperature and the battery current at the discharge steady state, the estimated battery temperature at the discharge steady state is obtained. Optionally, the estimated ambient temperature and the battery current may be input into the above formula (1) to calculate the estimated battery temperature.
[0069] S703: Based on the estimated battery temperature and the battery temperature, determine whether to adjust the estimated ambient temperature.
[0070] In some implementations, the estimated minimum battery temperature within the sampling window may be determined, and based on the difference between the minimum battery temperature and the battery temperature at the current moment, it may be determined whether to adjust the estimated ambient temperature.
[0071] In some implementations, the first battery temperature at the start time of the current sampling window and the second battery temperature at the end time are determined, wherein the second battery temperature is the battery temperature when the mobile phone reaches a steady state at the estimated ambient temperature. Then, based on the estimated battery temperature and the first battery temperature, the estimated minimum battery temperature in the current sampling window is determined. Optionally, the estimated minimum battery temperature in the current sampling window can be calculated based on the estimated battery temperature and the first battery temperature and based on an exponential decay function. The exponential decay function is as follows:
[0072]
[0073] Among them, T b_tr_t To estimate the minimum battery temperature, the temperature at the end time is the minimum temperature, T b0 is the first battery temperature, T b{st,1} is the second battery temperature, t-t0 is the window time, λ is the time constant, is the temperature change within the window time.
[0074] Further, based on the second battery temperature and the estimated minimum battery temperature, it is determined whether to adjust the estimated ambient temperature. Optionally, the temperature difference between the second battery temperature and the estimated minimum battery temperature can be obtained. By determining whether the temperature difference is within a set range, it is determined whether the estimated ambient temperature needs to be adjusted. When the temperature difference between the second battery temperature and the estimated minimum battery temperature is not within the set range, the estimated ambient temperature is adjusted; when the temperature difference between the second battery temperature and the estimated minimum battery temperature is within the set range, the estimated ambient temperature is not adjusted.
[0075] S704, when the estimated ambient temperature needs to be adjusted, the estimated ambient temperature is adjusted, and the process returns to re-acquire the estimated battery temperature and the above determination step until it is determined that the estimated ambient temperature does not need to be adjusted, thereby obtaining a target estimated ambient temperature.
[0076] In some implementations, when it is determined that the estimated ambient temperature needs to be adjusted, the estimated ambient temperature is adjusted and the estimated battery temperature is re-determined according to formula (1), and then based on the estimated battery temperature and the battery temperature in the current sampling window, it is determined whether the estimated ambient temperature needs to be adjusted again.
[0077] Optionally, the estimated ambient temperature may be adjusted using a dichotomy method. Optionally, an approximation algorithm may be used to determine the change trend of the ambient temperature based on the ambient temperature of the discharge steady state in the first few sampling windows, and then approximate the adjusted estimated ambient temperature.
[0078] Optionally, if the estimated ambient temperature does not need to be adjusted, the temperature is determined to be the target estimated ambient temperature. If the estimated ambient temperature needs to be adjusted, the above determination steps are repeated until the estimated ambient temperature does not need to be adjusted, and the estimated ambient temperature is the target estimated ambient temperature.
[0079] S705: Determine that the target estimated ambient temperature is the ambient temperature of the environment in which the electronic device is located.
[0080] In some implementations, if it is determined that the estimated ambient temperature does not need to be adjusted, the estimated ambient temperature is the target estimated ambient temperature, and the target estimated ambient temperature is determined as the ambient temperature of the environment of the electronic device.
[0081] In the information processing method provided in the embodiment of the present application, the target state of the electronic device is determined by acquiring the battery temperature and battery current of the electronic device. When the electronic device is in a non-stable state of discharge, the ambient temperature of the environment in which the electronic device is located is determined by acquiring the estimated ambient temperature in the stable state of discharge, and based on the estimated battery temperature and the battery temperature in the current sampling window, so that the user can quickly and easily determine the current ambient temperature, meeting the use requirements. Determining the ambient temperature based on the battery temperature and the battery current avoids the influence of the temperature of the electronic device itself on the calculated ambient temperature, can realize real-time and high-precision calculation of the ambient temperature, and will not cause power consumption burden on the electronic device.
[0082] like Figure 8 The schematic diagram of determining the ambient temperature of the environment in which the electronic device is located in the non-steady state of discharge is shown. By determining the estimated ambient temperature, the battery current in the steady state of discharge corresponding to the estimated ambient temperature can be determined, and then the estimated battery temperature can be obtained according to formula (1). The estimated minimum battery temperature in the current sampling window is calculated using an exponential decay function.
[0083] By calculating the difference between the current battery temperature and the estimated minimum battery temperature, if the difference is within the set range, such as the difference is 0, indicating that the current battery temperature is equal to the estimated minimum battery temperature, the estimated ambient temperature is used as the target estimated ambient temperature, that is, the ambient temperature of the electronic device.
[0084] If the difference is not within the set range, use the binary method to adjust the estimated ambient temperature and calculate the estimated battery temperature. Use the exponential decay function to recalculate the estimated minimum battery temperature and determine whether the difference between the current battery temperature and the estimated minimum battery temperature is within the set range. Repeat the above steps until there is no need to adjust the estimated ambient temperature. The estimated ambient temperature is the target estimated ambient temperature, that is, the ambient temperature of the electronic device. The estimated ambient temperature is used as the ambient temperature. The ambient temperature of the discharge non-steady state is as follows: Fig. 9 shown.
[0085] Fig.10 is a flowchart of an information processing method according to an exemplary embodiment. Fig.10 As shown, the information processing method of the embodiment of the present application includes but is not limited to the following steps:
[0086] S1001, determining a target state of the electronic device based on a battery temperature and / or a battery current of the electronic device.
[0087] In the embodiment of the present application, the implementation method of step S1001 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0088] S1002, when the target state is a static state of discharge, statistical processing is performed on the battery temperature, and the ambient temperature of the environment in which the electronic device is located is determined based on the statistical result.
[0089] In some implementations, when it is determined that the target state of the electronic device is a discharge static state, the battery temperature is averaged to obtain the battery temperature average value. Further, the battery temperature average value is linearly mapped to determine the ambient temperature of the environment in which the electronic device is located. Optionally, the ambient temperature of the environment in which the electronic device is located can be calculated based on a linear equation. The calculation formula is as follows:
[0090] T A = T B +T offset (3)
[0091] Among them, T A is the ambient temperature, T B is the average battery temperature, T offset is the compensation value.
[0092] like Fig.11 Schematic diagram of determining the ambient temperature of the environment in which the electronic device is located in the static state of discharge as shown in FIG. Determine that the electronic device is in the static state of discharge, obtain the average value of the battery temperature in the sampling window, and then determine the ambient temperature of the environment in which the electronic device is located based on formula (3). The ambient temperature of the static state of discharge is as follows: Fig.12 shown.
[0093] In the information processing method provided in the embodiment of the present application, the target state of the electronic device is determined by acquiring the battery temperature and battery current of the electronic device. When the electronic device is in a discharge static state, the ambient temperature of the environment in which the electronic device is located is determined based on the average battery temperature within the sampling window, so that the user can easily and quickly determine the current ambient temperature, meeting the use requirements. Determining the ambient temperature based on the battery temperature and battery current avoids the influence of the temperature of the electronic device itself on the calculated ambient temperature, can realize real-time and high-precision calculation of the ambient temperature, and will not cause power consumption burden on the electronic device.
[0094] Fig.13 is a flowchart of an information processing method according to an exemplary embodiment. Fig.13 As shown, the information processing method of the embodiment of the present application includes but is not limited to the following steps:
[0095] S1301, when the battery is in a discharging state, obtaining fluctuation data of the battery current and the battery temperature.
[0096] In some implementations, it is possible to determine whether the electronic device is in a discharging state based on the positive or negative value of the current data. Optionally, the current data I can be obtained from a pre-stored array. bat If the current data I bat If the current data I is less than 0, it means that the electronic device is in charging state; bat If the value is greater than 0, it indicates that the electronic device is in a discharging state. In some implementations, the battery current data may be preprocessed to reduce noise interference and obtain the battery current fluctuation data. Optionally, the battery current may be filtered, peak removed, or moved and smoothed to obtain the battery current fluctuation data.
[0097] In some implementations, the battery temperature fluctuation analysis may be performed based on the battery temperature data within the sampling window to obtain the battery temperature gradient and the battery temperature fluctuation amplitude. For example, the battery temperature gradient and fluctuation amplitude may be determined through a fluctuation curve, a spectrum diagram, and the like.
[0098] S1302: Determine a target state of the electronic device based on fluctuation data of the battery current and the battery temperature.
[0099] In some implementations, the target state of the battery can be determined based on the battery current and the battery temperature fluctuation data. Optionally, when the battery current is less than the first threshold, the target state of the battery is determined based on the battery temperature fluctuation data. For example, assuming that the battery current is I a , the first threshold is I s_thre , if Ia Less than I s_thre , then the target state of the battery is determined based on the battery temperature fluctuation data.
[0100] Optionally, whether the battery temperature meets a second threshold condition may be determined based on battery temperature fluctuation data, and when the battery temperature meets the second threshold condition, it is determined that the battery is in a discharge static state.
[0101] In some implementations, when the battery current is greater than or equal to the first threshold, it is determined whether the fluctuation data of the battery current meets the first fluctuation permission condition. Then, by determining the fluctuation size of the battery current fluctuation data and the battery temperature gradient trend, the target state of the electronic device is determined.
[0102] Optionally, the fluctuation amplitude of the battery current fluctuation data may be set to be less than or equal to a first fluctuation threshold value as a first fluctuation permission condition, and the target state of the electronic device may be determined by judging whether the battery current fluctuation data satisfies the first fluctuation permission condition. When the battery current fluctuation data satisfies the first fluctuation permission condition, the target state of the electronic device is determined based on the battery temperature fluctuation data. When the battery current fluctuation data does not satisfy the first fluctuation permission condition, it is determined that the battery is in a charging state, and the sampling data of the next sampling window is waited.
[0103] In some implementations, when the fluctuation data of the battery current meets the first fluctuation permission condition, it can be determined based on the fluctuation data of the battery temperature whether the battery temperature decreases gradually, thereby determining the target state of the electronic device.
[0104] It can be understood that the battery temperature gradient descent refers to the process in which the rate of change of the battery temperature over time gradually decreases. In other words, the rate of change of the battery temperature is constantly decreasing. Non-gradient descent means that the rate of change of the battery temperature over time does not tend to gradually decrease, but remains at a relatively stable level, that is, the rate of change of the battery temperature does not have an obvious downward trend.
[0105] Optionally, when the battery temperature gradient decreases, it is determined that the battery is in a discharge non-stable state.
[0106] Optionally, if the battery temperature decreases in a gradient, it is determined that the battery is in a non-stable state of discharge. When the battery temperature decreases in a non-gradient manner, the fluctuation amplitude of the battery temperature can be set to be less than or equal to a second fluctuation threshold as a second fluctuation allowable condition, and then it is determined whether the fluctuation amplitude of the battery temperature meets the second fluctuation allowable condition. When the battery temperature decreases in a non-gradient manner and the fluctuation amplitude of the battery temperature meets the second fluctuation allowable condition, it is determined that the battery is in a stable state of discharge.
[0107] Optionally, when the battery temperature decreases non-gradiently and the fluctuation amplitude of the battery temperature does not meet the second fluctuation permission condition, it is determined that the battery is in a charging state, and the sampling data of the next sampling window is waited.
[0108] like Fig.14 The flowchart of determining the target state of the electronic device is shown in FIG. Based on the sampled data in the array (databuffer), it is determined whether the electronic device is in the discharging state. If it is in the charging state, the calculation is terminated and the sampled data of the next sampling window is waited.
[0109] If it is in the discharge state, obtain the fluctuation data of the battery current, and determine whether the current is less than the first threshold value. If it is less than, determine whether the battery temperature meets the second threshold condition. If it meets, determine that the electronic device is in the discharge static state. If the current is greater than or equal to the first threshold, determine whether the battery current fluctuation data meets the first fluctuation permission condition. If the first fluctuation permission condition is not met, the calculation is terminated and the sampling data of the next sampling window is waited for. If the first fluctuation permission condition is met, the gradient of the battery temperature is judged. If the battery temperature gradient decreases, it is determined that the battery is in the discharge non-stable state. If the battery temperature decreases non-gradiently, determine whether the fluctuation amplitude of the battery temperature meets the second fluctuation permission condition. When the fluctuation amplitude of the battery temperature meets the second fluctuation permission condition, determine that the battery is in the discharge stable state. When the fluctuation amplitude of the battery temperature does not meet the second fluctuation permission condition, the calculation is terminated and the sampling data of the next sampling window is waited for.
[0110] S1303: Determine the ambient temperature of the environment where the electronic device is located according to the target state of the electronic device.
[0111] In the embodiment of the present application, the method of determining the ambient temperature of the environment in which the electronic device is located in step S1303 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0112] In some implementations, after determining the ambient temperature of the environment in which the electronic device is located, the electronic device may be temperature controlled based on the ambient temperature, for example, to dissipate heat from the electronic device to prevent excessive temperature from negatively affecting the performance and service life of the device.
[0113] Optionally, the temperature of smart home devices associated with the electronic device can also be controlled based on the ambient temperature. For example, the setting temperature of the smart air conditioner can be adjusted. The ambient temperature can also be transmitted to the cloud server to generate a temperature distribution map of the area where the electronic device is located, so as to monitor the temperature of the city partition.
[0114] In the information processing method provided in the embodiment of the present application, by obtaining the battery temperature and battery current of the electronic device, it is determined whether the electronic device is in a discharge state. When the electronic device is in a discharge state, the target state of the electronic device is determined based on the fluctuation data of the battery temperature and the battery current. Then, the ambient temperature of the environment in which the electronic device is located is determined according to the target state, so that the user can quickly and easily determine the current ambient temperature, meeting the needs of use. Determining the ambient temperature based on the battery temperature and the battery current avoids the influence of the temperature of the electronic device itself on the calculated ambient temperature, and can realize real-time and high-precision calculation of the ambient temperature without causing power consumption burden on the electronic device.
[0115] Fig.15 is a flowchart of an information processing method according to an exemplary embodiment. Fig.15 As shown, the information processing method of the embodiment of the present application includes but is not limited to the following steps:
[0116] S1501, when the battery is in a discharging state, obtaining fluctuation data of the battery current and the battery temperature.
[0117] S1502: When the battery current is less than the first threshold, determine whether the battery temperature meets the second threshold condition based on the battery temperature fluctuation data.
[0118] S1503: When the battery temperature meets a second threshold condition, determine that the battery is in a discharge static state.
[0119] S1504: When the battery current is greater than or equal to the first threshold, determine whether the fluctuation data of the battery current meets a first fluctuation permission condition.
[0120] S1505: When the fluctuation data of the battery current meets the first fluctuation permission condition, determine the target state of the electronic device based on the fluctuation data of the battery temperature.
[0121] S1506, based on the battery temperature fluctuation data, determine whether the battery temperature decreases gradually.
[0122] S1507: When the battery temperature gradient decreases, it is determined that the battery is in a non-stable discharge state.
[0123] S1508, obtaining an estimated ambient temperature in a discharge steady state, and based on the estimated ambient temperature, obtaining an estimated battery temperature in a discharge steady state.
[0124] S1509: Based on the estimated battery temperature and the battery temperature, determine whether to adjust the estimated ambient temperature.
[0125] S1510, when the estimated ambient temperature needs to be adjusted, the estimated ambient temperature is adjusted, and the estimated battery temperature and the above-mentioned determination step are returned to be re-acquired, until it is determined that the estimated ambient temperature does not need to be adjusted, and the target estimated ambient temperature is obtained.
[0126] S1511, determining that the target estimated ambient temperature is the ambient temperature of the environment in which the electronic device is located.
[0127] S1512: When the battery temperature decreases non-gradiently and the fluctuation amplitude of the battery temperature meets a second fluctuation permission condition, it is determined that the battery is in a discharge stable state.
[0128] S1513, performing mean processing on the battery temperature and the battery current to obtain an average value of the battery temperature and an average value of the battery current.
[0129] S1514, linearly mapping the average battery temperature and the average battery current to determine the ambient temperature of the environment where the electronic device is located.
[0130] In the information processing method provided in the embodiment of the present application, the target state of the electronic device is determined by acquiring the battery temperature and battery current of the electronic device. Then, the ambient temperature of the environment in which the electronic device is located is determined according to the target state, so that the user can quickly and easily determine the current ambient temperature, meeting the use requirements. The ambient temperature is determined based on the battery temperature and battery current, avoiding the influence of the temperature of the electronic device itself on the calculated ambient temperature, and can realize real-time and high-precision calculation of the ambient temperature without causing power consumption burden on the electronic device.
[0131] For example, Table 1 below shows the results of measuring the ambient temperature in a real random usage scenario.
[0132] Table 1
[0133]
[0134] As shown in Table 1, the ambient temperature range measured within 60 hours is 7.7℃~27.9℃, the battery temperature range is 15.8℃~40.1℃, and the absolute error between the measured ambient temperature and the actual ambient temperature is 1.668℃. The computable sampling data, that is, the sampling data in the discharge state, accounts for 68.4% of the total sampling data.
[0135] In order to implement the above embodiments, the present application also proposes an information processing device.
[0136] Fig.16 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application.
[0137] like Fig.16As shown, the information processing device 1600 includes:
[0138] The first determination module 1601 is configured to determine a target state of the electronic device based on a battery temperature and / or a battery current of the electronic device.
[0139] The second determining module 1602 is configured to determine the ambient temperature of the environment in which the electronic device is located according to the target state of the electronic device.
[0140] In a possible implementation of the embodiment of the present application, the second determination module 1602 is further used to: execute a processing flow matching the target state on the battery temperature and / or the battery current of the electronic device to obtain the ambient temperature of the environment in which the electronic device is located.
[0141] In a possible implementation of an embodiment of the present application, the second determination module 1602 is further used to: when the target state is a discharge steady state, perform statistical processing on the battery temperature and the battery current, and determine the ambient temperature of the environment in which the electronic device is located based on the statistical results.
[0142] In a possible implementation of the embodiment of the present application, the second determination module 1602 is further used to: perform mean processing on the battery temperature and the battery current to obtain the average value of the battery temperature and the average value of the battery current; perform linear mapping on the average value of the battery temperature and the average value of the battery current to determine the ambient temperature of the environment in which the electronic device is located.
[0143] In a possible implementation of the embodiment of the present application, the second determination module 1602 is also used to: when the target state is a discharge non-stable state, obtain the estimated ambient temperature in the discharge stable state, and based on the estimated ambient temperature, obtain the estimated battery temperature in the discharge stable state; based on the estimated battery temperature and the battery temperature, determine whether to adjust the estimated ambient temperature; when the estimated ambient temperature needs to be adjusted, adjust the estimated ambient temperature, and return to re-acquire the estimated battery temperature and the above-mentioned judgment step until it is determined that the estimated ambient temperature does not need to be adjusted, and the target estimated ambient temperature is obtained; determine that the target estimated ambient temperature is the ambient temperature of the environment in which the electronic device is located.
[0144] In a possible implementation of an embodiment of the present application, the second determination module 1602 is further used to: determine the first battery temperature at the start time and the second battery temperature at the end time of the current sampling window; determine the estimated minimum battery temperature within the current sampling window based on the estimated battery temperature and the first battery temperature; and determine whether to adjust the estimated ambient temperature based on the second battery temperature and the estimated minimum battery temperature.
[0145] In a possible implementation of an embodiment of the present application, the second determination module 1602 is also used to: when the temperature difference between the second battery temperature and the estimated minimum battery temperature is not within a set range, adjust the estimated ambient temperature; when the temperature difference between the second battery temperature and the estimated minimum battery temperature is within the set range, do not adjust the estimated ambient temperature.
[0146] In a possible implementation of an embodiment of the present application, the second determination module 1602 is further used to: obtain the battery current in the discharge steady state corresponding to the estimated ambient temperature; and obtain the estimated battery temperature in the discharge steady state based on the estimated ambient temperature and the battery current in the discharge steady state.
[0147] In a possible implementation of the embodiment of the present application, the second determination module 1602 is further used to: when the target state is discharge static, perform statistical processing on the battery temperature, and determine the ambient temperature of the environment in which the electronic device is located based on the statistical results.
[0148] In a possible implementation of the embodiment of the present application, the second determination module 1602 is further used to: perform mean processing on the battery temperature to obtain the battery temperature average value; perform linear mapping on the battery temperature average value to determine the ambient temperature of the environment in which the electronic device is located.
[0149] In a possible implementation of the embodiment of the present application, the first determination module 1601 is further used to: when the battery is in a discharging state, obtain the fluctuation data of the battery current and the battery temperature; and determine the target state of the electronic device based on the fluctuation data of the battery current and the battery temperature.
[0150] In a possible implementation of the embodiment of the present application, the first determination module 1601 is further used to: when the battery current is less than a first threshold, determine the target state of the battery based on the fluctuation data of the battery temperature.
[0151] In a possible implementation of the embodiment of the present application, the first determination module 1601 is further used to: determine whether the battery temperature meets a second threshold condition based on the fluctuation data of the battery temperature; when the battery temperature meets the second threshold condition, determine that the battery is in a discharge static state.
[0152] In a possible implementation of an embodiment of the present application, the first determination module 1601 is further used to: when the battery current is greater than or equal to a first threshold, determine whether the fluctuation data of the battery current satisfies a first fluctuation permission condition; when the fluctuation data of the battery current satisfies the first fluctuation permission condition, determine the target state of the electronic device based on the fluctuation data of the battery temperature.
[0153] In a possible implementation of the embodiment of the present application, the first determination module 1601 is further used to: when the fluctuation data of the battery current does not meet the first fluctuation permission condition, determine that the battery is in a charging state and wait for sampling data of the next sampling window.
[0154] 1616 In a possible implementation of the embodiment of the present application, the first determination module 1601 is further used to: determine whether the battery temperature decreases gradually based on the fluctuation data of the battery temperature; when the battery temperature decreases gradually, determine that the battery is in a non-stable discharge state; when the battery temperature decreases non-gradiently and the fluctuation amplitude of the battery temperature meets the second fluctuation permission condition, determine that the battery is in a stable discharge state.
[0155] In a possible implementation of the embodiment of the present application, the device also includes: when the battery temperature decreases non-gradiently and the fluctuation amplitude of the battery temperature does not meet the second fluctuation permission condition, determining that the battery is in a charging state and waiting for sampling data of the next sampling window.
[0156] In a possible implementation of the embodiment of the present application, the fluctuation data of the battery current is obtained after performing at least one of the following processing on the battery current: filtering processing, peak removal processing, and moving smoothing processing.
[0157] In a possible implementation of an embodiment of the present application, the second determination module 1602 is further used to: perform temperature control on the electronic device based on the ambient temperature; perform temperature control on a smart home device associated with the electronic device based on the ambient temperature; and transmit the ambient temperature to a cloud server to generate a temperature distribution map of the area where the electronic device is located.
[0158] In the information processing device provided in the embodiment of the present application, the target state of the electronic device is determined by acquiring the battery temperature and battery current of the electronic device. Then, the ambient temperature of the environment in which the electronic device is located is determined according to the target state, so that the user can quickly and easily determine the current ambient temperature, meeting the use requirements. Determining the ambient temperature based on the battery temperature and battery current avoids the influence of the temperature of the electronic device itself on the calculated ambient temperature, and can realize real-time and high-precision calculation of the ambient temperature without causing power consumption burden on the electronic device.
[0159] It should be noted that the above explanation of the information processing method embodiment is also applicable to the information processing device of this embodiment, and will not be repeated here.
[0160] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.
[0161] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.
[0162] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.
[0163] The collection, storage, use, processing, transmission, provision and application of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.
[0164] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.
[0165] This application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, this application is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, risks can be minimized by limiting data collection and deleting data. In addition, when applicable, personal identifiers are removed from such personal information to protect the privacy of users.
[0166] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0167] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0168] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0169] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0170] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0171] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0172] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0173] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. An information processing method, characterized in that: The method comprises: Determining a target state of the electronic device based on a battery temperature and / or a battery current of the electronic device; The ambient temperature of the environment in which the electronic device is located is determined according to the target state of the electronic device.
2. The method according to claim 1, characterized in that The step of determining the ambient temperature of the environment in which the electronic device is located according to the target state of the electronic device comprises: A processing flow matching the target state is executed on the battery temperature and / or the battery current of the electronic device to obtain the ambient temperature of the environment in which the electronic device is located.
3. The method according to claim 2, characterized in that The step of performing a processing flow matching the target state on the battery temperature and / or the battery current of the electronic device to obtain the ambient temperature of the environment in which the electronic device is located includes: When the target state is a discharge steady state, statistical processing is performed on the battery temperature and the battery current, and the ambient temperature of the environment in which the electronic device is located is determined based on the statistical result.
4. The method according to claim 3, characterized in that The performing statistical processing on the battery temperature and the battery current, and determining the ambient temperature of the environment where the electronic device is located based on the statistical results, includes: Performing mean processing on the battery temperature and the battery current to obtain a battery temperature average value and a battery current average value; Linear mapping is performed on the average value of the battery temperature and the average value of the battery current to determine the ambient temperature of the environment in which the electronic device is located.
5. The method according to claim 2, characterized in that: The step of performing a processing flow matching the target state on the battery temperature and / or the battery current of the electronic device to obtain the ambient temperature of the environment in which the electronic device is located includes: When the target state is a discharge non-steady state, obtaining an estimated ambient temperature in a discharge steady state, and obtaining an estimated battery temperature in a discharge steady state based on the estimated ambient temperature; determining whether to adjust the estimated ambient temperature based on the estimated battery temperature and the battery temperature; When the estimated ambient temperature needs to be adjusted, the estimated ambient temperature is adjusted, and the estimated battery temperature and the above-mentioned determination step are returned to be re-acquired, until it is determined that the estimated ambient temperature does not need to be adjusted, and a target estimated ambient temperature is obtained; The target estimated ambient temperature is determined to be the ambient temperature of the environment in which the electronic device is located.
6. The method according to claim 5, characterized in that The determining whether to adjust the estimated ambient temperature based on the estimated battery temperature and the battery temperature includes: Determine a first battery temperature at a start time of a current sampling window and a second battery temperature at an end time; determining an estimated minimum battery temperature within the current sampling window based on the estimated battery temperature and the first battery temperature; Based on the second battery temperature and the estimated minimum battery temperature, it is determined whether to adjust the estimated ambient temperature.
7. The method according to claim 6, characterized in that The determining whether to adjust the estimated ambient temperature based on the second battery temperature and the estimated minimum battery temperature includes: When the temperature difference between the second battery temperature and the estimated minimum battery temperature is not within a set range, adjusting the estimated ambient temperature; When the temperature difference between the second battery temperature and the estimated minimum battery temperature is within the set range, the estimated ambient temperature is not adjusted.
8. The method according to claim 5, characterized in that The obtaining, based on the estimated ambient temperature, an estimated battery temperature in a discharge steady state includes: Obtaining the battery current at a discharge steady state corresponding to the estimated ambient temperature; The estimated battery temperature in the discharge steady state is acquired based on the estimated ambient temperature and the battery current in the discharge steady state.
9. The method according to claim 2, characterized in that: The step of performing a processing flow matching the target state on the battery temperature and / or the battery current of the electronic device to obtain the ambient temperature of the environment in which the electronic device is located includes: When the target state is a discharge static state, the battery temperature is statistically processed, and the ambient temperature of the environment where the electronic device is located is determined based on the statistical result.
10. The method according to claim 9, characterized in that The performing statistical processing on the battery temperature and determining the ambient temperature of the environment where the electronic device is located based on the statistical result includes: Performing mean processing on the battery temperature to obtain an average battery temperature; Linear mapping is performed on the average value of the battery temperature to determine the ambient temperature of the environment where the electronic device is located.
11. The method according to any one of claims 1 to 10, characterized in that The step of determining a target state of the electronic device based on a battery temperature and / or a battery current of the electronic device: When the battery is in a discharging state, obtaining fluctuation data of the battery current and the battery temperature; Based on the fluctuation data of the battery current and the battery temperature, a target state of the electronic device is determined.
12. The method according to claim 11, characterized in that The determining the target state of the electronic device based on the fluctuation data of the battery current and the battery temperature includes: When the battery current is less than a first threshold, a target state of the battery is determined based on the fluctuation data of the battery temperature.
13. The method according to claim 12, characterized in that The determining the target state of the battery based on the battery temperature fluctuation data includes: Based on the battery temperature fluctuation data, determining whether the battery temperature meets a second threshold condition; When the battery temperature meets the second threshold condition, it is determined that the battery is in a discharging static state.
14. The method according to claim 12, characterized in that The determining the target state of the electronic device based on the fluctuation data of the battery current and the battery temperature includes: When the battery current is greater than or equal to the first threshold, determining whether the fluctuation data of the battery current meets a first fluctuation permission condition; When the fluctuation data of the battery current satisfies the first fluctuation allowing condition, a target state of the electronic device is determined based on the fluctuation data of the battery temperature.
15. The method according to claim 14, characterized in that The method further comprises: When the fluctuation data of the battery current does not meet the first fluctuation permission condition, it is determined that the battery is in a charging state, and the sampling data of the next sampling window is waited.
16. The method according to claim 14, characterized in that Determining a target state of the electronic device based on the battery temperature fluctuation data includes: Based on the battery temperature fluctuation data, determining whether the battery temperature decreases gradually; When the battery temperature gradient decreases, determining that the battery is in a discharge non-stable state; When the battery temperature decreases non-gradiently and the fluctuation amplitude of the battery temperature satisfies a second fluctuation allowance condition, it is determined that the battery is in a discharge stable state.
17. The method according to claim 16, characterized in that The method further comprises: When the battery temperature decreases non-gradiently and the fluctuation amplitude of the battery temperature does not meet the second fluctuation permission condition, it is determined that the battery is in a charging state, and sampling data of the next sampling window is waited.
18. The method according to claim 11, characterized in that After performing at least one of the following processing on the battery current, the fluctuation data of the battery current is obtained: Filtering, peak removal, and motion smoothing.
19. The method according to any one of claims 1 to 11, characterized in that After determining the ambient temperature of the environment in which the electronic device is located according to the target state of the electronic device, performing at least one of the following operations: Based on the ambient temperature, temperature control is performed on the electronic device; Based on the ambient temperature, temperature control is performed on a smart home device associated with the electronic device; The ambient temperature is transmitted to a cloud server to generate a temperature distribution map of the area where the electronic device is located.
20. An information processing device, characterized in that: The device comprises: A first determination module, configured to determine a target state of the electronic device based on a battery temperature and / or a battery current of the electronic device; The second determining module is used to determine the ambient temperature of the environment where the electronic device is located according to the target state of the electronic device.
21. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 19.
22. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 19 when executed by a processor.
23. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 19 when being executed by a processor.