Disclosure of Invention
Therefore, the invention aims to provide a temperature sensing bulb correction method, a temperature sensing bulb correction system and electric equipment, so as to solve the problem that in the prior art, when the resistance value of the temperature sensing bulb is abnormal, the measured temperature is inaccurate, and the equipment works abnormally.
According to a first aspect of an embodiment of the present invention, there is provided a bulb calibration method, including:
when detecting an instruction for entering a temperature sensing bulb correction mode, judging whether the temperature sensing bulb resistance value is abnormal and can be corrected at the current moment;
if the resistance value of the temperature sensing bulb at the current moment is abnormal and can be corrected, changing a mapping function between the resistance value of the temperature sensing bulb and the ambient temperature according to the deviation value of the reference temperature and the actually measured temperature of the current environment until the deviation value is in a preset change range;
the reference temperature is a temperature value input by a user or a temperature value obtained by other external temperature sensors; the measured temperature is a temperature value mapped by the resistance value of the temperature sensing bag through a mapping function.
Preferably, the determining whether the resistance value of the bulb at the current time is abnormal and correctable includes:
acquiring the resistance value of a temperature sensing bulb at the current moment and the reference temperature of the current environment;
mapping the temperature sensing bag resistance value at the current moment into the actual measurement temperature of the current environment through a mapping function between the temperature sensing bag resistance value defaulted by the system and the environment temperature;
Calculating the deviation value of the reference temperature and the measured temperature of the current environment;
if the deviation value is within a first preset variation range, judging that the resistance value of the temperature sensing bag at the current moment is normal;
if the deviation value is outside a second preset variation range, judging that the resistance value of the temperature sensing bag at the current moment is abnormal and can not be corrected; the second preset change range comprises the first preset change range;
If the deviation value is within the second preset variation range but is outside the first preset variation range, judging that the resistance value of the temperature sensing bulb at the current moment is abnormal and can be corrected.
Preferably, the method further comprises:
if the resistance value of the temperature sensing bulb at the current moment is abnormal and can not be corrected, the user is reminded of the abnormal temperature sensing bulb at the current moment, and the temperature sensing bulb can not be corrected and needs to be replaced.
Preferably, the method further comprises:
Acquiring a deviation rule of the measured temperature and the reference temperature of the temperature sensing bulb when the resistance value of the temperature sensing bulb is abnormal;
according to the deviation rule, mapping functions between the resistance values of a plurality of temperature sensing bags and the ambient temperature are established, and each mapping function corresponds to one deviation value;
pre-storing the established mapping functions into a factory database, and storing the mapping function with the deviation value of zero as a factory default mapping function.
Preferably, the method further comprises:
And when the one-key reduction operation is detected, restoring the mapping function to a factory default mapping function.
Preferably, the changing the mapping function between the resistance value of the temperature sensing bulb and the ambient temperature according to the deviation value between the reference temperature and the measured temperature of the current environment until the deviation value is within the preset variation range includes:
selecting a mapping function corresponding to the current deviation value from a plurality of pre-stored mapping functions according to the deviation value of the reference temperature and the actually measured temperature of the current environment;
calculating a deviation value between a reference temperature of the current environment and an actually measured temperature mapped by a selected mapping function, and judging whether the deviation value is in a preset variation range or not;
If the deviation value is within the preset variation range, ending correction;
And if the deviation value is not in the preset variation range, optimizing the adjustable parameters of the selected mapping function until the deviation value is in the preset variation range.
Preferably, the method further comprises:
And keeping the changed mapping function as a default mapping function of the system so as to enable the system to be used after the next startup and exit the temperature sensing bag correction mode.
According to a second aspect of an embodiment of the present invention, there is provided a bulb calibration system, comprising:
The judging module is used for judging whether the resistance value of the temperature sensing bulb at the current moment is abnormal and can be corrected when the instruction for entering the temperature sensing bulb correcting mode is detected;
The change module is used for changing a mapping function between the resistance value of the temperature sensing bulb and the ambient temperature according to the deviation value of the reference temperature and the actually measured temperature of the current environment if the resistance value of the temperature sensing bulb at the current moment is abnormal and can be corrected until the deviation value is in a preset change range;
the reference temperature is a temperature value input by a user or a temperature value obtained by other external temperature sensors; the measured temperature is a temperature value mapped by the resistance value of the temperature sensing bag through a mapping function.
According to a third aspect of an embodiment of the present invention, there is provided a powered device, including:
A processor and a memory, wherein program instructions are stored in the memory;
the processor is configured to execute the program instructions stored in the memory and perform the method described above.
Preferably, the electric equipment comprises:
Refrigerator, air conditioner and water heater
The technical scheme provided by the embodiment of the invention can comprise the following beneficial effects:
According to the technical scheme, when the temperature sensing bag resistance value is abnormal and can be corrected, the accurate actual measurement temperature is obtained by changing the mapping function between the temperature sensing bag resistance value and the environment temperature, so that the equipment working abnormality is avoided, the use is convenient, and the user experience degree is good.
In addition, remind the user to change when the temperature sensing package is uncorrectable, reduce the maintenance degree of difficulty and cost of maintenance.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Example 1
FIG. 1 is a flow chart illustrating a method of bulb calibration, as shown in FIG. 1, according to an exemplary embodiment, the method comprising:
Step S11, when a command for entering a temperature sensing bulb correction mode is detected, judging whether the temperature sensing bulb resistance value at the current moment is abnormal and can be corrected;
Step S12, if the resistance value of the temperature sensing bulb at the current moment is abnormal and can be corrected, changing a mapping function between the resistance value of the temperature sensing bulb and the ambient temperature according to the deviation value of the reference temperature and the actually measured temperature of the current environment until the deviation value is within a preset change range;
the reference temperature is a temperature value input by a user or a temperature value obtained by other external temperature sensors; the measured temperature is a temperature value mapped by the resistance value of the temperature sensing bag through a mapping function.
It should be noted that, the technical scheme provided in this embodiment is applicable to the electric equipment with temperature regulated by the temperature sensing bulb, for example: refrigerators, air conditioners, water heaters, and the like.
It can be appreciated that, when the temperature sensing bulb resistance is abnormal and can be corrected, the technical scheme provided by the embodiment is used for obtaining accurate actually measured temperature by changing the mapping function between the temperature sensing bulb resistance and the ambient temperature, so that the abnormal phenomenon of equipment operation is avoided, and the temperature sensing device is convenient to use and good in user experience.
In specific practice, the step S11 of "determining whether the resistance value of the bulb at the current time is abnormal and correctable" may include:
1. Acquiring the resistance value of a temperature sensing bulb at the current moment and the reference temperature of the current environment;
mapping the temperature sensing bag resistance value at the current moment into the actual measurement temperature of the current environment through a mapping function between the temperature sensing bag resistance value defaulted by the system and the environment temperature;
Calculating the deviation value of the reference temperature and the measured temperature of the current environment;
if the deviation value is within a first preset variation range, judging that the resistance value of the temperature sensing bag at the current moment is normal;
if the deviation value is outside a second preset variation range, judging that the resistance value of the temperature sensing bag at the current moment is abnormal and can not be corrected; the second preset change range comprises the first preset change range;
If the deviation value is within the second preset variation range but is outside the first preset variation range, judging that the resistance value of the temperature sensing bulb at the current moment is abnormal and can be corrected.
In specific practice, if the resistance value of the bulb at the current moment is abnormal and can not be corrected, the user is reminded of the abnormality of the bulb at the current moment, and the bulb can not be corrected, and the bulb needs to be replaced.
It should be noted that the "first preset variation range" is-1 ℃ to 1 ℃, and the "second preset variation range" is-10 ℃ to 10 ℃, and it is obvious that the second preset variation range includes the first preset variation range.
If the deviation value of the reference temperature and the actual temperature is within-1 ℃ to 1 ℃, the temperature sensing bulb resistance value at the current moment is judged to be normal. If the deviation value is outside-10 ℃, judging that the resistance value of the temperature sensing bulb at the current moment is abnormal and uncorrectable, reporting errors of equipment, and replacing the temperature sensing bulb is needed. If the deviation value is within-10 ℃ to 10 ℃ and is outside-1 ℃ to 1 ℃, the abnormal resistance value of the temperature sensing bulb at the current moment is judged and can be corrected. If the deviation value is equal to-10 ℃ or 10 ℃, the temperature sensing bag resistance value is abnormal and can be corrected, for example, the reference temperature in a summer room is 32 ℃, the actual measurement temperature is 25 ℃, and the deviation value is 7 ℃, and at the moment, the temperature sensing bag resistance value is abnormal and can be corrected.
It should be noted that, when the resistance value of the temperature sensing bulb of the equipment is abnormal, the temperature sensing is inaccurate, and the normal operation of the equipment is affected. For example, when the air conditioner heats, the reference indoor temperature is 15 ℃, the user sets the customized heating temperature to be 24 ℃, however, the temperature of the controller is 25 ℃ after the temperature of the temperature sensing bag is converted into an electric signal due to the abnormal temperature sensing bag resistance, at this time, the air conditioner system mistakenly considers that the indoor temperature is high enough, heating is stopped, and the air conditioner does not report a fault due to the fact that the temperature sensing bag still has a certain resistance. According to the technical scheme, the actually measured temperature of the temperature sensing bulb is corrected by adjusting the mapping function relation between the resistance value of the temperature sensing bulb and the ambient temperature.
2. In specific practice, the method further comprises:
Acquiring a deviation rule of the measured temperature and the reference temperature of the temperature sensing bulb when the resistance value of the temperature sensing bulb is abnormal;
according to the deviation rule, mapping functions between the resistance values of a plurality of temperature sensing bags and the ambient temperature are established, and each mapping function corresponds to one deviation value;
pre-storing the established mapping functions into a factory database, and storing the mapping function with the deviation value of zero as a factory default mapping function.
In specific practice, the method further comprises:
And when the one-key reduction operation is detected, restoring the mapping function to a factory default mapping function.
It should be noted that, the mapping function relationship between 21 temperature sensing bulb resistance values and actually measured temperatures is preset, the 21 functions are the change rules of the temperature characteristic curves according to big data analysis when the temperature sensing of the temperature sensing bulb is abnormal, and the 21 brand-new function relationships established by using the change rules are :f-10(x),f-9(x),f-8(x),f-7(x),f-6(x),f-5(x),f-4(x),f-3(x),f-2(x),f-1(x),f0(x),f1(x),f2(x),f3(x),f4(x),f5(x),f5(x),f7(x),f8(x),f9(x),f10(x); respectively, wherein f0 (x) is a factory default function, and the function is used when the temperature sensing bulb resistance values are normal and have no deviation.
It should be noted that, in order to avoid the problem that the user inputs a temperature value which is not the reference temperature and causes correction disorder when in the correction mode, the system also provides a one-key reduction operation, and after the operation is executed, the mapping relationship between the temperature sensing bag resistance value converted into an electric signal and the actually measured temperature is restored to the factory default function f0 (x).
In specific practice, the step S12 of "changing the mapping function between the resistance value of the temperature sensing bulb and the ambient temperature according to the deviation value between the reference temperature and the measured temperature of the current environment" until the deviation value is within the preset variation range may include:
selecting a mapping function corresponding to the current deviation value from a plurality of pre-stored mapping functions according to the deviation value of the reference temperature and the actually measured temperature of the current environment;
calculating a deviation value between a reference temperature of the current environment and an actually measured temperature mapped by a selected mapping function, and judging whether the deviation value is in a preset variation range or not;
If the deviation value is within the preset variation range, ending correction;
And if the deviation value is not in the preset variation range, optimizing the adjustable parameters of the selected mapping function until the deviation value is in the preset variation range.
In specific practice, the method further comprises:
And keeping the changed mapping function as a default mapping function of the system so as to enable the system to be used after the next startup and exit the temperature sensing bag correction mode.
When the deviation between the reference temperature and the measured temperature is-10 ℃, the system automatically switches to use f-10 (x) to convert the temperature sensing bag resistance value from the measured temperature, when the temperature deviation is-9 ℃, f-9 (x) is used to convert the temperature sensing bag resistance value from the measured temperature, and so on, and the mapping relation in the total 21 is selectable. Then, calculating the deviation value of the measured temperature and the reference temperature of the changed mapping function, and if the deviation value is within-1 ℃ to 1 ℃, finishing correction; if the temperature is outside-1 ℃, the adjustable parameters are optimized until the deviation is within-1 ℃, the changed mapping function is saved as the default mapping function of the system, the mapping function is used when the system is started next time, and then the temperature sensing correction mode is exited.
As can be seen from the foregoing discussion, there are various implementations of the technical solution of the present invention, and fig. 2 is a flowchart of a method for correcting a bulb according to another exemplary embodiment, and as shown in fig. 2, the method includes:
s21, entering a temperature sensing bulb correction mode according to a remote controller;
Step S22, manually inputting a reference temperature value of the current environment or acquiring the reference temperature through other external temperature sensors, acquiring the resistance value of a temperature sensing bulb and converting the resistance value into the actual measured temperature of the current environment;
s23, judging whether the temperature sensing bag is abnormal or not;
Step S24, if not, reminding a user that the temperature sensing bulb works normally; if yes, judging whether the resistance value of the temperature sensing bag is in a correctable range;
Step S25, if not, reminding a user that the temperature sensing bulb is abnormal, and replacing the temperature sensing bulb; if yes, changing a mapping function between the resistance value of the temperature sensing bag and the ambient temperature according to the deviation value of the reference temperature and the actually measured temperature of the current environment;
Step S26, judging whether the deviation value is in a first preset change range;
step S27, if yes, finishing correction; if not, the adjustable parameter of the selected function is adjusted, and step S26 is repeated until the deviation value is within the first preset variation range.
It is noted that when the resistance value of the temperature sensing bulb of the equipment is abnormal, the temperature sensing is inaccurate, and the normal operation of the equipment is affected. For example, when the air conditioner heats, the reference indoor temperature is 15 ℃, the user sets the customized heating temperature to be 24 ℃, however, because the resistance of the temperature sensing bag is abnormal, the corresponding measured temperature after the resistance of the temperature sensing bag is converted into an electric signal is 25 ℃, the air conditioner system can mistakenly consider that the indoor temperature is high enough, heating is stopped, and the air conditioner does not report a fault because the temperature sensing bag still has a certain resistance. The experience of the user is that the air conditioner cannot be heated, but the cause of the fault is difficult to find, and only the maintenance personnel can find the help.
Referring to fig. 2, when the situation occurs, the user may enter the temperature sensing bulb correction mode by operating the remote controller, manually input a reference temperature value of the current environment or obtain the reference temperature value through other external temperature sensors, the system synchronously obtains the resistance value of the temperature sensing bulb, converts the resistance value into an actually measured temperature value mapped by the electrical signal, compares the actually measured temperature value with the reference temperature value input by the user, and if the two values are within a first preset variation range, namely, the deviation is within-1 ℃ to 1 ℃, then the resistance value of the temperature sensing bulb at the current moment is judged to be normal, and the correction is finished. If the reference temperature value of the current environment input manually or through other external temperature sensors, the deviation between the reference temperature value and the actually measured temperature value exceeds the range of minus 10 ℃ to 10 ℃, correction work is not performed at this time, a user is reminded that the temperature sensing bulb is abnormal, correction is impossible, and the temperature sensing bulb needs to be replaced. If the deviation value is between-10 ℃ and is out of-1 ℃ and 1 ℃, the system determines that the deviation value is within a correctable range, the system converts the resistance value of the temperature sensing bag into an electric signal through adjustment and then has a function relation with the measured temperature value until the deviation range of the reference temperature value and the measured temperature value of the temperature sensing bag is within-1 ℃ to 1 ℃, and the correction is finished.
When the reference temperature is a, the resistance value of the temperature sensing bulb is a1 when no abnormality exists, and the resistance value is converted into an electrical signal value of a2; however, when the temperature sensing bag is abnormal, the resistance value of the temperature sensing bag is changed from a1 to b1 and is converted to an electric signal value b2, if the temperature sensing bag is changed to the electric signal value b according to the original mapping relation, the temperature judged by the system is not the actual temperature a but the temperature b, so that the temperature sensing is inaccurate, at the moment, the correction system can adaptively adjust the relation between other temperature points and the corresponding resistance value mapping electric signals, ensure that the deviation between the measured temperature value and the manually input reference temperature value is within the range of-1 ℃ to 1 ℃, so that even if the deviation occurs to the resistance value of the temperature sensing bag, a more accurate measured temperature value can be obtained, and the system can save the function relation between the measured temperature value and the electric signal after the temperature sensing bag resistance value is converted to the electric signal, and can be used in the next starting up to finish correction.
It should be noted that, when the air conditioning unit leaves the factory, 21 function relations are preset for the resistance value and the actually measured temperature of the temperature sensing bulb, the 21 functions are the change rules of the temperature characteristic curves according to the temperature sensing abnormality of the temperature sensing bulb, the change rules are utilized to establish 21 brand new function relations, namely f-10(x),f-9(x)…f0(x)…f9(x),f10 (x), wherein f0 (x) is a factory default function, and the function is used when the resistance value of the temperature sensing bulb is normal and has no deviation; when abnormality occurs in the bulb, for example: when the temperature deviation is at-10 ℃, the system automatically switches and uses f-10 (x) to convert the temperature sensing bag resistance value from the display temperature, when the temperature deviation is at-9 ℃, f-9 (x) is used to convert the temperature sensing bag resistance value from the measured temperature, and the mapping relation in 21 is selected. After the system selects the conversion function of the resistance value and the actually measured temperature of the temperature sensing bag, if the calculated actually measured temperature value of the temperature sensing bag and the manually input reference temperature value of the current environment or the reference temperature value obtained by other external temperature sensors is within-1 ℃ to 1 ℃, the correction is finished. If the deviation is larger than-1 ℃ to 1 ℃ and smaller than-10 ℃ to 10 ℃, gradually optimizing the adjustable partial parameters of the function, manually inputting the reference temperature value of the current environment or acquiring the reference temperature value by other external temperature sensors until the deviation value is within-1 ℃ to 1 ℃, and storing the reference temperature value in a system, wherein the adjustment is finished.
It should be noted that, in order to avoid the problem that the correction is disordered when the user inputs that the measured temperature value is not the actual temperature value in the correction mode, the system further provides a one-key reduction operation, and after the operation is performed, the mapping relationship between the temperature sensing bag resistance value converted into the electrical signal and the measured temperature value is restored to the factory default function f0 (x).
According to the technical scheme, when the resistance of the temperature sensing bulb is abnormal and can be corrected, the mapping function between the resistance of the temperature sensing bulb and the ambient temperature is changed, and the accurate measured temperature of the temperature sensing bulb can be obtained by adjusting the adjustable parameter of the mapping function, so that abnormal operation of equipment is avoided, a user is reminded to replace the temperature sensing bulb when the temperature sensing bulb is uncorrectable, the maintenance difficulty and the maintenance cost are reduced, and the technical scheme provided by the embodiment is convenient to use and good in user experience.
Example two
Fig. 3 is a diagram illustrating a bulb calibration system 300, as shown in fig. 3, according to an exemplary embodiment, including:
The detection module 301 is configured to determine whether the resistance of the bulb is abnormal and correctable at the current moment when an instruction to enter the bulb correction mode is detected;
The changing module 302 is configured to change a mapping function between the resistance value of the temperature sensing bulb and the ambient temperature according to a deviation value between the reference temperature and the actually measured temperature of the current environment if the resistance value of the temperature sensing bulb at the current time is abnormal and can be corrected, until the deviation value is within a preset variation range;
the reference temperature is a temperature value input by a user or a temperature value obtained by other external temperature sensors; the measured temperature is a temperature value mapped by the resistance value of the temperature sensing bag through a mapping function.
It should be noted that, the technical scheme provided in this embodiment is applicable to the electric equipment with temperature regulated by the temperature sensing bulb, for example: refrigerators, air conditioners, water heaters, and the like.
It can be appreciated that, in the technical solution provided in this embodiment, the detection module 301 detects that the temperature sensing bulb is in the correction mode, and determines whether the resistance value of the temperature sensing bulb is abnormal and can be corrected at the current moment, if so, the module 302 is changed according to the deviation value between the reference temperature and the actually measured temperature, and the mapping function between the resistance value of the temperature sensing bulb and the ambient temperature is changed until the deviation value is within the preset variation range.
In addition, remind the user to change when the temperature sensing package is uncorrectable, reduce the maintenance degree of difficulty and cost of maintenance.
Example III
There is provided a powered device comprising:
A processor and a memory, wherein program instructions are stored in the memory;
the processor is configured to execute the program instructions stored in the memory and perform the method as described above.
Wherein, the consumer includes:
refrigerator, air conditioner, water heater.
It should be noted that, the technical scheme provided in this embodiment is applicable to the electric equipment with temperature regulated by the temperature sensing bulb, for example: refrigerators, air conditioners, water heaters, and the like.
It should be noted that, the implementation manner and the beneficial effects of each module in the embodiment may refer to the description of the related steps in the first embodiment, and the embodiment is not repeated.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "plurality" means at least two.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.