Equipment control methods, devices, storage media and electronic devices

CN117768256BActive Publication Date: 2026-11-17QINGDAO HAIER TECH +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311732784.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-15
Publication Date
2026-11-17
Estimated Expiration
2043-12-15

AI Technical Summary

Technical Problem

[0004]本申请实施例提供了一种设备控制方法、装置、存储介质及电子装置,以至少解决相关技术中,在断网的情况下无法远程控制终端设备执行场景动作的问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117768256B_ABST
    Figure CN117768256B_ABST
Patent Text Reader

Abstract

This application discloses a device control method, apparatus, storage medium, and electronic device, relating to the field of smart home technology. The method includes: receiving a first acoustic signal sent by a first terminal device, wherein the first acoustic signal is used to control a second terminal device in a first scene; upon receiving the first acoustic signal, parsing a first scene identifier from the first acoustic signal to obtain the first scene identifier; if it is determined that the scene identifier configured on the second terminal device includes the first scene identifier, executing a first scene action, wherein the first scene action is an action configured on the second terminal device corresponding to the first scene identifier; and if it is determined that the second terminal device has completed executing the first scene action, sending a second acoustic signal to the first terminal device to indicate that the second terminal device has completed executing the first scene action. This solution solves the problem of being unable to remotely control a terminal device to execute scene actions when the network is offline.
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 device control method, apparatus, storage medium, and electronic device. Background Technology

[0002] Currently, smart devices in the home typically have scene control functions, such as controlling a smart speaker to play music when the user comes home. However, existing technologies rely on wireless networks to control smart devices to execute scene actions. In the event of a network outage or unstable network, users can only manually adjust the smart devices to achieve the device functions, and cannot continue to use the scene function to remotely control the devices, which greatly affects the user experience.

[0003] There is no effective solution yet to address the problem in related technologies where terminal devices cannot be remotely controlled to perform scene actions when the network is disconnected. Summary of the Invention

[0004] This application provides a device control method, apparatus, storage medium, and electronic device to at least solve the problem in the related art that terminal devices cannot be remotely controlled to perform scene actions when the network is disconnected.

[0005] According to one embodiment of this application, a device control method is provided, comprising: receiving a first acoustic signal sent by a first terminal device, wherein the first acoustic signal is used to control a second terminal device in a first scene; when the second terminal device receives the first acoustic signal, parsing out a first scene identifier of the first scene from the first acoustic signal; when it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, executing a first scene action, wherein the first scene action is an action configured by the second terminal device corresponding to the first scene identifier; and when it is determined that the second terminal device has completed executing the first scene action, sending a second acoustic signal to the first terminal device to indicate that the second terminal device has completed executing the first scene action.

[0006] In an exemplary embodiment, after receiving the first acoustic signal sent by the first terminal device, the method further includes: if it is determined that the second terminal device has not received the first acoustic signal and the third terminal device has received the first acoustic signal, receiving the first acoustic signal forwarded by the third terminal device and performing the first scene action; if it is determined that the second terminal device has completed performing the first scene action, forwarding the second acoustic signal to the first terminal device through the third terminal device.

[0007] In an exemplary embodiment, before receiving the first acoustic signal sent by the first terminal device, the method further includes: receiving a first operation instruction from the target object; configuring a first correspondence and a second correspondence on the second terminal device according to the first operation instruction, wherein the first correspondence is a correspondence between the first scene and the first scene identifier, and the second correspondence is a correspondence between the first scene action and the first scene identifier.

[0008] In an exemplary embodiment, before receiving the first acoustic signal sent by the first terminal device, the method further includes: receiving a second operation instruction from the target object; and controlling the second terminal device to send a third acoustic signal according to the second operation instruction, wherein the third acoustic signal carries a second scene identifier for controlling the terminal device in the second scene.

[0009] In an exemplary embodiment, before receiving the first acoustic signal sent by the first terminal device, the method further includes: receiving a fourth acoustic signal sent by a fourth terminal device, wherein the fourth terminal device includes a mobile terminal device; parsing network distribution information from the fourth acoustic signal, wherein the network distribution information includes: a device identifier of a network device, a network access password, and an acoustic network access authorization code; and sending an acoustic network access request to the network device corresponding to the device identifier according to the network distribution information, wherein the acoustic network access request carries the network access password and the acoustic network access authorization code.

[0010] In an exemplary embodiment, after sending an acoustic network access request to the network device corresponding to the device identifier according to the network distribution information, the method further includes: if it is determined that the second terminal device has failed to access the network, sending a fifth acoustic signal carrying the acoustic network access request to the fourth terminal device to instruct the fourth terminal device to forward the acoustic network access request to the cloud server; and if the fourth terminal device has received the response result of the cloud server to the acoustic network access request, receiving the response result forwarded by the fourth terminal device.

[0011] In an exemplary embodiment, parsing a first scene identifier of the first scene from the first acoustic signal includes: identifying the frequency of the first acoustic signal; determining a frequency array corresponding to the first acoustic signal based on the frequency; determining a string corresponding to the frequency array based on a preset configuration library, wherein the configuration library is used to configure the correspondence between frequencies and characters; and determining the first scene identifier of the first scene based on the string.

[0012] In an exemplary embodiment, after parsing the first scene identifier of the first scene from the first acoustic signal, the method further includes: if it is determined that the scene identifier configured by the second terminal device does not include the first scene identifier, forwarding the first acoustic signal to the fifth terminal device through the second terminal device to instruct the fifth terminal device to perform the first scene action.

[0013] According to another aspect of the embodiments of this application, a device control apparatus is also provided, comprising a receiving module for receiving a first acoustic signal sent by a first terminal device, wherein the first acoustic signal is used to control a second terminal device in a first scene; a parsing module for parsing a first scene identifier of the first scene from the first acoustic signal when the second terminal device receives the first acoustic signal; an execution module for executing a first scene action when it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, wherein the first scene action is an action configured by the second terminal device corresponding to the first scene identifier; and a response module for sending a second acoustic signal to the first terminal device when it is determined that the second terminal device has completed the first scene action, to indicate that the second terminal device has completed the first scene action.

[0014] 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 above-described device control method when running.

[0015] 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 above-described device control method through the computer program.

[0016] In this embodiment, after receiving the first acoustic signal sent by the first terminal device, the second terminal device parses out the first scene identifier, then executes the scene action under the first scene based on the configured scene identifier and scene action, and then sends a second acoustic signal to the first terminal device to report the completion status of the scene action. By adopting the above technical solution, the problem of being unable to remotely control the terminal device to execute scene actions when the network is disconnected is solved, thereby achieving the effect of remotely controlling the terminal device to execute scene actions even without a network. Attached Figure Description

[0017] 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.

[0018] 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.

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

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

[0021] Figure 3 This is a schematic diagram illustrating the conversion between frequency and character according to an embodiment of this application;

[0022] Figure 4 This is a frame diagram of a terminal device according to an embodiment of this application;

[0023] Figure 5 This is a schematic flowchart (I) of a device control method according to an embodiment of this application;

[0024] Figure 6 This is a schematic flowchart (II) of the device control method according to an embodiment of this application;

[0025] Figure 7 This is a structural block diagram of a device control apparatus according to an embodiment of this application. Detailed Implementation

[0026] 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.

[0027] 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.

[0028] According to one aspect of the embodiments of this application, a device control method is provided. This device control method is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligencehouse ecosystems. Optionally, in this embodiment, the above-mentioned device control 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.

[0029] 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.

[0030] This embodiment provides a device control method applied to the aforementioned terminal device. Figure 2 This is a flowchart of a device control method according to an embodiment of this application, which includes the following steps:

[0031] Step S202: Receive a first acoustic signal sent by the first terminal device, wherein the first acoustic signal is used to control the second terminal device in the first scenario;

[0032] Step S204: When the second terminal device receives the first sound wave signal, the first scene identifier of the first scene is parsed from the first sound wave signal.

[0033] Step S206: If it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, execute the first scene action, wherein the first scene action is the action configured by the second terminal device corresponding to the first scene identifier;

[0034] Step S208: If it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, execute the first scene action, wherein the first scene action is the action configured by the second terminal device corresponding to the first scene identifier.

[0035] Through the above steps, a first acoustic signal sent by a first terminal device is received, wherein the first acoustic signal is used to control a second terminal device in a first scenario; when the second terminal device receives the first acoustic signal, a first scenario identifier of the first scenario is parsed from the first acoustic signal; if it is determined that the scenario identifier configured by the second terminal device includes the first scenario identifier, a first scenario action is executed, wherein the first scenario action is an action configured by the second terminal device corresponding to the first scenario identifier; if it is determined that the second terminal device has completed executing the first scenario action, a second acoustic signal is sent to the first terminal device to indicate that the second terminal device has completed executing the first scenario action. This solves the problem in related technologies where it is impossible to remotely control a terminal device to execute scenario actions when the network is disconnected, thereby achieving the effect of remotely controlling a terminal device to execute scenario actions even without a network.

[0036] In an exemplary embodiment, after receiving the first acoustic signal sent by the first terminal device, the method further includes: if it is determined that the second terminal device has not received the first acoustic signal and the third terminal device has received the first acoustic signal, receiving the first acoustic signal forwarded by the third terminal device and performing the first scene action; if it is determined that the second terminal device has completed performing the first scene action, forwarding the second acoustic signal to the first terminal device through the third terminal device.

[0037] Optionally, if the second terminal device is unable to receive the first acoustic signal even when it is forwarded through the third terminal device, the third device may continue to forward the first acoustic signal to the fifth device, and then the fifth device may forward the first acoustic signal to the second terminal device.

[0038] In an exemplary embodiment, before receiving the first acoustic signal sent by the first terminal device, the method further includes: receiving a first operation instruction from the target object; configuring a first correspondence and a second correspondence on the second terminal device according to the first operation instruction, wherein the first correspondence is a correspondence between the first scene and the first scene identifier, and the second correspondence is a correspondence between the first scene action and the first scene identifier.

[0039] It should be noted that, for example, in the above embodiment, the second terminal device is configured with scene IDs (equivalent to scene identifiers) including 1 and 3, and scene actions including action 1 and action 2, where scene ID 1 corresponds to action 1, and scene ID 3 corresponds to action 2. When the second terminal device parses a scene ID of 1 from the first sound wave signal, it executes action 1. When the second terminal device parses a scene ID of 3 from the first sound wave signal, it executes action 2. When the second terminal device parses a scene ID of 2 from the first sound wave signal, it forwards the first sound wave signal to other terminal devices.

[0040] In an exemplary embodiment, before receiving the first acoustic signal sent by the first terminal device, the method further includes: receiving a second operation instruction from the target object; and controlling the second terminal device to send a third acoustic signal according to the second operation instruction, wherein the third acoustic signal carries a second scene identifier for controlling the terminal device in the second scene.

[0041] In an exemplary embodiment, before receiving the first acoustic signal sent by the first terminal device, the method further includes: receiving a fourth acoustic signal sent by a fourth terminal device, wherein the fourth terminal device includes a mobile terminal device; parsing network distribution information from the fourth acoustic signal, wherein the network distribution information includes: a device identifier of a network device, a network access password, and an acoustic network access authorization code; and sending an acoustic network access request to the network device corresponding to the device identifier according to the network distribution information, wherein the acoustic network access request carries the network access password and the acoustic network access authorization code.

[0042] It should be noted that in the above embodiments, the terminal device supports multiple network configuration methods, such as network configuration based on WIFI (wireless network) and Bluetooth. However, in the event of network failure, abnormal WIFI communication, or damage to the Bluetooth module, network access can still be performed through the above-mentioned acoustic wave network access method.

[0043] In an exemplary embodiment, after sending an acoustic network access request to the network device corresponding to the device identifier according to the network distribution information, the method further includes: if it is determined that the second terminal device has failed to access the network, sending a fifth acoustic signal carrying the acoustic network access request to the fourth terminal device to instruct the fourth terminal device to forward the acoustic network access request to the cloud server; and if the fourth terminal device has received the response result of the cloud server to the acoustic network access request, receiving the response result forwarded by the fourth terminal device.

[0044] Optionally, in the above embodiments, for example, if the second terminal device fails to access the network via sound waves, the network access request can be sent to a smartphone (equivalent to a fourth terminal device) via sound wave signals. Then, the smartphone directly binds the network device and the second terminal device on the cloud server according to the network access request, and then the smartphone responds to the second terminal device with the binding result via sound wave signals.

[0045] In an exemplary embodiment, parsing a first scene identifier of the first scene from the first acoustic signal includes: identifying the frequency of the first acoustic signal; determining a frequency array corresponding to the first acoustic signal based on the frequency; determining a string corresponding to the frequency array based on a preset configuration library, wherein the configuration library is used to configure the correspondence between frequencies and characters; and determining the first scene identifier of the first scene based on the string.

[0046] It is easy to understand that, for example, in the above embodiment, the character “a” is configured in the configuration library for a 700Hz sine wave, the character “1” is configured for an 800Hz sine wave, and the character “0” is configured for a 900Hz sine wave. Multiple single-frequency sine waves are identified from the first sound wave signal. Each sine wave has a different frequency. For example, a frequency array [700, 800, 900] is obtained based on multiple single-frequency sine waves, and the corresponding string is “a10”. Then, the first scene identifier is determined to be “a10”.

[0047] In an exemplary embodiment, after parsing the first scene identifier of the first scene from the first acoustic signal, the method further includes: if it is determined that the scene identifier configured by the second terminal device does not include the first scene identifier, forwarding the first acoustic signal to the fifth terminal device through the second terminal device to instruct the fifth terminal device to perform the first scene action.

[0048] To better understand the process of the above-described device control method, the implementation flow of the above-described device control method will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of this application.

[0049] This embodiment also provides a method for converting frequency and characters during device control. Figure 3 This is a schematic diagram illustrating the conversion between frequency and character according to an embodiment of this application, such as... Figure 3 As shown:

[0050] The sending terminal device first converts the information to be sent (i.e., a string encoded in UTF-8 format that can display Chinese information) into a string encoded in BASE64 format. The BASE64 encoding format includes uppercase and lowercase letters, numbers, symbols, and other characters. Based on the frequency corresponding to each character in the BASE64 encoded string, a frequency array is obtained. Then, a sine wave audio signal is generated based on the frequency array using a formula and sent.

[0051] The receiving terminal device first performs a Fourier transform on the received sinusoidal audio signal to obtain a frequency array. Then, it looks up the corresponding BASE64 encoded character for each frequency in the frequency array to obtain a BASE64 encoded string, and then converts the BASE64 encoded string into a UTF-8 encoded string.

[0052] The above embodiments enable communication between multiple terminal devices via acoustic signals, thereby enabling the sending and receiving of control signals from devices in the absence of a network.

[0053] In an optional embodiment, Figure 4 This is a frame diagram of a terminal device according to an embodiment of this application, such as... Figure 4 As shown: Terminal devices send messages to each other in the form of sound wave signals through the sound wave module. After receiving the message, the terminal device can forward the message or store it in the message queue. The event bus reads the scene event message in the message from the message queue and then executes the action or event in the corresponding scene.

[0054] In an optional embodiment, Figure 5 This is a schematic flowchart (I) of a device control method according to an embodiment of this application. Figure 5 The diagram illustrates the process of terminal equipment performing acoustic wave distribution, specifically as follows: Figure 5 As shown:

[0055] Step S501: The user clicks the "Sound Wave Network Access" button on the mobile application software;

[0056] Step S502: The mobile application requests a sound wave authorization code from the cloud server;

[0057] Step S503: The cloud server sends an acoustic authorization code to the mobile phone;

[0058] Step S504: The mobile application software sends the SSID (equivalent to network device identifier), network access password, and sound wave authorization code to the panel (equivalent to terminal device) in the form of sound waves;

[0059] Step S505: The panel saves the received SSID, network access password, and acoustic authorization code;

[0060] Step S506: The panel responds to the mobile phone's network configuration status. If the panel successfully connects to the network device based on the SSID, network access password, and acoustic authorization code, then step S506 is executed; otherwise, step S508 is executed.

[0061] Step S507: The terminal sends a device binding request to the cloud server through the network device;

[0062] Step S508: The cloud server responds to the panel with the binding result;

[0063] Step S509: The panel sends a request to the mobile phone via sound waves to assist in device binding;

[0064] Step S510: After receiving the panel binding request, the mobile application forwards it to the cloud server;

[0065] Step S511: The cloud server responds to the mobile phone with the binding result;

[0066] Step S512: The mobile phone forwards the binding result to the panel.

[0067] By following the steps above, terminal device binding can be completed through interaction between mobile network and cloud server, enabling device network configuration even when the terminal device has no network access.

[0068] In an optional embodiment, Figure 6 This is a schematic flowchart (II) of the device control method according to an embodiment of this application. Figure 6 The diagram illustrates the process of controlling devices via sound waves in the absence of a network. Panel gateway A (equivalent to the first terminal device) and panel gateway B (equivalent to the third terminal device) are within the sound wave signal transmission range. Panel gateway B and panel gateway C (equivalent to the second terminal device) are also within the sound wave signal transmission range, but the distance between panel gateway A and panel gateway C exceeds the sound wave signal transmission range, as shown in the diagram. Figure 6 As shown:

[0069] Step S601: Panel gateway B receives the acoustic wave signal (equivalent to the first acoustic wave signal) sent by panel gateway A, and parses the scene ID (equivalent to the scene identifier) ​​from the above acoustic wave signal;

[0070] Step S602: Panel gateway B detects that the locally configured scene ID includes the scene ID parsed above, and executes the scene action corresponding to the scene ID;

[0071] Step S603: After the panel gateway B completes the scene action, it sends an acoustic signal (equivalent to a second acoustic signal) to the panel gateway A in response to the execution result of the scene action;

[0072] It should be noted that steps S601 to S603 above describe the case where the scene ID configured locally by panel gateway B includes the scene ID parsed from the acoustic signal sent by panel gateway A. The following will describe another case in conjunction with steps S604 to S609, namely, the case where the scene ID configured locally by panel gateway B does not include the scene ID parsed from the acoustic signal sent by panel gateway A, and the scene ID configured locally by panel gateway C includes the scene ID parsed from the acoustic signal sent by panel gateway A.

[0073] Step S604: Panel gateway B receives the acoustic signal sent by panel gateway A and parses the scene ID from the acoustic signal.

[0074] Step S605: Panel gateway B detects that the locally configured scene ID does not include the scene ID parsed above;

[0075] Step S606: Panel gateway B forwards the aforementioned acoustic signal to panel gateway C;

[0076] Step S607: The panel gateway C detects that the locally configured scene ID includes the scene ID parsed above, executes the scene action corresponding to the scene ID, and then sends an acoustic signal to respond to the execution result of the scene action.

[0077] Step S608: Panel gateway B receives the acoustic response signal from panel gateway C. After analyzing the signal, it finds that it is not the acoustic response signal sent to panel gateway B, so it continues to forward the acoustic response signal from panel gateway C.

[0078] Step S609: Panel gateway A receives the scene action execution result from panel gateway C through the acoustic wave signal forwarded by panel gateway B.

[0079] The above embodiments solve the problem that smart terminal devices heavily rely on the network to realize scene functions. By using sound wave signals and relaying through terminal devices, the device scene coverage of the whole family can be realized, which improves the user experience of smart terminal devices in the event of network failure.

[0080] 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.

[0081] Figure 7 This is a structural block diagram of a device control apparatus according to an embodiment of this application; as shown below. Figure 7 As shown, it includes:

[0082] The receiving module 72 is used to receive a first acoustic signal sent by the first terminal device, wherein the first acoustic signal is used to control the second terminal device in the first scenario;

[0083] The parsing module 74 is used to parse the first scene identifier of the first scene from the first sound wave signal when the second terminal device receives the first sound wave signal;

[0084] The execution module 76 is configured to execute a first scene action when it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, wherein the first scene action is an action configured by the second terminal device corresponding to the first scene identifier;

[0085] The response module 78 is used to send a second acoustic signal to the first terminal device when it is determined that the second terminal device has completed the first scene action, so as to indicate that the second terminal device has completed the first scene action.

[0086] The aforementioned device receives a first acoustic signal sent by a first terminal device, wherein the first acoustic signal is used to control a second terminal device in a first scene. When the second terminal device receives the first acoustic signal, it parses a first scene identifier of the first scene from the first acoustic signal. If it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, it executes a first scene action, wherein the first scene action is an action configured by the second terminal device corresponding to the first scene identifier. If it is determined that the second terminal device has completed executing the first scene action, it sends a second acoustic signal to the first terminal device to indicate that the second terminal device has completed executing the first scene action. This solves the problem in related technologies where it is impossible to remotely control a terminal device to execute scene actions when the network is disconnected, thereby achieving the effect of remotely controlling a terminal device to execute scene actions even without a network connection.

[0087] In an exemplary embodiment, the receiving module 72 is further configured to: receive the first sound wave signal forwarded by the third terminal device and perform the first scene action when it is determined that the second terminal device has not received the first sound wave signal and the third terminal device has received the first sound wave signal; and forward the second sound wave signal to the first terminal device through the third terminal device when it is determined that the second terminal device has completed the first scene action.

[0088] In an exemplary embodiment, the receiving module 72 is further configured to: receive a first operation instruction for the target object; configure a first correspondence and a second correspondence on the second terminal device according to the first operation instruction, wherein the first correspondence is a correspondence between the first scene and the first scene identifier, and the second correspondence is a correspondence between the first scene action and the first scene identifier.

[0089] In an exemplary embodiment, the receiving module 72 is further configured to: receive a second operation instruction from the target object; and control the second terminal device to send a third acoustic signal according to the second operation instruction, wherein the third acoustic signal carries a second scene identifier for controlling the terminal device in the second scene.

[0090] In one exemplary embodiment, the receiving module 72 further includes: a receiving unit, configured to receive a fourth acoustic signal sent by a fourth terminal device, wherein the fourth terminal device includes a mobile terminal device; a parsing unit, configured to parse network distribution information from the fourth acoustic signal, wherein the network distribution information includes: a device identifier of a network device, a network access password, and an acoustic network access authorization code; and a sending unit, configured to send an acoustic network access request to the network device corresponding to the device identifier according to the network distribution information, wherein the acoustic network access request carries the network access password and the acoustic network access authorization code.

[0091] In an exemplary embodiment, the sending unit is further configured to: if it is determined that the second terminal device has failed to access the network, send a fifth acoustic signal carrying the acoustic network access request to the fourth terminal device, so as to instruct the fourth terminal device to forward the acoustic network access request to the cloud server; and if the fourth terminal device has received the response result of the cloud server to the acoustic network access request, receive the response result forwarded by the fourth terminal device.

[0092] In an exemplary embodiment, the parsing module 74 is further configured to: identify the frequency of the first acoustic signal; determine a frequency array corresponding to the first acoustic signal based on the frequency; determine a string corresponding to the frequency array based on a preset configuration library, wherein the configuration library is used to configure the correspondence between frequencies and characters; and determine the first scene identifier of the first scene based on the string.

[0093] In an exemplary embodiment, the parsing module 74 is further configured to: after parsing the first scene identifier of the first scene from the first acoustic signal, the method further includes: if it is determined that the scene identifier configured by the second terminal device does not include the first scene identifier, forwarding the first acoustic signal to the fifth terminal device through the second terminal device to instruct the fifth terminal device to perform the first scene action.

[0094] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the methods described above when it is run.

[0095] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:

[0096] S1, receiving a first acoustic signal sent by a first terminal device, wherein the first acoustic signal is used to control a second terminal device in a first scenario;

[0097] S2, when the second terminal device receives the first sound wave signal, the first scene identifier of the first scene is parsed from the first sound wave signal;

[0098] S3, if it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, execute the first scene action, wherein the first scene action is the action configured by the second terminal device corresponding to the first scene identifier;

[0099] S4, if it is determined that the second terminal device has completed the first scene action, a second sound wave signal is sent to the first terminal device to indicate that the second terminal device has completed the first scene action.

[0100] 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 method embodiments.

[0101] 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.

[0102] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0103] S1, receiving a first acoustic signal sent by a first terminal device, wherein the first acoustic signal is used to control a second terminal device in a first scenario;

[0104] S2, when the second terminal device receives the first sound wave signal, the first scene identifier of the first scene is parsed from the first sound wave signal;

[0105] S3, if it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, execute the first scene action, wherein the first scene action is the action configured by the second terminal device corresponding to the first scene identifier;

[0106] S4, if it is determined that the second terminal device has completed the first scene action, a second sound wave signal is sent to the first terminal device to indicate that the second terminal device has completed the first scene action.

[0107] 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.

[0108] 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.

[0109] 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.

[0110] 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 device control method, characterized in that, include: Receive a first acoustic signal sent by a first terminal device, wherein the first acoustic signal is used to control a second terminal device in a first scenario; When the second terminal device receives the first acoustic signal, the first scene identifier of the first scene is parsed from the first acoustic signal; If it is determined that the scene identifier configured in the second terminal device includes the first scene identifier, a first scene action is executed, wherein the first scene action is an action configured in the second terminal device that corresponds to the first scene identifier; If it is determined that the second terminal device has completed the first scene action, a second sound wave signal is sent to the first terminal device to indicate that the second terminal device has completed the first scene action; The step of parsing the first scene identifier of the first scene from the first sound wave signal includes: identifying the frequency of the first sound wave signal; determining the frequency array corresponding to the first sound wave signal based on the frequency; determining the string corresponding to the frequency array based on a preset configuration library, wherein the configuration library is used to configure the correspondence between frequency and character; and determining the first scene identifier of the first scene based on the string.

2. The equipment control method according to claim 1, characterized in that, After receiving the first acoustic signal sent by the first terminal device, the method further includes: If it is determined that the second terminal device has not received the first sound wave signal, and the third terminal device has received the first sound wave signal, the first sound wave signal forwarded by the third terminal device is received, and the first scene action is executed. Upon determining that the second terminal device has completed the first scene action, the second sound wave signal is forwarded to the first terminal device via the third terminal device.

3. The equipment control method according to claim 1, characterized in that, Before receiving the first acoustic signal sent by the first terminal device, the method further includes: Receive the first operation instruction from the target object; Configure a first correspondence and a second correspondence on the second terminal device according to the first operation instruction, wherein the first correspondence is the correspondence between the first scene and the first scene identifier, and the second correspondence is the correspondence between the first scene action and the first scene identifier.

4. The equipment control method according to claim 1, characterized in that, Before receiving the first acoustic signal sent by the first terminal device, the method further includes: Receive the second operation instruction from the target object; The second operation instruction controls the second terminal device to send a third acoustic signal, wherein the third acoustic signal carries a second scene identifier and is used to control the terminal device in the second scene.

5. The equipment control method according to claim 1, characterized in that, Before receiving the first acoustic signal sent by the first terminal device, the method further includes: Receive a fourth acoustic signal sent by a fourth terminal device, wherein the fourth terminal device includes: a mobile terminal device; The distribution network information is extracted from the fourth acoustic signal, wherein the distribution network information includes: the device identifier of the network device, the network access password, and the acoustic network access authorization code; According to the network distribution information, a sound wave network access request is sent to the network device corresponding to the device identifier, wherein the sound wave network access request carries the network access password and the sound wave network access authorization code.

6. The equipment control method according to claim 5, characterized in that, After sending an acoustic network access request to the network device corresponding to the device identifier based on the distribution network information, the method further includes: If the second terminal device fails to access the network, a fifth acoustic signal carrying the acoustic network access request is sent to the fourth terminal device to instruct the fourth terminal device to forward the acoustic network access request to the cloud server. If the fourth terminal device has received the response result from the cloud server for the acoustic wave network access request, the fourth terminal device shall receive the response result forwarded by the fourth terminal device.

7. The equipment control method according to claim 1, characterized in that, After parsing the first scene identifier of the first scene from the first acoustic signal, the method further includes: If the first scene identifier is not included in the scene identifier configured by the second terminal device, the first sound wave signal is forwarded from the second terminal device to the fifth terminal device to instruct the fifth terminal device to perform the first scene action.

8. A device control apparatus, characterized in that, include: A receiving module is used to receive a first acoustic signal sent by a first terminal device, wherein the first acoustic signal is used to control a second terminal device in a first scenario; The parsing module is used to parse the first scene identifier of the first scene from the first sound wave signal when the second terminal device receives the first sound wave signal; An execution module is configured to execute a first scene action when it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, wherein the first scene action is an action configured by the second terminal device corresponding to the first scene identifier; The response module is used to send a second acoustic signal to the first terminal device when it is determined that the second terminal device has completed the first scene action, so as to indicate that the second terminal device has completed the first scene action; The parsing module is further configured to identify the frequency of the first acoustic signal, determine the frequency array corresponding to the first acoustic signal based on the frequency, determine the string corresponding to the frequency array based on a preset configuration library, wherein the configuration library is used to configure the correspondence between frequency and character, and determine the first scene identifier of the first scene based on the string.

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 described in 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 described in any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • System and method for connecting network between devices

    CN106487620A

  • Information interaction method based on sound waves, electronic equipment and server

    CN107786282A