Electronic recipe execution method, kitchen appliance, storage medium and computer device

By analyzing and executing electronic recipes in kitchen appliances, and using equipment identification information and description files to access the equipment uniformly, the problems that differences in equipment interfaces and adjustment changes in the prior art affect the use of recipes are solved, and efficient and stable electronic recipe execution is achieved.

CN114078065BActive Publication Date: 2025-04-25ZHUHAI UNICOOK TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010843474.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-20
Publication Date
2025-04-25
Estimated Expiration
2040-08-20

AI Technical Summary

Technical Problem

The existing electronic recipe execution method requires the central control host to directly face the interface rules and attributes of different categories of kitchen appliances, making it difficult to access and handle equipment adjustment changes in a unified manner, affecting the efficiency of recipe use, and there is a problem of transit execution instructions, reducing efficiency.

Method used

By analyzing and executing electronic recipes in kitchen appliances, loading device description files using device identification information, determining and executing operation instructions based on cooking information and device description files, avoiding direct face of device interface rules and attributes, realizing stable interface calls, and directly executing instructions within the device to improve efficiency.

Benefits of technology

It solves the problem that differences in equipment interfaces and adjustment changes affect the use of recipes, improves the execution efficiency of electronic recipes, maintains the stability of the interface between the recipes and equipment description files, and saves resource costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114078065B_ABST
    Figure CN114078065B_ABST
Patent Text Reader

Abstract

The present invention discloses an execution method of an electronic recipe, a kitchen appliance, a storage medium and a computer device, and relates to the field of intelligent control. The main purpose is to avoid the electronic recipe from directly facing the interface rules, properties, etc. of the kitchen appliance, and to prevent the use of the electronic recipe from being affected when the kitchen appliance is adjusted and changed. By directly parsing and executing the electronic recipe in the kitchen appliance, the transfer of execution instructions is avoided, and the execution efficiency of the electronic recipe can be improved. The method includes: parsing the electronic recipe to be executed to obtain the identification information of the kitchen appliance involved in the electronic recipe; according to the identification information, loading the device description file corresponding to the identification information; according to the cooking information in the electronic recipe and the device description file, determining and executing the operation instructions corresponding to the kitchen appliance. The present invention is suitable for calibrating the batching accuracy of a batching machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control technology, and in particular to an electronic recipe execution method, kitchen appliances, storage media and computer equipment. Background Art

[0002] With the continuous development of science and technology, various types of kitchen appliances have gradually entered people's daily lives. According to the electronic recipes selected by users, different types of kitchen appliances can complete the corresponding cooking tasks, bringing convenience to people's daily cooking.

[0003] At present, the central control host usually parses the electronic recipe and sends the parsed instructions to the corresponding kitchen appliances for execution. However, when operating the electronic recipe, the central control host needs to directly face the interface rules and device attributes of various kitchen appliances. Since the development interfaces and attributes of different categories of kitchen appliances are different, it is difficult to access them in a consistent format in the electronic recipe. When the kitchen appliances are adjusted or changed, the electronic recipe needs to be modified, otherwise it will affect the use of the electronic recipe. In addition, the central control host first parses the electronic recipe and then sends the parsed instructions to the corresponding kitchen appliances for execution, which will cause the execution instructions to be transferred, thereby reducing the efficiency of recipe execution. Summary of the invention

[0004] The present invention provides an electronic recipe execution method, kitchen appliances, storage media and computer equipment, which are mainly capable of preventing the electronic recipe from directly facing the interface rules, properties, etc. of the kitchen appliances, preventing the use of the electronic recipe from being affected when the kitchen appliances are adjusted or changed, and avoiding the transfer of execution instructions by directly parsing and executing the electronic recipe in the kitchen appliances, thereby improving the execution efficiency of the electronic recipe.

[0005] According to a first aspect of the present invention, there is provided a method for executing an electronic recipe, comprising:

[0006] Parsing the electronic recipe to be executed to obtain identification information of the kitchen appliances involved in the electronic recipe;

[0007] According to the identification information, loading a device description file corresponding to the identification information;

[0008] According to the cooking information in the electronic recipe and the device description file, the operation instructions corresponding to the kitchen appliance are determined and executed.

[0009] Optionally, determining and executing an operation instruction corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the cooking information in the device description file includes:

[0010] Determining the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file;

[0011] According to the interface rules defined in the device description file, the interface corresponding to the kitchen appliance is called to execute the operation instruction.

[0012] Optionally, after parsing the electronic recipe to be executed to obtain identification information of the kitchen appliances involved in the electronic recipe, the method further includes:

[0013] If the devices involved also include other kitchen appliances, then the device description files of the kitchen appliance and the other kitchen appliances are loaded according to the identification information of the kitchen appliance and the identification information of the other kitchen appliances respectively;

[0014] Determine and execute the operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and the device description file corresponding to the kitchen appliance;

[0015] According to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances, the operation instructions corresponding to the other kitchen appliances are determined respectively, and the operation instructions corresponding to the other kitchen appliances are sent to the corresponding kitchen appliances for execution.

[0016] Optionally, sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution includes:

[0017] According to the interface rules defined in the device description files corresponding to the other kitchen appliances, the interfaces corresponding to the other kitchen appliances are called respectively, and the operation instructions corresponding to the other kitchen appliances are sent to the corresponding kitchen appliances for execution.

[0018] Optionally, before sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution, the method further includes:

[0019] Determine the category information and quantity information corresponding to each of the other kitchen appliances;

[0020] Sending a request for establishing a connection to surrounding kitchen appliances to be used, wherein the request carries the category information, so that each kitchen appliance in the kitchen appliances to be used that meets the category information establishes a connection with the kitchen appliance;

[0021] receiving connection feedback information sent by each kitchen appliance, and judging whether the connection quantity of each kitchen appliance reaches its corresponding quantity information based on the received connection feedback information;

[0022] If the quantity information is not reached, continue to send requests for establishing connections to the surrounding kitchen appliances to be used until the connection quantity of each kitchen appliance reaches its corresponding quantity information.

[0023] Optionally, after parsing the electronic recipe to be executed to obtain identification information of devices involved in the electronic recipe, the method further includes:

[0024] If the devices involved also include other kitchen appliances, downloading respective device description files on the kitchen appliance and the other kitchen appliances respectively according to the identification information of the kitchen appliance and the identification information of the other kitchen appliances;

[0025] Determine and execute the operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and the device description file corresponding to the kitchen appliance;

[0026] According to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances, corresponding operation instructions are determined and executed on the respective devices of the other kitchen appliances.

[0027] Optionally, before parsing the electronic recipe to be executed to obtain identification information of devices involved in the electronic recipe, the method further includes:

[0028] Device description files corresponding to different kitchen appliances are created, and identification information corresponding to the different kitchen appliances and the device description files are associated and stored.

[0029] Optionally, the device description file defines execution scripts corresponding to device services, device reporting events and / or device attributes, respectively, and the execution scripts provide consistent interface rules to the outside.

[0030] Optionally, the method further comprises:

[0031] receiving an adjustment request for a kitchen appliance, wherein the adjustment request carries identification information of the kitchen appliance and equipment adjustment information;

[0032] According to the identification information, loading a device description file corresponding to the identification information;

[0033] The execution script in the device description file is adjusted according to the device adjustment information.

[0034] Optionally, before parsing the electronic recipe to be executed to obtain identification information of devices involved in the electronic recipe, the method further includes:

[0035] Obtaining device description files corresponding to various kitchen appliances involved in the electronic recipe;

[0036] The electronic recipe is created according to the device services, device reported events and / or device properties defined in each device description file, wherein the device services, device reported events and / or device properties are defined in a unified format in the device description file.

[0037] According to a second aspect of the present invention, there is provided a kitchen appliance, comprising:

[0038] A parsing unit, used to parse the electronic recipe to be executed, and obtain identification information of the kitchen appliances involved in the electronic recipe;

[0039] A loading unit is used to load a device description file corresponding to the identification information according to the identification information;

[0040] The execution unit is used to determine and execute the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file.

[0041] Optionally, the execution unit includes: a determination module and an execution module.

[0042] The determining module is used to determine the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file;

[0043] The execution module is used to call the interface corresponding to the kitchen appliance to execute the operation instruction according to the interface rule defined in the device description file.

[0044] Optionally, the device further includes: a sending unit,

[0045] The loading unit is further configured to load the device description files of the kitchen appliance and the other kitchen appliance respectively according to the identification information of the kitchen appliance and the identification information of the other kitchen appliance if the devices involved also include other kitchen appliances;

[0046] The execution unit is further used to determine and execute the operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and the device description file corresponding to the kitchen appliance;

[0047] The sending unit is used to determine the operation instructions corresponding to the other kitchen appliances according to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances, and send the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution.

[0048] Optionally, the sending unit is specifically used to call the interfaces corresponding to the other kitchen appliances according to the interface rules defined in the device description files corresponding to the other kitchen appliances, and send the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution.

[0049] Optionally, the device further comprises: a determining unit and a receiving unit,

[0050] The determining unit is used to determine the category information and quantity information corresponding to each of the other kitchen appliances;

[0051] The sending unit is further used to send a request for establishing a connection to surrounding kitchen appliances to be used, wherein the request carries the category information, so that each kitchen appliance in the kitchen appliances to be used that meets the category information establishes a connection with the kitchen appliance;

[0052] The receiving unit is configured to receive connection feedback information sent by each kitchen appliance, and determine whether the connection quantity of each kitchen appliance reaches its corresponding quantity information based on the received connection feedback information;

[0053] The sending unit is further configured to continue sending connection establishment requests to surrounding kitchen appliances to be used if the quantity information has not been reached, until the connection quantity of each kitchen appliance reaches its corresponding quantity information.

[0054] Optionally, the loading unit is further configured to download respective device description files on the kitchen appliance and the other kitchen appliance respectively according to the identification information of the kitchen appliance and the identification information of the other kitchen appliance if the devices involved also include other kitchen appliances;

[0055] The determining unit is further configured to determine and execute an operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and a device description file corresponding to the kitchen appliance;

[0056] The execution unit is further used to determine and execute corresponding operation instructions on each of the other kitchen appliances according to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances.

[0057] Optionally, the device further comprises: a creating unit,

[0058] The creation unit is used to create device description files corresponding to different kitchen appliances, and associate the identification information corresponding to the different kitchen appliances with the device description files for storage.

[0059] Optionally, the device comprises: an adjustment unit,

[0060] The receiving unit is further configured to receive an adjustment request for a kitchen appliance, wherein the adjustment request carries identification information and device adjustment information of the kitchen appliance;

[0061] The loading unit is further configured to load a device description file corresponding to the identification information according to the identification information;

[0062] The adjustment unit is used to adjust the execution script in the device description file according to the device adjustment information.

[0063] Optionally, the device further comprises: an acquisition unit and a creation unit,

[0064] The acquisition unit is used to acquire a device description file corresponding to each kitchen appliance involved in the electronic recipe;

[0065] The creation unit is used to create the electronic recipe according to the device services, device reported events and / or device properties defined in each device description file, and the device services, device reported events and / or device properties are defined in a unified format in the device description file.

[0066] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:

[0067] Parsing the electronic recipe to be executed to obtain identification information of the kitchen appliances involved in the electronic recipe;

[0068] According to the identification information, loading a device description file corresponding to the identification information;

[0069] According to the cooking information in the electronic recipe and the device description file, the operation instructions corresponding to the kitchen appliance are determined and executed.

[0070] According to a fourth aspect of the present invention, there is provided a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the following steps are implemented:

[0071] Parsing the electronic recipe to be executed to obtain identification information of the kitchen appliances involved in the electronic recipe;

[0072] According to the identification information, loading a device description file corresponding to the identification information;

[0073] According to the cooking information in the electronic recipe and the device description file, the operation instructions corresponding to the kitchen appliance are determined and executed.

[0074] The present invention provides an electronic recipe execution method, kitchen appliance, storage medium and computer equipment. Compared with the current method in which a central control host parses the electronic recipe and sends the instructions obtained by the analysis to the corresponding kitchen appliance for execution, the present invention can parse the electronic recipe to be executed to obtain the identification information of the kitchen appliance involved in the electronic recipe; and load the device description file corresponding to the identification information according to the identification information; at the same time, according to the cooking information in the electronic recipe and the device description file, determine and execute the operation instructions corresponding to the kitchen appliance, thereby standardizing the interface calling method of the kitchen appliance through the defined device description file, avoiding the electronic recipe from directly facing the interface rules, properties, etc. of the kitchen appliance, preventing the use of the electronic recipe from being affected when the kitchen appliance is adjusted or changed, and maintaining the stability of the interface between the electronic recipe and the device description file. In addition, by directly parsing and executing the electronic recipe in the kitchen appliance, the transfer of execution instructions is avoided, and the execution efficiency of the electronic recipe can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0076] Figure 1 A flow chart of an electronic recipe execution method provided by an embodiment of the present invention is shown;

[0077] Figure 2 A flow chart of another method for executing an electronic recipe provided by an embodiment of the present invention is shown;

[0078] Figure 3 A schematic diagram of the structure of a kitchen appliance provided by an embodiment of the present invention is shown;

[0079] Figure 4 A schematic diagram showing the structure of another kitchen appliance provided by an embodiment of the present invention is shown;

[0080] Figure 5 A schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0081] The present invention 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.

[0082] As mentioned in the background technology, since the development interfaces and properties of different categories of kitchen appliances are not the same, it is difficult to access them in a consistent format in an electronic recipe, and when the kitchen appliances are adjusted or changed, the electronic recipe needs to be modified, otherwise it will affect the use of the electronic recipe. In addition, the central control host first parses the electronic recipe, and then sends the parsed instructions to the corresponding kitchen appliances for execution, which will cause the execution of the instructions to be transferred, thereby reducing the efficiency of recipe execution.

[0083] In order to solve the above problems, an embodiment of the present invention provides an execution method of an electronic recipe, such as Figure 1 As shown, the method includes:

[0084] 101. Parse the electronic recipe to be executed to obtain identification information of kitchen appliances involved in the electronic recipe.

[0085] Among them, the identification information of the kitchen appliance can be the equipment code and / or name of the kitchen appliance and other information that can uniquely identify the kitchen appliance. The executor of the embodiment of the present invention is a kitchen appliance with central control processing capabilities. In the embodiment of the present invention, the central control module is integrated into the kitchen appliance to realize central control equipment. The kitchen appliance can directly parse and execute electronic recipes locally, avoiding the transfer of execution instructions and improving the execution efficiency of electronic recipes. In addition, since an independent central control host is no longer required, resource costs are saved. For the embodiments of the present invention, since the kitchen appliance integrates a central control module and has networking capabilities, the electronic recipe to be executed can be downloaded from the cloud server, or selected from the electronic recipes pre-stored in the kitchen appliance. When the kitchen appliance executes the electronic recipe, the central control module of the kitchen appliance will parse the electronic recipe and determine the identification information of the kitchen appliance involved in the electronic recipe based on the analysis result. The kitchen appliance involved in the electronic recipe may include the kitchen appliance where the central control module is located, and may also include other kitchen appliances. The other kitchen appliances and the kitchen appliance where the central control module is located may be kitchen appliances of the same category or of different categories.

[0086] For example, the central control module of the kitchen appliance parses the electronic recipe and determines that the identification information of the kitchen appliance involved in the electronic recipe is A1101, A1102, B1101 and B1102, wherein A1101 is the kitchen appliance where the central control module is located, specifically a batching machine, and A1102 is another batching machine involved in the electronic recipe. In addition, the electronic recipe also involves two woks, namely B1101 and B1102. Further, according to the identification information of the kitchen appliance involved in the electronic recipe, the device description file corresponding to the kitchen appliance is downloaded to According to the interface rules, device services, device reported events, device properties, etc. defined in the device description file, the kitchen appliances are called to execute corresponding instructions. This can prevent the electronic recipes from directly facing the interface rules, device properties, etc. of the kitchen appliances, prevent the use of electronic recipes from being affected by adjustments to the kitchen appliances, and maintain the stability of the interface between the electronic recipes and the device description file. In addition, since the electronic recipes do not need to directly face the interface rules, device properties, etc., when the interface rules, device properties, etc. change, the electronic recipes do not need to be modified, thereby improving the versatility of the electronic recipes.

[0087] 102. According to the identification information, load a device description file corresponding to the identification information.

[0088] Among them, different kitchen appliances correspond to different device description files. The device description file defines execution scripts corresponding to device services, device reporting events and / or device attributes respectively. The execution script provides consistent interface rules to the outside. Specifically, the execution script can be defined in formats such as xml, json, etc. It can be read directly in text and also conforms to the rules of interpreted script languages. It can be interpreted and executed by languages ​​such as Lua and python during the execution phase. That is, device interfaces, device services, and device reporting events are all operated in these script languages. Therefore, a unified device specification is established through the device description file, which can shield the differences in devices during the electronic recipe execution phase. Among them, device service can refer to a complete action completed by the software-driven hardware and software of kitchen appliances during operation. This action is called device service. Each device service can be called by various processes and businesses, for example, the batching service supported by the batching machine; device reporting events can refer to events reported by kitchen appliances due to abnormal equipment operation during operation, or events reported to prompt users. For example, when the batching machine completes batching, it can report a batching completion event to prompt the user that the batching is completed; device attributes can refer to interfaces and device parameter information of kitchen appliances, such as the power and capacity of kitchen appliances, functions corresponding to different interfaces, etc.; for device interfaces of different kitchen appliances, a unified description or rule definition method is adopted.

[0089] According to the embodiment of the present invention, after the identification information of the kitchen appliances involved in the electronic recipe is determined, a device description file corresponding to the identification information is downloaded from the cloud server according to the identification information. The cloud server stores device description files corresponding to kitchen appliances of different categories and models. If the kitchen appliances involved in the electronic recipe are the kitchen appliances where the central control module is located, the device description file corresponding to the kitchen appliances where the central control module is located is downloaded from the cloud server according to the identification information. If the kitchen appliances involved in the electronic recipe also include other kitchen appliances, and the other kitchen appliances also have central control processing capabilities, the electronic recipe can be parsed and executed respectively on the kitchen appliances where the central control module is located and the other kitchen appliances. The identification information of the kitchen appliance is obtained by downloading respective device description files on the kitchen appliance where the central control module is located and other kitchen appliances. If other kitchen appliances do not have the central control processing capability, the electronic recipe can only be parsed on the kitchen appliance where the central control module is located, and according to the identification information of the kitchen appliances involved in the electronic recipe obtained by parsing, the device description files corresponding to the kitchen appliance where the central control module is located and other kitchen appliances are downloaded respectively, so as to call the kitchen appliances to perform corresponding operations according to the interface rules, device services, device reported events and / or device properties defined in the device description files, thereby avoiding the electronic recipe from directly facing the interface rules, device properties, etc. of the kitchen appliances, and preventing the use of the electronic recipe from being affected by adjustments to the kitchen appliances.

[0090] 103. Determine and execute operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file.

[0091] For the embodiment of the present invention, based on the relevant operations of the kitchen appliance in the cooking information, the service that the kitchen appliance needs to execute or the reported event is determined, and according to the device interface rules defined in the device description file, the kitchen appliance is called to execute the execution script corresponding to the corresponding service or reported event, thereby completing the relevant operations of the kitchen appliance in the cooking information. Specifically, if the kitchen appliance involved in the electronic recipe happens to be the kitchen appliance where the central control module is located, the execution script of the kitchen appliance to execute the corresponding service or report the event is directly called according to the interface rules defined in the device description file, without the need to forward the execution instruction, thereby improving the execution efficiency of the electronic recipe. For example, if the kitchen appliance involved in the electronic recipe happens to be the batching machine where the central control module is located, the central control module directly calls the batching machine to execute the execution script of the batching service according to the interface rules of the batching machine defined in the device description file to perform the batching operation. When the batching machine completes the batching, the execution script corresponding to the batching completion reporting event is called to prompt the user that the batching operation has been completed. If the electronic recipe also involves other kitchen appliances, and the other kitchen appliances do not have the central control processing capability and cannot be connected to the Internet, the kitchen appliance where the central control module is located shall The central control module is used to control the operation of other kitchen appliances, form a one-host-multiple-slave mode, flexibly control multiple kitchen appliances involved in the electronic recipe, and meet the cooking needs of multiple kitchen appliances operating together. In addition, if other kitchen appliances have central control processing capabilities, then when executing recipes, other kitchen appliances can determine the relevant operations that need to be completed in the cooking information, and execute corresponding operation instructions on their respective devices according to their corresponding device description files, thereby also being able to meet the cooking needs of multiple kitchen appliances operating together.

[0092] Furthermore, when the kitchen appliance changes or adjusts, in order not to affect the use of the electronic recipe, the method further includes: receiving an adjustment request for the kitchen appliance, the adjustment request carries the identification information and device adjustment information of the kitchen appliance; loading a device description file corresponding to the identification information according to the identification information; and adjusting the execution script in the device description file according to the device adjustment information. The device adjustment information may include device attribute adjustment information, device parameter adjustment information, etc. For example, the kitchen appliance where the central control module is located is a batching machine. When the attribute adjustment of the batching machine changes, the batching machine receives a device adjustment request, the adjustment request carries the attribute adjustment information of the batching machine. Based on the adjustment request, the batching machine downloads the corresponding device description file and adjusts the attributes of the batching machine in the device description file according to the attribute adjustment information. It should be noted that the kitchen appliance where the central control module is located may also receive adjustment requests from other kitchen appliances, the adjustment request carries the identification information and device adjustment information of the other kitchen appliances, and loads the device description files corresponding to the other kitchen appliances according to the identification information of the other kitchen appliances, and adjusts the attributes of the batching machine in the device description file according to the attribute adjustment information. Furthermore, when the kitchen appliance changes or adjusts, the kitchen appliance can also send an adjustment request for the kitchen appliance to the server, and the adjustment request carries the identification information and the device adjustment information of the kitchen appliance. After receiving the adjustment request for the kitchen appliance, the server searches for the device description file corresponding to the kitchen appliance according to the identification information, and adjusts the device description file according to the device adjustment information. This can avoid affecting the use of electronic recipes when the kitchen appliance changes. Through the defined device description file, the differences between different kitchen appliances can be shielded, thereby ensuring the stability of the interface between the electronic recipe and the device description file. At the same time, it can adapt to the current market situation where kitchen appliances are diversified and the interfaces are not unified.

[0093] Furthermore, when the electronic recipe involves a newly added type of kitchen appliance, a device description file corresponding to the newly added type of kitchen appliance is created, and the identification information corresponding to the newly added type of kitchen appliance and the device description file are associated and stored.

[0094] Furthermore, in order to construct the electronic recipe to be executed, the method also includes: obtaining the device description file corresponding to each kitchen appliance involved in the electronic recipe; creating the electronic recipe according to the device services, device reported events and / or device attributes defined in each device description file, wherein the device services, device reported events and / or device attributes are defined in a unified format in the device description file. Specifically, download the device description file corresponding to each kitchen appliance involved in the electronic recipe, wherein the device description file defines the services, reported events and / or device attributes supported by each kitchen appliance, determine the cooking operations of each kitchen appliance according to the services, reported events and / or device attributes supported by each kitchen appliance, and create the electronic recipe according to the determined cooking operations of each kitchen appliance, wherein the electronic recipe does not directly face the device interface, device service, device reported events, etc., and these contents are recorded in the device description file, and the device description file is independent of the electronic recipe, thereby ensuring the stability of the interface between the electronic recipe and the device description file.

[0095] An embodiment of the present invention provides a method for executing an electronic recipe. Compared with the current method in which a central control host parses the electronic recipe and sends the instructions obtained by the analysis to corresponding kitchen appliances for execution, the present invention can parse the electronic recipe to be executed to obtain the identification information of the kitchen appliances involved in the electronic recipe; and load the device description file corresponding to the identification information according to the identification information; at the same time, according to the cooking information in the electronic recipe and the device description file, determine and execute the operation instructions corresponding to the kitchen appliances. Thus, through the defined device description file, the interface calling method of the kitchen appliances is standardized, so that the electronic recipe is prevented from directly facing the interface rules, properties, etc. of the kitchen appliances, and the use of the electronic recipe is prevented from being affected when the kitchen appliances are adjusted or changed, and the stability of the interface between the electronic recipe and the device description file is maintained. Moreover, by directly parsing and executing the electronic recipe in the kitchen appliances, the transfer of execution instructions is avoided, and the execution efficiency of the electronic recipe can be improved.

[0096] Further, in order to better illustrate the execution process of the electronic recipe, as a refinement and expansion of the above embodiment, the specific implementation process of this embodiment is described in detail below. Figure 2 As shown, the method includes:

[0097] 201. Create device description files corresponding to different kitchen appliances, and associate identification information corresponding to the different kitchen appliances with the device description files for storage.

[0098] Among them, different categories or models of kitchen appliances correspond to different device description files. The device description files define execution scripts corresponding to device services, device reporting events and / or device attributes, respectively. The execution scripts provide consistent interface rules to the outside world. The identification information of the kitchen appliance can be the device code corresponding to the kitchen appliance. For the embodiments of the present invention, in order to avoid the electronic recipe directly facing the interface rules, device attributes, etc. of the kitchen appliance, and to prevent the adjustment and change of the kitchen appliance from affecting the use of the electronic recipe, device description files corresponding to different categories of kitchen appliances or different models of kitchen appliances are constructed, and a mapping relationship between the identification information of different kitchen appliances and different device description files is constructed. According to the mapping relationship, different device description files and different identification information are used to construct a preset device description file library, and the library is stored in the cloud server. When the kitchen appliance executes the electronic recipe, the corresponding device description file can be downloaded from the cloud server.

[0099] 202. Parse the electronic recipe to be executed to obtain identification information of kitchen appliances involved in the electronic recipe.

[0100] For the embodiment of the present invention, the electronic recipe does not include interface rules, device services, device properties, etc. related to the kitchen appliances. The above contents are defined in the device description file corresponding to the kitchen appliances. The device description file is independent of the electronic recipe. The electronic recipe only includes cooking information and identification information of the kitchen appliances involved. Therefore, when the kitchen appliances are changed or adjusted, only the device description file needs to be changed, which will not affect the use of the electronic recipe. Specifically, the kitchen appliances can download the electronic recipe from the cloud server for execution, or select the corresponding electronic recipe from the electronic recipe pre-stored in the kitchen appliances for execution. When the kitchen appliances execute the electronic recipe, the central control module in the kitchen appliances will be used to parse the electronic recipe first, and the identification information of the kitchen appliances involved in the electronic recipe will be determined according to the parsing results. Among them, the kitchen appliances involved in the electronic recipe may be the kitchen appliances where the central control module is located, and may also involve other kitchen appliances. According to the parsed identification information of the kitchen appliances, each kitchen appliance involved in the electronic recipe can be determined.

[0101] 203. According to the identification information, load a device description file corresponding to the identification information.

[0102] For an embodiment of the present invention, if the kitchen appliance involved in the electronic recipe is the kitchen appliance where the central control module is located, the kitchen appliance where the central control module is located will send a request to the cloud server to download a device description file, and the request carries identification information corresponding to the kitchen appliance where the central control module is located. After receiving the request, the cloud server queries the preset device description file library according to the identification information, and feeds back the queried device description file to the kitchen appliance where the central control module is located. In addition, if the electronic recipe also involves other kitchen appliances, and the other kitchen appliances do not have central control processing capabilities, the kitchen appliance where the central control module is located can also download device description files corresponding to the other kitchen appliances from the cloud server. If the other kitchen appliances have central control processing capabilities, the other kitchen appliances can download their own device description files on their respective devices when executing recipes, so as to determine the corresponding operation instructions of the kitchen appliances according to the downloaded device description files.

[0103] 204. Determine and execute an operation instruction corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file.

[0104] For the embodiment of the present invention, in order to determine the operation instructions corresponding to the kitchen appliance where the central control module is located, step 204 specifically includes: determining the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file; calling the interface corresponding to the kitchen appliance to execute the operation instructions according to the interface rules defined in the device description file. Specifically, according to the cooking information in the electronic recipe, determine the service, reported event, etc. that the kitchen appliance where the central control module is located needs to execute, and determine the execution script corresponding to the service or reported event in the device description file. Further, according to the interface rules defined in the device description file, call the kitchen appliance where the central control module is located to execute the operation instructions in the execution script corresponding to the service or reported event.

[0105] Furthermore, after parsing the electronic recipe to be executed and obtaining the identification information of the kitchen appliances involved in the electronic recipe, the method further includes: if the involved devices also include other kitchen appliances, then loading the device description files of the kitchen appliances and the other kitchen appliances according to the identification information of the kitchen appliances and the identification information of the other kitchen appliances respectively; determining and executing the operation instructions corresponding to the kitchen appliances according to the cooking information of the kitchen appliances in the electronic recipe and the device description files corresponding to the kitchen appliances; determining the operation instructions corresponding to the other kitchen appliances according to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances respectively, and sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution. Further, sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution includes: calling the interfaces corresponding to the other kitchen appliances respectively according to the interface rules defined in the device description files corresponding to the other kitchen appliances, and sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution.

[0106] For example, the kitchen appliance where the central control module is located is a batching machine. By parsing the electronic recipe, it is known that the kitchen appliances involved in the electronic recipe are a batching machine and a wok. The batching machine can download the device description file corresponding to the batching machine and the device description file corresponding to the wok from the cloud server according to the identification information of the batching machine and the identification information of the wok. After that, the batching machine determines the operation instructions corresponding to the batching machine and the wok according to the cooking information in the electronic recipe and the device description files corresponding to the batching machine and the wok, and directly calls the interface of the batching machine to execute the operation instruction according to the interface rules defined in the device description file. At the same time, the central control module in the batching machine will call the interface corresponding to the wok and send the operation instruction corresponding to the wok to the wok for execution. Therefore, through the realization of the central control device, an independent central control host is no longer needed, which saves resource costs, and the electronic recipe can be directly parsed and executed on the kitchen appliance, which improves the execution efficiency of the electronic recipe. At the same time, it can also meet the needs of multi-device operation in the electronic recipe, and form an operation mode of one host and multiple slaves through the network.

[0107] Furthermore, in order to establish a connection between the kitchen appliance where the central control module is located and other kitchen appliances, before sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution, the method also includes: determining the category information and quantity information corresponding to each kitchen appliance among the other kitchen appliances; sending a request to establish a connection to the surrounding kitchen appliances to be used, wherein the request carries the category information, so that each kitchen appliance among the kitchen appliances to be used that meets the category information can establish a connection with the kitchen appliance; receiving the connection feedback information sent by each kitchen appliance, and judging whether the number of connections of each kitchen appliance reaches its corresponding quantity information based on the received connection feedback information; if the number information is not reached, continuing to send requests to establish a connection to the surrounding kitchen appliances to be used until the number of connections of each kitchen appliance reaches its corresponding quantity information. Among them, the central control module can initiate a notification to the surrounding kitchen appliances to be used by network broadcasting, so as to establish a connection with the surrounding kitchen appliances to be used.

[0108] For example, the kitchen appliance where the central control module is located is a batching machine. By parsing the electronic recipe, it is learned that the electronic recipe also involves other kitchen appliances, including: another batching machine and two woks. After determining the category information and quantity information corresponding to the other kitchen appliances involved in the electronic recipe, the batching machine will send a connection request to the surrounding kitchen appliances to be used. The connection request carries the address information of the batching machine and the category information corresponding to the other kitchen appliances, namely, the batching machine and the wok. After receiving the request, if the surrounding kitchen appliances to be used meet the category requirements, they will establish a connection with the batching machine according to the address information and send connection feedback information to the batching machine. The feedback information carries the identification information of the kitchen appliances connected to the batching machine. After receiving the feedback information, the batching machine determines whether the kitchen appliance connected to it meets the category requirements based on the identification information. If it does not meet the category requirements, the batching machine will disconnect from the kitchen appliance; if it meets the category requirements, it will maintain the connection with the kitchen appliance and use it as a slave device of the batching machine. At the same time, it determines whether the number of connections reaches the number of each type of kitchen appliance required in the electronic recipe. If not, the batching machine will continue to send connection establishment requests to the surrounding kitchen appliances to be used until the number of connections of each type of kitchen appliance reaches the number required in the electronic recipe. This can meet the needs of operating multiple kitchen appliances when executing electronic recipes, thereby forming a one-host, multiple-slave mode through the kitchen appliance where the central control module is located.

[0109] Furthermore, for the target category kitchen appliances, based on the connection feedback information received from the target category kitchen appliances, the number of connection of the target category kitchen appliances connected to the kitchen appliances is determined; if the number of connection is greater than the number of target category kitchen appliances involved in the electronic recipe, then according to the cooking time corresponding to the connected target category kitchen appliances and / or the historical connection records with the kitchen appliances, the number of kitchen appliances are selected from the connected target category kitchen appliances, their connection relationship with the kitchen appliances is maintained, and the connection between the remaining kitchen appliances in the target category kitchen appliances and the kitchen appliances is disconnected.

[0110] For example, the kitchen appliance where the central control module is located is a batching machine, and the electronic recipe also involves two woks. Based on the connection feedback information received from the woks, it is determined that there are four woks connected to the batching machine, namely wok 1, wok 2, wok 3 and wok 4. According to the cooking time corresponding to wok 1, wok 2, wok 3 and wok 4 and / or the historical connection records with the batching machine, two woks are selected from the four woks to maintain their connection with the batching machine, and the connection between the other two woks and the batching machine is disconnected. Specifically, wok 1, wok 2, wok 3 need to establish connection with other devices for cooking after 1 hour, and wok 4 needs to establish connection with other devices for cooking after 5 minutes. In addition, in the historical connection records, wok 1, wok 2 and wok 4 have been connected to the batching machine 5 times, 8 times and 9 times respectively, and wok 3 has been connected to the batching machine twice. Since wok 1 and wok 2 will have other cooking tasks after 1 hour, and the historical connection times of wok 1 and wok 2 and the batching machine are higher than that of wok 3, wok 1 and wok 2 are connected to the batching machine, while wok 3 and wok 4 are disconnected from the batching machine. Therefore, when the number of connections exceeds the number of other kitchen appliances involved in the electronic recipe, the appropriate kitchen appliances can be selected and connected to the kitchen appliances where the central control module is located according to the cooking time and historical connection records of other kitchen appliances.

[0111] Furthermore, if the devices involved in the electronic recipe also include other kitchen appliances, and the other kitchen appliances have central control processing capabilities, then according to the identification information of the kitchen appliance and the identification information of the other kitchen appliances, respective device description files are downloaded on the kitchen appliance and the other kitchen appliances respectively; according to the cooking information of the kitchen appliance in the electronic recipe and the device description file corresponding to the kitchen appliance, the corresponding operation instructions of the kitchen appliance are determined and executed; according to the cooking information of the other kitchen appliances in the electronic recipe and the device description file corresponding to the other kitchen appliances, the corresponding operation instructions are determined and executed on their respective devices.

[0112] For example, the kitchen appliances involved in the electronic recipe are a batching machine and a wok, and the batching machine and the wok are both integrated with a central control module and have central control processing capabilities. When the batching machine and the wok execute the electronic recipe, they download their corresponding device description files on the batching machine and the wok respectively. The batching machine determines the corresponding operation instructions of the batching machine according to the cooking operation of the batching machine in the electronic recipe and its corresponding device description file, and directly executes the operation instructions on the batching machine. Similarly, the wok determines the corresponding operation instructions of the wok according to the cooking operation of the wok in the electronic recipe and its corresponding device description file, and directly executes the operation instructions on the wok. In this way, the needs of multiple kitchen appliances during the execution of the electronic recipe can also be met. Through the interaction between the central control module and the kitchen appliances, the flexible combination of the various kitchen appliances can be realized. It should be noted that the mode of cooperative operation of multiple kitchen appliances during the execution of the electronic recipe in the embodiment of the present invention is not limited to the above two methods.

[0113] Another method for executing an electronic recipe provided by an embodiment of the present invention, compared with the current method in which a central control host parses the electronic recipe and sends the instructions obtained by the analysis to corresponding kitchen appliances for execution, the present invention can parse the electronic recipe to be executed to obtain the identification information of the kitchen appliances involved in the electronic recipe; and load the device description file corresponding to the identification information according to the identification information; at the same time, according to the cooking information in the electronic recipe and the device description file, determine and execute the operation instructions corresponding to the kitchen appliances, thereby standardizing the interface calling method of the kitchen appliances through the defined device description file, avoiding the electronic recipe from directly facing the interface rules, properties, etc. of the kitchen appliances, preventing the use of the electronic recipe from being affected when the kitchen appliances are adjusted or changed, and maintaining the stability of the interface from the electronic recipe to the device description file. In addition, by directly parsing and executing the electronic recipe in the kitchen appliances, the transfer of execution instructions is avoided, and the execution efficiency of the electronic recipe can be improved.

[0114] Further, as Figure 1 In a specific implementation, the present invention provides a kitchen appliance, such as Figure 3 As shown, the device includes: a parsing unit 31, a loading unit 32 and an execution unit 33.

[0115] The parsing unit 31 can be used to parse the electronic recipe to be executed and obtain the identification information of the kitchen appliances involved in the electronic recipe. The parsing unit 31 is the main functional module in the device for parsing the electronic recipe to be executed and obtaining the identification information of the kitchen appliances involved in the electronic recipe.

[0116] The loading unit 32 can be used to load the device description file corresponding to the identification information according to the identification information. The loading unit 32 is the main functional module in the device for loading the device description file corresponding to the identification information according to the identification information.

[0117] The execution unit 33 can be used to determine and execute the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file. The execution unit 33 is the main functional module and core module of the device for determining and executing the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file.

[0118] Furthermore, in order to determine the operation instructions corresponding to the kitchen appliance, such as Figure 4 As shown, the execution unit 33 includes: a determination module 331 and an execution module 332 .

[0119] The determination module 331 may be used to determine the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file.

[0120] The execution module 332 may be configured to call the interface corresponding to the kitchen appliance to execute the operation instruction according to the interface rule defined in the device description file.

[0121] Furthermore, when the electronic recipe involves multiple kitchen appliances, the device also includes: a sending unit 34.

[0122] The loading unit 32 may also be used to load the device description files of the kitchen appliance and the other kitchen appliances according to the identification information of the kitchen appliance and the identification information of the other kitchen appliances respectively if the devices involved also include other kitchen appliances.

[0123] The execution unit 33 may also be configured to determine and execute an operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and a device description file corresponding to the kitchen appliance.

[0124] The sending unit 34 can be used to determine the operation instructions corresponding to the other kitchen appliances according to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances, and send the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution.

[0125] Furthermore, in order to enable other kitchen appliances to execute corresponding operation instructions, the sending unit 34 can be specifically used to call the interfaces corresponding to the other kitchen appliances according to the interface rules defined in the device description files corresponding to the other kitchen appliances, and send the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution.

[0126] Furthermore, in order to establish a connection between the kitchen appliance and other kitchen appliances, the device further includes: a determining unit 35 and a receiving unit 36 ​​.

[0127] The determining unit 35 may be configured to determine the category information and quantity information corresponding to each of the other kitchen appliances.

[0128] The sending unit 34 may also be used to send a request for establishing a connection to surrounding kitchen appliances to be used, wherein the request carries the category information so that each kitchen appliance in the kitchen appliances to be used that meets the category information can establish a connection with the kitchen appliance.

[0129] The receiving unit 36 ​​may be configured to receive connection feedback information sent by each kitchen appliance, and determine whether the connection quantity of each kitchen appliance reaches its corresponding quantity information based on the received connection feedback information.

[0130] The sending unit 34 may also be configured to continue sending connection establishment requests to surrounding kitchen appliances to be used if the quantity information has not been reached, until the connection quantity of each kitchen appliance reaches its corresponding quantity information.

[0131] Furthermore, when the electronic recipe involves multiple kitchen appliances, the loading unit 32 can also be used to download respective device description files on the kitchen appliance and the other kitchen appliances respectively according to the identification information of the kitchen appliance and the identification information of the other kitchen appliances if the devices involved also include other kitchen appliances.

[0132] The determining unit 35 may also be configured to determine and execute an operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and a device description file corresponding to the kitchen appliance.

[0133] The execution unit 33 may also be configured to determine and execute corresponding operation instructions on each of the other kitchen appliances according to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances.

[0134] Furthermore, in order to create device description files corresponding to different kitchen appliances, the apparatus further includes: a creation unit 37 .

[0135] The creation unit 37 may be used to create device description files corresponding to different kitchen appliances, and associate the identification information corresponding to the different kitchen appliances with the device description files for storage.

[0136] Furthermore, when the kitchen appliance undergoes an adjustment change, the device includes: an adjustment unit 38.

[0137] The receiving unit 36 ​​may also be configured to receive an adjustment request of a kitchen appliance, wherein the adjustment request carries identification information of the kitchen appliance and device adjustment information.

[0138] The loading unit 32 may also be configured to load a device description file corresponding to the identification information according to the identification information.

[0139] The adjusting unit 38 may be configured to adjust the execution script in the device description file according to the device adjustment information.

[0140] Furthermore, in order to create an electronic recipe to be executed, the device also includes: an acquisition unit 39 and a creation unit 37 .

[0141] The acquisition unit 39 may be used to acquire device description files corresponding to various kitchen appliances involved in the electronic recipe.

[0142] The creation unit 37 can be used to create the electronic recipe according to the device services, device reported events and / or device properties defined in each device description file, and the device services, device reported events and / or device properties are defined in a unified format in the device description file.

[0143] It should be noted that for other corresponding descriptions of various functional modules involved in a kitchen appliance provided in an embodiment of the present invention, reference can be made to Figure 1 The corresponding description of the method shown will not be repeated here.

[0144] Based on the above Figure 1 The method shown, accordingly, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented: parsing the electronic recipe to be executed to obtain identification information of the kitchen appliances involved in the electronic recipe; loading a device description file corresponding to the identification information based on the identification information; determining and executing the operation instructions corresponding to the kitchen appliances based on the cooking information in the electronic recipe and the device description file.

[0145] Based on the above Figure 1 The method shown and Figure 3 The embodiment of the device shown in the figure, the embodiment of the present invention also provides a physical structure diagram of a computer device, such as Figure 5 As shown, the computer device includes: a processor 41, a memory 42, and a computer program stored in the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43, and when the processor 41 executes the program, the following steps are implemented: parsing the electronic recipe to be executed to obtain identification information of the kitchen appliances involved in the electronic recipe; loading a device description file corresponding to the identification information based on the identification information; determining and executing operation instructions corresponding to the kitchen appliances based on the cooking information in the electronic recipe and the device description file.

[0146] Through the technical scheme of the present invention, the present invention can parse the electronic recipe to be executed to obtain the identification information of the kitchen appliances involved in the electronic recipe; and according to the identification information, load the device description file corresponding to the identification information; at the same time, according to the cooking information in the electronic recipe and the device description file, determine and execute the operation instructions corresponding to the kitchen appliances, thereby standardizing the interface calling method of the kitchen appliances through the defined device description file, avoiding the electronic recipe from directly facing the interface rules, properties, etc. of the kitchen appliances, preventing the use of the electronic recipe from being affected when the kitchen appliances are adjusted and changed, maintaining the stability of the interface from the electronic recipe to the device description file, and avoiding the transfer of execution instructions by directly parsing and executing the electronic recipe in the kitchen appliances, thereby improving the execution efficiency of the electronic recipe.

[0147] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0148] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0149] Embodiments of the invention also include these and other aspects as specified in the following numbered clauses:

[0150] 1. A method for executing an electronic recipe, applied to kitchen appliances, comprising:

[0151] Parsing the electronic recipe to be executed to obtain identification information of the kitchen appliances involved in the electronic recipe;

[0152] According to the identification information, loading a device description file corresponding to the identification information;

[0153] According to the cooking information in the electronic recipe and the device description file, the operation instructions corresponding to the kitchen appliance are determined and executed.

[0154] 2. The method according to clause 1, wherein determining and executing the operation instruction corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the cooking information in the device description file comprises:

[0155] Determining the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file;

[0156] According to the interface rules defined in the device description file, the interface corresponding to the kitchen appliance is called to execute the operation instruction.

[0157] 3. The method according to clause 1, after parsing the electronic recipe to be executed and obtaining the identification information of the kitchen appliances involved in the electronic recipe, the method further comprises:

[0158] If the devices involved also include other kitchen appliances, then the device description files of the kitchen appliance and the other kitchen appliances are loaded according to the identification information of the kitchen appliance and the identification information of the other kitchen appliances respectively;

[0159] Determine and execute the operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and the device description file corresponding to the kitchen appliance;

[0160] According to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances, the operation instructions corresponding to the other kitchen appliances are determined respectively, and the operation instructions corresponding to the other kitchen appliances are sent to the corresponding kitchen appliances for execution.

[0161] 4. The method according to clause 3, wherein the step of sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution comprises:

[0162] According to the interface rules defined in the device description files corresponding to the other kitchen appliances, the interfaces corresponding to the other kitchen appliances are called respectively, and the operation instructions corresponding to the other kitchen appliances are sent to the corresponding kitchen appliances for execution.

[0163] 5. The method according to clause 3, before sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution, the method further comprises:

[0164] Determine the category information and quantity information corresponding to each of the other kitchen appliances;

[0165] Sending a request for establishing a connection to surrounding kitchen appliances to be used, wherein the request carries the category information, so that each kitchen appliance in the kitchen appliances to be used that meets the category information establishes a connection with the kitchen appliance;

[0166] receiving connection feedback information sent by each kitchen appliance, and judging whether the connection quantity of each kitchen appliance reaches its corresponding quantity information based on the received connection feedback information;

[0167] If the quantity information is not reached, continue to send requests for establishing connections to the surrounding kitchen appliances to be used until the connection quantity of each kitchen appliance reaches its corresponding quantity information.

[0168] 6. The method according to clause 1, after parsing the electronic recipe to be executed and obtaining the identification information of the device involved in the electronic recipe, the method further comprises:

[0169] If the devices involved also include other kitchen appliances, downloading respective device description files on the kitchen appliance and the other kitchen appliances respectively according to the identification information of the kitchen appliance and the identification information of the other kitchen appliances;

[0170] Determine and execute the operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and the device description file corresponding to the kitchen appliance;

[0171] According to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances, corresponding operation instructions are determined and executed on the respective devices of the other kitchen appliances.

[0172] 7. The method according to any one of clauses 1 to 6, before parsing the electronic recipe to be executed to obtain identification information of the device involved in the electronic recipe, the method further comprises:

[0173] Device description files corresponding to different kitchen appliances are created, and identification information corresponding to the different kitchen appliances and the device description files are associated and stored.

[0174] 8. According to the method described in any one of clauses 1 to 6, the device description file defines execution scripts corresponding to device services, device reported events and / or device attributes, respectively, and the execution scripts provide consistent interface rules to the outside.

[0175] 9. The method according to clause 8, further comprising:

[0176] receiving an adjustment request for a kitchen appliance, wherein the adjustment request carries identification information of the kitchen appliance and equipment adjustment information;

[0177] According to the identification information, loading a device description file corresponding to the identification information;

[0178] The execution script in the device description file is adjusted according to the device adjustment information.

[0179] 10. The method according to any one of clauses 1 to 6, before parsing the electronic recipe to be executed to obtain identification information of the device involved in the electronic recipe, the method further comprises:

[0180] Obtaining device description files corresponding to various kitchen appliances involved in the electronic recipe;

[0181] The electronic recipe is created according to the device services, device reported events and / or device properties defined in each device description file, wherein the device services, device reported events and / or device properties are defined in a unified format in the device description file.

[0182] 11. A kitchen appliance, comprising:

[0183] A parsing unit, used to parse the electronic recipe to be executed, and obtain identification information of the kitchen appliances involved in the electronic recipe;

[0184] A loading unit is used to load a device description file corresponding to the identification information according to the identification information;

[0185] The execution unit is used to determine and execute the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file.

[0186] 12. The apparatus according to clause 11, wherein the execution unit comprises: a determination module and an execution module,

[0187] The determining module is used to determine the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file;

[0188] The execution module is used to call the interface corresponding to the kitchen appliance to execute the operation instruction according to the interface rule defined in the device description file.

[0189] 13. The apparatus according to clause 11, further comprising: a sending unit,

[0190] The loading unit is further configured to load the device description files of the kitchen appliance and the other kitchen appliance respectively according to the identification information of the kitchen appliance and the identification information of the other kitchen appliance if the devices involved also include other kitchen appliances;

[0191] The execution unit is further used to determine and execute the operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and the device description file corresponding to the kitchen appliance;

[0192] The sending unit is used to determine the operation instructions corresponding to the other kitchen appliances according to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances, and send the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution.

[0193] 14. According to the device described in clause 13, the sending unit is specifically used to call the interfaces corresponding to the other kitchen appliances according to the interface rules defined in the device description files corresponding to the other kitchen appliances, and send the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution.

[0194] 15. The apparatus according to clause 13, further comprising: a determining unit and a receiving unit,

[0195] The determining unit is used to determine the category information and quantity information corresponding to each of the other kitchen appliances;

[0196] The sending unit is further used to send a request for establishing a connection to surrounding kitchen appliances to be used, wherein the request carries the category information, so that each kitchen appliance in the kitchen appliances to be used that meets the category information establishes a connection with the kitchen appliance;

[0197] The receiving unit is configured to receive connection feedback information sent by each kitchen appliance, and determine whether the connection quantity of each kitchen appliance reaches its corresponding quantity information based on the received connection feedback information;

[0198] The sending unit is further configured to continue sending connection establishment requests to surrounding kitchen appliances to be used if the quantity information has not been reached, until the connection quantity of each kitchen appliance reaches its corresponding quantity information.

[0199] 16. The apparatus according to clause 11, wherein the loading unit is further configured to download respective device description files on the kitchen appliance and the other kitchen appliance respectively according to the identification information of the kitchen appliance and the identification information of the other kitchen appliance, if the device involved also includes other kitchen appliances;

[0200] The determining unit is further configured to determine and execute an operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and a device description file corresponding to the kitchen appliance;

[0201] The execution unit is further used to determine and execute corresponding operation instructions on each of the other kitchen appliances according to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances.

[0202] 17. The apparatus according to any one of clauses 11 to 16, further comprising: a creating unit,

[0203] The creation unit is used to create device description files corresponding to different kitchen appliances, and associate the identification information corresponding to the different kitchen appliances with the device description files for storage.

[0204] 18. According to the apparatus according to any one of clauses 11-16, the device description file defines execution scripts corresponding to device services, device reported events and / or device attributes, respectively, and the execution scripts provide consistent interface rules to the outside.

[0205] 19. The device according to clause 18, comprising: an adjustment unit,

[0206] The receiving unit is further configured to receive an adjustment request for a kitchen appliance, wherein the adjustment request carries identification information and device adjustment information of the kitchen appliance;

[0207] The loading unit is further configured to load a device description file corresponding to the identification information according to the identification information;

[0208] The adjustment unit is used to adjust the execution script in the device description file according to the device adjustment information.

[0209] 20. The apparatus according to any one of clauses 11 to 16, further comprising: an acquisition unit and a creation unit,

[0210] The acquisition unit is used to acquire a device description file corresponding to each kitchen appliance involved in the electronic recipe;

[0211] The creation unit is used to create the electronic recipe according to the device services, device reported events and / or device properties defined in each device description file, and the device services, device reported events and / or device properties are defined in a unified format in the device description file.

[0212] 21. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of clauses 1 to 10 are implemented.

[0213] 22. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method according to any one of clauses 1 to 10 are implemented.

Claims

1. A method for executing an electronic recipe, characterized in that: Applied to kitchen appliances, including: Parsing the electronic recipe to be executed to obtain identification information of the kitchen appliances involved in the electronic recipe; According to the identification information, a device description file corresponding to the identification information is downloaded from a cloud server, wherein the cloud server stores device description files corresponding to kitchen appliances of different categories and models, and the device description files define execution scripts corresponding to device services, device reporting events and / or device attributes, respectively. The execution scripts provide consistent interface rules to the outside to shield device differences during the electronic recipe execution phase. The device services include actions completed by the software driving the hardware of the kitchen appliance during operation. The device reporting events include events reported when the kitchen appliance operates abnormally or prompts a user. The device attributes include device parameters of the kitchen appliance. Determine and execute the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file; The method further comprises: receiving an adjustment request for a kitchen appliance, wherein the adjustment request carries identification information of the kitchen appliance and equipment adjustment information; According to the identification information, loading a device description file corresponding to the identification information; The execution script in the device description file is adjusted according to the device adjustment information.

2. The method according to claim 1, characterized in that The step of determining and executing an operation instruction corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file includes: Determining the operation instructions corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file; According to the interface rules defined in the device description file, the interface corresponding to the kitchen appliance is called to execute the operation instruction.

3. The method according to claim 1, characterized in that After parsing the electronic recipe to be executed and obtaining identification information of the kitchen appliances involved in the electronic recipe, the method further includes: If the devices involved also include other kitchen appliances, then the device description files of the kitchen appliance and the other kitchen appliances are loaded according to the identification information of the kitchen appliance and the identification information of the other kitchen appliances respectively; Determine and execute the operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and the device description file corresponding to the kitchen appliance; According to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances, the operation instructions corresponding to the other kitchen appliances are determined respectively, and the operation instructions corresponding to the other kitchen appliances are sent to the corresponding kitchen appliances for execution.

4. The method according to claim 3, characterized in that The step of sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution includes: According to the interface rules defined in the device description files corresponding to the other kitchen appliances, the interfaces corresponding to the other kitchen appliances are called respectively, and the operation instructions corresponding to the other kitchen appliances are sent to the corresponding kitchen appliances for execution.

5. The method according to claim 3, characterized in that: Before sending the operation instructions corresponding to the other kitchen appliances to the corresponding kitchen appliances for execution, the method further includes: Determine the category information and quantity information corresponding to each of the other kitchen appliances; Sending a request for establishing a connection to surrounding kitchen appliances to be used, wherein the request carries the category information, so that each kitchen appliance in the kitchen appliances to be used that meets the category information establishes a connection with the kitchen appliance; receiving connection feedback information sent by each kitchen appliance, and judging whether the connection quantity of each kitchen appliance reaches its corresponding quantity information based on the received connection feedback information; If the quantity information is not reached, continue to send requests for establishing connections to the surrounding kitchen appliances to be used until the connection quantity of each kitchen appliance reaches its corresponding quantity information.

6. The method according to claim 1, characterized in that After parsing the electronic recipe to be executed and obtaining identification information of devices involved in the electronic recipe, the method further includes: If the devices involved also include other kitchen appliances, downloading respective device description files on the kitchen appliance and the other kitchen appliances respectively according to the identification information of the kitchen appliance and the identification information of the other kitchen appliances; Determine and execute the operation instruction corresponding to the kitchen appliance according to the cooking information of the kitchen appliance in the electronic recipe and the device description file corresponding to the kitchen appliance; According to the cooking information of the other kitchen appliances in the electronic recipe and the device description files corresponding to the other kitchen appliances, corresponding operation instructions are determined and executed on the respective devices of the other kitchen appliances.

7. The method according to any one of claims 1 to 6, characterized in that: Before parsing the electronic recipe to be executed to obtain identification information of devices involved in the electronic recipe, the method further includes: Device description files corresponding to different kitchen appliances are created, and identification information corresponding to the different kitchen appliances and the device description files are associated and stored.

8. The method according to any one of claims 1 to 6, characterized in that: Before parsing the electronic recipe to be executed to obtain identification information of devices involved in the electronic recipe, the method further includes: Obtaining device description files corresponding to various kitchen appliances involved in the electronic recipe; The electronic recipe is created according to the device services, device reported events and / or device properties defined in each device description file, wherein the device services, device reported events and / or device properties are defined in a unified format in the device description file.

9. A kitchen appliance, characterized in that: include: A parsing unit, used to parse the electronic recipe to be executed, and obtain identification information of the kitchen appliances involved in the electronic recipe; A loading unit, configured to download, according to the identification information, a device description file corresponding to the identification information from a cloud server, wherein the cloud server stores device description files corresponding to kitchen appliances of different categories and models, wherein the device description files define execution scripts corresponding to device services, device reporting events and / or device attributes, respectively, wherein the execution scripts provide consistent interface rules to the outside to shield device differences during the electronic recipe execution phase, wherein the device services include actions completed by the software driving the hardware of the kitchen appliance during operation, wherein the device reporting events include events reported when the kitchen appliance operates abnormally or prompts a user, and wherein the device attributes include device parameters of the kitchen appliance; An execution unit, configured to determine and execute an operation instruction corresponding to the kitchen appliance according to the cooking information in the electronic recipe and the device description file; A receiving unit, configured to receive an adjustment request for a kitchen appliance, wherein the adjustment request carries identification information of the kitchen appliance and device adjustment information; The loading unit is further configured to load a device description file corresponding to the identification information according to the identification information; An adjustment unit is used to adjust the execution script in the device description file according to the device adjustment information.

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

11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Cooking method, equipment, system and medium

    CN111352355A