Equipment wakeup method and related device

By switching the communication channel for direct communication when the electronic device wakes up, the problem of real-time device synchronization in the prior art is solved by the load of the routing device in the load, and a more efficient device wake-up and synchronization process is achieved.

CN120152005APending Publication Date: 2025-06-13MIDEA GRP (SHANGHAI) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510252624.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-04
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

During the wake-up process, existing electronic devices rely on routing devices for synchronization, resulting in real-time synchronization reduction in the routing device's load or AP isolation, which affects the synchronization process between devices.

Method used

When the electronic device is awakened, the switching communication channel switches from the first channel to the second channel, and performs direct communication to complete the synchronization operation in the wake-up process. The device list is updated through the received wake-up information, and the wake-up response result is determined based on the updated device list, and finally switch back to the first channel for communication.

Benefits of technology

It improves the real-time synchronization and wake-up efficiency of the device when wake-up, and avoids the real-time impact of routing devices and other relay devices on synchronization operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120152005A_ABST
    Figure CN120152005A_ABST
Patent Text Reader

Abstract

The invention discloses a device awakening method and a related device. The awakening method comprises the following steps: when the electronic equipment is awakened, switching from a first channel to a second channel to send and receive awakening information; updating a device list of the electronic device based on the received wake-up information; and determining a wake-up response result based on the updated device list, and switching from the second channel to the first channel for communication after executing the wake-up response result. By means of the mode, the synchronization real-time performance when the device is awakened can be improved, and the device awakening efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of device control, and in particular, to a device wake-up method and related devices. Background Art

[0002] Existing electronic devices usually use a single TCP / IP communication to achieve information synchronization between devices. This synchronization method highly depends on routing devices. When, in some scenarios, the routing device is overloaded or there is AP isolation, etc., it will affect the real-time synchronization between devices. For application scenarios with relatively high requirements for communication real-time performance, when normal communication cannot be carried out within the local area network corresponding to the routing device, it will lead to a significant decrease in the real-time performance of communication, affect the synchronization process of devices, and result in poor real-time synchronization between devices or even synchronization failure. Similarly, for scenarios with multiple routers, since devices are in local area networks corresponding to different routers, and there may even be a situation where devices to be synchronized are not connected to the routing device, it is even more difficult to achieve synchronization between multiple devices. Summary of the Invention

[0003] The main objective of this application is to provide a device wake-up method and related devices, which can improve the real-time synchronization during device wake-up and improve the device wake-up efficiency.

[0004] The first technical solution adopted by this application is: to provide a device wake-up method. The wake-up method includes: when an electronic device is awakened, switching from a first channel to a second channel to send and receive wake-up information; updating the device list of the electronic device based on the received wake-up information; determining a wake-up response result based on the updated device list, and switching from the second channel to the first channel for communication after executing the wake-up response result.

[0005] The second technical solution adopted by this application is to provide an electronic device. The electronic device includes a receiving module for receiving wake-up information; a control module for switching from a first channel to a second channel when the electronic device is awakened, updating the device list of the electronic device based on the received wake-up information, determining a wake-up response result based on the updated device list, and switching from the second channel to the first channel after executing the wake-up response result; a transmitting module for sending wake-up information.

[0006] The third technical solution adopted by this application is: to provide an electronic device. The electronic device includes a memory and a processor, and the memory is used to store program data, and the program data can be executed by the processor to implement the method described in the first technical solution.

[0007] The fourth technical solution adopted by this application is: to provide a computer-readable storage medium. The computer-readable storage medium stores program data, which can be executed by a processor to implement the method described in the first technical solution.

[0008] The fifth technical solution adopted in this application is: to provide a computer program product. The computer program product includes a computer program that can be executed by a processor to implement the method described in the first technical solution.

[0009] The beneficial effects of this application are as follows: when the electronic device is awakened, the communication channel of the electronic device is switched from the first channel to the second channel. In the second channel, the electronic device can perform direct communication to complete the synchronization operation in the subsequent wake-up process. The electronic device updates the device list according to the wake-up information received from other electronic devices, and finally determines its own wake-up response result based on the updated device list. After executing the wake-up response result, it switches back to the first channel for communication, avoiding the influence of the communication status of intermediate devices such as routing devices on the real-time performance of the synchronization operation in the wake-up process of the electronic device, improving the synchronization real-time performance during device wake-up, and improving the device wake-up efficiency. Description of the Drawings

[0010] In order to more clearly illustrate the technical solutions in the embodiments of this application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings, where:

[0011] Figure 1 is a schematic flowchart of the first embodiment of the device wake-up method of this application;

[0012] Figure 2 is a schematic flowchart of the second embodiment of the device wake-up method of this application;

[0013] Figure 3 is a schematic flowchart of the third embodiment of the device wake-up method of this application;

[0014] Figure 4 is a schematic flowchart of the fourth embodiment of the device wake-up method of this application;

[0015] Figure 5 is a schematic flowchart of the fifth embodiment of the device wake-up method of this application;

[0016] Figure 6 is a schematic flowchart of the sixth embodiment of the device wake-up method of this application;

[0017] Figure 7 is a schematic diagram of the dynamic update of the device list during the device wake-up process of this application;

[0018] Figure 8 is a schematic diagram of the dynamic update of the wake-up value in the device list during the device wake-up process of this application;

[0019] Figure 9 is a schematic structural diagram of an embodiment of the electronic device of the present application;

[0020] Figure 10 is a schematic structural diagram of another embodiment of the electronic device of the present application;

[0021] Figure 11 is a schematic structural diagram of an embodiment of the computer-readable storage medium of the present application;

[0022] Figure 12 is a schematic structural diagram of an embodiment of the computer program product of the present application. Detailed Embodiments

[0023] Hereinafter, embodiments of the technical solutions of the present application will be described in detail with reference to the accompanying drawings. The following embodiments are only used to illustrate the technical solutions of the present application more clearly, and thus are only examples and should not be used to limit the protection scope of the present application.

[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above accompanying drawing descriptions are intended to cover non-exclusive inclusion.

[0025] Referring to "embodiments" herein means that the specific features, structures or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The phrase appears in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0026] In the description of the embodiments of the present application, technical terms such as "first" and "second" are only used to distinguish different objects and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity, specific order or primary-secondary relationship of the indicated technical features. In the description of the embodiments of the present application, "a plurality of" means two or more unless otherwise specifically defined.

[0027] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.

[0028] In the description of the embodiments of the present application, the term "a plurality of" means two or more (including two). Similarly, "a plurality of groups" means two or more groups (including two groups), and "a plurality of pieces" means two or more pieces (including two pieces).

[0029] In the description of the embodiments of the present application, unless otherwise clearly defined and limited, technical terms such as "installation", "connection", "connection", "fixation", etc. should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or integrated; it can also be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two components or the interaction relationship between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific situations.

[0030] Refer to Figure 1 , Figure 1 which is a schematic flowchart of the first embodiment of the device wake-up method of the present application. This method is applied to an electronic device. It includes the following steps.

[0031] S11: When the electronic device is awakened, it switches from the first channel to the second channel to send and receive wake-up information. Among them, in the second channel, the electronic devices communicate directly with each other.

[0032] The awakening of the electronic device can be triggered by the front-end or by the wake-up information received from other electronic devices. The front-end awakening can include the awakening triggered by the electronic device monitoring a specific signal. For example, after the user shouts the wake-up word and the electronic device monitors and recognizes the wake-up word, the electronic device is awakened.

[0033] In the second channel, the electronic devices can directly communicate with each other through a transmission protocol without passing through a transit device such as a router for signal transmission. After the electronic device is awakened, all the awakened electronic devices switch to the second channel to perform a synchronous decision-making process for determining the wake-up response result. The electronic devices can also directly communicate with each other through means such as Bluetooth. The specific direct communication method is not limited here.

[0034] The transmission protocol used in the second channel may include the IEEE 802.11 protocol. The electronic device may use at least one of management frames, control frames, and data frames under the IEEE 802.11 protocol to send and receive the wake-up information in the second channel. In this embodiment, the electronic device directly performs device-to-device communication through IEEE 802.11 management frames. Since the management frames in the IEEE 802.11 protocol have a higher transmission priority than control frames or data frames, it has greater advantages for applications with high real-time requirements. In actual applications, it can be determined whether to use management frames, control frames, or data frames for communication according to actual real-time requirements, transmission performance, and transmission load, which is not limited here. Management frames are divided into sub-types such as Beacon frames, Probe Request, Probe Response, Authentication, Deauthentication, Announcement Traffic Indication Message (ATIM), and Action.

[0035] When using the IEEE 802.11 protocol for transmission, the electronic device has three connection and authentication states: 1. Initial state; unauthenticated and not yet connected; 2. Authenticated but not yet connected; 3. Authenticated and connected. And management frames are also divided into three levels. Level 1 frames can be transmitted in state 1; level 1 and 2 frames can be sent in state 2; and level 1, 2, and multi-level frames can be transmitted in state 3. It can be seen that level 1 frames have higher universality, so usually Probe Request and other level 1 frames are preferentially selected to implement applications with high real-time communication requirements such as unique wake-up.

[0036] When sending the wake-up information in the second channel, broadcast communication is adopted. This is due to the one-to-many communication characteristics of broadcasting, which can more efficiently complete cross-synchronization of data among multiple devices.

[0037] In one embodiment, the communication of the electronic device in the second channel is wireless communication, which may include at least one of Bluetooth, WIFI, and Zigbee.

[0038] S12: Update the device list of the electronic device based on the received wake-up information.

[0039] The wake-up information may include device identification information for indicating the electronic device that sends the wake-up information.

[0040] The wake-up information may further include a wake-up value, which is used to identify the wake-up priority of the electronic device. The larger the wake-up value, the higher the wake-up response priority of the electronic device. The wake-up value may include the characteristic energy or related parameters of the electronic device when detecting a wake-up signal. For example, the characteristic energy may include a wake-up energy value, which is the acoustic wave energy when the electronic device detects a wake-up word. When the acoustic wave energy is smaller, it indicates that the electronic device is farther from the user, and when the acoustic wave energy is larger, it indicates that the electronic device is closer to the user. The related parameters may include a face-to-face characteristic value, such as voice amplitude, etc.

[0041] The device list includes other electronic devices corresponding to the wake-up information received by the electronic device. It is used to update other electronic devices for which the electronic device needs to wait for wake-up information. This is to achieve device grouping based on the wake-up range, avoid devices that are difficult to wake up simultaneously at a long distance from entering the synchronization decision process, avoid unnecessary waiting time in the synchronization decision process of the wake-up process, and improve the real-time performance of the wake-up process.

[0042] After determining the device grouping, according to the wake-up values in the wake-up information sent by each electronic device, update the wake-up values corresponding to each electronic device in the device list, so as to achieve synchronous decision-making and determine the electronic devices that need to perform wake-up responses.

[0043] S14: Determine the wake-up response result based on the updated device list, and switch from the second channel to the first channel for communication after executing the wake-up response result.

[0044] After completing the update of the wake-up values in the device list, the synchronization between each electronic device is completed. Each electronic device determines its own wake-up response result and determines the electronic devices that need to perform wake-up responses. All electronic devices switch to the original first channel for communication after executing the corresponding wake-up response results.

[0045] In the technical solution of the embodiment of the present application, when the electronic device is woken up, the communication channel of the electronic device is switched from the first channel to the second channel. In the second channel, the electronic device can perform direct communication to complete the synchronization operation in the subsequent wake-up process. The electronic device determines its own wake-up response result according to the wake-up information of other electronic devices received, the device list, and the wake-up values of other electronic devices in the device list, and switches back to the first channel for communication after executing the wake-up response result, avoiding the influence of the communication status of intermediate devices such as routing devices on the real-time performance of the synchronization operation in the wake-up process of the electronic device, improving the synchronization real-time performance when the device is woken up, and improving the device wake-up efficiency.

[0046] In one embodiment, updating the device list of the electronic device based on the received wake-up information includes: updating the device identification information in the device list of the electronic device based on the device identification information in the received wake-up information.

[0047] Refer to Figure 2 , Figure 2 which is a schematic flowchart of the second embodiment of the device wake-up method of this application. This method is a further extension of the above embodiment. It includes the following steps.

[0048] S21: After the electronic device is awakened, increment by one the value of the consecutive number of times not awakened corresponding to the device identification information of all other electronic devices in the device list.

[0049] The device list includes the device identification information of other electronic devices. Each device identification information has a corresponding value of the consecutive number of times not awakened. The device identification information in the initial device list of the electronic device can be set by the user according to the actual situation. The device identification information can include the MAC address of the electronic device, etc.

[0050] When the electronic device is awakened, the value of the consecutive number of times not awakened corresponding to the device identification information in the device list is updated by incrementing it by one. Then, in the synchronization decision process, the device identification information in the device list is further updated according to the device identification information in the wake-up information received by the electronic device.

[0051] S22: When the device identification information of the received wake-up information exists in the device list, reset the value of the consecutive number of times not awakened of the electronic device corresponding to the wake-up information to the initial value of the consecutive number of times not awakened.

[0052] When the device identification information of the received wake-up information exists in the device list, it indicates that the electronic device corresponding to the device identification information still exists in the device group circle corresponding to the local electronic device, and it is necessary to perform the subsequent synchronization decision process during the wake-up process. Since the device identification information of this electronic device is received, the value of the consecutive number of times not awakened of this electronic device in the device list of the local electronic device is updated, and the value of the consecutive number of times not awakened is reset to the initial value of the consecutive number of times not awakened.

[0053] S23: When the device identification information of the received wake-up information does not exist in the device list, add the device identification information of the wake-up information to the device list, and set the value of the consecutive number of times not awakened of the device identification information of the wake-up information to the initial value of the consecutive number of times not awakened.

[0054] When the device identification information of the received wake-up information does not exist in the device list, it means that the electronic device corresponding to the device identification information is a newly added electronic device, and the device group circle of the local electronic device requires it to participate in the subsequent synchronization decision process during the wake-up process. Since the device identification information of the electronic device is received, the device list of the local electronic device is updated, the device identification information of the electronic device is added, and the number of consecutive times of not waking up of the electronic device is set to the initial number of consecutive times of not waking up.

[0055] Further, in one embodiment, after adding one to the number of consecutive times of not waking up the device identification information of all electronic devices in the device list, the method includes:

[0056] When the value of the consecutive number of times of not waking up is greater than a preset threshold, the device identification information corresponding to the value of the consecutive number of times of not waking up is deleted from the device list.

[0057] If the value of the consecutive number of times of not being awakened is greater than the preset threshold, it means that in the wake-up process of the consecutive preset threshold number of times, the electronic device has not received the wake-up information of the electronic device corresponding to the device identification information corresponding to the wake-up continuous value, then it is determined that the electronic device has left the wake-up range of the device group circle of the local electronic device or can no longer be awakened. At this time, the device identification information of the electronic device is removed from the list, thereby avoiding unnecessary waiting time of the local electronic device during the synchronization process and improving the wake-up efficiency.

[0058] The preset threshold can be set according to the specific situation. For example, if the adverse effect of failed equipment on real-time performance needs to be eliminated more quickly, the threshold can be appropriately reduced. If the misjudgment of equipment failure is to be avoided as much as possible, the threshold can be appropriately increased.

[0059] In the technical solution of the embodiment of the present application, in order to maintain the real-time nature of the wake-up process as much as possible and avoid frequent timeouts due to invalid waiting for failed devices (such as power outages, removal, etc.), corresponding strategies need to be adopted to promptly clean up failed devices in the device list. The present application sets a device list, which is equivalent to the synchronization range of the electronic device. Devices in the device list that have not received wake-up information for a consecutive number of times are determined to be invalid devices, and are removed from the list. In this way, the synchronization range of the electronic device is adjusted and the synchronization waiting time is optimized.

[0060] In one embodiment, updating a device list of an electronic device based on the received wake-up information includes: updating wake-up values ​​of other electronic devices in the device list based on the wake-up values ​​in the received wake-up information.

[0061] Reference Figure 3 , Figure 3 This is a flow chart of the third embodiment of the device wake-up method of the present application. The method is a further extension of the above embodiment. It includes the following steps.

[0062] S31: Compare the wake-up value in the received wake-up information with the local wake-up value, and update the local wake-up value based on the larger wake-up value.

[0063] In the unique wake-up process of multiple electronic devices, this application uses the wake-up value as a benchmark and decides the electronic device that finally needs to perform a wake-up response by synchronously updating it. The wake-up value is used to represent the wake-up response priority of the electronic device. The larger the wake-up value, the higher the wake-up response priority of the electronic device.

[0064] When the electronic device is woken up, after switching from the first channel to the second channel for sending and receiving wake-up information, the electronic device will update according to the wake-up value in the received wake-up information, and update the local wake-up value with the larger wake-up value. The initial local wake-up value is the self-wake-up value of the electronic device.

[0065] S32: Generate wake-up information based on the updated local wake-up value and send the wake-up information.

[0066] After each time the local wake-up value is updated upon receiving the wake-up information, generate wake-up information according to the updated local wake-up value.

[0067] The electronic device then broadcasts the wake-up information including the updated local wake-up value and the electronic device identification information to other electronic devices to complete the synchronization decision. The way the electronic device sends the wake-up information in the second channel is continuous cyclic broadcasting, and the wake-up information is updated during the cyclic broadcasting process to achieve device synchronization within the area range.

[0068] In one embodiment, the wake-up information includes device identification information for identifying the electronic device corresponding to the wake-up information. Updating the wake-up values of other electronic devices in the device list based on the wake-up value in the received wake-up information includes: updating the wake-up value corresponding to the device identification information of other electronic devices in the device list based on the wake-up value and the device identification information in the received wake-up information.

[0069] During the synchronization decision process, for the received wake-up information, based on the device identification information in the wake-up information, determine the same device identification information in the device list, and then update the wake-up value corresponding to the device identification information in the device list according to the wake-up value in the wake-up information.

[0070] Further, in one embodiment, after updating the wake-up values of other electronic devices, determining a wake-up response result based on the wake-up values of other electronic devices in the updated device list includes: when the wake-up values of all device identification information in the device list are the updated local wake-up value, and the self-wake-up value of the electronic device is greater than or equal to the updated local wake-up value, determining that the wake-up response result of the electronic device is to respond to the wake-up.

[0071] In the technical solution of the embodiment of the present application, by the electronic device broadcasting the updated local wake-up value and updating the wake-up values in the device list according to the wake-up values in the received wake-up information, the transfer of the maximum wake-up value between electronic devices is realized, the influence of packet loss in communication between some devices is eliminated as much as possible, and the situation where multiple devices finally respond to the wake-up due to not receiving a wake-up value greater than their own is reduced.

[0072] In one embodiment, after the first channel is switched to the second channel for sending and receiving wake-up information, it includes: comparing the wake-up value in the received wake-up information with the self-wake-up value of the electronic device, and when there is a wake-up value greater than the self-wake-up value, determining that the wake-up response result of the electronic device is not to respond to the wake-up.

[0073] When the electronic device determines that its own wake-up value is small according to the wake-up value in the received wake-up information, it means that there are already other electronic devices with a higher wake-up response priority than itself, so it is impossible for itself to be the electronic device for wake-up response, and then it is determined that its own wake-up response result is not to respond to the wake-up.

[0074] After determining that the wake-up response result is not to respond to the wake-up, the electronic device can continue to send wake-up information within the time limit of the wake-up timeout to improve the synchronization efficiency of other electronic devices, thereby improving the wake-up efficiency of the entire multi-device unique wake-up process.

[0075] Refer to Figure 4 , Figure 4 which is a schematic flowchart of the fourth embodiment of the device wake-up method of the present application. This method is a further extension of the above embodiment. It includes the following steps.

[0076] S41: When the electronic device is awakened, after switching from the first channel to the second channel for sending and receiving wake-up information, comparing the wake-up value in the received wake-up information with the local wake-up value, updating the local wake-up value based on the larger wake-up value, generating wake-up information based on the updated local wake-up value, and sending the wake-up information.

[0077] S42: After sending a wake-up message, if no response message is received within the corresponding wake-up timeout period, switch from the second channel to the first channel, and determine the wake-up response result of the electronic device according to the comparison result between the updated local wake-up value and the self-wake-up value of the electronic device.

[0078] In some cases, the technical solution of the present application can also achieve the synchronization of wake-up values through the pairwise transmission relationship between electronic devices, without the need to make a wake-up synchronization decision for devices through a device list.

[0079] The response message is a wake-up message broadcast by other electronic devices.

[0080] During the process of broadcasting the wake-up message, for each broadcast wake-up message, a corresponding wake-up timeout period is set. When the electronic device does not receive a response message within this wake-up timeout period, it switches to the first channel and ends the synchronization decision process of the wake-up process.

[0081] In an embodiment, the electronic device is also provided with a channel wake-up timeout period. When the time for the electronic device to switch to the second channel reaches the channel wake-up timeout period, the electronic device switches from the second channel to the first channel, ends the synchronization decision process of the wake-up process, and determines the wake-up response result of the electronic device according to the comparison result between the updated local wake-up value and the self-wake-up value of the electronic device.

[0082] For the timeout period corresponding to each of the above-mentioned broadcast wake-up messages and the channel wake-up timeout period, when the requirements of any timeout period are not met, the electronic device will switch to the first channel and end the synchronization process.

[0083] In the technical solution of the embodiment of the present application, the electronic device no longer maintains a device list. The electronic device broadcasts a wake-up message and simultaneously receives wake-up messages from other devices. As long as there is a received wake-up value higher than the wake-up value of the electronic device itself, the electronic device determines that its own wake-up response result is not to respond to the wake-up. At the same time, within the limit of the channel wake-up timeout period, continue to broadcast the maximum received wake-up value. Through the transmission relationship, the maximum wake-up value can cover all devices and achieve the wake-up synchronization of all electronic devices.

[0084] Refer to Figure 5 , Figure 5 which is a schematic flowchart of the fifth embodiment of the device wake-up method of the present application. This method is a further expansion of the above embodiment. It includes the following steps.

[0085] S51: When the electronic device is awakened, after switching from the first channel to the second channel, send and receive wake-up messages according to the wake-up timeout period.

[0086] S52: After sending a wake-up message, if no response message is received within the corresponding wake-up timeout period, switch from the second channel to the first channel.

[0087] After switching from the first channel to the second channel, the electronic device determines the duration of sending and receiving wake-up messages in the second channel according to the wake-up timeout period. The wake-up message is sent in a broadcast manner, and the received wake-up message is the wake-up message broadcast by other electronic devices. Each time a wake-up message is broadcast, it is determined whether a response message is received according to the wake-up timeout period corresponding to the wake-up message. When no response message is received within the wake-up timeout period, the electronic device switches back to the first channel to end the wake-up synchronization process.

[0088] After each broadcast of a wake-up message, it is possible to determine whether the wake-up response result of the electronic device is a response to the wake-up or whether the wake-up values corresponding to all device identification information in the device list of the electronic device are all the updated local wake-up values.

[0089] After each broadcast of a wake-up message, it is determined within its corresponding timeout period whether it is an electronic device that responds to the wake-up. In one embodiment, after sending and receiving wake-up messages according to the wake-up timeout period, it includes: after sending a wake-up message, within the corresponding wake-up timeout period, determine whether it is an electronic device whose wake-up response result is a response to the wake-up. If so, switch from the second channel to the first channel; if not, continue to send the wake-up message.

[0090] After each broadcast of a wake-up message, it is determined within its corresponding timeout period whether the wake-up values corresponding to all device identification information in the device list are all the updated local wake-up values. In one embodiment, after sending and receiving wake-up messages according to the wake-up timeout period, it includes: when a wake-up message is sent, within the corresponding wake-up timeout period, determine whether the wake-up values corresponding to all device identification information in its device list are all the updated local wake-up values. If so, also switch from the second channel to the first channel, and the wake-up synchronization process can end. If not, continue to send the wake-up message.

[0091] After each broadcast of a wake-up message, the above two determinations can be made. In one embodiment, after determining whether the wake-up response result of itself is a response to the wake-up, if not, it can continue to determine whether the wake-up values corresponding to all device identification information in its device list are all the updated local wake-up values. If so, switch from the second channel to the first channel. If not, continue to send the wake-up message.

[0092] In one embodiment, the electronic device is further provided with a channel wake-up timeout. When the time for the electronic device to switch to the second channel reaches the channel wake-up timeout, the electronic device switches from the second channel to the first channel, ends the synchronization decision process of the wake-up process, and determines the wake-up response result of the electronic device according to the comparison result between the updated local wake-up value and the self-wake-up value of the electronic device.

[0093] In the above embodiment, the electronic device ends the broadcast of the wake-up information while switching to the first channel.

[0094] Refer to Figure 6 , Figure 6 which is a schematic flow chart of the sixth embodiment of the device wake-up method of the present application. This method is a further expansion of the step of obtaining the wake-up timeout in the above embodiment. It includes the following steps.

[0095] S61: Obtain the round-trip time of the message between the electronic device and other electronic devices when the electronic device sends the wake-up information.

[0096] Taking the communication between device A and device B as an example, the round-trip time RTT represents the time from when device A sends a message to B until it receives the reply from device B indicating that the message has been received.

[0097] S62: For any other electronic device, use the current round-trip time and the previous round-trip time to perform weighted summation based on the first preset ratio to obtain the current first time, and the initial first time is the initial round-trip time.

[0098] Taking the broadcast communication between two devices as an example, when sending the wake-up information for the first time, the initial timeout is set to T0, and T0 = RTT0. RTT0 is the round-trip time between the two electronic devices. RTT0 is the initial round-trip time, so T0 is the initial first time.

[0099] When sending the wake-up information for the second time, RTT1 represents the round-trip time for the second time. T1 = (1 - α) * RTT0 + α * RTT1. Then T1 is the current first time, RTT1 is the current round-trip time, RTT0 is the previous round-trip time, and α is the first preset ratio for weighted summation. The current round-trip time corresponds to the round-trip time of the currently sent wake-up information, and the previous round-trip time corresponds to the round-trip time of the previously sent wake-up information.

[0100] If α is very close to 0, the new RTT has little impact on the wake-up timeout.

[0101] If α is very close to 1, the new RTT sample has a greater impact on the wake-up timeout.

[0102] Subsequently, by analogy, T2 = (1 - α) * RTT1 + α * RTT2, T3 = (1 - α) * RTT2 + α * RTT3, and so on. That is, Tn = (1 - α) * RTT(n - 1) + α * RTTn.

[0103] S63: Obtain the current second time by weighted summation of the difference between the current message round-trip time and the previous message round-trip time and the previous second time based on a second preset ratio. The initial second time is half of the initial message round-trip time.

[0104] Set the second time RTD, where RTD is the weighted average of the RTT deviation.

[0105] The initial second time is half of the initial message round-trip time, RTD0 = T0 / 2.

[0106] The current second time is the weighted summation of the difference between the current message round-trip time and the previous message round-trip time and the previous second time based on a second preset ratio. RTD1 = (1 - β) * RTD0 + β * (RTT1 - RTT0). When RTD1 is the current second time, RTT1 - RTT0 is the difference between the current message round-trip time and the previous message round-trip time, RTD0 is the previous second time, and β is the second preset ratio for weighted summation.

[0107] Subsequently, by analogy, RTDn = (1 - β) * RTD(n - 1) + β * (RTTn - RTT(n - 1)).

[0108] S64: Obtain the pending wake-up timeout time corresponding to the next wake-up message sent by adding half of the current first time and the current second time.

[0109] Add the current first time and the current second time to obtain the wake-up timeout time that the electronic device needs to wait for a reply message when sending the next wake-up message.

[0110] RTOn = Tn + (RTDn) / 2.

[0111] The initial wake-up timeout time is the sum of the initial first time and half of the initial second time. Then, the wake-up timeout time is updated according to the new message round-trip time to achieve decision synchronization based on the dynamic wake-up timeout time.

[0112] For each other electronic device, each time a new message round-trip time is obtained, a corresponding pending wake-up timeout time will be obtained.

[0113] S65: Determine the maximum obtained pending wake-up timeout time as the wake-up timeout time corresponding to the next wake-up message sent by the electronic device.

[0114] For communication between any two devices, there is a corresponding pending wake-up timeout for each pair of the local electronic device and other electronic devices. Each time the local electronic device sends a wake-up message and determines the message round-trip time after receiving a reply message, the maximum pending wake-up timeout among the corresponding pending wake-up timeouts of the local electronic device and each other electronic device is selected as the wake-up timeout corresponding to the wake-up message sent by the electronic device next time.

[0115] Under normal circumstances, setting a fixed timeout will affect the wake-up synchronization quality between devices. If the distance between devices is relatively close, all devices can quickly complete mutual communication and end the timeout in advance; if the devices are far apart and the timeout is set short, when the timeout ends, some devices have not yet completed mutual communication. In order to cover scenarios with a large number of devices and long distances, a relatively large timeout is usually set. The impact is that even if the number of devices is small and the distance is close, but if one of them is not awakened, it still has to wait until the timeout ends before making a wake-up decision / synchronization, which makes the user wake-up interaction process longer and affects the user experience.

[0116] Therefore, in this application, considering the communication status between devices, a dynamically updated timeout is set for each broadcast of the wake-up message during the broadcast process, so as to shorten the unnecessary timeout waiting time on the premise that all devices complete mutual communication.

[0117] The following are some specific embodiments to illustrate the above technical solutions of this application in more detail.

[0118] Refer to Figure 7 , Figure 7 which is a schematic diagram of the dynamic update of the device list during the device wake-up process of this application.

[0119] After the electronic device is awakened, in order to maintain the real-time nature of the unique wake-up decision as much as possible and avoid frequent timeouts due to waiting for invalid devices, this application removes the device identification information of the electronic device that has not received a wake-up message continuously from the device list, saving the waiting duration.

[0120] During the process of receiving wake-up messages, the device identification information and the value of the consecutive non-wake-up times in the device list are updated according to the device identification information in the wake-up message. If the device identification information of the wake-up message exists in the device list, it is determined that it is not a new device identification information; if the device identification information of the wake-up message does not exist in the device list, it is determined that it is a new device identification information. If the device identification information in the wake-up message already exists in the device list, its consecutive non-wake-up times value is reset. If the device identification information in the wake-up message does not exist in the device list, this device identification information is added to the device list and its consecutive non-wake-up times value is reset.

[0121] Refer toFigure 8 , Figure 8 This is a schematic diagram for dynamically updating the wake-up value in the device list during the device wake-up process of this application.

[0122] After the electronic device is awakened, while updating the device identification information and the number of consecutive non-awakened times in the device list, it will also update the wake-up value of the local electronic device and the wake-up value in the device list, so as to determine the electronic device that responds to the wake-up according to the maximum wake-up value.

[0123] The electronic device will update the local wake-up value according to the wake-up value in the received wake-up information, and broadcast the wake-up information according to the updated local wake-up value, so as to achieve the transmission of the maximum wake-up value.

[0124] When the electronic device detects that the wake-up value in the received wake-up information is greater than its own wake-up value, it determines that it does not respond to the wake-up.

[0125] When the electronic device detects that all the wake-up values in the device list are equal to the updated local wake-up value, and its own wake-up value is greater than or equal to the updated local wake-up value, it means that its own wake-up value is the largest and the response priority is the highest, and it determines that it responds to the wake-up.

[0126] During the process of switching to the second channel to broadcast the wake-up information, the electronic device will judge whether the wake-up timeout time is reached. If it is reached, it will switch to the first channel and end the broadcast. If it is not reached, it will continue with the subsequent judgment to determine whether the electronic device has completed the synchronization during the wake-up process.

[0127] The judgment of the timeout time here can include the judgment of whether a reply message is received within the wake-up timeout time after each broadcast of the wake-up information, and can also include the judgment of whether the time of the electronic device on the second channel exceeds the channel wake-up timeout time.

[0128] If the wake-up timeout time has not been reached, it will judge whether it is an electronic device whose response to the wake-up result is to respond to the wake-up. If so, it will switch to the first channel and end the broadcast. If not, it can continue to judge whether all the wake-up values corresponding to the device identification information in its own device list are the updated local wake-up values. If so, it will switch from the second channel to the first channel. If not, it will continue to send the wake-up information.

[0129] When it is determined that the electronic device does not receive a response message within the timeout period of a certain broadcast wake-up message, or when the time in the second channel reaches the channel wake-up timeout period, while switching to the first channel, it is also necessary to determine whether its own wake-up value is greater than or equal to the maximum wake-up value in the device list. In some scenarios, when the electronic device exceeds the predetermined timeout period, in order to avoid excessive waiting time, the electronic device is switched back to the first channel at this time. However, it cannot be determined at this time whether the electronic device has completed the synchronization decision process during the wake-up process with other devices. Therefore, in order to avoid the situation where no device responds to the wake-up, the own wake-up value of the electronic device is compared with the wake-up values in the updated device list. When the own wake-up value is greater than the maximum wake-up value in the device list, it is determined that the own wake-up response result is to respond to the wake-up.

[0130] Refer to Figure 9 , Figure 9 FIG. is a schematic structural diagram of an embodiment of the electronic device of the present application.

[0131] The electronic device includes a receiving module 110, a transmitting module 120, and a control module 130.

[0132] The receiving module 110 is used to receive wake-up messages.

[0133] The transmitting module 120 is used to transmit wake-up messages.

[0134] The control module 130 is used to switch the transmission channel of the wake-up message from the first channel to the second channel when the electronic device is awakened, update the device list of the electronic device based on the received wake-up message, determine the wake-up response result based on the updated device list, and switch from the second channel to the first channel after executing the wake-up response result.

[0135] As Figure 10 shown, Figure 10 FIG. is a schematic structural diagram of another embodiment of the electronic device of the present application.

[0136] The electronic device includes a processor 210 and a memory 220.

[0137] The processor 210 controls the operation of the electronic device. The processor 210 can also be referred to as a CPU (Central Processing Unit, central processing unit). The processor 210 may be an integrated circuit chip with the ability to process signal sequences. The processor 210 may also be a general-purpose processor, a digital signal sequence processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0138] The memory 220 stores instructions and program data required for the operation of the processor 210.

[0139] The processor 210 is used to execute instructions to implement the method provided by any one of the foregoing embodiments of the device wake-up method of the present application and possible combinations.

[0140] As Figure 11 shown, Figure 11 It is a schematic structural diagram of an embodiment of the computer-readable storage medium of the present application.

[0141] An embodiment of the readable storage medium of the present application includes a memory 310. The memory 310 stores program data, and when the program data is executed, it implements the method provided by any one of the embodiments of the device wake-up method of the present application and possible combinations.

[0142] The memory 310 may include media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program instructions, or it may also be a server storing the program instructions. The server can send the stored program instructions to other devices for operation, or it can also run the stored program instructions by itself.

[0143] As Figure 12 shown, Figure 12 It is a schematic structural diagram of an embodiment of the computer program product of the present application.

[0144] A computer program product 410 of an embodiment of the present application includes a computer program that can be executed by a processor to implement the method provided by any one of the embodiments of the device wake-up method of the present application and possible combinations.

[0145] In summary, when the electronic device is awakened, the communication channel of the electronic device is switched from the first channel to the second channel. In the second channel, the electronic device can perform direct communication to complete the synchronization operation in the subsequent wake-up process. The electronic device updates the device list according to the received wake-up information of other electronic devices, and finally determines its own wake-up response result according to the updated device list. After executing the wake-up response result, it switches back to the first channel for communication, avoiding the influence of the communication status of intermediate devices such as routing devices on the real-time performance of the synchronization operation in the electronic device wake-up process, improving the synchronization real-time performance during device wake-up, and improving the device wake-up efficiency.

[0146] During the wake-up synchronization decision-making process, in order to maintain the real-time nature of the wake-up process as much as possible and avoid frequent timeouts due to waiting for ineffective devices in vain, this application determines that devices that have not received wake-up information for a consecutive number of times in the device list are ineffective devices and removes them from the list, thereby reducing the waiting time during the synchronization decision-making process and improving the device wake-up efficiency.

[0147] During the wake-up synchronization decision-making process, the electronic device broadcasts the updated local wake-up value and updates the wake-up value in the device list according to the wake-up value in the received wake-up information, realizing the transfer of the maximum wake-up value between electronic devices, eliminating the influence of packet loss in communication between some devices as much as possible, reducing the occurrence of multiple devices responding to wake-up due to not receiving a wake-up value greater than their own, and realizing unique wake-up in the case of multiple devices.

[0148] During the wake-up synchronization decision-making process, this application dynamically updates the wake-up timeout time of the electronic device according to the communication status between devices. On the premise that all devices have completed mutual communication, it shortens the unnecessary timeout waiting time, improves the device wake-up efficiency, and enhances the user experience.

[0149] In several implementation manners provided by this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation manners described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0150] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this implementation manner.

[0151] In addition, the functional units in each implementation manner of this application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0152] If the integrated units in the above-mentioned other embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0153] The above are only the embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.

Claims

1. A device wake-up method, characterized in that: Applied to electronic equipment, the method comprises: When the electronic device is awakened, the first channel is switched to the second channel to send and receive the awakening information, wherein the electronic devices directly communicate with each other in the second channel; updating a device list of the electronic device based on the received wake-up information; A wake-up response result is determined based on the updated device list, and after executing the wake-up response result, communication is switched from the second channel to the first channel.

2. The method according to claim 1, characterized in that The updating of the device list of the electronic device based on the received wake-up information includes: The device identification information in the device list of the electronic device is updated based on the device identification information in the received wake-up information.

3. The method according to claim 1, characterized in that The updating of the device list of the electronic device based on the received wake-up information includes: The wake-up values ​​of other electronic devices in the device list are updated based on the wake-up values ​​in the received wake-up information.

4. The method according to claim 1, characterized in that: The updating of the device identification information in the device list of the electronic device based on the received device identification information in the wake-up information includes: When the electronic device is awakened, the number of consecutive times of not awakening corresponding to all the device identification information in the device list is increased by one; When the device identification information of the received wake-up information exists in the device list, resetting the value of the number of consecutive times of not waking up of the device identification information corresponding to the wake-up information to an initial value of the number of consecutive times of not waking up; When the device identification information of the received wake-up information does not exist in the device list, the device identification information corresponding to the wake-up information is added to the device list, and the non-awakening consecutive number value of the device identification information corresponding to the wake-up information is set to the initial non-awakening consecutive number value.

5. The method according to claim 4, characterized in that After adding one to the value of the number of consecutive times of not waking up corresponding to the device identification information of all electronic devices in the device list, the method includes: When the value of the consecutive number of times of not waking up is greater than a preset threshold, the device identification information corresponding to the value of the consecutive number of times of not waking up in the device list is deleted.

6. The method according to claim 1, characterized in that When the electronic device is awakened, after switching from the first channel to the second channel to send and receive the awakening information, the method includes: Compare the wake-up value in the received wake-up information with the local wake-up value, and update the local wake-up value based on the wake-up value with a larger value; The wake-up information is generated based on the updated local wake-up value, and the wake-up information is sent.

7. The method according to claim 6, characterized in that The wake-up information includes device identification information, and updating the wake-up values ​​of other electronic devices in the device list based on the received wake-up values ​​in the wake-up information includes: The wake-up value corresponding to the device identification information of the other electronic device in the device list is updated based on the wake-up value in the received wake-up information and the device identification information.

8. The method according to claim 7, characterized in that The determining the wake-up response result based on the updated device list includes: When the wake-up values ​​of all the device identification information in the device list are the updated local wake-up values, and the electronic device's own wake-up value is greater than or equal to the updated local wake-up value, it is determined that the wake-up response result of the electronic device is response wake-up.

9. The method according to claim 6, characterized in that After the switching from the first channel to the second channel to send and receive the wake-up information, the method includes: The wake-up value in the received wake-up information is compared with the wake-up value of the electronic device itself, and when there is a wake-up value greater than the wake-up value itself, it is determined that the wake-up response result of the electronic device is not responding to wake-up.

10. The method according to claim 1, characterized in that The method further comprises: When the electronic device is awakened, after switching from the first channel to the second channel to send and receive the wake-up information, compare the wake-up value in the received wake-up information with the local wake-up value, update the local wake-up value based on the wake-up value with a larger value, generate the wake-up information based on the updated local wake-up value, and send the wake-up information; When no reply message is received within the corresponding wake-up timeout period after the wake-up message is sent, the second channel is switched to the first channel, and the wake-up response result of the electronic device is determined based on the comparison result of the updated local wake-up value and the electronic device's own wake-up value.

11. The method according to claim 1, characterized in that: After the switching from the first channel to the second channel, the method includes: When the electronic device is awakened, after switching from the first channel to the second channel, the awakening information is sent and received according to the awakening timeout period; After sending the wake-up message, if no reply message is received within the corresponding wake-up timeout period, the second channel is switched to the first channel.

12. The method according to claim 11, characterized in that After sending and receiving the wake-up information according to the wake-up timeout period, the method includes: After sending the wake-up information, within the corresponding wake-up timeout period, determine whether the wake-up response result of the electronic device is a response wake-up or whether the wake-up values ​​corresponding to all the device identification information in the device list of the electronic device are all updated local wake-up values; If yes, switch from the second channel to the first channel; If not, continue to send the wake-up message.

13. The method according to claim 10 or 11, characterized in that: The step of obtaining the wake-up timeout period includes: Acquire a round trip time of a message between the electronic device and other electronic devices when the electronic device sends the wake-up information; For any of the other electronic devices, a current first time is obtained by weighted summing the current message round-trip time and the previous message round-trip time based on a first preset ratio, the initial first time is the initial message round-trip time, the current message round-trip time corresponds to the message round-trip time of the wake-up information currently sent, and the previous message round-trip time corresponds to the message round-trip time of the wake-up information sent last time; The current second time is obtained by weighted summing the difference between the current message round-trip time and the previous message round-trip time and the previous second time based on a second preset ratio, and the initial second time is half of the initial message round-trip time; The pending wake-up timeout time corresponding to the wake-up information to be sent next is obtained by adding the current first time and half of the current second time; The obtained maximum pending wake-up timeout period is determined as the wake-up timeout period corresponding to the wake-up information sent by the electronic device next time.

14. The method according to claim 1, characterized in that The electronic device uses at least one of a management frame, a control frame, and a data frame under the IEEE 802.11 protocol to send and receive the wake-up information on the second channel.

15. The method according to claim 1, characterized in that The electronic device performs wireless communication on the second channel in a manner including at least one of Bluetooth, WIFI, and Zigbee.

16. An electronic device, characterized in that: include: A receiving module, used for receiving wake-up information; a control module, configured to switch a transmission channel of wake-up information from a first channel to a second channel when the electronic device is awakened, update a device list of the electronic device based on the received wake-up information, determine a wake-up response result based on the updated device list, and switch the first channel from the second channel after executing the wake-up response result; The transmitting module is used to send the wake-up information.

17. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory is used to store program data, and the program data can be executed by the processor to implement the method according to any one of claims 1 to 15.

18. A computer-readable storage medium, characterized in that: Program data is stored and can be executed by a processor to implement the method according to any one of claims 1 to 15.

19. A computer program product, characterized in that The invention comprises a computer program which can be executed by a processor to implement the method according to any one of claims 1 to 15.