Method, device, electronic device and storage medium for networking devices to be awakened
By reporting networking information from the devices to be awakened, the server divides devices from different LANs into the same packet, solving the consistency problem of intelligent networking of the devices to be awakened, and improving the accuracy of the device networking and the reliability of wake-up.
Patent Information
- Application Number
- CN202210334103.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2042-03-30
AI Technical Summary
In the collaborative wake-up scenario of intelligent devices to be awakened, the network accuracy of multiple devices affects the accuracy of wake-up, and the prior art is difficult to effectively solve the problem of network consistency between devices.
Through the networking information reported by the device to be awakened, the server divides devices with different accounts and belonging to different local area networks into the same packet and synchronizes them to each device to ensure that the networking information of the device and the server is consistent.
The symmetry of the networking of the devices to be awakened is improved, problems such as zero wake-up and simultaneous wake-up are avoided, and the reliability and accuracy of wake-up are improved.
Smart Images

Figure CN114615757B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of networking of devices to be awakened, and in particular to a method, apparatus, electronic device and storage medium for networking of devices to be awakened. Background Art
[0002] In the coordinated wakeup scenario for smart devices, multiple devices need to be aggregated and networked. When a user wakes up a smart device, distributed decision-making is used to select a suitable device to respond. This prevents multiple devices from responding simultaneously or no device responding. Therefore, the accuracy of the smart device networking affects the accuracy of device wakeup in the coordinated wakeup scenario. Summary of the Invention
[0003] The present application proposes a method, device, electronic device and storage medium for networking devices to be awakened. Through the networking information reported by the devices to be awakened, the server can divide the devices to be awakened with different accounts and belonging to different local area networks into the same group and synchronize them to each device to be awakened, so that the networking information of the devices to be awakened and the server is consistent, thereby improving the consistency of the networking of the devices to be awakened.
[0004] In one embodiment of the present application, a method for networking a device to be awakened is provided, including:
[0005] Obtaining networking information sent by the first device to be awakened; wherein the networking information includes a first account bound to the first device to be awakened, and a second account bound to a second device to be awakened that belongs to the same local area network as the first device to be awakened and is different from the first account bound to the first device to be awakened;
[0006] Obtain a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account;
[0007] Determine the device to be awakened in the target device group according to the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the acquired networking information;
[0008] The device information of the device to be awakened in the target device to be awakened group is synchronized to each device to be awakened in the target device to be awakened group.
[0009] Another embodiment of the present application provides a method for networking devices to be awakened, including:
[0010] Determine a second device to be awakened that belongs to the same local area network as the first device to be awakened; wherein a second account of the second device to be awakened is different from a first account of the first device to be awakened;
[0011] Generate networking information according to a first account of the first device to be awakened and a second account of the second device to be awakened;
[0012] The networking information is sent to a server; wherein the networking information is used by the server to obtain a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account, and determine the devices to be awakened in the target group of devices to be awakened based on the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the obtained networking information.
[0013] Another embodiment of the present application provides a device for networking devices to be awakened, including:
[0014] A first acquisition module is configured to acquire networking information sent by a first device to be awakened; wherein the networking information includes a first account bound to the first device to be awakened, and a second account bound to a second device to be awakened that belongs to the same local area network as the first device to be awakened and is different from the first account bound to the first device to be awakened;
[0015] A second acquisition module is configured to acquire a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account;
[0016] a grouping module, configured to determine the devices to be awakened in the target device group based on the devices to be awakened in the first device group, the devices to be awakened in the second device group, and the devices to be awakened in the device group corresponding to the account in the acquired networking information;
[0017] The synchronization module is configured to synchronize the device information of the device to be awakened in the target device to be awakened group to each device to be awakened in the target device to be awakened group.
[0018] Another embodiment of the present application provides a device for networking devices to be awakened, including:
[0019] A determination module, configured to determine a second device to be awakened that belongs to the same local area network as the first device to be awakened; wherein the second account of the second device to be awakened is different from the first account of the first device to be awakened;
[0020] a generating module, configured to generate networking information according to a first account of the first device to be awakened and a second account of the second device to be awakened;
[0021] A sending module is used to send the networking information to a server; wherein the networking information is used by the server to obtain a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account, and determine the devices to be awakened in the target group of devices to be awakened based on the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the obtained networking information.
[0022] Another embodiment of the present application provides an electronic wake-up device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method described in the aforementioned method embodiment is implemented.
[0023] Another aspect of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the aforementioned method embodiment is implemented.
[0024] Another embodiment of the present application provides a computer program product having a computer program stored thereon, which implements the method described in the above method embodiment when the program is executed by a processor.
[0025] The present application proposes a method, apparatus, electronic device to be awakened, and storage medium for networking devices to be awakened. The method obtains networking information sent by a first device to be awakened, wherein the networking information includes a first account bound to the first device to be awakened and a second account bound to a second device to be awakened that belongs to the same local area network as the first device to be awakened and is different from the first account bound to the first device to be awakened. The method obtains a first group of devices to be awakened corresponding to the first account and a second group of devices to be awakened corresponding to the second account. The method determines the devices to be awakened in a target group of devices to be awakened based on the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the acquired networking information. The method then synchronizes the device information of the devices to be awakened in the target group of devices to be awakened to each device to be awakened in the target group of devices to be awakened. By having the devices to be awakened report networking information containing the same local area network but different accounts, the server can group devices to be awakened with different accounts and belonging to different local area networks into the same group and synchronize the information to each device to be awakened, ensuring that the networking information of the devices to be awakened and the server is consistent, thereby improving the symmetry of the networking of the devices to be awakened.
[0026] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0028] Figure 1 A flowchart of a method for networking a device to be awakened provided in an embodiment of the present application;
[0029] Figure 2 A flowchart of another method for networking devices to be awakened provided in an embodiment of the present application;
[0030] Figure 3 A flowchart of another method for networking devices to be awakened provided in an embodiment of the present application;
[0031] Figure 4 A flowchart of another method for networking devices to be awakened provided in an embodiment of the present application;
[0032] Figure 5 A schematic diagram of the structure of a networking device for devices to be awakened provided in an embodiment of the present application;
[0033] Figure 6 A schematic diagram of the structure of another device networking apparatus to be awakened provided in an embodiment of the present application;
[0034] Figure 7 A block diagram of an electronic wake-up device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0036] The following describes the method, apparatus, electronic device, and storage medium for networking devices to be awakened according to embodiments of the present application with reference to the accompanying drawings.
[0037] Figure 1 A flowchart of a method for networking devices to be awakened provided in an embodiment of the present application.
[0038] The executor of the method for networking devices to be awakened in the embodiment of the present application is a networking device for devices to be awakened, which can be set on a server. The server can be set in a local server or in a cloud server, which is not limited in this embodiment.
[0039] like Figure 1 As shown, the method may include the following steps:
[0040] Step 101: Acquire networking information sent by a first device to be awakened.
[0041] The first device to be awakened refers to the device to be awakened that is currently sending networking information to the server. To distinguish it from other devices to be awakened, it is referred to as the first device to be awakened. The networking information includes a first account bound to the first device to be awakened, and a second account bound to a second device to be awakened that belongs to the same local area network as the first device to be awakened and is different from the first account bound to the first device to be awakened. The first account and the second account are different accounts. An account refers to the user account corresponding to when the device to be awakened logs in to the server through a set application, for example, a user's mobile phone number, user email address, user nickname, or other account that can uniquely identify user information.
[0042] In an embodiment of the present application, the second device to be awakened in the networking information is a device to be awakened that is discovered by the first device to be awakened during the process of discovering devices to be awakened, and that belongs to the same local area network as the first device to be awakened, but has a different account. As an implementation method, the first device to be awakened monitors the broadcast information of surrounding devices to be awakened, which can be a UDP data packet. Based on the IP information, the identifier of the device to be awakened, the identifier of the router or the identifier of the network carried in the broadcast information, the first device to be awakened determines the candidate device to be awakened that belongs to the same local area network as itself by comparison, and then compares the account of the candidate device to be awakened with the first account of the first device to be awakened to determine a second account that is different from the first account, and then sends the second device to be awakened corresponding to the second account and the first account corresponding to the first device to be awakened as networking information to the server. Among them, the second account can be one or more.
[0043] Step 102: Obtain a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account.
[0044] In the embodiment of the present application, during interaction with the device to be awakened, the server has obtained the account number bound to the device to be awakened and the identifier of the device to be awakened. Based on the account number of the device to be awakened, multiple groups of devices to be awakened are determined. Each group of devices to be awakened has a corresponding account number. In other words, each group of devices to be awakened consists of devices to be awakened that are bound to the same account number. For example, devices 1 to 5 to be awakened are bound to account number 1, account number 2, account number 2, account number 1, and account number 1, respectively. Thus, the device can be divided into two groups based on the account number. The first group is group 1 of devices to be awakened, corresponding to account number 1. Group 1 of devices to be awakened includes devices 1, 4, and 5. The second group is group 2 of devices to be awakened, corresponding to account number 2. The second group includes devices 2 and 3. Furthermore, by comparing the multiple accounts on the server with the first account, a first group of devices to be awakened corresponding to the first account can be determined. Furthermore, by comparing the multiple accounts with the second account, a second group of devices to be awakened corresponding to the second account can be determined.
[0045] Step 103 : Determine the device to be awakened in the target device group based on the devices to be awakened in the first device group, the devices to be awakened in the second device group, and the devices to be awakened in the device group corresponding to the account in the acquired networking information.
[0046] In an embodiment of the present application, the server can obtain the networking information sent by each first device to be awakened, that is, the server may have obtained the networking information sent by at least one first device to be awakened, and thus can re-divide the groups according to the devices to be awakened corresponding to the account contained in the acquired networking information, the devices to be awakened in the first device to be awakened group, and the devices to be awakened in the second device to be awakened group, so as to determine the target device to be awakened group and the devices to be awakened belonging to the target device to be awakened group.
[0047] As an example, the table shows the devices to be awakened under each account in three local area networks in a home scenario: Xiao Ming's home, his parents' home 1, and his parents-in-law's home 2. Re-networking is explained based on Table 1.
[0048] Table 1
[0049] Xiao Ming Xiao Ming's wife Xiao Ming's father mother in law Xiao Ming's home Device A to be awakened Device C to be awakened Parents' Home 1 Device B to be awakened Device to be awakened D Parents' Home 2 Device E to be awakened Device to be awakened F
[0050] For example, the server currently receives networking information from device A to be awakened. This information includes the account bound to device A, namely Xiao Ming, and the account bound to device C, namely Xiao Ming's wife. The server has also received networking information from device B to be awakened. This information includes the account bound to device B, namely Xiao Ming, and the account bound to device D, namely Xiao Ming's father. Furthermore, based on devices A and B under Xiao Ming's account, device C under Xiao Ming's wife's account, and device D under Xiao Ming's father's account, the server determines the devices included in the target device group, which can be device A, device B, device C, and device D.
[0051] For another example, the server currently receives networking information from device B, which contains the account bound to device D (mother-in-law) and the account bound to device B (Xiaoming). The server has also received networking information from device E, which contains the account bound to device E (Xiaoming's wife) and the account bound to device F (Xiaoming's mother-in-law). The server then determines the target device group based on the following: device B under Xiaoming's account, device E under his wife's account, device F under his mother-in-law's account, and device D under his father's account. The target device group can be comprised of device E, device B, device F, and device D.
[0052] Step 104 : Synchronize the device information of the device to be awakened in the target device to be awakened group to each device to be awakened in the target device to be awakened group.
[0053] The device information includes the device account number and may also include the device serial number.
[0054] In an embodiment of the present application, the device information of the device to be awakened in the target device group to be awakened is synchronized to each device to be awakened in the target device group to be awakened, so that the networking information in each device to be awakened and the networking information of the server are kept synchronized, thereby avoiding various problems such as zero wake-up and simultaneous wake-up caused by network asymmetry when waking up the devices synchronously based on the networking information, thereby improving the reliability of wake-up.
[0055] Optionally, the server can also determine the devices to be awakened belonging to the same space through data analysis based on the device numbers of the devices to be awakened in the target device group, the LAN information to which they belong, and the association between accounts, thereby achieving more detailed grouping of the devices to be awakened.
[0056] In the networking method for devices to be awakened according to the embodiment of the present application, the networking information sent by the first device to be awakened is obtained, the first group of devices to be awakened corresponding to the first account and the second group of devices to be awakened corresponding to the second account are obtained, and the devices to be awakened in the target group of devices to be awakened are determined based on the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened corresponding to the accounts in the obtained networking information, and the device information of the devices to be awakened is synchronized to each device to be awakened in the target group of devices to be awakened. Through the networking information reported by the devices to be awakened, the server divides the devices to be awakened with different accounts and belonging to different local area networks into the same group and synchronizes them to each device to be awakened, so that the networking information of the devices to be awakened and the server is consistent, thereby improving the symmetry of the networking of the devices to be awakened.
[0057] Based on the above embodiments, Figure 2 A flowchart of another method for networking a device to be awakened provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, step 103 includes the following steps:
[0058] Step 201: When the networking information corresponding to the first device to be awakened matches the acquired networking information, target networking information is determined.
[0059] At least one account in the target networking information matches at least one of the first account and the second account.
[0060] In an embodiment of the present application, the server matches the account contained in the networking information corresponding to the first device to be awakened with the account contained in the acquired networking information to determine an account that matches at least one of the first account and the second account contained in the first device to be awakened, and uses the networking information corresponding to the matched account as the target networking information.
[0061] For example, based on what is shown in Table 1, the server obtains the networking information sent by the device A to be awakened, including the account Xiao Ming corresponding to the device A to be awakened and the account Xiao Ming's wife corresponding to the device C to be awakened. The server has already obtained the networking information sent by the device B to be awakened, including the account Xiao Ming corresponding to the device B to be awakened and the account Xiao Ming's father corresponding to the device D to be awakened. The server matches the accounts contained in the networking information sent by the device A to be awakened and the networking information sent by the device B to be awakened, and determines that both networking information contain the same account, namely Xiao Ming, thereby determining that there is a matching relationship between the two networking information, and thus uses the networking information sent by the device B to be awakened that has been obtained as the target networking information.
[0062] Step 202 : Group the devices to be awakened in the first device to be awakened group, the devices to be awakened in the second device to be awakened group, and the devices to be awakened in the device to be awakened group corresponding to the account in the target networking information into a target device to be awakened group.
[0063] In the embodiment of the present application, when it is determined that two or more networking information matches, the devices under the accounts in the two networking information are merged. That is, the devices to be awakened in the first awakened device group, the devices to be awakened in the second awakened device group, and the devices to be awakened in the awakened device group corresponding to the account in the target networking information are grouped into the target awakened device group, thereby grouping all related devices into the same large group.
[0064] For example, according to the example listed in step 201, the awakened device A and the awakened device C belong to the same local area network, namely Xiao Ming's home, and correspond to different accounts, and the awakened device B and the awakened device D also belong to the same local area network, the local area network is identified as parents' home 1, and correspond to different accounts, and the awakened device A and the awakened device B correspond to the same bound account. Therefore, there is an association between the awakened devices A, B, C and D. The awakened devices A, B, C and D can be divided into the same target awakened device group, and the device information in the target awakened device group can be synchronized to the awakened devices A, B, C and D, so as to realize the synchronization of networking information between the server and the target awakened device group.
[0065] Optionally, if there is no matching relationship between the networking information corresponding to the first device to be awakened and the networking information already obtained by the server, it means that there is no association between the device to be awakened under the account contained in the networking information corresponding to the first device to be awakened and the device to be awakened under the account contained in the networking information already obtained by the server, and they do not need to be divided into the same group.
[0066] In the networking method of the devices to be awakened in the embodiment of the present application, the association between the networking information is determined based on the networking information reported by the devices to be awakened and the matching relationship between the networking information, so that the server can divide the devices to be awakened under the accounts contained in the associated networking information into the same group, thereby realizing that the devices to be awakened with different accounts and belonging to different local area networks are divided into the same group and synchronized to each device to be awakened, so that the networking information of the devices to be awakened and the server are consistent, thereby improving the symmetry of the networking of the devices to be awakened.
[0067] Based on the above embodiments, Figure 3 A flowchart of another method for networking a device to be awakened provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the following steps are included before step 102:
[0068] Step 301: Obtain device information of multiple third devices to be awakened.
[0069] The device information of each third device to be awakened includes a corresponding third account.
[0070] The third device to be awakened refers to a device that can interact with the server. To distinguish it from the first and second devices, it is referred to as the third device. During its interaction with the server, the third device carries information such as the account number associated with the device and its ID. Once the server obtains the account number associated with the device, it compares the information and groups all devices associated with the same account number into the same group.
[0071] Step 302 : Generate a first group of devices to be awakened based on the devices to be awakened whose third accounts match the first accounts in the third devices to be awakened.
[0072] In one implementation of the embodiment of the present application, the server divides the devices to be awakened under the same account into the same group of devices to be awakened based on the third account corresponding to the third device to be awakened received, and then compares the first account with the third account corresponding to each group of devices to be awakened to determine the first group of devices to be awakened that matches the first account.
[0073] In another implementation of the embodiment of the present application, the server matches the third account of the third device to be awakened with the first account according to the received information, determines the third account that matches the first account, and divides the third device to be awakened and the first device to be awakened corresponding to the third account into the same group of devices to be awakened, namely, the first group of devices to be awakened.
[0074] Step 303 : Generate a second group of devices to be awakened according to the devices to be awakened whose third accounts match the second accounts in the third devices to be awakened.
[0075] The method for generating the second group of devices to be awakened can refer to the explanation in the aforementioned embodiment, and the principle is the same, so it will not be repeated here.
[0076] Step 304: Perform hash processing on the first account and the second account using a set hash algorithm to obtain corresponding hash values.
[0077] In the embodiment of the application, the first account is hashed using a predetermined hash algorithm to obtain a hash value corresponding to the first account, and the second account is hashed using a predetermined hash algorithm to obtain a hash value corresponding to the second account. The hash algorithm may be a Message-Digest Algorithm (MD5) or a Secure Hash Algorithm 1 (SHA1), which is not limited in this embodiment.
[0078] In step 305, according to the hash value corresponding to the first account, the device information to be awakened of each device to be awakened belonging to the first group of devices to be awakened is stored on the corresponding virtual server instance, and according to the hash value corresponding to the second account, the device information to be awakened of each device to be awakened belonging to the second group of devices to be awakened is stored on the corresponding virtual server instance.
[0079] Among them, the virtual server instance is used to store the devices to be awakened belonging to the same account, so that the devices to be awakened under different accounts can be stored separately, which is convenient for network management.
[0080] In an embodiment of the present application, after grouping according to the account number, multiple groups of devices to be awakened can be obtained. If multiple groups of devices to be awakened are stored on the same virtual server instance, when the amount of data is large, it will cause greater storage pressure on the single storage unit and reduce the efficiency of data search. Therefore, in an embodiment of the present application, in order to improve the efficiency of data storage, hash processing is performed based on the account numbers of different groups of devices to be awakened to obtain corresponding hash values. Based on the mapping relationship of the hash values, different groups of devices to be awakened are stored on the corresponding virtual server instances. In other words, according to the hash value corresponding to the first account number, the device information to be awakened of each device to be awakened belonging to the first group of devices to be awakened is stored on the corresponding virtual server instance, and according to the hash value corresponding to the second account number, the device information to be awakened of each device to be awakened belonging to the second group of devices to be awakened is stored on the corresponding virtual server instance. Among them, the virtual server instances for storing the devices to be awakened under different accounts are different.
[0081] In the networking method of devices to be awakened in an embodiment of the present application, the server matches accounts to determine a first group of devices to be awakened corresponding to a first account and a second group of devices to be awakened corresponding to a second account, and performs hash processing based on the first account and the second account to obtain corresponding hash values. Based on the hash values, the first group of devices to be awakened and the second group of devices to be awakened are respectively stored on virtual server instances corresponding to the hash values, so as to reduce the pressure on a single storage unit, improve the efficiency of data reading, and facilitate networking management.
[0082] Based on the above embodiment, the embodiment of the present application provides another method for networking devices to be awakened, which is applied to a first device to be awakened. Figure 4 A flowchart of another method for networking a device to be awakened provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method comprises the following steps:
[0083] Step 401: Determine a second device to be awakened that belongs to the same local area network as the first device to be awakened, wherein a second account of the second device to be awakened is different from a first account of the first device to be awakened.
[0084] Among them, the executor of the method for networking the device to be awakened is the networking device for the device to be awakened, which can be set in the first device to be awakened. The first device to be awakened is an electronic device to be awakened. The electronic device to be awakened can be a smart phone, a smart speaker, a smart TV or a smart wearable device to be awakened, which is not limited in this embodiment.
[0085] In an embodiment of the present application, a first device to be awakened monitors broadcast information from other devices to be awakened. Upon detecting a broadcast message, the device to be awakened can be determined to be a device on the same local area network as the first device to be awakened. Based on the accounts of the devices to be awakened on the same local area network, a second account of the second device to be awakened, which is different from the first account of the first device to be awakened, can be determined.
[0086] Step 402 : Generate networking information according to the first account of the first device to be awakened and the second account of the second device to be awakened.
[0087] The first device to be awakened reports the first account and the second account as networking information to the server.
[0088] Step 403: Send the networking information to the server.
[0089] Among them, the networking information is used by the server to obtain a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account, and to determine the devices to be awakened in the target group of devices to be awakened based on the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the obtained networking information.
[0090] Among them, regarding how the server regroups the awakened devices according to the networking information, reference can be made to the explanation in the aforementioned embodiment. The principle is the same and will not be repeated in this embodiment.
[0091] In the networking method of the device to be awakened in the embodiment of the present application, a second device to be awakened is determined, which belongs to the same local area network as the first device to be awakened, wherein the second account of the second device to be awakened is different from the first account of the first device to be awakened, and networking information is generated according to the first account of the first device to be awakened and the second account of the second device to be awakened, and the networking information is sent to the server, so that the server re-divides the grouping of the devices to be awakened according to the networking information, and actively reports the relevant information of the devices to be awakened with different accounts under the same route to the server through the device to be awakened. The server synchronizes the local networking information according to the reported information.
[0092] Furthermore, in one implementation of the embodiment of the present application, after the first device to be awakened sends the networking information to the server, the first device to be awakened will obtain the device information of the device to be awakened in the target device to be awakened group determined according to the networking information sent by the server, and determine the device to be awakened in the target device to be awakened group according to the device information of the device to be awakened in the target device to be awakened group. That is to say, the first device to be awakened determines which devices to be awakened and itself belong to the same device to be awakened group, thereby realizing the synchronization of the server's device to be awakened group and the group information of each device to be awakened, that is, completing the synchronization of the networking information, which can improve the accuracy of subsequent collaborative awakening.
[0093] In order to implement the above embodiment, the embodiment of the present application also proposes a networking device for devices to be awakened.
[0094] Figure 5 A schematic diagram of the structure of a networking device for devices to be awakened provided in an embodiment of the present application.
[0095] like Figure 5 As shown, the device may include:
[0096] The first acquisition module 51 is used to obtain networking information sent by the first device to be awakened; wherein the networking information includes a first account bound to the first device to be awakened, and a second account bound to a second device to be awakened that belongs to the same local area network as the first device to be awakened and is different from the first account bound to the first device to be awakened.
[0097] The second acquisition module 52 is configured to acquire a first group of devices to be awakened corresponding to the first account and a second group of devices to be awakened corresponding to the second account.
[0098] The grouping module 53 is used to determine the devices to be awakened in the target device group based on the devices to be awakened in the first device group, the devices to be awakened in the second device group, and the devices to be awakened in the device group corresponding to the account in the acquired networking information.
[0099] The synchronization module 54 is configured to synchronize the device information of the device to be awakened in the target device to be awakened group to each device to be awakened in the target device to be awakened group.
[0100] Furthermore, in one implementation of the embodiment of the present application, the grouping module 53 is specifically configured to:
[0101] If the networking information corresponding to the first device to be awakened matches the acquired networking information, determining target networking information; wherein at least one account in the target networking information matches at least one of the first account and the second account;
[0102] The devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the target networking information are divided into the target group of devices to be awakened.
[0103] In one implementation of the embodiment of the present application, the apparatus further includes:
[0104] A third acquisition module is configured to acquire device information of a plurality of third devices to be awakened; wherein the device information of each of the third devices to be awakened includes a corresponding third account;
[0105] A generation module is used to generate the first group of devices to be awakened based on the devices to be awakened whose third accounts match the first account among the multiple third devices to be awakened; and generate the second group of devices to be awakened based on the devices to be awakened whose third accounts match the second account among the multiple third devices to be awakened.
[0106] In one implementation of the embodiment of the present application, the apparatus further includes:
[0107] A processing module is configured to perform hash processing on the first account and the second account using a set hash algorithm to obtain corresponding hash values; store device information of each device to be awakened belonging to the first group of devices to be awakened on a corresponding virtual server instance based on the hash value corresponding to the first account, and store device information of each device to be awakened belonging to the second group of devices to be awakened on a corresponding virtual server instance based on the hash value corresponding to the second account; wherein the virtual server instance is used for network management.
[0108] As an implementation manner, the synchronization module 54 is specifically configured to:
[0109] The account number and device number of the device to be awakened in the target device to be awakened group are synchronized to each device to be awakened in the target device to be awakened group.
[0110] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment and will not be repeated here.
[0111] In the networking device for devices to be awakened according to the embodiment of the present application, the networking information sent by the first device to be awakened is obtained, the first group of devices to be awakened corresponding to the first account and the second group of devices to be awakened corresponding to the second account are obtained, and the devices to be awakened in the target group of devices to be awakened are determined based on the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened corresponding to the accounts in the obtained networking information, and the device information of the devices to be awakened is synchronized to each device to be awakened in the target group of devices to be awakened. Through the networking information reported by the devices to be awakened, the server divides the devices to be awakened with different accounts and belonging to different local area networks into the same group and synchronizes them to each device to be awakened, so that the networking information of the devices to be awakened and the server is consistent, thereby improving the symmetry of the networking of the devices to be awakened.
[0112] In order to implement the above embodiment, an embodiment of the present application provides another device for networking devices to be awakened.
[0113] Figure 6 A schematic diagram of the structure of another device networking apparatus for devices to be awakened provided in an embodiment of the present application.
[0114] like Figure 6 As shown, the device may include:
[0115] The determining module 61 is configured to determine a second device to be awakened that belongs to the same local area network as the first device to be awakened; wherein the second account of the second device to be awakened is different from the first account of the first device to be awakened.
[0116] The generating module 62 is configured to generate networking information according to the first account of the first device to be awakened and the second account of the second device to be awakened.
[0117] A sending module 63 is configured to send the networking information to a server; wherein the networking information is used by the server to obtain a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account, and to determine the devices to be awakened in the target group of devices to be awakened based on the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the obtained networking information.
[0118] In one implementation of the embodiment of the present application, the apparatus further includes:
[0119] An acquisition module, configured to acquire device information of the target devices to be awakened in the target device group to be awakened, sent by the server;
[0120] The determination module 51 is further configured to determine the devices to be awakened in the target group of devices to be awakened according to the device information to be awakened of the devices to be awakened in the target group of devices to be awakened.
[0121] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment and will not be repeated here.
[0122] In the networking device of the device to be awakened in the embodiment of the present application, a second device to be awakened is determined, which belongs to the same local area network as the first device to be awakened, wherein the second account of the second device to be awakened is different from the first account of the first device to be awakened, and networking information is generated according to the first account of the first device to be awakened and the second account of the second device to be awakened, and the networking information is sent to the server, so that the server re-divides the grouping of the devices to be awakened according to the networking information, and actively reports the relevant information of the devices to be awakened with different accounts under the same route to the server through the device to be awakened. The server synchronizes the local networking information according to the reported information.
[0123] In order to implement the above embodiments, the present application also proposes an electronic wake-up device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the program, the method described in the above method embodiment is implemented.
[0124] In order to implement the above embodiments, the present application also proposes a non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the above method embodiments is implemented.
[0125] In order to implement the above embodiments, the present application further proposes a computer program product on which a computer program is stored. When the computer program is executed by a processor, the method described in the above method embodiments is implemented.
[0126] Figure 7 This is a block diagram of an electronic wake-up device provided in an embodiment of the present application. For example, the electronic wake-up device 800 can be a server or a wake-up device. The server can be a cloud server or a local server. The wake-up device can be a mobile phone, a computer, a digital broadcast terminal, a message-sending device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0127] Reference Figure 7, the electronic wake-up device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0128] The processing component 802 generally controls the overall operation of the electronic wake-up device 800, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 802.
[0129] The memory 804 is configured to store various types of data to support the operation of the electronic wake-up device 800. Examples of such data include instructions for any application or method operating on the electronic wake-up device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0130] The power component 806 provides power to the various components of the electronic wake-up device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic wake-up device 800.
[0131] The multimedia component 808 includes a screen that provides an output interface between the electronic wake-up device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic wake-up device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0132] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic wake-up device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0133] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0134] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the electronic wake-up device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic wake-up device 800, the relative positioning of components, such as the display and keypad of the electronic wake-up device 800. The sensor assembly 814 can also detect changes in the position of the electronic wake-up device 800 or a component of the electronic wake-up device 800, the presence or absence of user contact with the electronic wake-up device 800, the orientation or acceleration / deceleration of the electronic wake-up device 800, and changes in the temperature of the electronic wake-up device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0135] The communication component 816 is configured to facilitate wired or wireless communication between the electronic wake-up device 800 and other wake-up devices. The electronic wake-up device 800 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0136] In an exemplary embodiment, the electronic wake-up device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing wake-up devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned method.
[0137] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the electronic wake-up device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0138] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.
[0139] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. Throughout the description of this application, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.
[0140] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.
[0141] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection having one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner if necessary, and then storing it in a computer memory.
[0142] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0143] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0144] In addition, the functional units in the various embodiments of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into a module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0145] The storage medium mentioned above may be a read-only memory, a magnetic disk, or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application. Persons skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.
Claims
1. A method for networking devices to be awakened, characterized in that: Applicable to servers, including: Obtaining networking information sent by the first device to be awakened; wherein the networking information includes a first account bound to the first device to be awakened, and a second account bound to a second device to be awakened that belongs to the same local area network as the first device to be awakened and is different from the first account bound to the first device to be awakened; Obtain a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account; If at least one account in the acquired target networking information matches at least one of the first account and the second account, grouping the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the target networking information into a target group of devices to be awakened; The device information of the device to be awakened in the target device to be awakened group is synchronized to each device to be awakened in the target device to be awakened group.
2. The method according to claim 1, wherein Before obtaining the first group of devices to be awakened corresponding to the first account and the second group of devices to be awakened corresponding to the second account, the method further includes: Obtaining device information of multiple third devices to be awakened; wherein the device information of each of the third devices to be awakened includes a corresponding third account; generating a first group of devices to be awakened according to the devices to be awakened whose third accounts match the first account among the plurality of third devices to be awakened; A second group of devices to be awakened is generated according to the devices to be awakened whose third accounts match the second accounts among the multiple third devices to be awakened.
3. The method according to claim 2, wherein After generating the second group of devices to be awakened according to the devices to be awakened whose third accounts match the second accounts among the plurality of third devices to be awakened, the method includes: Performing hash processing on the first account and the second account using a predetermined hash algorithm to obtain corresponding hash values; According to the hash value corresponding to the first account, the device information of each device to be awakened belonging to the first group of devices to be awakened is stored on the corresponding virtual server instance, and according to the hash value corresponding to the second account, the device information of each device to be awakened belonging to the second group of devices to be awakened is stored on the corresponding virtual server instance; wherein, the virtual server instance is used for network management.
4. The method according to any one of claims 1 to 3, wherein The step of synchronizing the device information of the device to be awakened in the target device group to be awakened to each device to be awakened in the target device group to be awakened includes: The account number and device number of the device to be awakened in the target device to be awakened group are synchronized to each device to be awakened in the target device to be awakened group.
5. A method for networking devices to be awakened, characterized in that: Applicable to the first device to be awakened, including: Determine a second device to be awakened that belongs to the same local area network as the first device to be awakened; wherein a second account of the second device to be awakened is different from a first account of the first device to be awakened; Generate networking information according to a first account of the first device to be awakened and a second account of the second device to be awakened; The networking information is sent to a server; wherein the networking information is used by the server to obtain a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account, and if at least one account in the obtained target networking information matches at least one of the first account and the second account, the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the target networking information are divided into a target group of devices to be awakened, so that the server synchronizes the device information of the devices to be awakened in the target group of devices to be awakened to each device to be awakened in the target group of devices to be awakened.
6. The method according to claim 5, wherein After sending the networking information to the server, the method further includes: Obtaining device information of the device to be awakened in the target device to be awakened group sent by the server; The devices to be awakened in the target group of devices to be awakened are determined according to the device information of the devices to be awakened in the target group of devices to be awakened.
7. A networking device for devices to be awakened, characterized in that: include: A first acquisition module is configured to acquire networking information sent by a first device to be awakened; wherein the networking information includes a first account bound to the first device to be awakened, and a second account bound to a second device to be awakened that belongs to the same local area network as the first device to be awakened and is different from the first account bound to the first device to be awakened; A second acquisition module is configured to acquire a first group of devices to be awakened corresponding to the first account, and a second group of devices to be awakened corresponding to the second account; a grouping module, configured to, if at least one account in the acquired target networking information matches at least one of the first account and the second account, group the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the target networking information, into a target group of devices to be awakened; The synchronization module is configured to synchronize the device information of the device to be awakened in the target device to be awakened group to each device to be awakened in the target device to be awakened group.
8. A networking device for devices to be awakened, characterized in that: include: A determination module, configured to determine a second device to be awakened that belongs to the same local area network as the first device to be awakened; wherein the second account of the second device to be awakened is different from the first account of the first device to be awakened; a generating module, configured to generate networking information according to a first account of the first device to be awakened and a second account of the second device to be awakened; A sending module is used to send the networking information to a server; wherein the networking information is used by the server to obtain a first group of devices to be awakened corresponding to the first account, and to obtain a second group of devices to be awakened corresponding to the second account, and if at least one account in the obtained target networking information matches at least one of the first account and the second account, the devices to be awakened in the first group of devices to be awakened, the devices to be awakened in the second group of devices to be awakened, and the devices to be awakened in the group of devices to be awakened corresponding to the account in the target networking information are divided into a target group of devices to be awakened, so that the server synchronizes the device information of the devices to be awakened in the target group of devices to be awakened to each device to be awakened in the target group of devices to be awakened.
9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 4 or the method according to any one of claims 5 to 6 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented, or the method according to any one of claims 5 to 6 is implemented.
Citation Information
Patent Citations
Method of implementing centralized multicast management on integrated access equipment
CN101163093A
Method and apparatus for waking up electronic device
CN105049923A