Control method and apparatus for smart device, storage medium, and electronic device

CN117527459BActive Publication Date: 2026-10-23QINGDAO HAIER TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210911172.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2026-10-23
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

[0003]但是现在的语音设备的分布式的方案大多采用服务器判决方案服务器判决的分布式方案中,智能设备会通过网络传输的方式与服务器之间传输数据,在通过网络传输数据的过程由于数据并发数较多导致网络抖动,进而出现了由于网络抖动导致的导致的智能设备响应唤醒指令的判决失败的问题,从而使得多个智能设备相继被同一个唤醒指令唤醒,用户体验不佳

Benefits of technology

[0017]本申请实施例应用于目标网关设备,包括:接收目标场景中的第一智能设备发送的指令响应请求,其中,指令响应请求用于请求响应第一智能设备采集到的唤醒指令,目标网关设备部署在目标场景中,第一智能设备连接在目标网关设备的局域网上;检测目标场景中是否部署了未连接在局域网上的第二智能设备;在检测到目标场景中未部署第二智能设备的情况下,从第一智能设备中判定出用于响应唤醒指令的智能设备;在检测到目标场景中部署了第二智能设备的情况下,向目标网关设备连接的服务器发送判定请求,其中,判定请求用于请求服务器判定是否由第一智能设备响应唤醒指令,即在目标场景中部署目标网关设备,第一智能设备连接在目标网关设备的局域网上,从而第一智能设备能够通过局域网向目标网关设备传输指令响应请求,并且,在目标网关设备检测到目标场景中未部署第二智能设备的情况下,目标网关能够从局域网内部署的第一智能设备诶中判定出用于响应唤醒指令的智能设备,从而避免网络抖动对判定第一智能设备响应唤醒指令的影响,并且能够保证了对局域网内的第一智能设备的指令响应请求的响应速度,提高了对同一局域网内的第一智能设备响应唤醒指令进行控制的控制效率,在目标网关设备检测目标场景中部署了第二智能设备的情况下,目标网关设备会向连接的服务器发送判定请求,请求服务器判定是否由第一智能设备响应唤醒指令,保证了对第一智能设备是否响应唤醒指令的判定的准确率,避免了对第一智能设备响应唤醒指令的错误控制。采用上述技术方案,解决了相关技术中对目标场景中的智能设备响应唤醒指令进行控制的控制效率较低等问题,实现了提高对目标场景中的智能设备响应唤醒指令进行控制的控制效率的技术效果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117527459B_ABST
    Figure CN117527459B_ABST
Patent Text Reader

Abstract

The application discloses a control method and device of an intelligent device, a storage medium and an electronic device, relates to the technical field of smart home, and the method comprises the following steps: receiving an instruction response request sent by a first intelligent device in a target scene; detecting whether a second intelligent device which is not connected to a local area network is deployed in the target scene; in the case that it is detected that the second intelligent device is not deployed in the target scene, determining the intelligent device for responding to a wake-up instruction from the first intelligent device; and in the case that it is detected that the second intelligent device is deployed in the target scene, sending a determination request to a server connected to a target gateway device, wherein the determination request is used for requesting the server to determine whether the wake-up instruction is responded to by the first intelligent device. By adopting the technical solution, the problem of low control efficiency of the related art in which the intelligent device in the target scene responds to the wake-up instruction is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and more specifically, to a control method and apparatus for a smart device, a storage medium, and an electronic device. Background Technology

[0002] With the development of voice technology, voice devices have entered thousands of households. Voice interaction can largely free up hands, making many scenarios "just a matter of saying a word." Often, there are multiple voice wake-up devices in the same household. To avoid multiple devices responding simultaneously when woken up, distributed response has become an essential function for voice devices.

[0003] However, most current distributed solutions for voice devices adopt a server-decision scheme. In this scheme, smart devices transmit data to the server via network. During the data transmission process, the large number of concurrent data transmissions can cause network jitter, leading to the failure of smart devices to respond to wake-up commands. As a result, multiple smart devices are woken up by the same wake-up command one after another, resulting in a poor user experience.

[0004] There is still no effective solution to the problem of low control efficiency in controlling smart devices in target scenarios in response to wake-up commands in related technologies. Summary of the Invention

[0005] This application provides a control method and apparatus for intelligent devices, a storage medium, and an electronic device to at least solve the problems in the related art, such as low control efficiency in controlling intelligent devices in response to wake-up commands in a target scenario.

[0006] According to one embodiment of this application, a control method for a smart device is provided, applied to a target gateway device, comprising: receiving an instruction response request sent by a first smart device in a target scenario, wherein the instruction response request is used to request a response to a wake-up instruction collected by the first smart device, the target gateway device being deployed in the target scenario, and the first smart device being connected to a local area network of the target gateway device; detecting whether a second smart device not connected to the local area network is deployed in the target scenario; if the second smart device is not deployed in the target scenario, determining from the first smart devices a smart device for responding to the wake-up instruction; if the second smart device is deployed in the target scenario, sending a determination request to a server connected to the target gateway device, wherein the determination request is used to request the server to determine whether the first smart device responds to the wake-up instruction.

[0007] Optionally, detecting whether a second smart device not connected to the local area network is deployed in the target scenario includes: comparing a first device list of the target gateway device with a second device list of the server, wherein the first device list is used to record smart devices connected to the target gateway device, and the second device list is used to record smart devices deployed in the target scenario; if it is determined that the second device list includes smart devices not recorded in the first device list, it is determined that the second smart device is deployed in the target scenario.

[0008] Optionally, comparing the first device list of the target gateway device with the second device list of the server includes: obtaining the first device list and the second device list stored by the target gateway device; comparing the first device identifier recorded in the first device list with the second device identifier recorded in the second device list, wherein, if the first device identifier and the second device identifier are not completely consistent, it is determined that the second device list includes smart devices not recorded in the first device list.

[0009] Optionally, before obtaining the first device list and the second device list stored in the target gateway device, the method further includes: receiving a connection request from a third smart device, wherein the connection request is used to request that the third smart device be connected to the target gateway device; responding to the connection request, recording the third smart device, and obtaining the first device list; sending the target gateway device and the third smart device with corresponding relationships to the server; receiving and storing the second device list sent by the server, wherein the second device list records the gateway devices and smart devices with corresponding relationships in the target scenario.

[0010] Optionally, when there are multiple first smart devices, sending a determination request to the server connected to the target gateway device includes one of the following: sending a determination request carrying multiple instruction response requests corresponding to the multiple first smart devices to the server; selecting a reference smart device from the multiple first smart devices; and sending a determination request carrying the instruction response request corresponding to the reference smart device to the server.

[0011] Optionally, the step of selecting reference smart devices from a plurality of first smart devices includes: determining the wake word energy corresponding to each first smart device, wherein the wake-up instruction includes a wake-up voice, and the wake word energy is used to indicate the clarity of the wake word in the wake-up voice collected by each first smart device; and determining the first smart devices whose corresponding wake word energy is greater than or equal to a target threshold as the reference smart devices.

[0012] Optionally, after sending a determination request to the server connected to the target gateway device, the method further includes: receiving a response instruction sent by the server in response to the determination request, wherein the response instruction is used to indicate that a fourth smart device should respond to the wake-up instruction; if the first smart device includes the fourth smart device, controlling the fourth smart device to respond to the wake-up instruction and suppressing other smart devices in the first smart device besides the fourth smart device from responding to the wake-up instruction; if the first smart device does not include the fourth smart device, suppressing the first smart device from responding to the wake-up instruction.

[0013] Optionally, determining the smart device to respond to the wake-up command from the first smart devices includes: when there is only one first smart device, controlling the first smart device to respond to the wake-up command; when there are multiple first smart devices, selecting a fifth smart device from the multiple first smart devices; and controlling the fifth smart device to respond to the wake-up command.

[0014] According to another embodiment of this application, a control device for a smart device is also provided, applied to a target gateway device, comprising: a receiving module, configured to receive an instruction response request sent by a first smart device in a target scenario, wherein the instruction response request is used to request a response to a wake-up instruction collected by the first smart device, the target gateway device being deployed in the target scenario, and the first smart device being connected to a local area network of the target gateway device; a detection module, configured to detect whether a second smart device not connected to the local area network is deployed in the target scenario; a determination module, configured to determine, from the first smart devices, a smart device for responding to the wake-up instruction if the second smart device is detected not being deployed in the target scenario; and a first sending module, configured to send a determination request to a server connected to the target gateway device if the second smart device is detected being deployed in the target scenario, wherein the determination request is used to request the server to determine whether the first smart device responds to the wake-up instruction.

[0015] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the control method of the above-described smart device when running.

[0016] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the control method of the intelligent device through the computer program.

[0017] This application embodiment is applied to a target gateway device, including: receiving an instruction response request sent by a first smart device in a target scenario, wherein the instruction response request is used to request a response to a wake-up instruction collected by the first smart device, the target gateway device is deployed in the target scenario, and the first smart device is connected to the local area network of the target gateway device; detecting whether a second smart device not connected to the local area network is deployed in the target scenario; if no second smart device is detected in the target scenario, determining from the first smart device a smart device is used to respond to the wake-up instruction; if a second smart device is detected in the target scenario, sending a determination request to a server connected to the target gateway device, wherein the determination request is used to request the server to determine whether the first smart device responds to the wake-up instruction, that is, deploying the target gateway device in the target scenario, the first smart device being connected to the local area network of the target gateway device, thereby enabling the first smart device to respond to the wake-up instruction. This solution enables the transmission of command response requests to the target gateway device via a local area network (LAN). Furthermore, when the target gateway device detects that no second smart device is deployed in the target scenario, it can identify the smart device responding to the wake-up command from among the first smart devices deployed within the LAN. This avoids the impact of network jitter on determining the first smart device's response to the wake-up command and ensures a fast response time to command response requests from the first smart device within the LAN, improving the control efficiency for controlling the first smart device's wake-up command response within the same LAN. If the target gateway device detects that a second smart device is deployed in the target scenario, it sends a determination request to the connected server, requesting the server to determine whether the first smart device is responding to the wake-up command. This ensures the accuracy of the determination and avoids erroneous control of the first smart device's wake-up command response. By adopting the above technical solution, the problem of low control efficiency in controlling smart devices responding to wake-up commands in a target scenario is solved, achieving the technical effect of improving the control efficiency of smart devices responding to wake-up commands in a target scenario. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a schematic diagram of the hardware environment of a control method for a smart device according to an embodiment of this application;

[0021] Figure 2 This is a flowchart of a control method for a smart device according to an embodiment of this application;

[0022] Figure 3 This is a flowchart of an optional device response wake-up command determination method according to an embodiment of this application;

[0023] Figure 4 This is a schematic diagram of an optional equipment list maintenance implemented according to this application;

[0024] Figure 5 This is a structural block diagram of a control device for a smart device according to an embodiment of this application. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0027] According to one aspect of the embodiments of this application, a control method for a smart device is provided. This method is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and smart home device ecosystems. Optionally, in this embodiment, Figure 1 This is a schematic diagram of the hardware environment for a control method of a smart device according to an embodiment of this application. The above method can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0028] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.

[0029] This embodiment provides a control method for a smart device, applied to the aforementioned device terminal. Figure 2 This is a flowchart of a control method for a smart device according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0030] Step S202: Receive an instruction response request sent by a first intelligent device in the target scene, wherein the instruction response request is used to request a response to a wake-up instruction collected by the first intelligent device, the target gateway device is deployed in the target scene, and the first intelligent device is connected to the local area network of the target gateway device;

[0031] Step S204: Detect whether a second smart device not connected to the local area network is deployed in the target scene;

[0032] Step S206: If it is detected that the second smart device is not deployed in the target scene, determine the smart device used to respond to the wake-up command from the first smart device;

[0033] Step S208: If the second smart device is detected to be deployed in the target scene, a determination request is sent to the server connected to the target gateway device, wherein the determination request is used to request the server to determine whether the first smart device responds to the wake-up command.

[0034] Through the above steps, a target gateway device is deployed in the target scenario. The first smart device is connected to the local area network (LAN) of the target gateway device, enabling it to transmit command response requests to the target gateway device via the LAN. Furthermore, if the target gateway device detects that no second smart device is deployed in the target scenario, it can identify the smart device responding to the wake-up command from among the first smart devices deployed within the LAN. This avoids the impact of network jitter on determining the first smart device's response to the wake-up command and ensures a fast response time to command response requests from the first smart devices within the LAN, improving the control efficiency for controlling the first smart devices' wake-up command responses within the same LAN. If the target gateway device detects that a second smart device is deployed in the target scenario, it sends a determination request to the connected server, requesting the server to determine whether the first smart device should respond to the wake-up command. This ensures the accuracy of the determination and avoids erroneous control regarding the first smart device's wake-up command response. By adopting the above technical solution, the problem of low control efficiency in controlling smart devices in the target scene in response to wake-up commands in related technologies is solved, and the technical effect of improving the control efficiency of smart devices in the target scene in response to wake-up commands is achieved.

[0035] In the technical solution provided in step S202 above, the wake-up command is used to wake up the smart device to perform corresponding operations. The wake-up command may include, but is not limited to, wake-up voice, wake-up action, etc. collected by the smart device.

[0036] Optionally, in this embodiment, the target gateway device is used to control whether the first smart device responds to the wake-up command. This control may include, but is not limited to, performing a wake-up suppression operation on the first smart device and controlling the first smart device to perform a wake-up operation. For example, before the target gateway device determines the smart device that needs to perform a wake-up operation among the first smart devices connected in the local area network, the target gateway device performs a wake-up suppression operation on all first smart devices in the local area network. After determining the smart device that needs to perform a wake-up operation, the target gateway device controls that smart device to perform a wake-up operation and continues to perform a wake-up suppression operation on other smart devices in the local area network. Alternatively, the target gateway device may only control the first smart device that needs to perform a wake-up operation. When the first smart device receives a wake-up control command sent by the target gateway device, it performs a wake-up operation; otherwise, the first smart device does not perform any operation.

[0037] In the technical solution provided in step S204 above, detecting whether a second smart device is deployed in the target scene can be done by comparing whether the device information of the first smart device connected to the target gateway device is consistent with the device information of the smart devices in the target scene stored in the server. For example, if the device information of the first smart device connected to the target gateway device is consistent with the device information of the smart devices in the target scene stored in the server, it is determined that no second smart device is deployed in the target scene. Alternatively, detecting whether a second smart device is deployed in the target scene can also be done by detecting whether there is other local area network information in the target scene. For example, if there is other local area network information in the target scene, it is determined that a second smart device is deployed in the target scene.

[0038] In the solution provided in step S206 above, the smart device to be determined in the first smart device to respond to the wake-up command can be determined based on the device location of the first smart device, selecting smart devices from the first smart devices that meet the target location relationship with the initiator of the wake-up command as the smart device to respond to the wake-up command; or it can be determined based on the network signal strength of the first smart device, selecting smart devices from the first smart devices whose network signal strength meets the target signal strength as the smart device to respond to the wake-up command; or it can also be determined by random selection, randomly selecting a smart device from the first smart devices to respond to the wake-up command.

[0039] In the technical solution provided in step S208 above, the determination request may be used to request the server to determine the smart device that responds to the wake-up command from all the first smart devices and second smart devices in the target scene, or it may be used to request the server to determine the smart device that responds to the wake-up command from the reference smart device and second smart device in the target scene, wherein the reference smart device is the smart device that the target gateway device selects from all the first smart devices in the target scene to respond to the wake-up command.

[0040] In the above embodiments, when the target gateway device receives a command response request from the first smart device and needs to determine whether the first smart device needs to respond to a wake-up command, it needs to detect whether a second smart device exists in the target scene. The target gateway device can determine whether a second smart device exists in the target scene by comparing its stored first device list and second device list (the first device list records smart devices connected to the target gateway device, and the second device list records smart devices deployed in the target scene), and determine whether the first smart device needs to respond to a wake-up command based on the detection result. Figure 3 This is a flowchart of an optional device response wake-up command determination method according to an embodiment of this application, such as... Figure 3 As shown, the steps may include, but are not limited to, the following:

[0041] S301, The target gateway device maintains the device information of the first smart device connected to the target gateway device via the local area network into the first device list, and stores the first device list on the target gateway device;

[0042] S302, the server connected to the target gateway device sends the second device list it maintains to the target gateway device;

[0043] S303, After receiving the second device list, the target gateway device compares the device information in the first device list and the second device list to determine whether there is a second smart device in the target scenario, and then determines how to determine whether the first smart device should respond to the wake-up command.

[0044] S304, compare whether the number of devices stored in the first device list and the second device list are equal;

[0045] S305, if the number of devices stored in the first device list and the second device list is equal, the target gateway device shall determine whether the first smart device responds to the wake-up command. Since the target gateway device manages the first smart device through the local area network, the impact of network jitter on the information transmission between the first smart device and the target gateway device is avoided, ensuring that the first smart devices connected to the target gateway device will not be woken up at the same time.

[0046] S306, if the number of devices stored in the first device list and the second device list is equal, the server makes the final decision to determine the smart device that needs to respond to the wake-up command from the first smart device and the second smart device. At this time, the target gateway device suppresses the response of the first smart device in the local area network to the wake-up command. Only after it is determined that there is a smart device in the first smart device that is used to respond to the wake-up command will the suppression of that smart device be released, and the suppression of other first smart devices in the local area network will continue. This avoids the smart devices in the target ring scenario being woken up at the same time and improves the control efficiency of the smart devices in the target scenario.

[0047] In the above steps, by using the collaborative determination method of the target gateway device and the server, the network fluctuation problem caused by the concurrent transmission of wake-up commands to the server in related technologies is avoided. This avoids the impact of network fluctuations on the determination of whether the smart device responds to the wake-up command, making the decision speed of smart devices responding to wake-up commands under the same gateway device faster and reducing the probability of simultaneous wake-up. For smart devices under different gateway devices, since devices in the same local area network make local area network decisions, the timeout caused by external network transmission is eliminated and the probability of simultaneous wake-up is also reduced.

[0048] As an optional embodiment, detecting whether a second smart device not connected to the local area network is deployed in the target scenario includes:

[0049] The first device list of the target gateway device is compared with the second device list of the server, wherein the first device list is used to record the smart devices connected to the target gateway device, and the second device list is used to record the smart devices deployed in the target scenario;

[0050] If the second device list includes a smart device that is not recorded in the first device list, it is determined that the second smart device is deployed in the target scenario.

[0051] Optionally, in this embodiment, the device list stores device information of the smart devices. The device information may include, but is not limited to, device identifiers, device addresses (such as IP (Internet Protocol Address), MAC (Media Access Control Address)), etc.

[0052] Optionally, in this embodiment, the device information recorded in the first device list may be reported by each first smart device to the target gateway device, or it may be obtained by the first smart device through device information broadcasting to obtain smart device information that is the same as its own local area network information. The target gateway device sends a device information acquisition request to any first smart device to obtain information of all first smart devices connected in the current local area network.

[0053] As an optional embodiment, comparing the first device list of the target gateway device with the second device list of the server includes:

[0054] Obtain the first device list and the second device list stored in the target gateway device;

[0055] The first device identifier recorded in the first device list is compared with the second device identifier recorded in the second device list. If the first device identifier and the second device identifier are not completely consistent, it is determined that the second device list includes smart devices not recorded in the first device list.

[0056] Optionally, in this embodiment, if the second device identifier recorded in the second device list includes all the first device identifiers recorded in the first device list, and the first device identifiers recorded in the first device list do not include all the second device identifiers recorded in the second device list, then it is determined that the first device identifier and the second device identifier are not completely consistent.

[0057] As an optional embodiment, before obtaining the first device list and the second device list stored by the target gateway device, the method further includes:

[0058] Receive a connection request from a third smart device, wherein the connection request is used to request that the third smart device be connected to the target gateway device;

[0059] In response to the connection request, the third smart device is recorded to obtain the first device list;

[0060] Send the target gateway device and the third smart device, which have a corresponding relationship, to the server;

[0061] The server receives and stores the second device list, wherein the second device list records gateway devices and smart devices with corresponding relationships in the target scenario.

[0062] Optionally, in this embodiment, the connection request of the third smart device may be received through, but is not limited to, a local area network or the Internet. For example, the third smart device initiates a connection request to the server, and the server transmits the connection request to the corresponding target gateway device through the network. Alternatively, the third smart device may also directly initiate a connection request to the target gateway device through Bluetooth or a local area network.

[0063] Figure 4 This is an optional equipment list maintenance diagram implemented according to this application, such as... Figure 4 As shown, the steps may include, but are not limited to, the following:

[0064] S401, the third intelligent device is powered on and is preparing to connect to the network (including connecting to the local area network of the target gateway device and connecting to the server via the Internet). At this time, the third intelligent device broadcasts to the target gateway device.

[0065] S402, the target gateway device discovers that a third smart device has joined the local area network. The target gateway device synchronizes the first device list stored on the gateway device. The first device list records the information of the smart devices connected to the target gateway device through the local area network of the target gateway device.

[0066] S403, the target gateway device synchronizes the first device list to all smart devices connected to the target gateway device. After receiving the first device list, each smart device parses the device list and checks whether there is any other device information that it does not have. Thus, each smart device in the local area network can obtain the device information (device IP / MAC, etc.) of other smart devices in the local area network.

[0067] S404: There is a heartbeat detection between smart devices within the local area network. Smart devices will send heartbeats to each other at fixed time intervals.

[0068] S405, when no device heartbeat is received within a fixed time interval, delete the device information of the smart device from the first device list stored in the target gateway device;

[0069] S406, When a third smart device connects to the network, it logs into the server;

[0070] S407 When the server detects that a third smart device has joined, it will update the device information of the third smart device to the second device list. The second device list stores the device information of all smart devices deployed in the target scene.

[0071] S408, the server transmits the second device list to the gateway devices deployed in the target scenario (including the target gateway device and other gateway devices mentioned above) via network broadcast;

[0072] S409, after receiving the second device list from the server, the target gateway device parses it and stores the second device list on the target gateway device. At this point, the gateway device in the target scenario stores the first device list and the second device list, which are used to determine and control the response wake-up commands of smart devices in the local area network.

[0073] As an optional embodiment, when there are multiple first smart devices, sending a determination request to the server connected to the target gateway device includes one of the following:

[0074] The determination request carrying multiple instruction response requests corresponding to multiple first smart devices is sent to the server;

[0075] A reference smart device is selected from a plurality of the first smart devices; a determination request carrying the instruction response request corresponding to the reference smart device is sent to the server.

[0076] Optionally, in this embodiment, the reference smart device can be selected from the first smart devices by filtering the first smart devices based on the instruction acquisition information obtained from the wake-up command acquired by the first smart device. This instruction acquisition information is used to indicate the positional relationship between the first smart device and the wake-up command initiator, thereby determining the reference smart device that satisfies the target positional relationship. For example, the wake-up command may include a wake-up action (the initiator's gesture or limb movement). The first smart device acquires the wake-up command through image acquisition. In this case, selecting the reference smart device from multiple first smart devices requires at least the following operations: determining the target image acquired by each first smart device, determining the angle value between the first smart device and the initiator based on the position of the initiator in the image, and / or determining the distance value between the first smart device and the initiator based on the clarity of the initiator in the image, determining the first smart device whose angle value is less than or equal to the target angle value as the reference smart device, and / or determining the first smart device whose distance value is less than or equal to the target distance value as the reference smart device.

[0077] As an optional embodiment, selecting the reference smart device from a plurality of the first smart devices includes:

[0078] Determine the wake word energy corresponding to each of the first smart devices, wherein the wake-up instruction includes a wake-up voice, and the wake word energy is used to indicate the clarity of the wake word in the wake-up voice collected by each of the first smart devices;

[0079] The first smart device whose corresponding wake word energy is greater than or equal to the target threshold is determined as the reference smart device.

[0080] Optionally, in this embodiment, the wake word energy is obtained by summing the energy of each sampling point in the wake-up voice collected by the first smart device. For example, if the wake-up voice is a 2-second voice with 32,000 sampling points, the energy of each sampling point is summed to obtain the wake word energy of the wake-up voice.

[0081] As an optional embodiment, after sending a determination request to the server connected to the target gateway device, the method further includes:

[0082] Receive a response instruction sent by the server in response to the determination request, wherein the response instruction is used to instruct the fourth smart device to respond to the wake-up instruction;

[0083] When the first smart device includes the fourth smart device, the fourth smart device is controlled to respond to the wake-up command, and other smart devices in the first smart device besides the fourth smart device are suppressed from responding to the wake-up command.

[0084] If the first smart device does not include the fourth smart device, the first smart device is suppressed from responding to the wake-up command.

[0085] Optionally, in this embodiment, the method of controlling the fourth smart device to respond to the wake-up command can be by sending a response command to the fourth smart device, or by sending a suppression release command to the fourth smart device. That is, one method is that before the fourth smart device is determined, all the first smart devices are in a suppressed state of responding to the wake-up command. Only after receiving the suppression release command can the suppression of the smart device's response to the wake-up command be released. Another method is that the smart device will only perform the operation of responding to the wake-up command after receiving the wake-up command sent by the gateway device. When the gateway device does not need the smart device to respond to the wake-up operation, it will not send any command to the smart device. Only when the device is determined to be the fourth smart device will a device wake-up command be sent to the fourth smart device, thereby controlling the fourth smart device to respond to the wake-up command.

[0086] Optionally, in this embodiment, the fourth smart device may be selected from the first and second smart devices based on the instruction acquisition information of the smart device that acquires the wake-up command. This instruction acquisition information is used to indicate the positional relationship between the smart device and the wake-up command initiator, thereby determining a reference smart device that meets the target positional relationship. For example, the wake-up command may include a wake-up action (the initiator's gesture or limb movement). The smart device acquires the wake-up command through image acquisition. In this case, selecting the fourth smart device from the first and second smart devices requires at least the following operations: determining the first image acquired by the first smart device and the second image acquired by the second smart device; determining the first angle value between the first smart device and the initiator and the second angle value between the second smart device and the initiator based on the position of the initiator in the first and second images; and / or determining the first distance value between the first smart device and the initiator and the second distance value between the second smart device and the initiator based on the clarity of the initiator in the image; identifying the smart device with an angle value less than or equal to the target angle value as the fourth smart device; and / or identifying the smart device with a distance value less than or equal to the target distance value as the fourth smart device.

[0087] As an optional embodiment, determining the smart device to respond to the wake-up command from the first smart devices includes: when there is only one first smart device, controlling the first smart device to respond to the wake-up command; when there are multiple first smart devices, selecting a fifth smart device from the multiple first smart devices; and controlling the fifth smart device to respond to the wake-up command.

[0088] Optionally, in this embodiment, before the target gateway device selects the fifth smart device from the first smart devices, the target gateway device will suppress the wake-up command of all the first smart devices through the local area network, and after selecting the fifth smart device to respond to the wake-up command, control the fifth smart device to respond to the wake-up command, and continue to suppress the wake-up command of other first smart devices.

[0089] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0090] Figure 5 This is a structural block diagram of a control device for a smart device according to an embodiment of this application; as shown below. Figure 5 As shown, the system includes: a receiving module 52, configured to receive an instruction response request sent by a first smart device in the target scene, wherein the instruction response request is used to request a response to a wake-up instruction collected by the first smart device, the target gateway device being deployed in the target scene, and the first smart device being connected to the local area network of the target gateway device; a detection module 54, configured to detect whether a second smart device not connected to the local area network is deployed in the target scene; a determination module 56, configured to determine, from the first smart devices, the smart device that responds to the wake-up instruction if the second smart device is not deployed in the target scene; and a first sending module 58, configured to send a determination request to a server connected to the target gateway device if the second smart device is deployed in the target scene, wherein the determination request is used to request the server to determine whether the first smart device responds to the wake-up instruction.

[0091] Through the above embodiments, a target gateway device is deployed in the target scenario. The first smart device is connected to the local area network (LAN) of the target gateway device. Thus, the first smart device can transmit instruction response requests to the target gateway device via the LAN. Furthermore, if the target gateway device detects that no second smart device is deployed in the target scenario, it can determine the smart device responding to the wake-up command from among the first smart devices deployed within the LAN. This avoids the impact of network jitter on determining whether the first smart device responds to the wake-up command and ensures the response speed to instruction response requests from the first smart devices within the LAN, improving the control efficiency for controlling the first smart devices responding to wake-up commands within the same LAN. If the target gateway device detects that a second smart device is deployed in the target scenario, it sends a determination request to the connected server, requesting the server to determine whether the first smart device responds to the wake-up command. This ensures the accuracy of the determination of whether the first smart device responds to the wake-up command and avoids erroneous control of the first smart device responding to the wake-up command. By adopting the above technical solution, the problem of low control efficiency in controlling smart devices in the target scene in response to wake-up commands in related technologies is solved, and the technical effect of improving the control efficiency of smart devices in the target scene in response to wake-up commands is achieved.

[0092] Optionally, the detection module includes: a comparison unit, configured to compare a first device list of the target gateway device with a second device list of the server, wherein the first device list is used to record smart devices connected to the target gateway device, and the second device list is used to record smart devices deployed in the target scenario; and a determination unit, configured to determine that the second smart device is deployed in the target scenario if the second device list includes a smart device not recorded in the first device list.

[0093] Optionally, the comparison unit is configured to: obtain the first device list and the second device list stored by the target gateway device; compare the first device identifier recorded in the first device list with the second device identifier recorded in the second device list, wherein, if the first device identifier and the second device identifier are not completely consistent, it is determined that the second device list includes smart devices not recorded in the first device list.

[0094] Optionally, the apparatus further includes: a receiving module, configured to receive a connection request from a third smart device before obtaining the first device list and the second device list stored in the target gateway device, wherein the connection request is used to request that the third smart device be connected to the target gateway device; a response module, configured to respond to the connection request, record the third smart device, and obtain the first device list; a second sending module, configured to send the target gateway device and the third smart device with corresponding relationships to the server; and a processing module, configured to receive and store the second device list sent by the server, wherein the second device list records the gateway devices and smart devices with corresponding relationships in the target scenario.

[0095] Optionally, when there are multiple first smart devices, the first sending module includes one of the following: a sending unit, configured to send the determination request carrying multiple instruction response requests corresponding to the multiple first smart devices to the server; and a processing unit, configured to filter out a reference smart device from the multiple first smart devices; and send the determination request carrying the instruction response request corresponding to the reference smart device to the server.

[0096] Optionally, the processing unit is configured to: determine the wake-up word energy corresponding to each of the first smart devices, wherein the wake-up instruction includes a wake-up voice, and the wake-up word energy is used to indicate the clarity of the wake-up word in the wake-up voice collected by each of the first smart devices; and determine the first smart devices whose corresponding wake-up word energy is greater than or equal to a target threshold as the reference smart devices.

[0097] Optionally, the apparatus further includes: a receiving module, configured to receive a response instruction sent by the server in response to the determination request after the determination request is sent to the server connected to the target gateway device, wherein the response instruction is used to instruct the fourth smart device to respond to the wake-up instruction; a control module, configured to control the fourth smart device to respond to the wake-up instruction and suppress other smart devices in the first smart device besides the fourth smart device from responding to the wake-up instruction when the first smart device includes the fourth smart device; and a suppression module, configured to suppress the first smart device from responding to the wake-up instruction when the first smart device does not include the fourth smart device.

[0098] Optionally, the determination module includes: a first control unit, configured to control the first smart device to respond to the wake-up command when the number of the first smart devices is one; and a second control unit, configured to select a fifth smart device from the multiple first smart devices when the number of the first smart devices is multiple, and control the fifth smart device to respond to the wake-up command.

[0099] Embodiments of this application also provide a storage medium including a stored program, wherein the program, when executed, performs the control method of the smart device described above.

[0100] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps: receiving an instruction response request sent by a first smart device in a target scenario, wherein the instruction response request is used to request a response to a wake-up instruction collected by the first smart device, the target gateway device is deployed in the target scenario, and the first smart device is connected to the local area network of the target gateway device; detecting whether a second smart device not connected to the local area network is deployed in the target scenario; if the second smart device is not deployed in the target scenario, determining from the first smart devices a smart device is used to respond to the wake-up instruction; if the second smart device is deployed in the target scenario, sending a determination request to a server connected to the target gateway device, wherein the determination request is used to request the server to determine whether the first smart device responds to the wake-up instruction.

[0101] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above-described embodiments of the control method for a smart device.

[0102] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0103] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program: receiving an instruction response request sent by a first intelligent device in the target scene, wherein the instruction response request is used to request a response to a wake-up instruction collected by the first intelligent device, the target gateway device is deployed in the target scene, and the first intelligent device is connected to the local area network of the target gateway device; detecting whether a second intelligent device not connected to the local area network is deployed in the target scene; if the second intelligent device is not deployed in the target scene, determining from the first intelligent devices an intelligent device for responding to the wake-up instruction; if the second intelligent device is deployed in the target scene, sending a determination request to a server connected to the target gateway device, wherein the determination request is used to request the server to determine whether the first intelligent device responds to the wake-up instruction.

[0104] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0105] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0106] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0107] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A control method for an intelligent device, characterized in that, Applied to target gateway devices, including: The system receives an instruction response request sent by a first intelligent device in the target scenario, wherein the instruction response request is used to request a response to a wake-up instruction collected by the first intelligent device, the target gateway device is deployed in the target scenario, and the first intelligent device is connected to the local area network of the target gateway device; Detect whether a second smart device not connected to the local area network is deployed in the target scenario; If the second smart device is not deployed in the target scenario, the smart device for responding to the wake-up command is determined from the first smart device; If the second smart device is detected to be deployed in the target scene, a determination request is sent to the server connected to the target gateway device. Sending a determination request to the server connected to the target gateway device includes: selecting a reference smart device from a plurality of first smart devices; sending the determination request carrying the instruction response request corresponding to the reference smart device to the server, wherein the reference smart device is selected from the first smart devices based on instruction acquisition information obtained by the first smart devices from collecting the wake-up instruction, the instruction acquisition information being used to indicate the positional relationship between the first smart devices and the wake-up instruction initiator, thereby determining a smart device that satisfies the target positional relationship, and the determination request being used to request the server to determine the smart device that responds to the wake-up instruction from the reference smart devices and the second smart devices.

2. The method according to claim 1, characterized in that, The detection of whether a second smart device not connected to the local area network is deployed in the target scenario includes: The first device list of the target gateway device is compared with the second device list of the server, wherein the first device list is used to record the smart devices connected to the target gateway device, and the second device list is used to record the smart devices deployed in the target scenario; If the second device list includes a smart device that is not recorded in the first device list, it is determined that the second smart device is deployed in the target scenario.

3. The method according to claim 2, characterized in that, The step of comparing the first device list of the target gateway device with the second device list of the server includes: Obtain the first device list and the second device list stored in the target gateway device; The first device identifier recorded in the first device list is compared with the second device identifier recorded in the second device list. If the first device identifier and the second device identifier are not completely consistent, it is determined that the second device list includes smart devices not recorded in the first device list.

4. The method according to claim 3, characterized in that, Before obtaining the first device list and the second device list stored by the target gateway device, the method further includes: Receive a connection request from a third smart device, wherein the connection request is used to request that the third smart device be connected to the target gateway device; In response to the connection request, the third smart device is recorded to obtain the first device list; Send the target gateway device and the third smart device, which have a corresponding relationship, to the server; The server receives and stores the second device list, wherein the second device list records gateway devices and smart devices with corresponding relationships in the target scenario.

5. The method according to claim 1, characterized in that, The step of selecting a reference smart device from a plurality of the first smart devices includes: Determine the wake word energy corresponding to each of the first smart devices, wherein the wake-up instruction includes a wake-up voice, and the wake word energy is used to indicate the clarity of the wake word in the wake-up voice collected by each of the first smart devices; The first smart device whose corresponding wake word energy is greater than or equal to the target threshold is determined as the reference smart device.

6. The method according to claim 1, characterized in that, After sending a determination request to the server connected to the target gateway device, the method further includes: Receive a response instruction sent by the server in response to the determination request, wherein the response instruction is used to instruct the fourth smart device to respond to the wake-up instruction; When the first smart device includes the fourth smart device, the fourth smart device is controlled to respond to the wake-up command, and other smart devices in the first smart device besides the fourth smart device are suppressed from responding to the wake-up command. If the first smart device does not include the fourth smart device, the first smart device is suppressed from responding to the wake-up command.

7. The method according to claim 1, characterized in that, The step of determining the smart device for responding to the wake-up command from the first smart device includes: When there is only one first smart device, control the first smart device to respond to the wake-up command; When there are multiple first smart devices, a fifth smart device is selected from the multiple first smart devices; the fifth smart device is controlled to respond to the wake-up command.

8. A control device for an intelligent device, characterized in that, Applied to target gateway devices, including: A receiving module is used to receive an instruction response request sent by a first intelligent device in the target scene, wherein the instruction response request is used to request a response to a wake-up instruction collected by the first intelligent device, the target gateway device is deployed in the target scene, and the first intelligent device is connected to the local area network of the target gateway device; The detection module is used to detect whether a second smart device not connected to the local area network is deployed in the target scene; The determination module is used to determine, from the first smart device, the smart device that responds to the wake-up command when it is detected that no second smart device is deployed in the target scene; The first sending module is used to send a determination request to the server connected to the target gateway device when the second smart device is detected to be deployed in the target scene. The first sending module includes: a processing unit, configured to filter out a reference smart device from a plurality of first smart devices; and send a determination request carrying an instruction response request corresponding to the reference smart device to the server, wherein the reference smart device is selected from the first smart devices based on instruction acquisition information obtained by the first smart devices from collecting the wake-up instruction, the instruction acquisition information being used to indicate the positional relationship between the first smart device and the wake-up instruction initiator, thereby determining a smart device that satisfies the target positional relationship, and the determination request being used to request the server to determine the smart device that responds to the wake-up instruction from the reference smart devices and the second smart devices.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 7.

10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • Method for controlling smart home equipment, server and gateway

    CN106227055A

  • Intelligent service method, device and equipment

    CN110457077A