Group creation methods, devices, storage media and electronic devices
By acquiring device control information and managing group control lock flags, the problems of cumbersome and inaccurate group creation for IoT devices have been solved, enabling fast and accurate group creation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU HUACHENG SOFTWARE TECH CO LTD
- Filing Date
- 2023-04-10
- Publication Date
- 2026-04-21
AI Technical Summary
In existing technologies, the process of establishing IoT device groups is cumbersome and has low accuracy, making it difficult for users to quickly distinguish devices and create multiple groups for different application scenarios.
By acquiring the control information of the first device and multiple devices, a set of candidate devices that are allowed to form a group is determined. The target group is established based on the intersection and device attributes, and the group establishment process is managed using the group control lock flag.
It enables the rapid and accurate creation of groups, improving the efficiency and accuracy of group creation and simplifying user operations.
Smart Images

Figure CN116527422B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and more specifically, to a group establishment method, apparatus, storage medium, and electronic device. Background Technology
[0002] With the rapid popularization of IoT technology, the era of interconnected everything has arrived, and more and more personal devices, home devices, and office devices are starting to connect to the network.
[0003] In related technologies, IoT devices need to be manually selected through an app or other user terminal to create a group. However, when multiple devices need to be grouped for different application scenarios, users need to manually filter the devices and add them one by one to the corresponding groups. This makes the group creation process cumbersome and complicated. In addition, users cannot quickly distinguish whether the optional devices provided by the app or other user terminal are the devices they want to include in the group, which further leads to a low accuracy rate in group creation.
[0004] There is currently no effective solution to the problem of low accuracy in group establishment in related technologies. Summary of the Invention
[0005] This invention provides a group creation method, apparatus, storage medium, and electronic device to at least solve the problem of low accuracy in group creation in related technologies.
[0006] According to an embodiment of the present invention, a group establishment method is provided, comprising: acquiring first control information sent by a first device and N control information sent by N devices, wherein N is a positive integer greater than or equal to 1, the first control information is used to represent a set of accounts having control permissions over the first device, each of the N control information is used to represent a set of accounts having control permissions over the corresponding device among the N devices, the N control information is information sent by the N devices in response to a target group control identifier in a group establishment request, and the group establishment request is sent by the first device when a group control mode is triggered. The request is sent to the aforementioned N devices, and the aforementioned target group control identifier is used to instruct the aforementioned N devices to send the aforementioned N control information; based on the aforementioned first control information and the aforementioned N control information, a set of candidate devices that are allowed to establish a group is determined among the aforementioned first device and the aforementioned N devices, wherein the sets of accounts that have control permissions over each device in the aforementioned candidate device set have an intersection; if the aforementioned candidate device set that is allowed to establish a group is determined, and the number of devices in the aforementioned candidate device set is greater than or equal to 2, a target group is established in the aforementioned candidate device set, wherein the target device attributes of the devices in the aforementioned target group belong to the same preset category.
[0007] In an exemplary embodiment, determining a set of candidate devices allowed to establish a group among the first device and the N devices based on the first control information and the N control information includes: obtaining a set of accounts with control permissions over the first device as represented by the first control information, to obtain a first account set; obtaining a set of accounts with control permissions over the corresponding device among the N devices as represented by each of the N control information, to obtain N account sets; taking the intersection of the first account set and the N account sets to obtain a target intersection result; and determining a set of candidate devices allowed to establish a group among the first device and the N devices based on the target intersection result.
[0008] In an exemplary embodiment, determining the candidate device set for establishing a group among the first device and the N devices based on the target intersection result includes: determining the candidate device set to include the first device and the N devices when the target intersection result indicates that the target account has control permissions over both the first device and the N devices; or determining the candidate device set to include the M devices when the target intersection result indicates that the target account has control permissions over M devices among the N devices and M devices of the first device, and M is greater than or equal to a preset threshold, wherein M is less than or equal to N+1 and greater than or equal to 2.
[0009] In one exemplary embodiment, establishing a target group in the candidate device set includes: when a target account has control permissions over each device in the candidate device set, obtaining a target category preset by the target account; determining devices in the candidate device set whose target device attributes belong to the target category as devices in the target group; or obtaining target device attributes of each device in the candidate device set from the first control information and the N control information; querying the target category corresponding to the candidate device set; and determining devices in the candidate device set whose target device attributes belong to the target category as devices in the target group.
[0010] In an exemplary embodiment, the acquisition of the first control information sent by the first device and the N control information sent by the N devices includes: acquiring the first control information sent by the first information transmission module in the first device, and acquiring the control information sent by the information transmission modules in each of the N devices. Each of the N control information is information sent by the information transmission module after the group control module in the corresponding device among the N devices parses the received group establishment request to obtain the target group control identifier. The group establishment request is a request sent by the group control module in the first device when the group control mode is triggered. The first device is configured to send a group control lock flag to the N devices after the group control mode is triggered. The group control lock flag is used to instruct the N devices to block group establishment requests sent by devices other than the first device. The group control lock flag is a flag generated by the group control module in the first device when the group control mode is triggered.
[0011] In an exemplary embodiment, during the process of establishing a target group in the aforementioned candidate device set, the method further includes at least one of the following: upon receiving a group establishment end instruction sent by the first information transmission module, controlling the N devices to clear the group control lock flag, wherein the group establishment end instruction is an instruction sent by the group control module in the first device upon receiving a first instruction, the first instruction being used to instruct the first device to send the group establishment end request; upon receiving a group establishment end instruction sent by the first information transmission module, controlling the N devices to clear the group control lock flag, wherein the group establishment end instruction is an instruction sent by the group control module in the first device when the duration of the group control mode being triggered reaches a target preset duration.
[0012] In one exemplary embodiment, the method further includes: parsing the group establishment end instruction to obtain the target group control identifier; determining the N devices that respond to the target group control identifier, and sending control instructions to the N devices to control the N devices to clear the group control lock flag.
[0013] According to another embodiment of the present invention, a group establishment apparatus is provided, comprising: an acquisition module, configured to acquire first control information sent by a first device and N control information sent by N devices, wherein N is a positive integer greater than or equal to 1, the first control information representing a set of accounts having control permissions over the first device, each of the N control information representing a set of accounts having control permissions over a corresponding device among the N devices, the N control information being information sent by the N devices in response to a target group control identifier in a group establishment request, and the group establishment request being sent by the first device when a group control mode is triggered. The request from N devices, the aforementioned target group control identifier is used to instruct the aforementioned N devices to send the aforementioned N control information; the determining module is used to determine, based on the aforementioned first control information and the aforementioned N control information, a set of candidate devices that are allowed to establish a group among the aforementioned first device and the aforementioned N devices, wherein the sets of accounts that have control permissions over each device in the aforementioned candidate device set have an intersection; the establishing module is used to establish a target group in the aforementioned candidate device set if the aforementioned set of candidate devices that are allowed to establish a group is determined, and the number of devices in the aforementioned candidate device set is greater than or equal to 2, wherein the target device attributes of the devices in the aforementioned target group belong to the same preset category.
[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when it is run.
[0015] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0016] This invention obtains first control information sent by a first device and N control information sent by N devices. Based on the first control information and the N control information, a set of candidate devices allowed to form a group is determined from the first device and the N devices. Then, when a set of candidate devices allowed to form a group is determined, and the number of devices in the candidate device set is greater than or equal to 2, a target group is established from the candidate device set. By using this method, the target group is established quickly from the set of candidate devices allowed to form a group determined from the first device and the N devices based on the first control information and the N control information. This solves the problem of low accuracy in group establishment in related technologies, achieving the effect of improving both the efficiency and accuracy of group establishment. Attached Figure Description
[0017] Figure 1 This is a hardware structure block diagram of a mobile terminal for a group establishment method according to an embodiment of the present invention.
[0018] Figure 2 This is a flowchart of a group creation method according to an embodiment of the present invention;
[0019] Figure 3 This is a block diagram of a module structure for group establishment according to a specific embodiment of the present invention;
[0020] Figure 4 This is a flowchart illustrating the creation of a group according to a specific embodiment of the present invention;
[0021] Figure 5 This is a flowchart of an inclusion rule configuration according to a specific embodiment of the present invention;
[0022] Figure 6 This is a structural block diagram of a group creation device according to an embodiment of the present invention. Detailed Implementation
[0023] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0025] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a group creation method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0026] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the group establishment method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0027] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0028] This embodiment provides a method for creating a group. Figure 2 This is a flowchart of a group creation method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0029] S202, obtain the first control information sent by the first device and the N control information sent by N devices, where N is a positive integer greater than or equal to 1. The first control information is used to represent the set of accounts with control permissions over the first device. Each of the N control information is used to represent the set of accounts with control permissions over the corresponding device among the N devices. The N control information is the information sent by the N devices in response to the target group control identifier in the group establishment request. The group establishment request is the request sent by the first device to the N devices when the group control mode is triggered. The target group control identifier is used to instruct the N devices to send N control information.
[0030] S204, based on the first control information and N control information, determine a set of candidate devices that are allowed to establish a group from the first device and the N devices, wherein the sets of accounts that have control permissions over each device in the candidate device set have an intersection;
[0031] S206, if a set of candidate devices that are allowed to form a group is determined, and the number of devices in the candidate device set is greater than or equal to 2, a target group is formed in the candidate device set, wherein the target device attributes of the devices in the target group belong to the same preset category.
[0032] The device performing the above operations can be a module with group creation capabilities, such as a cloud service module, a device with group creation capabilities, a controller or processor installed in a smart device, a standalone controller or processor, or other processing devices or processing units with similar processing capabilities.
[0033] In the above embodiments, the group control mode of the first device can be triggered remotely via an app or by pressing a button or touch key on the first device. Alternatively, the first device can automatically trigger the group control mode periodically. For example, the triggering cycle of the group control mode can be manually set, such as once a day, once a week, or once every two weeks. When the triggering cycle is once a week, the first device can automatically trigger the group control mode once a week. The first device can also set its own automatic triggering cycle. Furthermore, after manually setting the triggering cycle or the first device setting its own triggering cycle, the triggering cycle can be adjusted according to the actual application scenario. It should also be noted that the above examples of triggering methods and cycles for the group control mode are merely exemplary embodiments, and the triggering methods and cycles for the group control mode are not limited to the examples described above.
[0034] In the above embodiments, first control information sent by a first device and N control information sent by N devices are obtained. Based on the first control information and the N control information, a set of candidate devices allowed to form a group is determined from the first device and the N devices. Then, if a set of candidate devices allowed to form a group is determined, and the number of devices in the candidate device set is greater than or equal to 2, a target group is established from the candidate device set. By employing the method of the present invention, by establishing a target group from the set of candidate devices allowed to form a group determined from the first device and the N devices based on the first control information and the N control information, the purpose of quickly establishing a target group is achieved. This solves the problem of low accuracy in group establishment in related technologies, achieving the effect of improving both the efficiency and accuracy of group establishment.
[0035] In an exemplary embodiment, determining a set of candidate devices allowed to establish a group among the first device and the N devices based on first control information and N control information includes: obtaining a set of accounts with control permissions over the first device as represented by the first control information, to obtain a first account set; obtaining a set of accounts with control permissions over the corresponding device among the N devices as represented by each of the N control information, to obtain a set of N accounts; taking the intersection of the first account set and the N account sets to obtain a target intersection result; and determining a set of candidate devices allowed to establish a group among the first device and the N devices based on the target intersection result.
[0036] Optionally, in this embodiment, based on the target intersection result, there can be multiple candidate device sets for allowing the establishment of a group among the first device and N devices. For example, when the N devices are 3 devices (device 1, device 2, and device 3), and the accounts with control permissions over the first device are account 1, account 2, and account 3; the accounts with control permissions over device 1 are account 1 and account 2; the accounts with control permissions over device 2 are account 2 and account 3; and the accounts with control permissions over device 3 are account 1, account 2, and account 3, then the first device and device 1 can be grouped into a candidate device set 1 for allowing the establishment of a group, and both account 1 and account 2 can be selected from this candidate device set 1. The device can control and query the device attribute information and device status information of the devices in the candidate device set 1. The first device, device 2, and device 3 can be grouped into a candidate device set 2 that allows the creation of a group. Account 2 and account 3 can both control and query the device attribute information and device status information of the devices in candidate device set 2. The first device and device 3 can be grouped into a candidate device set 3 that allows the creation of a group. Account 1, account 2, and account 3 can all control and query the device attribute information and device status information of the devices in candidate device set 3. It should be noted that the above example of the method for determining the candidate device set is only an exemplary embodiment, and the method for determining the candidate device set is not limited to the above example.
[0037] In one exemplary embodiment, determining a set of candidate devices that are allowed to establish a group among the first device and N devices based on the target intersection result includes: if the target intersection result indicates that the target account has control permissions on both the first device and N devices, determining the set of candidate devices to include the first device and N devices; or if the target intersection result indicates that the target account has control permissions on both the N devices and M devices among the first device, and M is greater than or equal to a preset threshold, determining the set of candidate devices to include M devices, wherein M is less than or equal to N+1 and greater than or equal to 2.
[0038] Optionally, in this embodiment, if the target intersection result indicates that the target account has control permissions over both the first device and N devices, it means that both the first device and the N devices are candidate devices for creating a group, and thus a group can be created based on the first device and the N devices. If the target intersection result indicates that the target account has control permissions over both the N devices and M of the first devices, it means that the M devices are candidate devices for creating a group, and thus a group can be created based on the M devices. Furthermore, if the target intersection result indicates that there is no account with control permissions over both the first device and the N devices, a group creation failure message can be sent to the APP or other user terminal that triggered the group control mode, and the group creation failure message includes the reason for the group creation failure, such as no account with control permissions over both the first device and the N devices, or the first device not being bound to an account. It should also be noted that the above examples of group creation failure messages and reasons for group creation failure are only exemplary embodiments, and the group creation failure messages and reasons for group creation failure are not limited to the above examples.
[0039] In one exemplary embodiment, establishing a target group in a candidate device set includes: when a target account has control permissions over each device in the candidate device set, obtaining a target category preset by the target account; determining devices in the candidate device set whose target device attributes belong to the target category as devices in the target group; or obtaining the target device attributes of each device in the candidate device set from first control information and N control information; querying the target category corresponding to the candidate device set; and determining devices in the candidate device set whose target device attributes belong to the target category as devices in the target group.
[0040] Optionally, in this embodiment, the target category preset by the target account can be a category pre-set by the user corresponding to the target account, or it can be automatically set by the target account based on the device attributes corresponding to the device bound to the target account, and so on. Furthermore, querying the target category corresponding to the candidate device set can be done by querying categories pre-stored in the cloud, etc. It should be noted that the above examples of setting and querying target categories are merely exemplary embodiments, and the methods for setting target categories and querying target lists are not limited to the examples described above.
[0041] In one exemplary embodiment, obtaining first control information sent by a first device and N control information sent by N devices includes: obtaining first control information sent by a first information transmission module in the first device, and obtaining control information sent by information transmission modules in each of the N devices. Each of the N control information is information sent by the information transmission module after the group control module in the corresponding device among the N devices parses a received group establishment request to obtain a target group control identifier. The group establishment request is a request sent by the group control module in the first device when the group control mode is triggered. The first device is configured to send a group control lock flag to the N devices after the group control mode is triggered. The group control lock flag is used to instruct the N devices to block group establishment requests sent by devices other than the first device. The group control lock flag is a flag generated by the group control module in the first device when the group control mode is triggered.
[0042] Optionally, in this embodiment, both the first device and the N devices can generate a group control lock flag. For example, if the first device does not send a group control lock flag to the N devices after the group control mode is triggered, or if the N devices do not receive the group control lock flag sent by the first device after the group control mode is triggered, the N devices will automatically generate a group control lock flag to block group establishment requests sent by devices other than the first device. Alternatively, if some of the N devices receive the group control lock flag while others do not, the devices that did not receive the group control lock flag will automatically generate a group control lock flag to block group establishment requests sent by devices other than the first device, and so on. It should also be noted that the above examples of group control lock flag generation are only exemplary embodiments, and the generation methods of group control lock flags are not limited to the above examples.
[0043] In one exemplary embodiment, during the process of establishing a target group in a set of candidate devices, the method further includes at least one of the following: upon receiving a group establishment end instruction sent by a first information transmission module, controlling N devices to clear the group control lock flag, wherein the group establishment end instruction is an instruction sent by the group control module in the first device upon receiving a first instruction, the first instruction being used to instruct the first device to send a group establishment end request; upon receiving a group establishment end instruction sent by the first information transmission module, controlling N devices to clear the group control lock flag, wherein the group establishment end instruction is an instruction sent by the group control module in the first device when the duration of the group control mode being triggered reaches a target preset duration.
[0044] Optionally, in this embodiment, the target preset duration can be preset, such as 2 minutes, 3 minutes, 5 minutes, etc. For example, when the target preset duration is set to 3 minutes, when the duration of the group control mode being triggered reaches 3 minutes, the group control module in the first device sends a group creation end command to the cloud. It should be noted that the above example of the target preset duration is only an exemplary embodiment, and the target preset duration is not limited to the above example.
[0045] In one exemplary embodiment, the method further includes: parsing the group establishment end instruction to obtain a target group control identifier; determining N devices that respond to the target group control identifier, and sending control instructions to the N devices to control the N devices to clear the group control lock flag.
[0046] Optionally, in this embodiment, after the N devices clear the group control lock flag, the devices among the N devices that have not established a group can receive group establishment requests sent by devices other than the first device.
[0047] Obviously, the embodiments described above are only some embodiments of the present invention, and not all embodiments.
[0048] The present invention will be described in detail below with reference to specific embodiments:
[0049] A module structure diagram for group creation is provided in a specific embodiment of the present invention. Figure 3 This is a block diagram of a module structure for group establishment according to a specific embodiment of the present invention, such as... Figure 3 As shown, the Figure 3 It includes the following main modules:
[0050] 1. Equipment Group
[0051] 1) Device for triggering group control mode (corresponding to the first device mentioned above): A device for triggering group control mode, characterized by including the following modules:
[0052] Triggering the group control mode module (corresponding to the group control module in the first device mentioned above): The module that initiates the group control mode (corresponding to the group control mode mentioned above) is not limited to being triggered by an APP or a device. The triggered device receives the group control mode activation signal and generates a unique identifier for the group control process (corresponding to the target group control identifier mentioned above). The device carries the unique identifier information and starts broadcasting to nearby devices via various protocols including but not limited to Wi-Fi, Bluetooth, Zigbee, and LAN to send a group entry request signal (corresponding to the group establishment request mentioned above). At the same time, the device information reporting module reports the generated unique identifier for the group control process and its own device status attributes (corresponding to the first control information mentioned above) to the device information receiving module in the cloud.
[0053] Device information reporting module (first information transmission module): This module interacts with the cloud platform and is used to report device attribute information and the unique identifier information of the generated group control process.
[0054] 2) Receiving devices: Devices to be included in the group, characterized by the following modules:
[0055] Receiving group control module (corresponding to the group control module in the corresponding device among the above N devices): The module that receives the group signaling of the device that triggers the group control mode. The device information reporting module will obtain the unique group control identifier and the current device status information from the signaling and report it to the device information receiving module in the cloud.
[0056] Device information reporting module (corresponding to the above information transmission module): This module interacts with the cloud platform and is used to report device attribute information, device status information, and the unique identifier of the group control process parsed in the group entry signaling.
[0057] 2. Cloud Service Module
[0058] 1) Device Information Receiving Module: This module is used to receive the unique identifier information and device attribute information of the group control process reported by all devices (corresponding to the first device and the N devices mentioned above).
[0059] 2) Group inclusion rules module: Users can configure group creation matching rules, configure rules for device models and status attributes to be included in groups, and save them to the database in combination with user information.
[0060] 3) Group control device authentication module: Based on the device attribute information obtained by the device information receiving module, the module determines whether the device (corresponding to the first device and the N devices mentioned above) has the permission to be included in the group by binding and sharing permissions (corresponding to the control permissions mentioned above).
[0061] 4) Group control creation module: Combines the group entry rules module and the group control device authentication module to distinguish the information of the group control group to be generated. This information includes the information of each device in the group control group, completes the automatic creation of the group control group, saves the created group control group and the information of each device in the group control group to the database, and provides the app with the default group name and query related interfaces.
[0062] In a specific embodiment of the present invention, a process for creating a group is also provided. Figure 4 This is a flowchart of a group creation process according to a specific embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps:
[0063] S402, group control mode can be activated via APP or device button;
[0064] Users can select one of the devices in the group as the trigger device to activate the group control mode via remote operation through the app or by triggering it with a device button (or by device touch triggering, or by the device automatically triggering at regular intervals). A group control lock flag is generated to reject group entry commands from other trigger devices that have not yet completed group creation. The trigger device must meet the following requirements:
[0065] 1) A trigger group control mode module needs to be integrated.
[0066] 2) No inbound signaling for incomplete group creation initiated by other triggering devices was received.
[0067] S404, Generate group control lock flag information (corresponding to the aforementioned group control lock flag), and broadcast the group entry signal (corresponding to the aforementioned group establishment request);
[0068] When the group control mode module is activated, it generates a unique identifier for the group control process, representing the unique identifier of this group request process. It will then broadcast an entry signal to surrounding devices, carrying the unique identifier for the group control process. The propagation protocols include, but are not limited to, Wi-Fi, Bluetooth, Zigbee, and LAN transmission protocols to enable communication between devices.
[0069] S406, Report the unique identifier and device attributes of the group control process;
[0070] "Entering device" refers to a device waiting to join a group. The receiving group control module within the device listens for incoming group entry signals. If one is received, it parses the unique group control identifier (corresponding to the target group control identifier mentioned above) from the signal and, combined with the device's current attribute status, reports it to the device information receiving module via the device reporting module. A group control lock flag is then generated to reject group entry signals from other triggering devices until the process ends and the lock flag is released. The reported device status information includes:
[0071] 1) Unique device identifier, used to distinguish device information on the cloud platform.
[0072] 2) Used to create the status information required for configuring group rules, such as device battery level, device model, and other current device status information.
[0073] S408, generate group control lock flag (i.e., group control lock status flag), and report the unique identifier of the group control process and device attribute information;
[0074] It should be noted that steps S406 and S408 can be executed simultaneously or in any order.
[0075] S410, group control mode can be turned off via APP or device button;
[0076] The group control mode is turned off by remote operation via APP or by device button (or device touch key, etc.), or the group control mode exceeds the specified time limit, and the group control lock flag information is cleared.
[0077] S412, clear the group control lock flag information, disable the sending of broadcast group entry signaling and report the group control end command carrying the unique identifier of the group control process;
[0078] The trigger group control mode module shuts down broadcasting, stops initiating group entry signaling, and reports a group control end command (corresponding to the above group establishment end command) carrying the unique identifier of the group control process to the device information receiving module, and clears the group control lock flag information of the trigger device.
[0079] S414, the device information receiving module sends a signal to clear the group control lock flag information (corresponding to the above control command);
[0080] When the device information receiving module receives the group control end command, it parses the unique identifier of the group control process in the command, queries the device information under the unique identifier of the group control process from the module cache, and issues a signal to clear the group control lock information. The devices in the group complete the clearing of the group control lock information.
[0081] S416, complete the creation of the group control group based on the unique identifier of the group control process.
[0082] The device information receiving module, based on the unique identifier of the group control process in the termination instruction, combined with the group entry rule configuration module and the group control device authentication module, divides the device corresponding to the unique identifier of the group control process into one or more group control groups, and hands them over to the group control creation module to generate group control groups.
[0083] In a specific embodiment of the present invention, an inclusion rule configuration process is also provided. Figure 5 This is a flowchart of an inclusion rule configuration according to a specific embodiment of the present invention, such as... Figure 5 As shown, the process includes the following steps:
[0084] S502, users edit and generate group control creation rule configurations;
[0085] Users create group control entry rules through an app or other client, which are associated with the triggering device selected by the user, representing the creation rule template for this group control creation process. Conditions include, but are not limited to, device model identifiers and device status attributes. Relationship rules include, but are not limited to, greater than, less than, equal to, and contain; they can be single-condition combinations or multiple-condition intersections, unions, or combinations. Users register on the app or client platform, which stores the user's unique identifier and simultaneously generates a user-template association relationship through the creation of the entry rule template.
[0086] S504, the user triggers the device to complete the group control entry and reporting process;
[0087] The user triggers the device to complete the group control entry and reporting process, and all reported device information and the unique group control identifier are cached. The triggering device and the user are bound together on the platform. The group control identifier generated by the triggering device is bound to the user. User-Triggering Device-Group Control Identifier: The user triggers the device to complete the group control entry and reporting process, generating the group control identifier-device group association relationship.
[0088] S506, retrieve user's group entry rule configuration and import it into the cache;
[0089] User creation rule configurations are retrieved and cached based on the user's unique identifier and the group control's unique identifier. Ultimately, user configuration template information and device group information can be obtained through filtering and grouping using the user's unique identifier and the group control's unique identifier.
[0090] S508 filters out allowed devices for group entry through device authentication;
[0091] By querying the reported devices and their corresponding binding or sharing relationships and permission relationships that triggered this group entry process, the group control authentication module filters and completes the screening of devices entering the group. The device group corresponding to the group control may not belong to only one user; device filtering is achieved by querying the user information of each device in the device group (to see if they have permission to be included in the group).
[0092] S510, combined with the configuration of group creation rules, completes the creation of a group control group;
[0093] Retrieve the grouping rule configuration from the cache and combine it with filtering to process devices that meet the grouping criteria. After completing the grouping, create the group.
[0094] S512 returns group information and a list of devices in the group.
[0095] As described in the foregoing embodiments, by enabling group control mode on a device and generating a unique group control identifier, the device sends a group command and propagates the unique group control identifier to other devices in the same space. Upon receiving the group command, other devices report the unique group control identifier to the cloud, and the cloud generates a group control group, enabling the rapid grouping of devices located near each other in the same space. Furthermore, when rapidly generating group control groups in the cloud, based on configurable group entry conditions and the sharing permission controls bound to other devices, devices with different attribute states can be grouped together, different models can be grouped together, devices with different user group entry permissions can be grouped together, and so on.
[0096] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0097] This embodiment also provides a group creation apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0098] Figure 6 This is a structural block diagram of a group creation apparatus according to an embodiment of the present invention, such as... Figure 6 As shown, the device includes:
[0099] The acquisition module 62 is used to acquire first control information sent by a first device and N control information sent by N devices, where N is a positive integer greater than or equal to 1. The first control information is used to represent a set of accounts with control permissions over the first device. Each of the N control information is used to represent a set of accounts with control permissions over the corresponding device among the N devices. The N control information is information sent by the N devices in response to a target group control identifier in a group establishment request. The group establishment request is a request sent by the first device to the N devices when the group control mode is triggered. The target group control identifier is used to instruct the N devices to send the N control information.
[0100] The determining module 64 is configured to determine a set of candidate devices that are allowed to establish a group from the first device and the N devices based on the first control information and the N control information, wherein the sets of accounts that have control permissions over each device in the candidate device set have an intersection;
[0101] The module 66 is configured to establish a target group in the candidate device set when a set of candidate devices that are allowed to form a group is determined, and the number of devices in the candidate device set is greater than or equal to 2, wherein the target device attributes of the devices in the target group belong to the same preset category.
[0102] In one exemplary embodiment, the determining module 64 includes:
[0103] The first acquisition submodule is used to acquire the set of accounts that have control permissions over the first device as represented by the first control information, and obtain the first account set;
[0104] The second acquisition submodule is used to acquire the set of accounts that have control permissions over the corresponding devices in the N devices, represented by each of the N control information, to obtain N account sets.
[0105] A submodule is obtained, which is used to take the intersection of the first set of accounts and the N sets of accounts to obtain the target intersection result;
[0106] The first determining submodule is used to determine a set of candidate devices that are allowed to establish a group among the first device and the N devices based on the target intersection result.
[0107] In one exemplary embodiment, the first determining submodule includes:
[0108] The first determining unit is configured to, when the target intersection result indicates that the target account is an account that has control permissions for both the first device and the N devices, determine the candidate device set to include the first device and the N devices; or
[0109] The second determining unit is configured to determine the candidate device set to include the M devices when the target intersection result indicates that the target account is an account that has control permissions for all N devices and M devices in the first device, and M is greater than or equal to a preset threshold, wherein M is less than or equal to N+1 and greater than or equal to 2.
[0110] In one exemplary embodiment, the above-described establishment module 66 includes:
[0111] The third acquisition submodule is used to acquire the target category preset by the target account when the target account has control permissions over each device in the candidate device set; the second determination submodule is used to determine the devices in the candidate device set whose target device attributes belong to the target category as devices in the target group; or
[0112] The fourth acquisition submodule is used to acquire the target device attributes of each device in the candidate device set from the first control information and the N control information; the query submodule is used to query the target category corresponding to the candidate device set; the third determination submodule is used to determine the devices in the candidate device set whose target device attributes belong to the target category as devices in the target group.
[0113] In one exemplary embodiment, the acquisition module 62 includes:
[0114] The fifth acquisition submodule is used to acquire the first control information sent by the first information transmission module in the first device, and to acquire the control information sent by the information transmission modules in each of the N devices. Each of the N control information is information sent by the information transmission module after the group control module in the corresponding device among the N devices parses the received group establishment request to obtain the target group control identifier. The group establishment request is a request sent by the group control module in the first device when the group control mode is triggered. The first device is configured to send a group control lock flag to the N devices after the group control mode is triggered. The group control lock flag is used to instruct the N devices to block group establishment requests sent by devices other than the first device. The group control lock flag is a flag generated by the group control module in the first device when the group control mode is triggered.
[0115] In one exemplary embodiment, the above-described apparatus further includes at least one of the following:
[0116] The first control module is used to control the N devices to clear the group control lock flag when receiving a group establishment end instruction sent by the first information transmission module during the process of establishing a target group in the candidate device set. The group establishment end instruction is an instruction sent by the group control module in the first device when it receives a first instruction, which is used to instruct the first device to send the group establishment end request.
[0117] The second control module is used to control the N devices to clear the group control lock flag when it receives the group establishment end instruction sent by the first information transmission module. The group establishment end instruction is an instruction sent by the group control module in the first device when the duration of the group control mode being triggered reaches the target preset duration.
[0118] In one exemplary embodiment, the above-described apparatus further includes:
[0119] The parsing module is used to parse the group creation end command to obtain the target group control identifier;
[0120] The sending module is used to identify the N devices that respond to the target group control identifier and send control commands to the N devices to control the N devices to clear the group control lock flag.
[0121] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0122] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0123] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0124] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0125] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0126] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0127] The group creation method provided by this invention only requires triggering the group control mode of one device. It is not limited to remote control of the device via an APP or physical operation of the device. It can automatically form one or more groups of devices in the same space. Then, when the group control group is generated in the cloud, it can realize the customization of devices with different statuses, models, and users to form one or more groups according to the configurable group control group generation rules.
[0128] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0129] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for creating a group, characterized in that, include: The system acquires first control information sent by a first device and N control information sent by N devices, where N is a positive integer greater than or equal to 1. The first control information represents a set of accounts with control permissions over the first device. Each of the N control information represents a set of accounts with control permissions over the corresponding device among the N devices. The N control information is information sent by the N devices in response to a target group control identifier in a group establishment request. The group establishment request is a request sent by the first device to the N devices when the group control mode is triggered. The target group control identifier is used to instruct the N devices to send the N control information. Based on the first control information and the N control information, a set of candidate devices that are allowed to establish a group is determined from the first device and the N devices, wherein the sets of accounts that have control permissions over each device in the candidate device set have an intersection; If a set of candidate devices is determined that allows the establishment of a group, and the number of devices in the set of candidate devices is greater than or equal to 2, a target group is established in the set of candidate devices, wherein the target device attributes of the devices in the target group belong to the same preset category.
2. The method according to claim 1, characterized in that, The step of determining a set of candidate devices allowed to establish a group from the first device and the N devices based on the first control information and the N control information includes: Obtain the set of accounts with control permissions over the first device as represented by the first control information, and obtain the first account set; Obtain the set of accounts that have control permissions over the corresponding devices among the N devices, represented by each of the N control information, to obtain the N account set; The target intersection result is obtained by taking the intersection of the first set of accounts and the N sets of accounts; Based on the target intersection result, a set of candidate devices that are allowed to establish a group is determined among the first device and the N devices.
3. The method according to claim 2, characterized in that, The step of determining a set of candidate devices that are allowed to form a group among the first device and the N devices based on the target intersection result includes: If the target intersection result indicates that the target account has control permissions on both the first device and the N devices, then the candidate device set is determined to include both the first device and the N devices; or If the target intersection result indicates that the target account has control permissions for all N devices and M devices in the first device, and M is greater than or equal to a preset threshold, then the candidate device set is determined to include the M devices, wherein M is less than or equal to N+1 and greater than or equal to 2.
4. The method according to claim 1, characterized in that, The step of establishing a target group in the candidate device set includes: If the target account has control permissions over each device in the candidate device set, obtain the target category preset by the target account; determine the devices in the candidate device set whose target device attributes belong to the target category as devices in the target group; or Obtain the target device attributes of each device in the candidate device set from the first control information and the N control information; query the target category corresponding to the candidate device set; and determine the devices in the candidate device set whose target device attributes belong to the target category as devices in the target group.
5. The method according to claim 1, characterized in that, The acquisition of the first control information sent by the first device and the N control information sent by the N devices includes: The system acquires the first control information sent by the first information transmission module in the first device, and acquires the control information sent by the information transmission modules in each of the N devices. Each of the N control information is information sent by the information transmission module after the group control module in the corresponding device among the N devices parses the received group establishment request to obtain the target group control identifier. The group establishment request is a request sent by the group control module in the first device when the group control mode is triggered. The first device is configured to send a group control lock flag to the N devices after the group control mode is triggered. The group control lock flag is used to instruct the N devices to block group establishment requests sent by devices other than the first device. The group control lock flag is a flag generated by the group control module in the first device when the group control mode is triggered.
6. The method according to claim 5, characterized in that, In the process of establishing a target group in the candidate device set, the method further includes at least one of the following: Upon receiving a group establishment end instruction sent by the first information transmission module, the N devices are controlled to clear the group control lock flag. The group establishment end instruction is an instruction sent by the group control module in the first device upon receiving a first instruction, which instructs the first device to send the group establishment end request. Upon receiving a group establishment end instruction sent by the first information transmission module, the N devices are controlled to clear the group control lock flag. The group establishment end instruction is an instruction sent by the group control module in the first device when the duration of the group control mode being triggered reaches the target preset duration.
7. The method according to claim 6, characterized in that, The method further includes: The group creation end command is parsed to obtain the target group control identifier; Identify the N devices that respond to the target group control identifier and send control commands to the N devices to control the N devices to clear the group control lock flag.
8. A group creation device, characterized in that, include: The acquisition module is used to acquire first control information sent by a first device and N control information sent by N devices, wherein N is a positive integer greater than or equal to 1, the first control information is used to represent a set of accounts with control permissions over the first device, each of the N control information is used to represent a set of accounts with control permissions over the corresponding device among the N devices, the N control information is information sent by the N devices in response to a target group control identifier in a group establishment request, the group establishment request is a request sent by the first device to the N devices when the group control mode is triggered, and the target group control identifier is used to instruct the N devices to send the N control information; The determining module is configured to determine a set of candidate devices that are allowed to establish a group from the first device and the N devices based on the first control information and the N control information, wherein the sets of accounts that have control permissions over each device in the candidate device set have an intersection; A module is configured to establish a target group in the candidate device set when a set of candidate devices is determined to be allowed to form a group and the number of devices in the candidate device set is greater than or equal to 2, wherein the target device attributes of the devices in the target group belong to the same preset category.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Group creation method and device and storage medium
CN111324259A
Equipment control method and device, storage medium and electronic device
CN115356937A