Control method and device of electrical equipment, electrical equipment and storage medium
By setting up magnetic induction devices and magnets in electrical equipment, detecting magnetic field parameters and determining the angle to calculate the food thickness, the problem of insufficient detection accuracy of household appliances is solved, precise cooking control is achieved, and improper cooking is avoided.
Patent Information
- Application Number
- CN202410085016.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2025-07-22
AI Technical Summary
Existing household appliances have insufficient accuracy when detecting food thickness, and cannot achieve continuous measurement, resulting in improper cooking.
A magnetic induction device and a magnet are provided in electrical equipment. By detecting the magnetic field parameters generated by the magnet, the angle between the cover and the base is determined, the food thickness is calculated, and the contactless precision measurement is achieved.
Accurate measurement of food thickness is achieved, avoiding insufficient or overcooking, and improving the cooking effect.
Smart Images

Figure CN120345801A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of electrical appliances, and particularly to a control method, device, electrical appliance, and storage medium for an electrical appliance device. Background Art
[0002] When cooking food using household appliances such as steak machines and grills, it is necessary to determine the thickness of the food in order to reasonably set cooking parameters such as heating duration and heating power.
[0003] The related art provides a detection structure for detecting the thickness of food on a household appliance. The detection structure uses a gear post movably arranged on an operation component and a gear step provided with a plurality of stepped surfaces to measure the thickness of the food according to which stepped surface the gear post is on.
[0004] The method for measuring the thickness of food provided by the related art has insufficient detection accuracy. Summary of the Invention
[0005] The present application proposes a control method, device, electrical appliance, and storage medium for an electrical appliance device.
[0006] In a first aspect, the embodiments of the present application provide a control method for an electrical appliance device. The electrical appliance device includes a base, a cover body, and a rotating shaft. The cover body is rotatably connected to the base through the rotating shaft. The electrical appliance device is provided with a magnetic induction device and a magnet. The method includes: when there is food placed on the base, detecting the magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device to determine a target angle, where the target angle represents the angle between the cover body and the base when the cover body covers the food; determining the thickness of the food based on the target angle; and controlling the electrical appliance device to cook the food based on the thickness of the food.
[0007] In a second aspect, the embodiments of the present application provide a control device for an electrical appliance device. The electrical appliance device includes a base, a cover body, and a rotating shaft. The cover body is rotatably connected to the base through the rotating shaft. The electrical appliance device is provided with a magnetic induction device and a magnet. The device includes: an angle acquisition module for detecting the magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device when there is food placed on the base to determine a target angle, where the target angle represents the angle between the cover body and the base when the cover body covers the food; a thickness measurement module for determining the thickness of the food based on the target angle; and a cooking control module for controlling the electrical appliance device to cook the food based on the thickness of the food.
[0008] In a third aspect, an embodiment of the present application provides an electrical appliance, which includes: a base, a cover body, and a rotating shaft; the cover body is rotatably connected to the base through the rotating shaft; the electrical appliance is provided with a magnetic induction device and a magnet; one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more application programs are configured to execute the method as described in the first aspect.
[0009] Optionally, the magnetic induction device and the magnet are respectively arranged on the base and the cover body, or the magnetic induction device and the magnet are respectively arranged on the base and the rotating shaft, or the magnetic induction device and the magnet are respectively arranged on the cover body and the rotating shaft.
[0010] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code is called by a processor to execute the method as described in the first aspect.
[0011] In a fifth aspect, an embodiment of the present application provides a computer program product, which is used to implement the method as described in the first aspect when the computer program product is executed.
[0012] Compared with the prior art, in the technical solution provided by the embodiment of the present application, a magnetic induction device and a magnet are arranged on the electrical appliance. When food is placed on the base, the magnetic induction device can detect the magnetic field parameters (such as the magnetic field direction) of the magnetic field generated by the magnet to determine the angle (i.e., the target angle) between the cover body and the base when the cover body covers the food. Then, the control module can calculate the thickness of the food placed on the base based on the measured target angle, realizing accurate measurement of the thickness of the food. Subsequently, the electrical appliance can accurately control the cooking process based on the thickness of the food, avoiding the situation of undercooked or overcooked food and improving the cooking effect. Description of the Drawings
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative efforts.
[0014] Figure 1 is a schematic diagram of an electrical appliance provided by an embodiment of the present application.
[0015] Figure 2 is a flowchart of a control method for an electrical appliance provided by an embodiment of the present application.
[0016] Figure 3It is a flowchart of a control method for an electrical device provided by another embodiment of the present application.
[0017] Figure 4 It is a flowchart of a control method for an electrical device provided by another embodiment of the present application.
[0018] Figure 5 It is a flowchart of a control method for an electrical device provided by another embodiment of the present application.
[0019] Figure 6 It is a structural block diagram of a control device for an electrical device provided by an embodiment of the present application.
[0020] Figure 7 It is a structural block diagram of an electrical device provided by an embodiment of the present application.
[0021] Figure 8 It is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Detailed implementation manners
[0022] The following details the implementation manners of the present application. Examples of the implementation manners are shown in the accompanying drawings, where the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions throughout. The implementation manners described below with reference to the accompanying drawings are exemplary only for explaining the present application and should not be construed as limiting the present application.
[0023] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present application.
[0024] The inventor has discovered through long-term research that the solution for detecting the thickness of food by a detection structure provided by the related art can only detect several thicknesses, with insufficient detection accuracy and unable to achieve continuous measurement. For example, when the detection structure is provided with three gear steps of 0.5 cm, 1 cm, and 1.5 cm, the detection structure can only measure these three thicknesses of 0.5 cm, 1 cm, and 1.5 cm.
[0025] Based on the problems existing in the related art, the inventors designed an electrical appliance equipped with a magnetic induction device and a magnet. When food is placed on the base of the electrical appliance, the magnetic induction device can detect the magnetic field parameters of the magnetic field generated by the magnet to determine the angle (i.e., the target angle) between the cover and the base when the cover of the electrical appliance covers the food. Subsequently, the control module can calculate the thickness of the food placed on the base based on the measured target angle, and achieve precise measurement of the thickness of the food. Subsequently, the electrical appliance can achieve precise control of the cooking process based on the thickness of the food, avoiding undercooking or overcooking of the food and improving the cooking effect.
[0026] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment includes an electrical appliance 100, and the electrical appliance 100 can be a steak machine, a griddle, a electric griddle, etc. In the embodiment of the present application, the electrical appliance 100 includes a base 10, a cover 20, a rotating shaft 30, and a control module. The cover 20 is rotatably connected to the base 10 through the rotating shaft 30.
[0027] The base 10 is provided with a heating device. When food is placed on the base 10 and the cover 20 covers the food, the food can be cooked through the heating device. The heating device can be a heating tube, etc. In some embodiments, the base 10 is further provided with a food placement guiding area to guide the user to place the food in this area. The center of the food placement guiding area is substantially coincident with the center of the base 10. When the food is placed in this area, that is, the food is placed at the center position of the base 10. Subsequently, the target length (i.e., the distance between the center point of the side of the base connected to the rotating shaft and the center point of the base) can be determined based on the size parameters of the base 10, and the thickness of the food can be calculated according to the target length and the target angle.
[0028] Optionally, guiding lines are provided on the base 10, and the area enclosed by the guiding lines is the food placement guiding area. Further, the area enclosed by the guiding lines includes prompt information to prompt the user to place the food. Optionally, the base 10 includes a base body and a baking tray detachably connected to the base body, and the baking tray is the food placement guiding area. The center of the baking tray is substantially coincident with the center of the base body. Optionally, the base body includes a platform portion and a recessed portion. The recessed portion is used to accommodate the baking tray. When the baking tray is placed in the recessed portion, the baking tray is substantially flush with the platform portion, thereby avoiding the influence of the thickness of the baking tray on the calculation of the thickness of the food. The shape of the base 10 can be rectangular, square, circular, etc., and the embodiment of the present application does not limit this.
[0029] The shape of the cover body 20 is the same as that of the base 10. For example, when the base 10 is circular, the cover body 20 is also circular. In some embodiments, an operation panel is provided on the surface of the cover body 20 away from the base 10, and the operation panel is electrically connected to the control module. Optionally, the operation panel includes a plurality of function controls. When the user triggers any function control, the operation panel generates a corresponding electrical signal and transmits the electrical signal to the control module, and the control module executes a corresponding control instruction based on the electrical signal, thereby realizing the interaction between the user and the electrical appliance 100. The above-mentioned plurality of function controls include: a start control, a food type selection control, a heating power adjustment control, a heating duration adjustment control, an automatic cooking function setting control, and so on.
[0030] In the embodiment of the present application, the electrical appliance 100 is provided with a magnetic induction device 310 and a magnet 320. In some embodiments, the magnetic induction device 310 and the magnet 320 are respectively arranged on the base 10 and the cover body 20. In some other embodiments, the magnetic induction device 310 and the magnet 320 are respectively arranged on the base 10 and the rotating shaft 30. In still some other embodiments, the magnetic induction device 310 and the magnet 320 are respectively arranged on the cover body 20 and the rotating shaft 30. The magnetic induction device 310 is electrically connected to the control module. When the rotating shaft 30 rotates, the magnetic field parameters (such as the magnetic field direction) of the magnetic field generated by the magnet 320 change accordingly. The magnetic induction device 310 can detect the change of the magnetic field parameters of the magnetic field generated by the magnet 320, and determine the rotation angle of the cover body 20 according to the change of the magnetic field parameters of the magnetic field generated by the magnet 320.
[0031] After determining the rotation angle of the cover body 20, the magnetic induction device 310 sends the rotation angle of the cover body 20 to the control module. The control module can determine the angle of the included angle between the cover body 20 and the base 10 (i.e., the target angle) when the cover body 20 covers the food. The control module can calculate the thickness of the food arranged on the base based on the measured target angle and the size parameters of the base, or calculate the thickness of the food arranged on the base based on the measured target angle and the placement position of the food on the base, so as to realize the accurate measurement of the thickness of the food. Subsequently, the electrical appliance can realize the accurate control of the cooking process based on the thickness of the food, avoid the situation of undercooking or overcooking of the food, and improve the cooking effect. In addition, it should be noted that since the measurement of the magnetic field direction by the magnetic induction device 310 is non-contact, the electrical appliance 100 does not need to contact the food during the measurement of the thickness of the food, which is cleaner and more hygienic.
[0032] It should be noted that when the cover covers the food, it usually contacts the edge of the food. In theory, the thickness of the food should be calculated according to the specified length (i.e., the distance between a point on the edge where the base is connected to the rotating shaft and the projection point of the edge of the food on the base) and the target angle. However, on the one hand, there is a certain deformation when the edge of the food is covered by the cover. On the other hand, since the thickness of the food is usually small, the deviation between the thickness calculated based on the specified length and the thickness calculated based on the target length is small and can be ignored. For the convenience of calculation, the embodiments of the present application adopt the target length to calculate the thickness of the food, which can ensure a relatively accurate calculation result while reducing the calculation amount.
[0033] Please refer to Figure 2 , which shows a flowchart of a control method for an electrical device provided by an embodiment of the present application. This method is applied to Figure 1 the electrical device 100 shown. The method includes the following processes.
[0034] S201, when there is food placed on the base, detect the magnetic field parameters of the magnetic field generated by the magnetic induction device to determine the target angle.
[0035] The target angle represents the angle between the cover and the base when the cover covers the food. The magnetic field parameters of the magnetic field generated by the magnetic body include the magnetic field direction, magnetic field intensity, etc. In the embodiments of the present application, only the magnetic field parameter of the magnetic field being the magnetic field direction is taken as an example for elaboration. When the food is placed on the base and the cover covers the food, due to the influence of the thickness of the food, there is a certain angle between the cover and the base. In addition, since the magnetic field direction generated by the magnetic body changes as the rotating shaft rotates, the magnetic induction device can sense the change of the magnetic field direction of the magnetic body to determine the rotation angle of the cover. When the reference angle between the cover and the base is known, the control module can determine the target angle based on the rotation angle of the cover and the reference angle.
[0036] In some embodiments, the process of determining the target angle is specifically as follows: when there is food placed on the base, the magnetic induction device detects the magnetic field direction of the magnetic body to obtain the rotation angle of the cover; determine the target angle based on the reference angle and the rotation angle of the cover.
[0037] The rotation angle of the cover represents the angle to be rotated when the angle between the cover and the base changes from the reference angle to the target angle. As mentioned in the above embodiments, since the magnetic field direction generated by the magnetic body changes correspondingly with the rotation of the rotating shaft, the change of the magnetic field direction can be detected by the magnetic induction device to determine the rotation angle of the cover.
[0038] In some embodiments, when the cover covers the food, the magnetic induction device obtains the first magnetic field direction of the magnet; obtains the second magnetic field direction; and obtains the angular deviation between the first magnetic field direction and the second magnetic field direction as the rotation angle of the cover.
[0039] Optionally, after the electrical appliance detects that the cover starts to rotate, it detects the current magnetic field direction of the magnet through the magnetic induction device every first preset time period. When the duration during which the magnetic field direction detected by the magnetic induction device remains unchanged is greater than the second preset time period, the unchanged magnetic field direction is determined as the first magnetic field direction of the magnet. The first preset time period is set according to experiments or experience, such as 100 ms. The second preset time period is set according to experiments or experience, such as 15 s. Optionally, after the electrical appliance obtains the start cooking instruction, it controls the magnetic induction device to perform detection and determines the currently detected magnetic field direction of the magnetic induction device as the first magnetic field direction.
[0040] The second magnetic field direction refers to the magnetic field direction of the magnet detected by the magnetic induction device when the angle between the cover and the base is the reference angle. Optionally, the reference angle refers to the minimum angle between the cover and the base, such as 0 degrees, that is, the cover completely covers the base. Optionally, the reference angle refers to the maximum angle between the cover and the base, such as 180 degrees. The electrical appliance can obtain the relative position relationship between the cover and the base before the cover starts to rotate to determine the reference angle. If the cover completely covers the base before the cover starts to rotate, the reference angle is the minimum angle between the cover and the base; if the cover and the base are on the same plane before the cover starts to rotate, the reference angle is the maximum angle between the cover and the base.
[0041] The second magnetic field direction can be measured and stored in the control module by the electrical appliance before leaving the factory, or can be measured and stored by the electrical appliance guiding the user when the automatic cooking function of the electrical appliance is turned on for the first time, or can also be automatically measured and stored by the electrical appliance before the cover starts to rotate. Therefore, the electrical appliance can read the second magnetic field direction locally.
[0042] In some embodiments, when the reference angle is the maximum angle between the cover and the base, the electrical appliance subtracts the rotation angle of the cover from the reference angle to obtain the target angle; when the reference angle is the minimum angle between the cover and the base, the rotation angle of the cover is determined as the target angle.
[0043] In one example, the reference angle is the maximum angle between the cover and the base, such as 180 degrees, and the rotation angle of the cover is 160 degrees, then the angle between the cover and the base is 20 degrees. In another embodiment, the reference angle is the minimum angle between the cover and the base, such as 0 degrees, and the rotation angle of the cover is 20 degrees, then the angle between the cover and the base is 20 degrees.
[0044] S202. Determine the thickness of the food based on the target angle.
[0045] When the target angle is determined, the electrical appliance can calculate the thickness of the food based on the size parameters of the base or the placement position of the food on the base. The specific calculation process will be described in the embodiments below.
[0046] S203. Control the electrical appliance to cook the food based on the thickness of the food.
[0047] On the premise of determining the thickness of the food, the electrical appliance can reasonably formulate the cooking parameters involved in this cooking process, such as heating duration, heating power, turning-over duration, etc., which can avoid the situation of undercooking or overcooking the food and improve the cooking effect.
[0048] In summary, in the technical solution provided by the embodiments of the present application, a magnetic induction device and a magnet are provided in the electrical appliance. When there is food placed on the base, the magnetic induction device can detect the magnetic field parameters (such as the magnetic field direction) of the magnetic field generated by the magnet to determine the angle of the included angle between the cover and the base when the cover covers the food (i.e., the target angle). Then, the control module can calculate the thickness of the food placed on the base based on the measured target angle, realizing the accurate measurement of the thickness of the food. Subsequently, the electrical appliance can accurately control the cooking process based on the thickness of the food, avoiding the situation of undercooking or overcooking the food and improving the cooking effect.
[0049] The following describes the solution for determining the thickness of the food based on the target angle and the placement position of the food on the base. Based on Figure 2 In the alternative embodiment provided by the illustrated embodiment, S202 is replaced and implemented as S302 - S304. Please refer to Figure 3 , which shows a flowchart of a control method for an electrical appliance provided by an embodiment of the present application. This method is applied to Figure 1 the electrical appliance 100 shown. This method includes the following processes.
[0050] S301. When there is food placed on the base, detect the magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device to determine the target angle.
[0051] The target angle represents the angle of the included angle between the cover and the base when the cover covers the food. S302. Obtain the size parameters of the base.
[0052] When the base is square or rectangular, the size parameters of the base include the side lengths of each side of the base. When the base is circular, the size parameters of the base include the radius of the base, etc.
[0053] The size parameters of the base can be pre-stored locally in the control module, so the control module can directly read the size parameters of the base from the local.
[0054] S303. Determine a first target length among the size parameters of the base.
[0055] The first target length represents the distance between the midpoint of the side of the base connected to the rotating shaft and the center point of the base. As mentioned in the above embodiments, a food placement guiding area is provided on the base to guide the user to place food, and the center of the food placement guiding area coincides with the center of the base. When the food is placed in the food placement guiding area, it can be considered that the food is placed at the center position of the base. Therefore, the distance (i.e., the target length) between the midpoint of the side of the base connected to the rotating shaft and the center point of the base can be determined based on the size parameters of the base, and the thickness of the food can be calculated based on the target length.
[0056] In the case where the base is square, the first target length is half of the side length of the base. For example, if the side length of the base is 30 cm, then the target length is 15 cm. In the case where the base is rectangular, the first target length is half of the side length of the specified side of the base, and the specified side refers to the side of the base that is not connected to the rotating shaft. In the case where the base is circular, the first target length is the length of the radius of the base.
[0057] S304. Determine the thickness of the food based on the first target length, the target angle, and the first specified calculation formula.
[0058] The first specified calculation formula is a trigonometric function formula. Optionally, the first specified calculation formula is expressed as: y = x1 * tanθ. Where y represents the thickness of the food, x1 represents the first target length, and θ represents the target angle. Exemplarily, if the first target length is 15 cm and the target angle is 5°, then the thickness of the food y = 15 * tan(5°) = 1.305 cm.
[0059] S305. Control the electrical appliance to cook the food based on the thickness of the food.
[0060] In summary, the technical solution provided by the embodiments of the present application sets a magnetic induction device and a magnet on the rotating shaft of the electrical appliance. When there is food placed on the base, the magnetic induction device can detect the magnetic field parameters of the magnetic field generated by the magnet to determine the angle (i.e., the target angle) between the cover and the base when the cover covers the food. Then, the control module can calculate the thickness of the food placed on the base based on the measured target angle and the size parameters of the base, realizing non-contact measurement of the thickness of the food. Subsequently, the electrical appliance can precisely control the cooking process based on the thickness of the food, avoiding the situation of undercooking or overcooking the food and improving the cooking effect.
[0061] The following describes a solution for determining the thickness of food based on the target angle and the placement position of the food on the base. Based on Figure 2 In the alternative embodiment provided by the illustrated embodiment, S202 is replaced and implemented as S402 - S404. Please refer to Figure 4 , which shows a flowchart of a control method for an electrical device provided by an embodiment of the present application. This method is applied to Figure 1 the electrical device 100 shown. The method includes the following processes.
[0062] S401, when there is food placed on the base, detect the magnetic field parameters of the magnetic field generated by the magnetic induction device to determine the target angle.
[0063] The target angle represents the angle between the lid and the base when the lid covers the food.
[0064] S402, obtain the placement position of the food on the base.
[0065] The placement position of the food on the base can be represented by coordinates in a specified coordinate system. For example, the specified coordinate system can be a rectangular coordinate system established with the center of the base as the origin. Another example is that the specified coordinate system can be a rectangular coordinate system established with a certain vertex of the base as the origin.
[0066] In some embodiments, a pressure sensing device is provided on the base. The electrical device obtains the sensing data of the pressure sensing device and determines the position with the maximum sensing value as the placement position of the base on the food. In other embodiments, a photographing device is provided on the side of the lid facing the base. The photographing device can photograph a complete image of the base. After the electrical device obtains the complete image of the base, it performs image recognition based on the complete image of the base to determine the placement position of the base on the food.
[0067] S403, determine the second target length based on the placement position of the food on the base.
[0068] The second target length represents the minimum distance between the side of the base connected to the rotating shaft and the placement position.
[0069] S404, determine the thickness of the food based on the second target length, the target angle, and the second specified calculation formula.
[0070] The second specified calculation formula is a trigonometric function formula. Optionally, the second specified calculation formula is expressed as: y = x2 * tanθ. Where y represents the thickness of the food, x2 represents the second target length, and θ represents the target angle.
[0071] S405, control the electrical device to cook the food based on the thickness of the food.
[0072] In summary, in the technical solution provided by the embodiments of the present application, a magnetic induction device and a magnet are provided on the rotating shaft of the electrical appliance. When there is food placed on the base, the magnetic induction device can detect the magnetic field parameters of the magnetic field generated by the magnet to determine the angle of the included angle between the lid and the base when the lid covers the food (i.e., the target angle). Then, the control module can calculate the thickness of the food placed on the base based on the measured target angle and the placement position of the food on the base, realizing non-contact measurement of the thickness of the food. Subsequently, the electrical appliance can precisely control the cooking process based on the thickness of the food, avoiding undercooking or overcooking of the food and improving the cooking effect.
[0073] The following elaborates on the solution for cooking control based on the thickness of the food. Please refer to Figure 5 , which shows a flowchart of a control method for an electrical appliance provided by an embodiment of the present application. This method is applied to Figure 1 the electrical appliance 100 shown. This method includes the following processes.
[0074] S501. When there is food placed on the base, detect the magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device to determine the target angle.
[0075] The target angle represents the angle of the included angle between the lid and the base when the lid covers the food.
[0076] In some embodiments, within a preset time period after the electrical appliance obtains the start cooking instruction, if no cooking parameters are received, S501 is executed. The preset time period is set according to experiments or experience. For example, the preset time period is 30 s. Setting cooking parameters includes at least one of the following: heating duration, heating power. The operation panel of the electrical appliance includes a heating duration setting control and a heating power setting control. If, within the preset time period after the electrical appliance receives the start cooking instruction, no trigger signal for the heating duration setting control is obtained, or / and, if no trigger signal for the heating power setting control is obtained, it is determined that no cooking parameters are received, and the subsequent step S501 is executed.
[0077] In some embodiments, after the electrical appliance obtains the start cooking instruction, detect whether the automatic cooking function is in the on state. If the automatic cooking function is in the on state, execute S501.
[0078] The automatic cooking function refers to the function of an electrical appliance to automatically set cooking parameters. The operation panel of the electrical appliance includes function controls for the automatic cooking function. If a trigger signal for the function control is received, the value of the status flag bit of the automatic cooking function is updated. For example, if the value of the status flag bit of the automatic cooking function is the first value and a trigger signal for the function control of the automatic cooking function is received, the value of its status flag bit is updated to the second value; for another example, if the value of the status flag bit of the automatic cooking function is the second value and a trigger signal for the function control of the automatic cooking function is received, the value of its status flag bit is updated to the first value. When the value of this status flag bit is the first value, it indicates that the automatic cooking function is in the on state, and when the value of this status flag bit is the second value, it indicates that the automatic cooking function is in the off state. Therefore, the electrical appliance can read the value of the flag bit of the automatic cooking function to detect whether the automatic cooking function is in the on state. Exemplarily, the first value is 1 and the second value is 0.
[0079] In some embodiments, after the electrical appliance obtains the start cooking instruction, it first detects whether the automatic cooking function is in the on state. If the automatic cooking function is in the off state, it further monitors whether the electrical appliance receives the setting of cooking parameters within a preset duration, and whether it receives a trigger signal for the automatic cooking function control within the preset duration. If it is monitored that the setting of cooking parameters is not received within the preset duration, or a trigger signal for the function control of the automatic cooking function is received within the preset duration, then S501 is executed.
[0080] S502, Determine the thickness of the food based on the target angle.
[0081] S503, Obtain the type of the food.
[0082] The types of food include but are not limited to: beef, pork, chicken, pasta, etc. In some embodiments, there are various food type controls on the operation panel of the electrical appliance. The user can select and trigger the corresponding food type control according to the food to be cooked. The triggered food type control generates an electrical signal and transmits the electrical signal to the control module. At this time, the control module can obtain the type of the food.
[0083] S504, Determine the target cooking parameters based on the thickness of the food and the type of the food.
[0084] The target cooking parameters include at least one of the following: heating duration, heating power, turning-over duration. The heating duration refers to the duration required to complete the cooking of the food. The heating power can be a constant value or a power curve that changes with time. The turning-over duration refers to the heating duration required for turning over the food.
[0085] In some embodiments, the electrical appliance pre-stores a preset correspondence relationship, which includes the correspondence relationship between the thickness of different foods, the types of different foods, and different cooking parameters. The electrical appliance searches in the above preset correspondence relationship for the cooking parameters corresponding to both the thickness of the food and the type of the food, and uses them as the target cooking parameters.
[0086] In other embodiments, the electrical appliance obtains multiple historical cooking records. Each historical cooking record records the type of food, the thickness of the food, and the cooking parameters set by the user during the historical cooking process, etc. The electrical appliance determines the target historical cooking record in the historical cooking records. The target historical cooking record refers to the historical cooking record with the same thickness and type of food as that involved in the current cooking process. When there is one target historical cooking record, the electrical appliance can determine the cooking parameters set by the user included in the target historical cooking record as the target cooking parameters. When there are multiple target historical cooking records, the electrical appliance can determine the average value of the cooking parameters set by the user included in each target historical cooking record as the target cooking parameters, or can also determine the cooking parameter that appears most frequently among the cooking parameters set by the user included in each target historical cooking record as the target cooking parameters.
[0087] S505, control the electrical appliance to cook the food according to the target cooking parameters.
[0088] When the target cooking parameter includes the heating duration, the electrical appliance times the working duration of the heating device. When the working duration of the heating device reaches the above heating duration, control the heating device to stop heating.
[0089] When the target cooking parameter includes the heating power, the electrical appliance controls the working power of the heating device to be the above heating power.
[0090] When the target cooking parameter includes the turning-over duration, the electrical appliance times the working duration of the heating device. When the working duration of the heating device reaches the difference between the turning-over duration and a preset value, send a reminder message to remind the user to perform a turning-over operation on the food. The reminder message can be a voice message, a light-emitting message, etc., and the embodiments of the present application do not limit this.
[0091] In summary, for the technical solution provided in the embodiments of the present application, a magnetic induction device and a magnet are provided on the rotating shaft of the electrical appliance. When there is food placed on the base, the magnetic induction device can detect the magnetic field direction of the magnet to determine the angle of the included angle between the cover and the base when the cover covers the food (i.e., the target angle). Then, the control module can calculate the thickness of the food placed on the base based on the measured target angle and the size parameters of the base, realizing non-contact measurement of the thickness of the food. Subsequently, the electrical appliance can accurately control the cooking process based on the thickness of the food, avoiding undercooking or overcooking of the food and improving the cooking effect.
[0092] Please refer to Figure 6 , which shows a block diagram of a control device of an electrical appliance provided in an embodiment of the present application. The electrical appliance includes a base, a cover, and a rotating shaft. The cover is rotatably connected to the base through the rotating shaft. The electrical appliance is provided with a magnetic induction device and a magnet. The device includes: an angle acquisition module 610, a thickness measurement module 620, and a cooking control module 630.
[0093] The angle acquisition module 610 is configured to, when there is food placed on the base, detect the magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device to determine a target angle, where the target angle represents the angle of the included angle between the cover and the base when the cover covers the food.
[0094] The thickness measurement module 620 is configured to determine the thickness of the food based on the target angle.
[0095] The cooking control module 630 is configured to control the electrical appliance to cook the food based on the thickness of the food.
[0096] In some embodiments, the thickness measurement module 620 is configured to determine a first target length in the size parameters of the base, where the first target length represents the distance between the midpoint of the side of the base connected to the rotating shaft and the center point of the base; and determine the thickness of the food based on the first target length, the target angle, and a first specified calculation formula.
[0097] In some embodiments, the thickness measurement module 620 is configured to obtain the placement position of the food on the base; determine a second target length based on the placement position of the food on the base, where the second target length represents the minimum distance between the side of the base connected to the rotating shaft and the placement position; and determine the thickness of the food based on the second target length, the target angle, and a second specified calculation formula.
[0098] In some embodiments, the cooking control module 630 is configured to obtain the type of the food; determine target cooking parameters based on the thickness of the food and the type of the food, where the target cooking parameters include at least one of the following: heating duration, heating power, turning-over duration; and control the electrical appliance to cook the food according to the target cooking parameters.
[0099] In some embodiments, the angle acquisition module 610 is configured to: within a preset duration after receiving the start cooking instruction, if the set cooking parameters are not acquired, detect the magnetic field direction of the magnet through the magnetic induction device to determine the target angle; the set cooking parameters include at least one of the following: heating duration, heating power.
[0100] In some embodiments, the angle acquisition module 610 is configured to: after receiving the start cooking instruction, detect whether the automatic cooking function of the electrical appliance device is in an on state, and if the automatic cooking function is in the on state, detect the magnetic field direction of the magnet through the magnetic induction device to determine the target angle.
[0101] In summary, for the technical solution provided in the embodiments of the present application, a magnetic induction device and a magnet are provided in the electrical appliance device. When food is placed on the base, the magnetic induction device can detect the magnetic field parameters (such as the magnetic field direction) of the magnetic field generated by the magnet to determine the angle of the included angle between the lid and the base when the lid covers the food (i.e., the target angle). Then, the control module can calculate the thickness of the food placed on the base based on the measured target angle, realizing accurate measurement of the thickness of the food. Subsequently, the electrical appliance device can realize precise control of the cooking process based on the thickness of the food, avoiding the occurrence of undercooked or overcooked food and improving the cooking effect.
[0102] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0103] In several embodiments provided in the present application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0104] In addition, in each embodiment of the present application, the various functional modules can be integrated in one processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules.
[0105] As Figure 7 shown, the present application example also provides an electrical appliance device 700, and the electrical appliance device 700 includes a processor 710 and a memory 720. Among them, the memory 720 stores computer program instructions.
[0106] The processor 710 may include one or more processing cores. The processor 710 connects various parts within the entire battery management system through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 720, and by invoking data stored in the memory 720, it performs various functions of the battery management system and processes data. Optionally, the processor 710 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 710 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing display content; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 710 and may be implemented separately through a communication chip.
[0107] The memory 720 may include random access memory (RAM) and may also include read-only memory (ROM). The memory 720 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 720 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for implementing at least one function (such as touch function, sound playback function, etc.), instructions for implementing the following various method examples, etc. The data storage area may also store data created during the use of the electrical device.
[0108] In some embodiments, the magnetic induction device and the magnet are respectively disposed on the base and the cover. In other embodiments, the magnetic induction device and the magnet are respectively disposed on the base and the rotating shaft. In still other embodiments, the magnetic induction device and the magnet are respectively disposed on the cover and the rotating shaft.
[0109] Please refer to Figure 8 , which shows that the embodiments of the present application further provide a computer-readable storage medium 800. Computer program instructions 810 are stored in the computer-readable storage medium 800, and the computer program instructions 810 can be called by the processor to execute the methods described in the above embodiments.
[0110] The computer-readable storage medium 800 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has a storage space for computer program instructions 810 that execute any of the method steps in the above-described method. These computer program instructions 810 can be read from or written to one or more computer program products. The computer program instructions 810 can be compressed in a suitable form.
[0111] The above are only the preferred examples of the present application and do not impose any formal restrictions on the present application. Although the present application has been disclosed above with preferred examples, it is not intended to limit the present application. Any person skilled in the art can make some changes or modifications to equivalent examples by using the disclosed technical content without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes, and modifications made to the above examples based on the technical essence of the present application without departing from the content of the technical solution of the present application still fall within the scope of the technical solution of the present application.
Claims
1. A control method for an electrical device, characterized in that, The electrical appliance includes a base, a cover body, and a rotating shaft. The cover body is rotatably connected to the base through the rotating shaft. The electrical appliance is provided with a magnetic induction device and a magnet. The method includes: When food is placed on the base, detecting magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device to determine a target angle, where the target angle represents the angle between the cover body and the base when the cover body covers the food; Determining the thickness of the food based on the target angle; Controlling the electrical appliance to cook the food based on the thickness of the food.
2. The method according to claim 1, wherein The determining the thickness of the food based on the target angle includes: Obtaining the size parameters of the base; Determining a first target length from among the size parameters of the base, where the first target length represents the distance between the midpoint of the side of the base connected to the rotating shaft and the center point of the base; Determining the thickness of the food based on the first target length, the target angle, and a first specified calculation formula.
3. The method according to claim 1, characterized in that The determining the thickness of the food based on the target angle includes: Obtaining the placement position of the food on the base; Determining a second target length based on the placement position of the food on the base, where the second target length represents the minimum distance between the side of the base connected to the rotating shaft and the placement position; Determining the thickness of the food based on the second target length, the target angle, and a second specified calculation formula.
4. The method according to any one of claims 1 to 3, characterized in that The controlling the electrical appliance to cook the food based on the thickness of the food includes: Obtaining the type of the food; Determining target cooking parameters based on the thickness of the food and the type of the food, where the target cooking parameters include at least one of the following: heating duration, heating power, turning-over duration; Controlling the electrical appliance to cook the food according to the target cooking parameters.
5. The method according to any one of claims 1 to 3, characterized in that, The detecting magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device to determine a target angle includes: Within a preset duration after receiving a start cooking instruction, if cooking parameters are not obtained, detecting magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device to determine a target angle; the cooking parameters include at least one of the following: heating duration, heating power.
6. The method according to any one of claims 1 to 3, characterized in that The detecting magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device to determine a target angle includes: After receiving a start cooking instruction, detecting whether the automatic cooking function of the electrical appliance is in an on state. If the automatic cooking function is in the on state, detecting magnetic field parameters of the magnetic field generated by the magnet through the magnetic induction device to determine a target angle.
7. A control device for an electrical equipment, characterized in that, The electrical appliance includes a base, a cover body, and a rotating shaft. The cover body is rotatably connected to the base through the rotating shaft. The electrical appliance is provided with a magnetic induction device and a magnet. The device includes: An angle acquisition module, configured to detect magnetic field parameters of a magnetic field generated by the magnet through the magnetic induction device when food is placed on the base, so as to determine a target angle, where the target angle represents an angle between the cover and the base when the cover covers the food; A thickness measurement module, configured to determine the thickness of the food based on the target angle; A cooking control module, configured to control the electrical appliance to cook the food based on the thickness of the food.
8. An electrical device, characterized in that, The electrical appliance includes a base, a cover, and a rotating shaft; the cover is rotatably connected to the base through the rotating shaft; the electrical appliance is provided with a magnetic induction device and a magnet; The electrical appliance further includes: One or more processors; A memory; One or more application programs, where one or more of the application programs are stored in the memory and configured to be executed by one or more of the processors, and one or more of the application programs are configured to execute the method according to any one of claims 1 to 6.
9. The electrical device according to claim 8, characterized in that, The magnetic induction device and the magnet are respectively disposed on the base and the cover, or the magnetic induction device and the magnet are respectively disposed on the base and the rotating shaft, or the magnetic induction device and the magnet are respectively disposed on the cover and the rotating shaft.
10. A computer-readable storage medium, characterized in that, Program code is stored in the computer-readable storage medium, and the program code is called by the processor to execute the method according to any one of claims 1 to 6.