Method and device for determining aggregation state of equipment, storage medium and electronic device

By standardizing the configuration and aggregation calculation of the attribute information of multiple devices, the problem of inefficient acquisition of multi-device aggregation state in smart homes is solved, and the effect of quickly obtaining the aggregation state of the device is achieved.

CN119536841APending Publication Date: 2025-02-28QINGDAO HAIER TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411594086.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In smart homes, the acquisition of multi-device aggregation state is inefficient, especially due to the inconsistent attribute names and value domains of different devices, which leads to the inefficient aggregation operation. As the number of devices increases, the difficulty of aggregation operation increases significantly.

Method used

By obtaining the attribute information of multiple devices, standardize the configuration, and unified it into standard attribute information, and then aggregating and computing the standard attribute information to obtain the aggregation status of the device. This method uses the rule engine to find the aggregation attribute calculation rules and performs aggregation operations on the target attributes.

Benefits of technology

Through standardized configuration and aggregation calculation, the aggregation state of multiple devices can be quickly obtained, which improves the efficiency of aggregation state acquisition of multiple devices and solves the problem of aggregation operation difficulty caused by the differences in attributes of different devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536841A_ABST
    Figure CN119536841A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment aggregation state determination method and device, a storage medium and an electronic device, and relates to the field of smart home, and the equipment aggregation state determination method comprises the steps: obtaining attribute information of a plurality of pieces of equipment; performing standardized configuration on the attribute information of the plurality of devices to obtain standard attribute information of the plurality of devices; aggregation calculation is conducted on the standard attribute information of the multiple devices, the device aggregation state of the multiple devices is obtained, and the aggregation state is used for indicating the overall state of the multiple devices under the same standard attribute. By adopting the technical scheme, the problem of how to improve the acquisition efficiency of the multi-device aggregation state is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home, and more specifically, to a method, device, storage medium and electronic device for determining the aggregation state of a device. Background Art

[0002] At present, in smart homes, smart home appliances can rely on wireless network modules to upload device light switch status, device power, temperature, humidity and other attributes to application software, allowing users to clearly see the attribute information of each smart home appliance in the current home through the application software.

[0003] However, when obtaining the aggregate status of multiple devices, such as the number of devices in the home that are turned on and whether all the lights in the home are turned on, it is necessary to obtain the attributes of multiple devices for aggregation operations. However, due to the inconsistency of the attribute names and attribute value ranges of the same attributes of different devices, the aggregation operation efficiency is low. As the number of smart home appliances increases, the difficulty of aggregation operations increases exponentially.

[0004] Regarding the problem of how to improve the efficiency of obtaining the aggregation status of multiple devices in the related art, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method, apparatus, storage medium and electronic device for determining the aggregation status of devices, so as to at least solve the problem of how to improve the efficiency of obtaining the aggregation status of multiple devices in the related art.

[0006] According to one embodiment of the embodiments of the present application, a method for determining a device aggregation state is provided, comprising: acquiring attribute information of multiple devices; performing standardized configuration on the attribute information of the multiple devices to obtain standard attribute information of the multiple devices, wherein the standardized configuration represents common parameters for configuring the attribute information of the multiple devices; performing aggregation calculation on the standard attribute information of the multiple devices to obtain a device aggregation state of the multiple devices, wherein the device aggregation state is used to indicate the overall state of the multiple devices under the same standard attribute.

[0007] In an exemplary embodiment, the attribute information of the multiple devices is standardized to obtain the standard attribute information of the multiple devices, including: obtaining a first attribute name and a second attribute name from the attribute information of the multiple devices, wherein the first attribute name represents the attribute name of the target attribute of the first device, and the second attribute name represents the attribute name of the target attribute of the second device; obtaining a first value range and a second value range from the attribute information of the multiple devices, wherein the first value range represents the value range of the first attribute name, and the second value range represents the value range of the second attribute name, wherein the value range represents the value range of the target attribute corresponding to the attribute name; modifying both the first attribute name and the second attribute name to a third attribute name, and modifying both the first value range and the second value range to a third value range, wherein the third value range is the value range corresponding to the target attribute in the standard attribute information; adjusting the first attribute value and the second attribute value according to the third value range to obtain the standard attribute information of the first device and the second device, wherein the first attribute value represents the attribute value of the target attribute of the first device, and the second attribute value represents the attribute value of the target attribute of the second device.

[0008] In an exemplary embodiment, adjusting the first attribute value and the second attribute value according to the third value range includes: determining a first correspondence between attribute values ​​in the first value range and attribute values ​​in the third value range, and a second correspondence between attribute values ​​in the second value range and attribute values ​​in the third value range; adjusting the first attribute value to a third attribute value according to the first correspondence, wherein the third attribute value is an attribute value in the third value range corresponding to the first attribute value; adjusting the second attribute value to a fourth attribute value according to the first correspondence, wherein the fourth attribute value is an attribute value in the third value range corresponding to the second attribute value.

[0009] In an exemplary embodiment, standard attribute information of the multiple devices is aggregated and calculated to determine the aggregate state of the multiple devices, including: using a rule engine to find an aggregate attribute calculation rule corresponding to a target attribute, the rule engine being used to manage the aggregate attribute calculation rule; and performing an aggregate calculation on standard attributes corresponding to the target attributes of the multiple devices according to the aggregate attribute calculation rule to obtain the aggregate state.

[0010] In an exemplary embodiment, before using the rule engine to search for the aggregate attribute calculation rule corresponding to the target attribute, the method also includes: responding to a state acquisition request of the target object, wherein the state acquisition request is used to request the aggregate state corresponding to the target attribute; determining the aggregate attribute calculation rule corresponding to the target attribute; and adding the aggregate attribute calculation rule corresponding to the target attribute to the rule engine.

[0011] In an exemplary embodiment, the standard attributes corresponding to the target attributes of the multiple devices are aggregated and calculated according to the aggregate attribute calculation rule to obtain the aggregate state, including: determining a target device with the target attribute from the multiple devices; obtaining the standard attribute value corresponding to the target attribute of the target device from the standard attribute information of the multiple devices; and the standard attribute value corresponding to the target attribute of the target device is aggregated and calculated according to the aggregate attribute calculation rule to obtain the aggregate state.

[0012] In an exemplary embodiment, an aggregate calculation is performed on the standard attribute values ​​corresponding to the target attributes of the target device according to the aggregate attribute calculation rule, including: summing the standard attribute values ​​corresponding to the target attributes of the target device; and / or performing logical operations on the standard attribute values ​​corresponding to the target attributes of the target device; and / or counting the devices in the target device whose standard attribute values ​​corresponding to the target attributes are target values.

[0013] According to another aspect of an embodiment of the present application, a device for determining a device aggregation state is also provided, including: an acquisition module for acquiring attribute information of multiple devices; a configuration module for performing standardized configuration on the attribute information of the multiple devices to obtain standard attribute information of the multiple devices, wherein the standardized configuration represents common parameters for configuring the attribute information of the multiple devices; a calculation module for performing aggregation calculation on the standard attribute information of the multiple devices to obtain the device aggregation state of the multiple devices, wherein the device aggregation state is used to indicate the overall state of the multiple devices under the same standard attribute.

[0014] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for determining the device aggregation state when running.

[0015] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the device aggregation state through the computer program.

[0016] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0017] In the embodiment of the present application, the acquired attribute information of multiple devices can be standardized, the attribute information of different devices can be unified into standard attribute information, and then the standard attribute information of multiple devices can be aggregated and calculated to obtain the device aggregation status of multiple devices. The standard attribute information has been processed in a unified format, and the attribute aggregation operation can be directly performed, so that the aggregation status of the device can be quickly obtained. The above technical solution solves the problem of how to improve the efficiency of obtaining the aggregation status of multiple devices, thereby achieving the effect of improving the efficiency of obtaining the aggregation status of multiple devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 It is a hardware environment diagram of a method for determining a device aggregation state according to an embodiment of the present application;

[0021] Figure 2 is a flow chart of a method for determining a device aggregation state according to an embodiment of the present application;

[0022] Figure 3 is a flow chart of a method for determining a device aggregation state according to an embodiment of the present application;

[0023] Figure 4 It is a structural block diagram of a device for determining a device aggregation state according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] According to one aspect of an embodiment of the present application, a method for determining a device aggregation state is provided. The method for determining a device aggregation state is widely used in application scenarios such as software development. Optionally, in this embodiment, the method for determining a device aggregation state can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0027] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0028] In this embodiment, a method for determining the device aggregation state is provided, which is applied to the above terminal device. Figure 2: is a flow chart of a method for determining a device aggregation state according to an embodiment of the present application, the process comprising the following steps:

[0029] Step S202, obtaining attribute information of multiple devices;

[0030] Optionally, in the above step S202, the attribute information includes but is not limited to attribute name, attribute value, attribute value domain and other information.

[0031] Step S204, performing standardized configuration on the attribute information of the plurality of devices to obtain standard attribute information of the plurality of devices, wherein the standardized configuration indicates configuring common parameters for the attribute information of the plurality of devices;

[0032] Step S206: performing aggregation calculation on the standard attribute information of the multiple devices to obtain device aggregation status of the multiple devices, wherein the device aggregation status is used to indicate the overall status of the multiple devices under the same standard attribute.

[0033] Optionally, in the above step S202, the device aggregation state includes, for example, whether all home devices are turned on, and the device aggregation state has two values: all turned on and not all turned on.

[0034] Through the above steps, the acquired attribute information of multiple devices can be standardized, the attribute information of different devices can be unified into standard attribute information, and then the standard attribute information of multiple devices can be aggregated and calculated to obtain the device aggregation status of multiple devices. The standard attribute information has been processed in a unified format, and the attribute aggregation operation can be directly performed, thereby quickly obtaining the device aggregation status. The above technical solution solves the problem of how to improve the efficiency of obtaining the aggregation status of multiple devices, thereby achieving the effect of improving the efficiency of obtaining the aggregation status of multiple devices.

[0035] In an exemplary embodiment, the attribute information of the multiple devices is standardized to obtain the standard attribute information of the multiple devices, including: obtaining a first attribute name and a second attribute name from the attribute information of the multiple devices, wherein the first attribute name represents the attribute name of the target attribute of the first device, and the second attribute name represents the attribute name of the target attribute of the second device; obtaining a first value range and a second value range from the attribute information of the multiple devices, wherein the first value range represents the value range of the first attribute name, and the second value range represents the value range of the second attribute name, wherein the value range represents the value range of the target attribute corresponding to the attribute name; modifying both the first attribute name and the second attribute name to a third attribute name, and modifying both the first value range and the second value range to a third value range, wherein the third value range is the value range corresponding to the target attribute in the standard attribute information; adjusting the first attribute value and the second attribute value according to the third value range to obtain the standard attribute information of the first device and the second device, wherein the first attribute value represents the attribute value of the target attribute of the first device, and the second attribute value represents the attribute value of the target attribute of the second device.

[0036] Optionally, in the above embodiment, for example, there are device A (equivalent to the first device) and device B (equivalent to the second device) in a smart home, and both devices have a light switch status (equivalent to the target attribute). The attribute name of the light switch status of device A is status (equivalent to the first attribute name), and the value range is [1, 0] (equivalent to the first value range). The attribute name of the light switch status of device B is powerStatus (equivalent to the second attribute name), and the value range is ['open', 'close'] (equivalent to the second value range). Now the attribute information of device A and device B is standardized, and the attribute name of the light switch status can be unified as LightStatus (equivalent to the third attribute name), and the value range can be unified as ['on', 'off'] (equivalent to the third value range).

[0037] In an exemplary embodiment, adjusting the first attribute value and the second attribute value according to the third value range includes: determining a first correspondence between attribute values ​​in the first value range and attribute values ​​in the third value range, and a second correspondence between attribute values ​​in the second value range and attribute values ​​in the third value range; adjusting the first attribute value to a third attribute value according to the first correspondence, wherein the third attribute value is an attribute value in the third value range corresponding to the first attribute value; adjusting the second attribute value to a fourth attribute value according to the first correspondence, wherein the fourth attribute value is an attribute value in the third value range corresponding to the second attribute value.

[0038] Optionally, in the above embodiment, the value range of the light switch state of device A is [1, 0], the value range of the light switch state of device B is ['open', 'close'], and the value range of the light switch state in the standard attribute information is ['on', 'off'], wherein the correspondence between different value ranges is first determined, for example, 1 corresponds to on for on, 0 corresponds to off for off, open corresponds to on for on, and close corresponds to off for off. If the original attribute value of the light switch state of device A is 1, and the attribute value is on after being converted to the standard attribute, the original attribute value of the light switch state of device B is close, and the attribute value is off after being converted to the standard attribute.

[0039] In an exemplary embodiment, standard attribute information of the multiple devices is aggregated and calculated to determine the aggregate state of the multiple devices, including: using a rule engine to find an aggregate attribute calculation rule corresponding to a target attribute, the rule engine being used to manage the aggregate attribute calculation rule; and performing an aggregate calculation on standard attributes corresponding to the target attributes of the multiple devices according to the aggregate attribute calculation rule to obtain the aggregate state.

[0040] Optionally, in the above embodiment, the rule engine is used to manage and maintain aggregate attribute calculation rules of various attributes, and can add, edit, and delete rules. Different attributes correspond to different aggregate attribute calculation rules.

[0041] In an exemplary embodiment, before using the rule engine to search for the aggregate attribute calculation rule corresponding to the target attribute, the method also includes: responding to a state acquisition request of the target object, wherein the state acquisition request is used to request the aggregate state corresponding to the target attribute; determining the aggregate attribute calculation rule corresponding to the target attribute; and adding the aggregate attribute calculation rule corresponding to the target attribute to the rule engine.

[0042] Optionally, in the above embodiment, after receiving a request to obtain the status of the target object, the aggregate status of the corresponding target attribute in the request is parsed first. For example, if the request is for the aggregate status of the device light switches, if it is the first request, it is necessary to first determine the aggregation rules of the light switch status and then add them to the rule base. When a subsequent request to obtain the aggregate status of the light switches is received, the attribute values ​​of the light switch status of multiple devices are directly calculated according to the corresponding rules.

[0043] In an exemplary embodiment, the standard attributes corresponding to the target attributes of the multiple devices are aggregated and calculated according to the aggregate attribute calculation rule to obtain the aggregate state, including: determining a target device with the target attribute from the multiple devices; obtaining the standard attribute value corresponding to the target attribute of the target device from the standard attribute information of the multiple devices; and the standard attribute value corresponding to the target attribute of the target device is aggregated and calculated according to the aggregate attribute calculation rule to obtain the aggregate state.

[0044] Optionally, in the above embodiment, if there are device A, device B, and device C in the home, and both device A and device B have the light switch function, and device C does not have the light switch function, then when performing an aggregation operation on the light switch status, only the standard attribute values ​​of the light switch status of device A and device B are aggregated.

[0045] In an exemplary embodiment, an aggregate calculation is performed on the standard attribute values ​​corresponding to the target attributes of the target device according to the aggregate attribute calculation rule, including: summing the standard attribute values ​​corresponding to the target attributes of the target device; and / or performing logical operations on the standard attribute values ​​corresponding to the target attributes of the target device; and / or counting the devices in the target device whose standard attribute values ​​corresponding to the target attributes are target values.

[0046] Optionally, in the above embodiment, when different device aggregation states are obtained, the corresponding aggregation calculation methods are also different. For example, if the acquired device aggregation state is the total power of all devices in the house, the power values ​​of all devices are summed. If the acquired device aggregation state is whether all lights in the house are turned on / off, logical operations are performed on the light switch status values ​​of all devices. The logical operations include AND operations, OR operations, NOT operations, XOR operations, XNOR operations, etc. If the acquired device aggregation state value is the number of started devices, the number of devices whose power status is on among all devices is counted.

[0047] In order to better understand the process of the method for determining the aggregation status of the above-mentioned devices, the implementation method flow of determining the aggregation status of the above-mentioned devices is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.

[0048] In an alternative embodiment, Figure 3 is a schematic flow chart of a method for determining a device aggregation state according to an embodiment of the present application, such as Figure 3As shown, first obtain the attribute information of different devices, perform attribute standardization configuration through the attribute adapter, resolve the differences in attribute names and attribute value ranges between different attributes, configure corresponding calculation rules for different attributes, determine the aggregation attribute calculation rule corresponding to the target attribute through the rule engine, and then perform aggregation operation on the target attribute to obtain the aggregation state.

[0049] Optionally, in the above embodiment, a json file can be used to perform attribute standardization configuration, and the non-standard attributes can be converted into standard attributes corresponding to the name field through the mappers field. The specific json file and field descriptions are as follows:

[0050] -name-String, the standardized attribute name, such as onOffStatus;

[0051] -desc-String, standardized attribute description, such as power on / off status;

[0052] -valueType-String, the type of attribute value;

[0053] -BOOL-Boolean value, value range: true / false;

[0054] -INT- integer type, the value range is the minimum and maximum value of the defined range;

[0055] -FLOAT-floating point type, the value range is the minimum and maximum value of the defined range;

[0056] -LIST-enumeration value, the value range is all defined enumerations;

[0057] -valueRange-JsonArray, the value range of the attribute value;

[0058] -BOOL-["true","false"]; only true / false;

[0059] -INT-["minValue","maxValue"], minimum value minValue, maximum value maxValue;

[0060] -FLOAT-["minValue","maxValue"], minimum value minValue, maximum value maxValue;

[0061] -LIST-["enum1","enum2",..."enumN"], enumeration value range: enum1~enumN;

[0062] -mappers-JsonArray, standard attribute mapping;

[0063] -name-String The name of the non-standard attribute;

[0064] -values-JsonArray mapping between non-standard attribute values ​​and standard attribute values;

[0065] -originalValue-String non-standard attribute value;

[0066] -standardValue-String Standard attribute value.

[0067] Optionally, in the above embodiment, the attribute aggregation calculation rule corresponding to the device aggregation state can be expressed by the following json:

[0068] -name-String The status name of the device / aggregate, such as powerStatus;

[0069] -desc-String device / aggregate status description, such as the power on / off status of the whole house;

[0070] -rules-JsonArray calculation rules. According to the calculation rules, the state corresponding to name is calculated and returned through properValue;

[0071] -operator-String describes the relationship between multiple conditions, including:

[0072] -AND-The action operation is executed only when multiple conditions are true;

[0073] -OR-As long as one condition is true, the action operation is executed;

[0074] -action-The instruction to be executed when the calculation rule meets the conditions. Refer to the action instruction field;

[0075] -name-String operation instruction, such as ASSIGN, COUNT, SUM, etc.;

[0076] -propertValue-String command operation result, corresponding to the aggregation status such as powerStatus result.

[0077] Through the above embodiment, developers only need to complete the configuration of two json files, namely, attribute standardization configuration and aggregate attribute calculation configuration, to obtain the device aggregation state according to the aggregate attribute calculation rules, thus solving the differences between the attributes of different devices and greatly improving the efficiency of attribute aggregation state calculation between different devices.

[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0079] Figure 4 is a structural block diagram of a device for determining a device aggregation state according to an embodiment of the present application; Figure 4 As shown, including:

[0080] An acquisition module 42, used to acquire attribute information of multiple devices;

[0081] A configuration module 44, configured to perform standardized configuration on the attribute information of the plurality of devices to obtain standard attribute information of the plurality of devices, wherein the standardized configuration represents configuring common parameters for the attribute information of the plurality of devices;

[0082] The calculation module 46 is used to perform aggregation calculation on the standard attribute information of the multiple devices to obtain the device aggregation status of the multiple devices, wherein the device aggregation status is used to indicate the overall status of the multiple devices under the same standard attribute.

[0083] Through the above device, the acquired attribute information of multiple devices can be standardized, the attribute information of different devices can be unified into standard attribute information, and then the standard attribute information of multiple devices can be aggregated and calculated to obtain the device aggregation status of multiple devices. The standard attribute information has been processed in a unified format, and the attribute aggregation operation can be directly performed, thereby quickly obtaining the device aggregation status. The above technical solution solves the problem of how to improve the efficiency of obtaining the aggregation status of multiple devices, thereby achieving the effect of improving the efficiency of obtaining the aggregation status of multiple devices.

[0084] In an exemplary embodiment, the configuration module 44 is further used to: obtain a first attribute name and a second attribute name from the attribute information of the multiple devices, wherein the first attribute name represents the attribute name of the target attribute of the first device, and the second attribute name represents the attribute name of the target attribute of the second device; obtain a first value range and a second value range from the attribute information of the multiple devices, wherein the first value range represents the value range of the first attribute name, and the second value range represents the value range of the second attribute name, wherein the value range represents the value range of the target attribute corresponding to the attribute name; modify both the first attribute name and the second attribute name to a third attribute name, and modify both the first value range and the second value range to a third value range, wherein the third value range is the value range corresponding to the target attribute in the standard attribute information; adjust the first attribute value and the second attribute value according to the third value range to obtain the standard attribute information of the first device and the second device, wherein the first attribute value represents the attribute value of the target attribute of the first device, and the second attribute value represents the attribute value of the target attribute of the second device.

[0085] In an exemplary embodiment, the above-mentioned configuration module 44 is also used to: determine a first correspondence between the attribute value in the first value range and the attribute value in the third value range, and a second correspondence between the attribute value in the second value range and the attribute value in the third value range; adjust the first attribute value to a third attribute value according to the first correspondence, wherein the third attribute value is the attribute value in the third value range corresponding to the first attribute value; adjust the second attribute value to a fourth attribute value according to the first correspondence, wherein the fourth attribute value is the attribute value in the third value range corresponding to the second attribute value.

[0086] In an exemplary embodiment, the above-mentioned calculation module 44 is also used to: use a rule engine to find an aggregate attribute calculation rule corresponding to the target attribute, and the rule engine is used to manage the aggregate attribute calculation rule; perform aggregate calculation on the standard attributes corresponding to the target attributes of the multiple devices according to the aggregate attribute calculation rule to obtain the aggregate state.

[0087] In an exemplary embodiment, the above-mentioned calculation module 44 is also used to: respond to a state acquisition request of the target object, wherein the state acquisition request is used to request the aggregation state corresponding to the target attribute; determine the aggregation attribute calculation rule corresponding to the target attribute; and add the aggregation attribute calculation rule corresponding to the target attribute to the rule engine.

[0088] In an exemplary embodiment, the above-mentioned calculation module 44 is also used to: determine a target device with target attributes from the multiple devices; obtain a standard attribute value corresponding to the target attribute of the target device from the standard attribute information of the multiple devices; and perform aggregation calculation on the standard attribute value corresponding to the target attribute of the target device according to the aggregation attribute calculation rule to obtain the aggregation state.

[0089] In an exemplary embodiment, the above-mentioned calculation module 44 is also used to: sum the standard attribute values ​​corresponding to the target attributes of the target device; and / or, perform logical operations on the standard attribute values ​​corresponding to the target attributes of the target device; and / or, count the devices in the target device whose standard attribute values ​​corresponding to the target attributes are target values.

[0090] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0091] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0092] S1, obtaining attribute information of multiple devices;

[0093] S2, performing standardized configuration on the attribute information of the plurality of devices to obtain standard attribute information of the plurality of devices, wherein the standardized configuration indicates configuring common parameters for the attribute information of the plurality of devices;

[0094] S3, performing aggregation calculation on the standard attribute information of the multiple devices to obtain device aggregation states of the multiple devices, wherein the device aggregation state is used to indicate the overall states of the multiple devices under the same standard attribute.

[0095] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0096] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0097] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0098] S1, obtaining attribute information of multiple devices;

[0099] S2, performing standardized configuration on the attribute information of the plurality of devices to obtain standard attribute information of the plurality of devices, wherein the standardized configuration indicates configuring common parameters for the attribute information of the plurality of devices;

[0100] S3, performing aggregation calculation on the standard attribute information of the multiple devices to obtain device aggregation states of the multiple devices, wherein the device aggregation state is used to indicate the overall states of the multiple devices under the same standard attribute.

[0101] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0102] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0103] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0104] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.

[0105] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

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

[0107] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for determining a device aggregation state, characterized in that: include: Get the property information of multiple devices; Performing standardized configuration on the attribute information of the plurality of devices to obtain standard attribute information of the plurality of devices, wherein the standardized configuration indicates configuring common parameters for the attribute information of the plurality of devices; Aggregate calculation is performed on the standard attribute information of the multiple devices to obtain device aggregation states of the multiple devices, wherein the device aggregation state is used to indicate an overall state of the multiple devices under the same standard attribute.

2. The method for determining the device aggregation state according to claim 1, characterized in that: Standardizing the attribute information of the plurality of devices to obtain standard attribute information of the plurality of devices includes: Acquire a first attribute name and a second attribute name from the attribute information of the plurality of devices, wherein the first attribute name indicates an attribute name of a target attribute of the first device, and the second attribute name indicates an attribute name of the target attribute of the second device; Acquire a first value range and a second value range from the attribute information of the multiple devices, wherein the first value range represents the value range of the first attribute name, and the second value range represents the value range of the second attribute name, wherein the value range represents the value range of the target attribute corresponding to the attribute name; Modify the first attribute name and the second attribute name to a third attribute name, and modify the first value range and the second value range to a third value range, wherein the third value range is a value range corresponding to the target attribute in the standard attribute information; The first attribute value and the second attribute value are adjusted according to the third value range to obtain standard attribute information of the first device and the second device, wherein the first attribute value represents the attribute value of the target attribute of the first device, and the second attribute value represents the attribute value of the target attribute of the second device.

3. The method for determining the device aggregation state according to claim 2, characterized in that: Adjusting the first attribute value and the second attribute value according to the third value range includes: Determine a first correspondence between an attribute value in the first value range and an attribute value in the third value range, and a second correspondence between an attribute value in the second value range and an attribute value in the third value range; adjust the first attribute value to a third attribute value according to the first correspondence, wherein the third attribute value is an attribute value in the third value range corresponding to the first attribute value; The second attribute value is adjusted to a fourth attribute value according to the first corresponding relationship, wherein the fourth attribute value is an attribute value in the third value range corresponding to the second attribute value.

4. The method for determining the device aggregation state according to claim 1, characterized in that: Aggregating and calculating the standard attribute information of the plurality of devices to determine an aggregation state of the plurality of devices includes: Using a rule engine to search for an aggregate attribute calculation rule corresponding to a target attribute, the rule engine being used to manage the aggregate attribute calculation rule; Aggregate calculation is performed on standard attributes corresponding to the target attributes of the multiple devices according to the aggregate attribute calculation rule to obtain the aggregate state.

5. The method for determining the device aggregation state according to claim 4, characterized in that: Before using the rule engine to search for the aggregate attribute calculation rule corresponding to the target attribute, the method further includes: Responding to a status acquisition request of the target object, wherein the status acquisition request is used to request an aggregation status corresponding to the target attribute; Determine an aggregate attribute calculation rule corresponding to the target attribute; Add the aggregate attribute calculation rule corresponding to the target attribute to the rule engine.

6. The method for determining the device aggregation state according to claim 4, characterized in that: Performing aggregation calculation on the standard attributes corresponding to the target attributes of the multiple devices according to the aggregation attribute calculation rule to obtain the aggregation state includes: Determining a target device having a target attribute from the multiple devices; Acquire a standard attribute value corresponding to the target attribute of the target device from standard attribute information of a plurality of devices; Aggregate calculation is performed on the standard attribute value corresponding to the target attribute of the target device according to the aggregate attribute calculation rule to obtain the aggregate state.

7. The method for determining the device aggregation state according to claim 6, characterized in that: Performing aggregate calculation on the standard attribute value corresponding to the target attribute of the target device according to the aggregate attribute calculation rule includes: Performing a sum operation on standard attribute values ​​corresponding to the target attribute of the target device; and / or, performing a logical operation on the standard attribute value corresponding to the target attribute of the target device; and / or, counting the devices in the target device whose standard attribute value corresponding to the target attribute is a target value.

8. A device for determining a device aggregation state, characterized in that: include: An acquisition module, used to obtain attribute information of multiple devices; A configuration module, configured to perform standardized configuration on the attribute information of the plurality of devices to obtain standard attribute information of the plurality of devices, wherein the standardized configuration represents configuring common parameters for the attribute information of the plurality of devices; The calculation module is used to perform aggregation calculation on the standard attribute information of the multiple devices to obtain the device aggregation status of the multiple devices, wherein the device aggregation status is used to indicate the overall status of the multiple devices under the same standard attribute.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 6 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.