Electronic recipe authority control method, device and computer-readable storage medium
By obtaining cooking equipment information and generating electronic recipe execution files based on the equipment capabilities, the limitations of electronic recipe permission control in the prior art are solved, and flexible permission management for cooking data and the universality of recipes are achieved.
Patent Information
- Application Number
- CN202011591494.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-12-29
AI Technical Summary
The permission control of existing electronic recipes has limitations, making it difficult to flexibly control the cooking data, cannot effectively protect the recipe files and is not conducive to promotion.
By obtaining the equipment information of the cooking equipment, we judge whether the equipment has the permission to use the original electronic recipe file, grant the permission to generate the electronic recipe execution file based on the cooking data and equipment information, and data mapping and association are carried out according to the equipment capability parameters to generate suitable equipment Execute files to achieve permission control over multiple devices.
It realizes flexible permission control over electronic recipes, ensures the protection and promotion of recipe data, adapts to different equipment, and improves the universality of recipes and resource utilization.
Smart Images

Figure CN112507321B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent cooking technology, and in particular to an electronic recipe authority control method, device and computer-readable storage medium. Background Art
[0002] With the continuous development of intelligent cooking technology, intelligent cooking equipment can automatically cook according to existing electronic recipes, and can also cook according to created electronic recipes. Existing electronic recipe files either have no permission control or have permission control on the entire electronic recipe file.
[0003] However, if the electronic recipe file has no permission management at all, the electronic recipe cannot be effectively protected. If permission control is set for the entire electronic recipe file, it will be detrimental to the promotion of electronic recipes, making the permission control of electronic recipes have certain limitations and making it difficult to flexibly control the permission of cooking data in the electronic recipe. Summary of the invention
[0004] In view of this, the present invention provides a method, device and computer-readable storage medium for permission control of electronic recipes, the main purpose of which is to solve the problem that the permission control of electronic recipes in the prior art has certain limitations and it is difficult to flexibly control the permission of cooking data in the electronic recipes.
[0005] According to a first aspect of the present invention, a method for controlling authority of an electronic recipe is provided, the method comprising:
[0006] Get device information of cooking equipment;
[0007] Determining whether the cooking device has permission to use the original electronic recipe file, wherein the original electronic recipe file includes cooking data unrelated to the cooking device;
[0008] If so, the cooking device is granted permission to generate an electronic recipe execution file based on the cooking data and the device information.
[0009] Furthermore, the use permission also includes download permission, and the determination of whether the cooking device has the use permission of the original electronic recipe file specifically includes:
[0010] In response to a download instruction for the original electronic recipe file, determining whether the cooking device has the download authority for the original electronic recipe file;
[0011] If so, the cooking device is granted permission to obtain the original electronic recipe file.
[0012] Further, after granting the cooking device permission to generate an electronic recipe execution file based on the cooking data and the device information, the method further includes:
[0013] The cooking device acquires a device capability parameter of the cooking device based on the device information;
[0014] By matching the cooking data with the device capability parameters, determining execution parameters mapped by the cooking data on the device capability parameters;
[0015] The cooking data is associated with the execution parameters to generate an electronic recipe execution file.
[0016] Furthermore, the step of associating the cooking data with the execution parameters to generate an electronic recipe execution file specifically includes:
[0017] Filtering target cooking data with usage authority from the cooking data;
[0018] The target cooking data with usage authority is associated with the execution parameters to generate an electronic recipe execution file.
[0019] Furthermore, the use authority of the electronic recipe execution file is granted to a preset cooking device. After associating the cooking data with the execution parameters to generate the electronic recipe execution file, the method further includes:
[0020] The electronic recipe execution file is sent to a preset cooking device, and the preset cooking device uses the electronic recipe execution file. The preset cooking device does not have the authority to generate the electronic recipe execution file.
[0021] Furthermore, the use rights of the electronic recipe execution file are granted to a plurality of cooking devices. After associating the cooking data with the execution parameters to generate the electronic recipe execution file, the method further includes:
[0022] Sending the electronic recipe execution file to multiple cooking devices to obtain the execution relationship between the multiple cooking devices;
[0023] Based on the execution relationship between the multiple cooking devices, permission control is performed on the cooking data associated with the multiple cooking devices in the electronic recipe execution file.
[0024] Furthermore, the permission control of the cooking data associated with the multiple cooking devices in the electronic recipe execution file based on the execution relationship between the multiple cooking devices specifically includes:
[0025] If the execution relationship is independent execution, separate permission control is performed on the cooking data associated with the multiple cooking devices in the electronic recipe execution file;
[0026] If the execution relationship is a master-slave dependency execution, the master-slave dependency relationship is utilized to perform linkage authority control on the cooking data associated with the multiple cooking devices in the electronic recipe execution file.
[0027] Furthermore, the master-slave dependency relationship is used to perform linkage authority control on the cooking data associated with multiple cooking devices in the electronic recipe execution file, specifically including:
[0028] Determine a master cooking device and a slave cooking device among a plurality of cooking devices by using the master-slave dependency relationship;
[0029] By performing authority control on the cooking data associated with the master cooking device in the electronic recipe execution file, the authority control on the cooking data associated with the slave cooking device can be linked.
[0030] Furthermore, when there are multiple cooking devices associated with the electronic recipe original file, granting the cooking device with the permission to generate the electronic recipe execution file based on the cooking data and the device information specifically includes:
[0031] If the plurality of cooking devices have respective permissions to generate electronic recipe execution files, each cooking device is granted permissions to generate a corresponding electronic recipe execution sub-file based on the cooking data for which it has permission to use and the device information, and each of the electronic recipe execution sub-files can be combined to generate an electronic recipe execution file;
[0032] If the multiple cooking devices have a master-slave dependency relationship, the master cooking device is granted permission to generate an electronic recipe execution file based on the cooking data and the device information, so as to control the permission of the slave device to generate the electronic recipe execution file in a linked manner.
[0033] According to a second aspect of the present invention, a permission control device for an electronic recipe is provided, the device comprising:
[0034] A first acquisition module, used to acquire device information of a cooking device;
[0035] A judging module, used for judging whether the cooking device has the permission to use the original electronic recipe file, wherein the original electronic recipe file includes cooking data unrelated to the cooking device;
[0036] and a granting module, for granting the cooking device permission to generate an electronic recipe execution file based on the cooking data and the device information if yes.
[0037] Furthermore, the use authority also includes download authority, and the judgment module is specifically used to judge whether the cooking device has the download authority of the electronic recipe original file in response to the download instruction of the electronic recipe original file;
[0038] The judgment module is further specifically configured to grant the cooking device permission to obtain the original electronic recipe file if yes.
[0039] Furthermore, the device also includes:
[0040] a second acquisition module, configured to, after granting the cooking device the authority to generate an electronic recipe execution file based on the cooking data and the device information, cause the cooking device to acquire a device capability parameter of the cooking device based on the device information;
[0041] a determination module, configured to determine execution parameters mapped by the cooking data on the device capability parameters by matching the cooking data with the device capability parameters;
[0042] The association module is used to associate the cooking data with the execution parameters to generate an electronic recipe execution file.
[0043] Furthermore, the association module includes:
[0044] a screening unit, used for screening target cooking data with usage authority from the cooking data;
[0045] The associating unit is used to associate the target cooking data with the usage permission with the execution parameters to generate an electronic recipe execution file.
[0046] Furthermore, the use authority of the electronic recipe execution file is granted to the preset cooking device, and the association module further includes:
[0047] A sending unit is used to send the electronic recipe execution file to a preset cooking device after the cooking data is associated with the execution parameters to generate an electronic recipe execution file, so that the preset cooking device uses the electronic recipe execution file, and the preset cooking device does not have the authority to generate the electronic recipe execution file.
[0048] Furthermore, the use rights of the electronic recipe execution file are granted to a plurality of cooking devices, and the association module further comprises:
[0049] an acquisition unit, configured to send the electronic recipe execution file to a plurality of cooking devices and acquire an execution relationship between the plurality of cooking devices;
[0050] The control unit is used to perform authority control on the cooking data associated with the multiple cooking devices in the electronic recipe execution file based on the execution relationship between the multiple cooking devices.
[0051] Furthermore, the control unit is specifically configured to perform separate authority control on the cooking data associated with the multiple cooking devices in the electronic recipe execution file if the execution relationship is independent execution;
[0052] The control unit is further specifically used to perform linkage authority control on the cooking data associated with multiple cooking devices in the electronic recipe execution file by utilizing the master-slave dependency relationship if the execution relationship is master-slave dependency execution.
[0053] Furthermore, the control unit is further configured to determine a master cooking device and a slave cooking device among the plurality of cooking devices by utilizing the master-slave dependency relationship;
[0054] The control unit is further configured to perform permission control on the cooking data associated with the master cooking device in the electronic recipe execution file, so as to link the permission control on the cooking data associated with the slave cooking device.
[0055] Furthermore, when there are multiple cooking devices associated with the electronic recipe original file, the granting module is specifically used to grant each cooking device the authority to generate a corresponding electronic recipe execution sub-file based on the cooking data that it has the permission to use and the device information, if each of the multiple cooking devices has the permission to generate the electronic recipe execution file, and each of the electronic recipe execution sub-files can be merged to generate the electronic recipe execution file;
[0056] The granting module is specifically used to grant the master cooking device the authority to generate an electronic recipe execution file based on the cooking data and the device information if the multiple cooking devices have a master-slave dependency relationship, so as to control the authority of the slave device to generate the electronic recipe execution file in a linked manner.
[0057] According to a third aspect of the present invention, there is provided a device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in the first aspect when executing the computer program.
[0058] According to a fourth aspect of the present invention, a readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0059] Through the above technical scheme, the present invention provides a permission control method, device and computer-readable storage medium for an electronic recipe. Compared with the method of setting permissions for the entire electronic recipe file in the prior art, the present invention obtains device information of the cooking device to determine whether the device information of the cooking device has the permission to use the original electronic recipe file, and the original electronic recipe file includes cooking data that is not related to the cooking device. If so, the cooking device is granted permission to generate an electronic recipe execution file based on the cooking data and the device information. By splitting the permissions of the electronic recipe, the cooking device can generate an electronic recipe execution file suitable for itself according to the device capabilities, and can flexibly control the permission of the cooking data in the electronic recipe, and accurately generate the permission information of the electronic recipe.
[0060] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0062] Figure 1 A block diagram of the composition of an electronic recipe provided by an embodiment of the present invention is shown;
[0063] Figure 2 A schematic diagram showing the structure of an electronic recipe authority control device provided by an embodiment of the present invention;
[0064] Figure 3 A schematic diagram of the structure of an electronic recipe authority control device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0065] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0066] Before explaining the present invention in detail, the permission control process of the electronic recipe of the present invention is briefly explained. The device corresponding to the permission control process of the electronic recipe may include an authorization terminal and / or a cooking device. The authorization terminal is equivalent to a server, which can be a server corresponding to a smart device or a server corresponding to a cooking device. The server has a management function of permission data, which is equivalent to a permission management background or a device background. Usually, the authorization terminal will pre-store the permission data of each cooking device. The permission data includes the use permission information of the cooking device, such as the number of times the cooking device is used, the use time, etc., and also includes the cooking device's use permission for the original electronic recipe file, such as download permission, creation permission, etc. By obtaining the device information of the cooking device, it is determined whether the cooking device has the use permission of the original electronic recipe file. Here, the original electronic recipe file includes cooking data that is not related to the cooking device. If the cooking device has the use permission of the original electronic recipe file, the cooking device is granted the permission to generate an electronic recipe execution file based on the cooking data and the device information. Specifically in the actual application process, the server can download the electronic recipe from the cloud or obtain the electronic recipe locally, extract the device-independent information in the electronic recipe to form an electronic recipe original file, or directly write the electronic recipe original file. The electronic recipe original file can be used as a simplified version of the electronic recipe. When any cooking device needs to run an electronic recipe, it needs to be determined by the server whether the cooking device has the permission to use the electronic recipe original file. Only the cooking device with the permission can be granted the corresponding permission, download the electronic recipe original file from the server, and recompile it into an electronic recipe execution file corresponding to its own device based on its own device capabilities, greatly improving the versatility of the electronic recipe.
[0067] The electronic recipe authority control method provided by the embodiment of the present invention can be applied to an authorization terminal, and the method includes:
[0068] 101. Obtain device information of cooking equipment.
[0069] The cooking equipment may be kitchen equipment with different cooking functions, such as batching equipment, pots, stoves, etc. The equipment information may include the equipment name, equipment model, equipment capability, and equipment parameters of the cooking equipment. For example, for batching equipment, the equipment name or model may be used to distinguish the type of equipment, the equipment capability may be the function possessed by the batching equipment, such as extraction function, concentration function, and feeding function, and the equipment parameters may be adjustable parameters when performing different equipment functions, such as extraction amount, concentration coefficient, feeding amount, etc. Usually, the electronic recipe runs on the cooking equipment in the form of cooking steps, and the cooking steps may be operation information formed by the cooking operation, for example, stir-frying for 1 minute is performed at 3 minutes and 25 seconds when the electronic recipe runs, and heating for 20 minutes is performed at 5 minutes and 20 seconds when the electronic recipe runs. Specifically, it includes time parameters of cooking operations, action parameters of cooking operations, execution parameters of cooking operations, etc. The time parameters can be the execution time, duration or reservation time of the cooking operation, etc. The action parameters can be the actions performed by the smart cooking device during the cooking process, such as stir-frying, steaming, frying, etc. The execution parameters can be type parameters of the cooking operation, for example, stir-frying intensity, heating power, steaming firepower, etc.
[0070] The executor of the embodiment of the present invention is an authorized terminal of the electronic recipe, which can be a terminal device, a control platform, or a cooking device. Here, the electronic recipe is split into permission parts of different cooking modules, and the authorization terminal manages the permission parts of different modules in the electronic recipe separately. Each cooking module can execute permission control separately, thereby realizing flexible management of the cooking modules in the electronic recipe. Users can purchase permission parts of different cooking modules in the electronic recipe from the online platform based on actual needs, without purchasing unnecessary cooking modules.
[0071] The present invention divides the electronic recipe into two parts: the original recipe file (not related to the device end) and the cooking device end. The authorized terminal downloads the original recipe file (including basic recipe information, material list, pot operation, etc.) from the cloud, and generates a recipe execution file in combination with the cooking device capabilities. When performing permission management on the recipe, permission management can be performed on any of these two parts to achieve permission management of the electronic recipe. For example, the permission to generate a recipe execution file on the cooking device end is managed to achieve control over the entire electronic recipe permission, or the permission to download the original recipe file on the cooking device end is managed to restrict it from generating a recipe execution file and achieve control over the entire electronic recipe permission. 102. Determine whether the cooking device has permission to use the original electronic recipe file.
[0072] The original electronic recipe file includes cooking data that is not related to the cooking device. The cooking data that is not related to the cooking device refers to cooking data that is not restricted by the device. For example, heating to 60 degrees can be done using a gas stove or an induction cooker, and stir-frying can be done using a frying pan or a spatula. The original electronic recipe file is a general file for the cooking process and can be used in combination with different cooking devices to be compiled into an electronic recipe execution file suitable for the cooking device to run.
[0073] Since the cooking devices have different rights to use the electronic recipes, the authorization terminal can be used to record the permission list of the cooking devices to determine whether the cooking devices have the right to use the original electronic recipe files. The use rights here can include the download rights, compilation rights, and number of times rights of the original electronic recipe files. Further, according to the use rights of the electronic recipes, the corresponding use rights of the original electronic recipe files are issued to the cooking devices. When the specific authorization terminal manages the rights of the original electronic recipe files, as a way of managing rights, it can only manage part of the use rights. For example, cooking device A has the download rights of the original electronic recipe files and can download the original electronic recipe files to the cooking devices from the preset channels. Cooking device B has the compilation rights of the electronic recipes and can generate the electronic recipe execution files for the downloaded original electronic recipe files in combination with the device capabilities. As another way of managing rights, for different use rights, it can also manage only a part of the cooking modules. For example, for the download rights, cooking device A has the download rights of the feeding cooking module in the original electronic recipe files, and for the compilation rights, cooking device B has the download rights of the heating cooking module in the original electronic recipe files.
[0074] 103. If yes, granting the cooking device permission to generate an electronic recipe execution file based on the cooking data and the device information.
[0075] It can be understood that the authorization terminal serves as the permission management terminal for all cooking devices. For cooking devices that have permission to use the original electronic recipe files, it can grant the cooking devices the authority to generate electronic recipe execution files based on cooking data and device information. The electronic recipe execution files are suitable for the device capabilities of the cooking devices and can be directly run in the cooking devices without adjusting the cooking parameters. For example, the original electronic recipe file includes heating to 180 degrees. For a 5000w cooking device, it takes 30 seconds to heat the pot to 180 degrees, while for a 3000w cooking device, it may take 50 seconds to heat the pot to 180 degrees. Therefore, the execution parameters of the electronic recipes are different for different cooking devices. After the cooking device is granted compilation permission, it can compile an electronic recipe execution file suitable for itself according to its own device capabilities to improve the flexible use of electronic recipes.
[0076] During actual application, the right to use cooking equipment can be generated by purchasing or collecting it from a specific channel. The authorization terminal will record the generated right to use accordingly. The specific right to use can be generated in combination with different right types, right ranges and right times. Once the right to use is exceeded, the authorization terminal will restrict the use of the cooking equipment. For example, a user is only allowed to purchase the right to use an original electronic recipe file once. The authorization terminal records that the original electronic recipe file can be used once. Once the user uses the original electronic recipe file, the original electronic recipe file can no longer be used to perform cooking operations subsequently.
[0077] Compared with the method of setting permissions for the entire electronic recipe file in the prior art, the method for controlling permissions for an electronic recipe provided by the present invention obtains device information of a cooking device to determine whether the device information of the cooking device has permission to use the original electronic recipe file, where the original electronic recipe file includes cooking data that is not related to the cooking device. If so, the cooking device is granted permission to generate an electronic recipe execution file based on the cooking data and the device information. By splitting the permissions of the electronic recipe, the cooking device can generate an electronic recipe execution file suitable for itself according to the device capabilities. This method can flexibly control permissions on the cooking data in the electronic recipe and accurately generate permission information for the electronic recipe.
[0078] Specifically in the actual application process, the usage permission also includes downloading permission. Specifically, in the process of determining whether the cooking device has the usage permission of the original electronic recipe file, it can respond to the download instruction of the original electronic recipe file, and the authorized terminal can determine whether the cooking device has the download permission of the original electronic recipe file. If so, the cooking device is granted the permission to obtain the original electronic recipe file. It is understandable that download permission, as a type of permission granted in usage permissions, usually needs to be obtained first. Only after the original electronic recipe file is obtained, can the electronic recipe source file be subsequently compiled and used. Here, priorities can be set for different permission types in usage permissions. Permission types with higher priorities should be obtained by users first. For new users who have never downloaded the original electronic recipe files, all permissions in the usage permissions can be sold together or sold according to priority. If the user has not purchased permissions with higher priority, the user is restricted from purchasing the subsequent permissions. For example, download permissions are pushed to new users first, and users are restricted from directly purchasing compilation permissions. For old users who have purchased permissions with higher priority types, permissions with a priority after the purchased permissions can be pushed to the users, and users are not restricted from purchasing permissions. For example, after the old users purchase download permissions, compilation permissions are pushed to the old users first, and the old users are restricted from directly purchasing cooking permissions.
[0079] In order to prevent the cooking equipment from downloading the original electronic recipe file that it does not have the equipment capabilities, in the process of sending the original electronic recipe file to the cooking equipment, only the original electronic recipe file for the cooking modules within the capabilities of the cooking equipment may be sent, and the cooking modules in the original electronic recipe file that do not fall within the executable capabilities of the cooking equipment will not be sent. For example, for induction cookers, only the cooking modules related to the heating equipment capabilities in the original electronic recipe file may be sent, and for feeding equipment, only the cooking modules related to the feeding / concentration / extraction equipment capabilities in the original electronic recipe file may be sent.
[0080] Since different cooking equipment has different equipment capability parameters, specifically in the process of generating an electronic recipe execution file, the cooking equipment obtains the equipment capability parameters of the cooking equipment based on the equipment information. The equipment capability parameters may be the capability range mapped by the cooking equipment on the equipment capability. For example, the cooking equipment has a power of 3000w in the heating equipment capability, and the feeding equipment has a concentration factor of 1:50 in the concentration equipment capability. The cooking data is further matched with the equipment capability parameters to determine the execution parameters mapped by the cooking data on the equipment capability parameters. The cooking data is associated with the execution parameters to generate an electronic recipe execution file. The execution parameters may be the time parameters, condition parameters, etc. required to execute the corresponding cooking data using the equipment capability of the cooking equipment itself. By matching the cooking data with the equipment capability parameters, execution parameters that conform to the equipment itself may be formed. For example, it takes 20 seconds to reach 100 degrees with a heating power of 3000w, and it takes 20 seconds to fry the steak until both sides are golden brown with a heating power of 3000w.
[0081] It should be noted that in order to accurately control the permissions of the original electronic recipe file, only the target cooking data with usage permissions can be screened out from the cooking data, and the cooking data without usage permissions are restricted from generating electronic recipe execution files. The original cooking data is still retained, and after obtaining the target cooking data, the target cooking data with usage permissions are further associated with the execution parameters to generate an electronic recipe execution file.
[0082] As a way of authorizing the original electronic recipe file by the authorized terminal, when the use right of the original electronic recipe file is granted to the preset cooking device, if the preset cooking device does not have the generation right to generate the electronic recipe execution file based on the original electronic recipe file, but only has the use right to use the electronic recipe execution file, other cooking devices can generate the electronic recipe execution file based on the original electronic recipe file, send the electronic recipe execution file to the preset cooking device, and then the preset cooking device uses the electronic recipe execution file, which is equivalent to managing the generation and use of the electronic recipe execution file separately, so as to give full play to the role of the cooking device and improve the resource utilization of the cooking device. For example, cooking device A has the generation right of the electronic recipe execution file, and cooking device B has the use right of the electronic recipe execution file. After the electronic recipe execution file is generated by cooking device A, it can be sent to cooking device B, and cooking device B will run the electronic recipe execution file.
[0083] It can be understood that, for cooking equipment that has the authority to generate and use electronic recipe execution files, if the cooking equipment has the authority to use more than once, the generated electronic recipe execution file can be saved in the cooking equipment for use. When the authority to use is exceeded, the electronic recipe execution file can be locked or deleted. The next time the cooking equipment has the authority to use the electronic recipe execution file, the execution function of the electronic simulated recipe execution file is enabled. The cooking equipment does not need to repeat the operation of generating the electronic recipe execution file, so as to save the operating resources of the cooking equipment.
[0084] As another authorization method for the authorized terminal to the original electronic recipe file, when the use rights of the electronic recipe execution file are granted to multiple cooking devices, since each cooking device may have different types of use rights and execution relationships, the electronic recipe execution file can be sent to the multiple cooking devices to obtain the execution relationship between the multiple cooking devices. Based on the execution relationship between the multiple cooking devices, the cooking data associated with the multiple cooking devices in the electronic recipe execution file is controlled by permission. The execution relationship here can be whether the execution process of the cooking device is controlled by other cooking devices or controls other cooking devices. For example, the operation process of the electronic recipe involves cooking device A, cooking device B and cooking device C, and cooking device A controls the execution of cooking device B and cooking device C. Specifically in the permission control process, if the execution relationship is independent execution, it means that the execution permission of the cooking device on the cooking data is not controlled by other cooking devices, and further, the cooking data associated with multiple cooking devices in the electronic recipe execution file are subject to separate permission control. For example, cooking device A, cooking device B and cooking device C have an independent execution relationship, and they need to use generation permissions to compile electronic recipe execution files suitable for their own devices respectively, and can only perform permission control on the electronic recipe execution files generated by themselves. Cooking device A cannot control the cooking data in the electronic recipe execution file generated by cooking device B. If the execution relationship is master-slave dependent execution, it means that the execution permission of the cooking device on the cooking data is controlled by other cooking devices, and further, the master-slave dependency relationship is used to perform linkage permission control on the cooking data associated with multiple cooking devices in the electronic recipe execution file. Specifically, the master-slave dependency relationship can be used to determine the master cooking device and the slave cooking device among the multiple cooking devices, and the cooking data associated with the master cooking device in the electronic recipe execution file can be permission controlled in a linkage manner. For example, cooking device A and cooking device B have a master-slave dependent execution relationship. The master cooking device can use the generation permission to compile an electronic recipe execution file suitable for itself and other devices, and then give it to the slave cooking device B for use. However, cooking device B may not have the permission to use the electronic recipe execution file. Cooking device A can be used to control the cooking device B's permission to use the electronic recipe execution file.
[0085] It is understandable that for cooking devices with a master-slave dependency relationship, the electronic recipe execution file can be generated only by the master cooking device to be indirectly applied to other slave cooking devices, so that other slave cooking devices do not need to compile the electronic recipe execution file, saving the resource usage of the cooking devices.
[0086] Since the original electronic recipe file involves multiple cooking steps, it usually requires multiple cooking devices to work together. When the original electronic recipe file is associated with multiple cooking devices, specifically in the process of granting the cooking device the authority to generate the electronic recipe execution file based on the cooking data and device information, if multiple cooking devices have the authority to generate the electronic recipe execution file, then each cooking device is granted the authority to generate the corresponding electronic recipe execution sub-file based on the cooking data and device information that it has the authority to use. Each electronic recipe execution sub-file can be combined to generate the electronic recipe execution file. For example, for cooking device A, cooking device B and cooking device C, which have an independent execution relationship, they need to generate electronic recipe execution files suitable for their own devices. If multiple cooking devices have a master-slave dependency relationship, then the master cooking device is granted the authority to generate the electronic recipe execution file based on the cooking data and device information, so as to control the authority of the slave device to generate the electronic recipe execution file in a linked manner. For example, cooking device A, cooking device B and cooking device C have a master-slave dependent execution relationship. Cooking device A can act as the master cooking device to generate an electronic recipe execution file suitable for itself and other cooking devices, and then send the corresponding part of the electronic recipe execution file to cooking device B or cooking device C. That is, cooking device A has the authority to generate the electronic recipe execution file, which can be indirectly applied to cooking device B and cooking device C. If the cooking devices are independent of each other, they cannot transmit and use the electronic recipe execution files to each other.
[0087] In a specific application scenario, the electronic recipe can be displayed as an object on a network platform, and can be an electronic recipe for any dish, such as stir-fried dishes, stews, and steamed dishes, such as scrambled eggs with tomatoes, Mushu pork, sweet and sour spareribs, etc. The composition of the specific electronic recipe is as follows: Figure 1As shown, it can include public information, graphic step content and electronic program files for equipment control. Among them, the public information part is the content that can be disclosed in the electronic recipe, such as the recipe name, picture, introduction information, creator, etc., for browsing and promotion, which can be displayed on the page of the network platform. This part does not involve technical content and does not need to set permissions for control. The graphic step content describes the cooking process of the recipe in the form of pictures or texts, which meets the guidance of the recipe cooking process in the scenario where there is no designated cooking equipment and daily general cooking equipment is used. This part is the permission control part and can only be used after the user purchases the permission of this part. Only then can the relevant graphic and text step content be played and / or viewed. By watching the graphic and text step video, users can use ordinary equipment to restore the taste of the electronic recipe. The electronic program file controlled by the device is the control and interactive content of the cooking process for a specific device. This electronic program file is executed on the designated cooking device to automatically control the cooking process, such as controlling the firepower, power, temperature, time or ingredients, etc., to achieve control of the cooking process to restore the taste of the dish. This part is consistent with the graphic and text step content in function. The latter is a supplement to the former, and is a cooking guide for purchasing or having designated cooking equipment. Further, the graphic and text step content and the electronic program file controlled by the device can be separately controlled in terms of permissions, which can make the permission control of the electronic recipe more flexible, so as to authorize and restrict different cooking modules separately, and can also meet the different purchasing needs of users. Users can choose to specify cooking modules according to their own needs to avoid unnecessary expenses, thereby making the products for the same electronic recipe sold in a variety of permission combinations.
[0088] Furthermore, as a specific implementation of the above method, an embodiment of the present invention provides an electronic recipe authority control device, which can be applied to an authorized terminal, such as Figure 2 As shown, the electronic recipe operation device includes: a first acquisition module 21, a judgment module 22, and a granting module 23.
[0089] A first acquisition module 21 may be used to acquire device information of a cooking device;
[0090] The judging module 22 may be used to judge whether the cooking device has the permission to use the original electronic recipe file, wherein the original electronic recipe file includes cooking data unrelated to the cooking device;
[0091] The granting module 23 may be used to grant the cooking device permission to generate an electronic recipe execution file based on the cooking data and the device information.
[0092] Compared with the method of setting permissions for the entire electronic recipe file in the prior art, the permission control device for electronic recipes provided by the present invention obtains device information of the cooking device to determine whether the device information of the cooking device has the permission to use the original electronic recipe file, and the original electronic recipe file includes cooking data that is not related to the cooking device. If so, the cooking device is granted permission to generate an electronic recipe execution file based on the cooking data and the device information. By splitting the permissions of the electronic recipe, the cooking device can generate an electronic recipe execution file suitable for itself according to the device capabilities. The cooking data in the electronic recipe can be flexibly controlled to enable permission information for the electronic recipe to be accurately generated.
[0093] In a specific application scenario, the use permission also includes download permission, and the judgment module is specifically used to judge whether the cooking device has the download permission of the electronic recipe original file in response to the download instruction of the electronic recipe original file;
[0094] The judgment module is further specifically configured to grant the cooking device permission to obtain the original electronic recipe file if yes.
[0095] In a specific application scenario, the device further includes:
[0096] a second acquisition module, configured to, after granting the cooking device the authority to generate an electronic recipe execution file based on the cooking data and the device information, cause the cooking device to acquire a device capability parameter of the cooking device based on the device information;
[0097] a determination module, configured to determine execution parameters mapped by the cooking data on the device capability parameters by matching the cooking data with the device capability parameters;
[0098] The association module is used to associate the cooking data with the execution parameters to generate an electronic recipe execution file.
[0099] In a specific application scenario, the association module includes:
[0100] a screening unit, used for screening target cooking data with usage authority from the cooking data;
[0101] The associating unit is used to associate the target cooking data with the usage permission with the execution parameters to generate an electronic recipe execution file.
[0102] In a specific application scenario, the use permission of the electronic recipe execution file is granted to a preset cooking device, and the association module further includes:
[0103] A sending unit is used to send the electronic recipe execution file to a preset cooking device after the cooking data is associated with the execution parameters to generate an electronic recipe execution file, so that the preset cooking device uses the electronic recipe execution file, and the preset cooking device does not have the authority to generate the electronic recipe execution file.
[0104] In a specific application scenario, the use permission of the electronic recipe execution file is granted to multiple cooking devices, and the association module further includes:
[0105] an acquisition unit, configured to send the electronic recipe execution file to a plurality of cooking devices and acquire an execution relationship between the plurality of cooking devices;
[0106] The control unit is used to perform authority control on the cooking data associated with the multiple cooking devices in the electronic recipe execution file based on the execution relationship between the multiple cooking devices.
[0107] In a specific application scenario, the control unit is specifically used to perform separate permission control on the cooking data associated with multiple cooking devices in the electronic recipe execution file if the execution relationship is independent execution;
[0108] The control unit is further specifically used to perform linkage authority control on the cooking data associated with multiple cooking devices in the electronic recipe execution file by utilizing the master-slave dependency relationship if the execution relationship is master-slave dependency execution.
[0109] In a specific application scenario, the control unit is further used to determine a master cooking device and a slave cooking device among a plurality of cooking devices by using the master-slave dependency relationship;
[0110] The control unit is further configured to perform permission control on the cooking data associated with the master cooking device in the electronic recipe execution file, thereby linking the permission control on the cooking data associated with the slave cooking device.
[0111] In a specific application scenario, when there are multiple cooking devices associated with the electronic recipe original file, the granting module 23 is specifically used to grant each cooking device the authority to generate a corresponding electronic recipe execution sub-file based on the cooking data with usage authority and the device information if the multiple cooking devices respectively have the authority to generate the electronic recipe execution file, and each of the electronic recipe execution sub-files can be merged to generate the electronic recipe execution file;
[0112] The granting module 23 is further specifically used to grant the master cooking device the authority to generate an electronic recipe execution file based on the cooking data and the device information if the multiple cooking devices have a master-slave dependency relationship, so as to control the authority of the slave device to generate the electronic recipe execution file in a linked manner.
[0113] In an exemplary embodiment, see Figure 3 , and also provides a device, which includes a communication bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the permission control method of the electronic recipe in the above embodiment.
[0114] A computer-readable storage medium stores a computer program, which implements the steps of the electronic recipe authority control method when executed by a processor.
[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0116] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.
[0117] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0118] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.
[0119] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.
Claims
1. A method for controlling the authority of an electronic recipe, characterized in that: include: Get device information of cooking equipment; Determining whether the cooking device has permission to use the original electronic recipe file, wherein the original electronic recipe file includes cooking data unrelated to the cooking device, specifically using an authorization terminal to record a permission list of the cooking device, to determine whether the cooking device has permission to use the original electronic recipe file, and the authorization terminal issues the corresponding permission to use the original electronic recipe file to the cooking device according to the permission to use the original electronic recipe file, wherein the original electronic recipe file is used as a common file of the cooking process in combination with different cooking devices to be compiled into an electronic recipe execution file suitable for operation of the cooking device; If so, granting the cooking device permission to generate an electronic recipe execution file based on the cooking data and the device information; The permission to use the electronic recipe execution file is granted to multiple cooking devices. After the electronic recipe execution file is generated, the electronic recipe execution file is sent to the multiple cooking devices to obtain the execution relationship between the multiple cooking devices. Based on the execution relationship between the multiple cooking devices, permission control is performed on the cooking data associated with the multiple cooking devices in the electronic recipe execution file. For cooking devices with a master-slave dependent execution relationship, the master cooking device uses the generation permission to compile an electronic recipe execution file suitable for itself and other devices for use by the slave cooking device. If the slave cooking device does not have the permission to use the electronic recipe execution file, the permission to use the electronic recipe execution file of the slave cooking device is controlled through linkage with the master cooking device.
2. The method according to claim 1, characterized in that The use permission also includes download permission, and the determination of whether the cooking device has the use permission of the original electronic recipe file specifically includes: In response to a download instruction for the original electronic recipe file, determining whether the cooking device has the download authority for the original electronic recipe file; If so, the cooking device is granted permission to obtain the original electronic recipe file.
3. The method according to claim 1, characterized in that After granting the cooking device permission to generate an electronic recipe execution file based on the cooking data and the device information, the method further includes: The cooking device acquires a device capability parameter of the cooking device based on the device information; By matching the cooking data with the device capability parameters, determining execution parameters mapped by the cooking data on the device capability parameters; The cooking data is associated with the execution parameters to generate an electronic recipe execution file.
4. The method according to claim 3, characterized in that The step of associating the cooking data with the execution parameters to generate an electronic recipe execution file specifically includes: Filtering target cooking data with usage authority from the cooking data; The target cooking data with usage authority is associated with the execution parameters to generate an electronic recipe execution file.
5. The method according to claim 3, characterized in that: The use authority of the electronic recipe execution file is granted to the preset cooking device. After the cooking data is associated with the execution parameter to generate the electronic recipe execution file, the method further includes: The electronic recipe execution file is sent to a preset cooking device, and the preset cooking device uses the electronic recipe execution file. The preset cooking device does not have the authority to generate the electronic recipe execution file.
6. The method according to claim 1, characterized in that The performing permission control on the cooking data associated with the multiple cooking devices in the electronic recipe execution file based on the execution relationship between the multiple cooking devices specifically includes: If the execution relationship is independent execution, separate permission control is performed on the cooking data associated with the multiple cooking devices in the electronic recipe execution file; If the execution relationship is a master-slave dependency execution, the master-slave dependency relationship is utilized to perform linkage authority control on the cooking data associated with the multiple cooking devices in the electronic recipe execution file.
7. The method according to claim 6, characterized in that The method of utilizing the master-slave dependency relationship to perform linkage authority control on the cooking data associated with the multiple cooking devices in the electronic recipe execution file specifically includes: Determine a master cooking device and a slave cooking device among a plurality of cooking devices by using the master-slave dependency relationship; By performing authority control on the cooking data associated with the master cooking device in the electronic recipe execution file, the authority control on the cooking data associated with the slave cooking device can be linked.
8. The method according to claim 1, characterized in that When there are multiple cooking devices associated with the electronic recipe original file, granting the cooking device the authority to generate the electronic recipe execution file based on the cooking data and the device information specifically includes: If the plurality of cooking devices have respective permissions to generate electronic recipe execution files, each cooking device is granted permissions to generate a corresponding electronic recipe execution sub-file based on the cooking data for which it has permission to use and the device information, and each of the electronic recipe execution sub-files can be combined to generate an electronic recipe execution file; If the multiple cooking devices have a master-slave dependency relationship, the master cooking device is granted permission to generate an electronic recipe execution file based on the cooking data and the device information, so as to control the permission of the slave device to generate the electronic recipe execution file in a linked manner.
9. An electronic recipe authority control device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A 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.
