Device attribute configuration method, device, storage medium and electronic device
By detecting the voice control function access status of the device, generating a control model, and configuring standard and extended attributes, the problem of device model attribute management is solved, and the voice control function access efficiency and compatibility are improved.
Patent Information
- Application Number
- CN202210290771.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-03-23
AI Technical Summary
The low versatility and poor compatibility between the backplane attributes of different device models results in a cumbersome voice control function access process and a heavy workload. As device models are updated, management becomes more difficult.
By detecting the voice control function access status of the target device, obtain all functions and attributes of the device, generate a control model, determine standard attributes and extended attributes, configure target attributes and semantic intent, establish a standardized device category attribute model, and simplify the identification of device models. Property management.
It achieves standardized management of device models, reduces the task load of voice control function access, improves access efficiency, and improves versatility and compatibility between devices.
Smart Images

Figure CN114839887B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of smart home, and more specifically, to a method, device, storage medium and electronic device for configuring device attributes. Background Art
[0002] With the advancement of science and technology and the development of artificial intelligence, more and more smart home devices have been connected to some new functions, such as voice control function (of course, other new functions can also be added, such as gesture recognition function, etc., and the voice control function is taken as an example here). For household appliances that are used frequently in daily life, the development of intelligent voice is crucial.
[0003] In the related art, there are many equipment models under one equipment category. For example, the air conditioner category includes wall-mounted air conditioners, cabinet air conditioners, central air conditioners, etc. Therefore, when accessing the voice control function, the air conditioner model needs to be refined into a finished product code that can distinguish the air conditioner model, and then the corresponding voice control function is accessed in turn according to the finished product code of each air conditioner model, which makes the process of accessing the voice control function of home appliances more cumbersome. In addition, since home appliances will continue to be updated with the development of technology, there will be a steady stream of new equipment models waiting to be connected to the voice control function, resulting in an increasing workload for accessing the voice control function. At the same time, it also leads to an increasing number of bottom-plate attributes between equipment models, resulting in low commonality and compatibility between the bottom-plate attributes of different devices, and more bottom-plate attributes are not easy to store and manage.
[0004] There are many device models under different device categories in the relevant technology, which makes it troublesome to connect new functions in sequence according to different device models, and the commonality and compatibility between the baseboard properties of different device models are low. No effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method, apparatus, storage medium and electronic device for configuring device properties, so as to at least solve the problems existing in the related art that it is troublesome to access new functions in sequence according to different device models and the commonality and compatibility between the baseboard properties of different device models are low.
[0006] According to one embodiment of the present invention, a method for configuring device attributes is provided, comprising: when it is detected that a target device needs to access a voice control function, determining the access status of the voice control function of a target category to which the target device belongs; when it is determined that the voice control function of the target category is not accessed, acquiring first all functions of the devices included in the target category, and determining a first attribute corresponding to each function included in the first all functions, and generating a control model based on the first attribute; based on a first constraint file of each device included in the target category, determining from the control model a first target attribute of a device baseboard corresponding to each device included in the target category; and configuring the first target attribute and the first semantic intent accordingly.
[0007] In an exemplary embodiment, generating the control model based on the first attribute includes: determining the number of occurrences of the first attribute corresponding to each function included in the first set of functions; determining the first attribute whose number of occurrences exceeds a predetermined threshold; determining the first attribute whose number of occurrences exceeds the predetermined threshold as a standard attribute of the function of the target category, and generating a standard model for storing the standard attribute; and determining the first attribute whose number of occurrences does not exceed the predetermined threshold as an extended attribute of the function of the target category, and generating an extended model for storing the extended attribute; wherein the model includes the standard model and the extended model.
[0008] In an exemplary embodiment, after generating a control model based on the first attribute, the method further includes: when it is detected that the first device needs to access the voice control function, determining a second target attribute of a device baseboard corresponding to the first device from the control model based on a second constraint file of the first device; and sending the second target attribute and the device baseboard control parameters corresponding to the voice control function to the device baseboard of the first device.
[0009] In an exemplary embodiment, determining a second target attribute of a device baseboard corresponding to the first device from the control model based on a second constraint file of the first device includes: determining a first standard attribute corresponding to the voice control function from a standard model of the control model, and / or determining a first extended attribute corresponding to the voice control function from an extended model of the control model; determining the second target attribute from the first standard attribute and / or the first extended attribute based on the second constraint file.
[0010] In an exemplary embodiment, sending the second target attribute and the device baseboard control parameters corresponding to the voice control function to the device baseboard of the first device includes: determining the device baseboard control parameters corresponding to the voice control function based on the second target attribute; sending the second target attribute and the corresponding device baseboard control parameters to the device baseboard of the first device, wherein the device baseboard control parameters include performance parameters of the voice control function.
[0011] In an exemplary embodiment, the method further includes: configuring the second target attribute and the second semantic intention correspondingly.
[0012] In an exemplary embodiment, after determining the access status of the voice control function of the target category to which the target device belongs, the method further includes: after determining that the voice control function of the target category has been accessed, determining a third attribute corresponding to each function included in the second set of functions of the target device based on a third constraint file of the target device; and when it is determined that the third attribute does not exist in the control model, storing the third attribute in the control model.
[0013] According to another embodiment of the present invention, there is also provided a device attribute configuration apparatus, comprising: a first determination module, for determining, when it is detected that a target device needs to access a voice control function, an access status of the voice control function of a target category to which the target device belongs; a generation module, for, when it is determined that the voice control function of the target category is not accessed, obtaining first all functions of the devices included in the target category, and determining a first attribute corresponding to each function included in the first all functions, and generating a control model based on the first attribute; a second determination module, for determining, from the control model, a first target attribute of a device baseplate corresponding to each device included in the target category based on a first constraint file of each device included in the target category; and a first configuration module, for correspondingly configuring the first target attribute and the first semantic intent.
[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0015] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] Through the present invention, when it is detected that the target device needs to access the voice control function, the access status of the voice control function of the target category of the target device can be determined, and then when it is determined that the voice control function of the target category is not accessed, the first full function of the device included in the target category is obtained, and the first attribute corresponding to each function included in the first full function is determined, and a control model is generated based on the first attribute, and then based on the first constraint file of each device included in the target category, the first target attribute of the device base corresponding to each device included in the target category is determined from the control model, and then the first target attribute and the first semantic intention can be configured accordingly. By adopting the method of the present invention, a standardized attribute model of the device category can be established, and the attributes of many device models can be standardized. This solves the problem that there are many device models under different device categories in the related art, which makes it troublesome to access new functions in sequence according to different device models, and the commonality and compatibility between the baseboard attributes of different device models are low. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 It is a hardware structure block diagram of a mobile terminal of the method for configuring device attributes of an embodiment of the present invention;
[0020] Figure 2 is a flow chart of a method for configuring device attributes according to an embodiment of the present invention;
[0021] Figure 3 is a flow chart according to a specific embodiment of the present invention;
[0022] Figure 4 is a schematic diagram of a standard model data representation of a base plate property for setting a temperature according to an embodiment of the present invention;
[0023] Figure 5 is a schematic diagram of a standard model data table and an extended model data table of floor properties of a purification mode according to an embodiment of the present invention;
[0024] Figure 64 is a structural block diagram of a device for configuring device attributes according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] According to one aspect of an embodiment of the present application, a method for configuring device attributes is provided. The method for configuring device attributes is widely used in smart home, smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for configuring device attributes can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0028] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0029] In this embodiment, a method for configuring device attributes is provided. Figure 2 is a flow chart of a method for configuring device attributes according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0030] Step S202, when it is detected that the target device needs to access the voice control function, determining the access status of the voice control function of the target category to which the target device belongs;
[0031] Step S204, when it is determined that the voice control function of the target category is not connected, obtaining first all functions of the devices included in the target category, determining a first attribute corresponding to each function included in the first all functions, and generating a control model based on the first attribute;
[0032] Step S206, based on the first constraint file of each device included in the target category, determining the first target attribute of the device baseboard corresponding to each device included in the target category from the control model;
[0033] Step S208, configuring the first target attribute and the first semantic intent accordingly.
[0034] Among them, the executor of the above steps can be a data integration platform, or a device, controller, intelligent system with detection and analysis functions, or a controller or processor included in an intelligent system, or it can also be a control device or processing device independently set up in the intelligent system, or it can also be other processing devices or processing units with similar processing capabilities.
[0035] In the above embodiment, there may be multiple target devices, and the voice control functions (of course, other new functions may also be available, such as gesture recognition functions, etc., and the voice control function is used as an example for explanation here) that need to be accessed by different types of target devices are also different. For example, when the target device is an air conditioner, the voice control function may be to set the temperature of the refrigerator compartment, turn on the purification mode, turn on the quick cooling mode, etc. When the target device is a water heater, the voice control function may be to set the hot water temperature, turn on the sterilization mode, etc. Of course, different types of target devices also have the same voice control function. For example, when the target devices are an air conditioner and a water heater respectively, the purification mode of the air conditioner and the sterilization mode of the water heater are both functions that have the ability to remove bacteria and other microorganisms.
[0036] In the above embodiment, the target category includes multiple models of the target devices, and the voice control functions that need to be connected to devices of different models under the same category are also different. For example, when the target category is air conditioning, the target devices are central air conditioners and wall-mounted air conditioners respectively. However, central air conditioners are generally used in larger places, such as conference rooms, auditoriums, etc. Therefore, central air conditioners may need to be connected to enhanced cooling functions or enhanced heating functions. In general, larger places have a large number of people, so the central air conditioner can be connected to an air purification function, etc. Wall-mounted air conditioners are generally used in smaller places, such as bedrooms, living rooms, etc., and some families have pets. Therefore, wall-mounted air conditioners can be connected to purification functions, etc. It should be noted that the above-mentioned voice control function types and application scenarios are only exemplary embodiments, but the above-mentioned voice control function types and application scenarios are not limited to the above-mentioned examples.
[0037] In the above embodiment, when it is detected that the target device needs to access the voice control function, the access status of the voice control function of the target category described by the target device can be determined, and then when it is determined that the voice control function of the target category is not accessed, the first full function of the device included in the target category is obtained, and the first attribute corresponding to each function included in the first full function is determined, and a control model is generated based on the first attribute, and then based on the first constraint file of each device included in the target category, the first target attribute of the device base corresponding to each device included in the target category is determined from the control model, and then the first target attribute and the first semantic intention can be configured accordingly. By adopting the method of the present invention, a standardized attribute model of the device category can be established, and the attributes of many device models can be managed in a standardized manner. This solves the problem that there are many device models under different device categories in the related art, which makes it troublesome to access new functions in sequence according to different device models, and the commonality and compatibility between the baseboard attributes of different device models are low.
[0038] In an exemplary embodiment, generating the control model based on the first attribute includes: determining the number of occurrences of the first attribute corresponding to each function included in the first set of functions; determining the first attribute whose number of occurrences exceeds a predetermined threshold; determining the first attribute whose number of occurrences exceeds the predetermined threshold as a standard attribute of the function of the target category, and generating a standard model for storing the standard attribute; and determining the first attribute whose number of occurrences does not exceed the predetermined threshold as an extended attribute of the function of the target category, and generating an extended model for storing the extended attribute; wherein the model includes the standard model and the extended model. In this embodiment, the predetermined threshold is a value that can be preset, and can be set to 50 times, 70 times, or 90 times. For example, when the predetermined threshold is 70, the first attribute that appears more than 70 times is determined as the standard attribute of the function of the target category, and a standard model for storing the standard attribute is generated; and the first attribute that does not appear more than 70 times is determined as the extended attribute of the function of the target category, and an extended model for storing the extended attribute is generated. For example, when the target category is an air conditioner, and there are 100 air conditioners, the first attributes corresponding to the purification modes of the air conditioners are cleaningStatus and ster respectively. ilizationLevel, and it can be determined that the first attribute corresponding to the purification mode in 100 air conditioners appears 90 times, of which cleaningStatus appears 80 times and sterilizationLevel appears 10 times, that is, cleaningStatus can be determined as the standard attribute of the purification function of the air conditioner, and sterilizationLevel can be determined as the extended attribute of the purification function of the air conditioner. It should be noted that the example of the above-mentioned predetermined threshold value and the above-mentioned first attribute is only an exemplary embodiment, but the above-mentioned predetermined threshold value and the above-mentioned first attribute are not limited to the above-mentioned example.
[0039] In the above embodiment, the first attribute corresponding to each function included in the first set of functions of the target category reported can be obtained regularly, and the number of occurrences of the first attribute can be determined based on the obtained first attribute, wherein the first attribute corresponding to each function included in the first set of functions of the target category can be reported manually once a month (or 20 days, two months, three months, etc.), or other equipment with statistical capabilities can report the first attribute corresponding to each function included in the first set of functions of the target category once a month (or 20 days, two months, three months, etc.).
[0040] In an exemplary embodiment, after generating a control model based on the first attribute, the method further includes: in the case where it is detected that the first device needs to access the voice control function, determining the second target attribute of the device baseboard corresponding to the first device from the control model based on the second constraint file of the first device; and sending the second target attribute and the device baseboard control parameter corresponding to the voice control function to the device baseboard of the first device. In this embodiment, after the first full-function access of the target category is completed, if the target category has a new model of device function that needs to be accessed, the standard attributes and / or extended attributes that are consistent with the attributes corresponding to the constraint file of the new model of the device can be searched from the control model based on the constraint file of the new model of the device. In addition, the function name can be set as the category index, and the category index of the standard model and the category index of the extended model can be set to be consistent. Then, when searching for a certain function, the standard attributes in the standard model of the function and the extended attributes in the extended model can be searched at the same time.
[0041] In an exemplary embodiment, determining a second target attribute of a device baseboard corresponding to the first device from the control model based on a second constraint file of the first device includes: determining a first standard attribute corresponding to the voice control function from a standard model of the control model, and / or determining a first extended attribute corresponding to the voice control function from an extended model of the control model; determining the second target attribute from the first standard attribute and / or the first extended attribute based on the second constraint file. In this embodiment, each type of device has a unique constraint file, but the constraint files of different device models are not the same, and thus the target attribute of the device of that model can be determined from the standard model and / or the extended model based on the constraint files of different device models. For example, when the first device is an air conditioner, the second attribute corresponding to the purification function of the second constraint file of the first device is cleaningStatus, the standard attribute in the standard model pre-configured to correspond to the purification function of the air conditioner category is cleaningStatus, and the extended attribute in the standard model pre-configured to correspond to the purification function of the air conditioner category is sterilizationLevel. Based on the second attribute corresponding to the purification function of the second constraint file, the standard attribute cleaningStatus in the standard model pre-configured to correspond to the purification function of the air conditioner category can be determined as the second target attribute of the air conditioner. When the first device is an air conditioner, the purification function of the second constraint file of the first device The corresponding second attribute is sterilizationLevel, the standard attribute in the pre-configured standard model corresponding to the purification function of the air-conditioning category is sterilizationLevel, and the extended attribute in the pre-configured standard model corresponding to the purification function of the air-conditioning category is cleaningStatus. The standard attribute sterilizationLevel in the pre-configured standard model corresponding to the purification function of the air-conditioning category can be determined as the second target attribute of the air-conditioner based on the second attribute corresponding to the purification function of the second constraint file. It should be noted that the example of the second attribute of the second constraint file corresponding to the purification function, the standard attribute corresponding to the purification function, and the extended attribute corresponding to the purification function is only an exemplary embodiment, but the second attribute of the second constraint file corresponding to the purification function, the standard attribute corresponding to the purification function, and the extended attribute corresponding to the purification function are not limited to the above example.
[0042] In an exemplary embodiment, sending the second target attribute and the device baseboard control parameter corresponding to the voice control function to the device baseboard of the first device includes: determining the device baseboard control parameter corresponding to the voice control function based on the second target attribute; sending the second target attribute and the corresponding device baseboard control parameter to the device baseboard of the first device, wherein the device baseboard control parameter includes the performance parameter of the voice control function. In this embodiment, the device baseboard control parameter may include one or more of device category, function name, baseboard value, baseboard attribute description, baseboard value description, baseboard attribute update time, etc.
[0043] In an exemplary embodiment, after the second target attribute and the device baseboard control parameters corresponding to the voice control function are sent to the device baseboard of the first device, the method further includes: configuring the second target attribute and the second semantic intent accordingly. In this embodiment, the configuration files of the second target attribute and the corresponding second semantic intent can be stored in a corresponding database, and then there is no need to configure the corresponding second semantic intent for the second target attribute in the future, and the required configuration file can be directly called from the database, thereby effectively reducing the workload of developing and configuring semantic intents.
[0044] In an exemplary embodiment, after determining the access status of the voice control function of the target category to which the target device belongs, the method further includes: after determining that the voice control function of the target category has been accessed, determining the third attribute corresponding to each function included in the second total function of the target device based on the third constraint file of the target device; when determining that the third attribute does not exist in the control model, storing the third attribute in the control model. In this embodiment, there may be multiple third attributes corresponding to each function included in the second total function. For example, when the target category is a refrigerator, the second total function includes a purification function, and the third attribute corresponding to the purification function may be cleaningStatus or sterilizationLevel. The second total function also includes a temperature setting function, and the third attribute corresponding to the temperature setting function may be setTemperature or setTemp, etc. In addition, when the target device is a water heater, the water heater includes a purification function, and the attribute corresponding to the purification function in the constraint file of the water heater is not found in the control model. At this time, the attribute corresponding to the purification function in the constraint file of the water heater needs to be supplemented and stored in the control model.
[0045] Obviously, the above described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The present invention will be specifically described below in conjunction with the embodiments (the voice control function will be specifically described below as an example).
[0046] Figure 3 is a flow chart according to a specific embodiment of the present invention, such as Figure 3 As shown, the process includes the following steps:
[0047] S302, voice access starts;
[0048] S304, performing a first judgment to determine whether the device category has been connected to the AI;
[0049] When a certain model of equipment is to be connected to the voice function (corresponding to the above-mentioned voice control function), it is necessary to first determine whether the category (corresponding to the above-mentioned target category) to which the device (corresponding to the above-mentioned target device) belongs has been connected to AI. If not, then this category is being connected for the first time, and a large amount of tasks need to be developed by AI technicians. On the contrary, it is supplementary development and the access will become simpler. For example, when a new model of refrigerator is to be connected to the voice function, it is found that the refrigerator category has not been connected. Therefore, the refrigerator is being connected for the first time. When a new model of water heater is to be connected to the voice function, it is found that the water heater category has been connected, so the access of this model of water heater will become simpler.
[0050] S306, when the result of the first judgment is no, sort out the equipment functions (corresponding to the first all functions) and the base plate attributes of the category, generate a standard model and an extended model according to the equipment functions and store them in a database;
[0051] When a device is connected, all functions supported by the device category must be sorted out first (corresponding to the first all functions mentioned above), and then the corresponding baseboard attributes are sorted out according to the device functions, and function_key (function name) is used as the category index to generate data corresponding to the baseboard attributes one by one, that is, the standard model, and store it in the database. If a device function corresponds to multiple baseboard attributes, select the common baseboard attributes as the standard model, and put the other baseboard attributes into the extended model and store them in the database. At the same time, function_key is also used as the category index of the extended model. The advantage of this processing is that when parsing the baseboard instructions according to the semantic intent, all baseboard instructions can be retrieved according to function_key, including the data in the standard model and the extended model, and then the retrieved data is compared with the constraint file of the device model, and the baseboard attributes supported by the device (corresponding to the second target attribute mentioned above) are selected, so as to issue the correct instructions. For example, when the refrigerator category is connected for the first time, all the functions of the refrigerator must be sorted out first, such as setting the temperature of the refrigerator compartment, setting the mode (quick cooling mode, purification mode), etc. Figure 4 is a schematic diagram of a standard model data representation of the base plate properties for setting the temperature according to an embodiment of the present invention, such as Figure 4 As shown, the function_key for setting the temperature can be defined as refrigeratorTargetTempLevel, which is the same as the base plate attribute in the device constraint file. Then, refrigeratorTargetTempLevel can be used as standard model data and stored in the database.
[0052] However, the base attribute of the purification mode is not unique. There are both sterilizationLevel and cleaningStatus. In this case, the cleaningStatus that appears more frequently needs to be put into the standard model storage, and the sterilizationLevel needs to be put into the extended model storage. Figure 5 Schematic diagram of a standard model data table and an extended model data table of the bottom plate properties of the purification mode according to an embodiment of the present invention, such as Figure 5 As shown in the figure, when querying the bottom plate properties of the refrigerator in purification mode, the two properties of cleaningStatus and sterilizationLevel will be retrieved at the same time. At this time, the bottom plate properties of the purification mode of the refrigerator of this model can be filtered out according to the constraint file of the refrigerator, so that the bottom plate properties are gradually universalized and compatible, and the bottom plate properties of the equipment are gradually standardized, so as to further develop and layout the standardization of the equipment bottom plate in advance.
[0053] S308, storing the standard model and the extended model generated in step S306 into a database;
[0054] S310, configuring a corresponding development configuration file for the base plate attribute (corresponding to the first target attribute) and the semantic intent (corresponding to the first semantic intent) of the category;
[0055] Match and configure the baseplate attributes with the semantic intent. For example, when setting the refrigerator temperature (setTemperature) with the semantic intent, the baseplate attribute is refrigeratorTargetTempLevel. You can configure both and write the corresponding relationship into the file. When voice is used to set the refrigerator temperature, the "attribute and intent configuration file" can be parsed to send the correct instructions to the device, thereby achieving the goal of voice control of the device.
[0056] S312, storing the corresponding baseboard attributes and semantic intent configured in step S310 into the "attribute and intent configuration file";
[0057] This is the last step of the first access of the device category. The corresponding baseboard attributes and semantic intents configured in step S310 are stored in a file called "attribute and intent configuration file".
[0058] S314, voice access completed;
[0059] S316, when the result of the first judgment is yes, a second judgment is performed to determine whether the standard model and the extended model of the category meet the bottom plate attributes of the device model. When it is determined that the result of the second judgment is yes, the step S314 is executed;
[0060] After the category access is completed, when a new model of equipment is accessed to the category, you can check in the existing standard model and extended model whether the baseplate attributes of the new model of equipment are met. If they are met, no additional access work is required. Otherwise, you need to continue to add new baseplate attributes and continue to expand the data model. For example, when a new model of water heater is accessed to the already accessed water heater category, it is necessary to determine whether there are new baseplate attributes based on the constraint file of the model of equipment. If there are no new baseplate attributes, no access work is required. If there are new baseplate attributes, you need to add the new baseplate attributes to the standard model.
[0061] S318, when the result of the second judgment is no, supplement the standard attribute and extended attribute database, that is, generate a standard model and an extended model based on the device function and the baseboard attribute of the device model, and store the standard model and the extended model in the database of step S308;
[0062] When new base plate attributes appear in the device model of the connected category, the new base plate attributes need to be added to the standard model and the extended model and stored in the database. For example, the current water heater category does not have a sterilization function, but the new model of the water heater has a sterilization function. At this time, the base plate attributes of the sterilization function need to be configured in the standard model.
[0063] S320, supplementing the development configuration file, that is, storing the baseboard attributes and intent configuration file of the device model into the "attribute and intent configuration file" in step S312;
[0064] After supplementing the standard model and extended model, it is also necessary to improve the baseboard attributes and semantic intent configuration files accordingly to ensure the effectiveness of voice control execution. For example, after the water heater adds the baseboard attributes of the sterilization mode in the standard model, it is necessary to add the correspondence between the semantic intent and the baseboard attributes in the "attribute and intent configuration file". Then, in the parsing process of "water heater turns on sterilization mode", the baseboard attributes and attribute values of the sterilization mode can be found and sent to the baseboard through the gateway, thereby controlling the water heater to turn on the sterilization mode.
[0065] In summary, after the voice control function is connected according to the device category, development is only required when the category is connected for the first time or new baseboard attributes appear. However, the entire process does not require industry personnel to invest energy, and greatly reduces the workload of AI technology developers, further improving the efficiency of voice access.
[0066] It can be seen from the above embodiments that the voice control function can be accessed according to the device category (for example, air conditioners, refrigerators, water heaters, etc.), which greatly reduces the number of voice functions that are accessed one by one according to the device model. In the process of voice access, the concepts of standard model and extended model are proposed. A standard model and / or extended model can be created for each device category. Then, when the base plate attributes of a device model under a certain category are inconsistent with the standard attributes, the base plate attributes of the device model can be put into the extended model as extended attributes, so that the device attributes are gradually standardized and universalized. In the case of voice control, the standard model and / or extended model can be used to control the device model. The extended model finds all the baseboard properties of the function that matches the user's voice control, and then matches them with the constraint file of the device model, and then determines whether the controlled device has this function. If all the baseboard properties of the function in the standard model and the extended model cannot match the constraint file of the device model, the user can be reminded that there is no baseboard property of the function in the standard model and / or the extended model database (that is, there is no such function). If there is a baseboard property among all the baseboard properties of the function in the standard model and / or the extended model that can match the constraint file of the device model, the baseboard property and the performance parameters of the voice control function can be sent to the device baseboard of the device.
[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0068] In this embodiment, a device attribute configuration device is also provided. Figure 6 is a structural block diagram of a device configuration apparatus according to an embodiment of the present invention, such as Figure 6 As shown, the device comprises:
[0069] A first determination module 62 is used to determine the access status of the voice control function of the target category to which the target device belongs when it is detected that the target device needs to access the voice control function;
[0070] A generating module 64 is configured to, when it is determined that the voice control function of the target category is not connected, obtain first all functions of the devices included in the target category, determine a first attribute corresponding to each function included in the first all functions, and generate a control model based on the first attribute;
[0071] A second determination module 66 is used to determine, from the control model, a first target attribute of a device baseplate corresponding to each device included in the target category based on a first constraint file of each device included in the target category;
[0072] The first configuration module 68 is used to configure the first target attribute and the first semantic intention accordingly.
[0073] In an optional embodiment, the above-mentioned generation module 64 includes: a first determination unit, used to determine the number of occurrences of the first attribute corresponding to each function included in the first total function; a second determination unit, used to determine the first attribute whose number of occurrences exceeds a predetermined threshold; a generation unit, used to determine the first attribute whose number of occurrences exceeds the predetermined threshold as a standard attribute of the function of the target category, and generate a standard model for storing the standard attribute, and determine the first attribute whose number of occurrences does not exceed the predetermined threshold as an extended attribute of the function of the target category, and generate an extended model for storing the extended attribute; wherein the model includes the standard model and the extended model.
[0074] In an optional embodiment, the above-mentioned device also includes: a third determination module, which is used to generate a control model based on the first attribute, and when it is detected that the first device needs to access the voice control function, determine the second target attribute of the device baseboard corresponding to the first device from the control model based on the second constraint file of the first device; and a sending module, which is used to send the second target attribute and the device baseboard control parameters corresponding to the voice control function to the device baseboard of the first device.
[0075] In an optional embodiment, the above-mentioned third determination module includes: a third determination unit, used to determine the first standard attribute corresponding to the voice control function from the standard model of the control model, and / or, to determine the first extended attribute corresponding to the voice control function from the extended model of the control model; a fourth determination unit, used to determine the second target attribute from the first standard attribute and / or the first extended attribute based on the second constraint file.
[0076] In an optional embodiment, the above-mentioned sending module includes: a fifth determination unit, used to determine the device baseboard control parameters corresponding to the voice control function based on the second target attribute; a sending unit, used to send the second target attribute and the corresponding device baseboard control parameters to the device baseboard of the first device, wherein the device baseboard control parameters include the performance parameters of the voice control function.
[0077] In an optional embodiment, the above-mentioned device also includes: a second configuration module, which is used to configure the second target attribute and the second semantic intention accordingly after sending the second target attribute and the device baseboard control parameters corresponding to the voice control function to the device baseboard of the first device.
[0078] In an optional embodiment, the above-mentioned device also includes: a fourth determination module, which is used to determine the access status of the voice control function of the target category to which the target device belongs, and after determining that the voice control function of the target category has been connected, determine the third attribute corresponding to each function included in the second total function of the target device based on the third constraint file of the target device; and a storage module, which is used to store the third attribute in the control model when it is determined that the third attribute does not exist in the control model.
[0079] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0080] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0081] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0082] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0083] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0084] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0085] The improved device attribute configuration method of the present invention can, on the one hand, perform voice control function access according to device categories (taking the newly added function of voice control function as an example for explanation, but not limited to this). Compared with the method of performing voice control function access according to device models under categories, the task volume of voice control function access can be reduced exponentially, and the efficiency of voice control function access can be further improved. On the other hand, the standard model and extended model of device categories are introduced, covering most of the bottom board attributes in each category, changing the current situation of configuring bottom board attributes and corresponding semantic intentions one by one according to device models. While simplifying the device voice control function access process, it also solves the problems of poor versatility and low compatibility of bottom board attributes in the device voice control function access and voice control process.
[0086] 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, 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.
[0087] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for configuring device attributes, It is characterized in that include: In the case where it is detected that the target device needs to access the voice control function, determining the access status of the voice control function of the target category to which the target device belongs; When it is determined that the voice control function of the target category is not connected, obtaining first all functions of the devices included in the target category, determining a first attribute corresponding to each function included in the first all functions, and generating a control model based on the first attribute; Determining, from the control model, a first target attribute of a device backplane corresponding to each device included in the target category based on a first constraint file for each device included in the target category; The first target attribute and the first semantic intention are configured accordingly.
2. The method according to claim 1, It is characterized in that Generating the control model based on the first attribute includes: Determine the number of occurrences of the first attribute corresponding to each function included in the first all functions; Determining the first attribute whose occurrence number exceeds a predetermined threshold; Determine the first attribute whose occurrence number exceeds the predetermined threshold as a standard attribute of the function of the target category, and generate a standard model for storing the standard attribute; and determine the first attribute whose occurrence number does not exceed the predetermined threshold as an extended attribute of the function of the target category, and generate an extended model for storing the extended attribute; Wherein, the model includes the standard model and the extended model.
3. The method according to claim 1, It is characterized in that After the first target attribute and the first semantic intent are configured accordingly, the method further includes: In the case where it is detected that the first device needs to access the voice control function, determining a second target attribute of the device baseboard corresponding to the first device from the control model based on a second constraint file of the first device; The second target attribute and the device baseboard control parameter corresponding to the voice control function are sent to the device baseboard of the first device.
4. The method according to claim 3, It is characterized in that Determining a second target attribute of a device baseplate corresponding to the first device from the control model based on the second constraint file of the first device includes: Determining a first standard attribute corresponding to the voice control function from a standard model of the control model, and / or determining a first extended attribute corresponding to the voice control function from an extended model of the control model; The second target attribute is determined from the first standard attribute and / or the first extended attribute based on the second constraint file.
5. The method according to claim 3, It is characterized in that Sending the second target attribute and the device baseboard control parameter corresponding to the voice control function to the device baseboard of the first device includes: Determine a device baseboard control parameter corresponding to the voice control function based on the second target attribute; The second target attribute and the corresponding device baseboard control parameter are sent to the device baseboard of the first device, wherein the device baseboard control parameter includes the performance parameter of the voice control function.
6. The method according to claim 3, It is characterized in that After sending the second target attribute and the device baseboard control parameter corresponding to the voice control function to the device baseboard of the first device, the method further includes: The second target attribute configuration and the second semantic intent are configured accordingly.
7. The method according to claim 1, It is characterized in that After determining the access status of the voice control function of the target category to which the target device belongs, the method further includes: After determining that the voice control function of the target category has been connected, Determining, based on a third constraint file of the target device, a third attribute corresponding to each function included in all second functions of the target device; In a case where it is determined that the third attribute does not exist in the control model, the third attribute is stored in the control model.
8. A device for configuring device attributes, It is characterized in that include: A first determination module is used to determine the access status of the voice control function of the target category to which the target device belongs when it is detected that the target device needs to access the voice control function; A generating module, configured to, when it is determined that the voice control function of the target category is not connected, obtain first all functions of the devices included in the target category, determine a first attribute corresponding to each function included in the first all functions, and generate a control model based on the first attribute; A second determination module, configured to determine, from the control model, a first target attribute of a device baseplate corresponding to each device included in the target category based on a first constraint file of each device included in the target category; The first configuration module is used to configure the first target attribute and the first semantic intention accordingly.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
