Method for waking up device in smart home system, storage medium and electronic device
By adjusting the wake-up time and decision algorithm based on the number of networked devices in the whole-house smart system, and selecting one device as the final wake-up device, the problem of waking up multiple devices simultaneously is solved, and the speed and reliability of device wake-up are improved.
Patent Information
- Application Number
- CN202211193059.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-09-28
AI Technical Summary
In smart home systems, existing technologies often result in multiple devices waking up simultaneously when a user wakes up a voice-activated device, affecting the reliability and speed of device wake-up.
By obtaining the number of network devices in the distributed networking system, matching the device wake-up duration according to the number of devices, controlling the device operation decision algorithm to select a device as the final wake-up device, and adjusting the decision window duration to optimize the wake-up process.
It enables rapid wake-up when the number of devices is small, and avoids multiple devices waking up simultaneously when the number is large, thus improving the speed and reliability of device wake-up.
Smart Images

Figure CN115766309B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, and particularly relates to a device nearby wake-up method in a whole-house smart system, a storage medium and an electronic device. BACKGROUND
[0002] With the continuous development of smart home technology, voice control is increasingly applied to people's home life, facilitating voice interaction between users and voice devices.
[0003] A distributed voice system can not only control a single voice device through voice dialogue, but also control other voice devices through a woken-up voice device. In the prior art, when a user wakes up the voice recognition function of a voice device through a wake-up instruction, multiple voice devices may be woken up, while the user actually only wants to wake up one voice device for voice interaction. SUMMARY
[0004] Therefore, it is necessary to provide a device nearby wake-up method in a whole-house smart system, an electronic device and a computer readable storage medium, which can improve the device wake-up speed when the number of devices is small and avoid multiple devices from being woken up at the same time as much as possible when the number of devices is large.
[0005] The first aspect of the embodiment of the present application discloses a device nearby wake-up method in a whole-house smart system, applied to a distributed networking system, comprising: obtaining the number of networking devices of the distributed networking system; obtaining a device wake-up duration matched with the number of networking devices according to the number of networking devices, wherein the larger the number of networking devices is, the longer the device wake-up duration matched with the number of networking devices is; in response to a wake-up instruction, controlling the devices in the distributed networking system to run a decision algorithm for device wake-up; and when the devices in the distributed networking system run the decision algorithm for device wake-up for the device wake-up duration, selecting a device as a final wake-up device from the distributed networking system according to the result of the decision algorithm.
[0006] Compared with the related art, the embodiment of the present application has at least the following advantages:
[0007] After receiving the wake-up instruction, the device of the distributed networking system runs a decision algorithm for device wake-up, and when the device wake-up duration is reached, a device is selected as the final wake-up device from the distributed networking system according to the result of the decision algorithm. Since the larger the number of networking devices is, the longer the device wake-up duration matching the number of networking devices is, the device wake-up duration is shorter when the number of devices is smaller, the distributed networking system can quickly reply to the wake-up instruction, thereby improving the wake-up speed; when the number of devices is larger, the device wake-up duration is longer, so that even if there are some devices with poor communication speed, the entire decision algorithm process can be completed within the longer device wake-up duration, avoiding the situation of multiple devices waking up at the same time, and improving the reliability of the device wake-up method in the smart home system.
[0008] In a possible implementation, the device wake-up duration matching the number of networking devices is obtained according to the number of networking devices, including: if the number of networking devices is less than or equal to a first preset threshold, reducing the value of the preset decision window duration, and taking the reduced preset decision window duration as the device wake-up duration; if the number of networking devices is greater than the first preset threshold, taking the preset decision window duration as the device wake-up duration.
[0009] By adopting the technical solution, it can be determined whether to reduce the preset decision window duration according to whether the number of networking devices is less than or equal to the first preset threshold, thereby determining the final device wake-up duration.
[0010] In a possible implementation, taking the preset decision window duration as the device wake-up duration includes: if the number of networking devices is less than or equal to a second preset threshold, taking the preset decision window duration as the device wake-up duration, wherein the second preset threshold is greater than the first preset threshold; if the number of networking devices is greater than the second preset threshold, increasing the value of the preset decision window duration, and taking the increased preset decision window duration as the device wake-up duration.
[0011] By adopting the technical solution, it can be determined whether to increase the preset decision window duration according to whether the number of networking devices is less than or equal to the second preset threshold, thereby further limiting the way of obtaining the device wake-up duration, so that the finally obtained device wake-up duration is more accurate.
[0012] In a possible implementation, the method further includes: if the number of networking devices is less than a third preset threshold, increasing the value of the preset decision window duration by a first duration adjustment strategy, wherein the third preset threshold is greater than the second preset threshold; if the number of networking devices is greater than or equal to the third preset threshold, increasing the value of the preset decision window duration by a second duration adjustment strategy, wherein the value of the preset decision window duration increased by the first duration adjustment strategy is less than the value of the preset decision window duration increased by the second duration adjustment strategy.
[0013] By adopting the technical scheme, whether the preset decision window duration is further increased can be determined according to whether the number of networking devices is less than or equal to the third preset threshold value, so that the acquisition manner of the device wake-up duration can be further limited, and the finally obtained device wake-up duration is more accurate.
[0014] In a possible implementation, the value of the preset decision window duration is increased by the first duration adjustment strategy, including: the preset decision window duration is increased according to the following formula: T1=T0*(1+count / 2*M); wherein, T1 is the preset decision window duration after being increased by the first duration adjustment strategy, T0 is the preset decision window duration, count is the number of networking devices, and M is the third preset threshold value.
[0015] By adopting the technical scheme, the value of the preset decision window duration can be increased by the first duration adjustment strategy.
[0016] In a possible implementation, the value of the preset decision window duration is increased by the second duration adjustment strategy, including: the preset decision window duration is increased according to the following formula: T2=T0*N; wherein, T2 is the preset decision window duration after being increased by the second duration adjustment strategy, T0 is the preset decision window duration, and N is a constant greater than or equal to 1.5.
[0017] By adopting the technical scheme, the value of the preset decision window duration can be increased by the second duration adjustment strategy, and it can be ensured that the value of the preset decision window duration after being increased by the first duration adjustment strategy is less than the value of the preset decision window duration after being increased by the second duration adjustment strategy.
[0018] In a possible implementation, the value of the preset decision window duration is decreased, including: the preset decision window duration is decreased according to the following formula: T3=T0*P; wherein, T3 is the preset decision window duration after being decreased, T0 is the preset decision window duration, and P is a constant less than 1.
[0019] By adopting the technical scheme, the preset decision window duration can be decreased to obtain the device wake-up duration.
[0020] In a possible implementation, the number of networking devices of the distributed networking system is obtained, including: all devices in the distributed networking system are controlled to send networking information to other devices; a device in the distributed networking system is selected as a computing device at random, the number of received networking information of the computing device is obtained, and the sum of the number of received networking information and the value 1 is taken as the number of networking devices.
[0021] By adopting the technical scheme, the number of networking devices of the distributed networking system can be determined according to the number of received networking information.
[0022] In a second aspect, an embodiment of the present application provides a storage medium, comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device is caused to execute the device nearby wake-up method in a whole-house smart system as in the first aspect.
[0023] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the device nearby wake-up method in a whole-house smart system as in the first aspect.
[0024] It can be understood that the storage medium of the second aspect and the electronic device of the third aspect provided above both correspond to the method of the first aspect, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be described here again. BRIEF DESCRIPTION OF DRAWINGS
[0025] Figure 1 A flowchart of the device nearby wake-up method in a whole-house smart system provided by an embodiment of the present application;
[0026] Figure 2 A flowchart of the device nearby wake-up method in a whole-house smart system provided by an embodiment of the present application;
[0027] Figure 3 A schematic diagram of the device nearby wake-up method in a whole-house smart system provided by an embodiment of the present application;
[0028] Figure 4 A flowchart of the device nearby wake-up method in a whole-house smart system provided by an embodiment of the present application;
[0029] Figure 5 A structural schematic diagram of a possible electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application will be described in detail below in combination with the drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0031] In the following description, many specific details are set forth in order to fully understand the present application, and the described embodiments are only part of the embodiments of the present application, but not all the embodiments.
[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for describing particular embodiments only and is not intended to be limiting of the application.
[0033] It is further noted that the terms "comprise", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0034] "at least one" means one or more, "multiple" means two or more than two. "And / or", which describes the relationship between the associated objects, means that there can be three kinds of relationships, for example, A and / or B can represent: A exists alone, A and B exist together, B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth" and the like (if any) in the specification and claims of the present application and the drawings are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0035] In the embodiments of the present application, the words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design presented as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Rather, the use of "exemplary" or "for example" is intended to present concepts in a concrete manner.
[0036] For the convenience of understanding, the descriptions of some concepts related to the embodiments of the present application are given as examples for reference.
[0037] The distributed voice system is a loosely coupled system composed of multiple devices interconnected by communication lines, with high cohesion and transparency. The device in the present application is built-in microphone or microphone array, and the user can interact with the device in the near field or the far field with a certain distance. The device includes smart speaker, smart TV, smart washing machine, smart phone, etc., which are not described one by one here.
[0038] Please refer to Figure 1 The flowchart of the device nearby wake-up method in the whole-house intelligent system provided by an embodiment of the present application includes the following steps:
[0039] Step S101: Obtain the number of networking devices of the distributed networking system.
[0040] In some embodiments, the number of networking devices can be obtained by the following way: controlling all devices in the distributed networking system to send networking information to other devices; selecting any one device in the distributed networking system as a computing device, obtaining the number of networking information received by the computing device, and taking the sum of the number of networking information received and the value 1 as the number of networking devices.
[0041] For the convenience of understanding, the following will specifically illustrate how the number of networking devices is obtained in the present embodiment:
[0042] Suppose that there are six devices in the same local area network, which are S1 to S6, and S1 to S6 all send networking information to other devices (for example, S1 sends networking information to S2 to S6, S2 sends networking information to S1, S3 to S6, …), and any one device is selected from S1 to S6 (suppose S1 is selected), since S1 receives the networking information sent by S2 to S6, the number of networking information received by S1 is 5, and the number of networking devices can be calculated as 6. If there are some devices that have not successfully sent networking information (suppose S6 has not sent networking information to S1 to S5), then the number of networking information received by S1 is 4, and the number of networking devices can be calculated as 5.
[0043] Step S102: Obtain the device wake-up duration matched with the number of networking devices according to the number of networking devices.
[0044] In some embodiments, the larger the number of networking devices is, the longer the device wake-up duration matched with the number of networking devices is. It is worth mentioning that, since in the process of device wake-up, each two devices will send messages to each other, when the number of networking devices is small, the number of messages in the local area network is small, and the propagation speed is fast, so the device can complete the decision algorithm in a short time, thus shortening the device wake-up duration can make the distributed networking system quickly respond to the wake-up instruction, thereby improving the wake-up speed; when the number of networking devices is large, the number of messages in the local area network increases sharply, and there may be a delay in the communication between some devices, which causes some devices to need a long time to complete the decision algorithm, thus extending the device wake-up duration can ensure that all devices in the distributed networking system can complete the decision algorithm as much as possible, avoiding the occurrence of the situation that “some devices decide to be woken up because they have not received the wake-up information of other devices, while other devices also decide that one device is woken up”, that is, avoiding the occurrence of the situation that multiple devices are woken up at the same time.
[0045] Step S103: In response to the wake-up instruction, control the devices in the distributed networking system to run the decision algorithm for device wake-up.
[0046] In some embodiments, the wake-up instruction is issued by a user, which can be a voice instruction such as "Hello, smart device" sent by the user. The content of the voice instruction can be set according to the actual needs of the user, and the present embodiment does not make specific limitations thereon.
[0047] Step S104: running, by the devices in the distributed networking system, a decision algorithm for device wake-up for a device wake-up duration, and selecting a device as a final wake-up device from the distributed networking system according to a result of the decision algorithm.
[0048] For ease of understanding, how the present embodiment selects a device as a final wake-up device from the distributed networking system will be specifically described below:
[0049] Suppose that there are three devices in the distributed networking system, numbered S1, S2, and S3, and each device will send its own wake-up information to other devices after receiving a wake-up instruction, i.e., S1 will send its own wake-up information to S2 and S3, S2 will send its own wake-up information to S1 and S3, and S3 will send its own wake-up information to S1 and S2. That is, the wake-up information of all other devices will exist in each of the three devices S1, S2, and S3, and the above-mentioned decision algorithm specifically includes that S1, S2, and S3 make an algorithm decision on all the wake-up information currently possessed by themselves, and if the wake-up condition of the device itself is optimal, the device will be woken up. It can be understood that, since the wake-up information possessed by each device in the distributed networking system is the same, the result of the algorithm decision will also be the same, thereby ensuring that only one device in the distributed networking system will be woken up.
[0050] Specifically, the wake-up information in the present embodiment can be an audio straight mix ratio and / or an audio angle received by the device.
[0051] Compared with the related art, the present embodiment has at least the following advantages: after receiving a wake-up instruction, the devices in the distributed networking system run a decision algorithm for device wake-up for a device wake-up duration, and a device is selected as a final wake-up device from the distributed networking system according to a result of the decision algorithm. Since the greater the number of networking devices is, the longer the device wake-up duration matching the number of networking devices is, the shorter the device wake-up duration is when the number of devices is small, the distributed networking system can quickly reply to the wake-up instruction, thereby improving the wake-up speed; when the number of devices is large, the device wake-up duration is long, so that even if there are some devices with poor communication speed, the entire decision algorithm process can be completed within the long device wake-up duration, avoiding the situation of multiple devices being woken up at the same time, and improving the reliability of the device near-wake-up method in the whole-house intelligent system.
[0052] Please refer to Figure 2The flowchart of the device nearby wake-up method in the whole-house intelligent system provided by an embodiment of the present application is described below. This embodiment is an example of the foregoing embodiment, and specifically describes how to obtain the device wake-up duration according to the number of networking devices, including the following steps:
[0053] Step S201: Obtain the number of networking devices of the distributed networking system.
[0054] Step S202: Determine whether the number of networking devices is less than or equal to a first preset threshold. If the number of networking devices is less than or equal to the first preset threshold, perform step S203; otherwise, perform step S204.
[0055] In some embodiments, the value of the first preset threshold is 3. It can be understood that the value of the first preset threshold is not specifically limited in this embodiment and can be set according to actual needs.
[0056] Step S203: Reduce the value of the preset decision window duration, and use the reduced preset decision window duration as the device wake-up duration.
[0057] In some embodiments, the value of the preset decision window duration is greater than or equal to 300 milliseconds and less than or equal to 500 milliseconds. The preset decision window duration in this value range can ensure that all devices can complete the decision algorithm under normal communication speed and can also avoid long user waiting time.
[0058] In some embodiments, the value of the preset decision window can be reduced by the following formula: T3 = T0 * P; where T3 is the reduced preset decision window duration, T0 is the preset decision window duration, and P is a constant less than 1.
[0059] Preferably, the value of P is 0.5. With this setting, the time required for device wake-up can be shortened as much as possible under the premise that all devices can complete the decision algorithm.
[0060] Step S204: Use the preset decision window duration as the device wake-up duration.
[0061] Step S205: In response to the wake-up instruction, control the devices in the distributed networking system to run the decision algorithm for device wake-up.
[0062] Step S206: When the decision algorithm for device wake-up run by the devices in the distributed networking system has lasted for the device wake-up duration, select a device from the distributed networking system as the final wake-up device according to the result of the decision algorithm.
[0063] Steps S201, S205 to S206 of this embodiment are similar to steps S101, S103 to S104 of the foregoing embodiment. To avoid repetition, they are not described here again.
[0064] Compared with the related art, the embodiments of the present application have at least the following advantages: after receiving the wake-up instruction, the device of the distributed networking system runs the decision algorithm for device wake-up, and selects a device from the distributed networking system as the final wake-up device according to the result of the decision algorithm within the device wake-up duration. Since the larger the number of networking devices is, the longer the device wake-up duration matching the number of networking devices is, the device wake-up duration is shorter when the number of devices is smaller, the distributed networking system can quickly reply to the wake-up instruction, thereby improving the wake-up speed; when the number of devices is larger, the device wake-up duration is longer, so that even if there are some devices with poor communication speed, the entire decision algorithm process can be completed within the longer device wake-up duration, avoiding the situation of multiple devices waking up at the same time, and improving the reliability of the device nearby wake-up method in the whole-house intelligent system.
[0065] Please refer to Figure 3 The flowchart of the device nearby wake-up method in the whole-house intelligent system provided by an embodiment of the present application is further improved on the basis of the foregoing embodiment, and the main improvement lies in: further limiting how to obtain the device wake-up duration when the number of networking devices is different, including the following steps:
[0066] Step S301: Obtain the number of networking devices of the distributed networking system.
[0067] Step S302: Determine whether the number of networking devices is less than or equal to a first preset threshold, if the number of networking devices is less than or equal to the first preset threshold, execute step S303; otherwise, execute step S304.
[0068] Step S303: Reduce the value of the preset decision window duration, and take the reduced preset decision window duration as the device wake-up duration.
[0069] Step S304: Determine whether the number of networking devices is less than or equal to a second preset threshold, if the number of networking devices is less than or equal to the second preset threshold, execute step S305; otherwise, execute step S306.
[0070] In some embodiments, the second preset threshold is greater than the first preset threshold. Specifically, the value of the second preset threshold is preferably 6. It can be understood that the value of the second preset threshold is not specifically limited in this embodiment, and can be set according to actual needs, as long as it is greater than the first preset threshold.
[0071] Step S305: Take the preset decision window duration as the device wake-up duration.
[0072] Step S306: Increase the value of the preset decision window duration, and take the increased preset decision window duration as the device wake-up duration.
[0073] In some embodiments, the value of the preset decision window length can be increased by 100 milliseconds to 300 milliseconds, or can be increased to 1.2 times of the original value, and how to increase the value of the preset decision window length can be set according to actual needs.
[0074] Step S307: In response to the wake-up instruction, controlling the device in the distributed networking system to run the decision algorithm for device wake-up.
[0075] Step S308: When the decision algorithm for device wake-up runs for the device wake-up length, a device is selected as the final wake-up device from the distributed networking system according to the result of the decision algorithm.
[0076] The steps S301 to S303, S307 and S308 of the embodiment are similar to the steps S201 to S203, S205 and S206 of the foregoing embodiment, and are not described here to avoid repetition.
[0077] Compared with the related art, the embodiment of the present application has at least the following advantages: after receiving the wake-up instruction, when the decision algorithm for device wake-up runs for the device wake-up length, a device is selected as the final wake-up device from the distributed networking system according to the result of the decision algorithm. Since the larger the number of networking devices is, the longer the device wake-up length matching the number of networking devices is, the shorter the device wake-up length is when the number of devices is small, the distributed networking system can quickly respond to the wake-up instruction, thereby improving the wake-up speed; when the number of devices is large, the device wake-up length is long, so that even if there are some devices with poor communication speed, the entire decision algorithm process can be completed within the long device wake-up length, avoiding the situation of multiple devices waking up at the same time, and improving the reliability of the device nearby wake-up method in the whole-house intelligent system.
[0078] For reference Figure 4 The flowchart of the device nearby wake-up method in the whole-house intelligent system provided by an embodiment of the present application is a further improvement of the foregoing embodiment, and mainly improves how to obtain the device wake-up length when the number of networking devices is different, including the following steps:
[0079] Step S401: Obtain the number of networking devices of the distributed networking system.
[0080] Step S402: Determine whether the number of networking devices is less than or equal to a first preset threshold, if the number of networking devices is less than or equal to the first preset threshold, execute step S403; otherwise, execute step S404.
[0081] Step S403: reduce the value of the preset decision window length, and take the reduced preset decision window length as the device wake-up length.
[0082] Step S404: determine whether the number of networking devices is less than or equal to a second preset threshold, if the number of networking devices is less than or equal to the second preset threshold, execute step S405; otherwise, execute step S406.
[0083] Step S405: take the preset decision window length as the device wake-up length.
[0084] Step S406: determine whether the number of networking devices is less than a third preset threshold, if the number of networking devices is less than the third preset threshold, execute step S407; otherwise, execute step S408.
[0085] In some embodiments, the third preset threshold is greater than the second preset threshold. Specifically, the value of the third preset threshold is preferably 12. It can be understood that the value of the third preset threshold is not specifically limited in this embodiment, and can be set according to actual needs, as long as it is greater than the second preset threshold.
[0086] Step S407: increase the value of the preset decision window length by the first length adjustment strategy, and take the adjusted preset decision window length as the device wake-up length.
[0087] In some embodiments, the value of the preset decision window length increased by the first length adjustment strategy is specifically increased according to the following formula: T1=T0*(1+count / 2*M); wherein T1 is the preset decision window length increased by the first length adjustment strategy, T0 is the preset decision window length, count is the number of networking devices, and M is the third preset threshold.
[0088] Step S408: increase the value of the preset decision window length by the second length adjustment strategy, and take the adjusted preset decision window length as the device wake-up length.
[0089] In some embodiments, the value of the preset decision window length increased by the first length adjustment strategy is less than the value of the preset decision window length increased by the second length adjustment strategy. The value of the preset decision window length increased by the second length adjustment strategy is specifically increased according to the following formula: T2=T0*N; wherein T2 is the preset decision window length increased by the second length adjustment strategy, T0 is the preset decision window length, and N is a constant greater than or equal to 1.5.
[0090] Step S409: in response to the wake-up instruction, control the devices in the distributed networking system to run the decision algorithm for device wake-up.
[0091] Step S410: running the decision algorithm for device wake-up in the devices in the distributed networking system, when the device wake-up duration has elapsed, selecting a device as the final wake-up device from the distributed networking system according to the result of the decision algorithm.
[0092] Steps S401 to S405, S409 and S410 of the embodiment are similar to steps S301 to S305, S307 and S308 of the foregoing embodiment, and are not repeated here to avoid repetition.
[0093] For ease of understanding, the entire process of device wake-up of the embodiment is specifically described as follows:
[0094] (1) Assuming that the distributed voice system has 10 devices, numbered M1 to M10, the first preset threshold is 3, the second preset threshold is 6, the third preset threshold is 12, and the preset decision window duration is T0.
[0095] (2) M1 to M10 all send networking information to other devices, and M2 is selected from M1 to M10, and it is recorded that M2 receives the networking information of M3 to M10, indicating that M2 to M10 networking is successful, and the current number of devices is recorded as 9.
[0096] (3) It is judged that the number of devices 9 is greater than the second preset threshold and less than the third preset threshold, and the preset decision window duration is adjusted according to the following formula: T1 = T0*(1+count / 2*M); wherein T1 is the adjusted preset decision window duration, T0 is the preset decision window duration, count is the number of networking devices, and M is the third preset threshold. The calculation result is T1 = 11 / 8T0.
[0097] (4) The device wake-up duration is adjusted to T1.
[0098] (5) In response to the wake-up instruction sent by the user, M2 to M10 will all run the decision algorithm for device wake-up, and send their own wake-up information to other devices. It is judged whether the device wake-up duration has elapsed after M2 to M10 run the decision algorithm for device wake-up, and after the device wake-up duration has elapsed, M2 to M10 will all receive each other's wake-up information. M2 to M10 make an algorithm decision on all the wake-up information currently possessed by themselves, and if it is judged that the wake-up condition of M5 is optimal, M5 is woken up.
[0099] Compared with the related art, the embodiments of the present application have at least the following advantages: after receiving the wake-up instruction, the device of the distributed networking system runs the decision algorithm for device wake-up, and selects a device from the distributed networking system as the final wake-up device according to the result of the decision algorithm when the device wake-up duration time elapses. Since the larger the number of networking devices is, the longer the device wake-up duration time matching the number of networking devices is, the distributed networking system can quickly reply to the wake-up instruction when the number of devices is small, so as to improve the wake-up speed; when the number of devices is large, the device wake-up duration time is long, so that even if there are some devices with poor communication speed, the entire decision algorithm process can be completed within the long device wake-up duration time, avoiding the situation of multiple devices waking up at the same time, and improving the reliability of the device wake-up method in the smart home system.
[0100] Please refer to Figure 5 , the hardware structure schematic diagram of the electronic device 1000 provided by the embodiments of the present application. As shown in Figure 5 , the electronic device 1000 can include a processor 1001, a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, which can be used to implement the method of waking up the device in the electronic device 1000 as Figures 1 to 4 .
[0101] It can be understood that the structure illustrated in the embodiments does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 can include more or fewer components than the illustration, or combine certain components, or split certain components, or different component arrangements.
[0102] The processor 1001 can include one or more processing units, for example: the processor 1001 can include an application processor (application processor, AP), a modem, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processing unit (neural-network processing unit, NPU) and the like. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0103] The processor 1001 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory can hold instructions or data that the processor 1001 has just used or is using repeatedly. If the processor 1001 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 1001, thus improving the efficiency of the system.
[0104] In some embodiments, the processor 1001 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0105] In some embodiments, the memory 1002 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash storage device, or other volatile solid-state storage device.
[0106] The embodiments also provide a storage medium having computer instructions stored therein, when the instructions are run on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method of waking up the device in the above-mentioned embodiments.
[0107] Among them, the electronic device and the computer storage medium provided by the embodiments are used to execute the corresponding methods provided above, so the beneficial effects they can achieve can refer to the beneficial effects in the corresponding methods provided above, which will not be repeated here.
[0108] In practical applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0109] In several embodiments provided in the present application, the disclosed apparatus and method can be implemented in other manners. For example, the division of the apparatus embodiments is merely illustrative, and the division of the modules or units can be changed according to actual needs. For example, one or more units can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, apparatuses or units, and can be in electrical, mechanical or other forms.
[0110] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or multiple physical units, i.e., can be located in one place or distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments.
[0111] In addition, each functional unit in the embodiments of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0112] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or substantially, or all or part of the technical solutions, can be embodied in the form of a software product. The software product is stored in a storage medium, and includes several instructions for causing an apparatus (which can be a single chip, a chip, etc.) or a processor to perform all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various other media that can store program codes.
[0113] The above description is merely a specific implementation of the present application, and the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be covered within the protection scope of the present application.
Claims
1. A method for local wake-up of devices in a home intelligence system, characterized in that, The method for waking up devices in a distributed networking system in a smart home system comprises the following steps: Obtaining the number of networking devices in the distributed networking system, specifically comprising: controlling all devices in the distributed networking system to send networking information to other devices; selecting a device from the distributed networking system as a computing device, obtaining the number of networking information received by the computing device, and taking the sum of the number of networking information received and the value 1 as the number of networking devices; obtaining the device wake-up duration matched with the number of the networking devices according to the number of the networking devices, wherein the larger the number of the networking devices is, the longer the device wake-up duration matched with the number of the networking devices is; and determining the device wake-up duration matched with the number of the networking devices according to that the number of the networking devices is in different levels; wherein the step of obtaining the device wake-up duration matched with the number of the networking devices according to the number of the networking devices specifically comprises: if the number of the networking devices is less than or equal to a first preset threshold, reducing the value of the preset decision window duration, and taking the reduced preset decision window duration as the device wake-up duration; if the number of the networking devices is greater than the first preset threshold, taking the preset decision window duration as the device wake-up duration, which specifically comprises: if the number of the networking devices is less than or equal to a second preset threshold, taking the preset decision window duration as the device wake-up duration, wherein the second preset threshold is greater than the first preset threshold; if the number of the networking devices is greater than the second preset threshold, increasing the value of the preset decision window duration, and taking the increased preset decision window duration as the device wake-up duration; if the number of the networking devices is less than a third preset threshold, increasing the value of the preset decision window duration by a first duration adjustment strategy, wherein the third preset threshold is greater than the second preset threshold; if the number of the networking devices is greater than or equal to the third preset threshold, increasing the value of the preset decision window duration by a second duration adjustment strategy; wherein the value of the preset decision window duration increased by the first duration adjustment strategy is less than the value of the preset decision window duration increased by the second duration adjustment strategy; the step of increasing the value of the preset decision window duration by the first duration adjustment strategy specifically comprises: increasing the preset decision window duration according to the following formula: ; wherein T1 is the preset decision window duration increased by the first duration adjustment strategy, T0 is the preset decision window duration, count is the number of the networking devices, and M is the third preset threshold; the step of increasing the value of the preset decision window duration by the second duration adjustment strategy comprises: increasing the preset decision window duration according to the following formula: ; wherein T2 is the preset decision window duration increased by the second duration adjustment strategy, T0 is the preset decision window duration, and N is a constant greater than or equal to 1.5; the step of reducing the value of the preset decision window duration comprises: reducing the preset decision window duration according to the following formula: ; wherein T3 is the reduced preset decision window duration, T0 is the preset decision window duration, and P is a constant less than 1. In response to a wake-up instruction, controlling the devices in the distributed networking system to run a decision algorithm for device wake-up; When the decision algorithm for device wake-up runs for the device wake-up duration, selecting a device from the distributed networking system as a final wake-up device according to the result of the decision algorithm.
2. A storage medium, characterized by The electronic device comprises a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the method for waking up devices in a smart home system as claimed in claim 1.
3. An electronic device, comprising: The electronic device comprises a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the method for waking up devices in a smart home system as claimed in claim 1.
Citation Information
Patent Citations
Networking method, electronic equipment and storage medium
CN112187598A
Equipment response control method, equipment response control device and storage medium
CN113891440A
Low-power transmission line data transmission method and terminal
CN114051033A
Data processing method, device, storage medium and system
CN115086099A