CN114839887A - Equipment attribute configuration method and device, storage medium and electronic device - Google Patents

Equipment attribute configuration method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114839887A
CN114839887A CN202210290771.3A CN202210290771A CN114839887A CN 114839887 A CN114839887 A CN 114839887A CN 202210290771 A CN202210290771 A CN 202210290771A CN 114839887 A CN114839887 A CN 114839887A
Authority
CN
China
Prior art keywords
attribute
target
equipment
determining
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210290771.3A
Other languages
Chinese (zh)
Inventor
郭思笛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210290771.3A priority Critical patent/CN114839887A/en
Publication of CN114839887A publication Critical patent/CN114839887A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention provides a method, a device, a storage medium and an electronic device for configuring equipment attributes, wherein the method comprises the following steps: when detecting that the target equipment needs to be accessed to the voice control function, determining the access state of the voice control function of the target class to which the target equipment belongs; under the condition that the voice control function of the target product is determined not to be accessed, acquiring all first functions of equipment in the target product, determining a first attribute corresponding to each function in all the first functions, and generating a control model based on the first attributes; determining a first target attribute of an equipment bottom plate corresponding to each equipment in the target class from the control model based on the first constraint file of each equipment in the target class; and correspondingly configuring the first target attribute and the first semantic intention. The problems that the sequential access of different equipment models to the newly added functions is troublesome and the universality among the attributes of the bottom plates of different equipment models is low in the related technology are solved.

Description

Equipment attribute configuration method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of smart home, in particular to a method and a device for configuring equipment attributes, a storage medium and an electronic device.
Background
With the progress of scientific technology and the development of artificial intelligence, more and more smart home devices are connected with some newly added functions, for example, a voice control function (certainly, other newly added functions, for example, a gesture recognition function and the like, are also possible, and the voice control function is taken as an example for explanation here), and for household appliances with high daily use frequency, the development of intelligent voice is crucial.
In the related art, there are a great many types of equipment under one type of equipment, for example, air conditioners including an on-hook air conditioner, a cabinet air conditioner, a central air conditioner, etc., and therefore, under the condition of accessing the voice control function, the air conditioner model needs to be thinned to a finished product code which can distinguish the air conditioner model, and then the corresponding voice control function is accessed in sequence according to the finished product code of each air conditioner model, so that the process of accessing the voice control function by the household equipment is relatively complicated, in addition, as the household equipment is continuously updated along with the development of the technology, therefore, new equipment models can be continuously waited for accessing the voice control function, which leads to the increasing workload of accessing the voice control function and the increasing attributes of the bottom plates among the equipment models, therefore, the universality between the backplane attributes of different devices is low, the compatibility is poor, and more backplane attributes are inconvenient to store and manage.
Aiming at the problems that the prior art has more equipment models under different equipment types, so that the sequential access of new functions according to different equipment models is troublesome, and the universality among the attributes of the bottom plates of different equipment models is low and the compatibility is poor, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a configuration method and device of equipment attributes, a storage medium and an electronic device, which at least solve the problems that the sequential access of newly added functions according to different equipment models is troublesome, and the universality among the attributes of bottom plates of different equipment models is low and the compatibility is poor in the related technology.
According to an embodiment of the present invention, there is provided a method for configuring device attributes, including: under the condition that target equipment is detected to need to be accessed to a voice control function, determining the access state of the voice control function of a target class to which the target equipment belongs; under the condition that the voice control function of the target class is determined not to be accessed, acquiring all first functions of equipment included in the target class, determining a first attribute corresponding to each function included in the all first functions, and generating a control model based on the first attributes; determining a first target attribute of an equipment backplane corresponding to each equipment in the target class from the control model based on the first constraint file of each equipment in the target class; and correspondingly configuring the first target attribute and the first semantic intention.
In one exemplary embodiment, generating the control model based on the first attribute comprises: determining the occurrence number of the first attribute corresponding to each function included in the first total functions; determining the first attribute of which the occurrence number exceeds a preset threshold; determining the first attribute of which the occurrence number exceeds the predetermined threshold as a standard attribute of the function of the target item and generating a standard model for storing the standard attribute, and determining a first attribute of which the occurrence number does not exceed the predetermined threshold as an extended attribute of the function of the target item and generating an extended model for storing the extended attribute; wherein the model comprises the standard model and the extended model.
In one exemplary embodiment, after generating a control model based on the first attribute, the method further comprises: under the condition that it is detected that first equipment needs to be accessed to the voice control function, determining a second target attribute of an equipment bottom plate corresponding to the first equipment from the control model based on a second constraint file of the first equipment; and issuing the second target attribute and the equipment bottom plate control parameter corresponding to the voice control function to the equipment bottom plate of the first equipment.
In an exemplary embodiment, determining the second target property of the equipment backplane corresponding to the first equipment from the control model based on the second constraint file of the first equipment comprises: 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 an exemplary embodiment, issuing the second target attribute and the device backplane control parameter corresponding to the voice control function to the device backplane of the first device includes: determining equipment bottom plate control parameters corresponding to the voice control function based on the second target attribute; and issuing the second target attribute and the corresponding equipment bottom plate control parameter to the equipment bottom plate of the first equipment, wherein the equipment bottom plate control parameter comprises the performance parameter of the voice control function.
In one exemplary embodiment, the method further comprises: and correspondingly configuring the second target attribute and the second semantic intention.
In one exemplary embodiment, after determining the access status of the voice control function of the target class to which the target device belongs, the method further comprises: after determining that the voice control functions of the target category are accessed, determining a third attribute corresponding to each function included in a second total functions of the target device based on a third constraint file of the target device; storing the third attribute into the control model if it is determined that the third attribute is not present in the control model.
According to another embodiment of the present invention, there is also provided an apparatus for configuring device attributes, including: the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining the access state of the voice control function of a target class to which target equipment belongs under the condition that the target equipment is detected to need to be accessed to the voice control function; a generating module, configured to, when it is determined that the voice control function of the target category is not accessed, obtain all first functions of equipment included in the target category, determine a first attribute corresponding to each function included in the all first functions, and generate a control model based on the first attribute; a second determining module, configured to determine, from the control model, a first target attribute of an equipment backplane corresponding to each piece of equipment included in the target class based on the first constraint file of each piece of equipment included in the target class; and the first configuration module is used for correspondingly configuring the first target attribute and the first semantic intention.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
By the method, the access state of the voice control function of the target class of the target equipment can be determined when the target equipment is detected to be required to be accessed to the voice control function, further, when the voice control function of the target class is determined not to be accessed, all first functions of the equipment in the target class are obtained, a first attribute corresponding to each function in all the first functions is determined, a control model is generated based on the first attributes, a first target attribute of an equipment bottom plate corresponding to each equipment in the target class is determined from the control model based on a first constraint file of each equipment in the target class, and then, the first target attribute and a first semantic intention can be correspondingly configured, the attribute model of the standardized equipment category can be established, and further the attributes of a plurality of equipment models are subjected to standardized management. Therefore, the problems that in the prior art, the number of equipment models is large under different equipment types, the fact that the newly added functions are accessed in sequence according to different equipment models is troublesome, and universality among bottom plate attributes of different equipment models is low and compatibility is poor are solved.
Drawings
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 application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to a method for configuring device attributes according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of configuring device attributes according to an embodiment of the present invention;
FIG. 3 is a flow diagram according to an embodiment of the present invention;
FIG. 4 is a table of standard model data for temperature setting backplane properties according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a standard model data table and an extended model data table for backplane attributes for a sanitization mode according to an embodiment of the present invention;
fig. 6 is a block diagram of a configuration apparatus of device attributes according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of an embodiment of the present application, a method for configuring device attributes is provided. The method for configuring the device attributes is widely applied to full-House intelligent digital control application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent Home device ecology, intelligent House (Intelligent House) ecology and the like. Alternatively, in this embodiment, the configuration method of the device attribute may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In this embodiment, a method for configuring device attributes is provided, and fig. 2 is a flowchart of a method for configuring device attributes according to an embodiment of the present invention, where as shown in fig. 2, the flowchart includes the following steps:
step S202, when detecting that the target equipment needs to be accessed to the voice control function, determining the access state of the voice control function of the target class to which the target equipment belongs;
step S204, under the condition that the voice control function of the target product is determined not to be accessed, acquiring all first functions of equipment in the target product, determining a first attribute corresponding to each function in all the first functions, and generating a control model based on the first attributes;
step S206, determining a first target attribute of the equipment bottom plate corresponding to each equipment in the target class from the control model based on the first constraint file of each equipment in the target class;
step S208, correspondingly configuring the first target attribute and the first semantic intention.
The executing body of the above steps may be a data integration platform, or a device with a detection and analysis function, a controller, an intelligent system, or a controller or a processor included in the intelligent system, or may also be a control device or a processing device independently provided in the intelligent system, or may also be other processing devices or processing units with similar processing capabilities, and the like.
In the above embodiment, there may be a plurality of target devices, and the voice control functions (of course, other additional functions, such as gesture recognition function, etc., are also possible, and are described here by taking the voice control function as an example) that different types of the target devices need to access are different, for example, when the target device is an air conditioner, the voice control function may be setting the temperature of a refrigerating chamber, turning on a purification mode, turning on a rapid cooling mode, etc., when the target device is a water heater, the voice control function can be setting hot water temperature, starting a sterilization mode and the like, of course, the same voice control functionality also exists for different types of the target device, e.g., when the target equipment is an air conditioner and a water heater respectively, the purification mode of the air conditioner and the sterilization mode of the water heater both have the function of removing microorganisms such as bacteria.
In the above embodiments, the target class includes multiple types of target devices, and the voice control functions that different types of devices in the same class need to access are different, for example, when the target class is an air conditioner class and the target devices are a central air conditioner and an on-hook air conditioner respectively, however, the central air conditioner is generally applied to a larger place, such as a meeting room, a large meeting room, etc., and therefore, the central air conditioner may need to access an enhanced cooling function or an enhanced heating function, and generally, the people in the larger place are dense, the center may access an air purification function, etc., while the on-hook air conditioner is generally applied to a smaller place, such as a bedroom, a living room, etc., and part of the family may support pets, and therefore, the on-hook air conditioner may access a purification function, etc., it should be noted that the above examples of the types of the voice control functions and the application scenarios are only one exemplary embodiment, the types of voice control functions and application scenarios are not limited to the above examples.
In the above embodiment, when it is detected that a target device needs to access a voice control function, an access state of the voice control function of the target class of the target device may be determined, and further, when it is determined that the voice control function of the target class is not accessed, a first all functions of devices included in the target class may be obtained, a first attribute corresponding to each function included in the first all functions may be determined, a control model may be generated based on the first attribute, a first target attribute of a device backplane corresponding to each device included in the target class may be determined from the control model based on a first constraint file of each device included in the target class, and then, the first target attribute and a first semantic intention may be correspondingly configured, using the method of the present invention, the attribute model of the standardized equipment category can be established, and further the attributes of a plurality of equipment models are subjected to standardized management. Therefore, the problems that in the prior art, the number of equipment models is large under different equipment types, the fact that the newly added functions are accessed in sequence according to different equipment models is troublesome, and universality among bottom plate attributes of different equipment models is low and compatibility is poor are solved.
In one exemplary embodiment, generating the control model based on the first attribute comprises: determining the occurrence number of the first attribute corresponding to each function included in the first total functions; determining the first attribute of which the occurrence number exceeds a preset threshold; determining the first attribute of which the occurrence number exceeds the predetermined threshold as a standard attribute of the function of the target item and generating a standard model for storing the standard attribute, and determining a first attribute of which the occurrence number does not exceed the predetermined threshold as an extended attribute of the function of the target item and generating an extended model for storing the extended attribute; wherein the model comprises the standard model and the extended model. In this embodiment, the predetermined threshold is a value that can be set in advance, and can be set to 50 times, 70 times, or 90 times, for example, when the predetermined threshold is 70 times, the first attribute whose number of occurrences exceeds 70 is determined as a standard attribute of the function of the target class, and a standard model for storing the standard attribute is generated, and the first attribute whose number of occurrences does not exceed 70 is determined as an extended attribute of the function of the target class, and an extended model for storing the extended attribute is generated, for example, when the target class is an air conditioner, and in the case of 100 air conditioners, the first attributes corresponding to the cleaning mode of the air conditioner are clearingstatus and sterlizationlevel, respectively, and it can be determined that the number of occurrences of the first attribute corresponding to the cleaning mode in 100 air conditioners is 90 times, where clearingstatus occurs 80 times and sterlizationlevel occurs 10 times, that is, it should be noted that the predetermined threshold and the first attribute are only one exemplary embodiment, but the predetermined threshold and the first attribute are not limited to the above example.
In the above embodiment, the first attribute corresponding to each of the first total functions of the reported target category may be periodically obtained, and the number of occurrences of the first attribute is determined based on the obtained first attribute, where the first attribute corresponding to each of the first total functions of the target category is reported once in one artificial month (or 20 days, two months, three months, and the like), or the first attribute corresponding to each of the first total functions of the target category is reported once in one month (or 20 days, two months, three months, and the like) by another device with statistical capability.
In one exemplary embodiment, after generating a control model based on the first attribute, the method further comprises: under the condition that it is detected that first equipment needs to be accessed to the voice control function, determining a second target attribute of an equipment bottom plate corresponding to the first equipment from the control model based on a second constraint file of the first equipment; and issuing the second target attribute and the equipment bottom plate control parameter corresponding to the voice control function to the equipment bottom plate of the first equipment. In this embodiment, after the first full-function access of the target class is completed, when the target class has an equipment function of a new model to be accessed, a standard attribute and/or an extended attribute that is consistent with an attribute corresponding to a constraint file of the new model of equipment may be searched from the control model based on the constraint file of the new model of equipment, in addition, a function name may be set as a class index, the class index of the standard model and the class index of the extended model are set to be consistent, and then, in the case of searching for a certain function, the standard attribute in the standard model and the extended attribute in the extended model of the function may be simultaneously searched.
In an exemplary embodiment, determining the second target property of the equipment backplane corresponding to the first equipment from the control model based on the second constraint file of the first equipment comprises: 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 types are different, and further, the target attribute of the device of the type may be determined from the standard model and/or the extended model based on the constraint files of different device types, for example, when the first device is an air conditioner, the second attribute corresponding to the cleaning function of the second constraint file of the first device is clearingstatus, the standard attribute in the standard model corresponding to the cleaning function of the air conditioner class configured in advance is clearingstatus, the extended attribute in the standard model corresponding to the cleaning function of the air conditioner class configured in advance is sterilationlevel, the standard attribute clearingstatus in the standard model corresponding to the cleaning function of the air conditioner class configured in advance may be determined as the second target attribute of the air conditioner based on the second attribute corresponding to the cleaning function of the second constraint file, 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 sterializationlevel, the standard attribute in the standard model corresponding to the purification function of the air conditioner class, which is pre-configured, is sterializationlevel, the extended attribute in the standard model corresponding to the purification function of the air conditioner class, which is pre-configured, is clearingstatus, the standard attribute sterializationlevel in the standard model corresponding to the purification function of the air conditioner class, which is pre-configured, may 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, and the standard attribute corresponding to the purification function and the extended attribute corresponding to the purification function, and so on, it is necessary to say that the examples of the second attribute corresponding to the purification function, the standard attribute corresponding to the purification function and the extended attribute corresponding to the purification function are only one 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 only one exemplary embodiment And are not limited to the above examples.
In an exemplary embodiment, issuing the second target attribute and the device backplane control parameter corresponding to the voice control function to the device backplane of the first device includes: determining equipment bottom plate control parameters corresponding to the voice control function based on the second target attribute; and issuing the second target attribute and the corresponding equipment bottom plate control parameter to the equipment bottom plate of the first equipment, wherein the equipment bottom plate control parameter comprises the performance parameter of the voice control function. In this embodiment, the device backplane control parameter may include one or more of a device class, a function name, a backplane value, a backplane attribute description, a backplane value description, an update time of a backplane attribute, and the like.
In an exemplary embodiment, after the second target attribute and the device backplane control parameter corresponding to the voice control function are issued to the device backplane of the first device, the method further includes: and correspondingly configuring the second target attribute and the second semantic intention. In this embodiment, the second target attribute and the configuration file of the corresponding second semantic intention may be stored in the corresponding database, and then the second semantic intention corresponding to the second target attribute may not be configured subsequently, and the required configuration file may be directly called in the database, thereby effectively reducing the task load of developing and configuring the semantic intention.
In one exemplary embodiment, after determining the access status of the voice control function of the target class to which the target device belongs, the method further comprises: after determining that the voice control function of the target class is accessed, determining a third attribute corresponding to each function included in a second total functions of the target device based on a third constraint file of the target device; storing the third attribute into the control model if it is determined that the third attribute is not present in the control model. In this embodiment, a plurality of third attributes corresponding to each function included in the second total function may be provided, for example, when the target product is a refrigerator, the second total function includes a purification function, the third attribute corresponding to the purification function may be clearingstatus or sterlizationlevel, the second total function also includes a temperature setting function, the third attribute corresponding to the temperature setting function may be setTemperature or setTemp, and so on, and when the target device is a water heater, the water heater includes the 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, and at this time, the attribute corresponding to the purification function in the constraint file of the water heater needs to be stored in the control model in a supplementary manner.
It is to be understood that the above-described embodiments are only a few, but not all, embodiments of the present invention. The present invention will be specifically described below with reference to embodiments (the voice control function will be specifically described below as an example).
Fig. 3 is a flow chart according to an embodiment of the present invention, as shown in fig. 3, the flow chart includes the following steps:
s302, starting voice access;
s304, performing a first judgment to judge whether the equipment category is accessed in the AI;
when a certain type of equipment needs to access a voice function (corresponding to the voice control function), whether a class (corresponding to the target class) to which the equipment (corresponding to the target equipment) belongs is accessed in an AI (first judgment) is needed, if the class is not accessed, the class belongs to the first access, the task amount of development of AI technicians is large, otherwise, the access is supplementary development, and the access is simple.
S306, if the first judgment result is negative, the device functions (corresponding to the first whole functions) and the bottom plate attributes of the product are sorted, and a standard model and an extended model are generated according to the device functions and stored in a database;
when the equipment is accessed, all functions (corresponding to the first all functions) supported by the equipment category are firstly sorted, then the corresponding bottom plate attribute is combed according to the equipment function, the function _ key (function name) is used as the category index, and data corresponding to the bottom plate attribute one by one, namely the standard model, is generated and stored in the database. If one device function corresponds to a plurality of bottom plate attributes, selecting a universal bottom plate attribute as a standard model, putting other bottom plate attributes into an extended model, storing the extended model into a database, and simultaneously using the function _ key as a category index of the extended model. The advantage of this process is that when the floor command is parsed according to the semantic intent, all floor commands, including data in the standard model and the extended model, can be retrieved according to the function _ key, and then the retrieved data is compared with the constraint file of the device model, and the floor attribute (corresponding to the second target attribute) supported by the device is selected, so as to issue the correct command. Fig. 4 is a schematic diagram of a standard model data table of a bottom plate attribute for setting temperature according to an embodiment of the present invention, and as shown in fig. 4, the function _ key for setting temperature may be defined as refragerator targettempevel, which is the same as the bottom plate attribute in the device constraint file, and further may be stored in a database as standard model data.
However, the bottom plate attribute of the purification mode is not unique, and both the sterilationlevel and the clearstatus exist, so that clearstatus with a large occurrence number needs to be stored in a standard model, and the sterilationlevel needs to be stored in an extended model. Fig. 5 is a schematic diagram of a standard model data table and an extended model data table of the floor attribute of the purge mode according to an embodiment of the present invention, and as shown in fig. 5, when querying the floor attribute of the open purge mode of the refrigerator, two attributes, namely clean status and sternizationlevel, are retrieved at the same time, at this time, the floor attribute of the purge mode of the refrigerator of the model can be screened out according to the constraint file of the refrigerator, so that the floor attribute is gradually generalized and compatible, and the floor attribute of the device is gradually standardized, thereby further developing and arranging the floor of the device in advance for standardization.
S308, storing the standard model and the extended model generated in the step S306 into a database;
s310, configuring a corresponding development configuration file for the bottom plate attribute (corresponding to the first target attribute) and the semantic intention (corresponding to the first semantic intention) of the product class;
the backplane attributes are mapped and configured with semantic intent, such as: when setting the semantic intention of the temperature (setTemperature) of the refrigerating chamber of the refrigerator, the attribute of the bottom plate is refragerator targettemperature, the two can be configured, and the corresponding relation is written into a file. When the refrigerator temperature is set by voice, the attribute and intention configuration file can be analyzed, and a correct instruction is issued to the equipment, so that the aim of controlling the equipment by voice is fulfilled.
S312, storing the bottom plate attributes and the semantic intentions correspondingly configured in the step S310 into an attribute and intention configuration file;
this is the last step of the first access of the device class, and the backplane attribute and semantic intent configured correspondingly in step S310 are stored in a file, which is called "attribute and intent configuration file".
S314, completing voice access;
s316, if the first determination result is yes, performing a second determination to determine whether the standard model and the extended model of the product class satisfy the backplane attribute of the device model, and if the second determination result is yes, performing the step S314;
after the product class is accessed, when a new model device is accessed to the product class, whether the bottom plate attribute of the new model device is met can be searched in the existing standard model and the existing extension model, if so, extra access work is not needed, otherwise, the new bottom plate attribute is needed to be continuously supplemented, and the data model is continuously extended.
S318, if the second determination result is negative, supplementing the standard attribute and extended attribute database, that is, generating a standard model and an extended model from the device function and the backplane attribute of the device model, and storing the standard model and the extended model in the database of the step S308;
when the accessed product types have new bottom plate attributes of equipment models, the new bottom plate attributes need to be supplemented to the standard model and the extended model and stored in the database, for example, the current water heater product types do not have the sterilization function, but the new water heater type has the sterilization function, and at this time, the bottom plate attributes of the sterilization function need to be configured in the standard model.
S320, supplementing the development configuration file, namely storing the backplane attribute and the intention configuration file of the device model into the attribute and intention configuration file in the step S312;
after the standard model and the extended model are supplemented, the floor attribute and the semantic intention configuration file are further required to be correspondingly improved, so that the execution effect of the voice control can be ensured, for example, after the floor attribute of the sterilization mode is supplemented in the standard model of the water heater, the corresponding relation between the semantic intention and the floor attribute needs to be supplemented in the attribute and intention configuration file, and then the floor attribute and the attribute value of the sterilization mode can be found in the analysis process of the sterilization mode started by the water heater and sent to the floor through the gateway, so that the sterilization mode started by the water heater is controlled.
In conclusion, after the voice control function is accessed according to the equipment category, development is needed only under the condition that the equipment category is accessed for the first time and new bottom plate attributes appear, but no industrial personnel are required to be invested in the whole process, the task load of AI technology developers is greatly reduced, and the voice access efficiency is further improved.
It can be known from the foregoing embodiments that the voice control functions (e.g., air conditioners, refrigerators, water heaters, etc.) can be accessed according to the device categories, the number of the voice functions accessed one by one according to the device models is greatly reduced, and in the process of voice access, concepts of a standard model and an extended model are proposed, a standard model and/or an extended model can be created for each device category, and further, in the case that the floor attribute of a certain device model in a certain category is not consistent with the standard attribute, the floor attribute of the device model can be put into the extended model as the extended attribute, so that the device attribute is gradually standardized and generalized, and in the case of voice control, all the floor attributes of the functions matched with the user voice control can be found according to the standard model and/or the extended model and then matched with the constraint file of the device model, and then, determining whether the controlled equipment has the function, if all the bottom plate attributes of the function in the standard model and the extended model cannot be matched with the constraint files of the equipment model, reminding a user that the standard model and/or the extended model database do not have the bottom plate attribute of the function (namely, the function does not exist), and if all the bottom plate attributes of the function in the standard model and/or the extended model database have the bottom plate attribute which can be matched with the constraint files of the equipment model, issuing the bottom plate attribute, the performance parameters of the voice control function and the like to the equipment bottom plate of the equipment.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for configuring device attributes is further provided, and fig. 6 is a block diagram of a structure of the device for configuring device attributes according to the embodiment of the present invention, as shown in fig. 6, the device includes:
a first determining module 62, configured to determine, when it is detected that a target device needs to access a voice control function, an access state of the voice control function of a target class to which the target device belongs;
a generating module 64, configured to, when it is determined that the voice control function of the target category is not accessed, obtain all first functions of the equipment included in the target category, determine a first attribute corresponding to each function included in all the first functions, and generate a control model based on the first attribute;
a second determining module 66, configured to determine, from the control model, a first target attribute of an equipment floor corresponding to each piece of equipment included in the target class based on the first constraint file of each piece of equipment included in the target class;
a first configuration module 68, configured to correspondingly configure the first target attribute and the first semantic intent.
In an optional embodiment, the generating module 64 includes: a first determining unit, configured to determine the number of occurrences of the first attribute corresponding to each function included in the first total functions; a second determination unit configured to determine the first attribute of which the number of occurrences exceeds a predetermined threshold; a generation unit configured to determine the first attribute, the number of occurrences of which exceeds the predetermined threshold, as a standard attribute of the function of the target item and generate a standard model for storing the standard attribute, and determine a first attribute, the number of occurrences of which does not exceed the predetermined threshold, as an extended attribute of the function of the target item and generate an extended model for storing the extended attribute; wherein the model comprises the standard model and the extended model.
In an optional embodiment, the apparatus further comprises: a third determining module, configured to, after generating a control model based on the first attribute, determine, based on a second constraint file of the first device, a second target attribute of an equipment backplane corresponding to the first device from the control model when it is detected that the first device needs to access the voice control function; and the issuing module is used for issuing the second target attribute and the equipment bottom plate control parameter corresponding to the voice control function to the equipment bottom plate of the first equipment.
In an optional embodiment, the third determining module includes: a third determining unit, configured to determine a first standard attribute corresponding to the voice control function from a standard model of the control model, and/or determine a first extended attribute corresponding to the voice control function from an extended model of the control model; a fourth determining unit, configured to determine the second target attribute from the first standard attribute and/or the first extended attribute based on the second constraint file.
In an optional embodiment, the issuing module includes: a fifth determining unit, configured to determine, based on the second target attribute, an equipment backplane control parameter corresponding to the voice control function; and the issuing unit is used for issuing the second target attribute and the corresponding equipment bottom plate control parameter to the equipment bottom plate of the first equipment, wherein the equipment bottom plate control parameter comprises the performance parameter of the voice control function.
In an optional embodiment, the apparatus further comprises: and the second configuration module is used for correspondingly configuring the second target attribute and the second semantic intention after issuing the second target attribute and the equipment bottom plate control parameter corresponding to the voice control function to the equipment bottom plate of the first equipment.
In an optional embodiment, the apparatus further comprises: a fourth determining module, configured to determine, after determining an access state of the voice control function of a target class to which the target device belongs, and after determining that the voice control function of the target class is accessed, determine, based on a third constraint file of the target device, a third attribute corresponding to each function included in a second total functions of the target device; a storage module to store the third attribute into the control model if it is determined that the third attribute is not present in the control model.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus 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.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
By the configuration method of the device attribute provided by the invention, on one hand, the voice control function access can be made according to the device class (taking the newly added function as the voice control function as an example, but not limited to the example), compared with the method for performing the voice control function access according to the device model under the class, the task amount of the access of the voice control function can be reduced by times, the access efficiency of the voice control function is further improved, on the other hand, a standard model and an extended model of equipment categories are introduced to cover most of the attributes of the bottom plate in each category, the current situation that the attributes of the bottom plate and the corresponding semantic intention are configured one by one according to the model of the equipment is changed, the method simplifies the access flow of the voice control function of the equipment, and solves the problems of poor universality and low compatibility of the attributes of the bottom plate in the processes of the access of the voice control function of the equipment and the voice control.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for configuring device attributes, comprising:
under the condition that target equipment is detected to need to be accessed to a voice control function, determining the access state of the voice control function of a target class to which the target equipment belongs;
under the condition that the voice control function of the target class is determined not to be accessed, acquiring all first functions of equipment included in the target class, determining a first attribute corresponding to each function included in the all first functions, and generating a control model based on the first attributes;
determining a first target attribute of an equipment backplane corresponding to each equipment in the target class from the control model based on the first constraint file of each equipment in the target class;
and correspondingly configuring the first target attribute and the first semantic intention.
2. The method of claim 1, wherein generating the control model based on the first attribute comprises:
determining the occurrence number of the first attribute corresponding to each function included in the first total functions;
determining the first attribute of which the occurrence number exceeds a preset threshold;
determining the first attribute of which the occurrence number exceeds the predetermined threshold as a standard attribute of the function of the target item and generating a standard model for storing the standard attribute, and determining a first attribute of which the occurrence number does not exceed the predetermined threshold as an extended attribute of the function of the target item and generating an extended model for storing the extended attribute;
wherein the model comprises the standard model and the extended model.
3. The method of claim 1, after generating a control model based on the first attribute, the method further comprising:
under the condition that it is detected that first equipment needs to be accessed to the voice control function, determining a second target attribute of an equipment bottom plate corresponding to the first equipment from the control model based on a second constraint file of the first equipment;
and issuing the second target attribute and the equipment bottom plate control parameter corresponding to the voice control function to the equipment bottom plate of the first equipment.
4. The method of claim 3, wherein determining a second target attribute of an equipment backplane corresponding to the first equipment from the control model based on a second constraint file of the first equipment comprises:
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.
5. The method of claim 3, wherein issuing the second target attribute and the device backplane control parameter corresponding to the voice control function to the device backplane of the first device comprises:
determining equipment bottom plate control parameters corresponding to the voice control function based on the second target attribute;
and issuing the second target attribute and the corresponding equipment bottom plate control parameter to the equipment bottom plate of the first equipment, wherein the equipment bottom plate control parameter comprises the performance parameter of the voice control function.
6. The method of claim 3, wherein after issuing the second target attribute and the device backplane control parameter corresponding to the voice control function to the device backplane of the first device, the method further comprises:
and correspondingly configuring the second target attribute configuration and the second semantic intention.
7. The method of claim 1, wherein after determining the access status of the voice control function of the target class to which the target device belongs, the method further comprises:
after determining that the voice control function of the target class has been accessed,
determining a third attribute corresponding to each function included in a second total functions of the target device based on a third constraint file of the target device;
storing the third attribute into the control model if it is determined that the third attribute is not present in the control model.
8. An apparatus for configuring device attributes, comprising:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining the access state of the voice control function of a target class to which target equipment belongs under the condition that the target equipment is detected to need to be accessed to the voice control function;
a generating module, configured to, when it is determined that the voice control function of the target category is not accessed, obtain all first functions of equipment included in the target category, determine a first attribute corresponding to each function included in the all first functions, and generate a control model based on the first attribute;
a second determining module, configured to determine, from the control model, a first target attribute of an equipment backplane corresponding to each piece of equipment included in the target class based on the first constraint file of each piece of equipment included in the target class;
and the first configuration module is used for correspondingly configuring the first target attribute and the first semantic intention.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210290771.3A 2022-03-23 2022-03-23 Equipment attribute configuration method and device, storage medium and electronic device Pending CN114839887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210290771.3A CN114839887A (en) 2022-03-23 2022-03-23 Equipment attribute configuration method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210290771.3A CN114839887A (en) 2022-03-23 2022-03-23 Equipment attribute configuration method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114839887A true CN114839887A (en) 2022-08-02

Family

ID=82562409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210290771.3A Pending CN114839887A (en) 2022-03-23 2022-03-23 Equipment attribute configuration method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114839887A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459842A (en) * 2018-01-29 2018-08-28 北京奇艺世纪科技有限公司 A kind of model configuration method, device and electronic equipment
CN109040200A (en) * 2018-07-13 2018-12-18 深圳绿米联创科技有限公司 The cut-in method and device of internet of things equipment
KR20190135688A (en) * 2018-05-29 2019-12-09 삼성에스디에스 주식회사 Apparatus for identifying device and method thereof
CN111459039A (en) * 2020-03-27 2020-07-28 青岛海信智慧家居系统股份有限公司 Intelligent household equipment management method and device
CN113422693A (en) * 2021-05-28 2021-09-21 武汉云图智能科技有限公司 Model construction method and recognition method of Internet of things equipment and computer equipment
CN113572799A (en) * 2020-04-29 2021-10-29 北京金山云网络技术有限公司 Method and device for accessing equipment to control platform and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459842A (en) * 2018-01-29 2018-08-28 北京奇艺世纪科技有限公司 A kind of model configuration method, device and electronic equipment
KR20190135688A (en) * 2018-05-29 2019-12-09 삼성에스디에스 주식회사 Apparatus for identifying device and method thereof
CN109040200A (en) * 2018-07-13 2018-12-18 深圳绿米联创科技有限公司 The cut-in method and device of internet of things equipment
CN111459039A (en) * 2020-03-27 2020-07-28 青岛海信智慧家居系统股份有限公司 Intelligent household equipment management method and device
CN113572799A (en) * 2020-04-29 2021-10-29 北京金山云网络技术有限公司 Method and device for accessing equipment to control platform and server
CN113422693A (en) * 2021-05-28 2021-09-21 武汉云图智能科技有限公司 Model construction method and recognition method of Internet of things equipment and computer equipment

Similar Documents

Publication Publication Date Title
CN111142456A (en) Internet of things automation smart home linkage method and system
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN108303902B (en) Equipment control method, medium, equipment and device
CN114755931A (en) Control instruction prediction method and device, storage medium and electronic device
CN115167161A (en) Method and device for determining association relation of lamp, storage medium and electronic device
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN114911535B (en) Application program component configuration method, storage medium and electronic device
CN108196461A (en) Control method, device and the intelligent domestic system of smart home device
CN117573320A (en) Task node execution method and device, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
WO2024021546A1 (en) Behavior preference table generation method and apparatus, storage medium and electronic apparatus
CN116540556A (en) Equipment control method and device based on user habit
WO2024045501A1 (en) Recommendation information determination method and apparatus, and storage medium and electronic apparatus
CN115978799A (en) Water heater control method and device, storage medium and electronic device
CN114839887A (en) Equipment attribute configuration method and device, storage medium and electronic device
CN114915514A (en) Intention processing method and device, storage medium and electronic device
CN114840557A (en) Data query method and device, storage medium and electronic device
CN110795842A (en) Method and device for creating combined equipment model and control equipment
CN117908392A (en) Method and device for determining equipment, storage medium and electronic device
CN115032917A (en) Device control method, storage medium, and electronic apparatus
CN115484119B (en) Control method and device of equipment, storage medium and electronic device
WO2024029130A1 (en) Information output method, information processing device, and computer program
CN116736731A (en) Household appliance association control method, device and storage medium
CN116382108A (en) Method, device, control system, storage medium and electronic device for controlling intelligent household appliance
CN115469638A (en) Interface test method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination