CN116566760A - Smart home equipment control method and device, storage medium and electronic equipment - Google Patents

Smart home equipment control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116566760A
CN116566760A CN202310846808.0A CN202310846808A CN116566760A CN 116566760 A CN116566760 A CN 116566760A CN 202310846808 A CN202310846808 A CN 202310846808A CN 116566760 A CN116566760 A CN 116566760A
Authority
CN
China
Prior art keywords
equipment
current
intelligent
home device
distributed network
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.)
Granted
Application number
CN202310846808.0A
Other languages
Chinese (zh)
Other versions
CN116566760B (en
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.)
Beijing Intengine Technology Co Ltd
Original Assignee
Beijing Intengine Technology 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 Beijing Intengine Technology Co Ltd filed Critical Beijing Intengine Technology Co Ltd
Priority to CN202310846808.0A priority Critical patent/CN116566760B/en
Publication of CN116566760A publication Critical patent/CN116566760A/en
Application granted granted Critical
Publication of CN116566760B publication Critical patent/CN116566760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless
    • 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

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the application discloses an intelligent household equipment control method and device, a storage medium and electronic equipment. The method comprises the following steps: sending a distributed networking request to at least one intelligent home device accessed to a public network so as to control the intelligent home device to change the current networking state, generating a communication key and sending the communication key to the at least one intelligent home device, forming the distributed network by the current device and the at least one intelligent home device based on the communication key, and writing attribute values into the intelligent home devices in the distributed network through Bluetooth so as to realize control over the intelligent home devices. According to the scheme provided by the embodiment of the application, the current equipment and at least one intelligent household equipment can be directly formed into the distributed network, and the intelligent household equipment can be controlled through the distributed network, and the forwarding of intermediate equipment is not needed, so that the connection speed and the control efficiency of the intelligent household equipment are effectively improved.

Description

Smart home equipment control method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of audio data processing, in particular to an intelligent household equipment control method and device, a storage medium and electronic equipment.
Background
Along with the continuous development of science and technology, electronic technology has also been rapidly developed, and the variety of electronic products is also increasing, and intelligent televisions, intelligent air conditioners, intelligent refrigerators and the like bring a lot of convenience to our modern household lives, so that intelligent household systems have been developed.
In the current intelligent home system, most intelligent home devices do not support direct communication with mobile phones, namely users need to forward through mobile phones and rely on specific facilities (cloud servers, routers and the like) to establish communication with the intelligent home devices, the connection establishment efficiency is low, and in addition, the response speed is slow due to the fact that intermediate devices are required to forward when instructions are transmitted.
Disclosure of Invention
The embodiment of the application provides a control method, a device, a storage medium and electronic equipment for intelligent household equipment, which can directly form a distributed network with current equipment and at least one intelligent household equipment without forwarding of intermediate equipment, and effectively improve the connection speed and control efficiency of the intelligent household equipment.
The embodiment of the application provides a control method for intelligent household equipment, which comprises the following steps:
sending a distributed networking request to at least one intelligent home device accessed to a public network so as to control the intelligent home device to change the current networking state;
Generating a communication key and sending the communication key to the at least one intelligent home device;
forming a distributed network by the current equipment and the at least one intelligent home equipment based on the communication key;
and writing attribute values into the intelligent household equipment in the distributed network through Bluetooth so as to realize control of the intelligent household equipment.
In an embodiment, the forming the current device and the at least one smart home device into a distributed network based on the communication key includes:
taking the current equipment as central equipment and establishing a distributed network;
and controlling the at least one intelligent home device to exit the public network and enter the distributed network after receiving the communication key.
In an embodiment, the writing, by bluetooth, the attribute value to the smart home device in the distributed network includes:
receiving a voice signal sent by a user;
determining a target device corresponding to the voice signal and a corresponding attribute value;
searching the target equipment in the distributed network, and writing the attribute value into the target equipment through Bluetooth.
In an embodiment, the step of determining the target device corresponding to the voice signal includes:
Determining at least one candidate device corresponding to the voice signal;
and selecting the target equipment from the at least one candidate equipment according to the position information of the current equipment or the current user.
In one embodiment, the calculating process of the location information of the current device includes:
acquiring Bluetooth signal intensity between the current equipment and at least one intelligent home equipment based on the distributed network;
and calculating the position information of the current equipment according to the Bluetooth signal strength and the position information of each of the at least one intelligent home equipment.
In one embodiment, the calculating process of the location information of the current user includes:
acquiring voice signal energy values received by different intelligent home devices in the distributed network;
and determining the position information of the current user according to the voice signal energy value.
In one embodiment, the calculating the speech signal energy value includes:
filtering for each frame of speech signal;
and obtaining the energy value of the voice signal after filtering, and calculating the average value of the energy values of all the frames of voice signals to be used as the average energy value of the voice signal.
The embodiment of the application also provides an intelligent household equipment control device, which comprises:
The system comprises a sending module, a network management module and a network management module, wherein the sending module is used for sending a distributed networking request to at least one intelligent home device accessed to a public network so as to control the intelligent home device to change the current networking state;
the generation module is used for generating a communication key and sending the communication key to the at least one intelligent household device;
the networking module is used for forming a distributed network by the current equipment and the at least one intelligent home equipment based on the communication key;
and the control module is used for writing attribute values into the intelligent household equipment in the distributed network through Bluetooth so as to control the intelligent household equipment.
Embodiments of the present application also provide a storage medium storing a computer program adapted to be loaded by a processor to perform the steps in the smart home device control method according to any of the embodiments above.
The embodiment of the application also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps in the intelligent household equipment control method according to any embodiment by calling the computer program stored in the memory.
According to the intelligent household equipment control method, the device, the storage medium and the electronic equipment, a distributed networking request can be sent to at least one intelligent household equipment connected to a public network, so that the intelligent household equipment is controlled to change the current networking state, a communication key is generated and sent to the at least one intelligent household equipment, the current equipment and the at least one intelligent household equipment form a distributed network based on the communication key, attribute values are written into the intelligent household equipment in the distributed network through Bluetooth, and control over the intelligent household equipment is achieved. According to the scheme provided by the embodiment of the application, the current equipment and at least one intelligent household equipment can be directly formed into the distributed network, and the intelligent household equipment can be controlled through the distributed network, and the forwarding of intermediate equipment is not needed, so that the connection speed and the control efficiency of the intelligent household equipment are effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic system diagram of a smart home device control apparatus provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a control method of an intelligent home device according to an embodiment of the present application;
fig. 3 is another flow chart of a control method of smart home devices according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a smart home device control apparatus according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of the smart home device control apparatus provided in the embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides an intelligent household equipment control method and device, a storage medium and electronic equipment. Specifically, the method for controlling the smart home device in the embodiment of the present application may be executed by an electronic device or a server, where the electronic device may be a terminal. The terminal may be a smart phone, a tablet computer, a notebook computer, a touch screen, a game machine, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) or the like, and the terminal may further include a client, which may be a media playing client or an instant messaging client or the like.
For example, when the intelligent home equipment control method is operated on the electronic equipment, the electronic equipment can send a distributed networking request to at least one intelligent home equipment connected to the public network so as to control the intelligent home equipment to change the current networking state, then generate a communication key and send the communication key to the at least one intelligent home equipment, the current equipment and the at least one intelligent home equipment form a distributed network based on the communication key, and attribute values are written into the intelligent home equipment in the distributed network through Bluetooth so as to realize control of the intelligent home equipment.
Referring to fig. 1, fig. 1 is a schematic system diagram of a control device for smart home devices according to an embodiment of the present application. The system may include a mobile device 1000, such as a mobile phone, and at least one smart home device 2000, where the mobile device 1000 and the at least one smart home device 2000 may form a distributed network for communication connection. The mobile device 1000 may be a terminal device having computing hardware capable of supporting and executing software products corresponding to multimedia. The network may be a wireless network or a wired network, such as a bluetooth network, a Wireless Local Area Network (WLAN), a Local Area Network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc., where bluetooth may further include conventional bluetooth (Classic Bluetooth, BT for short) and bluetooth low energy (Bluetooth Low Energy, BLE for short). In addition, the different mobile devices 1000 may also be connected to other embedded platforms or to servers, personal computers, etc. by using their own bluetooth network or hotspot network. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.
The embodiment of the application provides a control method of intelligent household equipment, which can be used by electronic equipment. The embodiment of the application is described by taking an example that the intelligent home equipment control method is executed by the electronic equipment. The electronic device may include a microphone for receiving a voice signal from a user, so as to implement subsequent device control according to the voice signal.
Referring to fig. 2, the specific flow of the method may be as follows:
step 101, sending a distributed networking request to at least one intelligent home device accessed to a public network so as to control the intelligent home device to change the current networking state.
In an embodiment, the current device and at least one smart home device may access the public network together, and on this basis, the current device sends a distributed networking request like other smart home devices in the public network, so as to implement networking. The smart home devices may include, for example, smart lamps, smart televisions, smart air conditioners, smart curtains, smart water heaters, smart washing machines, and the like, and the current devices may be, for example, mobile phones.
In an embodiment, the condition that the current device and the at least one smart home device access the same public network is that the plurality of devices all possess the same network key (network key), so a network may be pre-configured, where the purpose of the network configuration is to enable the plurality of devices to possess the same network key. In this embodiment, the current device and the at least one smart home device may be preset as a public network key (preset by factory), and devices in the public network key may communicate with each other.
The intelligent home equipment entering the public network can continuously broadcast own equipment information (such as MAC) according to a preset equipment discovery protocol, and the current equipment can be cached in an equipment discovery list after receiving an equipment discovery data packet of the intelligent home equipment. If the chip in the current device recognizes the command word for starting networking, the distributed networking request can be sent to the intelligent home devices in the same public network, and the intelligent home devices can change the current networking state after receiving the request.
Step 102, a communication key is generated and sent to at least one intelligent home device.
In an embodiment, the current device may generate a private communication key according to a certain rule, and the current device may broadcast the generated private communication key to other smart home devices in the public network through bluetooth or radio frequency. It should be noted that, the smart home device that obtains the private communication key may complete at least one forwarding, so as to ensure that more devices in the public network can receive the private communication key.
And 103, forming a distributed network by the current equipment and at least one intelligent household equipment based on the communication key.
In an embodiment, the smart home device having the private communication key may exit the public network and enter the private distributed network established with the current device as the center, so as to complete the automatic networking. That is, the step of forming the current device and the at least one smart home device into a distributed network based on the communication key may include: and taking the current equipment as central equipment and establishing a distributed network, controlling at least one intelligent home equipment to exit the public network after receiving the communication key, and entering the distributed network.
In one embodiment, after the distributed network is established, the distributed network may be used to construct control logic of the smart home device, where the control logic may include trigger control, data sharing, data calculation and conversion between devices, linkage between devices, and so on.
Meanwhile, the current equipment can also read the related attribute values of the intelligent household equipment, such as the current temperature of the intelligent air conditioner, the current played song of the intelligent sound box, the current on-state of the intelligent electric lamp and the like. Specifically, the process of reading the related attribute value of the smart home device includes: the current equipment sends a read request of the relevant attribute values to the intelligent home equipment through Bluetooth, the intelligent home equipment reads the attribute values according to the request and returns the attribute values to the current equipment, and the current equipment obtains the relevant attribute values of the intelligent home equipment and displays the relevant attribute values through a display screen.
And 104, writing attribute values into intelligent household equipment in the distributed network through Bluetooth so as to realize control of the intelligent household equipment.
In an embodiment, the current device may write the attribute value into the smart home device in the distributed network through bluetooth, specifically, may manually input through a display screen of the current device, and may also implement automatic input through a voice assistant of the current device, which is not further limited in this embodiment. The intelligent home equipment can wake up after receiving the attribute value sent by the current equipment, and execute the action corresponding to the attribute value.
In an embodiment, if the attribute value of the smart home device is input through a voice command, after the corresponding device is awakened and voice control is implemented according to the voice command, a prompt message may be generated to remind the user, for example, after the air conditioner of the bedroom is opened by a command for completing the air conditioner, a voice signal of "the air conditioner is opened" may be sent through a built-in speaker to remind the user.
As can be seen from the foregoing, the control method for intelligent home devices provided by the embodiment of the present application may send a distributed networking request to at least one intelligent home device accessing a public network, so as to control the intelligent home device to change the current networking state, generate a communication key, send the communication key to the at least one intelligent home device, form a distributed network with the current device and the at least one intelligent home device based on the communication key, and write attribute values into the intelligent home devices in the distributed network through bluetooth, so as to realize control of the intelligent home devices. According to the scheme provided by the embodiment of the application, the current equipment and at least one intelligent household equipment can be directly formed into the distributed network, and the intelligent household equipment can be controlled through the distributed network, and the forwarding of intermediate equipment is not needed, so that the connection speed and the control efficiency of the intelligent household equipment are effectively improved.
Referring to fig. 3, another flow chart of the smart home device control method provided in the embodiment of the present application is shown. The specific flow of the method can be as follows:
step 201, sending a distributed networking request to at least one intelligent home device accessing the public network, so as to control the intelligent home device to change the current networking state.
Step 202, a communication key is generated and sent to at least one smart home device.
And 203, forming a distributed network by the current equipment and at least one intelligent home equipment based on the communication key.
The step of constructing the distributed network by the current device and at least one smart home device is described in the previous embodiment, which is not further described in this embodiment.
Step 204, receiving a voice signal sent by a user.
In an embodiment, the voice signal sent by the user may be received by the current device or may be received by another smart home device located in the distributed network, where the current device and the smart home device may include at least one microphone for receiving the sound sent by the user and converting the sound into the voice signal.
In an embodiment, to further improve the recognition rate of the voice signal, the noise reduction operation may be performed after the voice signal is received, for example, the voice signal is separated from the environmental sound, so as to obtain the voice frequency. In one implementation manner, the voice signal may be input into an existing voice separation model, and separation of voice audio and environmental audio is performed to obtain voice audio, where the voice separation model may be a voice separation model based on a PIT (Permutation Invariant Train, substitution-invariant training) deep neural network. In another implementation manner, the separation tool is used to separate the voice audio from the environmental audio, so as to obtain the voice audio, for example, voice extraction processing can be performed according to the frequency spectrum characteristic or the frequency characteristic of the audio data.
At step 205, at least one candidate device corresponding to the speech signal is determined.
In an embodiment, after receiving the voice signal, the current device or the smart home device in the distributed network may further identify in advance whether the voice signal includes an activation word, and when detecting that the voice signal includes the activation word, continue identifying a command word in the voice signal, and determine at least one candidate device according to the command word. The activation words may be preset, or may be set by user-definition, for example, words such as "little college", "heaven cat fairy", "Hi Siri", and the like, which are not further limited in this application.
In one embodiment, the command word may be composed of a plurality of keywords, so the step of identifying the command word in the voice signal may include extracting at least one keyword in the voice signal and forming the command word from the keywords. Wherein the step of extracting at least one keyword in the speech signal further comprises: the method comprises the steps of constructing an audio recognition model aiming at any set keyword, firstly training a preset number of audio instructions after feature extraction according to extracted feature data, generating the audio recognition model aiming at the keyword through training, constructing a list of trigger keywords by a plurality of different keyword audio recognition models, performing feature extraction on the acquired voice signals after the intelligent household equipment receives the voice signals, matching the audio recognition models in the list of the trigger keywords, and then outputting the instruction with the highest score in the list of the trigger keywords as a recognition result.
In an embodiment, when the keyword information is detected, the current device or the smart home device may generate a command word according to at least one keyword, and determine a candidate device associated with the command word. In another embodiment, the step of generating the command word may be performed at the cloud end, for example, the smart home device may determine whether the current environment is in a network connection state after detecting the keyword information, if yes, upload the preprocessed voice signal to a cloud voice recognition platform, reprocess the submitted voice signal on the cloud voice recognition platform, and then convert the recognized text result into the command word for the candidate smart home device.
It should be noted that, the keywords in the extracted voice information generally include three types of keywords, namely, keywords representing control objects, namely, intelligent home devices, such as intelligent electric lamps, intelligent televisions, intelligent air conditioners, and the like; second, keywords indicating control actions, such as "on", "off", etc.; and thirdly, identifying information, such as a living room and a room, which is a keyword for clearly controlling the object. When the three types of keywords are extracted from the voice signal, the obtained voice control instruction is a complete voice control instruction, for example, a lamp in a living room is turned on. At this time, the candidate device associated with the command word generated according to the keyword is the lamp of the living room.
If the smart home device corresponding to the current voice signal has a plurality of similar devices, for example, the voice signal only includes keywords of a control object and a control action, the smart home device is an incomplete voice control instruction, i.e. a fuzzy voice control instruction. Such as "turn on air conditioner", "turn on light", etc., but it is not clear which air conditioner, which light, and therefore it is a vague control instruction. If the voice signal contains a keyword representing identification information, that is, a keyword for identifying a specific control object, the current control instruction is a complete control instruction, for example, a "turning on a bedroom lamp" and a "turning on a living room lamp", where the "bedroom" and the "living room" are identification information of the control object, and the smart home device at a certain position can be clarified. It will be appreciated that the identification information may be information of a color or shape other than the position information, such as "turn on a red light" or "turn on a circular light", where "red" and "circular" are identification information.
Thus, if the current control command is an incomplete control command, such as "turn on a light", then multiple lights located in the distributed network may all be candidates, such as a bedroom light and a living room light.
In an embodiment, when the command word in the voice signal is identified, the collected voice signal can be analyzed, and the environment description word in the collected voice signal can be extracted. The environmental descriptors can be pre-stored environmental descriptors, and the voice signals are compared with the environmental descriptors stored in the system by analyzing the voice signals so as to extract the environmental descriptors in the voice signals of the user. The environmental descriptor may be a word, phrase or sentence related to location, environment, such as "hot living room" or "too dark room", etc.
If the current voice control instruction cannot clearly control the object, determining the current voice control instruction as an incomplete voice control instruction. At this time, the standard voice control instruction matched with the current voice control instruction can be determined according to the semantic association rule. The semantic association rule comprises a corresponding relation between the environment descriptor and a standard voice control instruction, for example, the standard voice control instruction corresponding to 'hot living room' is 'air conditioner for opening living room'. The semantic association rule can be prestored in a distributed network system, and a user can edit and store the semantic association rule.
It can be understood that the distributed network system can acquire and analyze the voice signals of the user in real time, record and analyze the operation data of each intelligent home equipment, and obtain the semantic association rule. The intelligent home system records daily talking, communication and voice control instructions of the user and the running state of the intelligent home equipment, such as 'room is hot' of the daily talking of the user, and gives a voice control instruction 'air conditioner of the room is opened', and at the moment, the air conditioner of the room starts to be opened and run. The semantic association rule, namely the relation between the environment descriptor and the standard voice control instruction, is obtained through a plurality of records and analyses, for example, the semantic association relation is formed by 'room very hot' and 'air conditioner for opening the room', and the semantic association relation is formed by 'room too dark' and 'lamp for opening the room'. Correspondingly, if the voice control instruction obtained through the semantic association rule does not contain a keyword representing the identification information, the associated devices are required to be used as candidate devices.
And step 206, selecting a target device from at least one candidate device according to the position information of the current device or the current user.
It should be noted that, if the number of candidate devices is only one, for example, the user speaks "turn on bedroom lamp", and the voice control command includes a keyword indicating identification information, it may be determined that the candidate device is the bedroom lamp, and then the command is directly transmitted to the bedroom lamp through the distributed network and turned on under control without executing subsequent steps.
When the number of candidate devices is at least two, such as a lamp including a living room and a lamp of a bedroom, it is necessary to further determine a target device from among the candidate devices and perform control. The target device may be specifically selected from at least one candidate device according to the location information of the current device or the current user. In an embodiment, when the target device is selected according to the location information of the current device, the bluetooth signal strength between the current device and the at least one smart home device may be obtained based on the distributed network, and then the location information of the current device may be calculated according to the bluetooth signal strength and the location information of each of the at least one smart home device. For example, if the current device is close to the bedroom lamp, the bedroom lamp in the candidate device can be determined to be the target device to be controlled, and if the current device is close to the living room lamp, the living room lamp in the candidate device can be determined to be the target device to be controlled
In another embodiment, the target device may be further selected from at least one candidate device according to the location information of the current user, and specifically, the location of the current user may be calculated by calculating energy values of the above-mentioned voice signals received by different smart home devices in the distributed network. It can be understood that the larger the energy value is, the closer the position of the user is to the current device, whereas the smaller the energy value is, the farther the position of the user is to the current device, so that the energy values of the voice signals sent by the user can be received by a plurality of intelligent home devices in the distributed network at the same time, and then the current position of the user is comprehensively determined according to the energy values. For example, if the user is close to the bedroom lamp, the bedroom lamp in the candidate device can be determined to be the target device to be controlled, and if the user is close to the living room lamp, the living room lamp in the candidate device can be determined to be the target device to be controlled.
The energy value of the audio signal received by the smart home device may be represented by a db value of the audio signal, and the db value may be calculated by a plurality of methods, such as calculating audio energy data sum, calculating root mean square for db value, improving root mean square algorithm, and the like.
In an embodiment, the step of calculating the audio signal energy value may include: filtering is carried out for each frame of voice signal, the energy value of the voice signal after filtering is obtained, and the average value of the energy values of all frames of voice signals is calculated to be used as the average energy value of the voice signal.
In step 207, the attribute value corresponding to the voice signal is extracted.
The attribute values may be related attributes of the target device, such as a cooling mode and temperature of an air conditioner, a color temperature and a switching state of an electric lamp, a switching state of an intelligent curtain, and the like.
And step 208, searching the target equipment in the distributed network, and writing attribute values into the target equipment through Bluetooth to realize the control of the intelligent household equipment.
After the target equipment to be controlled is determined, the determined optimal control command can be broadcasted to the distributed network through Bluetooth, and the equipment to be controlled can perform corresponding actions after receiving the optimal control command. For example, when we want to turn on a light in a bedroom, we should wake up the intermediate device first and then say "turn on the bedroom light" in the traditional sense, only then we can accurately control the designated device, and by the scheme provided by the embodiment, we can turn on the bedroom light only by speaking "turn on" in the bedroom and "turn on" in any device in the distributed network.
All the above technical solutions may be combined to form an optional embodiment of the present application, which is not described here in detail.
As can be seen from the foregoing, the control method for intelligent home devices provided by the embodiment of the present application may send a distributed networking request to at least one intelligent home device accessing a public network, so as to control the intelligent home device to change a current networking state, generate a communication key and send the communication key to the at least one intelligent home device, form the current device and the at least one intelligent home device into a distributed network based on the communication key, receive a voice signal sent by a user, determine at least one candidate device corresponding to the voice signal, select a target device from the at least one candidate device according to position information of the current device or the current user, extract an attribute value corresponding to the voice signal, search the target device in the distributed network, and write the attribute value into the target device through bluetooth, so as to implement control over the intelligent home device. According to the scheme provided by the embodiment of the application, the current equipment and at least one intelligent household equipment can be directly formed into the distributed network, and the intelligent household equipment can be controlled through the distributed network, and the forwarding of intermediate equipment is not needed, so that the connection speed and the control efficiency of the intelligent household equipment are effectively improved.
In order to facilitate better implementation of the intelligent household equipment control method, the embodiment of the application also provides an intelligent household equipment control device. Referring to fig. 4, fig. 4 is a schematic structural diagram of a control device for smart home devices according to an embodiment of the present application. The intelligent household equipment control device can comprise:
a sending module 301, configured to send a distributed networking request to at least one smart home device accessing a public network, so as to control the smart home device to change a current networking state;
a generating module 302, configured to generate a communication key and send the communication key to the at least one smart home device;
a networking module 303, configured to form a distributed network from the current device and the at least one smart home device based on the communication key;
a control module 304, configured to write attribute values into smart home devices in the distributed network via bluetooth, so as to control the smart home devices
In an embodiment, please further refer to fig. 5, fig. 5 is another schematic structural diagram of the smart home device control apparatus provided in the embodiment of the present application. The networking module 303 may include:
a building sub-module 3031, configured to use the current device as a central device and build a distributed network;
The networking sub-module 3032 is configured to control the at least one smart home device to exit the public network and enter the distributed network after receiving the communication key.
In one embodiment, the control module 304 may include:
a receiving submodule 3041, configured to receive a voice signal sent by a user;
a determining submodule 3042, configured to determine a target device corresponding to the voice signal and a corresponding attribute value;
a writing submodule 3043, configured to find the target device in the distributed network, and write the attribute value to the target device through bluetooth.
All the above technical solutions may be combined to form an optional embodiment of the present application, which is not described here in detail.
As can be seen from the foregoing, according to the smart home device control apparatus provided in the embodiments of the present application, a distributed networking request is sent to at least one smart home device that accesses a public network, so as to control the smart home device to change a current networking state, generate a communication key, send the communication key to the at least one smart home device, form a distributed network with the current device and the at least one smart home device based on the communication key, and write attribute values into the smart home device in the distributed network through bluetooth, so as to control the smart home device. According to the scheme provided by the embodiment of the application, the current equipment and at least one intelligent household equipment can be directly formed into the distributed network, and the intelligent household equipment can be controlled through the distributed network, and the forwarding of intermediate equipment is not needed, so that the connection speed and the control efficiency of the intelligent household equipment are effectively improved.
Correspondingly, the embodiment of the application also provides electronic equipment, which can be a terminal or a server, wherein the terminal can be a terminal equipment such as a smart phone, a tablet personal computer, a notebook computer, a touch screen, a game machine, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and the like. As shown in fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more storage media, and a computer program stored on the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. It will be appreciated by those skilled in the art that the electronic device structure shown in the figures is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device 400 using various interfaces and lines, and performs various functions of the electronic device 400 and processes data by running or loading software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device 400.
In the embodiment of the present application, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions:
sending a distributed networking request to at least one intelligent home device accessed to a public network so as to control the intelligent home device to change the current networking state;
generating a communication key and sending the communication key to the at least one intelligent home device;
forming a distributed network by the current equipment and the at least one intelligent home equipment based on the communication key;
and writing attribute values into the intelligent household equipment in the distributed network through Bluetooth so as to realize control of the intelligent household equipment.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 6, the electronic device 400 further includes: a touch display 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch display 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407, respectively. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 6 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The touch display 403 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. Alternatively, the display panel may be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 401, and can receive and execute commands sent from the processor 401. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is passed to the processor 401 to determine the type of touch event, and the processor 401 then provides a corresponding visual output on the display panel in accordance with the type of touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 403 to implement the input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch-sensitive display 403 may also implement an input function as part of the input unit 406.
In the embodiment of the present application, the application program is executed by the processor 401 to generate a graphical user interface on the touch display screen 403. The touch display 403 is used for presenting a graphical user interface and receiving an operation instruction generated by a user acting on the graphical user interface.
The radio frequency circuitry 404 may be used to transceive radio frequency signals to establish wireless communication with a network device or other electronic device via wireless communication.
The audio circuitry 405 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone. The audio circuit 405 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 405 and converted into audio data, which are processed by the audio data output processor 401 and sent via the radio frequency circuit 404 to e.g. another electronic device, or which are output to the memory 402 for further processing. The audio circuit 405 may also include an ear bud jack to provide communication of the peripheral headphones with the electronic device.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 407 is used to power the various components of the electronic device 400. Alternatively, the power supply 407 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system. The power supply 407 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 6, the electronic device 400 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
As can be seen from the foregoing, the electronic device provided in this embodiment may send a distributed networking request to at least one smart home device accessing the public network, so as to control the smart home device to change the current networking state, generate a communication key, send the communication key to the at least one smart home device, form a distributed network with the current device and the at least one smart home device based on the communication key, and write attribute values into the smart home devices in the distributed network through bluetooth, so as to control the smart home devices. According to the scheme provided by the embodiment of the application, the current equipment and at least one intelligent household equipment can be directly formed into the distributed network, and the intelligent household equipment can be controlled through the distributed network, and the forwarding of intermediate equipment is not needed, so that the connection speed and the control efficiency of the intelligent household equipment are effectively improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions or by controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, the embodiments of the present application provide a storage medium in which a plurality of computer programs are stored, which can be loaded by a processor to perform the steps in any of the smart home device control methods provided in the embodiments of the present application. For example, the computer program may perform the steps of:
sending a distributed networking request to at least one intelligent home device accessed to a public network so as to control the intelligent home device to change the current networking state;
generating a communication key and sending the communication key to the at least one intelligent home device;
forming a distributed network by the current equipment and the at least one intelligent home equipment based on the communication key;
and writing attribute values into the intelligent household equipment in the distributed network through Bluetooth so as to realize control of the intelligent household equipment.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any of the smart home device control methods provided in the embodiments of the present application may be executed by the computer program stored in the storage medium, so that the beneficial effects that any of the smart home device control methods provided in the embodiments of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing describes in detail a method, an apparatus, a storage medium, and an electronic device for controlling an intelligent home device according to embodiments of the present application, where specific examples are applied to describe principles and implementations of the present application, and the description of the foregoing embodiments is only used to help understand the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The intelligent household equipment control method is characterized by comprising the following steps of:
Sending a distributed networking request to at least one intelligent home device accessed to a public network so as to control the intelligent home device to change the current networking state;
generating a communication key and sending the communication key to the at least one intelligent home device;
forming a distributed network by the current equipment and the at least one intelligent home equipment based on the communication key;
and writing attribute values into the intelligent household equipment in the distributed network through Bluetooth so as to realize control of the intelligent household equipment.
2. The smart home device control method according to claim 1, wherein the composing the current device and the at least one smart home device into a distributed network based on the communication key comprises:
taking the current equipment as central equipment and establishing a distributed network;
and controlling the at least one intelligent home device to exit the public network and enter the distributed network after receiving the communication key.
3. The smart home device control method according to claim 1, wherein the writing of the attribute value to the smart home device in the distributed network through bluetooth includes:
receiving a voice signal sent by a user;
Determining a target device corresponding to the voice signal and a corresponding attribute value;
searching the target equipment in the distributed network, and writing the attribute value into the target equipment through Bluetooth.
4. The smart home device control method according to claim 3, wherein the step of determining the target device to which the voice signal corresponds includes:
determining at least one candidate device corresponding to the voice signal;
and selecting the target equipment from the at least one candidate equipment according to the position information of the current equipment or the current user.
5. The smart home device control method according to claim 4, wherein the calculation process of the location information of the current device includes:
acquiring Bluetooth signal intensity between the current equipment and at least one intelligent home equipment based on the distributed network;
and calculating the position information of the current equipment according to the Bluetooth signal strength and the position information of each of the at least one intelligent home equipment.
6. The smart home device control method according to claim 4, wherein the calculation process of the location information of the current user includes:
Acquiring voice signal energy values received by different intelligent home devices in the distributed network;
and determining the position information of the current user according to the voice signal energy value.
7. The smart home device control method of claim 6, wherein the calculating of the speech signal energy value comprises:
filtering for each frame of speech signal;
and obtaining the energy value of the voice signal after filtering, and calculating the average value of the energy values of all the frames of voice signals to be used as the average energy value of the voice signal.
8. An intelligent home equipment control device, which is characterized by comprising:
the system comprises a sending module, a network management module and a network management module, wherein the sending module is used for sending a distributed networking request to at least one intelligent home device accessed to a public network so as to control the intelligent home device to change the current networking state;
the generation module is used for generating a communication key and sending the communication key to the at least one intelligent household device;
the networking module is used for forming a distributed network by the current equipment and the at least one intelligent home equipment based on the communication key;
and the control module is used for writing attribute values into the intelligent household equipment in the distributed network through Bluetooth so as to control the intelligent household equipment.
9. A storage medium storing a computer program adapted to be loaded by a processor to perform the steps of the smart home device control method of any of claims 1-7.
10. An electronic device comprising a memory in which a computer program is stored and a processor that performs the steps in the smart home device control method of any one of claims 1-7 by invoking the computer program stored in the memory.
CN202310846808.0A 2023-07-11 2023-07-11 Smart home equipment control method and device, storage medium and electronic equipment Active CN116566760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310846808.0A CN116566760B (en) 2023-07-11 2023-07-11 Smart home equipment control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310846808.0A CN116566760B (en) 2023-07-11 2023-07-11 Smart home equipment control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116566760A true CN116566760A (en) 2023-08-08
CN116566760B CN116566760B (en) 2023-09-29

Family

ID=87488385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310846808.0A Active CN116566760B (en) 2023-07-11 2023-07-11 Smart home equipment control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116566760B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555250A (en) * 2024-01-02 2024-02-13 珠海格力电器股份有限公司 Control method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202353639U (en) * 2011-09-14 2012-07-25 潘铁军 Distributed-key-based smart home system and external safety equipment thereof
CN105119785A (en) * 2015-07-15 2015-12-02 泰凌微电子(上海)有限公司 Configuration method of smart home network nodes and data transmitting and receiving methods
KR101968417B1 (en) * 2017-10-26 2019-04-11 순천향대학교 산학협력단 Message security transmission system in smart home service system and method thereof
CN212623734U (en) * 2020-09-10 2021-02-26 深圳长城开发科技股份有限公司 Intelligent home system based on LoRa
CN113963695A (en) * 2021-10-13 2022-01-21 深圳市欧瑞博科技股份有限公司 Awakening method, awakening device, equipment and storage medium of intelligent equipment
CN115442171A (en) * 2022-09-05 2022-12-06 珠海格力电器股份有限公司 Household appliance ad hoc network method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202353639U (en) * 2011-09-14 2012-07-25 潘铁军 Distributed-key-based smart home system and external safety equipment thereof
CN105119785A (en) * 2015-07-15 2015-12-02 泰凌微电子(上海)有限公司 Configuration method of smart home network nodes and data transmitting and receiving methods
KR101968417B1 (en) * 2017-10-26 2019-04-11 순천향대학교 산학협력단 Message security transmission system in smart home service system and method thereof
CN212623734U (en) * 2020-09-10 2021-02-26 深圳长城开发科技股份有限公司 Intelligent home system based on LoRa
CN113963695A (en) * 2021-10-13 2022-01-21 深圳市欧瑞博科技股份有限公司 Awakening method, awakening device, equipment and storage medium of intelligent equipment
CN115442171A (en) * 2022-09-05 2022-12-06 珠海格力电器股份有限公司 Household appliance ad hoc network method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555250A (en) * 2024-01-02 2024-02-13 珠海格力电器股份有限公司 Control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116566760B (en) 2023-09-29

Similar Documents

Publication Publication Date Title
CN109903773B (en) Audio processing method, device and storage medium
CN109240107A (en) A kind of control method of electrical equipment, device, electrical equipment and medium
US11457061B2 (en) Creating a cinematic storytelling experience using network-addressable devices
CN111312235A (en) Voice interaction method, device and system
CN204904540U (en) There is screen intelligent remote controller
CN116566760B (en) Smart home equipment control method and device, storage medium and electronic equipment
CN111192590B (en) Voice wake-up method, device, equipment and storage medium
CN110248021A (en) A kind of smart machine method for controlling volume and system
TW202022849A (en) Voice data identification method, apparatus and system
CN110866090A (en) Method, apparatus, electronic device and computer storage medium for voice interaction
CN105100672A (en) Display apparatus and method for performing videotelephony using the same
CN114067798A (en) Server, intelligent equipment and intelligent voice control method
CN116582381B (en) Intelligent device control method and device, storage medium and intelligent device
CN116580711B (en) Audio control method and device, storage medium and electronic equipment
WO2019228140A1 (en) Instruction execution method and apparatus, storage medium, and electronic device
CN116582382B (en) Intelligent device control method and device, storage medium and electronic device
CN111045641B (en) Electronic terminal and voice recognition method
CN111723783B (en) Content identification method and related device
CN112420043A (en) Intelligent awakening method and device based on voice, electronic equipment and storage medium
CN116896488A (en) Voice control method and device, storage medium and electronic equipment
US11922970B2 (en) Electronic apparatus and controlling method thereof
CN116564312B (en) Device control method, device, electronic device and readable storage medium
CN116564311B (en) Device control method, device, electronic device and readable storage medium
CN113241073B (en) Intelligent voice control method, device, electronic equipment and storage medium
WO2021162489A1 (en) Method and voice assistance apparatus for providing an intelligence response

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
GR01 Patent grant
GR01 Patent grant