Device grouping setting method and device, storage medium and electronic device

By obtaining the group ID and account information of the device, devices with the same function are automatically grouped, which solves the problem of non-standard grouping basis, improves the user operating experience, and enables unified display and quick search of devices.

CN115733878BActive Publication Date: 2024-08-23QINGDAO HAIER TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111006188.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2024-08-23
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

Since devices are manually grouped based on experience, problems with non-standard grouping criteria may occur, making it difficult for users to quickly find the target device when operating multiple home appliances.

Method used

By obtaining the group ID and account information of the device, the intersection is determined to automatically group devices with the same function and add them to the same group. This solves the problem of non-standard grouping basis and achieves a unified display of devices with the same function.

Benefits of technology

It improves the user experience. Through automatic group processing, users can find and control devices faster, simplifying the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115733878B
    Figure CN115733878B
Patent Text Reader

Abstract

The present invention discloses a method and device for setting device grouping, a storage medium and an electronic device, wherein the method comprises: obtaining a first grouping identifier of a first device, wherein the first grouping identifier is used to indicate a first device function of the first device; obtaining account information corresponding to the first device and a second grouping identifier of a second device associated with the account information, wherein the second grouping identifier is used to indicate a second device function of the second device; when it is determined that the second grouping identifier has an intersection with the first grouping identifier, determining the intersection of the second grouping identifier with the first grouping identifier as a third grouping identifier, and determining a third device corresponding to the third grouping identifier, wherein the third grouping identifier is used to indicate a third device function of the third device; setting a first group, and adding the first device and the third device to the first group, wherein the grouping identifiers of the devices in the first group are the same.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a method and device for setting device grouping, a storage medium and an electronic device. Background Art

[0002] With the development of science and technology and the improvement of living standards, users are buying and using more and more home appliances. When a user has multiple home appliances at home, to operate each device, it is necessary to find the corresponding details page or card of the device and then click to operate. In order to find the target device faster, we will group the devices, but users are required to judge and distinguish them, and then add the devices to the group after establishing the group. However, since the devices are grouped based on human experience, problems such as non-standard grouping basis are prone to occur.

[0003] Regarding the related technologies, since devices are grouped manually based on experience, problems such as non-standard grouping criteria may easily occur, and no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a method and apparatus for setting device grouping, a storage medium and an electronic device, so as to at least solve the problem in the related art that the device grouping is performed manually based on experience, which may easily lead to non-standard grouping basis.

[0005] According to an embodiment of the present invention, a method for setting device grouping is provided, including: obtaining a first grouping identifier of a first device, wherein the first grouping identifier is used to indicate a first device function of the first device; obtaining account information corresponding to the first device and a second grouping identifier of a second device associated with the account information, wherein the second grouping identifier is used to indicate a second device function of the second device; when it is determined that the second grouping identifier has an intersection with the first grouping identifier, determining the intersection of the second grouping identifier with the first grouping identifier as a third grouping identifier, and determining a third device corresponding to the third grouping identifier, wherein the third grouping identifier is used to indicate a third device function of the third device; setting a first group, and adding the first device and the third device to the first group, wherein the grouping identifiers of the devices in the first group are the same.

[0006] In an exemplary embodiment, after obtaining the account information corresponding to the first device and the second group identifier of the second device associated with the account information, the method further includes: in the case of determining that there is no third group identifier identical to the first group identifier in the second group identifier, setting a second group and adding the first device to the second group

[0007] In an exemplary embodiment, before acquiring the first grouping identifier of the first device, the method further includes: determining a service function to be grouped; and determining a first grouping identifier corresponding to the service function from among multiple grouping identifiers of the first device.

[0008] In an exemplary embodiment, before obtaining the first group identifier of the first device, the method further includes: when the first device is connected to a target platform, obtaining basic information of the first device, wherein the basic information is used to uniquely identify the first device; and loading multiple group identifiers of the first device according to the basic information of the first device.

[0009] In an exemplary embodiment, before determining the first group identifier corresponding to the business function among multiple group identifiers of the first device, the method also includes: obtaining a device function file corresponding to the first device, wherein the device function file includes at least one of the following: a basic function attribute file, a big data attribute file, a combined function attribute file, an alarm file, an invalid information file, an event file, and a logic rule file; and generating multiple group identifiers corresponding to the first device according to the device function file.

[0010] In an exemplary embodiment, after setting the grouping of the first device and the third device as a first group, the method further includes: sending a data packet of the first group to a client corresponding to the account information; when the client successfully receives a data packet of a device in the first group, instructing the client to load the data packet and display the devices of the first group in a preset manner.

[0011] According to another embodiment of the embodiments of the present invention, there is also provided a device for setting device grouping, comprising: a first acquisition module, used to acquire a first grouping identifier of a first device, wherein the first grouping identifier is used to indicate a first device function of the first device; a second acquisition module, used to acquire account information corresponding to the first device and a second grouping identifier of a second device associated with the account information, wherein the second grouping identifier is used to indicate a second device function of the second device; a determination module, used to, when determining that the second grouping identifier has an intersection with the first grouping identifier, determine the intersection of the second grouping identifier with the first grouping identifier as a third grouping identifier, and determine a third device corresponding to the third grouping identifier, wherein the third grouping identifier is used to indicate a third device function of the third device; a setting module, used to set a first group, and add the first device and the third device to the first group, wherein the grouping identifiers of the devices in the first group are the same.

[0012] In an exemplary embodiment, it further includes: the setting module is further used to set a second group and add the first device to the second group to set the second group when it is determined that there is no third group identifier that is the same as the first group identifier in the second group identifier.

[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned device grouping setting method when running.

[0014] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the device grouping setting method through the computer program.

[0015] In an embodiment of the present invention, a first grouping identifier of a first device is obtained, wherein the first grouping identifier is used to indicate a first device function of the first device; account information corresponding to the first device and a second grouping identifier of a second device associated with the account information are obtained, wherein the second grouping identifier is used to indicate a second device function of the second device; when it is determined that the second grouping identifier has an intersection with the first grouping identifier, the intersection of the second grouping identifier with the first grouping identifier is determined as a third grouping identifier, and a third device corresponding to the third grouping identifier is determined, wherein the third grouping identifier is used to indicate a third device function of the third device; a first group is set, and the first device and the third device are added to the first group, wherein the grouping identifiers of the devices in the first group are the same. The above scheme is adopted to solve the problem in the related art that due to the artificial grouping of devices based on experience, it is easy to have non-standard grouping basis and the like. Judgment is made according to the grouping identifier of the device to achieve automatic grouping processing of devices with the same function, solve the purpose of unified display of devices with the same function, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0017] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for setting device grouping according to an embodiment of the present invention;

[0018] Figure 2 is a flowchart of a method for setting device grouping according to an embodiment of the present invention;

[0019] Figure 3 is a schematic diagram of a method for setting device groups according to an optional embodiment of the present invention;

[0020] Figure 4 is a structural block diagram of a device for setting device grouping according to an embodiment of the present invention (I);

[0021] Figure 5 2 is a structural block diagram of a device for setting device grouping according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a device grouping setting method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for setting device grouping in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0027] In this embodiment, a method for setting device grouping is provided, which is applied to the above mobile terminal. Figure 2 1 is a flow chart of a method for setting device grouping according to an embodiment of the present invention, the flow chart comprising the following steps:

[0028] Step S202: acquiring a first group identifier of the first device, wherein the first group identifier is used to indicate a first device function of the first device;

[0029] Step S204, acquiring the account information corresponding to the first device and the second group identifier of the second device associated with the account information, wherein the second group identifier is used to indicate a second device function of the second device;

[0030] Step S206: when it is determined that the second group identifier has an intersection with the first group identifier, determine the intersection of the second group identifier with the first group identifier as a third group identifier, and determine a third device corresponding to the third group identifier, wherein the third group identifier is used to indicate a third device function of the third device;

[0031] Step S208: set a first group, and add the first device and the third device to the first group, wherein the group identifiers of the devices in the first group are the same.

[0032] Through the above steps, a first grouping identifier of the first device is obtained, wherein the first grouping identifier is used to indicate a first device function of the first device; the account information corresponding to the first device and the second grouping identifier of the second device associated with the account information are obtained, wherein the second grouping identifier is used to indicate a second device function of the second device; when it is determined that the second grouping identifier has an intersection with the first grouping identifier, the intersection of the second grouping identifier with the first grouping identifier is determined as a third grouping identifier, and a third device corresponding to the third grouping identifier is determined, wherein the third grouping identifier is used to indicate a third device function of the third device; a first group is set, and the first device and the third device are added to the first group, wherein the grouping identifiers of the devices in the first group are the same. The above scheme is adopted to solve the problem that in the related technology, due to the artificial grouping of devices based on experience, it is easy to have non-standard grouping basis and the like. Judgment is made according to the grouping identifier of the device to achieve automatic grouping processing of devices with the same function, solve the purpose of unified display of devices with the same function, and improve the user experience.

[0033] In an exemplary embodiment, after obtaining the account information corresponding to the first device and the second group identifier of the second device associated with the account information, when it is determined that there is no third group identifier in the second group identifier that is identical to the first group identifier, a second group is set and the first device is added to the second group.

[0034] It can be seen from the above embodiments that, when the first group identifier and the third group identifier are the same, the first device corresponding to the first group identifier and the third device corresponding to the third group identifier are set to the same first group; when the first group identifier and the third group identifier are different, the first device corresponding to the first group identifier is added to the second group, and the third device corresponding to the third group identifier is added to the third group.

[0035] Furthermore, after the grouping is set up, when a device is added under the account, the group identifier of the newly added device is obtained, and the group identifier of the newly added device is matched with the group information. When the group identifier is the same as the group identifier in the group information, the newly added device is added to the group corresponding to the group information, wherein the group information is used to indicate the group identifier of the device in the group.

[0036] In an optional embodiment, when there is only one device under the current account, the second group identifier of the second device associated with the account information is no longer obtained, and the first device corresponding to the first group identifier is set to the second group; when there are multiple devices under the current account, the account information corresponding to the first device and the second group identifier of the second device associated with the account information are obtained, wherein the second group identifier is used to indicate the second device function of the second device; when it is determined that the second group identifier has an intersection with the first group identifier, the intersection of the second group identifier with the first group identifier is determined as the third group identifier, and the third device corresponding to the third group identifier is determined, wherein the third group identifier is used to indicate the third device function of the third device; set the first group, and add the first device and the third device to the first group, wherein the group identifiers of the devices in the first group are the same.

[0037] In an exemplary embodiment, before acquiring the first grouping identifier of the first device, a service function to be grouped is determined; and a first grouping identifier corresponding to the service function is determined from multiple grouping identifiers of the first device.

[0038] The business functions to be grouped can be understood as the basis for grouping. For example, when the business functions to be grouped are switch functions and alarm functions, two grouping identifiers corresponding to the switch functions and the alarm functions are determined from multiple grouping identifiers of the device according to the switch functions and the alarm functions, and the two grouping identifiers of multiple devices are compared. When the two grouping identifiers of multiple devices are the same, the multiple devices are set to the same group. It can also be understood that the devices with switch functions and alarm functions are set to one group.

[0039] Specifically, after the first device is connected to the IoT platform, the IoT platform determines the device grouping based on the business functions, where the business functions require different grouping identifiers. All identifiers can be determined, or only group identifier 1 can be determined to determine whether the function list is the same and then set the grouping.

[0040] In an exemplary embodiment, before obtaining the first group identifier of the first device, when the first device is connected to a target platform, basic information of the first device is obtained, wherein the basic information is used to uniquely identify the first device; and based on the basic information of the first device, multiple group identifiers of the first device are loaded.

[0041] After the first device connects to the platform, it reports basic information of the first device, such as deviceID, wherein the basic information is used to uniquely indicate the first device. The platform loads the group identifier of the first device according to the basic information of the first device. It should be noted that the embodiment of the present invention does not limit the basic information of the device.

[0042] In an exemplary embodiment, before determining the first group identifier corresponding to the business function among multiple group identifiers of the first device, a device function file corresponding to the first device is obtained, wherein the device function file includes at least one of the following: a basic function attribute file, a big data attribute file, a combined function attribute file, an alarm file, an invalid information file, an event file, and a logic rule file; and multiple group identifiers corresponding to the first device are generated according to the device function file.

[0043] That is to say, determine the device function of the first device, and determine the corresponding device function file according to the device function of the first device. Specifically, determine the device function file in the standard model according to the device function of the first device based on the standard model, and create a device model of the first device according to the device function file, wherein the device function file includes at least one of the following: basic function attribute file, big data attribute file, combined function attribute file, alarm file, invalid information file, event file, and logic rule file.

[0044] In an exemplary embodiment, after setting the first device and the third device to be grouped as a first group, the data packet of the first group is sent to the client corresponding to the account information; when the client successfully receives the data packet of the device in the first group, the client is instructed to load the data packet and display the devices of the first group in a preset manner.

[0045] That is to say, after the devices are grouped, the groups and the device lists under the groups are synchronized to the user interaction display end, such as displayed on the APP end; the display end displays a group of devices and the corresponding group device card information, and the controllable list of group devices, which can be used to quickly find the corresponding devices according to the device grouping and control the devices more quickly through the device card information.

[0046] In order to better understand the process of the method for setting the above-mentioned device grouping, the implementation method flow of the setting of the above-mentioned device grouping 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 invention.

[0047] like Figure 3 As shown, Figure 3 is a schematic diagram of a method for setting device grouping according to an optional embodiment of the present invention, which is as follows:

[0048] Step S301: The first device is connected to the platform, and the platform determines the device grouping according to the service function;

[0049] Different business functions require different grouping identifiers to be used; all grouping identifiers may be judged, or only one grouping identifier may be judged.

[0050] Step S302: After the device is connected to the platform, the basic information of the first device is reported, wherein the basic information is used to uniquely identify the first device, such as deviceID;

[0051] Step S303: the platform loads multiple grouping identifiers of the first device according to the basic information of the first device;

[0052] Step S304: Determine whether the number of devices corresponding to the current account is greater than 1. If there is 1 device under the current account, execute step S308; if there are multiple devices under the current account, execute step S305;

[0053] Step S305: Determine whether the group identifiers corresponding to the multiple devices are the same. If the group identifiers are different, execute step S308; if the group identifiers are the same, execute step S306;

[0054] Step S306: automatically create a group, and then add devices with the same group ID to the group;

[0055] Step S307: Synchronize the group information and the device list under the group to the user interaction display end, such as displaying on the APP end, so that the display end displays a group of devices and the corresponding group device card information and the controllable list of the group devices;

[0056] Step S308: Display the device card page of the device, and the user controls the device through the device card page.

[0057] Through the above optional embodiments, a first group identifier of the first device is obtained, wherein the first group identifier is used to indicate a first device function of the first device; the account information corresponding to the first device and the second group identifier of the second device associated with the account information are obtained, wherein the second group identifier is used to indicate a second device function of the second device; when it is determined that the second group identifier has an intersection with the first group identifier, the intersection of the second group identifier with the first group identifier is determined as a third group identifier, and a third device corresponding to the third group identifier is determined, wherein the third group identifier is used to indicate a third device function of the third device; a first group is set, and the first device and the third device are added to the first group, wherein the group identifiers of the devices in the first group are the same. The above scheme is adopted to solve the problem that in the related technology, due to the artificial grouping of devices based on experience, it is easy to have non-standard grouping basis and the like. Judgment is made according to the group identifier of the device to achieve automatic grouping processing of devices with the same function, solve the purpose of unified display of devices with the same function, and improve the user experience.

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

[0059] Figure 4 1 is a structural block diagram of a device for setting device grouping according to an embodiment of the present invention (I); Figure 4 As shown, including:

[0060] A first acquisition module 42, configured to acquire a first group identifier of the first device, wherein the first group identifier is used to indicate a first device function of the first device;

[0061] A second acquisition module 44 is used to acquire the account information corresponding to the first device and a second group identifier of a second device associated with the account information, wherein the second group identifier is used to indicate a second device function of the second device;

[0062] a determination module 46, configured to, when it is determined that the second group identifier has an intersection with the first group identifier, determine the intersection of the second group identifier with the first group identifier as a third group identifier, and determine a third device corresponding to the third group identifier, wherein the third group identifier is used to indicate a third device function of the third device;

[0063] The setting module 48 is configured to set a first group and add the first device and the third device to the first group, wherein the group identifiers of the devices in the first group are the same.

[0064] Through the above-mentioned device, a first grouping identifier of the first device is obtained, wherein the first grouping identifier is used to indicate a first device function of the first device; the account information corresponding to the first device and the second grouping identifier of the second device associated with the account information are obtained, wherein the second grouping identifier is used to indicate a second device function of the second device; when it is determined that the second grouping identifier has an intersection with the first grouping identifier, the intersection of the second grouping identifier with the first grouping identifier is determined as a third grouping identifier, and a third device corresponding to the third grouping identifier is determined, wherein the third grouping identifier is used to indicate a third device function of the third device; a first group is set, and the first device and the third device are added to the first group, wherein the grouping identifiers of the devices in the first group are the same. The above-mentioned scheme is adopted to solve the problem that in the related technology, due to the artificial grouping of devices based on experience, it is easy to have non-standard grouping basis and the like. According to the grouping identifier of the device, judgment is made to achieve automatic grouping processing of devices with the same function, solve the purpose of unified display of devices with the same function, and improve the user experience.

[0065] In an exemplary embodiment, the setting module 48 is further configured to set a second group and add the first device to the second group when it is determined that there is no third group identifier identical to the first group identifier in the second group identifier.

[0066] It can be seen from the above embodiments that, when the first group identifier and the third group identifier are the same, the first device corresponding to the first group identifier and the third device corresponding to the third group identifier are set to the same first group; when the first group identifier and the third group identifier are different, the first device corresponding to the first group identifier is added to the second group, and the third device corresponding to the third group identifier is added to the third group.

[0067] Furthermore, after the grouping is set up, when a device is added under the account, the group identifier of the newly added device is obtained, and the group identifier of the newly added device is matched with the group information. When the group identifier is the same as the group identifier in the group information, the newly added device is added to the group corresponding to the group information, wherein the group information is used to indicate the group identifier of the device in the group.

[0068] In an optional embodiment, the setting module 48 is also used to, when there is only one device under the current account, no longer obtain the second group identifier of the second device associated with the account information, and set the first device corresponding to the first group identifier to the second group; when there are multiple devices under the current account, obtain the account information corresponding to the first device and the second group identifier of the second device associated with the account information, wherein the second group identifier is used to indicate the second device function of the second device; when it is determined that the second group identifier has an intersection with the first group identifier, determine the intersection of the second group identifier with the first group identifier as a third group identifier, and determine the third device corresponding to the third group identifier, wherein the third group identifier is used to indicate the third device function of the third device; set the first group, and add the first device and the third device to the first group, wherein the group identifiers of the devices in the first group are the same.

[0069] In an exemplary embodiment, the determination module 46 is further configured to determine the service function to be grouped; and determine a first grouping identifier corresponding to the service function from among multiple grouping identifiers of the first device.

[0070] The business functions to be grouped can be understood as the basis for grouping. For example, when the business functions to be grouped are switch functions and alarm functions, two grouping identifiers corresponding to the switch functions and the alarm functions are determined from multiple grouping identifiers of the device according to the switch functions and the alarm functions, and the two grouping identifiers of multiple devices are compared. When the two grouping identifiers of multiple devices are the same, the multiple devices are set to the same group. It can also be understood that the devices with switch functions and alarm functions are set to one group.

[0071] Specifically, after the first device is connected to the IoT platform, the IoT platform determines the device grouping based on the business functions, where the business functions require different grouping identifiers. All identifiers can be determined, or only group identifier 1 can be determined to determine whether the function list is the same and then set the grouping.

[0072] In an exemplary embodiment, the acquisition module is also used to acquire basic information of the first device when the first device is connected to a target platform, wherein the basic information is used to uniquely identify the first device; and load multiple group identifiers of the first device according to the basic information of the first device.

[0073] After the first device connects to the platform, it reports basic information of the first device, such as deviceID, wherein the basic information is used to uniquely indicate the first device. The platform loads the group identifier of the first device according to the basic information of the first device. It should be noted that the embodiment of the present invention does not limit the basic information of the device.

[0074] In an exemplary embodiment, the acquisition module is also used to obtain a device function file corresponding to the first device, wherein the device function file includes at least one of the following: a basic function attribute file, a big data attribute file, a combined function attribute file, an alarm file, an invalid information file, an event file, and a logic rule file; and generate multiple group identifiers corresponding to the first device according to the device function file.

[0075] That is to say, determine the device function of the first device, and determine the corresponding device function file according to the device function of the first device. Specifically, determine the device function file in the standard model according to the device function of the first device based on the standard model, and create a device model of the first device according to the device function file, wherein the device function file includes at least one of the following: basic function attribute file, big data attribute file, combined function attribute file, alarm file, invalid information file, event file, and logic rule file.

[0076] In an exemplary embodiment, Figure 5 2 is a structural block diagram of a device for setting device grouping according to an embodiment of the present invention (II); Figure 5 As shown, the above-mentioned device includes: a sending module 52, which is used to send the data packet of the first group to the client corresponding to the account information; when the client successfully receives the data packet of the device in the first group, instruct the client to load the data packet and display the device of the first group in a preset manner.

[0077] That is to say, after the devices are grouped, the groups and the device lists under the groups are synchronized to the user interaction display end, such as displayed on the APP end; the display end displays a group of devices and the corresponding group device card information, and the controllable list of group devices, which can be used to quickly find the corresponding devices according to the device grouping and control the devices more quickly through the device card information.

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

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

[0080] S1, obtaining a first group identifier of the first device, wherein the first group identifier is used to indicate a first device function of the first device;

[0081] S2, obtaining the account information corresponding to the first device and the second group identifier of the second device associated with the account information, wherein the second group identifier is used to indicate a second device function of the second device;

[0082] S3, when it is determined that the second group identifier has an intersection with the first group identifier, determine the intersection of the second group identifier with the first group identifier as a third group identifier, and determine a third device corresponding to the third group identifier, wherein the third group identifier is used to indicate a third device function of the third device;

[0083] S4: Set a first group, and add the first device and the third device to the first group, wherein the group identifiers of the devices in the first group are the same.

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

[0085] 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.

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

[0087] S1, obtaining a first group identifier of the first device, wherein the first group identifier is used to indicate a first device function of the first device;

[0088] S2, obtaining the account information corresponding to the first device and the second group identifier of the second device associated with the account information, wherein the second group identifier is used to indicate a second device function of the second device;

[0089] S3, when it is determined that the second group identifier has an intersection with the first group identifier, determine the intersection of the second group identifier with the first group identifier as a third group identifier, and determine a third device corresponding to the third group identifier, wherein the third group identifier is used to indicate a third device function of the third device;

[0090] S4: Set a first group, and add the first device and the third device to the first group, wherein the group identifiers of the devices in the first group are the same.

[0091] 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.

[0092] 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.

[0093] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, 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 than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for setting device grouping, characterized in that: include: Acquire a first group identifier of a first device, wherein the first group identifier is used to indicate a first device function of the first device; Acquire account information corresponding to the first device and a second group identifier of a second device associated with the account information, wherein the second group identifier is used to indicate a second device function of the second device; In a case where it is determined that the second group identifier has an intersection with the first group identifier, determining the intersection of the second group identifier with the first group identifier as a third group identifier, and determining a third device corresponding to the third group identifier, wherein the third group identifier is used to indicate a third device function of the third device; A first group is set, and the first device and the third device are added to the first group, wherein the group identifiers of the devices in the first group are the same.

2. The method for setting device groups according to claim 1, characterized in that: After acquiring the account information corresponding to the first device and the second group identifier of the second device associated with the account information, the method further includes: When it is determined that there is no third group identifier identical to the first group identifier in the second group identifier, a second group is set, and the first device is added to the second group.

3. The method for setting device groups according to claim 1, characterized in that: Before acquiring the first group identifier of the first device, the method further includes: Determine the business functions to be grouped; A first group identifier corresponding to the service function is determined from multiple group identifiers of the first device.

4. The method for setting device groups according to claim 1 or 3, characterized in that: Before acquiring the first group identifier of the first device, the method further includes: When the first device is connected to the target platform, acquiring basic information of the first device, wherein the basic information is used to uniquely identify the first device; Multiple group identifiers of the first device are loaded according to the basic information of the first device.

5. The method for setting device groups according to claim 3, characterized in that: Before determining a first group identifier corresponding to the service function from among multiple group identifiers of the first device, the method further includes: Obtaining a device function file corresponding to the first device, wherein the device function file includes at least one of the following: a basic function attribute file, a big data attribute file, a combined function attribute file, an alarm file, an invalid information file, an event file, and a logic rule file; A plurality of group identifiers corresponding to the first device are generated according to the device function file.

6. The method for setting device groups according to claim 1, characterized in that: After setting the group of the first device and the third device as a first group, the method further includes: Sending the first group of data packets to the client corresponding to the account information; In case the client successfully receives the data packet of the device in the first group, the client is instructed to load the data packet and display the devices in the first group in a preset manner.

7. A device for setting device groups, characterized in that: include: A first acquisition module, configured to acquire a first group identifier of a first device, wherein the first group identifier is used to indicate a first device function of the first device; A second acquisition module, configured to acquire the account information corresponding to the first device and a second group identifier of a second device associated with the account information, wherein the second group identifier is used to indicate a second device function of the second device; a determination module, configured to, when it is determined that the second group identifier has an intersection with the first group identifier, determine the intersection of the second group identifier with the first group identifier as a third group identifier, and determine a third device corresponding to the third group identifier, wherein the third group identifier is used to indicate a third device function of the third device; The setting module is used to set a first group and add the first device and the third device to the first group, wherein the group identifiers of the devices in the first group are the same.

8. The device for setting device groups according to claim 7, characterized in that: include: The setting module is further configured to set a second group and add the first device to the second group when it is determined that there is no third group identifier identical to the first group identifier in the second group identifier.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in 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.