CN111901210A - Voice equipment awakening method, device, medium and equipment based on equipment network - Google Patents

Voice equipment awakening method, device, medium and equipment based on equipment network Download PDF

Info

Publication number
CN111901210A
CN111901210A CN202010668425.5A CN202010668425A CN111901210A CN 111901210 A CN111901210 A CN 111901210A CN 202010668425 A CN202010668425 A CN 202010668425A CN 111901210 A CN111901210 A CN 111901210A
Authority
CN
China
Prior art keywords
node
master
voice
voice equipment
equipment
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
CN202010668425.5A
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010668425.5A priority Critical patent/CN111901210A/en
Publication of CN111901210A publication Critical patent/CN111901210A/en
Pending legal-status Critical Current

Links

Images

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
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • 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
    • H04L12/2821Avoiding conflicts related to the use of home appliances
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a voice equipment awakening method, a device, a medium and equipment based on an equipment network, wherein the equipment network comprises one voice equipment serving as a master node and more than two voice equipment serving as slave nodes; under the condition that the voice equipment belongs to the slave node, when a wake-up command is received, sending an arbitration request to the voice equipment serving as the master node, and determining equipment responding to the wake-up command in the more than two voice equipment serving as the slave nodes according to the arbitration request by the voice equipment serving as the master node; and under the condition that the voice equipment belongs to the master node, receiving an arbitration request sent by the more than two voice equipment serving as the slave nodes in the equipment network, and determining equipment responding to the awakening command in the more than two voice equipment serving as the slave nodes according to the arbitration request. The scheme provided by the invention can avoid the situation of one-to-one response.

Description

Voice equipment awakening method, device, medium and equipment based on equipment network
Technical Field
The present invention relates to the field of control, and in particular, to a method, an apparatus, a medium, and a device for waking up a voice device based on a device network.
Background
In the actual scene of the smart home, a situation that multiple devices in the same space share the same awakening word exists. After the user speaks the wake up word, these devices are awakened simultaneously, creating a "one-for-one response" phenomenon.
Disclosure of Invention
The present invention is directed to overcome the drawbacks of the prior art, and provides a method, an apparatus, a medium, and a device for waking up a voice device based on a wireless local area network, so as to solve the problem of "one-for-one response" in a voice control scenario of a smart home in the prior art.
The invention provides a voice equipment awakening method based on equipment network, wherein the equipment network comprises a voice equipment as master node and more than two voice equipment as slave node; the method comprises the following steps: under the condition that the voice equipment belongs to the slave node, when a wake-up command is received, sending an arbitration request to the voice equipment serving as the master node, and determining equipment responding to the wake-up command in the more than two voice equipment serving as the slave nodes according to the arbitration request by the voice equipment serving as the master node; and under the condition that the voice equipment belongs to the master node, receiving an arbitration request sent by the more than two voice equipment serving as the slave nodes in the equipment network, and determining equipment responding to the awakening command in the more than two voice equipment serving as the slave nodes according to the arbitration request.
Optionally, the device network is created by; after the node is started, if the voice equipment does not receive the master signaling started by the node within the first preset time, the voice equipment becomes the master node and broadcasts a corresponding networking signaling; if the master signaling started by the node is received within the first preset time, the voice equipment becomes a slave node, records the master node information, and broadcasts the corresponding networking signaling.
Optionally, the method further comprises: after the voice equipment becomes a master node or a slave node, if a networking signaling of a newly added node is received, adding node information of the newly added node into a node list of the voice equipment; and/or judging whether the interval time between the time when the signaling of the node is received for the last time and the current time exceeds second preset time or not for each node in the node list of the voice equipment; and if the interval time is judged to exceed the second preset time, deleting the node from the node list of the voice equipment.
Optionally, the method further comprises: if the master node is deleted from the node list of the voice equipment and the master signaling is not received within the third preset time, the voice equipment becomes the master node; and/or if the voice device is a slave node and the first node is marked as a master node in the node list of the voice device, if a master signaling sent by the second node is received, judging whether the interval time of sending heartbeat information by the first node exceeds a fourth preset time; if the interval time exceeds the fourth preset time, marking the second node as a master node in a node list of the voice equipment; and/or when the voice equipment belongs to the master node, if master signaling from other nodes is received, comparing the size relationship between the MAC address of the voice equipment and the MAC address in the master signaling; and if the MAC address of the voice equipment is larger than the MAC address in the master signaling, the voice equipment is changed into a slave node.
The invention provides a voice device awakening device based on a device network, wherein the device network comprises a voice device used as a master node and more than two voice devices used as slave nodes; the apparatus, comprising: the first receiving unit is used for receiving a wake-up command under the condition that the voice equipment belongs to a slave node; the sending unit is used for sending an arbitration request to the voice equipment serving as the master node when the first receiving unit receives the wake-up command, and the voice equipment serving as the master node determines equipment responding to the wake-up command in the more than two voice equipment serving as the slave nodes according to the arbitration request; and/or, the second receiving unit is configured to receive, when the voice device to which the second receiving unit belongs is a master node, an arbitration request sent by the two or more voice devices serving as slave nodes in the device network; and the arbitration unit is used for determining the equipment responding to the awakening command in the more than two voice equipment serving as the slave nodes according to the arbitration request.
Optionally, the method further comprises: a creation unit configured to create the device network as follows; after the node is started, if the voice equipment does not receive the master signaling started by the node within the first preset time, the voice equipment becomes the master node and broadcasts a corresponding networking signaling; if the master signaling started by the node is received within the first preset time, the voice equipment becomes a slave node, records the master node information, and broadcasts the corresponding networking signaling.
Optionally, the creating unit is further configured to: after the voice equipment becomes a master node or a slave node, if a networking signaling of a newly added node is received, adding node information of the newly added node into a node list of the voice equipment; and/or judging whether the interval time between the time when the signaling of the node is received for the last time and the current time exceeds second preset time or not for each node in the node list of the voice equipment; and if the interval time is judged to exceed the second preset time, deleting the node from the node list of the voice equipment.
Optionally, the creating unit is further configured to: if the master node is deleted from the node list of the voice equipment and the master signaling is not received within the third preset time, the voice equipment becomes the master node; and/or if the voice device is a slave node and the first node is marked as a master node in the node list of the voice device, if a master signaling sent by the second node is received, judging whether the interval time of sending heartbeat information by the first node exceeds a fourth preset time; if the interval time exceeds the fourth preset time, marking the second node as a master node in a node list of the voice equipment; and/or when the voice equipment belongs to the master node, if master signaling from other nodes is received, comparing the size relationship between the MAC address of the voice equipment and the MAC address in the master signaling; and if the MAC address of the voice equipment is larger than the MAC address in the master signaling, the voice equipment is changed into a slave node.
A further aspect of the invention provides a storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the methods described above.
A further aspect of the invention provides a speech device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods described above when executing the program.
In another aspect, the present invention provides a voice device, including any one of the above voice device wake-up apparatuses.
According to the technical scheme of the invention, an equipment network is established based on a wireless communication mode, a unique master node is selected in the network, and other nodes are slave nodes; when a user tries to wake up, the devices which have received the wake-up command are identified to communicate with each other, and which device responds to the user is determined, so that the situation of one-to-one response is avoided; a user only needs to start corresponding functions, the user does not need to designate a main node, a unique master node can be randomly selected in the network, all nodes receiving the awakening command send arbitration requests to the master node, the master node executes an arbitration algorithm, and the unique node responding to the awakening command is selected. Other nodes detect that the heartbeat of the master node is overtime, and actively become a new master node, so that the normal response execution of the awakening command is not influenced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic method diagram of an embodiment of a voice device wake-up method based on a device network according to the present invention;
FIG. 2 is a diagram illustrating a change process of a node role according to an embodiment of the present invention;
fig. 3 is a block diagram of an embodiment of a voice device wake-up apparatus based on a device network according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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.
The invention provides a voice equipment awakening method based on an equipment network.
Specifically, the device network is created based on a wireless communication mode, for example, a WiFi local area network, a ZigBee network, or a bluetooth mesh network. The device network comprises a voice device serving as a master node (master node) and more than two voice devices serving as slave nodes (slave nodes). There is only one master node, and each node maintains information of all nodes in the network and marks which one is the master node. For example, each node maintains a node list in which information of all nodes in the device network is stored and marked as master nodes. The inventive method can be implemented in each speech device in the device network.
Fig. 1 is a schematic method diagram of an embodiment of a method for waking up a voice device based on a wireless local area network according to the present invention.
As shown in fig. 1, according to an embodiment of the present invention, the voice device wake-up method at least includes step S110 and step S120.
Step S110, when the voice device is the slave node, when receiving the wake-up command, sending an arbitration request to the voice device as the master node, and determining the device responding to the wake-up command in the more than two voice devices as the slave nodes according to the arbitration request by the voice device as the master node.
Specifically, the arbitration request may include distance information between the voice device and a sound source of the wake-up command and/or sound energy information of the wake-up command received by the voice device. When the voice device serves as a slave node, when a wake-up command is received, the voice energy of the received wake-up command (wake-up voice) is acquired, and an arbitration request containing voice energy information is sent to the voice device serving as a master node; or calculating the distance between the voice equipment and the sound source of the awakening command according to the sound energy, and sending an arbitration request containing the distance to the voice equipment serving as the master node. The voice device serving as the master node determines, according to the sound energy information in the arbitration request sent by the voice devices serving as the slave nodes, a device that responds to the wake-up command among the voice devices serving as the slave nodes, for example, the sound energy may be compared, and the slave node device that has the larger sound energy of the received wake-up command is determined to respond to the wake-up command; or, the voice device serving as the master node determines, according to distance information in the arbitration request sent by the two or more voice devices serving as the slave nodes, a device that responds to the wake-up command in the two or more voice devices serving as the slave nodes, for example, the distance may be compared, and the slave node device closest to the sound source of the wake-up command may be determined to respond to the wake-up command. Under the condition that the voice device belongs to the slave node, after receiving a wake-up command and sending an arbitration request to the voice device serving as the master node, receiving an arbitration result of a device responding to the wake-up command in the more than two voice devices serving as the slave nodes determined by the voice device serving as the master node according to the arbitration request, wherein the arbitration result comprises a device identifier, such as an MAC (media access control) address, of the device responding to the wake-up command, and if the voice device belongs to the slave node, responding to the wake-up command, namely the voice device is woken up.
Step S120, in a case that the voice device to which the slave node belongs is a master node, receiving an arbitration request sent by the more than two voice devices serving as slave nodes in the device network, and determining, according to the arbitration request, a device responding to the wake-up command in the more than two voice devices serving as slave nodes.
And when the device serves as a master node, receiving an arbitration request sent by the more than two voice devices serving as slave nodes in the device network, wherein the arbitration request may include distance information between the voice device and a sound source of the wake-up command and/or sound energy information of the wake-up command received by the voice device. The voice device serving as the master node determines, according to the sound energy information in the arbitration request sent by the voice devices serving as the slave nodes, a device that responds to the wake-up command among the voice devices serving as the slave nodes, for example, the slave node device that has a larger sound energy and receives the wake-up command may compare the sound energy; or, the voice device serving as the master node determines, according to distance information in the arbitration request sent by the two or more voice devices serving as the slave nodes, a device that responds to the wake-up command in the two or more voice devices serving as the slave nodes, for example, the distance may be compared, and the slave node device closest to the sound source of the wake-up command may be determined to respond to the wake-up command. And under the condition that the voice equipment belongs to the master node, after the equipment responding to the awakening command in the more than two voice equipment serving as the slave nodes is determined, sending an arbitration result to the more than two voice equipment serving as the slave nodes, responding to the awakening command by the determined equipment responding to the awakening command, keeping other equipment in a state to be awakened, wherein the arbitration result comprises equipment identification (such as an MAC (media access control) address) of the equipment responding to the awakening command, the voice equipment serving as the slave nodes determines whether the voice equipment is the equipment responding to the awakening command according to the equipment identification, and if the voice equipment is the equipment responding to the awakening command, the voice equipment responds to the awakening command, namely is awakened.
In one embodiment, the device network is created by;
after the nodes are started, if the affiliated voice equipment does not receive the master signaling within the first preset time, the affiliated voice equipment becomes the master node and broadcasts the master signaling; if the master signaling started by the node is received within the first preset time, the voice equipment becomes a slave node, records the master node information, and broadcasts the corresponding networking signaling.
Specifically, the wireless communication mode includes, for example, a WiFi local area network, a ZigBee network, and a bluetooth mesh network. For example, all voice devices to be networked access the same wireless local area network. Wherein, each node (voice device) in the device network can be started by any voice device in the device network, i.e. the function realized by the present invention is started. For example, a user starts each node in the network by issuing a node start command (for example, including a voice command or a key command) to any voice device, the voice device receiving the start command broadcasts and sends a node start signaling through the local area network, and each voice device in the device network (including the voice device sending the node start master signaling) receives the node start signaling.
When any voice device receives the node starting signaling, the node starting signaling is used as a node, when the node is started, all nodes in the network are started as slave nodes, after any node is started, the master signaling is received, and the master signaling is networking signaling sent by the device which becomes the master node and indicates that the device becomes the master node; if the master signaling is not received within the first preset time, which indicates that no master node exists, the master node is actively changed into the master node, and the master signaling is broadcasted to indicate that the master node is changed into the master node, wherein the master signaling comprises the equipment identification (such as the MAC address) of the master node, and at this time, the network creation is successful. If the master signaling is received in the first preset time, which indicates that the master node is generated, any voice device continues to serve as the slave node, records the information of the master node, and broadcasts the networking signaling, wherein the networking signaling broadcasted by the slave node includes the device identifier (such as the MAC address) of the slave node.
After the voice device becomes a master node or a slave node, if a networking signaling of a newly added node is received, adding the node information of the newly added node into a node list of the voice device. For example, if any voice device receives the master signaling started by the node within the first preset time, the voice device continues to serve as a slave node, records the information of the master node, and broadcasts the networking signaling. Other node devices in the network receive the networking signaling of the node, and add the node as a new node into their own node list, for example, add the device identifier of the node into their own node list.
Further, for each node in the node list of the voice device, judging whether the interval time between the time when the heartbeat information of the node is received last time and the current time exceeds a second preset time; and if the interval time is judged to exceed the second preset time, deleting the node from the node list of the voice equipment.
Specifically, each node in the network traverses each node in its own node list, determines the interval duration between the time when the heartbeat information of the node is received last and the current time, and if the interval duration exceeds a preset specified time (i.e., the second preset time), the node is considered to be out of date and possibly have a fault, and the node is removed from the node list.
Further, there are several master node change cases as follows;
(1) and if the master node is deleted from the node list of the voice equipment and the master signaling is not received within the third preset time, the voice equipment becomes the master node.
For example, the slave node removes the MASTER node in the traversal process, and does not receive a new MASTER signaling within a certain time after the MASTER node is removed, that is, no node becomes the MASTER node, the MASTER node is actively changed to the MASTER node, and the MASTER signaling is sent to inform other nodes that the node becomes the new MASTER node. And if the master signaling is received in the third preset time, namely other nodes become master nodes, marking the node which sends the master signaling as the master node in the node list of the affiliated voice equipment. Other nodes detect that the heartbeat of the main node is overtime, and actively become a new main node, so that the normal response execution of the awakening command cannot be influenced.
(2) If the voice equipment is a slave node and the node list of the voice equipment marks that the first node is a master node, if a master signaling sent by the second node is received, judging whether the interval time of sending heartbeat information by the first node exceeds fourth preset time; and if the interval time exceeds the fourth preset time, marking the second node as a master node in a node list of the voice equipment.
For example, if the slave node marks that the node a is a MASTER node, the slave node receives MASTER signaling from the node B, and at this time, the slave node checks whether the heartbeat of the node a expires, and if so, the node B is marked as the MASTER node by updating, and the node B may be, for example, the node that is actively changed to the MASTER node in the case of the above (1), and broadcasts the MASTER signaling to notify other nodes after the node is actively changed to the MASTER node.
(3) When the voice equipment belongs to the master node, if master signaling from other nodes is received, comparing the size relationship between the MAC address of the voice equipment and the MAC address in the master signaling; and if the MAC address of the voice equipment is larger than the MAC address in the master signaling, the voice equipment is changed into a slave node.
For example, after the node is started, there may be more than two nodes that do not receive the master signaling within the first preset time, and the more than two nodes that do not receive the master signaling within the first preset time may simultaneously become master nodes, resulting in a master node conflict. If the MASTER node receives the MASTER signaling from other equipment (namely, the MASTER node conflicts), the MAC address of the MASTER node is compared with the MAC address in the MASTER signaling (character string comparison), if the MAC address in the MASTER signaling is smaller, the MASTER node is actively changed into the slave node, the MASTER node which is executing the arbitration task is not switched when meeting the MASTER conflict, and the MASTER node is switched after the task is completed.
Fig. 2 is a schematic diagram of a change process of a node role according to an embodiment of the present invention. As shown in fig. 2, after a node is started, if no MASTER signaling is received in 3 heartbeats, the node becomes a MASTER node, and if the MASTER signaling is received in 3 heartbeats, it indicates that another device has become a MASTER node, the node becomes a slave node. And after the MASTER node becomes the slave node, if the heartbeat of the MASTER node is overtime, the MASTER node is removed, and if 3 heartbeats do not receive the MASTER signaling, the MASTER node becomes the slave node.
The invention provides a voice equipment awakening device based on an equipment network.
Specifically, the device network is created based on a wireless communication mode, for example, a WiFi local area network, a ZigBee network, or a bluetooth mesh network. The device network comprises a voice device serving as a master node (master node) and more than two voice devices serving as slave nodes (slave nodes). There is only one master node, and each node maintains information of all nodes in the network and marks which one is the master node. For example, each node maintains a node list in which information of all nodes in the device network is stored and marked as master nodes. The inventive arrangement may be implemented in each speech device in the network of devices.
Fig. 3 is a block diagram of an embodiment of a wake-up apparatus for a voice device based on a wireless lan according to the present invention. As shown in fig. 3, the apparatus 100 includes a first receiving unit 110, a transmitting unit 120, a second receiving unit 130, and an arbitration unit 140.
The first receiving unit 110 is configured to receive a wake-up command when the voice device is a slave node; the sending unit 120 is configured to send an arbitration request to the voice device serving as the master node when the first receiving unit receives the wake-up command, and the voice device serving as the master node determines, according to the arbitration request, a device that responds to the wake-up command in the two or more voice devices serving as the slave nodes.
Specifically, the arbitration request may include distance information between the voice device and a sound source of the wake-up command and/or sound energy information of the wake-up command received by the voice device. When the voice device is used as a slave node, when the first receiving unit 110 receives a wake-up command, the sound energy of the received wake-up command (wake-up voice) is obtained, and the sending unit 120 sends an arbitration request containing sound energy information to the voice device used as a master node; or calculating the distance between the voice equipment and the sound source of the awakening command according to the sound energy, and sending an arbitration request containing the distance to the voice equipment serving as the master node. The voice device serving as the master node determines, according to the sound energy information in the arbitration request sent by the voice devices serving as the slave nodes, a device that responds to the wake-up command among the voice devices serving as the slave nodes, for example, the sound energy may be compared, and the slave node device that has the larger sound energy of the received wake-up command is determined to respond to the wake-up command; or, the voice device serving as the master node determines, according to distance information in the arbitration request sent by the two or more voice devices serving as the slave nodes, a device that responds to the wake-up command in the two or more voice devices serving as the slave nodes, for example, the distance may be compared, and the slave node device closest to the sound source of the wake-up command may be determined to respond to the wake-up command. Optionally, the first receiving unit 110 is further configured to: under the condition that the voice device belongs to the slave node, after receiving a wake-up command and sending an arbitration request to the voice device serving as the master node, receiving an arbitration result of a device responding to the wake-up command in the more than two voice devices serving as the slave nodes determined by the voice device serving as the master node according to the arbitration request, wherein the arbitration result comprises a device identifier, such as an MAC (media access control) address, of the device responding to the wake-up command, and if the voice device belongs to the slave node, responding to the wake-up command, namely the voice device is woken up.
The second receiving unit 130 is configured to receive, when the voice device belongs to the master node, an arbitration request sent by the two or more voice devices serving as slave nodes in the device network; the arbitration unit 140 is configured to determine, according to the arbitration request, a device, which responds to the wake-up command, of the two or more voice devices serving as slave nodes.
When the device is a master node, the second receiving unit 130 receives an arbitration request sent by the two or more voice devices serving as slave nodes in the device network, where the arbitration request may include distance information between the device and a sound source of the wake-up command and/or sound energy information of the wake-up command received by the device. The voice device belongs to the master node, the arbitration unit 140 determines, according to the sound energy information in the arbitration request sent by the two or more voice devices serving as slave nodes, a device that responds to the wake-up command in the two or more voice devices serving as slave nodes, for example, the magnitude of the sound energy may be compared, and the slave node device that receives the wake-up command and has larger sound energy is determined to respond to the wake-up command; or, the voice device serving as the master node determines, according to distance information in the arbitration request sent by the two or more voice devices serving as the slave nodes, a device that responds to the wake-up command in the two or more voice devices serving as the slave nodes, for example, the distance may be compared, and the slave node device closest to the sound source of the wake-up command may be determined to respond to the wake-up command. Optionally, in the case that the voice device is a master node, the arbitration unit 140 is further configured to: after the devices responding to the wake-up command in the more than two voice devices serving as the slave nodes are determined, sending an arbitration result to the more than two voice devices serving as the slave nodes, wherein the determined devices responding to the wake-up command respond to the wake-up command, and other devices keep a state to be woken up, the arbitration result includes a device identifier, such as an MAC address, of the device responding to the wake-up command, and the voice devices serving as the slave nodes determine whether the voice devices are the devices responding to the wake-up command according to the device identifier, and if so, respond to the wake-up command, that is, are woken up.
Optionally, the apparatus further comprises: a creating unit configured to create the device network by:
after the node is started, if the voice equipment does not receive the master signaling started by the node within the first preset time, the voice equipment becomes the master node and broadcasts a corresponding networking signaling; if the master signaling started by the node is received within the first preset time, the voice equipment becomes a slave node, records the master node information, and broadcasts the corresponding networking signaling.
Specifically, the wireless communication mode includes, for example, a WiFi local area network, a ZigBee network, and a bluetooth mesh network. For example, all voice devices to be networked access the wireless local area network. Wherein, each node (voice device) in the device network can be started by any voice device in the device network, i.e. the function realized by the present invention is started. For example, a user starts each node in the network by issuing a node start command (for example, including a voice command or a key command) to any voice device, the voice device receiving the start command broadcasts and sends a node start signaling through the local area network, and each voice device in the device network (including the voice device sending the node start master signaling) receives the node start signaling.
When any voice device receives the node starting signaling, the node starting signaling is used as a node, when the node is started, all nodes in the network are started as slave nodes, after any node is started, the master signaling is received, and the master signaling is networking signaling sent by the device which becomes the master node and indicates that the device becomes the master node; if the master signaling is not received within the first preset time, which indicates that no master node exists, the master node is actively changed into the master node, and the master signaling is broadcasted to indicate that the master node is changed into the master node, wherein the master signaling comprises the equipment identification (such as the MAC address) of the master node, and at this time, the network creation is successful. If the master signaling is received in the first preset time, which indicates that the master node is generated, any voice device continues to serve as the slave node, records the information of the master node, and broadcasts the networking signaling, wherein the networking signaling broadcasted by the slave node includes the device identifier (such as the MAC address) of the slave node.
After the voice device becomes a master node or a slave node, if a networking signaling of a newly added node is received, adding the node information of the newly added node into a node list of the voice device. For example, if any voice device receives the master signaling started by the node within the first preset time, the voice device continues to serve as a slave node, records the information of the master node, and broadcasts the networking signaling. Other node devices in the network receive the networking signaling of the node, and add the node as a new node into their own node list, for example, add the device identifier of the node into their own node list.
Further, for each node in the node list of the voice device, judging whether the interval time between the time when the heartbeat information of the node is received last time and the current time exceeds a second preset time; and if the interval time is judged to exceed the second preset time, deleting the node from the node list of the voice equipment.
Specifically, each node in the network traverses each node in its own node list, determines the interval duration between the time when the heartbeat information of the node is received last and the current time, and if the interval duration exceeds a preset specified time (i.e., the second preset time), the node is considered to be expired, and the node is removed from the node list.
Further, there are several master node change cases as follows;
(1) and if the master node is deleted from the node list of the voice equipment and the master signaling is not received within the third preset time, the voice equipment becomes the master node.
For example, the slave node removes the MASTER node in the traversal process, and does not receive a new MASTER signaling within a certain time after the MASTER node is removed, that is, no node becomes the MASTER node, the MASTER node is actively changed to the MASTER node, and the MASTER signaling is sent to inform other nodes that the node becomes the new MASTER node. And if the master signaling is received in the third preset time, namely other nodes become master nodes, marking the node which sends the master signaling as the master node in the node list of the affiliated voice equipment.
(2) If the voice equipment is a slave node and the node list of the voice equipment marks that the first node is a master node, if a master signaling sent by the second node is received, judging whether the interval time of sending heartbeat information by the first node exceeds fourth preset time; and if the interval time exceeds the fourth preset time, marking the second node as a master node in a node list of the voice equipment.
For example, if the slave node marks that the node a is a MASTER node, the slave node receives MASTER signaling from the node B, and at this time, the slave node checks whether the heartbeat of the node a expires, and if so, the node B is marked as the MASTER node by updating, and the node B may be, for example, the node that is actively changed to the MASTER node in the case of the above (1), and broadcasts the MASTER signaling to notify other nodes after the node is actively changed to the MASTER node.
(3) When the voice equipment belongs to the master node, if master signaling from other nodes is received, comparing the size relationship between the MAC address of the voice equipment and the MAC address in the master signaling; and if the MAC address of the voice equipment is larger than the MAC address in the master signaling, the voice equipment is changed into a slave node.
For example, after the node is started, there may be more than two nodes that do not receive the master signaling within the first preset time, and the more than two nodes that do not receive the master signaling within the first preset time may simultaneously become master nodes, resulting in a master node conflict. If the MASTER node receives the MASTER signaling from other equipment (namely, the MASTER node conflicts), the MAC address of the MASTER node is compared with the MAC address in the MASTER signaling (character string comparison), if the MAC address in the MASTER signaling is smaller, the MASTER node is actively changed into the slave node, the MASTER node which is executing the arbitration task is not switched when meeting the MASTER conflict, and the MASTER node is switched after the task is completed.
The invention also provides a storage medium corresponding to the voice device wake-up method, on which a computer program is stored, which when executed by a processor implements the steps of any of the methods described above.
The invention also provides a voice device corresponding to the voice device wake-up method, which comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of any one of the methods.
The invention also provides a voice device corresponding to the voice device awakening device, which comprises any one of the voice device awakening devices.
Therefore, according to the scheme provided by the invention, the equipment network is established based on a wireless communication mode, a unique master node is selected in the network, and other nodes are slave nodes; when a user tries to wake up, the devices which have received the wake-up command are identified to communicate with each other, and which device responds to the user is determined, so that the situation of one-to-one response is avoided; a user only needs to start corresponding functions, the user does not need to designate a main node, a unique master node can be randomly selected in the network, all nodes receiving the awakening command send arbitration requests to the master node, the master node executes an arbitration algorithm, and the unique node responding to the awakening command is selected. Other nodes detect that the heartbeat of the master node is overtime, and actively become a new master node, so that the normal response execution of the awakening command is not influenced.
The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Other examples and implementations are within the scope and spirit of the invention and the following claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hardwired, or a combination of any of these. In addition, each functional unit may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and the parts serving as the control device may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A voice equipment awakening method based on equipment network is characterized in that the equipment network comprises a voice equipment as master node and more than two voice equipment as slave node; the method comprises the following steps:
under the condition that the voice equipment belongs to the slave node, when a wake-up command is received, sending an arbitration request to the voice equipment serving as the master node, and determining equipment responding to the wake-up command in the more than two voice equipment serving as the slave nodes according to the arbitration request by the voice equipment serving as the master node;
and under the condition that the voice equipment belongs to the master node, receiving an arbitration request sent by the more than two voice equipment serving as the slave nodes in the equipment network, and determining equipment responding to the awakening command in the more than two voice equipment serving as the slave nodes according to the arbitration request.
2. The method of claim 1, wherein the device network is created by;
after the node is started, if the voice equipment does not receive the master signaling started by the node within the first preset time, the voice equipment becomes the master node and broadcasts a corresponding networking signaling;
if the master signaling started by the node is received within the first preset time, the voice equipment becomes a slave node, records the master node information, and broadcasts the corresponding networking signaling.
3. The method of claim 2, further comprising:
after the voice equipment becomes a master node or a slave node, if a networking signaling of a newly added node is received, adding node information of the newly added node into a node list of the voice equipment;
and/or the presence of a gas in the gas,
judging whether the interval time between the time when the signaling of the node is received for the last time and the current time exceeds second preset time or not for each node in a node list of the voice equipment;
and if the interval time is judged to exceed the second preset time, deleting the node from the node list of the voice equipment.
4. The method of claim 2 or 3, further comprising:
if the master node is deleted from the node list of the voice equipment and the master signaling is not received within the third preset time, the voice equipment becomes the master node;
and/or the presence of a gas in the gas,
if the voice equipment is a slave node and the node list of the voice equipment marks that the first node is a master node, if a master signaling sent by the second node is received, judging whether the interval time of sending heartbeat information by the first node exceeds fourth preset time;
if the interval time exceeds the fourth preset time, marking the second node as a master node in a node list of the voice equipment;
and/or the presence of a gas in the gas,
when the voice equipment belongs to the master node, if master signaling from other nodes is received, comparing the size relationship between the MAC address of the voice equipment and the MAC address in the master signaling;
and if the MAC address of the voice equipment is larger than the MAC address in the master signaling, the voice equipment is changed into a slave node.
5. A voice equipment awakening device based on equipment network is characterized in that the equipment network comprises a voice equipment as master node and more than two voice equipment as slave node; the apparatus, comprising:
the first receiving unit is used for receiving a wake-up command under the condition that the voice equipment belongs to a slave node;
the sending unit is used for sending an arbitration request to the voice equipment serving as the master node when the first receiving unit receives the wake-up command, and the voice equipment serving as the master node determines equipment responding to the wake-up command in the more than two voice equipment serving as the slave nodes according to the arbitration request;
a second receiving unit, configured to receive, when the voice device belongs to the master node, an arbitration request sent by the two or more voice devices serving as slave nodes in the device network;
and the arbitration unit is used for determining the equipment responding to the awakening command in the more than two voice equipment serving as the slave nodes according to the arbitration request.
6. The apparatus of claim 5, further comprising: a creation unit configured to create the device network as follows;
after the node is started, if the voice equipment does not receive the master signaling started by the node within the first preset time, the voice equipment becomes the master node and broadcasts a corresponding networking signaling;
if the master signaling started by the node is received within the first preset time, the voice equipment becomes a slave node, records the master node information, and broadcasts the corresponding networking signaling.
7. The apparatus of claim 6, wherein the creating unit is further configured to:
after the voice equipment becomes a master node or a slave node, if a networking signaling of a newly added node is received, adding node information of the newly added node into a node list of the voice equipment;
and/or the presence of a gas in the gas,
judging whether the interval time between the time when the signaling of the node is received for the last time and the current time exceeds second preset time or not for each node in a node list of the voice equipment;
and if the interval time is judged to exceed the second preset time, deleting the node from the node list of the voice equipment.
8. The apparatus according to claim 6 or 7, wherein the creating unit is further configured to:
if the master node is deleted from the node list of the voice equipment and the master signaling is not received within the third preset time, the voice equipment becomes the master node;
and/or the presence of a gas in the gas,
if the voice equipment is a slave node and the node list of the voice equipment marks that the first node is a master node, if a master signaling sent by the second node is received, judging whether the interval time of sending heartbeat information by the first node exceeds fourth preset time;
if the interval time exceeds the fourth preset time, marking the second node as a master node in a node list of the voice equipment;
and/or the presence of a gas in the gas,
when the voice equipment belongs to the master node, if master signaling from other nodes is received, comparing the size relationship between the MAC address of the voice equipment and the MAC address in the master signaling;
and if the MAC address of the voice equipment is larger than the MAC address in the master signaling, the voice equipment is changed into a slave node.
9. A storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
10. Speech device comprising a processor, a memory and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any of claims 1-4 when executing the program or comprising the device network based wake-up unit according to any of claims 5-8.
CN202010668425.5A 2020-07-13 2020-07-13 Voice equipment awakening method, device, medium and equipment based on equipment network Pending CN111901210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010668425.5A CN111901210A (en) 2020-07-13 2020-07-13 Voice equipment awakening method, device, medium and equipment based on equipment network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010668425.5A CN111901210A (en) 2020-07-13 2020-07-13 Voice equipment awakening method, device, medium and equipment based on equipment network

Publications (1)

Publication Number Publication Date
CN111901210A true CN111901210A (en) 2020-11-06

Family

ID=73192480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010668425.5A Pending CN111901210A (en) 2020-07-13 2020-07-13 Voice equipment awakening method, device, medium and equipment based on equipment network

Country Status (1)

Country Link
CN (1) CN111901210A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230054011A1 (en) * 2021-08-20 2023-02-23 Beijing Xiaomi Mobile Software Co., Ltd. Voice collaborative awakening method and apparatus, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977222A (en) * 2010-10-28 2011-02-16 北京九华互联科技有限公司 Method for realizing synchronization of multimedia terminals
CN105429767A (en) * 2015-10-20 2016-03-23 北京小鸟听听科技有限公司 Group-establishing method and group-establishing system of audio groups, and equipment
CN109391528A (en) * 2018-08-31 2019-02-26 百度在线网络技术(北京)有限公司 Awakening method, device, equipment and the storage medium of speech-sound intelligent equipment
US20190295548A1 (en) * 2018-03-20 2019-09-26 Gojo Industries, Inc. Restroom maintenance systems having a voice activated virtual assistant

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977222A (en) * 2010-10-28 2011-02-16 北京九华互联科技有限公司 Method for realizing synchronization of multimedia terminals
CN105429767A (en) * 2015-10-20 2016-03-23 北京小鸟听听科技有限公司 Group-establishing method and group-establishing system of audio groups, and equipment
US20190295548A1 (en) * 2018-03-20 2019-09-26 Gojo Industries, Inc. Restroom maintenance systems having a voice activated virtual assistant
CN109391528A (en) * 2018-08-31 2019-02-26 百度在线网络技术(北京)有限公司 Awakening method, device, equipment and the storage medium of speech-sound intelligent equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230054011A1 (en) * 2021-08-20 2023-02-23 Beijing Xiaomi Mobile Software Co., Ltd. Voice collaborative awakening method and apparatus, electronic device and storage medium
US12008993B2 (en) * 2021-08-20 2024-06-11 Beijing Xiaomi Mobile Software Co., Ltd. Voice collaborative awakening method and apparatus, electronic device and storage medium

Similar Documents

Publication Publication Date Title
JP6830984B2 (en) Wake-up method for voice smart devices, wake-up devices for voice smart devices, smart devices and computer-readable storage media
TWI531253B (en) Method and system for multi-stage device filtering in a bluetooth low energy device
CN102098354B (en) Method and server for allocating dynamic host configuration protocol (DHCP) addresses
WO2022142623A1 (en) Smart device control method and apparatus, electronic device, and computer readable medium
KR20080052084A (en) The system and method of beacon scheduling for preventing beacon overlap
EP1233538A2 (en) Power line communications system
CN111538763A (en) Method for determining main node in cluster, electronic equipment and storage medium
CN111263338B (en) Network distribution method of Bluetooth Mesh network, related network distribution equipment and system
CN110808886A (en) Voice equipment control method and device, storage medium and voice equipment
US8873429B2 (en) Method and system to dynamically detect and form a master slave network
CN109347590B (en) Synchronization method of DoIP entity in vehicle-mounted Ethernet and DoIP entity
WO2013152649A1 (en) Method and device for determining resource collision
CN110213359B (en) Internet of vehicles networking data pushing system and method based on D2D
KR100825735B1 (en) Method for Address Space Management about nodes incapable of communication over ZigBee Network
CN108445788A (en) A kind of hotel's scenery control method and relevant apparatus
CN102055644A (en) Method, device and system for load management in distributed directory service system
US12057960B2 (en) Method for notifying a message of a smart home based on a smart screen apparatus and smart screen
CN111901210A (en) Voice equipment awakening method, device, medium and equipment based on equipment network
CN113905050A (en) Method, device and system for detecting internet access information
CN115085767B (en) Recovery networking method, device and equipment based on HPLC communication
CN114866365A (en) Arbitration machine election method and device, intelligent equipment and computer readable storage medium
CN112003943A (en) Voice data synchronization method and device
US9596131B2 (en) Method for transiting operation mode of routing processor
CN112728772B (en) Control method of water heater
US10764268B2 (en) Security controller (SC) restoration method and apparatus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201106