Temperature determination method and device, electronic equipment, storage medium and program product
By using the temperature determination model in the temperature sensor and determining the model based on the resistance sampling AD value and temperature determination model, the problem of inaccurate temperature detection in the prior art is solved, and higher temperature detection accuracy is achieved.
Patent Information
- Application Number
- CN202510258306.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-05-27
AI Technical Summary
In the prior art, when detecting the internal temperature of the device, the temperature sensor is susceptible to environmental factors and the MCU hardware has errors, resulting in a change in the relationship between the resistor AD sampling value and the temperature value, and it is impossible to accurately detect the internal temperature of the device.
By obtaining the resistance sampling AD value of the temperature sensor of the target device, and determining the model based on the resistance sampling AD value and temperature, the target temperature value corresponding to the resistance sampling AD value is determined. The temperature determination model is used to characterize the correspondence between the resistance value of the temperature sensor and the temperature value.
The temperature determination model can more accurately characterize the relationship between the resistance value and the temperature value, and improve the detection accuracy of the internal temperature of the equipment.
Smart Images

Figure CN120043650A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of device detection, and in particular, to a method, apparatus, electronic device, storage medium, and program product for determining temperature. Background Art
[0002] Currently, when detecting the internal temperature of a device (such as a refrigerator), a temperature sensor that is an NTC (Negative Temperature Coefficient) thermistor is usually used. Its working principle is to achieve temperature detection by corresponding each specific resistance value to a temperature value. However, since the temperature sensor itself is easily affected by environmental factors, and there are certain errors in the MCU (Microcontroller Unit) hardware itself, the relationship between the resistance AD sampling value and the temperature value will change, resulting in the relationship table between resistance and temperature obtained from experiments no longer being applicable to different temperature sensors. If the relationship table between resistance and temperature is directly referred to, it will lead to large errors and the internal temperature of the device cannot be accurately detected. Summary of the Invention
[0003] To overcome the problems in the related art, the present disclosure provides a method, apparatus, electronic device, storage medium, and program product for determining temperature.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a method for determining temperature, including: Obtaining an AD sampling value of the resistance of the temperature sensor of the target device; Determining a target temperature value corresponding to the AD sampling value of the resistance according to the AD sampling value of the resistance and a temperature determination model; the temperature determination model is used to represent the corresponding relationship between the resistance value and the temperature value of the temperature sensor.
[0005] Optionally, the determining a target temperature value corresponding to the AD sampling value of the resistance according to the AD sampling value of the resistance and a temperature determination model includes: Converting the AD sampling value of the resistance into a target resistance value; Inputting the target resistance value into the temperature determination model to obtain the target temperature value output by the temperature determination model.
[0006] Optionally, the temperature determination model is determined by the following method: Determining the temperature determination model according to a plurality of sample resistance values corresponding to the temperature sensor and sample temperature values corresponding to each of the sample resistance values, and a preset relationship model; the preset relationship model is used to represent the corresponding relationship between resistance and temperature, and the preset relationship model includes at least one undetermined coefficient.
[0007] Optionally, determining the temperature determination model according to the multiple sample resistance values corresponding to the temperature sensor, the sample temperature values corresponding to each of the sample resistance values, and a preset relationship model includes: Determining the coefficient values of the undetermined coefficients according to the multiple sample resistance values and the sample temperature values corresponding to each of the sample resistance values; Substituting the coefficient values into the preset relationship model to obtain the temperature determination model.
[0008] Optionally, the preset relationship model includes the Steinhart-Hart model.
[0009] Optionally, obtaining the resistance sampling AD value of the temperature sensor of the target device includes: Obtaining multiple sampling AD values of the temperature sensor; Using the sampling AD values other than the maximum value and the minimum value among the multiple sampling AD values as candidate sampling AD values; Using the average value of the candidate sampling AD values as the resistance sampling AD value.
[0010] According to a second aspect of the embodiments of the present disclosure, there is provided a temperature determination device, including: An acquisition module configured to acquire the resistance sampling AD value of the temperature sensor of the target device; A determination module configured to determine the target temperature value corresponding to the resistance sampling AD value according to the resistance sampling AD value and the temperature determination model; the temperature determination model is used to characterize the corresponding relationship between the resistance value and the temperature value of the temperature sensor.
[0011] Optionally, the determination module is configured to: Convert the resistance sampling AD value into a target resistance value; Input the target resistance value into the temperature determination model to obtain the target temperature value output by the temperature determination model.
[0012] Optionally, the temperature determination model is determined by the following method: Determining the temperature determination model according to the multiple sample resistance values corresponding to the temperature sensor, the sample temperature values corresponding to each of the sample resistance values, and a preset relationship model; the preset relationship model is used to characterize the corresponding relationship between resistance and temperature, and the preset relationship model includes at least one undetermined coefficient.
[0013] Optionally, determining the temperature determination model according to the multiple sample resistance values corresponding to the temperature sensor, the sample temperature values corresponding to each of the sample resistance values, and a preset relationship model includes: Determine the coefficient values of the undetermined coefficients according to the multiple sample resistance values and the sample temperature values corresponding to each of the sample resistance values; Substitute the coefficient values into the preset relationship model to obtain the temperature determination model.
[0014] Optionally, the preset relationship model includes the Steinhart-Hart model.
[0015] Optionally, the obtaining module is configured to: Obtain multiple sampled AD values of the temperature sensor; Use the sampled AD values other than the maximum value and the minimum value among the multiple sampled AD values as candidate sampled AD values; Use the average value of the candidate sampled AD values as the resistance sampled AD value.
[0016] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to: Obtain the resistance sampled AD value of the temperature sensor of the target device; Determine the target temperature value corresponding to the resistance sampled AD value according to the resistance sampled AD value and the temperature determination model; the temperature determination model is used to characterize the corresponding relationship between the resistance value and the temperature value of the temperature sensor.
[0017] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect of the embodiments of the present disclosure are implemented.
[0018] According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect of the embodiments of the present disclosure are implemented.
[0019] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: The present disclosure first obtains the resistance sampled AD value of the temperature sensor of the target device, and then determines the target temperature value corresponding to the resistance sampled AD value according to the resistance sampled AD value and the temperature determination model. Among them, the temperature determination model is used to characterize the corresponding relationship between the resistance value and the temperature value of the temperature sensor. Since the temperature determination model can more accurately characterize the corresponding relationship between the resistance value and the temperature value compared with the relationship table between the resistance value and the temperature value, the present disclosure can more accurately detect the temperature of the device by determining the temperature value of the target device through the temperature determination model.
[0020] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure.
[0022] Figure 1 is a flowchart of a method for determining a temperature shown according to an exemplary embodiment.
[0023] Figure 2 is a flowchart of another method for determining a temperature shown according to an exemplary embodiment.
[0024] Figure 3 is a block diagram of a device for determining a temperature shown according to an exemplary embodiment.
[0025] Figure 4 is a block diagram of an electronic device shown according to an exemplary embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0027] Before introducing a method, device, electronic device, storage medium, and program product for determining a temperature shown in the embodiments of the present disclosure, the application scenarios of the embodiments of the present disclosure will be introduced first.
[0028] In the related art, for the solution of detecting the internal temperature of a thermistor detection device, the technical solution of directly referring to the relationship table between resistance and temperature to determine the internal temperature of the device will cause a large error and cannot accurately detect the internal temperature of the device. To solve the error problem of such sensors, a method of segmented processing has been adopted in the research. The specific approach is to divide the temperature range into three temperature segments: high, medium, and low, and different processing methods are used for different temperature segments. For the high and low temperature segments, since these two temperature segments have a greater impact on the reading of the temperature sensor, they are further divided into multiple small segments to ensure that the temperature sampling accuracy reaches 0.1 degree. For the medium ambient temperature segment, the original value read by the sensor is maintained.
[0029] Although this method can control the temperature accuracy within 0.1 degrees, it has a significant problem. That is, the relationship table between the AD (Analog – Digital Conversion) sampling value and the temperature T is obtained through experiments, so it is not universal. For different devices, due to possible errors in hardware, the relationship between the AD sampling value and the temperature T will change, resulting in the original relationship table no longer being applicable to other devices. This means that although the segmented processing method improves the temperature sampling accuracy to a certain extent, it is still limited by hardware differences and cannot ensure accurate results on all devices.
[0030] In the embodiments of the present disclosure, the temperature value of the target device is determined through a temperature determination model. Since the temperature determination model can more accurately represent the corresponding relationship between the resistance value and the temperature value compared to the relationship table between the resistance value and the temperature value, the present disclosure can more accurately detect the temperature of the device.
[0031] The target device in the embodiments of the present disclosure may be a smart home device, such as: a refrigerator, an oven, an air conditioner, or it may also be a terminal device such as a smart phone, a tablet computer, a smart TV, a smart watch, a PDA (Personal Digital Assistant), a portable computer, etc. The present disclosure does not make specific limitations on the category of the target device.
[0032] Figure 1 is a flowchart of a method for determining temperature shown according to an exemplary embodiment. As Figure 1 shown, the method may include the following steps.
[0033] In step S101, obtain the resistance sampling AD value of the temperature sensor of the target device.
[0034] In some embodiments, the sampling AD value of the temperature sensor obtained in real time may be used as the resistance sampling AD value.
[0035] In other embodiments, multiple sampling AD values of the temperature sensor may be obtained, and the average value of the multiple sampling AD values may be used as the resistance sampling AD value.
[0036] In other embodiments, multiple sampling AD values of the temperature sensor may be obtained, and the average value of the sampling AD values except the maximum value and the minimum value among the multiple sampling AD values may be used as the resistance sampling AD value.
[0037] In step S102, according to the resistance sampling AD value and the temperature determination model, determine the target temperature value corresponding to the resistance sampling AD value. Among them, the temperature determination model is used to represent the corresponding relationship between the resistance value and the temperature value of the temperature sensor.
[0038] In some embodiments, step S102 can be implemented in the following manner: Convert the resistance sampling AD value into a target resistance value, and then input the target resistance value into the temperature determination model to obtain the target temperature value output by the temperature determination model.
[0039] Exemplarily, the temperature determination model can be determined according to the Steinhart-Hart equation, B-parameter equation, or exponential model of the thermistor, etc. The input of the temperature determination model can be the resistance value, and the output can be the temperature value. After obtaining the resistance sampling AD value, the resistance sampling AD value can be converted into a target resistance value, and then the target resistance value can be input into the temperature determination model to obtain the target temperature value output by the temperature determination model.
[0040] In some other embodiments, the temperature determination model can be determined in the following manner: Determine the temperature determination model according to the multiple sample resistance values corresponding to the temperature sensor, the sample temperature value corresponding to each sample resistance value, and the preset relationship model. Among them, the preset relationship model can be used to represent the corresponding relationship between resistance and temperature, and the preset relationship model can include at least one undetermined coefficient, and the undetermined coefficient can be related to the type, model, and temperature range of the thermistor.
[0041] Exemplarily, the preset relationship model can be the Steinhart-Hart equation shown in Formula 1, where A, B, and C are the undetermined coefficients of the preset relationship model.
[0042] (Formula 1) Among them, T is the temperature (unit: Kelvin), and R is the resistance at temperature T (unit: ohm).
[0043] The preset relationship model can also be the exponential model shown in Formula 2.
[0044] (Formula 2) Among them, R(T) is the resistance value at temperature T, and R 0 is the resistance value at the reference temperature T 0 (unit: Kelvin), and D is the undetermined coefficient.
[0045] In some other embodiments, multiple sample resistance values of the temperature sensor and the sample temperature value corresponding to each sample resistance value can be measured through experiments. The coefficient values of the undetermined coefficients can be determined according to the multiple sample resistance values and multiple sample temperature values, and then the coefficient values can be substituted into the preset relationship model to obtain the temperature determination model.
[0046] Taking the preset relationship model as the Steinhart-Hart equation as an example, the resistance-temperature relationship of the temperature sensor can be modeled through Matlab and the Steinhart-Hart equation, the values of the undetermined coefficients A, B, and C can be solved, and the values of the undetermined coefficients A, B, and C are substituted into the Steinhart-Hart equation to obtain the temperature determination model.
[0047] It should be noted that for each type of temperature sensor, multiple sample resistance values corresponding to the temperature sensor and sample temperature values corresponding to each sample resistance value can be measured through experiments respectively, and the temperature determination model corresponding to the temperature sensor can be determined according to the multiple sample resistance values, multiple sample temperature values, and the preset relationship model. Since the types, models, and temperature ranges of the thermistors of each type of temperature sensor are different, the temperature determination models corresponding to each type of temperature sensor may be different.
[0048] Figure 2 It is a flowchart of another method for determining temperature shown according to an exemplary embodiment. As Figure 2 shown, step S101 can be implemented through the following steps: Step S1011, obtain multiple sampling AD values of the temperature sensor.
[0049] Exemplarily, the temperature sensor can be sampled multiple times through the AD port of a controller such as the MCU or SOC (System on Chip) of the target device to obtain multiple sampling AD values of the temperature sensor.
[0050] Step S1012, use the sampling AD values other than the maximum AD value and the minimum AD value among the multiple sampling AD values as candidate sampling AD values.
[0051] Step S1013, use the average value of the candidate sampling AD values as the resistance sampling AD value.
[0052] Exemplarily, the multiple sampling AD values can be summed to obtain the total sampling AD value, then the maximum value and the minimum value among the multiple sampling AD values are subtracted from the total sampling AD value to obtain the candidate sampling AD values, and the average value of the candidate sampling AD values is used as the resistance sampling AD value. In this way, the influence of the sampling AD values with large errors among the multiple sampling AD values on the resistance sampling AD value can be avoided, and the accuracy of the resistance sampling AD value is improved.
[0053] Taking the number of multiple sampling AD values as N as an example, the resistance sampling AD value ADvalue can be calculated through formula 3.
[0054] (Formula 3) In summary, the present disclosure first obtains the resistance sampling AD value of the temperature sensor of the target device, and then determines a model based on the resistance sampling AD value and temperature, and determines the target temperature value corresponding to the resistance sampling AD value. Among them, the temperature determination model is used to characterize the corresponding relationship between the resistance value and the temperature value of the temperature sensor. Since the temperature determination model can more accurately characterize the corresponding relationship between the resistance value and the temperature value compared with the relationship table between the resistance value and the temperature value, the present disclosure can more accurately detect the temperature of the device by determining the temperature value of the target device through the temperature determination model.
[0055] Figure 3 is a block diagram of a temperature determination device shown according to an exemplary embodiment, as Figure 3 shown, the device 200 includes: An acquisition module 201, configured to acquire the resistance sampling AD value of the temperature sensor of the target device.
[0056] A determination module 202, configured to determine the target temperature value corresponding to the resistance sampling AD value according to the resistance sampling AD value and the temperature determination model. The temperature determination model is used to characterize the corresponding relationship between the resistance value and the temperature value of the temperature sensor.
[0057] In some embodiments, the determination module 202 is configured to: Convert the resistance sampling AD value into a target resistance value.
[0058] Input the target resistance value into the temperature determination model to obtain the target temperature value output by the temperature determination model.
[0059] In some other embodiments, the temperature determination model is determined in the following manner: According to a plurality of sample resistance values corresponding to the temperature sensor and the sample temperature value corresponding to each sample resistance value, and a preset relationship model, determine the temperature determination model. The preset relationship model is used to characterize the corresponding relationship between resistance and temperature, and the preset relationship model includes at least one undetermined coefficient.
[0060] In some other embodiments, determining the temperature determination model according to a plurality of sample resistance values corresponding to the temperature sensor and the sample temperature value corresponding to each sample resistance value, and a preset relationship model includes: Determine the coefficient value of the undetermined coefficient according to the plurality of sample resistance values and the sample temperature value corresponding to each sample resistance value.
[0061] Substitute the coefficient value into the preset relationship model to obtain the temperature determination model.
[0062] In some other embodiments, the preset relationship model includes the Steinhart-Hart model.
[0063] In some other embodiments, the obtaining module 201 is configured to: Obtain a plurality of sampled AD values of the temperature sensor.
[0064] Use the sampled AD values other than the maximum value and the minimum value among the plurality of sampled AD values as candidate sampled AD values.
[0065] Use the average value of the candidate sampled AD values as the resistance sampled AD value.
[0066] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0067] In summary, the present disclosure first obtains the resistance sampled AD value of the temperature sensor of the target device, and then determines a model based on the resistance sampled AD value and temperature to determine the target temperature value corresponding to the resistance sampled AD value. Among them, the temperature determination model is used to characterize the corresponding relationship between the resistance value and the temperature value of the temperature sensor. Since the temperature determination model can more accurately characterize the corresponding relationship between the resistance value and the temperature value compared to the relationship table between the resistance value and the temperature value, the present disclosure can more accurately detect the temperature of the device by determining the temperature value of the target device through the temperature determination model.
[0068] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the method for determining temperature provided by the present disclosure are implemented.
[0069] Figure 4 is a block diagram of an electronic device shown according to an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0070] Referring to Figure 4 , the electronic device 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input / output interface 312, a sensor component 314, and a communication component 316.
[0071] The processing component 302 generally controls the overall operation of the electronic device 300, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-described temperature determination method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0072] The memory 304 is configured to store various types of data to support the operation of the electronic device 300. Examples of such data include instructions for any application or method operating on the electronic device 300, contact data, phone book data, messages, pictures, videos, and the like. The memory 304 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0073] The power component 306 provides power to various components of the electronic device 300. The power component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 300.
[0074] The multimedia component 308 includes a screen that provides an output interface between the electronic device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the electronic device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each of the front camera and the rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0075] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 304 or transmitted via the communication component 316. In some embodiments, the audio component 310 further includes a speaker for outputting audio signals.
[0076] The input / output interface 312 provides an interface between the processing component 302 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0077] The sensor component 314 includes one or more sensors for providing status assessments of various aspects of the electronic device 300. For example, the sensor component 314 can detect the on / off state of the electronic device 300, the relative positioning of components, such as the display and keypad of the electronic device 300. The sensor component 314 can also detect a change in the position of the electronic device 300 or a component of the electronic device 300, the presence or absence of user contact with the electronic device 300, the orientation or acceleration / deceleration of the electronic device 300, and the temperature change of the electronic device 300. The sensor component 314 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 314 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 314 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0078] The communication component 316 is configured to facilitate communication between the electronic device 300 and other devices in a wired or wireless manner. The electronic device 300 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0079] In an exemplary embodiment, the electronic device 300 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described temperature determination method.
[0080] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the above instructions can be executed by a processor 320 of the electronic device 300 to complete the above-described temperature determination method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0081] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device, and the computer program has a code portion for performing the above-described temperature determination method when executed by the programmable device.
[0082] Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of both. Whether such a function is implemented by hardware or software depends on the specific application and the design requirements of the entire system. For each specific application, those skilled in the art can use various methods to implement the described function, but such implementation should not be construed as exceeding the scope of protection of the embodiments of the present application.
[0083] It should be understood that unless otherwise specifically stated, the features of some embodiments of the various disclosures described herein can be combined with each other. As used herein, the term "and / or" includes any one of the related listed items and any combination of any two or more of them; similarly, "at least one of..." includes any one of the related listed items and any combination of any two or more of them.
[0084] Although terms such as "first", "second", and "third" may be used herein to describe various components, parts, regions, layers, or sections, these components, parts, regions, layers, or sections are not limited to these terms. Instead, these terms are only used to distinguish one component, part, region, layer, or section from another. Thus, the first component, part, region, layer, or section mentioned in the examples described herein may also be referred to as the second component, part, region, layer, or section without departing from the teachings of the examples. Additionally, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description herein, the meaning of "a plurality of" is at least two, such as two, three, etc., unless otherwise specifically defined.
[0085] In addition, the word "exemplary" is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be construed as advantageous over other aspects or designs. Instead, the use of the word exemplary is intended to present concepts in a concrete fashion. As used herein, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to mean any of the natural inclusive permutations. That is, if X applies A; X applies B; or X applies both A and B, then "X applies A or B" is satisfied under any one of the foregoing instances. Additionally, unless otherwise specified or clear from the context that it is directed to the singular form, the articles "a" and "an" as used in this application and the appended claims are generally understood to mean "one or more".
[0086] Similarly, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. Specifically with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if not structurally equivalent to the disclosed structure. Additionally, although a particular feature of the present disclosure may have been disclosed with respect to only one of several implementations, such a feature may, as may be desired and advantageous for any given or particular application, be combined with one or more other features of other implementations. Further, with respect to the use of "comprising," "having," "including," "contains," or variations thereof in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term "including."
[0087] Other embodiments of the present disclosure will readily occur to those of ordinary skill in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are pointed out by the appended claims.
[0088] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes may be made without departing from its scope. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for determining temperature, characterized in that: include: Get the resistance sampling AD value of the temperature sensor of the target device; Determine a target temperature value corresponding to the resistance sampling AD value according to the resistance sampling AD value and a temperature determination model; The temperature determination model is used to characterize the corresponding relationship between the resistance value and the temperature value of the temperature sensor.
2. The method according to claim 1, characterized in that Determining the target temperature value corresponding to the resistance sampling AD value according to the resistance sampling AD value and the temperature determination model includes: Converting the resistance sampling AD value into a target resistance value; The target resistance value is input into the temperature determination model to obtain the target temperature value output by the temperature determination model.
3. The method according to claim 1, characterized in that The temperature determination model is determined in the following manner: Determining the temperature determination model according to a plurality of sample resistance values corresponding to the temperature sensor and a sample temperature value corresponding to each of the sample resistance values, and a preset relationship model; The preset relationship model is used to characterize the corresponding relationship between resistance and temperature, and the preset relationship model includes at least one undetermined coefficient.
4. The method according to claim 3, characterized in that: The determining the temperature determination model according to the plurality of sample resistance values corresponding to the temperature sensor and the sample temperature value corresponding to each of the sample resistance values, and a preset relationship model comprises: Determining a coefficient value of the undetermined coefficient according to the multiple sample resistance values and a sample temperature value corresponding to each of the sample resistance values; Substituting the coefficient value into the preset relationship model, the temperature determination model is obtained.
5. The method according to claim 3, characterized in that: The preset relationship model includes the Steinhart-Hart model.
6. The method according to any one of claims 1 to 5, characterized in that The step of obtaining the resistance sampling AD value of the temperature sensor of the target device includes: Acquire multiple sampled AD values of the temperature sensor; taking the sampled AD values other than the maximum value and the minimum value among the plurality of sampled AD values as candidate sampled AD values; The average value of the candidate sampled AD values is used as the resistance sampled AD value.
7. A device for determining temperature, characterized in that: include: An acquisition module is configured to acquire a resistance sampling AD value of a temperature sensor of a target device; A determination module, configured to determine a target temperature value corresponding to the resistance sampling AD value according to the resistance sampling AD value and a temperature determination model; The temperature determination model is used to characterize the corresponding relationship between the resistance value and the temperature value of the temperature sensor.
8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Get the resistance sampling AD value of the temperature sensor of the target device; Determine a target temperature value corresponding to the resistance sampling AD value according to the resistance sampling AD value and a temperature determination model; The temperature determination model is used to characterize the corresponding relationship between the resistance value and the temperature value of the temperature sensor.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.