Equipment awakening method and device, electronic equipment and medium

By building a device cost chart in a smart home, recording the time cost and target delay between devices, the problem of multiple smart home appliances awakening at the same time is solved, and a better user experience is achieved.

CN120050753APending Publication Date: 2025-05-27GD MIDEA AIR CONDITIONING EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311587969.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

In smart home scenarios, multiple smart home appliances use the same wake-up method, resulting in a problem of responding to each other and poor user experience.

Method used

By constructing a device cost chart in the target area, recording the time cost and target delay between each device, the final answering device is determined after receiving the target wake-up instruction.

Benefits of technology

It realizes the rapid selection of response devices for target wake-up instructions, improves user experience, and accurately determines the fastest response device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050753A_ABST
    Figure CN120050753A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment awakening method and device, electronic equipment and a medium, the method is applied to first equipment, the first equipment is located in a target area, and the method comprises the steps that after a target awakening instruction is received, a first timestamp of receiving the target awakening instruction is determined; if a wake-up response instruction sent by at least one second device is received within a preset duration, determining a time cost between the first device and each second device based on a device cost graph corresponding to the target area, the wake-up response instruction comprises a second timestamp recorded when a corresponding second device receives the target wake-up instruction; and based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device, determining a final response device of the target wake-up instruction. According to the scheme, the device with the fastest response can be accurately determined, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a device wake-up method, device, electronic device and medium. Background Art

[0002] In smart home scenarios, more and more smart home appliances are being used. In order to obtain a better user experience, smart home appliances of the same brand are often used in the same family. When in use, due to the same wake-up method, such as using the same wake-up word, it is common to wake up multiple devices at the same time, resulting in a poor user experience. Summary of the invention

[0003] In view of the above technical problems in the related art, the embodiments of the present invention provide a device wake-up method, apparatus, electronic device and medium to quickly screen out response devices for target wake-up commands and improve user experience.

[0004] In a first aspect, an embodiment of the present invention provides a device wake-up method, which is applied to a first device, where the first device is located in a target area, and includes:

[0005] After receiving the target wake-up instruction, determining a first timestamp of receiving the target wake-up instruction;

[0006] If a wake-up response instruction sent by at least one second device is received within a preset time length, determining the time cost between the first device and each second device based on the device cost map corresponding to the target area, wherein the wake-up response instruction includes a second timestamp recorded when the corresponding second device receives the target wake-up instruction;

[0007] A final response device of the target wake-up instruction is determined based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device.

[0008] In some implementations, after receiving the target wake-up instruction, the method further includes:

[0009] Determine, from the device cost graph, a target delay for N devices connected to the first device and a target delay for the first device to communicate with each of the N devices, to obtain a total of N target delays, where N is a positive integer;

[0010] The preset duration is determined based on the N target delays.

[0011] In some implementations, determining the preset duration based on the N target delays includes:

[0012] Filter out the shortest target delay from the N target delays;

[0013] The preset duration is determined based on the shortest target delay and the network fluctuation compensation corresponding to the first device.

[0014] In some implementations, the device cost map is constructed by the following steps:

[0015] Each device in the target area that can respond to the target wake-up instruction is used as an initiating device to perform the cost map construction step:

[0016] If the initiating device detects a cost estimation trigger instruction, it sends a cost estimation request message, and determines the time cost between the initiating device and M responding devices that respond to the cost estimation request message, where M is a positive integer;

[0017] Determine a target delay between the initiating device and the M responding devices based on a time cost between the initiating device and the M responding devices;

[0018] The device cost graph is constructed based on the time cost between the initiating device and the M response devices and the target delay between the initiating device and the M response devices.

[0019] In some implementations, determining the time cost between the initiating device and the M responding devices that respond to the cost estimation request message includes:

[0020] Obtaining the first time of sending the cost estimation request message recorded by the initiating device;

[0021] For each answering device, based on the answering message fed back by the answering device, determining the second time at which the answering device receives the cost estimation request message and the third time at which the answering message is sent, which are recorded by the answering device;

[0022] For each answering device, obtaining a fourth time recorded by the initiating device when receiving a response message fed back by the answering device;

[0023] For each answering device, a time cost between the initiating device and the answering device is determined based on the first time, a second time corresponding to the answering device, a third time, and a fourth time.

[0024] In some implementations, determining a target delay between the initiating device and the M answering devices based on a time cost between the initiating device and the M answering devices includes:

[0025] For each answering device, based on the time cost between the initiating device and the answering device, the first moment and the second moment corresponding to the answering device, calculate the time delay between the initiating device and the answering device in the current communication process;

[0026] For each answering device, multiple time delays calculated during multiple communication processes between the initiating device and the answering device are averaged to obtain a target time delay between the initiating device and the answering device.

[0027] In some implementations, constructing the device cost graph based on the time cost between the initiating device and the M response devices and the target delay between the initiating device and the M response devices includes:

[0028] Based on the time cost between the initiating device and the M answering devices and the target delay between the initiating device and the M answering devices, construct a device cost subgraph with the initiating device;

[0029] The device cost sub-graphs corresponding to each of the initiating devices contained in the target area are merged to obtain the device cost graph.

[0030] In some implementations, determining the final response device of the target wake-up instruction based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device includes:

[0031] For each of the second devices, determining a wake-up time of the second device based on a second timestamp corresponding to the second device and a time cost between the first device and the second device;

[0032] The wake-up time of each second device and the wake-up time of the first device corresponding to the first timestamp are compared, and the device with the earliest wake-up time is used as the final response device.

[0033] In some embodiments, the method further comprises:

[0034] If no wake-up response instruction is received from other devices within a preset time period, the first device is used as the final response device.

[0035] In a second aspect, an embodiment of the present invention provides a device waking up a device, which is applied to a first device, where the first device is located in a target area, and includes:

[0036] A time determination module, configured to determine, after receiving a target wake-up instruction, a first timestamp of receiving the target wake-up instruction;

[0037] A time cost determination module, configured to determine the time cost between the first device and each second device based on the device cost map corresponding to the target area if a wake-up response instruction sent by at least one second device is received within a preset time length, wherein the wake-up response instruction includes a second timestamp recorded when the corresponding second device receives the target wake-up instruction;

[0038] The response device determination module is used to determine the final response device of the target wake-up instruction based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device.

[0039] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned device wake-up method when executing the program.

[0040] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned device wake-up method when executed by a processor.

[0041] One or more technical solutions provided by the embodiments of the present invention achieve at least the following technical effects or advantages:

[0042] The device wake-up method provided in the embodiment of this specification, after the first device receives the target wake-up instruction, determines the first timestamp of the target wake-up instruction; if the wake-up response instruction sent by at least one second device is received within the preset time length, the time cost between the first device and each second device is determined based on the device cost map corresponding to the target area, wherein the wake-up response instruction includes the second timestamp recorded when the corresponding second device receives the target wake-up instruction; based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device, the final response device of the target wake-up instruction is determined. In the above scheme, when the first device receives the target wake-up instruction, it determines whether other devices have also received the target wake-up instruction by whether the wake-up response instruction sent by other devices is received. If there is at least one second device that also receives the target wake-up instruction, the final response device is screened from the first device and at least one second device to respond to the target wake-up instruction. The method provided in the embodiment of this specification determines the time cost between the first device and each second device through the device cost map corresponding to the target area, and determines the final response device based on the time cost. Considering the clock differences of different devices, the device with the fastest response can be accurately determined, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A flowchart of a device wake-up method provided in an embodiment of this specification;

[0045] Figure 2 A schematic diagram of a device cost subgraph provided in an embodiment of this specification;

[0046] Figure 3 A schematic diagram of a device cost map of a target area provided in an embodiment of this specification;

[0047] Figure 4 A schematic diagram of a device wake-up apparatus provided in an embodiment of this specification;

[0048] Figure 5 A schematic diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0049] The embodiments of this specification provide a device wake-up method, apparatus, electronic device and medium, the method is applied to a first device, the first device is located in a target area, the method includes: after receiving a target wake-up instruction, determining a first timestamp when the target wake-up instruction is received; if a wake-up response instruction sent by at least one second device is received within a preset time length, based on a device cost map corresponding to the target area, determining the time cost between the first device and each second device, wherein the wake-up response instruction includes a second timestamp recorded when the corresponding second device receives the target wake-up instruction; based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device, determining the final response device of the target wake-up instruction.

[0050] In the scheme of the embodiments of this specification, after the first device receives the target wake-up instruction, it determines whether other devices have also received the target wake-up instruction by whether it has received the wake-up response instruction sent by other devices. If there is at least one second device that has also received the target wake-up instruction, the final response device is screened out from the first device and at least one second device to respond to the target wake-up instruction. The method provided in the embodiments of this specification determines the time cost between the first device and each second device through the device cost map corresponding to the target area, and determines the final response device based on the time cost. Taking into account the clock differences between different devices, it can accurately determine the device with the fastest response, thereby improving the user experience.

[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0053] like Figure 1 FIG. 1 is a flowchart of a device wake-up method provided in an embodiment of the present specification, and the method includes the following steps:

[0054] Step S101: after receiving a target wake-up instruction, determining a first timestamp of receiving the target wake-up instruction;

[0055] Step S102: if a wake-up response instruction sent by at least one second device is received within a preset time length, a time cost between the first device and each second device is determined based on the device cost map corresponding to the target area, wherein the wake-up response instruction includes a second timestamp recorded when the corresponding second device receives the target wake-up instruction;

[0056] Step S103: Determine a final response device of the target wake-up instruction based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device.

[0057] The method in the embodiments of this specification can be applied to the first device, the first device is located in the target area, the target area can be the whole house area corresponding to the user's residence, or the area corresponding to the workplace, etc., which is not limited here. Multiple devices can be set in the target area, and multiple devices can respond to the same wake-up command.

[0058] For ease of explanation, taking the target area as the whole house area corresponding to the user's residence as an example, multiple smart devices, such as air conditioners, TVs, smart speakers, etc., may be provided in the target area. Multiple smart devices in the target area can communicate with each other via wired or wireless. In some embodiments, communication between smart devices may include but is not limited to BLE (Bluetooth Low Energy), ZigBee, PLC (Power Line Communication), etc. If there are multiple devices that can respond to the same wake-up command, in order to avoid multiple devices answering at the same time, the final answering device can be determined by the method provided in the embodiments of this specification.

[0059] In step S101, the first device may be any device in the target area. The target wake-up instruction may be a voice wake-up instruction, or a wake-up instruction sent by the user by pressing the control of the remote control. It should be noted that there may be multiple devices in the target area that can respond to the target wake-up instruction. After the first device receives the target wake-up instruction, the first device records the first timestamp of receiving the target wake-up instruction.

[0060] It should be noted that after receiving the target wake-up instruction, the first device may also generate a wake-up response instruction for the target wake-up instruction, wherein the wake-up response instruction may include a first timestamp, and the first device sends the wake-up response instruction to other devices in the target area. In some embodiments, the device connected to the first device can be determined through the device cost map of the target area, and the wake-up response instruction can be sent to the device connected to the first device.

[0061] In step S102, the second device is a device in the target area that can respond to the target wake-up instruction. When the second device detects the target wake-up instruction, the second device can record a second timestamp of detecting the target wake-up instruction, generate a wake-up response instruction based on the second timestamp, and send the wake-up response instruction to other devices.

[0062] If the first device receives a wake-up response instruction from at least one second device within a preset time, it indicates that there are multiple response devices for the target wake-up instruction, and the final response device needs to be screened out from the multiple response devices. In the embodiment of this specification, step S102 determines the time cost between the first device and each second device from the device cost map of the target area.

[0063] The device cost graph of the target area may include all devices in the target area that can respond to the target wake-up command. For example, if there are 5 devices in the target area that can respond to the target wake-up command, then these 5 devices can be used as five device nodes in the device cost graph. For any two devices, if the devices can communicate with each other, the time cost of the communication between the two devices and the target latency are calculated and marked in the device cost graph.

[0064] In order to better understand the device cost graph in the embodiments of this specification, the construction process of the device cost graph is described below. In some embodiments, each device in the target area that can respond to the target wake-up instruction is used as an initiating device, and the following cost graph construction steps are performed: if the initiating device detects a cost estimation trigger instruction, it sends a cost estimation request message, and determines the time cost between the initiating device and the M response devices that respond to the cost estimation request message, where M is a positive integer; based on the time cost between the initiating device and the M response devices, determine the target delay between the initiating device and the M response devices; based on the time cost between the initiating device and the M response devices, and the target delay between the initiating device and the M response devices, construct the device cost graph.

[0065] Specifically, for each device in the target area that can respond to the target wake-up execution, it acts as an initiating device to execute subsequent steps. It should be noted that the cost estimation trigger instruction can be implemented in a variety of ways. For example, the cost estimation trigger instruction is generated by the user pressing a designated button on the device, voice control, etc. When the initiating device detects the cost estimation trigger instruction, it enters the time cost estimation state, that is, the initiating device sends a cost estimation request message to the surrounding. Among them, the cost estimation request message can be sent through a broadcast channel or a Mesh network, which is not limited here. The cost estimation request message includes the device identifier of the initiating device, and the device identifier can be SN (serial number), MAC (Media Access Control Address), etc.

[0066] The M devices that receive the cost estimation request message can serve as M response devices of the initiating device. In some embodiments, the time cost between the initiating device and the M response devices can be determined by the following steps: obtaining the first moment of sending the cost estimation request message recorded by the initiating device; for each response device, based on receiving the response message fed back by the response device, determining the second moment of receiving the cost estimation request message and the third moment of sending the response message recorded by the response device; for each response device, obtaining the fourth moment of receiving the response message fed back by the response device recorded by the initiating device; for each response device, determining the time cost between the initiating device and the response device based on the first moment, the second moment corresponding to the response device, the third moment and the fourth moment.

[0067] Specifically, when the initiating device sends a cost estimation request message, the initiating device records the first moment t1 of sending the cost estimation request message. In some embodiments, both the first moment and the cost estimation request message may be sent. The initiating device may have M response devices. For the sake of convenience, taking response device A as an example, response device A may be any response device among the M response devices. When response device A receives the cost estimation request message, it records the second moment t2 of receiving the message. In response to the cost estimation request message, response device A feeds back a response message to the initiating device. Response device A records the third moment t3 of sending the feedback response message. The response message may include the device identification of response device A as well as the second moment and the third moment. In addition, the response message may also include the first moment sent by the initiating device received by response device A. After the initiating device receives the response message from response device A, it records the fourth moment t4 of receiving the response message. The time cost between the initiating device and response device A, that is, the clock difference, can be calculated by the following formula:

[0068]

[0069] Among them, T cost is the time cost between the initiating device and the responding device A.

[0070] In the embodiment of this specification, there are M response devices for the initiating device. For each response device, the time cost between the initiating device and the response device can be calculated by the above formula, and a total of M time costs are obtained.

[0071] After obtaining the time cost between the initiating device and the M answering devices, the target delay between the initiating device and the M answering devices can be further determined. In some embodiments, the target delay can be determined by the following steps: for each answering device, based on the time cost between the initiating device and the answering device, the first moment and the second moment corresponding to the answering device, the delay between the initiating device and the answering device in this communication process is calculated; for each answering device, multiple delays calculated between the initiating device and the answering device in multiple communication processes are averaged to obtain the target delay between the initiating device and the answering device.

[0072] Specifically, still taking the initiating device and the responding device A as an example, the initiating device and the responding device A can communicate multiple times, wherein the process from the initiating device sending the cost estimation request message to the initiating device receiving the response message fed back by the responding device A can be regarded as one communication. For each communication process, based on the first time t1 when the initiating device sends the cost estimation request message during this communication process and the second time t2 when the responding device A receives the cost estimation request message, the communication delay T of this communication process is calculated. delay , the specific calculation formula is:

[0073] T delay =t2-t1-T cost

[0074] In the embodiments of this specification, for each communication between the initiating device and the responding device A, the corresponding delay can be calculated by the above formula. Then the target delay between the initiating device and the responding device A can be calculated by the following formula:

[0075] T avg =(T delay1 +T delay2 +…T delaym ) / m

[0076] Among them, T avg is the target delay between the initiating device and the responding device A; m is the number of communications between the initiating device and the responding device A, and the value of m can be set according to actual needs, for example, m can be any integer from 2 to 10; T delaym is the delay between the initiating device and the responding device A during the mth communication.

[0077] Of course, the target delay can also be determined by other methods, for example, taking the shortest delay in multiple communication processes as the target delay, or taking the delay in any communication process as the target delay, or taking the median of the delays in multiple communication processes as the target delay, etc., which are not limited here.

[0078] In order to better understand the calculation process of time cost and delay, the following takes the initiating device as D1 and the responding device as D2 as an example to illustrate the calculation process of delay and time cost of devices D1 and D2 in a communication process.

[0079] Device D1 sends a cost estimation request message at t1 time 10:30:30.030, and device D2 receives the cost estimation request message at t2 time 10:30:30.044. Then device D2 sends a response message at t3 time 10:30:30.046, and device D1 sends a response message at t4 time 10:30:30.052. The time cost between device D1 and device D2 is:

[0080]

[0081] The delay between device D1 and device D2 in this communication is:

[0082] T delay =44-30-T cost =10

[0083] It can be seen that the delay of this communication between device D1 and device D2 is 10, and the time cost is 4 milliseconds, that is, the clock of device D2 is 4 milliseconds slower than the clock of device D1.

[0084] It should be noted that the time cost is directional, for example, the T from the initiating device to the responding device cost is a, then the answering device points to the answering device's T cost is -a.

[0085] After obtaining the time cost between the initiating device and the M response devices, and the target delay between the initiating device and the M response devices, a device cost graph can be constructed. The specific steps are as follows: based on the time cost between the initiating device and the M response devices, and the target delay between the initiating device and the M response devices, a device cost subgraph corresponding to the initiating device is constructed; the device cost subgraphs corresponding to each of the initiating devices contained in the target area are merged to obtain the device cost graph.

[0086] For an initiating device, after obtaining the time cost and target delay between the initiating device and M responding devices, a device cost subgraph between the initiating device and the M responding devices can be established. Figure 2, the target area is the whole house area where the user lives, including the bathroom, second bedroom, master bedroom, dining room, living room, balcony, and kitchen. The target area includes multiple devices that can respond to the target wake-up command, where each device can be used as an initiating device. It should be noted that for an initiating device, the initiating device and the corresponding M responding devices are all nodes in the device cost subgraph. The edge between the initiating device and each responding device is composed of the time cost and target delay of the initiating device and the responding device, which can be recorded as (T cost , T delay ), since the time cost is directed, the constructed device cost subgraph is also directed. Figure 2 As shown, when the initiating device corresponds to node Q, a device cost subgraph is formed between the initiating device and the corresponding responding device.

[0087] Each device that can respond to the target wake-up command can be used as an initiating device. Therefore, a corresponding device cost subgraph can be constructed for each initiating device. In the embodiment of this specification, for each initiating device, the device cost subgraph of the initiating device can be synchronized to all responding devices. In this way, for each device, the device cost subgraph sent by other devices can be saved. By merging the device cost subgraphs, the device cost graph of the entire target area can be obtained. Figure 3 As shown, it is the device cost map of the target area after fusion.

[0088] In the embodiments of this specification, a regional map of the target area can also be obtained, and the regional map includes the location of each device in the target area. The regional map can be determined by radar, infrared devices, etc. on one or more devices in the target area, and can also be obtained by scanning a removable device in the target area, which is not limited here. After obtaining the regional map, the devices that can respond to the target wake-up command can be identified in the regional map, and then the device cost map is constructed in the above manner.

[0089] It should be noted that in order to ensure the accuracy of the device cost map of the target area, the device cost map can be updated according to a preset period. The preset period can be set according to actual needs. For example, the preset period can be every 30 minutes, every 1 hour, etc.

[0090] In the embodiment of the present specification, after receiving the target wake-up instruction, if the first device receives the wake-up response instruction sent by at least one second device within the preset time, it is necessary to screen out the final response device that finally responds to the target wake-up execution from the first device and at least one second device. When determining the final response device, the time cost between the first device and each second device can be determined from the device cost graph, and the device that receives the target wake-up instruction earliest can be determined by the time cost.

[0091] It should be noted that the preset duration can be set according to actual needs, for example, the preset duration can be a pre-set duration. In some embodiments, taking into account network fluctuations, the preset duration can be determined in the following manner: determining the target delays for N devices connected to the first device and the first device to communicate with each of the N devices from the device cost graph, and obtaining a total of N target delays, where N is a positive integer; determining the preset duration based on the N target delays.

[0092] Specifically, the preset duration can be determined in real time during each wake-up process. After the first device receives the target wake-up instruction, the N devices connected to the first device can be determined from the device cost graph, and the N target delays between the first device and the N devices can be read from the edge connection between the first device and the N devices. In order to ensure that the target wake-up instruction can be responded to quickly, the device closer to the first device can be used as a candidate response device. Therefore, in some embodiments, the preset duration can be determined in the following way: the shortest target delay is selected from the N target delays; based on the shortest target delay and the network fluctuation compensation corresponding to the first device, the preset duration is determined.

[0093] Specifically, the network fluctuation compensation can be set according to actual needs. In some embodiments, the value range of the network fluctuation compensation can be 1-10ms, and the shortest target delay T min =MIN(T avg1 , T avg2 ,…,T avgN ), where T avgN is the target delay between the first device and the Nth connected device. The preset time length T th =T min +T est , where T est Compensate for network fluctuations.

[0094] Of course, the preset duration may also be determined by other methods, for example, directly using the shortest target delay as the preset duration, or using the median of N target delays as the preset duration, etc., which is not limited here.

[0095] In step S103, based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device, the wake-up time of each device can be determined, and the final response device can be determined based on the wake-up time of each device.

[0096] In some embodiments, step S103 can be implemented by the following steps: for each of the second devices, based on the second timestamp corresponding to the second device and the time cost between the first device and the second device, determine the wake-up time of the second device; compare the wake-up time of each second device with the wake-up time of the first device corresponding to the first timestamp, and take the device with the earliest wake-up time as the final response device.

[0097] Specifically, the time corresponding to the first timestamp is the wake-up time of the first device recorded by the first device, and the time corresponding to the second timestamp is the original wake-up time of the second device recorded by the second device. Since the clocks of the first device and the second device may be inconsistent, the clock difference can be eliminated through the time cost between the first device and the second device. In some embodiments, for each second device, the time cost between the first device and the second device and the second timestamp of the second device can be added to correct the impact of the clock difference, and the final time can be used as the wake-up time of the second device. In the above manner, the wake-up time of each second device can be obtained, and the earliest wake-up time can be screened out from the wake-up time of the first device and the wake-up time of all second devices, and the device corresponding to the earliest wake-up time is used as the final response device.

[0098] In the embodiments of this specification, if no wake-up response instruction is received from other devices within a preset time, the first device is used as the final response device. In some embodiments, if the user performs voice wake-up, the first device receives a target wake-up instruction, and no wake-up response instruction is received from other devices within a preset time, it can be indicated that the first device is the device closest to the user. At this time, the first device responds to the target wake-up instruction.

[0099] In summary, the method of the embodiment of this specification estimates the time cost through the network of the target area, without uploading to the cloud or server for calculation, with fast response speed and strong stability. When calculating the time cost, the calculation is performed through the timestamps of initiation and receipt, and the network delay, calculation delay, and clock consistency differences are fully considered, so that the calculation of the time cost is more reasonable and accurate. In addition, by constructing a directed device cost graph, it is convenient to determine the wake-up time in a short time, determine the true signal arrival time order, eliminate energy and power consumption fluctuations in different environments, and have strong robustness. In the embodiment of this specification, the preset duration can also be set in combination with network fluctuations, taking into account the network signal fluctuations in the target area and the complexity of different networks, etc., to improve robustness.

[0100] Based on the same inventive concept, an embodiment of the present invention provides a device wake-up apparatus, which is applied to a first device, and the first device is located in a target area, such as Figure 4 As shown, the device comprises:

[0101] A time determination module 401 is used to determine a first timestamp of receiving the target wake-up instruction after receiving the target wake-up instruction;

[0102] A time cost determination module 402 is configured to determine the time cost between the first device and each second device based on the device cost map corresponding to the target area if a wake-up response instruction sent by at least one second device is received within a preset time length, wherein the wake-up response instruction includes a second timestamp recorded when the corresponding second device receives the target wake-up instruction;

[0103] The response device determination module 403 is used to determine the final response device of the target wake-up instruction based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device.

[0104] In some embodiments, the device further comprises:

[0105] A first processing module is used to determine, from the device cost graph, N devices connected to the first device and a target delay for the first device to communicate with each of the N devices, to obtain a total of N target delays, where N is a positive integer;

[0106] The second processing module is used to determine the preset duration based on the N target delays.

[0107] In some embodiments, the second processing module is used to:

[0108] Filter out the shortest target delay from the N target delays;

[0109] The preset duration is determined based on the shortest target delay and the network fluctuation compensation corresponding to the first device.

[0110] In some embodiments, the apparatus further comprises a building block for:

[0111] Each device in the target area that can respond to the target wake-up instruction is used as an initiating device to perform the cost map construction step:

[0112] If the initiating device detects a cost estimation trigger instruction, it sends a cost estimation request message, and determines the time cost between the initiating device and M responding devices that respond to the cost estimation request message, where M is a positive integer;

[0113] Determine a target delay between the initiating device and the M responding devices based on a time cost between the initiating device and the M responding devices;

[0114] The device cost graph is constructed based on the time cost between the initiating device and the M response devices and the target delay between the initiating device and the M response devices.

[0115] In some embodiments, the building blocks are used to:

[0116] Obtaining the first time of sending the cost estimation request message recorded by the initiating device;

[0117] For each answering device, based on the answering message fed back by the answering device, determining the second time at which the answering device receives the cost estimation request message and the third time at which the answering message is sent, which are recorded by the answering device;

[0118] For each answering device, obtaining a fourth time recorded by the initiating device when receiving a response message fed back by the answering device;

[0119] For each answering device, a time cost between the initiating device and the answering device is determined based on the first time, a second time corresponding to the answering device, a third time, and a fourth time.

[0120] In some embodiments, the building blocks are used to:

[0121] For each answering device, based on the time cost between the initiating device and the answering device, the first moment and the second moment corresponding to the answering device, calculate the time delay between the initiating device and the answering device in the current communication process;

[0122] For each answering device, multiple time delays calculated during multiple communication processes between the initiating device and the answering device are averaged to determine a target time delay between the initiating device and the answering device.

[0123] In some embodiments, the building blocks are used to:

[0124] Based on the time cost between the initiating device and the M answering devices and the target delay between the initiating device and the M answering devices, construct a device cost subgraph with the initiating device;

[0125] The device cost sub-graphs corresponding to each of the initiating devices contained in the target area are merged to obtain the device cost graph.

[0126] In some implementations, the answering device determination module 403 is configured to:

[0127] For each of the second devices, determining a wake-up time of the second device based on a second timestamp corresponding to the second device and a time cost between the first device and the second device;

[0128] The wake-up time of each second device and the wake-up time of the first device corresponding to the first timestamp are compared, and the device with the earliest wake-up time is used as the final response device.

[0129] In some embodiments, it is characterized in that the device further comprises:

[0130] The third processing module is used to use the first device as the final response device if no wake-up response instruction sent by other devices is received within a preset time period.

[0131] Regarding the above-mentioned device, the specific functions of each module therein have been described in detail in the embodiment of the device wake-up method provided in the embodiment of this specification, and will not be elaborated here.

[0132] Based on the same inventive concept, an embodiment of the present invention provides an electronic device, referring to Figure 5 As shown, it includes: a memory 504, a processor 502, and a computer program stored in the memory 504 and executable on the processor 502. When the processor 502 executes the program, any implementation method of the device wake-up method embodiment is implemented.

[0133] Among them, Figure 5 In the embodiment of the present invention, a bus architecture (represented by bus 500) is shown, which may include any number of interconnected buses and bridges, and bus 500 links various circuits including one or more processors represented by processor 502 and memory represented by memory 504. Bus 500 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 505 provides an interface between bus 500 and receiver 501 and transmitter 503. Receiver 501 and transmitter 503 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 502 is responsible for managing bus 500 and general processing, while memory 504 may be used to store data used by processor 502 when performing operations.

[0134] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present invention and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. In addition, each functional unit may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.

[0135] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0136] The units described as separate components may or may not be physically separated, and the components of the control device may or may not be physical units, that is, they may be located in one place or distributed in multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0137] If 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 computer-readable storage medium. Based on this understanding, the technical solution of the present invention, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

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

Claims

1. A device wake-up method, characterized in that, applied to a first device, the first device being located in a target area, the method comprising: after receiving a target wake-up instruction, determining a first timestamp when the target wake-up instruction is received; if at least one wake-up response instruction sent by a second device is received within a preset duration, based on a device cost map corresponding to the target area, determining a time cost between the first device and each second device, wherein the wake-up response instruction includes a second timestamp recorded when the corresponding second device receives the target wake-up instruction; based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device, determining a final response device for the target wake-up instruction.

2. The method according to claim 1, characterized in that, after receiving the target wake-up instruction, the method further comprises: determining N devices connected to the first device from the device cost map, and a target delay for communication between the first device and each of the N devices, obtaining a total of N target delays, N being a positive integer; based on the N target delays, determining the preset duration.

3. The method according to claim 2, characterized in that, the determining the preset duration based on the N target delays includes: screening out the shortest target delay from the N target delays; based on the shortest target delay and a network fluctuation compensation corresponding to the first device, determining the preset duration.

4. The method according to claim 1, characterized in that, the device cost map is constructed through the following steps: taking each device in the target area that can respond to the target wake-up instruction as an initiating device, and executing a cost map construction step: if the initiating device detects a cost estimation trigger instruction, sending a cost estimation request message, and determining a time cost between the initiating device and M responding devices that respond to the cost estimation request message, M being a positive integer; based on the time cost between the initiating device and the M responding devices, determining a target delay between the initiating device and the M responding devices; based on the time cost between the initiating device and the M responding devices and the target delay between the initiating device and the M responding devices, constructing the device cost map.

5. The method according to claim 4, characterized in that, the determining the time cost between the initiating device and M responding devices that respond to the cost estimation request message includes: obtaining a first moment when the initiating device records sending the cost estimation request message; for each responding device, based on the received response message of the responding device, determining a second moment when the responding device records receiving the cost estimation request message and a third moment when the response message is sent; for each responding device, obtaining a fourth moment when the initiating device records receiving the response message of the responding device; For each response device, based on the first moment, the second moment, the third moment, and the fourth moment corresponding to this response device, determine the time cost between the initiating device and this response device.

6. The method according to claim 5, wherein, the determining the target delay between the initiating device and the M response devices based on the time cost between the initiating device and the M response devices includes: For each response device, based on the time cost between the initiating device and this response device, the first moment, and the second moment corresponding to this response device, calculate the delay during this communication process between the initiating device and this response device; For each response device, perform an averaging process on the multiple delays calculated during multiple communication processes between the initiating device and this response device to obtain the target delay between the initiating device and this response device.

7. The method according to claim 4, wherein, the constructing the device cost graph based on the time cost between the initiating device and the M response devices and the target delay between the initiating device and the M response devices includes: Based on the time cost between the initiating device and the M response devices and the target delay between the initiating device and the M response devices, construct a device cost sub-graph corresponding to the initiating device; Fuse the device cost sub-graphs corresponding to each of the initiating devices included in the target area to obtain the device cost graph.

8. The method according to claim 1, wherein, the determining the final response device of the target wake-up instruction based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device includes: For each second device, based on the second timestamp corresponding to this second device and the time cost between the first device and this second device, determine the wake-up moment of this second device; Compare the wake-up moments of each second device and the wake-up moment of the first device corresponding to the first timestamp, and use the device with the earliest wake-up moment as the final response device.

9. The method according to claim 1, wherein, the method further includes: If a wake-up response instruction sent by other devices is not received within a preset duration, use the first device as the final response device.

10. A device wake-up apparatus, wherein, applied to a first device, the first device is located in a target area, and the apparatus includes: a time determination module, configured to determine a first timestamp when receiving the target wake-up instruction after receiving the target wake-up instruction; a time cost determination module, configured to, if at least one wake-up response instruction sent by a second device is received within a preset duration, based on the device cost graph corresponding to the target area, determine the time cost between the first device and each second device, wherein the wake-up response instruction includes a second timestamp recorded when the corresponding second device receives the target wake-up instruction; A response device determination module, configured to determine a final response device of the target wake-up instruction based on the first timestamp, the second timestamp corresponding to each second device, and the time cost between the first device and each second device.

11. An electronic device, characterized in that it includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, it implements the method according to any one of claims 1-9.

12. A computer-readable storage medium, characterized in that a computer program is stored thereon, and when the program is executed by a processor, it implements the steps of the method according to any one of claims 1-9.