CN117768256A - Equipment control method, device, storage medium and electronic device - Google Patents

Equipment control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN117768256A
CN117768256A CN202311732784.2A CN202311732784A CN117768256A CN 117768256 A CN117768256 A CN 117768256A CN 202311732784 A CN202311732784 A CN 202311732784A CN 117768256 A CN117768256 A CN 117768256A
Authority
CN
China
Prior art keywords
scene
terminal equipment
wave signal
sound wave
action
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311732784.2A
Other languages
Chinese (zh)
Inventor
郭孝强
邓邱伟
尹飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202311732784.2A priority Critical patent/CN117768256A/en
Publication of CN117768256A publication Critical patent/CN117768256A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application discloses a device control method, a device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the method comprises the following steps: receiving a first sound wave signal sent by a first terminal device, wherein the first sound wave signal is used for controlling a second terminal device in a first scene; under the condition that the second terminal equipment receives the first sound wave signal, a first scene identification of a first scene is analyzed from the first sound wave signal; executing a first scene action under the condition that the scene identifier configured by the second terminal equipment comprises the first scene identifier, wherein the first scene action is the action configured by the second terminal equipment and corresponding to the first scene identifier; and under the condition that the second terminal equipment is determined to finish executing the first scene action, sending a second sound signal to the first terminal equipment so as to indicate that the second terminal equipment is determined to finish executing the first scene action. By adopting the scheme, the problem that the terminal equipment cannot be remotely controlled to execute scene actions under the condition of network disconnection is solved.

Description

Equipment control method, device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart families, in particular to a device control method, a device, a storage medium and an electronic device.
Background
At present, intelligent devices in families generally have scene control functions, such as controlling intelligent sound to play music when a user returns home, but in the prior art, the intelligent devices are controlled by a wireless network to execute scene actions, and under the condition of network disconnection or unstable network, the intelligent devices can only be manually adjusted by the user to realize device functions, so that the remote control devices with the scene functions cannot be continuously used, and the user experience is very influenced.
Aiming at the problem that in the related art, the terminal equipment cannot be remotely controlled to execute scene actions under the condition of network disconnection, no effective solution has been proposed yet.
Disclosure of Invention
The embodiment of the application provides a device control method, a device, a storage medium and an electronic device, which are used for at least solving the problem that in the related art, terminal equipment cannot be remotely controlled to execute scene actions under the condition of network disconnection.
According to an embodiment of the present application, there is provided an apparatus control method including: receiving a first sound wave signal sent by a first terminal device, wherein the first sound wave signal is used for controlling a second terminal device in a first scene; under the condition that the second terminal equipment receives the first sound wave signal, a first scene identification of the first scene is analyzed from the first sound wave signal; executing a first scene action under the condition that the scene identifier configured by the second terminal equipment comprises the first scene identifier, wherein the first scene action is the action configured by the second terminal equipment and corresponding to the first scene identifier; and under the condition that the second terminal equipment is determined to finish executing the first scene action, sending a second sound signal to the first terminal equipment so as to indicate that the second terminal equipment is determined to finish executing the first scene action.
In an exemplary embodiment, after receiving the first acoustic signal sent by the first terminal device, the method further includes: receiving the first sound wave signal forwarded by third terminal equipment and executing the first scene action under the condition that the second terminal equipment does not receive the first sound wave signal and the third terminal equipment receives the first sound wave signal; and forwarding the second sound wave signal to the first terminal equipment through the third terminal equipment under the condition that the second terminal equipment is determined to finish executing the first scene action.
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 of a target object; and configuring a first corresponding relation and a second corresponding relation on the second terminal equipment according to the first operation instruction, wherein the first corresponding relation is the corresponding relation between the first scene and the first scene identifier, and the second corresponding relation is the corresponding relation between the first scene action and the first scene identifier.
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 of the target object; and controlling the second terminal equipment to send a third sound wave signal according to the second operation instruction, wherein the third sound wave signal carries a second scene identifier and is used for controlling the terminal equipment in a second scene.
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, where the fourth terminal device includes: a mobile terminal device; analyzing distribution network information from the fourth acoustic wave signal, wherein the distribution network information comprises: a device identifier, a network access password and an acoustic network access authorization code of the network device; and sending an acoustic network access request to the network equipment corresponding to the equipment identifier according to the network allocation information, wherein the acoustic network access request carries the network access password and the acoustic network access authorization code.
In an exemplary embodiment, after sending an acoustic network access request to the network device corresponding to the device identifier according to the network configuration information, the method further includes: under the condition that the second terminal equipment fails to access the network, a fifth sound wave signal carrying the sound wave access request is sent to the fourth terminal equipment so as to instruct the fourth terminal equipment to forward the sound wave access request to a cloud server; and receiving the response result forwarded by the fourth terminal equipment under the condition that the fourth terminal equipment receives the response result of the cloud server to the acoustic network access request.
In an exemplary embodiment, the analyzing the first scene identifier of the first scene from the first acoustic wave signal includes: identifying the frequency of the first sound wave signal, and determining a frequency array corresponding to the first sound wave signal according to the frequency; determining a character string corresponding to the frequency array according to a preset configuration library, wherein the configuration library is used for configuring the corresponding relation between the frequency and the characters; and determining the first scene identification of the first scene according to the character string.
In an exemplary embodiment, after the first scene identification of the first scene is parsed from the first acoustic signal, the method further includes: and under the condition that the scene identifier configured by the second terminal equipment does not comprise the first scene identifier, forwarding the first sound wave signal to fifth terminal equipment through the second terminal equipment so as to instruct the fifth terminal equipment to execute the first scene action.
According to another aspect of the embodiments of the present application, there is further provided an apparatus control device, a receiving module, configured to receive a first acoustic signal sent by a first terminal device, where the first acoustic signal is used to control a second terminal device in a first scene; the analysis module is used for analyzing a first scene identifier of the first scene from the first sound wave signal under the condition that the second terminal equipment receives the first sound wave signal; an execution module, 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, where the first scene action is an action configured by the second terminal device and corresponding to the first scene identifier; and the response module is used for sending a second sound signal to the first terminal equipment under the condition that the second terminal equipment is determined to finish executing the first scene action, so as to indicate that the second terminal equipment is determined to finish executing the first scene action.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described device control method when run.
According to still another aspect of the embodiments of the present application, there is further provided an electronic apparatus including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above-mentioned device control method through the computer program.
In the embodiment of the application, after receiving the first acoustic signal sent by the first terminal device, the second terminal device analyzes the first scene identifier from the first acoustic signal, then, after executing the scene action under the first scene based on the configured scene identifier and the scene action, sends a second acoustic signal to feed back the scene action completion condition to the first terminal device. By adopting the technical scheme, the problem that the remote control terminal equipment cannot execute the scene action under the condition of network disconnection is solved, and the effect that the remote control terminal equipment executes the scene action under the condition of no network is further achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a device control method according to an embodiment of the present application;
FIG. 2 is a flow chart of a device control method according to an embodiment of the present application;
FIG. 3 is a frequency versus character conversion schematic according to an embodiment of the present application;
fig. 4 is a frame diagram of a terminal device according to an embodiment of the present application;
FIG. 5 is a schematic flow chart diagram (one) of a device control method according to an embodiment of the present application;
FIG. 6 is a schematic flow chart diagram (II) of a device control method according to an embodiment of the present application;
fig. 7 is a block diagram of a device control apparatus according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, there is provided an apparatus control method. The equipment control method is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described device control method may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, an apparatus control method is provided and applied to the terminal apparatus, and fig. 2 is a flowchart of the apparatus control method according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, receiving a first sound wave signal sent by a first terminal device, wherein the first sound wave signal is used for controlling a second terminal device in a first scene;
step S204, under the condition that the second terminal equipment receives the first sound wave signal, a first scene identification of the first scene is analyzed from the first sound wave signal;
step S206, executing a first scene action when it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, where the first scene action is an action configured by the second terminal device and corresponding to the first scene identifier;
step S208, executing a first scene action when it is determined that the scene identifier configured by the second terminal device includes the first scene identifier, where the first scene action is an action configured by the second terminal device and corresponding to the first scene identifier.
Through the steps, a first sound wave signal sent by a first terminal device is received, wherein the first sound wave signal is used for controlling a second terminal device in a first scene; under the condition that the second terminal equipment receives the first sound wave signal, a first scene identification of the first scene is analyzed from the first sound wave signal; executing a first scene action under the condition that the scene identifier configured by the second terminal equipment comprises the first scene identifier, wherein the first scene action is the action configured by the second terminal equipment and corresponding to the first scene identifier; and under the condition that the second terminal equipment is determined to finish executing the first scene action, sending a second sound signal to the first terminal equipment so as to indicate that the second terminal equipment is determined to finish executing the first scene action. The problem that in the related art, the remote control terminal equipment cannot execute the scene action under the condition of network disconnection is solved, and the effect that the remote control terminal equipment executes the scene action under the condition of no network is achieved.
In an exemplary embodiment, after receiving the first acoustic signal sent by the first terminal device, the method further includes: receiving the first sound wave signal forwarded by third terminal equipment and executing the first scene action under the condition that the second terminal equipment does not receive the first sound wave signal and the third terminal equipment receives the first sound wave signal; and forwarding the second sound wave signal to the first terminal equipment through the third terminal equipment under the condition that the second terminal equipment is determined to finish executing the first scene action.
Optionally, if the second terminal device cannot receive the first acoustic signal when the second terminal device forwards the first acoustic signal through the third terminal device, the third device may continuously forward the first acoustic signal to the fifth device, and then the fifth device forwards the first acoustic signal to the second terminal device.
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 of a target object; and configuring a first corresponding relation and a second corresponding relation on the second terminal equipment according to the first operation instruction, wherein the first corresponding relation is the corresponding relation between the first scene and the first scene identifier, and the second corresponding relation is the corresponding relation between the first scene action and the first scene identifier.
It should be noted that, for example, in the above embodiment, the second terminal device is configured with a scene id (corresponding to a scene identifier) including 1 and 3, and the scene action includes an action 1 and an action 2, where the scene id is 1 corresponds to the action 1, and the scene id is 3 corresponds to the action 2. And when the scene id analyzed by the second terminal equipment from the first sound wave signal is 1, executing action 1. And when the scene id analyzed by the second terminal equipment from the first sound wave signal is 3, executing action 2. And when the scene id analyzed by the second terminal equipment from the first sound wave signal is 2, forwarding the first sound wave signal to other terminal equipment.
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 of the target object; and controlling the second terminal equipment to send a third sound wave signal according to the second operation instruction, wherein the third sound wave signal carries a second scene identifier and is used for controlling the terminal equipment in a second scene.
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, where the fourth terminal device includes: a mobile terminal device; analyzing distribution network information from the fourth acoustic wave signal, wherein the distribution network information comprises: a device identifier, a network access password and an acoustic network access authorization code of the network device; and sending an acoustic network access request to the network equipment corresponding to the equipment identifier according to the network allocation information, wherein the acoustic network access request carries the network access password and the acoustic network access authorization code.
It should be noted that, in the above embodiment, the terminal device supports multiple network configuration modes, for example, network configuration based on WIFI (wireless network) and bluetooth, but when the network fails, WIFI communication is abnormal, or the bluetooth module is damaged, network access can be performed through the above-mentioned mode of network access by sound waves.
In an exemplary embodiment, after sending an acoustic network access request to the network device corresponding to the device identifier according to the network configuration information, the method further includes: under the condition that the second terminal equipment fails to access the network, a fifth sound wave signal carrying the sound wave access request is sent to the fourth terminal equipment so as to instruct the fourth terminal equipment to forward the sound wave access request to a cloud server; and receiving the response result forwarded by the fourth terminal equipment under the condition that the fourth terminal equipment receives the response result of the cloud server to the acoustic network access request.
Optionally, in the foregoing embodiment, for example, in the case that the second terminal device fails to access to the network through the acoustic wave, the network access request may be sent to the smart phone (corresponding to the fourth terminal device) through the acoustic wave signal, then the mobile phone directly binds the network device and the second terminal device at the cloud server according to the network access request, and then the mobile phone responds to the binding result to the second terminal device through the acoustic wave signal.
In an exemplary embodiment, the analyzing the first scene identifier of the first scene from the first acoustic wave signal includes: identifying the frequency of the first sound wave signal, and determining a frequency array corresponding to the first sound wave signal according to the frequency; determining a character string corresponding to the frequency array according to a preset configuration library, wherein the configuration library is used for configuring the corresponding relation between the frequency and the characters; and determining the first scene identification of the first scene according to the character string.
It is to be readily understood that, for example, in the above embodiment, the sine wave correspondence character "a" of 700HZ, the sine wave correspondence character "1" of 800HZ, the sine wave correspondence character "0" of 900HZ are configured in the configuration library, a plurality of sine waves of single frequency are identified from the first acoustic wave signal, each sine wave has a different frequency, for example, one frequency array is obtained from the plurality of sine waves of single frequency [700, 800, 900], the corresponding character string is "a10", and then the first scene is identified as "a10" according to the determination.
In an exemplary embodiment, after the first scene identification of the first scene is parsed from the first acoustic signal, the method further includes: and under the condition that the scene identifier configured by the second terminal equipment does not comprise the first scene identifier, forwarding the first sound wave signal to fifth terminal equipment through the second terminal equipment so as to instruct the fifth terminal equipment to execute the first scene action.
In order to better understand the process of the device control method, the following description is provided with reference to an optional embodiment to describe a flow of a method for implementing the device control, but the method is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a method for converting frequency and character in a device control process is further provided, and fig. 3 is a schematic diagram of frequency and character conversion according to an embodiment of the present application, as shown in fig. 3:
the terminal equipment at the transmitting end firstly transcodes the information to be transmitted (namely, the character string with the coding format of UTF-8 and the displayable Chinese information) into the character string with the coding format of BASE64, wherein the BASE64 coding format comprises characters such as case letters, numbers, symbol sets and the like, a frequency array is further obtained according to the frequency corresponding to each character in the character string with the coding format of BASE64, and then a sine wave audio signal is generated according to the frequency array through a formula and is transmitted.
The terminal equipment of the receiving end firstly carries out Fourier transform on the received sine wave audio signal to obtain a frequency array, then searches for the corresponding character of the BASE64 coding format according to each frequency in the frequency array to obtain a character string of the BASE64 coding format, and further converts the character string of the BASE64 coding format into a character string of the UTF-8 coding format.
Through the embodiment, mutual communication among a plurality of terminal devices can be realized in a sound wave signal mode, and further, control signals of transmitting and receiving devices under the condition of no network are realized.
In an alternative embodiment, fig. 4 is a frame diagram of a terminal device according to an embodiment of the present application, as shown in fig. 4: the terminal equipment receives the information and can forward the information or store the information into an information queue, and the event bus reads the scene event information in the information from the information queue and then executes the action or event under the corresponding scene.
In an alternative embodiment, fig. 5 is a schematic flowchart (one) of a device control method according to an embodiment of the present application, and fig. 5 illustrates a process of performing acoustic wave network allocation by a terminal device, specifically shown in fig. 5:
step S501: clicking an acoustic wave network access button on the mobile phone application software by a user;
step S502: the mobile phone application software requests the sound wave authorization code from the cloud server;
step S503: the cloud server responds to the sound wave authorization code to the mobile phone;
step S504: the mobile phone application software transmits SSID (corresponding to network equipment identifier), network access password and acoustic authorization code to the panel (corresponding to terminal equipment) in acoustic mode;
step S505: the panel stores the received SSID, the network access password and the acoustic authorization code;
step S506: the panel replies the mobile phone network distribution condition, if the panel is successfully connected to the network equipment according to the SSID, the network access password and the acoustic authorization code, the step S506 is executed, otherwise, the step S508 is executed;
step S507: the terminal sends a device binding request to a cloud server through network devices;
step S508: the cloud server responds to the binding result to the panel;
step S509: the panel sends a request for assisting in equipment binding to the mobile phone through sound waves;
step S510: the mobile phone application program receives the binding request of the panel and then forwards the binding request to the cloud server;
step S511: the cloud server responds to the binding result to the mobile phone;
step S512: the mobile phone forwards the binding result to the panel.
Through the steps, the binding of the terminal equipment can be completed through interaction between the mobile phone network and the cloud server, so that the operation of equipment network allocation is realized under the condition that the terminal equipment is not networked.
In an alternative embodiment, fig. 6 is a schematic flow chart (two) of a device control method according to an embodiment of the present application, and in fig. 6, a process of passing through an acoustic wave control device in the absence of a network is illustrated, where a panel gateway a (corresponding to a first terminal device) and a panel gateway B (corresponding to a third terminal device) are in an acoustic wave signal transmission range, and a panel gateway B and a panel gateway C (corresponding to a second terminal device) are also in an acoustic wave signal transmission range, but a distance between the panel gateway a and the panel gateway C is beyond the acoustic wave signal transmission range, as specifically illustrated in fig. 6:
step S601: the panel gateway B receives the sound wave signal (corresponding to the first sound wave signal) sent by the panel gateway A, and analyzes the scene id (corresponding to the scene identifier) from the sound wave signal;
step S602: the panel gateway B detects that the locally configured scene id comprises the resolved scene id, and executes scene actions corresponding to the scene id;
step S603: after the panel gateway B executes the scene action, sending an acoustic wave signal (equivalent to a second acoustic wave signal) to the panel gateway A to respond to the execution result of the scene action;
it should be noted that, the above-mentioned step S601 to step S603 illustrate a case where the scene id locally configured by the panel gateway B includes the scene id parsed from the acoustic wave signal transmitted by the panel gateway a, and another case will be described below in connection with step S604 to step S609, that is, a case where the scene id locally configured by the panel gateway B does not include the scene id parsed from the acoustic wave signal transmitted by the panel gateway a, and the scene id locally configured by the panel gateway C includes the scene id parsed from the acoustic wave signal transmitted by the panel gateway a.
Step S604: the panel gateway B receives the sound wave signals sent by the panel gateway A, and analyzes the scene id from the sound wave signals;
step S605: the panel gateway B detects that the locally configured scene id does not comprise the resolved scene id;
step S606: the panel gateway B forwards the sound wave signals to the panel gateway C;
step S607: the panel gateway C detects that the locally configured scene id comprises the resolved scene id, and sends an execution result of the sound wave signal response scene action after executing the scene action corresponding to the scene id;
step S608: the panel gateway B receives the sound wave response signal of the panel gateway C, and finds out that the sound wave response signal is not responded to the panel gateway B after analyzing the signal, so that the sound wave response signal of the panel gateway C is continuously forwarded;
step S609: the panel gateway A receives the scene action execution result responded by the panel gateway C through the forwarded sound wave signals of the panel gateway B.
Through the embodiment, the problem that the intelligent terminal equipment seriously depends on a network to realize scene functions is solved, equipment scene coverage of the whole family can be realized by means of relay of the terminal equipment through sound wave signals, and the use experience of the intelligent terminal equipment of a user under network faults is improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
Fig. 7 is a block diagram of a device control apparatus according to an embodiment of the present application; as shown in fig. 7, includes:
a receiving module 72, configured to receive a first acoustic signal sent by a first terminal device, where the first acoustic signal is used to control a second terminal device in a first scenario;
the parsing module 74 is configured to parse 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 76, 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, where the first scene action is an action configured by the second terminal device and corresponding to the first scene identifier;
and a response module 78, configured to send a second acoustic signal to the first terminal device to indicate that the second terminal device has performed the first scene action, if it is determined that the second terminal device has performed the first scene action.
Through the device, a first sound wave signal sent by the first terminal equipment is received, wherein the first sound wave signal is used for controlling the second terminal equipment in the first scene; under the condition that the second terminal equipment receives the first sound wave signal, a first scene identification of the first scene is analyzed from the first sound wave signal; executing a first scene action under the condition that the scene identifier configured by the second terminal equipment comprises the first scene identifier, wherein the first scene action is the action configured by the second terminal equipment and corresponding to the first scene identifier; and under the condition that the second terminal equipment is determined to finish executing the first scene action, sending a second sound signal to the first terminal equipment so as to indicate that the second terminal equipment is determined to finish executing the first scene action. The problem that in the related art, the remote control terminal equipment cannot execute the scene action under the condition of network disconnection is solved, and the effect that the remote control terminal equipment executes the scene action under the condition of no network is achieved.
In one exemplary embodiment, the receiving module 72 is further configured to: receiving the first sound wave signal forwarded by third terminal equipment and executing the first scene action under the condition that the second terminal equipment does not receive the first sound wave signal and the third terminal equipment receives the first sound wave signal; and forwarding the second sound wave signal to the first terminal equipment through the third terminal equipment under the condition that the second terminal equipment is determined to finish executing the first scene action.
In one exemplary embodiment, the receiving module 72 is further configured to: receiving a first operation instruction of a target object; and configuring a first corresponding relation and a second corresponding relation on the second terminal equipment according to the first operation instruction, wherein the first corresponding relation is the corresponding relation between the first scene and the first scene identifier, and the second corresponding relation is the corresponding relation between the first scene action and the first scene identifier.
In one exemplary embodiment, the receiving module 72 is further configured to: receiving a second operation instruction of the target object; and controlling the second terminal equipment to send a third sound wave signal according to the second operation instruction, wherein the third sound wave signal carries a second scene identifier and is used for controlling the terminal equipment in a second scene.
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, where the fourth terminal device includes: a mobile terminal device; the analyzing unit is configured to analyze the distribution network information from the fourth acoustic signal, where the distribution network information includes: a device identifier, a network access password and an acoustic network access authorization code of the network device; and the sending unit is used for sending an acoustic network access request to the network equipment corresponding to the equipment identifier according to the network allocation information, wherein the acoustic network access request carries the network access password and the acoustic network access authorization code.
In an exemplary embodiment, the transmitting unit is further configured to: under the condition that the second terminal equipment fails to access the network, a fifth sound wave signal carrying the sound wave access request is sent to the fourth terminal equipment so as to instruct the fourth terminal equipment to forward the sound wave access request to a cloud server; and receiving the response result forwarded by the fourth terminal equipment under the condition that the fourth terminal equipment receives the response result of the cloud server to the acoustic network access request.
In one exemplary embodiment, the parsing module 74 is further configured to: identifying the frequency of the first sound wave signal, and determining a frequency array corresponding to the first sound wave signal according to the frequency; determining a character string corresponding to the frequency array according to a preset configuration library, wherein the configuration library is used for configuring the corresponding relation between the frequency and the characters; and determining the first scene identification of the first scene according to the character string.
In one exemplary embodiment, the parsing module 74 is further configured to: after the first scene identifier of the first scene is analyzed from the first acoustic wave signal, the method further includes: and under the condition that the scene identifier configured by the second terminal equipment does not comprise the first scene identifier, forwarding the first sound wave signal to fifth terminal equipment through the second terminal equipment so as to instruct the fifth terminal equipment to execute the first scene action.
Embodiments of the present application also provide a storage medium including a stored program, wherein the program performs the method of any one of the above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, receiving a first sound wave signal sent by first terminal equipment, wherein the first sound wave signal is used for controlling second terminal equipment in a first scene;
s2, under the condition that the second terminal equipment receives the first sound wave signal, a first scene identification of the first scene is analyzed from the first sound wave signal;
s3, executing a first scene action under the condition that the scene identifier configured by the second terminal equipment comprises the first scene identifier, wherein the first scene action is the action configured by the second terminal equipment and corresponding to the first scene identifier;
and S4, under the condition that the second terminal equipment is determined to finish executing the first scene action, sending a second sound signal to the first terminal equipment so as to indicate that the second terminal equipment is determined to finish executing the first scene action.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, receiving a first sound wave signal sent by first terminal equipment, wherein the first sound wave signal is used for controlling second terminal equipment in a first scene;
s2, under the condition that the second terminal equipment receives the first sound wave signal, a first scene identification of the first scene is analyzed from the first sound wave signal;
s3, executing a first scene action under the condition that the scene identifier configured by the second terminal equipment comprises the first scene identifier, wherein the first scene action is the action configured by the second terminal equipment and corresponding to the first scene identifier;
and S4, under the condition that the second terminal equipment is determined to finish executing the first scene action, sending a second sound signal to the first terminal equipment so as to indicate that the second terminal equipment is determined to finish executing the first scene action.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices and, in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (11)

1. A device control method, characterized by comprising:
receiving a first sound wave signal sent by a first terminal device, wherein the first sound wave signal is used for controlling a second terminal device in a first scene;
under the condition that the second terminal equipment receives the first sound wave signal, a first scene identification of the first scene is analyzed from the first sound wave signal;
executing a first scene action under the condition that the scene identifier configured by the second terminal equipment comprises the first scene identifier, wherein the first scene action is the action configured by the second terminal equipment and corresponding to the first scene identifier;
and under the condition that the second terminal equipment is determined to finish executing the first scene action, sending a second sound signal to the first terminal equipment so as to indicate that the second terminal equipment is determined to finish executing the first scene action.
2. The apparatus control method according to claim 1, wherein after receiving the first acoustic wave signal transmitted by the first terminal apparatus, the method further comprises:
receiving the first sound wave signal forwarded by third terminal equipment and executing the first scene action under the condition that the second terminal equipment does not receive the first sound wave signal and the third terminal equipment receives the first sound wave signal;
and forwarding the second sound wave signal to the first terminal equipment through the third terminal equipment under the condition that the second terminal equipment is determined to finish executing the first scene action.
3. The apparatus control method according to claim 1, wherein before receiving the first acoustic wave signal transmitted by the first terminal apparatus, the method further comprises:
receiving a first operation instruction of a target object;
and configuring a first corresponding relation and a second corresponding relation on the second terminal equipment according to the first operation instruction, wherein the first corresponding relation is the corresponding relation between the first scene and the first scene identifier, and the second corresponding relation is the corresponding relation between the first scene action and the first scene identifier.
4. The apparatus control method according to claim 1, wherein before receiving the first acoustic wave signal transmitted by the first terminal apparatus, the method further comprises:
receiving a second operation instruction of the target object;
and controlling the second terminal equipment to send a third sound wave signal according to the second operation instruction, wherein the third sound wave signal carries a second scene identifier and is used for controlling the terminal equipment in a second scene.
5. The apparatus control method according to claim 1, wherein before receiving the first acoustic wave signal transmitted by the first terminal apparatus, the method further comprises:
receiving a fourth acoustic signal sent by a fourth terminal device, where the fourth terminal device includes: a mobile terminal device;
analyzing distribution network information from the fourth acoustic wave signal, wherein the distribution network information comprises: a device identifier, a network access password and an acoustic network access authorization code of the network device;
and sending an acoustic network access request to the network equipment corresponding to the equipment identifier according to the network allocation information, wherein the acoustic network access request carries the network access password and the acoustic network access authorization code.
6. The device control method according to claim 5, wherein after sending an acoustic network access request to the network device corresponding to the device identifier according to the configuration network information, the method further comprises:
under the condition that the second terminal equipment fails to access the network, a fifth sound wave signal carrying the sound wave access request is sent to the fourth terminal equipment so as to instruct the fourth terminal equipment to forward the sound wave access request to a cloud server;
and receiving the response result forwarded by the fourth terminal equipment under the condition that the fourth terminal equipment receives the response result of the cloud server to the acoustic network access request.
7. The device control method of claim 1, wherein resolving a first scene identification of the first scene from the first acoustic signal comprises:
identifying the frequency of the first sound wave signal, and determining a frequency array corresponding to the first sound wave signal according to the frequency;
determining a character string corresponding to the frequency array according to a preset configuration library, wherein the configuration library is used for configuring the corresponding relation between the frequency and the characters;
and determining the first scene identification of the first scene according to the character string.
8. The device control method of claim 1, wherein after resolving a first scene identification of the first scene from the first acoustic signal, the method further comprises:
and under the condition that the scene identifier configured by the second terminal equipment does not comprise the first scene identifier, forwarding the first sound wave signal to fifth terminal equipment through the second terminal equipment so as to instruct the fifth terminal equipment to execute the first scene action.
9. An apparatus control device, comprising:
the receiving module is used for receiving a first sound wave signal sent by the first terminal equipment, wherein the first sound wave signal is used for controlling the second terminal equipment in the first scene;
the analysis module is used for analyzing a first scene identifier of the first scene from the first sound wave signal under the condition that the second terminal equipment receives the first sound wave signal;
an execution module, 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, where the first scene action is an action configured by the second terminal device and corresponding to the first scene identifier;
and the response module is used for sending a second sound signal to the first terminal equipment under the condition that the second terminal equipment is determined to finish executing the first scene action, so as to indicate that the second terminal equipment is determined to finish executing the first scene action.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 8.
11. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 8 by means of the computer program.
CN202311732784.2A 2023-12-15 2023-12-15 Equipment control method, device, storage medium and electronic device Pending CN117768256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311732784.2A CN117768256A (en) 2023-12-15 2023-12-15 Equipment control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311732784.2A CN117768256A (en) 2023-12-15 2023-12-15 Equipment control method, device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN117768256A true CN117768256A (en) 2024-03-26

Family

ID=90319222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311732784.2A Pending CN117768256A (en) 2023-12-15 2023-12-15 Equipment control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN117768256A (en)

Similar Documents

Publication Publication Date Title
CN114938365B (en) Function module updating method and device, storage medium and electronic device
CN115309062B (en) Control method and device of equipment, storage medium and electronic device
CN117768256A (en) Equipment control method, device, storage medium and electronic device
CN116165931A (en) Control method and system of intelligent equipment, device, storage medium and electronic device
CN116033006A (en) Data processing method, system, storage medium and electronic device
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN115474225A (en) Online state determination method and device, storage medium and electronic device
CN115001885B (en) Equipment control method and device, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115002206B (en) Control method and device of intelligent equipment, storage medium and electronic device
CN115296958B (en) Distribution method and device of equipment control tasks, storage medium and electronic device
CN114697359B (en) Data collection method and device, storage medium and electronic device
CN115167163B (en) Scene execution method and device, storage medium and electronic device
CN115296945B (en) Control method, system and device of equipment, storage medium and electronic device
CN115174380B (en) Operation updating method and device of gateway equipment, storage medium and electronic device
CN115314549B (en) Offline equipment management method, storage medium and electronic device
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN115297352B (en) Video continuous playing method and device, storage medium and electronic device
CN114900381B (en) Message sending method and device, storage medium and electronic device
CN116634464A (en) Network distribution method and device of equipment, storage medium and electronic equipment
CN116436991A (en) Data message sending method and device, storage medium and electronic equipment
CN116389436A (en) Broadcasting method and device of processing result, storage medium and electronic device
CN117707488A (en) Function response method and device, storage medium and electronic device
CN118200959A (en) Network quality detection method and device, storage medium and electronic device
CN116389068A (en) Login method and device of application system, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination