Method and device for determining electronic recipe master control device, storage medium, and computer device
By incorporating electronic recipe control functions into cooking equipment and selecting equipment capable of executing cooking steps as the main control device, the problem of low efficiency in controlling multiple devices is solved, achieving more efficient execution of electronic recipes.
Patent Information
- Application Number
- CN202010843459.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-20
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2040-08-20
AI Technical Summary
In existing technologies, electronic recipes involve a large number of execution devices, resulting in high bandwidth consumption for control data transmission and low control efficiency.
The control function of the electronic recipe is built into the cooking equipment, and the equipment with the ability to execute cooking steps is selected as the main control equipment, thereby reducing the number of execution equipment.
It improves the efficiency of electronic recipe execution and control, reduces the number of connected devices, and lowers data transmission requirements.
Smart Images

Figure CN114078064B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent kitchen appliances, and in particular to a method and device for determining an electronic recipe master control device, a storage medium, and a computer device. Background Art
[0002] With the advancement of science and technology, people's living standards are constantly improving, and more and more people are beginning to pursue a higher quality of life. At the same time, the operation and management of the catering industry are affected by Internet technology, and the traditional catering industry has begun to explore the path of automation. Under this development trend, various intelligent cooking equipment has emerged, and more and more catering stores are using intelligent cooking equipment. However, an intelligent cooking device usually only has specific cooking functions, such as a batching machine has a batching function and a cooking machine has a cooking function, and an electronic recipe usually requires two or more intelligent cooking devices to collaborate to complete the execution, such as a batching machine and a cooking machine collaborating to complete an electronic recipe.
[0003] In the prior art, when selecting an execution device for an electronic recipe, an operator usually selects a cooking device with a cooking function closer to the recipe as the execution device for the electronic recipe on a central control machine based on his or her own experience, and each execution device is controlled by the central control machine. In this control mode, each cooking step of the electronic recipe requires the central control machine to control the corresponding execution device to execute, and the number of execution devices is large, and a large bandwidth is occupied when transmitting control data to the execution device. Summary of the invention
[0004] In view of this, the present application provides a method and device for determining an electronic recipe master control device, a storage medium, and a computer device, which integrates the control function of executing the electronic recipe into the cooking device, and selects the cooking device that has the ability to execute the cooking steps of the electronic recipe as the master control device, thereby effectively reducing the number of execution devices connected to the electronic recipe and helping to improve the execution control efficiency of the electronic recipe.
[0005] According to one aspect of the present application, a method for determining an electronic recipe master control device is provided, the method comprising:
[0006] receiving and parsing the electronic recipe to obtain at least one cooking step corresponding to the electronic recipe;
[0007] If the device capability of the current device meets the preset execution condition, the current device is determined as the main control device of the electronic recipe, wherein the preset execution condition includes that the device capability of the current device matches any cooking step.
[0008] Specifically, the electronic recipe is executed under the control of the main control device.
[0009] Specifically, determining the current device as the master control device of the electronic recipe specifically includes:
[0010] Obtaining the operating status of the current device;
[0011] If the operating state is a non-control state, the current device is determined as the main control device, wherein the non-control state indicates that the current device is not a main control device of any electronic recipe.
[0012] Specifically, if the running state is a non-control state, determining the current device as the master control device specifically includes:
[0013] If the operating state is the non-control state, obtaining a first cooking step that matches the device type of the current device, and determining whether the current device is allowed to execute all of the first cooking steps based on the remaining capacity of the current device;
[0014] If permitted, the current device is determined as the master device.
[0015] Specifically, after determining whether the current device is allowed to execute all the first cooking steps based on the remaining capacity, the method further includes:
[0016] If not allowed, obtain the number of the first cooking steps that the current device is allowed to execute, and ask other devices in a non-control state whether they are allowed to execute all the second cooking steps in the electronic recipe that match the remaining capabilities of the other devices, and if not allowed, use the device with the most cooking steps allowed to be executed between the current device and the other devices as the master control device.
[0017] Specifically, if the running state is a non-control state, determining the current device as the master control device specifically includes:
[0018] If the operating state is the non-control state, determining the number of the cooking steps that the current device is allowed to execute based on the remaining capacity of the current device;
[0019] When the ratio of the number of the cooking steps allowed to be executed to the total number of the cooking steps is greater than a preset ratio, the current device is determined as the master control device.
[0020] Specifically, after determining the current device as the master control device of the electronic recipe, the method further includes:
[0021] The operating state of the main control device is set to a control state.
[0022] Specifically, after setting the operating state of the main control device to the control state, the method further includes:
[0023] receiving a collaborative cooking step connection request;
[0024] The remaining capacity of the master device is obtained, and based on the remaining capacity of the master device, it is determined whether to accept the collaborative cooking step connection request.
[0025] Specifically, the method further includes:
[0026] The operation information of the current device is sent in real time, so that the server recommends an electronic recipe to the current device based on the operation information of the current device.
[0027] Specifically, after receiving and parsing the electronic recipe, the method further includes:
[0028] determining a target device type corresponding to the cooking step;
[0029] If the device type of the current device matches the target device type, it is determined that the device capability of the current device meets the preset execution condition.
[0030] Specifically, after obtaining the operating status of the current device, the method further includes:
[0031] If the operating state is a control state, the electronic recipe is sent to other devices, so that the other devices determine whether to serve as a master control device of the electronic recipe based on their own operating information.
[0032] Specifically, after sending the electronic recipe execution request to other devices, the method further includes:
[0033] If the other device is in the control state, based on the remaining capacity of the current device and the other devices, the device with the largest number of matching cooking steps corresponding to the electronic recipe is obtained as the main control device of the electronic recipe.
[0034] According to another aspect of the present application, a determination device of an electronic recipe master control device is provided, the device comprising:
[0035] An electronic recipe parsing module, used to receive and parse the electronic recipe to obtain at least one cooking step corresponding to the electronic recipe;
[0036] The main control device determination module is used to determine the current device as the main control device of the electronic recipe if the device capability of the current device meets the preset execution condition, wherein the preset execution condition includes that the device capability of the current device matches any cooking step.
[0037] Specifically, the electronic recipe is executed under the control of the main control device.
[0038] Specifically, the master control device determination module specifically includes:
[0039] An operating status acquisition unit, used to acquire the operating status of the current device;
[0040] The first master control device determining unit is configured to determine the current device as the master control device if the operating state is a non-control state, wherein the non-control state indicates that the current device is not a master control device of any electronic recipe.
[0041] Specifically, the first master control device determining unit specifically includes:
[0042] a first cooking step acquisition subunit, configured to acquire a first cooking step matching the device type of the current device if the operating state is the non-control state, and determine whether the current device is allowed to execute all of the first cooking steps based on the remaining capacity of the current device;
[0043] The first master control device determining subunit is configured to determine the current device as the master control device if permitted.
[0044] Specifically, the first master control device determining unit further includes:
[0045] The second master control device determines a subunit, which is used to determine whether the current device is allowed to execute all of the first cooking steps based on the remaining capacity. If not allowed, the subunit obtains the number of the first cooking steps allowed to be executed by the current device, inquires other devices in a non-control state whether they are allowed to execute all of the second cooking steps in the electronic recipe that match the remaining capacity of the other devices, and if not allowed, uses the device with the most cooking steps allowed to be executed between the current device and the other devices as the master control device.
[0046] Specifically, the first master control device determining unit further includes:
[0047] an executable step determination subunit, configured to determine the number of cooking steps that the current device is allowed to execute based on the remaining capacity of the current device if the operating state is the non-control state;
[0048] The third master control device determination subunit is configured to determine the current device as the master control device when a ratio of the number of the cooking steps allowed to be executed to the total number of the cooking steps is greater than a preset ratio.
[0049] Specifically, the device also includes:
[0050] The state switching module is used to set the operating state of the main control device to the control state after determining the current device as the main control device of the electronic recipe.
[0051] Specifically, the device also includes:
[0052] A collaborative step receiving module, configured to receive a collaborative cooking step connection request after setting the operating state of the main control device to a control state;
[0053] The collaborative capability judgment module is used to obtain the remaining capability of the main control device and determine whether to accept the collaborative cooking step connection request based on the remaining capability of the main control device.
[0054] Specifically, the device also includes:
[0055] The operation information reporting module is used to send the operation information of the current device in real time so that the server can recommend an electronic recipe to the current device based on the operation information of the current device.
[0056] Specifically, the device also includes:
[0057] A target device type determination module, configured to determine the target device type corresponding to the cooking step after receiving and parsing the electronic recipe;
[0058] The device type determination module is configured to determine whether the device capability of the current device satisfies the preset execution condition if the device type of the current device matches the target device type.
[0059] Specifically, the master control device determination module further includes:
[0060] The electronic recipe sending unit is used to obtain the operating status of the current device, and if the operating status is a control status, send the electronic recipe to other devices, so that other devices can determine whether to serve as the main control device of the electronic recipe based on their own operating information.
[0061] Specifically, the master control device determination module further includes:
[0062] The second master control device determination unit is used to send the electronic recipe execution request to other devices, and if the other devices are in the control state, then based on the remaining capacity of the current device and the other devices, obtain the device with the largest number of matching cooking steps corresponding to the electronic recipe as the master control device of the electronic recipe.
[0063] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned method for determining the electronic recipe master control device is implemented.
[0064] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned method for determining the electronic recipe master control device when executing the program.
[0065] By means of the above technical scheme, the present application provides a method and device for determining an electronic recipe master control device, a storage medium, and a computer device. When the current cooking device receives an electronic recipe, it first parses the electronic recipe to obtain at least one cooking step corresponding to the electronic recipe, and then determines whether there are steps in the cooking steps that can be executed on the current device based on the device capabilities of the current device, and determines the current device as the master control device of the electronic recipe when the current device can execute any cooking step. The embodiment of the present application sends an electronic recipe to a cooking device with certain cooking capabilities, and determines the current cooking device as the master control device of the electronic recipe when the current cooking device can execute at least one cooking step of the electronic recipe. Compared with the prior art, the control function of executing the electronic recipe is built into the cooking device, and the cooking device with the ability to execute the cooking steps of the electronic recipe is selected as the master control device, which effectively reduces the number of execution devices connected to the electronic recipe and helps to improve the execution control efficiency of the electronic recipe.
[0066] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0068] Figure 1 A flow chart of a method for determining an electronic recipe master control device provided in an embodiment of the present application is shown;
[0069] Figure 2 A schematic flow chart of another method for determining an electronic recipe master control device provided in an embodiment of the present application is shown;
[0070] Figure 3 A schematic diagram showing the structure of a determination device of an electronic recipe master control device provided in an embodiment of the present application is shown;
[0071] Figure 4 A structural schematic diagram of another determining device of an electronic recipe master control device provided in an embodiment of the present application is shown;
[0072] Figure 5 A schematic flow chart of a method for determining an electronic recipe collaboration device provided in an embodiment of the present application is shown;
[0073] Figure 6 A flow chart of another method for determining an electronic recipe collaboration device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0074] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0075] In this embodiment, a method for determining an electronic recipe master control device is provided, such as Figure 1 As shown, the method includes:
[0076] Step 101, receiving and parsing an electronic recipe to obtain at least one cooking step corresponding to the electronic recipe;
[0077] Step 102: If the device capability of the current device meets the preset execution condition, the current device is determined as the main control device of the electronic recipe, wherein the preset execution condition includes that the device capability of the current device matches any cooking step.
[0078] The method provided in the embodiment of the present application is applied to a cooking device to determine whether the cooking device is a master control device of an electronic recipe. The master control device is the opposite of a collaborative device of an electronic recipe. The master control device of an electronic recipe refers to a device that controls the execution of the electronic recipe, and the collaborative device of an electronic recipe refers to a device that assists in the execution of the electronic recipe. For a certain electronic recipe, the master control device of the electronic recipe has the authority to control the collaborative device, while the collaborative device cannot control the execution of the master control device. For example, for a certain electronic recipe, the master control device is an intelligent cooking machine, and the collaborative device is a batching machine. The intelligent cooking machine can control the batching machine to perform batching tasks, but the batching machine cannot control the intelligent cooking machine to perform any tasks. Whether a cooking device is a master device or a collaborative device refers to an electronic recipe that needs to be executed or is being executed. A cooking device can play the role of a master device and a collaborative device at the same time. For example, for electronic recipe 1, a batching machine is a master device, and for electronic recipe 2, the batching machine is a collaborative device. For electronic recipe 1, the batching machine needs to control other collaborative devices to complete recipe 1 together, while for electronic recipe 2, the batching machine only needs to accept the control of the master device corresponding to recipe 2 and assist it in completing recipe 2. In addition, it should be noted that the master device can be a cooking device with cooking function, or a control device that only has a control function but no cooking function. When the master device is a control device, the master device only completes the control work of the collaborative device without performing the actual cooking task, and when the master device is a cooking device, the master device can perform cooking tasks or not.
[0079] In the above embodiment, the electronic recipe of a dish may include multiple cooking steps, such as adding ingredients, adding seasonings, stir-frying, etc. Generally speaking, cooking equipment such as batching machines, cooking machines, etc. may only be able to complete part of the cooking functions. An electronic recipe usually requires multiple cooking devices to work together to execute. Since the electronic recipe is executed under the control of the master control device, in order to reduce the number of execution devices of the electronic recipe, the embodiment of the present application stipulates the conditions that the master control device must meet. In a specific application scenario, if the device capability of the current device does not meet the execution condition of any cooking step, then if the current device is used as the master control device of the electronic recipe, the device can only complete the control work of other collaborative devices, and cannot realize the execution work of any cooking step. It is also necessary to determine the execution device corresponding to each cooking step for each cooking step, which undoubtedly increases the number of associated devices of the electronic recipe and increases the control amount of the master control device. Therefore, in this embodiment, if the device capability of the current device does not meet the execution condition of any cooking step, the current device is not used as the master control device of the electronic recipe. On the contrary, if the device capability of the current device can execute at least one cooking step, the current device can be determined as the master control device of the electronic recipe. It should be pointed out that in order to ensure that at least one cooking step of the electronic recipe is ultimately executed on the master device, it can be determined whether the device can serve as the master device based on the remaining capacity of the device, that is, if the remaining capacity of the current device allows the execution of at least one step, the current device will be used as the master device.
[0080] It should be noted that before determining whether the current device is the master device of the electronic recipe, the electronic recipe should be parsed to obtain the cooking steps corresponding to the electronic recipe, so as to determine whether the current device is the master device of the electronic recipe based on the cooking steps. In addition, the electronic recipe can be parsed and obtained based on the received electronic recipe execution request. For example, the user sends an electronic recipe execution request to the current cooking device through the cooking device control terminal to inquire whether the current device can be used as the master device of the electronic recipe. After the current device receives the electronic recipe execution request, it parses the electronic recipe to obtain multiple cooking steps. If any one of the steps can be executed, it is determined that the current device can be used as the master device of the electronic recipe. Otherwise, it cannot be used as the master device of the electronic recipe. It is also possible to first reserve an electronic recipe in the cooking device, and then parse the electronic recipe when the set execution conditions of the electronic recipe are met, and then determine whether the current device can be used as the master device of the electronic recipe. For example, the user has reserved the execution of an electronic recipe at 5 o'clock in the current cooking device. At 5 o'clock, the current device can execute the electronic recipe. The electronic recipe is parsed a few minutes before 12:00 or 5:00 to make a judgment (of course, it can also be judged in combination with the device capabilities of the current device when booking the electronic recipe). In some specific application scenarios, in order to ensure that the master device participates in the execution of at least one cooking step of the electronic recipe, when determining whether the current device can be used as the master device of the electronic recipe, it can also be analyzed based on the execution time of the electronic recipe whether the remaining capacity of the current device at the execution time allows the execution of any cooking step. For example, the electronic recipe is set to execute immediately or as soon as possible, the current device is a batching machine, and the batching machine is idle at this time. The electronic recipe contains a batching step, then the batching machine can at least execute the batching step in the electronic recipe, and the batching machine can serve as the master device of the electronic recipe. In actual applications, the cooking device can also obtain the electronic recipe through other methods well known to those skilled in the art, such as user input on the device, etc., which will not be repeated here.
[0081] In addition, in the embodiment of the present application, the electronic recipe is executed under the control of the master device. In order to avoid control confusion, each electronic recipe corresponds to a master device, and a cooking device generally only serves as a master device for an electronic recipe at the same time. Of course, if the configuration of the cooking device is higher, it can also serve as a master device for two or more electronic recipes at the same time.
[0082] By applying the technical solution of this embodiment, when the current cooking device receives an electronic recipe, it first parses the electronic recipe to obtain at least one cooking step corresponding to the electronic recipe, and then determines whether there are steps in the cooking steps that can be executed on the current device based on the device capabilities of the current device, and determines the current device as the master control device of the electronic recipe when the current device can execute any cooking step. The embodiment of the present application sends an electronic recipe to a cooking device with certain cooking capabilities, and determines the current cooking device as the master control device of the electronic recipe when the current cooking device can execute at least one cooking step of the electronic recipe. Compared with the prior art, the control function of executing the electronic recipe is built into the cooking device, and the cooking device that has the ability to execute the cooking steps of the electronic recipe is selected as the master control device, which effectively reduces the number of devices connected to the execution of the electronic recipe and helps to improve the execution control efficiency of the electronic recipe.
[0083] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for determining the electronic recipe master control device is provided, such as Figure 2 As shown, the method includes:
[0084] Step 201, receiving and parsing an electronic recipe to obtain at least one cooking step corresponding to the electronic recipe;
[0085] Step 202, determining the target device type corresponding to the cooking step;
[0086] Step 203: If the device type of the current device matches the target device type, it is determined that the device capability of the current device meets the preset execution condition;
[0087] Step 204: if the device capability of the current device meets the preset execution condition, the operation status of the current device is obtained;
[0088] Step 205: If the running state is a non-control state, the current device is determined to be a master control device, wherein the non-control state indicates that the current device is not a master control device of any electronic recipe.
[0089] In steps 201 to 205, after the electronic recipe is received and parsed, in order to determine whether the cooking function corresponding to the current device matches the cooking steps of the electronic recipe, the target device type corresponding to each cooking step is first obtained. For example, the target device types corresponding to the ingredient step include handheld ingredient dispensers, desktop ingredient dispensers, ingredient cup ingredient dispensers, etc., and the target device types corresponding to the stir-fry step include all-in-one machines, woks, etc., and then it is determined whether the device type of the current device matches any of the target device types. If it matches, it means that the current device has the ability to execute at least a certain cooking step, that is, the device capability of the current device meets the preset execution conditions. As for whether the current device will be unable to execute the corresponding cooking step due to being occupied when the electronic recipe is executed, it can be further determined in the subsequent process. After determining that the device capability of the current device meets the preset execution conditions, the operating status of the current device can be further obtained, and when the operating status of the current device is a non-control state, the current device can be used as the master device of the electronic recipe. The non-control state of the cooking device means that the cooking device is not serving as the master device of any electronic recipe at this time, or it can be said that it currently has the execution control capability of the electronic recipe. In addition, in some actual application scenarios, if the device configuration of the current device allows it to serve as the master device of two or more electronic recipes at the same time, in step 205, the condition for the current device to serve as the master device should be that at least one control module of the current device is in a non-control state. For example, the current device has two control modules, each of which can control the execution of an electronic recipe. If one of the control modules is in a non-control state, the current device can be used as the master device of the electronic recipe.
[0090] Furthermore, in order to ensure that the number of devices accessing the electronic recipe execution is as small as possible and reduce the working pressure of the main control device, the embodiment of the present application also provides the following two methods for selecting a better main control device, that is, step 205 may specifically include:
[0091] Method 1:
[0092] Step 205-A-1, if the operation state is a non-control state, obtaining a first cooking step that matches the device type of the current device, and determining whether the current device is allowed to execute all the first cooking steps based on the remaining capacity of the current device;
[0093] Step 205-A-2: if allowed, determine the current device as the master device;
[0094] Step 205-A-3, if not allowed, obtain the number of first cooking steps allowed to be executed by the current device, and ask other devices in a non-control state whether they are allowed to execute all second cooking steps in the electronic recipe that match the remaining capabilities of other devices, and if not allowed, use the device with the most cooking steps allowed to be executed among the current device and other devices as the master control device.
[0095] In the embodiment of the first method, if the current device is in a non-control state, the step matching the device type of the current device can be further found in all the cooking steps, and marked as the first cooking step. For example, if the current device is a cooking machine, all the steps that can be executed by the cooking machine in all the cooking steps of the electronic recipe are found as the first cooking step. Then, it is judged whether the remaining capacity of the current device can execute all the first cooking steps. For example, some functions of the cooking machine are being occupied, and when executing a cooking step related to the cooking machine in the electronic recipe, the occupied function happens to be used, which means that the remaining capacity of the cooking machine cannot execute all the first cooking steps. If the cooking steps related to the cooking machine can all be executed in the current cooking machine, it means that the remaining capacity of the cooking machine can execute all the first cooking steps. Finally, based on the above judgment result, if the judgment result is that the current device can execute all the first cooking steps, the current device is directly used as the main control device. At this time, all the first cooking steps matching the device type of the current device in the electronic recipe can be executed in the main control device. For the electronic recipe, only one cooking device needs to be connected to execute all the first cooking steps, which can reduce the number of cooking devices connected to the electronic recipe. If the judgment result is that the current device cannot execute all the first cooking steps, then it is determined whether other cooking devices in a non-control state can be used as master devices in the manner described in the above steps 205-A-1 and 205-A-2. If other devices can execute all the second cooking steps that match their device types, then the corresponding other cooking devices are used as the master devices of the electronic recipe. For example, if there is a batching machine that is also in a non-control state, and it is determined based on the remaining capacity of the batching machine that all the batching steps of the electronic recipe can be executed in this batching machine, then this batching machine can be used as the master device of the electronic recipe. If the current device and other devices cannot be used as master devices according to the requirements of steps 205-A-1 and 205-A-2, then the device that can execute the most cooking steps is used as the master device of the electronic recipe to reduce the amount of control of the master device over other devices and reduce the network bandwidth occupied by data transmission during the control process.
[0096] Method 2:
[0097] Step 205-B-1, if the operation state is a non-control state, determining the number of cooking steps that the current device is allowed to execute based on the remaining capacity of the current device;
[0098] Step 205-B-2, when the ratio of the number of cooking steps allowed to be executed to the total number of cooking steps is greater than a preset ratio, the current device is determined as the master control device.
[0099] In the embodiment of the second method, if the current device is in a non-control state, the number of cooking steps that the current device can execute is further determined based on the remaining capacity of the current device. If the number is greater than a certain value, the current device is directly used as the master device. For example, if the electronic recipe corresponds to 10 cooking steps, if the current device can execute 5 or more of the steps, the current device is directly used as the master device, which reduces the time for determining whether other devices are master devices, improves the efficiency of selecting master devices, and thus improves cooking efficiency. On the other hand, if the current device can execute fewer cooking steps, it is necessary to further determine whether other devices can execute more steps, so that the device that can execute the most cooking steps is used as the master device of the electronic recipe, ensuring that the electronic recipe can complete the execution of all cooking steps by connecting fewer cooking devices, reducing the number of connected devices, and improving control efficiency.
[0100] Step 206, if the operation state is the control state, the electronic recipe is sent to other devices, so that the other devices determine whether to serve as the master control device of the electronic recipe based on their own operation information;
[0101] Step 207: If the other devices are in the control state, based on the remaining capacity of the current device and the other devices, the device with the largest number of cooking steps matching the electronic recipe is obtained as the main control device of the electronic recipe.
[0102] In step 206 and step 207, if the current device is in the control state, that is, the current device is currently used as the master device of other electronic recipes, then the electronic recipe can be forwarded to other cooking devices. Other devices determine whether they can be used as the master device of the electronic recipe based on their own operating information and the cooking steps corresponding to the electronic recipe. The operating information of the device includes the operating status of the device, the remaining capacity, etc. The specific judgment method can refer to step 201 to step 205, which will not be repeated here. In a special case, the current device and other devices are both in the control state. At this time, the device that can execute the most cooking steps in the cooking device can be found as the master device.
[0103] Step 208, setting the operating state of the master control device to a control state;
[0104] Step 209, receiving a collaborative cooking step connection request;
[0105] Step 210: Obtain the remaining capacity of the master device, and determine whether to accept the collaborative cooking step connection request based on the remaining capacity of the master device.
[0106] In steps 208 to 210, if the current device is determined to be the master device of the electronic recipe, the operating state of the master device is set to the control state. In the control state of the cooking device, the cooking device generally cannot serve as the master device of other electronic recipes, but can serve as a collaborative device of other electronic recipes and accept the control of the master devices corresponding to other electronic recipes to assist in executing the corresponding cooking steps. For example, cooking device A is the master device of electronic recipe 1, and cooking device B is the master device of electronic recipe 2. Under this premise, device A can accept the collaborative cooking step connection request sent by device B for electronic recipe 2, and choose whether to respond to the request based on the remaining capacity of device A. If the remaining capacity allows the execution of the above-mentioned collaborative cooking steps, the request is accepted; otherwise, the request is rejected.
[0107] In addition, it should be noted that step 209 and step 210 can be executed before or after any step of the embodiment of the present application or simultaneously with any step, that is, whether the cooking device is in a control state or a non-control state, it can receive a collaborative cooking step connection request and determine whether the request can be accepted based on the remaining capacity.
[0108] In any embodiment of the present application, specifically, it also includes: sending the operating information of the current device in real time, so that the server recommends an electronic recipe to the current device based on the operating information of the current device.
[0109] In this embodiment, the current device can send operating information such as operating status and remaining capacity to the cloud server in real time, so that the cloud server can recommend electronic recipes to the current device based on the operating information of the current device. Specifically, the cloud server can directly assign the electronic recipes to be executed to the cooking device that can serve as the master control device according to the operating information of each device, and complete the calculation of determining the master control device of the electronic recipe on the cloud server, and the calculation is completed by a server with stronger computing power to reduce the amount of calculation of the cooking device.
[0110] In addition, if Figure 5 As shown, after determining the main control device of the electronic recipe, if the main control device cannot complete all the cooking steps corresponding to the electronic recipe, the embodiment of the present application also includes a method for determining a cooperative device of the electronic recipe, which may specifically include:
[0111] Step 401, in the cooking steps, determining the complete cooking steps that match the remaining capacity of the current device and the collaborative cooking steps that do not match the remaining capacity of the current device;
[0112] Step 402, determining and sending an electronic recipe connection request based on the collaborative cooking steps;
[0113] Step 403, based on the received electronic recipe matching degree information and the collaborative cooking steps, selecting collaborative devices corresponding to the collaborative cooking steps from the target cooking devices;
[0114] Step 404: Establish a connection with a cooperative device.
[0115] In the above embodiment, the complete cooking steps that the main control device is capable of executing can be first screened out from the cooking steps corresponding to the electronic recipe, so that the main control device can be used to execute these complete cooking steps, reduce the number of device accesses, reduce resource usage, and use the remaining steps as collaborative cooking steps that require other devices to assist in completing, and then find out the device that can execute the collaborative cooking steps. Specifically, an electronic recipe connection request can be generated based on the collaborative cooking steps, and after receiving the electronic recipe matching degree information, the collaborative device can be screened to establish a connection with the collaborative device.
[0116] In the embodiments of the present application, Figure 6 As shown, in order to reduce the number of execution devices required for the electronic recipe and reduce the occupation of system resources, step 403 may specifically include:
[0117] Step 403-1, determining whether any electronic recipe matching degree information among the received electronic recipe matching degree information matches all collaborative cooking steps;
[0118] Step 403-2: if any, determine the target cooking device corresponding to the matching degree information of any electronic recipe as a cooperative device;
[0119] Step 403-3: If it does not exist, the target cooking device that matches the most steps in the collaborative cooking steps is used as the collaborative device;
[0120] Step 403-4, determining remaining collaborative cooking steps based on the electronic recipe matching degree information corresponding to the collaborative device and the collaborative cooking steps;
[0121] Step 403-5: Acquire collaborative devices matching the remaining collaborative cooking steps from the target cooking devices.
[0122] In the above embodiment, the main control device can receive the electronic recipe matching degree information sent by multiple devices, so as to screen cooperative devices from multiple devices. First, determine whether there is a device that can perform all the cooperative cooking steps. If so, directly use this device as the cooperative cooking device, so that the main control device only needs to establish a connection with this device to complete all the cooking steps of the electronic recipe; secondly, if there is no device that can perform all the cooperative cooking steps, find the device that can perform the most cooperative cooking steps from multiple devices, use this device as the first cooperative device, and then search for other cooperative devices based on the first cooperative device, that is, remove the steps that can be performed by the first cooperative device from all the cooperative cooking steps to obtain the remaining cooperative cooking steps, and then continue to find devices that can complete the remaining cooperative cooking steps as cooperative devices; finally, all the cooperative devices that can perform the cooperative cooking steps are obtained, so that the main control device can establish a connection with the cooperative device to complete the electronic recipe.
[0123] For example, an electronic recipe corresponds to 5 cooking steps. Assuming that the main control device can execute steps 1 and 3, and steps 2, 4 and 5 are collaborative cooking steps, the main control device receives the electronic recipe matching degree information fed back by multiple devices. First, based on the electronic recipe matching degree information, it is queried whether there is a device that can execute steps 2, 4 and 5. If there is a device that can execute all collaborative cooking steps (that is, steps 2, 4 and 5), this device is used as the only collaborative device. If there is no device that can execute all collaborative cooking steps, it is queried whether there is a device that can execute two cooking steps in steps 2, 4 and 5. If there is a device that can execute two collaborative cooking steps, this device is used as a collaborative device. Assuming that a device that can execute steps 2 and 4 is used as a collaborative device, continue to query the device that can execute step 5 and use it as a collaborative device.
[0124] Further, as Figure 1 In a specific implementation of the method, the present application embodiment provides a determination device of an electronic recipe master control device, such as Figure 3 As shown, the device comprises:
[0125] The electronic recipe parsing module 31 is used to receive and parse the electronic recipe to obtain at least one cooking step corresponding to the electronic recipe;
[0126] The master device determination module 32 is used to determine the current device as the master device of the electronic recipe if the device capability of the current device meets the preset execution condition, wherein the preset execution condition includes that the device capability of the current device matches any cooking step.
[0127] Specifically, the electronic recipe is executed under the control of the main control device.
[0128] In specific application scenarios, such as Figure 4 As shown, the master control device determination module 32 specifically includes:
[0129] The operation status acquisition unit 321 is used to acquire the operation status of the current device;
[0130] The first master control device determining unit 322 is used to determine the current device as the master control device if the running state is a non-control state, wherein the non-control state indicates that the current device is not a master control device of any electronic recipe.
[0131] In specific application scenarios, such as Figure 4 As shown, the first master control device determining unit 322 specifically includes:
[0132] The first cooking step acquisition subunit 3221 is used for acquiring the first cooking step matching the device type of the current device if the operation state is the non-control state, and judging whether the current device is allowed to execute all the first cooking steps based on the remaining capacity of the current device;
[0133] The first master device determining subunit 3222 is configured to determine the current device as the master device if permitted.
[0134] In specific application scenarios, such as Figure 4 As shown, the first master device determining unit 322 specifically further includes:
[0135] The second master control device determines the sub-unit 3223, which is used to determine whether the current device is allowed to execute all the first cooking steps based on the remaining capacity. If not allowed, it obtains the number of first cooking steps allowed to be executed by the current device, and inquires other devices in a non-control state whether they are allowed to execute all the second cooking steps in the electronic recipe that match the remaining capacity of other devices. If not allowed, the device with the most cooking steps allowed to be executed among the current device and other devices is used as the master control device.
[0136] In specific application scenarios, such as Figure 4 As shown, the first master device determining unit 322 specifically further includes:
[0137] The executable step determination subunit 3224 is used to determine the number of cooking steps that the current device is allowed to execute based on the remaining capacity of the current device if the operating state is a non-control state;
[0138] The third master control device determination subunit 3225 is configured to determine the current device as the master control device when the ratio of the number of cooking steps allowed to be executed to the total number of cooking steps is greater than a preset ratio.
[0139] In specific application scenarios, such as Figure 4 As shown, the device also includes:
[0140] The state switching module 33 is used to set the operating state of the main control device to the control state after determining the current device as the main control device of the electronic recipe.
[0141] In specific application scenarios, such as Figure 4 As shown, the device also includes:
[0142] A collaborative step receiving module 34, configured to receive a collaborative cooking step connection request after setting the operating state of the main control device to the control state;
[0143] The collaborative capability determination module 35 is used to obtain the remaining capability of the master device and determine whether to accept the collaborative cooking step connection request based on the remaining capability of the master device.
[0144] In specific application scenarios, such as Figure 4 As shown, the device also includes:
[0145] The operation information reporting module 36 is used to send the operation information of the current device in real time, so that the server can recommend an electronic recipe to the current device based on the operation information of the current device.
[0146] In specific application scenarios, such as Figure 4 As shown, the device also includes:
[0147] A target device type determination module 37 is used to determine the target device type corresponding to the cooking steps after receiving and parsing the electronic recipe;
[0148] The device type determination module 38 is configured to determine whether the device capability of the current device meets a preset execution condition if the device type of the current device matches the target device type.
[0149] In specific application scenarios, such as Figure 4 As shown, the master control device determination module 32 specifically includes:
[0150] The electronic recipe sending unit 323 is used to obtain the operating status of the current device. If the operating status is a control status, the electronic recipe is sent to other devices, so that other devices can determine whether to serve as the main control device of the electronic recipe based on their own operating information.
[0151] In specific application scenarios, such as Figure 4 As shown, the master control device determination module 32 specifically includes:
[0152] The second master control device determination unit 324 is used to send the electronic recipe execution request to other devices. If the other devices are in a control state, based on the remaining capabilities of the current device and other devices, obtain the device with the largest number of cooking steps matching the electronic recipe as the master control device of the electronic recipe.
[0153] It should be noted that for other corresponding descriptions of the functional units involved in the determination device of the electronic recipe master control device provided in the embodiment of the present application, reference can be made to Figure 1 and Figure 2 The corresponding description in the method will not be repeated here.
[0154] Based on the above Figure 1 and Figure 2 The method shown in the embodiment of the present application is accordingly provided with a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figure 1 and Figure 2 The method for determining the electronic recipe master control device is shown.
[0155] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0156] Based on the above Figure 1 , Figure 2 The method shown, and Figure 3 , Figure 4 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides a computer device, which can be a personal computer, a server, a network device, etc. The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The method for determining the electronic recipe master control device is shown.
[0157] Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.
[0158] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0159] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.
[0160] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by means of hardware. When the current cooking device receives an electronic recipe, it first parses the electronic recipe to obtain at least one cooking step corresponding to the electronic recipe, and then determines whether there are steps in the cooking steps that can be executed on the current device based on the device capabilities of the current device, and determines the current device as the master control device of the electronic recipe when the current device can execute any cooking step. The embodiment of the present application sends an electronic recipe to a cooking device with certain cooking capabilities, and determines the current cooking device as the master control device of the electronic recipe when the current cooking device can execute at least one cooking step of the electronic recipe. Compared with the prior art, the control function of executing the electronic recipe is built into the cooking device, and the cooking device with the ability to execute the cooking steps of the electronic recipe is selected as the master control device, which effectively reduces the number of devices connected to the execution of the electronic recipe and helps to improve the execution control efficiency of the electronic recipe.
[0161] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.
[0162] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.
Claims
1. A method for determining an electronic recipe master control device, characterized in that: Applied to cooking equipment, the method comprises: receiving and parsing the electronic recipe to obtain at least one cooking step corresponding to the electronic recipe; If the current device has the ability to execute at least one cooking step, then when the current device is not a master control device of any electronic recipe, the current device is determined as the master control device of the electronic recipe, wherein the current device is a cooking device.
2. The method according to claim 1, characterized in that The electronic recipe is executed under the control of the main control device.
3. The method according to claim 2, characterized in that The step of determining the current device as the master control device of the electronic recipe specifically includes: Obtaining the operating status of the current device; If the operating state is a non-control state, the current device is determined as the main control device, wherein the non-control state indicates that the current device is not a main control device of any electronic recipe.
4. The method according to claim 3, characterized in that If the running state is a non-control state, determining the current device as the master control device specifically includes: If the operating state is the non-control state, obtaining a first cooking step that matches the device type of the current device, and determining whether the current device has the ability to execute all of the first cooking steps; If so, the current device is determined as the master control device.
5. The method according to claim 4, characterized in that After determining whether the current device has the ability to perform all of the first cooking steps, the method further includes: If not, obtain the number of the first cooking steps that the current device is allowed to execute, and ask other devices in a non-control state whether they are allowed to execute all the second cooking steps in the electronic recipe that match the remaining capabilities of the other devices, and if not allowed, use the device with the most cooking steps allowed to be executed between the current device and the other devices as the main control device.
6. The method according to claim 3, characterized in that If the running state is a non-control state, determining the current device as the master control device specifically includes: If the operating state is the non-control state, determining the number of the cooking steps that the current device is allowed to execute based on the remaining capacity of the current device; When the ratio of the number of the cooking steps allowed to be executed to the total number of the cooking steps is greater than a preset ratio, the current device is determined as the master control device.
7. The method according to any one of claims 1 to 6, characterized in that After determining the current device as the master control device of the electronic recipe, the method further includes: The operating state of the main control device is set to a control state.
8. The method according to claim 7, characterized in that After setting the operating state of the main control device to the control state, the method further includes: receiving a collaborative cooking step connection request; The remaining capacity of the master device is obtained, and based on the remaining capacity of the master device, it is determined whether to accept the collaborative cooking step connection request.
9. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The operation information of the current device is sent in real time, so that the server recommends an electronic recipe to the current device based on the operation information of the current device.
10. The method according to any one of claims 1 to 6, characterized in that After receiving and parsing the electronic recipe, the method further includes: determining a target device type corresponding to the cooking step; If the device type of the current device matches the target device type, it is determined that the device capability of the current device meets the preset execution condition.
11. The method according to claim 3, characterized in that After obtaining the operating status of the current device, the method further includes: If the operating state is a control state, the electronic recipe is sent to other devices, so that the other devices determine whether to serve as a master control device of the electronic recipe based on their own operating information.
12. The method according to claim 11, characterized in that After sending the electronic recipe execution request to other devices, the method further includes: If the other device is in the control state, based on the remaining capacity of the current device and the other devices, the device with the largest number of matching cooking steps corresponding to the electronic recipe is obtained as the main control device of the electronic recipe.
13. A determination device for an electronic recipe master control device, characterized in that: Applied to cooking equipment, the device comprises: An electronic recipe parsing module, used to receive and parse the electronic recipe to obtain at least one cooking step corresponding to the electronic recipe; A master control device determination module is used to determine the current device as the master control device of the electronic recipe if the current device has the ability to execute at least one cooking step and the current device does not belong to the master control device of any electronic recipe, wherein the current device is a cooking device.
14. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining the electronic recipe master control device according to any one of claims 1 to 12 is implemented.
15. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method for determining the electronic recipe master control device according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Intelligent kitchen host, and work method and control method of intelligent kitchen host
CN104133387A
Recipe system
CN107851397A