Data configuration method and apparatus, server, and storage medium

By using a full-category functional view and scene function set defined based on the object model, the server generates and sends scene device data for smart home devices, solving the problems of large configuration workload and repetitive configuration in traditional technologies and improving data configuration efficiency.

CN118827258BActive Publication Date: 2025-11-18JUHAOKAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311533783.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2025-11-18
Estimated Expiration
2043-11-16

AI Technical Summary

Technical Problem

In traditional technical solutions, configuring scene business data for smart home devices involves a large workload and repetitive configuration, resulting in low data configuration efficiency.

Method used

By using a full-category functional view and scene functional set defined based on the object model, the server responds to the data configuration request of the display device, determines the functional set of the target device, and generates and sends scene device data, avoiding separate configuration for different device categories and models.

Benefits of technology

It reduces the workload of configuring scenario business data, avoids redundant configuration, and improves data configuration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827258B_ABST
    Figure CN118827258B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data configuration method and device, a server and a storage medium. The method comprises: in response to a data configuration request, determining at least one scene device from a plurality of home devices of a target family based on at least one scene function set; determining a function view of a target device category to which a target device belongs from a stored full-category function view, taking one scene device as one target device, wherein the full-category function view is generated by a server based on a physical model definition; determining a function view of a target device model of the target device from the function view of the target device category; determining a function set of the target device in a target business scene as an intersection of the function view of the target device model and a scene function set corresponding to the target device category, to obtain at least one device function set; generating scene device data based on the at least one scene device and the at least one device function set; and sending the scene device data to a display device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology. More specifically, it relates to a data configuration method, apparatus, server, and storage medium. Background Technology

[0002] Within the same smart home device category, there are many product models, and as is well known, the functionalities of these models differ slightly. Therefore, the functions displayed on the smart home app interface vary depending on the model. The traditional approach is that each time the display device needs to show the smart home app interface, it sends a data configuration request to the cloud. The cloud then configures the functionalities for each product model individually in its backend. In particular, for scenario-based services, each model needs to be configured separately for the functions supported within that specific scenario.

[0003] For example: Device A supports scenario-based services and can act as a trigger or execution device (functions include power on / off, fan speed, mode, and AI health). Device B supports scenario-based services and can act as a trigger or execution device (functions include power on / off, fan speed, and mode). When an app creates a scenario-based service and wants the device to be displayed to the user as a trigger or execution device, the cloud backend service platform needs to perform two configurations: once for device A and once for device B. Furthermore, during the scenario-based service configuration process, some basic function options will be configured repeatedly, such as the aforementioned power on / off and fan speed.

[0004] Thus, in the traditional technical solution, the configuration process for scenario-based business data is labor-intensive and repetitive, resulting in low data configuration efficiency. Summary of the Invention

[0005] To address or at least partially address the aforementioned technical problems, embodiments of this application provide a data configuration method, apparatus, server, and storage medium, which can improve the efficiency of data configuration.

[0006] In a first aspect, embodiments of this application provide a data configuration method applied to a server, comprising:

[0007] In response to a data configuration request received from a display device, at least one scene device is determined from multiple home devices in the target home based on at least one scene function set. The data configuration request instructs the acquisition of scene device data for the target home under a target business scenario. Each scene function set indicates at least one function of a device category supported by the target business scenario, and the scene function set of the device category to which each scene device belongs is one of the at least one scene function set. Taking a scene device as a target device, the function view of the target device category to which the target device belongs is determined from a stored full-category function view. This full-category function view is generated by the server based on the object model definition and includes function views of at least one device category and one device category. The functional view of a category includes functional views of at least one device model under that device category, where the functional view of a device model indicates the various functions of that device model. From the functional views of the target device category, the functional view of the target device model is determined. The intersection of the functional view of the target device model and the scene functional set corresponding to the target device category is determined as the function set of the target device in the target business scenario, resulting in at least one device function set, which is the function set of the at least one scene device in the target business scenario. Based on the at least one scene device and the at least one device function set, scene device data is generated. The scene device data is sent to the display device so that the display device displays the scene device data.

[0008] Secondly, embodiments of this application provide a data configuration apparatus, including:

[0009] The determination module, in response to a data configuration request received from a display device, determines at least one scene device from multiple home devices in a target home based on at least one scene function set. The data configuration request instructs the acquisition of scene device data for the target home under a target business scenario. Each scene function set indicates at least one function of a device category supported by the target business scenario, and the scene function set of the device category to which each scene device belongs is one of the at least one scene function set. Taking a scene device as a target device, the module determines the function view of the target device category to which the target device belongs from a stored full-category function view. This full-category function view is generated by the server based on the object model definition and includes the function view of at least one device category, representing the functions of a device category. The view includes a functional view of at least one device model under a device category, where the functional view of a device model indicates the various functions of that device model; from the functional view of the target device category, the functional view of the target device model is determined; the intersection of the functional view of the target device model and the scene functional set corresponding to the target device category is determined as the functional set of the target device in the target business scenario, to obtain at least one device functional set, where the at least one device functional set is the functional set of the at least one scene device in the target business scenario; a generation module is used to generate scene device data based on the at least one scene device and the at least one device functional set; a sending module is used to send the scene device data to the display device so that the display device displays the scene device data.

[0010] Thirdly, embodiments of this application provide a server, including: a memory configured to store a computer program; and a processor configured to, when the computer program is invoked, cause the server to implement the data configuration method as described in the first aspect.

[0011] Fourthly, embodiments of this application provide a computer-readable storage medium, including: storing a computer program on the computer-readable storage medium, wherein when the computer program is executed by a processor, it implements the data configuration method as shown in the first aspect.

[0012] Fifthly, embodiments of this application provide a computer program product, including: when the computer program product is run on a computer, causing the computer to implement the data configuration method as shown in the first aspect.

[0013] Compared with the prior art, the technical solution provided in this application has the following advantages: In this application embodiment, in response to a data configuration request received from a display device, at least one scene device is determined from multiple home devices of a target home based on at least one scene function set; the data configuration request is used to instruct the acquisition of scene device data of the target home in a target business scenario, each scene function set is used to instruct at least one function of a device category supported by the target business scenario, and the scene function set of the device category to which each scene device belongs is one of the at least one scene function set; taking a scene device as a target device, the function view of the target device category to which the target device belongs is determined from the stored full category function view, the full category function view is generated by the server based on the object model definition, and the full category function view includes at least A functional view for a device category, including functional views for at least one device model within that category, is used to indicate the various functions of that device model. From the functional view of the target device category, the functional view for the target device model is determined. The intersection of the functional view for the target device model and the scene functional set corresponding to the target device category is determined as the function set for the target device in the target business scenario, resulting in at least one device function set. This at least one device function set represents the function set for the at least one scene device in the target business scenario. Based on the at least one scene device and the at least one device function set, scene device data is generated. The scene device data is then sent to the display device to display it. In this solution, after each display device sends a data configuration request to the server, the server does not need to configure scene business data separately for different device categories and models. Instead, based on a pre-configured, model-free, full-category functional view and at least one scene functional set, it generates scene device data matching the current display device in the target business scenario and sends this scene device data to the display device for display. In this way, the configuration workload can be reduced, redundant configuration can be avoided, and data configuration efficiency can be improved during the configuration process for scenario-based business data. Attached Figure Description

[0014] To more clearly illustrate the implementation methods in the embodiments of this application or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0015] Figure 1 A scenario architecture diagram is shown according to a data configuration method based on some embodiments;

[0016] Figure 2 One of the flowcharts of a data configuration method according to some embodiments is shown;

[0017] Figure 3 A schematic diagram illustrating the relationship between different functional views of a data configuration method according to some embodiments is shown.

[0018] Figure 4 A second schematic flowchart of a data configuration method according to some embodiments is shown;

[0019] Figure 5 A third flowchart illustrating a data configuration method according to some embodiments is shown;

[0020] Figure 6 A fourth schematic flowchart of a data configuration method according to some embodiments is shown;

[0021] Figure 7 Fifth of a series of flowcharts illustrating a data configuration method according to some embodiments;

[0022] Figure 8 A flowchart illustrating a data configuration method according to some embodiments is shown in diagram six.

[0023] Figure 9 A flowchart of a data configuration method according to some embodiments is shown as diagram seven;

[0024] Figure 10 Eighth schematic flowchart of a data configuration method according to some embodiments is shown;

[0025] Figure 11 A data configuration apparatus framework diagram according to some embodiments is shown;

[0026] Figure 12 A schematic diagram of server hardware according to some embodiments is shown. Detailed Implementation

[0027] To make the objectives and implementation methods of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.

[0028] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0029] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.

[0030] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.

[0031] Next, some of the terms and related technologies used in this application will be explained to facilitate understanding by those skilled in the art.

[0032] A product model is a digital description of a product, defining its functions. The product model abstracts and summarizes the functions of products from different brands and categories to form a "standard product model," which makes it easier for all parties to describe, control, and understand product functions using a unified language.

[0033] An object model consists of several "parameters," which are further divided into attributes, methods, and events according to the different types of functions they describe.

[0034] Attributes are generally used to describe device status and can be read and set. Methods can be specific capabilities or methods of the device that can be called externally. They can set input and output parameters, and the parameters must be specific "attributes". Compared to attributes, services can implement more complex business logic through a single command. Events can be used to describe events reported by the device to the cloud and can contain multiple input parameters, which must also be specific "attributes".

[0035] Standard parameters are defined for each product category to ensure a unified understanding of device functions. These standard parameters contain all parameters that may be used in a particular product category. Developers should prioritize selecting from the standard parameters when defining product models. If a function is not included in the standard parameters, a custom parameter can be defined.

[0036] Standard parameters are a set of parameter definitions that are unified and abstracted based on the category and the functions of various categories of equipment.

[0037] Each product category has a set of standard parameters. For example, the standard parameters for the "lights" category define all the possible functions of lights from all brands. The same functions across different product categories maintain consistent parameters. For instance, switches in the "lights" category, switches in the "sockets" category, and even switches in all product categories are defined using the same parameter ("power").

[0038] This highly abstract object model definition aims to unify the representation of different functions on different devices, making it easier to understand the functions of different devices when developing general-purpose functions. For example, when implementing voice control for switching devices on and off, you only need to map the intention of "on" to the "power" parameter to achieve on / off control of all devices.

[0039] In this embodiment, in response to a data configuration request received from a display device, at least one scene device is determined from multiple home devices in a target home based on at least one scene function set. The data configuration request instructs the acquisition of scene device data for the target home under a target business scenario. Each scene function set indicates at least one function of a device category supported by the target business scenario, and the scene function set of the device category to which each scene device belongs is one of the at least one scene function set. Taking a scene device as a target device, the function view of the target device category to which the target device belongs is determined from a stored full-category function view. This full-category function view is generated by the server based on the object model definition and includes function views of at least one device category. The functional view of each device category includes functional views of at least one device model under that device category. A functional view for each device model indicates the various functions of that device model. From the functional view of the target device category, the functional view of the target device model is determined. The intersection of the functional view of the target device model and the scene functional set corresponding to the target device category is determined as the function set of the target device in the target business scenario, resulting in at least one device function set. This at least one device function set represents the function set of the at least one scene device in the target business scenario. Based on the at least one scene device and the at least one device function set, scene device data is generated. The scene device data is then sent to the display device to display it. In this solution, after each display device sends a data configuration request to the server, the server does not need to configure scene business data separately for different device categories and models. Instead, based on a pre-configured full-category functional view without model definition and at least one scene functional set, it generates scene device data matching the current display device in the target business scenario and sends this scene device data to the display device for display. In this way, the configuration workload can be reduced, redundant configuration can be avoided, and data configuration efficiency can be improved during the configuration process for scenario-based business data.

[0040] like Figure 1As shown, the data configuration system of the data configuration method provided in this application embodiment consists of a server 110, a display device, and a smart home device 120 comprising multiple devices including a display device 121 and smart devices 1 to 6. The server 110 can be a cluster or multiple clusters, and can include one or more types of servers. The server 110 can be a cloud server, and can include an Internet of Things (IoT) cloud backend 111 and an OP configuration platform 112. The IoT cloud backend 111 uses object model definitions to manage the functional attributes of smart home devices and digitizes these attributes to provide a basis for controlling smart home devices and their states. The configuration of the device's instruction set and state set visualization interface is completed on the OP configuration platform 112. The IoT cloud backend 111 has definitions for all categories of functional sets, definitions for scene functional sets, and an interface for querying a list of devices supporting scenes under a home, where data filtering is performed. The OP configuration platform 112 provides configuration management for all categories of functional views and scene functional set management, facilitating functional expansion. The display device has a smart home application (App) installed. The display device 121 may include a TV, smart TV, laser projector, monitor, electronic bulletin board, electronic table, mobile phone, tablet, laptop, PDA, in-vehicle electronic device, etc.; the smart home device 120 may include, in addition to the display device 121, refrigerator, air conditioner, speaker, range hood, water heater, fan, etc.

[0041] Figure 2 The flowchart illustrates the steps of implementing a data configuration method according to one or more embodiments of the present invention. The executing entity of this data configuration method can be a server, or a functional module or entity within the server capable of implementing the data configuration method; no limitation is made here. In this embodiment, an example is provided using a server as the executing entity, and the data configuration method may include the following steps S201 to S206.

[0042] S201. In response to a data configuration request received from a display device, at least one scene device is determined from multiple home devices in the target home based on at least one scene function set.

[0043] The data configuration request is used to instruct the acquisition of scene device data for the target family in the target business scenario. Each scene function set is used to instruct at least one function of a device category supported by the target business scenario. The scene function set of the device category to which each scene device belongs is one of the at least one scene function set.

[0044] The data configuration request may carry the identifier of the target family, the identifier of the target scenario business, and other information. The specific information can be determined according to the actual situation and is not limited here.

[0045] Multiple household devices can be represented in the form of a household device list, which includes information such as the identifier (e.g., name), device category, device model, and device version for each household device.

[0046] Among them, at least one scenario function set can exist in the form of a set of scenario function sets. Different business scenarios correspond to different sets of scenario function sets, and the set of scenario function sets corresponding to different business scenarios includes one or more scenario function sets.

[0047] In this embodiment of the application, a scenario function set corresponding to a target business scenario indicates the functions supported by various devices under a device category in the target business scenario. Specifically, the scenario function set can be the instruction set and state set corresponding to the functions supported by various devices under a device category in the target business scenario.

[0048] The instruction set is a collection of instruction information indicating control instructions corresponding to each function of at least one device, while the state set is a collection of state information indicating the control states corresponding to each function of at least one device. The instruction set and state set are components of the functional view.

[0049] For example, the functional view of the lamp consists of two functions: switch and brightness. The switch function includes on / off commands and the lamp's on / off state; the brightness function includes brightness adjustment commands and each brightness state of the lamp. Thus, the lamp's command set includes the command information corresponding to the on / off command under the switch function, and the command information corresponding to the brightness adjustment command under the brightness function. The lamp's state set includes the state information corresponding to the lamp's on / off state under the switch function, and the state information of each brightness state of the lamp under the brightness function. The state information of each brightness state of the lamp under the brightness function includes the brightness value.

[0050] Understandably, when a user wants to use a target business scenario, they can request scenario device data from the server through the smart home app installed on the display device. The server will filter the list of all devices under the current target household, poll the device list, and check whether the device category to which each device belongs has a scenario function set configured in the target business scenario based on the device identifier (ID). If the device category to which the device belongs has a scenario function set configured in the target business scenario, then the device is considered to support the target business scenario; otherwise, the device is considered not to support the target business scenario. In this way, a list of devices that support the target business scenario (i.e., at least one scenario device) can be filtered from the list of household devices (i.e., multiple household devices).

[0051] S202. Take a scene device as a target device and determine the function view of the target device category to which the target device belongs from the stored full category function view.

[0052] The full category functional view is generated by the server based on the object model definition. The full category functional view includes functional views of at least one device category. The functional view of a device category includes functional views of at least one device model under that device category. The functional view of a device model is used to indicate the various functions of that device model.

[0053] Among them, the full category functional view, also known as the full category object model, is a functional view of different equipment models under each equipment category generated based on the object model definition.

[0054] A device model's functional view includes the instruction set and status set corresponding to each function (usually all functions) of that device model.

[0055] A functional view of a device category includes the instruction set and status set corresponding to each function of at least one device model under that device category.

[0056] The full category function view includes the instruction set and status set corresponding to each function of each device model under each device category in at least one device category.

[0057] S203. From the functional view of the target equipment category, determine the functional view of the target equipment model.

[0058] For example, such as Figure 3The diagram illustrates the relationship between the full category function view, the function view of a single equipment category, and the function view of a single equipment model. It can be seen that the function view of a single equipment category is a subset of the full category function view, and the function view of a single equipment model is a subset of the function view of its corresponding single equipment category.

[0059] For example, refrigerators have three functions: refrigeration, freezing, and variable temperature. Therefore, the functional view of refrigerators includes the instruction set and status set corresponding to the three functions: refrigeration, freezing, and variable temperature. However, some refrigerator models only have two functions: refrigeration and freezing. Therefore, the functional view of these refrigerator models only includes the instruction set and status set corresponding to the two functions: refrigeration and freezing.

[0060] It is understandable that, for each target device in at least one scenario device, the function view of the target device category to which the target device belongs is first determined from the full category function view based on the device category of the target device, and then the function view of the target device model is determined from the function view of the target device category based on the device model of the target device.

[0061] S204. The intersection of the function view of the target device model and the scenario function set corresponding to the target device category is determined as the function set of the target device in the target business scenario, so as to obtain at least one device function set.

[0062] The at least one device function set refers to the function set of the at least one scenario device in the target business scenario.

[0063] Among them, at least one device function set corresponds one-to-one with at least one scenario device, that is, a device function set is the function set of a scenario device in the target business scenario, and different device function sets are the function sets of different scenario devices in the target business scenario.

[0064] It can be understood that the functional view of a target device model is a functional view of a single target device model (indicating all the functions of that target device), while the scenario functional set corresponding to a target device category is a functional view of the device category to which that target device belongs, supported within the target business scenario (indicating the functions of the device category to which that target device belongs, supported within the target business scenario). In other words, if the target business scenario supports all the functions of each device model within the target device category, then the scenario functional set corresponding to the target device category includes all the functions of each device model within the target device category; if the target business scenario supports only some of the functions of each device model within the target device category, then the scenario functional set corresponding to the target device category includes only some of the functions of each device model within the target device category. Therefore, the intersection of the functional view of the target device model and the scenario functional set corresponding to the target device category represents the functions supported by the target device within the target business scenario.

[0065] It is understood that by executing S202 to S204 above for each of the at least one scenario device, the scenario function set supported by each scenario device in the target business scenario can be obtained.

[0066] S205. Based on the at least one scene device and the at least one device function set, generate the scene device data.

[0067] S206. Send the scene device data to the display device so that the display device can display the scene device data.

[0068] It is understood that at least one scene device and at least one set of device functions are acquired and assembled to generate scene device data. The scene device data includes a list of scene devices and the instruction set and status set supported by the devices. The assembled data is sent to the smart home APP installed on the display device, and then the display device displays the scene device data through the smart home APP for user use.

[0069] In this embodiment, after each display device sends a data configuration request to the server, the server does not need to configure scene business data separately for different device categories and models. Instead, based on a pre-configured full-category function view without model definition and at least one scene function set, it generates scene device data matching the target business scenario of the current display device and sends this scene device data to the display device for display. Thus, the configuration workload can be reduced, redundant configuration can be avoided, and data configuration efficiency can be improved during the configuration process for scene business data.

[0070] In some embodiments of this application, the functional view of a device category also includes a basic functional view under that device category, combined with... Figure 2 ,like Figure 4 As shown, the above S203 can be specifically implemented by the following S203a to S203c.

[0071] S203a. Determine whether there is a target functional view in the functional view of the target equipment category that matches the target equipment model.

[0072] If a target functional view matching the target device model exists in the functional view of the target device category, execute S203b below; if no target functional view matching the target device model exists in the functional view of the target device category, execute S203c below.

[0073] S203b If a target functional view matching the target equipment model exists in the functional view of the target equipment category, the target functional view shall be determined as the functional view of the target equipment model.

[0074] S203c: If there is no functional view matching the target equipment model in the functional view of the target equipment category, the basic functional view in the functional view of the target equipment category shall be determined as the functional view of the target equipment model.

[0075] It is understood that in this embodiment, the functional view of a device category includes not only the functional view of at least one device model within that category, but also the basic functional view of that category. If scene configuration for a new model is missed or not timely before its release, the basic functional view of the category can be used as the functional view for the new model. Furthermore, when a user creates a business scenario and selects a triggering or executing device, the user can see the new model within the scenario, thus improving user experience and preventing complaints due to the inability to see the new model.

[0076] In some embodiments of this application, combined with Figure 4 ,like Figure 5 As shown, prior to S201 above, the data configuration method provided in this application embodiment may further include S207 to S208 as described below.

[0077] S207. In response to the received device function configuration operation in the device management interface, obtain the full category of device information corresponding to the device function configuration operation.

[0078] The full range of equipment information is used to indicate the functions supported by different equipment models under at least one preset equipment category, and the at least one preset equipment category belongs to the at least one equipment category.

[0079] The device management interface can be the aforementioned OP configuration platform.

[0080] S208. Based on the object model definition and the information of the entire category of equipment, generate the functional view of the entire category.

[0081] In this embodiment, a full-category functional view is generated based on the object model definition and the full-category equipment information. Based on this full-category functional view, the scenario equipment data for different business scenarios can be configured, which can simplify the data configuration workflow, reduce the data configuration workload, avoid redundant configuration, and improve data configuration efficiency.

[0082] In some embodiments of this application, combined with Figure 5 ,like Figure 6 As shown, prior to S201 above, the data configuration method provided in this application embodiment may further include S209 to S210 as described below.

[0083] S209. In response to the received scenario configuration operation in the device management interface, determine the N device categories supported by the target business scenario, and the functions supported by each device category.

[0084] Among them, the N equipment categories belong to the at least one preset equipment category, and N is a positive integer.

[0085] S210. From the full category function view, determine the scene function set corresponding to the function supported by each device category, and obtain N scene function sets corresponding to the N device categories respectively.

[0086] It is understandable that when configuring the set of scenario functions supported by a device category in a business scenario, one can choose from the full set of functions supported by the device category (i.e., the function view corresponding to the device category), without having to configure repeatedly, which can improve configuration efficiency.

[0087] The IoT cloud backend defines a complete functional view of device categories based on the object model, and then defines the functional view of each device model based on the device capabilities of the device categories. The scene instruction set and state set (i.e., scene function set, or scene function view) supported by the devices under each device category are maintained through OP configuration.

[0088] The instruction set issued from the cloud consists of many instruction attributes, including instruction code (commandCode), attribute code (attributeCode), attribute value (attributeValue), attribute value type (attributeType), step size (step), display suffix (suffix), and display template (displayTemplate). Attribute value types include integers, floating-point numbers, booleans, and enumerations; different attribute value types correspond to different attribute values. Take an air conditioning unit as an example:

[0089] a) Integer type, corresponding attributeValue = "[18,32]";

[0090] b) Floating-point number type, corresponding attributeValue = "[18.00, 32.00]";

[0091] c) Boolean type, corresponding attributeValue = [{"value":"0","code":"Offline","name":"Offline"},{"value":"1","code":"Online","name":"Online"}];

[0092] d) Enumeration type, corresponding attributeValue = [{"value":"0","code":"refrigeration","name":"Refrigeration"}, {"value":"1","code":"Heating","name":"Heating"}, {"value":"1","code":"airSupply","name":AirSupply"}, {"value":"1","code":"auto","name":"Auto"}].

[0093] Attribute values ​​sent from the cloud cannot be directly displayed on the app interface. Therefore, certain calculation rules are needed to convert the attribute values ​​into a general attribute value list, which consists of value, code, and name. The calculation rules for converting attribute values ​​into attribute value lists in the app are as follows: 1. For integer or floating-point types. Take two values ​​from attributeValue, which correspond to the minimum and maximum values ​​respectively. Using the minimum, maximum, and step values, the attribute value can be converted into an attribute value array. Each element in the array consists of value, code, and name. The name is assembled according to displayTemplate. For example, the displayTemplate format is ${value}${suffix}. Example: Air conditioner temperature, the attribute value type is integer, and the corresponding attribute value is "[18,32]". After conversion, the format of the attribute value list is:

[0094] [{"value":"18","code":"temperature","name":"18℃"},

[0095] {"value":"19","code":"temperature","name":"19℃"},

[0096] {"value":"20","code":"temperature","name":"20℃"},

[0097] {"value":"21","code":"temperature","name":"21℃"},......

[0098] {"value":"32","code":"temperature","name":"32℃"}]

[0099] In some embodiments of this application, combined with Figure 6 ,like Figure 7 As shown, after S208 above, the data configuration method provided in this application embodiment may further include S211 to S213 as described below.

[0100] S211. In response to the received operation of adding a device model configuration in the device management interface, obtain the newly added device information corresponding to the operation of adding a device model configuration.

[0101] The newly added equipment information is used to indicate the function of the newly added equipment model under the first equipment category, where the first equipment category is one of the at least one preset equipment category.

[0102] S212. Based on the object model definition and the newly added device information, generate a functional view of the newly added device model.

[0103] S213. Add the function view of the newly added device model to the full category function view to update the full category function view.

[0104] In this embodiment, when a new device model is added, a functional view for the new device model can be generated based on the object model definition and the new device information. This functional view is then added to the overall category functional view to update the overall category functional view. This allows for configuration of the functional view only for the new device model, eliminating the need to repeatedly configure the functional views for previous device models, thus avoiding redundant configuration and improving configuration efficiency.

[0105] In some embodiments of this application, the first equipment category is one of the N equipment categories; combined with Figure 7 ,like Figure 8 As shown, after S213 above, the data configuration method provided in this application embodiment may further include S214 to S215 as described below.

[0106] S214. In response to the received first scene update operation in the device management interface, obtain the first new function set corresponding to the first scene update operation from the function view of the newly added device model.

[0107] The first scenario update operation is used to indicate that M functions of the newly added device model are added to the target business scenario; the first new function set is used to indicate the M functions, where M is a positive integer.

[0108] S215. Add the newly added feature set to the scenario feature set of the first device category to update the scenario feature set of the first device category.

[0109] In this embodiment of the application, when a new device model is added, if the functions of the business scenario corresponding to the new device model are updated, they can be extended based on the previously configured scenario function set, without the need for repeated development and configuration, which can improve configuration efficiency.

[0110] In some embodiments of this application, combined with Figure 6 ,like Figure 9 As shown, after S208 above, the data configuration method provided in this application embodiment may further include S216 to S218 as described below.

[0111] S216. In response to the received operation of adding a new equipment category configuration in the equipment management interface, obtain the new equipment category information corresponding to the operation of adding a new equipment category configuration.

[0112] The newly added equipment category information is used to indicate the functions supported by different equipment models under the newly added equipment category.

[0113] S217. Based on the object model definition and the information of the newly added equipment category, generate a functional view of the newly added equipment category.

[0114] S218. Add the function view of the newly added equipment category to the function view of the whole category to update the function view of the whole category.

[0115] In this embodiment, when a new device category is added, a functional view of the new device category can be generated based on the object model definition and the information of the new device category. This functional view is then added to the overall category functional view to update the overall category functional view. In this way, only the functional view of the new device category needs to be configured, eliminating the need to repeatedly configure the functional views of previous device categories, thus avoiding redundant configuration and improving configuration efficiency.

[0116] In some embodiments of this application, combined with Figure 9 ,like Figure 10 As shown, after S218 above, the data configuration method provided in this application embodiment may further include S219 as described below.

[0117] S219. In response to the received second scene update operation in the device management interface, obtain the new scene function set corresponding to the second scene update operation from the function view of the newly added device category.

[0118] The second scenario update operation is used to instruct the addition of P functions from the functions of different device models under the newly added device category to the target business scenario; the newly added scenario function set is used to indicate the P functions, where P is a positive integer.

[0119] In this embodiment of the application, when a new device category is added, if the functions of the business scenarios corresponding to the new device category are updated, only the scenario function set of the new device category needs to be configured, without repeated development and configuration, which can improve configuration efficiency.

[0120] Figure 11 This is a structural block diagram of the data configuration method apparatus shown in the embodiments of this disclosure, such as... Figure 11As shown, the device includes: a determining module 1101, configured to, in response to a data configuration request received from a display device, determine at least one scene device from multiple home devices in a target home based on at least one scene function set; the data configuration request is used to instruct the acquisition of scene device data for the target home in a target business scenario, each scene function set is used to instruct at least one function of a device category supported by the target business scenario, and the scene function set of the device category to which each scene device belongs is one of the at least one scene function set; taking a scene device as a target device, determining the function view of the target device category to which the target device belongs from a stored full category function view, the full category function view being generated by the server based on the object model definition, the full category function view including the function view of at least one device category, a device category's The functional view includes functional views of at least one device model under the device category, and the functional view of a device model is used to indicate the various functions of the device model; from the functional view of the target device category, the functional view of the target device model is determined; the intersection of the functional view of the target device model and the scene functional set corresponding to the target device category is determined as the functional set of the target device in the target business scenario, so as to obtain at least one device functional set, and the at least one device functional set is the functional set of the at least one scene device in the target business scenario; the generation module 1102 is used to generate scene device data based on the at least one scene device and the at least one device functional set; the sending module 1103 is used to send the scene device data to the display device so that the display device displays the scene device data.

[0121] In some embodiments of this application, the determining module 1101 is specifically used to determine the target functional view as the functional view of the target device model when there is a target functional view matching the target device model in the functional view of the target device category; and to determine the basic functional view in the functional view of the target device category as the functional view of the target device model when there is no functional view matching the target device model in the functional view of the target device category.

[0122] In some embodiments of this application, the device further includes: an acquisition module, configured to acquire, in response to a received device function configuration operation in the device management interface, full-category device information corresponding to the device function configuration operation, the full-category device information being used to indicate the functions supported by different device models under at least one preset device category, the at least one preset device category belonging to the at least one device category; the generation module 1102, further configured to generate the full-category function view based on the object model definition and the full-category device information; the determination module 1101, further configured to, in response to a received scenario configuration operation in the device management interface, determine N device categories supported by the target business scenario, and the functions supported by each device category, the N device categories belonging to the at least one preset device category, where N is a positive integer; and determine, from the full-category function view, the scenario function sets corresponding to the functions supported by each device category, to obtain N scenario function sets corresponding to the N device categories respectively.

[0123] In some embodiments of this application, the acquisition module is further configured to, after the generation module 1102 generates the full-category functional view based on the object model definition and the full-category device information, respond to the received operation of adding a new device model configuration in the device management interface, acquire the new device information corresponding to the operation of adding a new device model configuration, the new device information being used to indicate the function of the device of the new device model under the first device category, the first device category being one of the at least one preset device categories; the generation module 1102 is further configured to generate the functional view of the new device model based on the object model definition and the new device information; the device further includes: an adding module, configured to add the functional view of the new device model to the full-category functional view to update the full-category functional view.

[0124] In some embodiments of this application, the first device category is one of the N device categories; the acquisition module is further configured to, in response to the received first scene update operation in the device management interface, obtain a first new function set corresponding to the first scene update operation from the function view of the newly added device model after the addition module adds the function view of the newly added device model to the full category function view to update the full category function view; the first scene update operation is used to instruct M functions of the newly added device model to be added to the target business scene; the first new function set is used to indicate the M functions, where M is a positive integer; the addition module is further configured to add the new function set to the scene function set of the first device category to update the scene function set of the first device category.

[0125] In some embodiments of this application, the acquisition module is further configured to, after the generation module 1102 generates the full category functional view based on the object model definition and the full category device information, respond to the received new device category configuration operation in the device management interface, acquire the new device category information corresponding to the new device category configuration operation, the new device category information being used to indicate the functions supported by different device models under the new device category; the generation module 1102 is further configured to generate the functional view of the new device category based on the object model definition and the new device category information; the addition module is further configured to add the functional view of the new device category to the full category functional view to update the full category functional view.

[0126] In some embodiments of this application, the acquisition module is further configured to, in response to a received second scenario update operation in the device management interface, acquire a set of new scenario functions corresponding to the second scenario update operation from the function view of the newly added device category after the addition module adds the function view of the newly added device category to the full category function view to update the full category function view; the second scenario update operation is used to instruct P functions of different device models under the newly added device category to be added to the target business scenario; the set of new scenario functions is used to indicate the P functions, where P is a positive integer.

[0127] In this embodiment, each module of the data configuration method device can implement the data configuration method provided in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0128] like Figure 12 As shown, this application embodiment also provides a server 1200, which can be the aforementioned electronic device or server. The server 1200 includes: a processor 1201, a memory 1202, and a computer program stored in the memory 1202 and executable on the processor 1201. When the computer program is executed by the processor 1201, it implements the various processes performed by the data configuration method described above and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0129] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the data configuration method described above and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0130] The computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0131] The present invention provides a computer program product, comprising: when the computer program product is run on a computer, causing the computer to implement the above-described data configuration method.

[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0133] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.

Claims

1. A data configuration method, characterized in that, Applied to servers, including: In response to a data configuration request received from a display device, at least one scenario device is determined from multiple home devices in a target home based on at least one scenario function set; the data configuration request is used to instruct the acquisition of scenario device data of the target home in a target business scenario, each scenario function set is used to instruct at least one function of a device category supported by the target business scenario, and the scenario function set of the device category to which each scenario device belongs is one of the at least one scenario function set; Take a scene device as a target device, determine the function view of the target device category to which the target device belongs from the stored full category function view. The full category function view is generated by the server based on the object model definition. The full category function view includes the function view of at least one device category. The function view of a device category includes the function view of at least one device model under the device category. The function view of a device model is used to indicate the various functions of the device model. From the functional view of the target equipment category, determine the functional view of the target equipment model; The intersection of the function view of the target device model and the scene function set corresponding to the target device category is determined as the function set of the target device in the target business scenario, so as to obtain at least one device function set, wherein the at least one device function set is the function set of the at least one scene device in the target business scenario; The scene device data is generated based on the at least one scene device and the at least one device function set; The scene device data is sent to the display device so that the display device displays the scene device data.

2. The method according to claim 1, characterized in that, The functional view of a device category also includes a basic functional view under the device category. The step of determining the target device model from the functional view of the target device category includes: If a target functional view matching the target device model exists in the functional view of the target device category, the target functional view is determined as the functional view of the target device model. If there is no functional view in the functional view of the target equipment category that matches the target equipment model, the basic functional view in the functional view of the target equipment category shall be determined as the functional view of the target equipment model.

3. The method according to claim 1, characterized in that, The method further includes: In response to a received device function configuration operation in the device management interface, obtain full category device information corresponding to the device function configuration operation. The full category device information is used to indicate the functions supported by different device models under at least one preset device category. The at least one preset device category belongs to the at least one device category. Based on the object model definition and the information on all categories of equipment, the functional view of all categories is generated; In response to the received scenario configuration operation in the device management interface, determine the N device categories supported by the target business scenario and the functions supported by each device category, wherein the N device categories belong to the at least one preset device category, and N is a positive integer; From the full category function view, determine the scene function set corresponding to the function supported by each device category, and obtain N scene function sets corresponding to the N device categories respectively.

4. The method according to claim 3, characterized in that, After generating the full-category functional view based on the object model definition and the full-category equipment information, the method further includes: In response to the received operation of adding a device model configuration in the device management interface, the newly added device information corresponding to the operation of adding a device model configuration is obtained. The newly added device information is used to indicate the function of the device of the newly added device model under the first device category. The first device category is one of the at least one preset device category. Based on the object model definition and the newly added device information, a functional view of the newly added device model is generated; Add the function view of the newly added device model to the function view of all categories to update the function view of all categories.

5. The method according to claim 4, characterized in that, The first equipment category is one of the N equipment categories; after adding the function view of the newly added equipment model to the full category function view to update the full category function view, the method further includes: In response to the received first scenario update operation in the device management interface, a first set of newly added functions corresponding to the first scenario update operation is obtained from the function view of the newly added device model; the first scenario update operation is used to indicate that M functions of the newly added device model are added to the target business scenario; the first set of newly added functions is used to indicate the M functions, where M is a positive integer; The newly added feature set is added to the scenario feature set of the first device category to update the scenario feature set of the first device category.

6. The method according to claim 3, characterized in that, After generating the full-category functional view based on the object model definition and the full-category equipment information, the method further includes: In response to the received operation of adding a new device category configuration in the device management interface, the newly added device category information corresponding to the operation of adding a new device category configuration is obtained. The newly added device category information is used to indicate the functions supported by different device models under the newly added device category. Based on the object model definition and the newly added equipment category information, a functional view of the newly added equipment category is generated; Add the function view of the newly added equipment category to the function view of the full category to update the function view of the full category.

7. The method according to claim 6, characterized in that, After adding the new device category's functional view to the overall category functional view to update the overall category functional view, the method further includes: In response to the received second scenario update operation in the device management interface, the new scenario function set corresponding to the second scenario update operation is obtained from the function view of the newly added device category; the second scenario update operation is used to indicate that P functions of different device models under the newly added device category are added to the target business scenario; the new scenario function set is used to indicate the P functions, where P is a positive integer.

8. A data configuration device, characterized in that, include: The determination module is configured to, in response to a data configuration request received from a display device, determine at least one scenario device from multiple home devices in a target home based on at least one scenario function set; the data configuration request is configured to instruct the acquisition of scenario device data of the target home in a target business scenario, each scenario function set is configured to instruct at least one function of a device category supported by the target business scenario, and the scenario function set of the device category to which each scenario device belongs is one of the at least one scenario function set; Take a scene device as a target device, determine the function view of the target device category to which the target device belongs from the stored full category function view. The full category function view is generated by the server based on the object model definition. The full category function view includes the function view of at least one device category. The function view of a device category includes the function view of at least one device model under the device category. The function view of a device model is used to indicate the various functions of the device model. From the functional view of the target equipment category, determine the functional view of the target equipment model; The intersection of the function view of the target device model and the scene function set corresponding to the target device category is determined as the function set of the target device in the target business scenario, so as to obtain at least one device function set, wherein the at least one device function set is the function set of the at least one scene device in the target business scenario; A generation module is used to generate scene device data based on the at least one scene device and the at least one device function set; The sending module is used to send the scene device data to the display device so that the display device can display the scene device data.

9. A server, characterized in that, include: Memory, configured to store computer programs; The processor is configured to cause the server to implement the data configuration method of any one of claims 1 to 7 when a computer program is invoked.

10. A computer-readable storage medium, characterized in that, include: A computer program is stored on a computer-readable storage medium, which, when executed by a processor, implements the data configuration method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Internet-of-things system determination method and device, electronic equipment and storage medium

    CN112040014A

  • Scene configuration method, device and system for smart home equipment

    CN114879528A