Heating device control method and apparatus, electronic device, and storage medium

CN122373185BActive Publication Date: 2026-09-15GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202610832889.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-06-10
Publication Date
2026-09-15
Estimated Expiration
2046-06-10

AI Technical Summary

Technical Problem

[0003]当磁性下降到一定程度时,磁吸旋钮与加热设备的设备面板之间的吸附力便会减弱,用户在旋转旋钮进行操作时,就可能出现旋钮打滑、档位指示不精准或信号传递失灵等问题

Benefits of technology

[0033]Therefore, considering that when a user rotates the magnetic knob deployed on the heating device, the magnetic field of the magnetic knob changes, causing a corresponding change in the Hall output voltage corresponding to the magnetic knob; and that when the magnetic knob is in a high-temperature environment for a long time, the magnetism of the magnetic knob may decrease, causing the detected Hall output voltage to be inconsistent with the theoretical Hall output voltage corresponding to the rotation angle; therefore, the magnetic field data is used to quantify the magnetism of the magnetic knob, so that the magnetic field data and the detected Hall output voltage are used together as the basis for generating the rotation angle of the magnetic knob. This allows the factor of the decrease in the magnetism of the magnetic knob to participate in the decision-making of generating the rotation angle, improving the accuracy of the rotation angle generation. Since the rotation angle is the basis for the control of the heating device, it further improves the control accuracy of the heating device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122373185B_ABST
    Figure CN122373185B_ABST
Patent Text Reader

Abstract

The application relates to a heating equipment control method and device, electronic equipment and a storage medium. The method comprises the following steps: in response to an operation of heating equipment, detecting magnetic field data of a magnetic field where a magnetic knob arranged on the heating equipment is located and detecting a Hall output voltage; generating a rotation angle of the magnetic knob according to a magnetic state of the magnetic field where the magnetic knob is located, which is represented by the magnetic field data, and the detected Hall output voltage; and performing heating control on the heating equipment according to the rotation angle. The method can improve the control accuracy of the heating equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of device control technology, and in particular to a heating equipment control method, apparatus, electronic device and storage medium. Background Technology

[0002] Most heating devices commonly used in the market, such as household gas stoves, storage water heaters, and countertop electric ovens, are equipped with magnetic knobs that rely on magnetic attraction for fixation. These devices typically need to operate in high-temperature environments for extended periods, and the magnets used inside the knobs are mostly low-cost ferrite magnets. Ferrite magnets have a significant physical characteristic: under continuous high temperatures, their internal magnetism gradually weakens.

[0003] When the magnetism weakens to a certain level, the attraction between the magnetic knob and the heating device's panel will decrease. This can lead to problems such as knob slippage, inaccurate gear indication, or signal transmission failure when the user rotates the knob. Consequently, the heating device struggles to accurately recognize and execute user commands, resulting in deviations in the control of heating power, temperature, or time, thus reducing the overall accuracy of the heating device. Summary of the Invention

[0004] Therefore, it is necessary to provide a heating equipment control method, apparatus, electronic device, computer-readable storage medium, and computer program product that can improve the control accuracy of heating equipment in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a method for controlling a heating device. The method includes:

[0006] In response to operation of the heating device, the magnetic field data of the magnetic knob deployed on the heating device and the Hall output voltage are detected;

[0007] The rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field represented by the magnetic field data and the detected Hall output voltage.

[0008] The heating device is controlled to heat according to the rotation angle.

[0009] In one embodiment, generating the rotation angle of the magnetic knob based on the magnetic state of the magnetic field where the magnetic knob is located, as characterized by the magnetic field data, and the detected Hall output voltage includes: converting the magnetic field strength in the magnetic field data into a digital voltage signal to obtain a magnetic field voltage; and generating the rotation angle of the magnetic knob based on the magnetic state of the magnetic field where the magnetic knob is located, as jointly characterized by the number of magnetic pole pairs in the magnetic field data and the magnetic field voltage, and the detected Hall output voltage.

[0010] In one embodiment, the step of determining the magnetic state of the magnetic field where the magnetic knob is located based on the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, and the step of detecting the Hall output voltage to generate the rotation angle of the magnetic knob, includes: detecting the change in rotation angle when the Hall output voltage corresponding to the magnetic knob changes based on the number of magnetic pole pairs and the magnetic field voltage, and obtaining rotation change angle information; and generating the rotation angle of the magnetic knob based on the detected Hall output voltage and the rotation change angle information.

[0011] In one embodiment, the step of detecting the rotation angle change when the Hall output voltage corresponding to the magnetic knob changes based on the number of magnetic pole pairs and the magnetic field voltage to obtain rotation angle information includes: detecting the total rotation angle change when the Hall output voltage corresponding to the magnetic knob completes one cycle based on the number of magnetic pole pairs to obtain the cycle rotation angle change amount; detecting the cycle voltage change amount when the Hall output voltage corresponding to the magnetic knob changes based on the magnetic field voltage; dividing the voltage into multiple cycle node voltages within one cycle according to the cycle voltage change amount and the bias voltage in the magnetic field data; and assigning corresponding cycle node rotation angles to the multiple cycle node voltages in each cycle based on the cycle rotation angle change amount to obtain rotation angle information.

[0012] In one embodiment, generating the rotation angle of the magnetic knob based on the detected Hall output voltage and the rotation change angle information includes: acquiring the historical Hall output voltage during the operation time of the heating device corresponding to the operation; matching the historical Hall output voltage with the detected Hall output voltage to obtain a matching result; and generating the rotation angle of the magnetic knob based on the matching result and the rotation change angle information.

[0013] In one embodiment, the step of determining the magnetic state of the magnetic field where the magnetic knob is located based on the number of magnetic pole pairs in the magnetic field data and the magnetic field voltage, and the step of detecting the Hall output voltage to generate the rotation angle of the magnetic knob, includes: acquiring a pre-constructed triangular geometric relationship, wherein the triangular geometric relationship is constructed from the number of magnetic pole pairs, the magnetic field voltage, the bias voltage in the magnetic field data, and the rotation angle of the magnetic knob; and generating the rotation angle of the magnetic knob based on the triangular geometric relationship.

[0014] In one embodiment, the step of converting the magnetic field strength in the magnetic field data into a digital voltage signal to obtain a magnetic field voltage includes: determining the magnetic field detection sensitivity corresponding to the magnetic knob; and fusing the magnetic field detection sensitivity with the magnetic field strength in the magnetic field data to obtain a magnetic field voltage.

[0015] In one embodiment, controlling the heating device according to the rotation angle includes: obtaining the rotation control type corresponding to the magnetic knob; and controlling the heating device according to the rotation control type and the rotation angle.

[0016] Secondly, this application also provides a heating equipment control device. The device includes:

[0017] The detection module is used to detect magnetic field data of the magnetic field of the magnetic knob deployed on the heating device and detect Hall output voltage in response to operation of the heating device;

[0018] The generation module is used to generate the rotation angle of the magnetic knob based on the magnetic state of the magnetic field represented by the magnetic field data and the detected Hall output voltage.

[0019] The control module is used to control the heating of the heating device according to the rotation angle.

[0020] Thirdly, this application also provides an electronic device. The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0021] In response to operation of the heating device, the magnetic field data of the magnetic knob deployed on the heating device and the Hall output voltage are detected;

[0022] The rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field represented by the magnetic field data and the detected Hall output voltage.

[0023] The heating device is controlled to heat according to the rotation angle.

[0024] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0025] In response to operation of the heating device, the magnetic field data of the magnetic knob deployed on the heating device and the Hall output voltage are detected;

[0026] The rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field represented by the magnetic field data and the detected Hall output voltage.

[0027] The heating device is controlled to heat according to the rotation angle.

[0028] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0029] In response to operation of the heating device, the magnetic field data of the magnetic knob deployed on the heating device and the Hall output voltage are detected;

[0030] The rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field represented by the magnetic field data and the detected Hall output voltage.

[0031] The heating device is controlled to heat according to the rotation angle.

[0032] The aforementioned heating device control method, apparatus, electronic device, and storage medium, in response to an operation on the heating device, detect magnetic field data of the magnetic field where the magnetic knob deployed on the heating device is located and detect Hall output voltage; generate a rotation angle of the magnetic knob based on the magnetic state of the magnetic field where the magnetic knob is located as characterized by the magnetic field data and the detected Hall output voltage; and perform heating control on the heating device based on the rotation angle.

[0033] Therefore, considering that when a user rotates the magnetic knob deployed on the heating device, the magnetic field of the magnetic knob changes, causing a corresponding change in the Hall output voltage corresponding to the magnetic knob; and that when the magnetic knob is in a high-temperature environment for a long time, the magnetism of the magnetic knob may decrease, causing the detected Hall output voltage to be inconsistent with the theoretical Hall output voltage corresponding to the rotation angle; therefore, the magnetic field data is used to quantify the magnetism of the magnetic knob, so that the magnetic field data and the detected Hall output voltage are used together as the basis for generating the rotation angle of the magnetic knob. This allows the factor of the decrease in the magnetism of the magnetic knob to participate in the decision-making of generating the rotation angle, improving the accuracy of the rotation angle generation. Since the rotation angle is the basis for the control of the heating device, it further improves the control accuracy of the heating device. Attached Figure Description

[0034] Figure 1 This is a schematic diagram illustrating an application scenario of the heating device control method in one embodiment;

[0035] Figure 2 This is a flowchart illustrating a heating device control method in one embodiment;

[0036] Figure 3 This is a flowchart illustrating the steps of detecting the Hall output voltage and generating the rotation angle of the magnetic knob, as described in one embodiment, to determine the magnetic state of the magnetic field where the magnetic knob is located based on the number of magnetic pole pairs in the magnetic field data and the magnetic field voltage.

[0037] Figure 4 This is a flowchart illustrating the steps of detecting the Hall output voltage and generating the rotation angle of the magnetic knob, as described in another embodiment, based on the magnetic state of the magnetic field where the magnetic knob is located, which is characterized by the number of magnetic pole pairs in the magnetic field data and the magnetic field voltage.

[0038] Figure 5 This is a schematic diagram of triangles used to construct triangular geometric relationships in one embodiment;

[0039] Figure 6 This is a schematic flowchart illustrating the steps of a method for controlling the heating of a heating device based on the rotation angle in one embodiment.

[0040] Figure 7 This is a structural block diagram of the heating equipment control device in one embodiment;

[0041] Figure 8 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0043] The heating equipment control method provided in this application embodiment can be applied to, for example... Figure 1 In the application scenario shown, the heating device 102 and the detection sensor assembly 104 communicate with the server 106. The detection sensor assembly 104 includes a magnetic field detection sensor and a Hall sensor. The detection sensor assembly 104 is placed in the area where the magnetic knob is deployed on the heating device 102. The magnetic field detection sensor is used to detect the magnetic field data of the magnetic field where the magnetic knob is located, and the Hall sensor is used to detect the Hall output voltage of the magnetic field where the magnetic knob is located. The data storage system can store the data that the server 106 needs to process. In response to the operation on the heating device 102, the server 106 obtains the magnetic field data and the Hall output voltage of the magnetic field where the magnetic knob is deployed on the heating device 102, which are detected by the detection sensor assembly 104. Based on the magnetic state of the magnetic field where the magnetic knob is located, represented by the magnetic field data, and the Hall output voltage, the rotation angle of the magnetic knob is generated. Based on the rotation angle, the heating device 102 is heated.

[0044] As one embodiment, the heating device control method provided in this application can also be applied in the following scenarios: the main control component of the heating device communicates with a magnetic field detection sensor and a Hall sensor, respectively. In response to operations on the heating device, the main control component acquires magnetic field data of the magnetic field where the magnetic knob is located on the heating device, detected by the detection sensor assembly, and detects the Hall output voltage; based on the magnetic state of the magnetic field where the magnetic knob is located, as characterized by the magnetic field data, and the Hall output voltage, it generates the rotation angle of the magnetic knob; and based on the rotation angle, it performs heating control on the heating device.

[0045] It is understandable that there are many types of common heating devices, including but not limited to common household appliances such as stovetops, water heaters, and electric ovens. Taking the stovetop as a specific example, magnetic knobs are usually deployed on the surface of the support platform of the stovetop for adjusting the heat or turning it on / off. To achieve accurate detection, a magnetic field sensor can be installed below the support platform in the area directly opposite the magnetic knob, while a Hall effect sensor is placed above the support platform of the stovetop, also directly opposite the magnetic knob, thus achieving coordinated magnetic field sensing and detection from both above and below.

[0046] This ensures that the Hall output voltage and magnetic field strength corresponding to the magnetic knob can be accurately detected.

[0047] In one embodiment, such as Figure 2As shown, a heating device control method is provided, which is applied to Figure 1 Taking server 106 as an example, the explanation includes the following steps:

[0048] Step 202, in response to operation of the heating device, detect the magnetic field data of the magnetic field of the magnetic knob deployed on the heating device and detect the Hall output voltage.

[0049] The operation in step 202 can be a heating control operation, which is a rotation operation of the magnetic knob; the magnetic field data includes at least one of bias voltage, magnetic field strength and number of magnetic pole pairs.

[0050] It should be noted that the magnetic field strength and the Hall output voltage change with the use of the magnetic knob. Therefore, the magnetic field strength and Hall output voltage need to be detected each time an operation is performed on the heating device. However, the number of pole pairs and the bias voltage are inherent and unchanging characteristics corresponding to the motor of the magnetic knob. Therefore, the number of pole pairs and the bias voltage only need to be detected once in all control processes.

[0051] As one embodiment, detecting the magnetic field data of the magnetic field where the magnetic knob deployed on the heating device is located includes: detecting the magnetic field strength of the magnetic field where the magnetic knob deployed on the heating device is located by a magnetic field detection sensor.

[0052] As another embodiment, detecting the magnetic field data of the magnetic field of the magnetic knob deployed on the heating device includes: querying the number of magnetic pole pairs of the magnetic knob based on the knob information of the magnetic knob.

[0053] As another embodiment, detecting the magnetic field data of the magnetic field where the magnetic knob deployed on the heating device is located includes: querying the bias voltage of the magnetic knob based on the knob information of the magnetic knob.

[0054] The knob information is used to represent at least one of the knob model and knob type; the query object can be a preset configuration file, which includes the correspondence between preset device information and preset bias voltage or preset number of magnetic pole pairs; the query object can also be the Internet.

[0055] As one embodiment, detecting the Hall output voltage of the magnetic field of the magnetic knob deployed on the heating device includes: detecting the Hall output voltage of the magnetic field of the magnetic knob deployed on the heating device by a Hall sensor.

[0056] Step 204: Based on the magnetic state of the magnetic field where the magnetic knob is located, as characterized by the magnetic field data, and the detected Hall output voltage, generate the rotation angle of the magnetic knob.

[0057] In step 204, the rotation angle is the rotation angle of the magnetic knob at real time.

[0058] Among them, the rotation angle is inversely correlated with the number of magnetic pole pairs, positively correlated with the magnetic field strength, and inversely correlated with the detected Hall output voltage.

[0059] As an embodiment, step 204 includes: based on the magnetic state of the magnetic field where the magnetic knob is located, as characterized by the magnetic field data, detecting the change in rotation angle when the Hall output voltage corresponding to the magnetic knob changes, and obtaining rotation angle information; and generating the rotation angle of the magnetic knob based on the rotation angle information and the detected Hall output voltage.

[0060] In another embodiment, step 204 includes: acquiring a pre-constructed triangular geometry, wherein the triangular geometry is constructed from magnetic field data, the rotation angle of the magnetic knob, and the detected Hall output voltage; and generating the rotation angle of the magnetic knob based on the triangular geometry.

[0061] In another embodiment, step 204 includes: generating a first parameter based on the number of magnetic pole pairs in the magnetic field data, wherein the first parameter is inversely correlated with the number of magnetic pole pairs; generating a second parameter based on the magnetic field strength in the magnetic field data, wherein the second parameter is positively correlated with the magnetic field strength; generating a third parameter based on the detected Hall output voltage, wherein the third parameter is inversely correlated with the detected Hall output voltage; and fusing the first parameter, the second parameter, and the third parameter to obtain the rotation angle.

[0062] As another embodiment, step 204 includes: determining the product between the number of magnetic pole pairs and the detected Hall output voltage as the divisor, determining the number of magnetic pole pairs as the dividend, and determining the quotient between the divisor and the dividend as the rotation angle.

[0063] As an embodiment, step 204 includes: converting the magnetic field strength in the magnetic field data into a digital voltage signal to obtain a magnetic field voltage; generating the rotation angle of the magnetic knob based on the magnetic state of the magnetic field characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, and detecting the Hall output voltage.

[0064] Among them, the magnetic field voltage is used to characterize the degree of magnetism loss of the magnetic knob. Specifically, the degree of magnetism loss of the magnetic knob is inversely correlated with the magnetic field voltage.

[0065] As one embodiment, the magnetic field strength in the magnetic field data is converted into a digital voltage signal to obtain a magnetic field voltage, including: determining the magnetic field detection sensitivity corresponding to the magnetic knob; and fusing the magnetic field detection sensitivity with the magnetic field strength in the magnetic field data to obtain a magnetic field voltage.

[0066] Further, determining the magnetic field detection sensitivity corresponding to the magnetic knob includes: determining the sensor detection sensitivity corresponding to the magnetic field detection sensor as the magnetic field detection sensitivity corresponding to the magnetic knob.

[0067] As one embodiment, fusing the magnetic field detection sensitivity with the magnetic field strength in the magnetic field data to obtain the magnetic field voltage includes: determining the magnetic field voltage as the product of the magnetic field detection sensitivity and the magnetic field strength in the magnetic field data.

[0068] As one embodiment, the rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, and by detecting the Hall output voltage. This includes: detecting the change in rotation angle when the Hall output voltage corresponding to the magnetic knob changes, based on the magnetic state of the magnetic field characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, to obtain rotation change angle information; and generating the rotation angle of the magnetic knob based on the rotation change angle information and the detected Hall output voltage.

[0069] As another embodiment, the magnetic state of the magnetic field where the magnetic knob is located is characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, and the rotation angle of the magnetic knob is generated by detecting the Hall output voltage. This includes: obtaining a pre-constructed triangular geometric relationship, wherein the triangular geometric relationship is constructed by the number of magnetic pole pairs, the magnetic field voltage, the rotation angle of the magnetic knob and the detected Hall output voltage; and generating the rotation angle of the magnetic knob according to the triangular geometric relationship.

[0070] Step 206: Control the heating of the heating device according to the rotation angle.

[0071] As one embodiment, step 206 includes: matching the target heating parameters corresponding to the heating device according to the rotation angle; and controlling the heating device according to the target heating parameters.

[0072] In another embodiment, step 206 includes: adjusting the current heating parameters corresponding to the heating device according to the rotation angle to obtain the target heating parameters, and controlling the heating device according to the target heating parameters.

[0073] Among them, the heating parameter can be the heating power.

[0074] In this embodiment, in response to an operation on the heating device, the magnetic field data of the magnetic field where the magnetic knob is located and the Hall output voltage are detected are measured. Based on the magnetic state of the magnetic field represented by the magnetic field data and the Hall output voltage, the rotation angle of the magnetic knob is generated. The heating device is then controlled based on the rotation angle. Considering that the magnetic field of the magnetic knob changes when the user rotates it, causing a corresponding change in the Hall output voltage, and that the magnetic knob's magnetism may decrease when it is in a high-temperature environment for a long time, resulting in a discrepancy between the detected Hall output voltage and the theoretical Hall output voltage corresponding to the rotation angle, the magnetic field data is used to quantify the magnetism of the magnetic knob. This allows both the magnetic field voltage and the detected Hall output voltage to be used as the basis for generating the rotation angle. This incorporates the factor of magnetism reduction into the rotation angle generation decision, improving the accuracy of the generated rotation angle. Since the rotation angle is the basis for controlling the heating device, this further improves the control accuracy of the heating device.

[0075] In one embodiment, such as Figure 3 As shown, a method for generating the rotation angle of a magnetic knob is provided. In this method, the rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field where the magnetic knob is located, characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, and by detecting the Hall output voltage. The method includes:

[0076] Step 302: Based on the number of magnetic pole pairs and the magnetic field voltage, detect the change in rotation angle when the Hall output voltage corresponding to the magnetic knob changes, and obtain the rotation angle information.

[0077] For example, step 302 includes: detecting the total change in rotation angle when the Hall output voltage corresponding to the magnetic knob completes one cycle according to the number of magnetic pole pairs, and obtaining the cycle rotation angle change; detecting the cycle voltage change when the Hall output voltage corresponding to the magnetic knob changes according to the magnetic field voltage; dividing the voltage into multiple cycle nodes within one cycle according to the peak value of the cycle voltage change and the bias voltage in the magnetic field data; and assigning corresponding cycle node rotation angles to the multiple cycle node voltages in each cycle according to the cycle rotation angle change, and obtaining rotation change angle information.

[0078] The periodic rotation angle change can refer to the change in rotation angle within one cycle, or it can represent the change in rotation angle between adjacent nodes within one cycle. This case study uses the periodic rotation angle change as the change in rotation angle between adjacent nodes within one cycle as an example. Specifically, the periodic rotation angle change (Δθ) can be calculated using the formula Δθ = 2π / (n * m), where m is the number of nodes within the cycle and n is the number of magnetic pole pairs. This formula clearly shows that the periodic rotation angle change is negatively correlated with the number of magnetic pole pairs; that is, the more magnetic pole pairs, the smaller the periodic rotation angle change.

[0079] Furthermore, based on the number of magnetic pole pairs, the total rotation angle change when the Hall output voltage corresponding to the magnetic knob completes one cycle is detected, and the cycle rotation angle change is obtained, including: determining the ratio between 2π and the number of magnetic pole pairs as the total rotation angle change when the Hall output voltage corresponding to the magnetic knob completes one cycle, that is, the cycle rotation angle change.

[0080] Among them, the periodic voltage change is positively correlated with the magnetic field voltage.

[0081] Furthermore, based on the magnetic field voltage, the periodic voltage change when the Hall output voltage corresponding to the magnetic knob changes is detected, including: determining the magnetic field voltage as the periodic voltage change when the Hall output voltage corresponding to the magnetic knob changes.

[0082] Understandably, during rotation, the output voltage generated by the Hall sensor will exhibit periodic changes over time. This pattern resembles the waveform of a cosine function, displaying smooth fluctuations. For example, within a complete cycle, the output voltage values ​​are successively 2.5V, 1.5V, and 0.5V, before rising back to 1.5V, thus completing one cycle. This sequence visually demonstrates that the output voltage exhibits a cosine-like distribution with respect to angle or time.

[0083] As one embodiment, according to the change in periodic rotation angle and the bias voltage in the magnetic field data, multiple periodic node voltages within a period are divided, including: the multiple periodic node voltages include a first voltage, a second voltage, a third voltage, and a fourth voltage arranged in sequence; the sum of the bias voltage in the magnetic field data and the change in periodic rotation angle is determined as the first voltage, the bias voltage in the magnetic field data is determined as the second voltage and the fourth voltage, and the difference between the bias voltage in the magnetic field data and the change in periodic rotation angle is determined as the second voltage.

[0084] As one embodiment, based on the change in the periodic rotation angle, a corresponding periodic node rotation angle is assigned to the voltage of multiple periodic nodes in each period to obtain rotation change angle information, including: the rotation change angle information includes the rotation angle corresponding to each voltage in each period; 0 degrees is determined as the first voltage in the first period, and for other voltages, the sum of the rotation angle corresponding to the voltage in the previous time sequence and the change in the periodic rotation angle is determined as the rotation angle corresponding to that voltage.

[0085] For example, within a complete measurement cycle, the voltage sequence output by the Hall sensor can be represented as (2.5, 1.5, 0.5, 1.5). It is known that the corresponding rotation angle change in each cycle is 5 degrees, and the starting reference point of the first measurement cycle is defined as a rotation angle of 0 degrees. Therefore, in the first cycle, the voltage value of 2.5V corresponds to a rotation angle of 0 degrees, the first 1.5V corresponds to a rotation angle of 5 degrees, the next 0.5V corresponds to a rotation angle of 10 degrees, and the second 1.5V in the same cycle corresponds to a rotation angle of 15 degrees. Entering the second measurement cycle, the next 2.5V corresponds to a rotation angle of 20 degrees. The voltage and angle correspondences in subsequent cycles follow this pattern, forming a periodic mapping.

[0086] Step 304: Based on the detected Hall output voltage and rotation change angle information, generate the rotation angle of the magnetic knob.

[0087] For example, step 304 includes: acquiring the historical Hall output voltage during the operation time of the heating device corresponding to the operation; matching the historical Hall output voltage with the detected Hall output voltage to obtain a matching result; and generating the rotation angle of the magnetic knob based on the matching result and the rotation change angle information.

[0088] It is understandable that, since this case should involve generating and judging the rotation angle and controlling the heating device every time the user rotates the magnetic knob, the heating device operation time at this time refers to the time period from the moment the user starts rotating the magnetic knob to the current moment.

[0089] As one embodiment, matching the historical Hall output voltage with the detected Hall output voltage to obtain a matching result includes: determining the number of voltages in the historical Hall output voltage that match the value of the detected Hall output voltage, and determining the number of voltages as the matching result.

[0090] As another embodiment, the historical Hall output voltage is matched with the detected Hall output voltage to obtain a matching result, including: if there is no target voltage in the historical Hall output voltage that matches the detected Hall output voltage, then the absence of matching voltage information is determined as the matching result; if there is a target voltage in the historical Hall output voltage that matches the detected Hall output voltage, then the voltage that is latest in time in the target voltage is determined as the matching result.

[0091] As one embodiment, generating the rotation angle of the magnetic knob based on the matching result and rotation change angle information includes: identifying the cycle to which the detected Hall output voltage belongs according to the number of voltages represented by the matching result, and generating the rotation angle of the magnetic knob based on the cycle to which the detected Hall output voltage belongs and the detected Hall output voltage.

[0092] As one embodiment, identifying the period to which the detected Hall output voltage belongs according to the number of voltages represented by the matching result includes: when the detected Hall output voltage is inconsistent with the bias voltage, adding 1 to the number of voltages represented by the matching result to determine the period to which the detected Hall output voltage belongs; when the detected Hall output voltage is consistent with the bias voltage, if the number of voltages represented by the matching result is a positive even number, then half of the number of voltages represented by the matching result is determined as the period to which the detected Hall output voltage belongs; if the number of voltages represented by the matching result is not even, then half of the number of voltages represented by the matching result plus 1 is determined as the period to which the detected Hall output voltage belongs; if the number of voltages represented by the matching result is 0, then the first period is determined as the period to which the detected Hall output voltage belongs.

[0093] For example, the Hall output voltage in one cycle is as follows: (2.5, 1.5, 0.5, 1.5). The rotation angle change is 5. When the detected Hall output voltage is 2.5V or 0.5V, if the number of voltages represented by the matching result is 0, it means the user has just started rotating the magnetic knob. At this time, the cycle to which the detected Hall output voltage belongs is the first cycle. If the number of voltages represented by the matching result is 1, it means the user has rotated the magnetic knob, causing the Hall output voltage to change for one cycle. Therefore, the cycle to which the detected Hall output voltage belongs is the second cycle. When the detected Hall output voltage is 1.5V, if the number of voltages represented by the matching result is even, it means the detected Hall output voltage is the first in its cycle. If the number of voltages represented by the matching result is odd, it means the detected Hall output voltage is the second in its cycle. Therefore, if the number of voltages represented by the matching result is 1, the detected Hall output voltage belongs to the first cycle and is the second in the first cycle. If the number of voltages represented by the matching result is 2, the detected Hall output voltage belongs to the second cycle and is the first in the second cycle.

[0094] As another embodiment, the rotation angle of the magnetic knob is generated based on the matching result and the rotation change angle information, including: when the matching result indicates that there is no matching voltage information, the rotation angle of the magnetic knob is obtained by querying the rotation change angle information corresponding to the first cycle according to the detected Hall output voltage; when the matching result indicates that there is matching voltage information, the rotation angle corresponding to the latest voltage in the target voltage time sequence is obtained by querying the rotation change angle information according to the matching result; and the rotation angle corresponding to the latest voltage in the target voltage time sequence is adjusted according to the interval information corresponding to the latest voltage in the target voltage time sequence and the detected Hall output voltage to obtain the rotation angle of the magnetic knob.

[0095] For example, if the matching result indicates that there is no matching voltage information, it means that the period to which the detected Hall output voltage belongs is the first period, and it is not the second of the same voltages within the first period. In this case, the rotation angle within the first period can be directly queried according to the detected Hall output voltage. If the matching result indicates that there is no matching voltage information, it means that the period to which the detected Hall output voltage belongs can be any period. Therefore, the rotation angle corresponding to the matching voltage information needs to be used as a basis to generate the rotation angle of the magnetic knob.

[0096] As one embodiment, according to the interval information corresponding to the latest voltage in the target voltage time sequence and the detected Hall output voltage, the rotation angle corresponding to the latest voltage in the target voltage time sequence is adjusted to obtain the rotation angle of the magnetic knob. The interval information includes the number of interval voltages. The product of the sum of 1 and the number of interval voltages and the change in the periodic rotation angle is determined as the angle adjustment coefficient. The sum of the rotation angle corresponding to the latest voltage in the target voltage time sequence and the angle adjustment coefficient is determined as the rotation angle of the magnetic knob.

[0097] For example, the Hall output voltage in one cycle is as follows: (2.5, 1.5, 0.5, 1.5), and the rotation angle change is 5. If the matching result indicates no matching voltage information and the detected Hall output voltage is 2.5V, the rotation angle corresponding to 2.5V in the first cycle is retrieved from the rotation angle change information to obtain the rotation angle of the magnetic knob. If the matching result indicates the presence of matching voltage information and the detected Hall output voltage is 2.5V, the number of interval voltages is 3. Therefore, the sum of 4 times the periodic rotation angle change and the rotation angle corresponding to the matching voltage information is determined as the rotation angle of the magnetic knob. If the matching result indicates the presence of matching voltage information and the detected Hall output voltage is 1.5V, the number of interval voltages is 1. Therefore, the sum of 2 times the periodic rotation angle change and the rotation angle corresponding to the matching voltage information is determined as the rotation angle of the magnetic knob.

[0098] In this embodiment, the rotation angle change is detected when the Hall output voltage corresponding to the magnetic knob changes based on the number of magnetic pole pairs and the magnetic field voltage, thus obtaining the rotation angle information. Based on the detected Hall output voltage and rotation angle information, the rotation angle of the magnetic knob is generated. Considering that the magnetic field voltage can characterize the degree of magnetic loss of the magnetic knob, and the number of magnetic pole pairs can characterize the motor rotation characteristics of the magnetic button, using both the magnetic field voltage and the number of magnetic pole pairs as the detection basis for the rotation angle information allows for accurate detection of the rotation angle change when the Hall output voltage corresponding to the magnetic knob changes, improving the accuracy of the rotation angle detection. Furthermore, considering that the Hall output voltage and rotation angle change synchronously and gradually over time and follow a certain pattern, the rotation angle information allows for conversion of the rotation angle, thereby generating the rotation angle and improving the accuracy of rotation angle generation.

[0099] In one embodiment, such as Figure 4 As shown, another method for generating the rotation angle of a magnetic knob is provided. In this method, the rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field where the magnetic knob is located, characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, and by detecting the Hall output voltage. The method includes:

[0100] Step 402: Obtain the pre-constructed triangular geometric relationship, which is constructed from the number of magnetic pole pairs, magnetic field voltage, bias voltage in the magnetic field data, and rotation angle of the magnetic knob.

[0101] As an example, step 402 includes: constructing a magnetic field right triangle based on the number of magnetic pole pairs, magnetic field voltage, bias voltage in the magnetic field data and rotation angle of the magnetic knob, and determining the cosine relationship in the magnetic field right triangle as a trigonometric relationship.

[0102] Furthermore, based on the number of magnetic pole pairs, magnetic field voltage, bias voltage in the magnetic field data, and rotation angle of the magnetic knob, a magnetic field right triangle is constructed, including: determining the product between the number of magnetic pole pairs and the rotation angle of the magnetic knob as an angle in the magnetic field right triangle; determining the difference between the magnetic field voltage and the bias voltage in the magnetic field data as the hypotenuse in the magnetic field right triangle; and determining the number of magnetic pole pairs as the adjacent side of that angle in the magnetic field right triangle.

[0103] Alternatively, refer to Figure 5 In the diagram, V2 is the magnetic field voltage, n is the number of magnetic pole pairs, V0 is the bias voltage, V1 is the Hall output voltage, and θ is the rotation angle.

[0104] Step 404: Generate the rotation angle of the magnetic knob based on triangular geometry.

[0105] As an example, step 404 includes: mapping the detection Hall output voltage, the bias voltage in the magnetic field data and the number of magnetic pole pairs through trigonometric geometry to obtain the rotation angle of the magnetic knob.

[0106] Optionally, based on the detected Hall output voltage, the bias voltage in the magnetic field data, and the number of pole pairs, a mapping is performed using trigonometric geometry to obtain the rotation angle of the magnetic knob, which can be expressed by the formula:

[0107]

[0108] in, It detects the Hall output voltage. It is the bias voltage. It is magnetic field voltage. It is the number of magnetic pole pairs. It is the rotation angle.

[0109] In this embodiment, a pre-constructed triangular geometric relationship is obtained, which is constructed from the number of magnetic pole pairs, magnetic field voltage, bias voltage in the magnetic field data, and the rotation angle of the magnetic knob. Based on the triangular geometric relationship, the rotation angle of the magnetic knob is generated. By pre-constructing the triangular geometric relationship, the corresponding rotation angle can be directly mapped through the triangular geometric relationship, which improves the efficiency of rotation angle generation.

[0110] In one embodiment, such as Figure 6 As shown, a method for controlling a heating device is provided, in which... Figure 2 Step 206 includes:

[0111] Step 602: Obtain the rotation control type corresponding to the magnetic knob.

[0112] The rotation control type is used to characterize the rotation control logic of the magnetic knob. The rotation control type includes one of the rotation cycle control type and the rotation non-cycle control type.

[0113] For example, when the rotation control type includes rotational cycle control, the larger the rotation angle, the greater the heating capacity required by the heating equipment. When the rotation control type includes rotational non-cycle control, within the first range, the larger the rotation angle, the greater the heating capacity required by the heating equipment; within the second range, the larger the rotation angle, the smaller the heating capacity required by the heating equipment. The first and second ranges are continuous. Specifically, the first range can be 0-90 degrees, and the second range can be 90-180 degrees.

[0114] Step 604: Perform heating control on the heating device according to the rotation control type and rotation angle.

[0115] As an example, step 604 includes: matching the target heating parameters corresponding to the heating device according to the rotation control type and rotation angle, and performing heating control on the heating device according to the target heating parameters.

[0116] Furthermore, based on the rotation control type and rotation angle, the target heating parameters corresponding to the heating device are matched, including: based on the rotation control type, identifying the target angle range in which the rotation angle is located, and based on the rotation heating relationship corresponding to the target angle range, matching the target heating parameters corresponding to the heating device.

[0117] The rotational heating relationship can be a corresponding mapping relationship, specifically, one angle corresponds to one heating parameter, and the difference in heating parameters corresponding to adjacent interval angles can be the same or different, without restriction; the rotational heating relationship can also be a functional mapping relationship, specifically, it can be a function representing a positive correlation between the rotation angle and the heating parameter, or it can be a function representing a negative correlation between the rotation angle and the heating parameter, without restriction.

[0118] In another embodiment, step 604 includes: adjusting the current heating parameters corresponding to the heating device according to the rotation control type and rotation angle to obtain the target heating parameters, and performing heating control on the heating device according to the target heating parameters.

[0119] Optionally, the specific implementation method of adjusting the current heating parameters corresponding to the heating device according to the rotation control type and rotation angle to obtain the target heating parameters can refer to the above-described implementation content of matching the target heating parameters corresponding to the heating device according to the rotation control type and rotation angle. The essential method of generating the target heating parameters is the same, except that one is obtained by adjusting the current heating parameters and the other is generated directly. Therefore, it will not be elaborated here.

[0120] In this embodiment, the rotation control type corresponding to the magnetic knob is obtained; the heating device is heated according to the rotation control type and rotation angle. Considering that the rotation control logic corresponding to different magnetic knobs is different, that is, the rotation control type is different, by using the rotation control type and rotation angle as the basis for matching heating parameters, the control of the heating device can accurately match the user's rotation angle and the rotation control logic of the magnetic knob itself, thereby improving the control accuracy of the heating device.

[0121] As a more detailed embodiment, in response to operation of the heating device, the magnetic field data of the magnetic field of the magnetic knob deployed on the heating device and the Hall output voltage are detected; the magnetic field detection sensitivity corresponding to the magnetic knob is determined; and the magnetic field detection sensitivity is fused with the magnetic field strength in the magnetic field data to obtain the magnetic field voltage.

[0122] Further, the number of magnetic pole pairs corresponding to the magnetic knob is obtained; based on the number of magnetic pole pairs, the total change in rotation angle when the Hall output voltage corresponding to the magnetic knob completes one cycle is detected, and the cycle rotation angle change is obtained; based on the magnetic field voltage, the cycle voltage change when the Hall output voltage corresponding to the magnetic knob changes is detected; according to the cycle voltage change and the bias voltage in the magnetic field data, multiple cycle node voltages within one cycle are divided; based on the cycle rotation angle change, corresponding cycle node rotation angles are assigned to the multiple cycle node voltages in each cycle, and the rotation change angle information is obtained; the historical Hall output voltage during the operation time of the heating device corresponding to the operation is obtained; the historical Hall output voltage is matched with the detected Hall output voltage to obtain the matching result; based on the matching result and the rotation change angle information, the rotation angle of the magnetic knob is generated; the rotation control type corresponding to the magnetic knob is obtained; and the heating device is heated according to the rotation control type and rotation angle.

[0123] In this embodiment, in response to an operation on the heating device, the magnetic field data of the magnetic knob deployed on the heating device is detected; the magnetic field strength in the magnetic field data is converted into a digital voltage signal to obtain a magnetic field voltage; the rotation angle of the magnetic knob is generated based on the magnetic field voltage and the detected Hall output voltage; the heating device is heated based on the rotation angle. Thus, considering that the magnetic field of the magnetic knob changes when the user rotates it, causing a corresponding change in the Hall output voltage, and that the magnetic knob's magnetism may decrease when it is in a high-temperature environment for a long time, resulting in a discrepancy between the detected Hall output voltage and the theoretical Hall output voltage corresponding to the rotation angle, the magnetic field data is used to quantify the magnetism of the magnetic knob. This allows the magnetic field data and the detected Hall output voltage to be used together as the basis for generating the rotation angle, incorporating the decrease in the magnetic magnetism of the magnetic knob into the rotation angle generation decision, thus improving the accuracy of the rotation angle generation. Since the rotation angle is the basis for controlling the heating device, this further improves the control accuracy of the heating device.

[0124] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0125] Based on the same inventive concept, this application also provides a heating equipment control device for implementing the heating equipment control method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more heating equipment control device embodiments provided below can be found in the limitations of the heating equipment control method described above, and will not be repeated here.

[0126] In one embodiment, such as Figure 7 As shown, a heating equipment control device 700 is provided, including: a detection module 702, a generation module 704, and a control module 706, wherein:

[0127] The detection module 702 is used to detect magnetic field data of the magnetic field of the magnetic knob deployed on the heating device and detect Hall output voltage in response to operation of the heating device.

[0128] The generation module 704 is used to generate the rotation angle of the magnetic knob based on the magnetic state of the magnetic field of the magnetic knob as characterized by the magnetic field data and the detected Hall output voltage.

[0129] The control module 706 is used to control the heating of the heating equipment according to the rotation angle.

[0130] In one embodiment, the generation module 704 is further configured to convert the magnetic field strength in the magnetic field data into a digital voltage signal to obtain a magnetic field voltage; and to generate the rotation angle of the magnetic knob based on the magnetic state of the magnetic field characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, as well as the detection of the Hall output voltage.

[0131] In one embodiment, the generation module 704 is further configured to detect the change in rotation angle when the Hall output voltage corresponding to the magnetic knob changes based on the number of magnetic pole pairs and the magnetic field voltage, and obtain rotation angle information; and generate the rotation angle of the magnetic knob based on the detected Hall output voltage and rotation angle information.

[0132] In one embodiment, the generation module 704 is further configured to: detect the total change in rotation angle when the Hall output voltage corresponding to the magnetic attraction knob completes one cycle according to the number of magnetic pole pairs, and obtain the cycle rotation angle change; detect the cycle voltage change when the Hall output voltage corresponding to the magnetic attraction knob changes according to the magnetic field voltage; divide the voltage of multiple cycle nodes within one cycle according to the cycle voltage change and the bias voltage in the magnetic field data; and assign corresponding cycle node rotation angles to the multiple cycle node voltages in each cycle according to the cycle rotation angle change, and obtain the rotation change angle information.

[0133] In one embodiment, the generation module 704 is further configured to acquire the historical Hall output voltage during the operation time of the heating device corresponding to the operation; match the historical Hall output voltage with the detected Hall output voltage to obtain a matching result; and generate the rotation angle of the magnetic knob based on the matching result and the rotation change angle information.

[0134] In one embodiment, the generation module 704 is further configured to obtain a pre-constructed triangular geometric relationship, wherein the triangular geometric relationship is constructed from the number of magnetic pole pairs, magnetic field voltage, bias voltage in the magnetic field data and the rotation angle of the magnetic knob; and generate the rotation angle of the magnetic knob according to the triangular geometric relationship.

[0135] In one embodiment, the control module 706 is further configured to acquire the rotation control type corresponding to the magnetic knob; and to perform heating control on the heating device according to the rotation control type and rotation angle.

[0136] In one embodiment, the heating device control device 700 further includes: a conversion module for determining the magnetic field detection sensitivity corresponding to the magnetic knob; and fusing the magnetic field detection sensitivity with the magnetic field strength in the magnetic field data to obtain the magnetic field voltage.

[0137] Each module in the aforementioned heating equipment control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.

[0138] In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown, the electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a heating device control method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.

[0139] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0140] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0141] In response to operation of the heating equipment, the magnetic field data of the magnetic knob deployed on the heating equipment and the Hall output voltage are detected;

[0142] The rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field represented by the magnetic field data and the detected Hall output voltage.

[0143] Heating control is performed on the heating equipment based on the rotation angle.

[0144] In one embodiment, when the processor executes the computer program, it further performs the following steps: converting the magnetic field strength in the magnetic field data into a digital voltage signal to obtain a magnetic field voltage; generating the rotation angle of the magnetic knob based on the magnetic state of the magnetic field characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, and detecting the Hall output voltage.

[0145] In one embodiment, when the processor executes the computer program, it further performs the following steps: based on the number of magnetic pole pairs and the magnetic field voltage, it detects the change in rotation angle when the Hall output voltage corresponding to the magnetic knob changes, and obtains the rotation angle information; based on the detected Hall output voltage and the rotation angle information, it generates the rotation angle of the magnetic knob.

[0146] In one embodiment, when the processor executes the computer program, it further performs the following steps: based on the number of magnetic pole pairs, detects the total change in rotation angle when the Hall output voltage corresponding to the magnetic knob completes one cycle, and obtains the cycle rotation angle change; based on the magnetic field voltage, detects the cycle voltage change when the Hall output voltage corresponding to the magnetic knob changes; according to the cycle voltage change and the bias voltage in the magnetic field data, divides the voltage into multiple cycle nodes within one cycle; based on the cycle rotation angle change, assigns corresponding cycle node rotation angles to the multiple cycle node voltages in each cycle, and obtains the rotation change angle information.

[0147] In one embodiment, when the processor executes the computer program, it further performs the following steps: acquiring the historical Hall output voltage during the operation time of the heating device corresponding to the operation; matching the historical Hall output voltage with the detected Hall output voltage to obtain a matching result; and generating the rotation angle of the magnetic knob based on the matching result and the rotation change angle information.

[0148] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining a pre-constructed triangular geometry, wherein the triangular geometry is constructed from the number of magnetic pole pairs, magnetic field voltage, bias voltage in the magnetic field data, and rotation angle of the magnetic knob; and generating the rotation angle of the magnetic knob based on the triangular geometry.

[0149] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining the rotation control type corresponding to the magnetic knob; and performing heating control on the heating device according to the rotation control type and rotation angle.

[0150] In one embodiment, when the processor executes the computer program, it also performs the following steps: determining the magnetic field detection sensitivity corresponding to the magnetic knob; and fusing the magnetic field detection sensitivity with the magnetic field strength in the magnetic field data to obtain the magnetic field voltage.

[0151] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0152] In response to operation of the heating equipment, the magnetic field data of the magnetic knob deployed on the heating equipment and the Hall output voltage are detected;

[0153] The rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field represented by the magnetic field data and the detected Hall output voltage.

[0154] Heating control is performed on the heating equipment based on the rotation angle.

[0155] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: converting the magnetic field strength in the magnetic field data into a digital voltage signal to obtain a magnetic field voltage; generating the rotation angle of the magnetic knob based on the magnetic state of the magnetic field characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, and detecting the Hall output voltage.

[0156] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: based on the number of magnetic pole pairs and the magnetic field voltage, it detects the change in rotation angle when the Hall output voltage corresponding to the magnetic knob changes, and obtains the rotation angle information; based on the detected Hall output voltage and the rotation angle information, it generates the rotation angle of the magnetic knob.

[0157] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: based on the number of magnetic pole pairs, detect the total change in rotation angle when the Hall output voltage corresponding to the magnetic knob completes one cycle, and obtain the cycle rotation angle change; based on the magnetic field voltage, detect the cycle voltage change when the Hall output voltage corresponding to the magnetic knob changes; divide the voltage into multiple cycle nodes within one cycle according to the cycle voltage change and the bias voltage in the magnetic field data; based on the cycle rotation angle change, assign corresponding cycle node rotation angles to the multiple cycle node voltages in each cycle, and obtain rotation angle information.

[0158] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: acquiring the historical Hall output voltage during the operation time of the heating device corresponding to the operation; matching the historical Hall output voltage with the detected Hall output voltage to obtain a matching result; and generating the rotation angle of the magnetic knob based on the matching result and the rotation change angle information.

[0159] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining a pre-constructed triangular geometry, wherein the triangular geometry is constructed from the number of magnetic pole pairs, magnetic field voltage, bias voltage in the magnetic field data, and rotation angle of the magnetic knob; and generating the rotation angle of the magnetic knob based on the triangular geometry.

[0160] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining the rotation control type corresponding to the magnetic knob; and performing heating control on the heating device according to the rotation control type and rotation angle.

[0161] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining the magnetic field detection sensitivity corresponding to the magnetic knob; and fusing the magnetic field detection sensitivity with the magnetic field strength in the magnetic field data to obtain the magnetic field voltage.

[0162] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0163] In response to operation of the heating equipment, the magnetic field data of the magnetic knob deployed on the heating equipment and the Hall output voltage are detected;

[0164] The rotation angle of the magnetic knob is generated based on the magnetic state of the magnetic field represented by the magnetic field data and the detected Hall output voltage.

[0165] Heating control is performed on the heating equipment based on the rotation angle.

[0166] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: converting the magnetic field strength in the magnetic field data into a digital voltage signal to obtain a magnetic field voltage; generating the rotation angle of the magnetic knob based on the magnetic state of the magnetic field characterized by the number of magnetic pole pairs and the magnetic field voltage in the magnetic field data, and detecting the Hall output voltage.

[0167] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: based on the number of magnetic pole pairs and the magnetic field voltage, it detects the change in rotation angle when the Hall output voltage corresponding to the magnetic knob changes, and obtains the rotation angle information; based on the detected Hall output voltage and the rotation angle information, it generates the rotation angle of the magnetic knob.

[0168] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: based on the number of magnetic pole pairs, detect the total change in rotation angle when the Hall output voltage corresponding to the magnetic knob completes one cycle, and obtain the cycle rotation angle change; based on the magnetic field voltage, detect the cycle voltage change when the Hall output voltage corresponding to the magnetic knob changes; divide the voltage into multiple cycle nodes within one cycle according to the cycle voltage change and the bias voltage in the magnetic field data; based on the cycle rotation angle change, assign corresponding cycle node rotation angles to the multiple cycle node voltages in each cycle, and obtain rotation angle information.

[0169] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: acquiring the historical Hall output voltage during the operation time of the heating device corresponding to the operation; matching the historical Hall output voltage with the detected Hall output voltage to obtain a matching result; and generating the rotation angle of the magnetic knob based on the matching result and the rotation change angle information.

[0170] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining a pre-constructed triangular geometry, wherein the triangular geometry is constructed from the number of magnetic pole pairs, magnetic field voltage, bias voltage in the magnetic field data, and rotation angle of the magnetic knob; and generating the rotation angle of the magnetic knob based on the triangular geometry.

[0171] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining the rotation control type corresponding to the magnetic knob; and performing heating control on the heating device according to the rotation control type and rotation angle.

[0172] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining the magnetic field detection sensitivity corresponding to the magnetic knob; and fusing the magnetic field detection sensitivity with the magnetic field strength in the magnetic field data to obtain the magnetic field voltage.

[0173] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0174] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0175] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for controlling a heating device, characterized in that, The method includes: In response to operation of the heating device, the magnetic field data of the magnetic knob deployed on the heating device and the Hall output voltage are detected; The magnetic field strength in the magnetic field data is converted into a digital voltage signal to obtain the magnetic field voltage. Based on the number of magnetic pole pairs in the magnetic field data, the total change in rotation angle when the Hall output voltage corresponding to the magnetic knob completes one cycle is detected, and the cycle rotation angle change is obtained; based on the magnetic field voltage, the cycle voltage change when the Hall output voltage corresponding to the magnetic knob changes is detected; according to the cycle voltage change and the bias voltage in the magnetic field data, multiple cycle node voltages within one cycle are divided; based on the cycle rotation angle change, corresponding cycle node rotation angles are assigned to the multiple cycle node voltages in each cycle, and the rotation angle information is obtained; based on the detected Hall output voltage and the rotation angle information, the rotation angle of the magnetic knob is generated; The heating device is controlled to heat according to the rotation angle.

2. The method according to claim 1, characterized in that, The step of generating the rotation angle of the magnetic knob based on the detected Hall output voltage and the rotation change angle information includes: Obtain the historical Hall output voltage during the operating time of the heating equipment corresponding to the operation; The historical Hall output voltage is matched with the detected Hall output voltage to obtain a matching result; The rotation angle of the magnetic knob is generated based on the matching result and the rotation change angle information.

3. The method according to claim 1, characterized in that, The step of converting the magnetic field strength in the magnetic field data into a digital voltage signal to obtain the magnetic field voltage includes: Determine the magnetic field detection sensitivity corresponding to the magnetic knob; The magnetic field voltage is obtained by fusing the magnetic field detection sensitivity with the magnetic field strength in the magnetic field data.

4. The method according to any one of claims 1 to 3, characterized in that, The step of controlling the heating device according to the rotation angle includes: Obtain the rotation control type corresponding to the magnetic knob; The heating device is heated according to the rotation control type and the rotation angle.

5. A control device for heating equipment, characterized in that, The device includes: The detection module is used to detect magnetic field data of the magnetic field of the magnetic knob deployed on the heating device and detect Hall output voltage in response to operation of the heating device; The generation module is used to convert the magnetic field strength in the magnetic field data into a digital voltage signal to obtain a magnetic field voltage; based on the number of magnetic pole pairs in the magnetic field data, it detects the total change in rotation angle when the Hall output voltage corresponding to the magnetic knob completes one cycle, obtaining the cycle rotation angle change; based on the magnetic field voltage, it detects the cycle voltage change when the Hall output voltage corresponding to the magnetic knob changes; according to the cycle voltage change and the bias voltage in the magnetic field data, it divides a cycle into multiple cycle node voltages; based on the cycle rotation angle change, it assigns corresponding cycle node rotation angles to the multiple cycle node voltages in each cycle, obtaining rotation angle information; and based on the detected Hall output voltage and the rotation angle information, it generates the rotation angle of the magnetic knob. The control module is used to control the heating of the heating device according to the rotation angle.

6. The apparatus according to claim 5, characterized in that, The generation module is also used to obtain the historical Hall output voltage during the operation time of the heating device corresponding to the operation; match the historical Hall output voltage with the detected Hall output voltage to obtain a matching result; and generate the rotation angle of the magnetic knob based on the matching result and the rotation change angle information.

7. The apparatus according to claim 5, characterized in that, The generation module is also used to determine the magnetic field detection sensitivity corresponding to the magnetic knob; and to fuse the magnetic field detection sensitivity with the magnetic field strength in the magnetic field data to obtain the magnetic field voltage.

8. The apparatus according to any one of claims 5 to 7, characterized in that, The control module is also used to obtain the rotation control type corresponding to the magnetic knob; and to perform heating control on the heating device according to the rotation control type and the rotation angle.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Knob gear output method and device, knob device and storage device

    CN112181046A