A method for networking speakers and a first speaker

The method of sending messages to other speakers through the first speaker and determining the master-slave relationship based on the weight value solves the problem of cumbersome networking operations in the prior art, improves networking efficiency and reduces user learning costs.

CN116669001BActive Publication Date: 2025-02-28SHENZHEN UASCENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310544813.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-15
Publication Date
2025-02-28
Estimated Expiration
2043-05-15

AI Technical Summary

Technical Problem

In the prior art, when multiple speakers are networked, the operation is cumbersome and inefficient. The speaker operation methods of different manufacturers are different, so users need to spend expensive learning costs to form the network.

Method used

The first message is sent to other speakers in the speaker set through the first speaker, and the response message of each speaker is obtained, and the weight value of each speaker is determined based on the number of control commands received in history. If the weight value of the first speaker is greater than that of other speakers, a third message is sent to indicate that the first speaker is the main speaker.

Benefits of technology

It is realized that any speaker in the speaker collection can initiate networking, avoiding the need for users to operate each speaker one by one, improving the efficiency of networking and reducing the user's learning costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004233760930000011
    Figure HDA0004233760930000011
  • Figure HDA0004233760930000012
    Figure HDA0004233760930000012
  • Figure HDA0004233760930000021
    Figure HDA0004233760930000021
Patent Text Reader

Abstract

A method for networking speakers and a first speaker, the method comprising: the first speaker sends a first message to other speakers in a speaker set, the speaker set comprises a plurality of speakers, the first speaker is any speaker in the speaker set, the other speakers include speakers in the speaker set other than the first speaker, the first message is used to initiate networking, the first speaker obtains a second message sent by each of the other speakers in response to the first message, the second message of each speaker is used to indicate a weight value of each speaker, the weight value of each speaker is positively correlated with the number of control instructions received in the history of each speaker, if the weight value of the first speaker is greater than the weight value of each of the other speakers, the first speaker sends a third message to the other speakers, the third message is used to indicate that the first speaker is a master speaker. The solution provided by the present application can improve the problem of cumbersome operation and low efficiency of the traditional networking method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of smart speakers, and in particular, relates to a speaker networking method and a first speaker. Background Art

[0002] As people's demand for audio and video entertainment grows, the requirements for speakers are also getting higher and higher. In some scenarios, multiple speakers are needed to achieve stunning music effects, such as parties or large venues. This requires multiple speakers to be networked to meet the audio needs of the scene.

[0003] In the prior art, when multiple speakers are networked, each speaker needs to be manually operated to set each speaker as a master speaker or a slave speaker. This networking method is very cumbersome and inefficient, and since the operation methods of speakers from different manufacturers may be different, users need to pay a high learning cost to network the multiple speakers. Summary of the invention

[0004] The purpose of the present application is to provide a method for speaker networking and a first speaker, aiming to improve the problems of cumbersome operation and low efficiency of traditional networking methods.

[0005] A first aspect of an embodiment of the present application provides a method for networking speakers, the method comprising:

[0006] A first speaker sends a first message to other speakers in a speaker set, where the speaker set includes a plurality of speakers, the first speaker is any speaker in the speaker set, and the other speakers include speakers in the speaker set other than the first speaker, and the first message is used to initiate networking;

[0007] The first speaker obtains a second message sent by each of the other speakers in response to the first message, the second message of each speaker is used to indicate a weight value of each speaker, and the weight value of each speaker is positively correlated with the number of control instructions received in the history of each speaker;

[0008] If the weight value of the first speaker is greater than the weight value of each of the other speakers, the first speaker sends a third message to the other speakers, where the third message is used to indicate that the first speaker is the main speaker.

[0009] In some implementations, the first speaker sends a first message to other speakers in the speaker set, including:

[0010] The first speaker sends the first message to the other speakers in response to a first instruction, wherein the first instruction is used to trigger the speaker set networking; or

[0011] If the first speaker does not receive the fourth message sent by the second speaker within the first time period, the first speaker sends the first message to the other speakers, and the fourth message is used to indicate that the second speaker is the main speaker.

[0012] In some implementations, the second message of each of the speakers includes identity information of each of the speakers and the number of control instructions received in the history of each of the speakers, and the method further includes:

[0013] The first speaker determines a weight value of each speaker based on identity information of each speaker and the number of control instructions received in the history of each speaker.

[0014] In some embodiments, the method further comprises:

[0015] If the first speaker does not receive the second message from any of the other speakers after sending the first message, the first speaker sends the third message to the other speakers.

[0016] In some embodiments, the method further comprises:

[0017] If the first speaker receives the fifth message sent by the third speaker, the first speaker determines the third speaker as the master speaker and determines the first speaker as the slave speaker, and the fifth message is used to indicate that the third speaker is the master speaker.

[0018] In some embodiments, the method further comprises:

[0019] The first speaker exchanges data with a fourth speaker based on a connectionless slave broadcast (CSB) protocol, and the fourth speaker is any speaker among the other speakers.

[0020] In some implementations, the first speaker performs data interaction with the fourth speaker based on the CSB protocol, including:

[0021] The first speaker sends a CSB parameter to the fourth speaker, where the CSB parameter is used for the fourth speaker to join the broadcast group;

[0022] If the fourth speaker joins the broadcast group, the first speaker sends a CSB data packet to the fourth speaker.

[0023] A second aspect of an embodiment of the present application provides a first speaker, the first speaker comprising:

[0024] A first sending module, configured to send a first message to other speakers in a speaker set, wherein the speaker set includes a plurality of speakers, the first speaker is any speaker in the speaker set, and the other speakers include speakers in the speaker set except the first speaker, and the first message is used to initiate networking;

[0025] an acquisition module, configured to acquire a second message sent by each of the other speakers in response to the first message, wherein the second message of each speaker is used to indicate a weight value of each speaker, and the weight value of each speaker is positively correlated with the number of control instructions received in the history of each speaker;

[0026] The second sending module is configured to send a third message to the other speakers if the weight value of the first speaker is greater than the weight value of each of the other speakers, wherein the third message is used to indicate that the first speaker is a main speaker.

[0027] A third aspect of an embodiment of the present application proposes a speaker, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described above when executing the computer program.

[0028] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0029] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0030] In an embodiment of the present application, a speaker set includes multiple speakers, and the first speaker in the speaker set can send a first message to other speakers in the speaker set, thereby triggering networking. The first speaker can obtain a second message for each of the other speakers, and the second message can be used to indicate the weight value of the speaker, and the weight value is positively correlated with the number of control instructions received in the history of the speaker. The first speaker can send a third message to the other speakers when the weight value of the first speaker is greater than the weight values ​​of the other speakers in the speaker set, thereby indicating that the first speaker is the master speaker and the other speakers are slave speakers. That is, any speaker in the speaker set can initiate networking, and the user does not need to operate each speaker in the speaker set one by one, which not only improves the efficiency of networking, but also reduces the user's learning cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of a speaker system provided in an embodiment of the present application;

[0032] Figure 2A flowchart of a method for networking speakers provided in an embodiment of the present application;

[0033] Figure 3 A flowchart of another method for networking speakers provided in an embodiment of the present application;

[0034] Figure 4 A flowchart of a data interaction method provided in an embodiment of the present application;

[0035] Figure 5 A flowchart of another data interaction method provided in an embodiment of the present application;

[0036] Figure 6 A schematic diagram of the structure of a first speaker provided in an embodiment of the present application;

[0037] Figure 7 A schematic diagram of the structure of a speaker provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0039] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0040] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0041] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0042] Figure 1Schematic diagram of a speaker system provided by an embodiment of the present application is shown. The speaker system may include a speaker set, and the speaker set may include multiple speakers 110 ( Figure 1 Only three speakers 110 are shown in the figure, and multiple speakers 110 can be connected via a network 120.

[0043] The speaker 110 refers to a device that can convert an audio signal into sound. In some embodiments, the speaker 110 refers to a power amplifier built into a speaker mainframe or subwoofer box, which amplifies the audio signal and plays it back by the speaker 110 itself, making the sound louder. In some embodiments, the multiple speakers 110 may be speakers 110 from different manufacturers.

[0044] In some embodiments, the speaker 110 may be a Bluetooth Low Energy (BLE) device, wherein a BLE device refers to a device that supports Bluetooth protocol 4.0 or higher, has the characteristics of low cost and low power consumption, and can be applied to data transmission with high real-time requirements.

[0045] In some embodiments, each speaker 110 can be used as a master speaker or a slave speaker. In some embodiments, the speaker system can be networked, and the networked speaker system can include a master speaker and at least one slave speaker. In some embodiments, the master speaker can control the slave speaker and instruct the slave speaker to operate in a specific manner, such as processing the audio signal in a specific manner, playing / pausing the sound, etc.

[0046] The network 120 can be used to achieve connection and communication between various devices in the speaker system. In some implementations, the network 120 can include a network based on a short-range communication protocol such as Bluetooth.

[0047] In some embodiments, the speaker system may further include a control device 130, and the control device 130 may be connected to other devices such as the speaker 110 in the speaker system through the network 120. In some embodiments, the control device 130 may control any speaker 110. In some embodiments, the control device 130 may instruct each speaker 110 in the speaker system to initiate networking. In some embodiments, the control device 130 may send a control instruction to a master speaker in the speaker system, and the master speaker may execute the control instruction, and / or send the control instruction to other slave speakers.

[0048] In some implementations, the control device 130 may include a mobile phone, a computer, a wearable device, etc. Of course, in practical applications, the control device 130 may also include other types of devices, and the specific type of the control device 130 is not limited in the present embodiment.

[0049] Figure 2 The flowchart of a method for networking speakers provided in an embodiment of the present application is shown. The method can be applied to the aforementioned Figure 1 The speaker system in the embodiment of the present invention comprises:

[0050] S201, a first speaker sends a first message to other speakers in a speaker set, the speaker set includes multiple speakers, the first speaker is any speaker in the speaker set, and the other speakers include speakers in the speaker set except the first speaker, and the first message is used to initiate networking.

[0051] The first speaker in the speaker set can send a first message to other speakers in the speaker set, thereby initiating networking and determining a master speaker and a slave speaker in the speaker set. That is, any speaker in the speaker set can initiate networking, and the user does not need to operate each speaker in the speaker set one by one, which not only improves the efficiency of networking, but also reduces the user's learning cost.

[0052] In some implementations, the first message may include an election message.

[0053] In some implementations, the first speaker may send a first message to other speakers in response to a first instruction, and the first instruction may be used to trigger speaker set networking.

[0054] In some implementations, the first speaker may obtain the first instruction from an input device of the first speaker.

[0055] For example, the input device of the first speaker includes a button, and the user can submit the first instruction to the first speaker by pressing the button or pressing a virtual button on the touch screen.

[0056] For another example, the input device of the first speaker includes a touch screen, and the user can press a virtual button on the touch screen to submit the first instruction to the first speaker.

[0057] For another example, the input device of the first speaker includes a microphone, and the user can say: "Networking", and the first speaker can receive a first instruction submitted by the user through the microphone, wherein the first instruction is a voice instruction.

[0058] In some implementations, the first speaker may receive a first instruction sent by the control device.

[0059] For example, the control device includes a mobile phone, in which a speaker application is installed. A user can select a networking option in the speaker application. In response to the user selecting the networking option, the mobile phone sends a first instruction to the first speaker.

[0060] For another example, the control device includes a remote controller, and the first speaker can receive a first instruction sent by the remote controller.

[0061] In some implementations, the control device may send the first instruction by broadcasting, and multiple speakers in the speaker set may receive the first instruction, and the speaker that receives the first instruction may serve as the first speaker.

[0062] In some embodiments, if the first speaker does not receive the fourth message sent by the second speaker within the first duration, the first speaker sends the first message to other speakers, and the fourth message is used to indicate that the second speaker is the main speaker. The second speaker can be any speaker in the speaker set except the first speaker. In some implementations, the second speaker can send the fourth message once every first duration. If the first speaker can receive the fourth message sent by the second speaker, the main speaker is currently included in the speaker set. If the first speaker does not receive the fourth message sent by the second speaker within the first duration, the main speaker is not currently included in the speaker set, and the first speaker can trigger the election of the main speaker in the speaker set by sending the first message. That is, when the speaker set does not include the main speaker, the speaker set can re-trigger the election of the main speaker. For example, when a speaker in the speaker set that serves as the main speaker is disconnected or exits, other speakers in the speaker set can elect a new main speaker.

[0063] It should be noted that the first duration may be any duration set in advance, for example, the first duration may be 200 ms (milliseconds), and the embodiment of the present application does not limit the method for setting the first duration and the specific size of the first duration.

[0064] In some implementations, the fourth message may include a victory message.

[0065] S202, the first speaker obtains the second message sent by each of the other speakers in response to the first message, the second message of each speaker is used to indicate the weight value of each speaker, and the weight value of each speaker is positively correlated with the number of control instructions received in the history of each speaker.

[0066] In some embodiments, after the first speaker sends the first message to the other speakers, the other speakers may send a second message to the first speaker in response to the first message. In some embodiments, each of the other speakers may send the second message by broadcasting. In some embodiments, the second message may include an answer message, which may be used to respond to the aforementioned election message.

[0067] In some embodiments, the weight value of each speaker can be used to indicate the importance of the speaker in the speaker set. In some embodiments, if the speaker receives more control instructions in history, it may be more convenient or more accustomed for the user to directly operate the speaker, and the importance of the speaker in the speaker set is higher.

[0068] For example, the speaker set includes speaker 1, speaker 2 and speaker 3, among which speaker 1 is placed on the floor of the living room, and speaker 2 and speaker 3 are suspended on the walls of other rooms. Then, compared with speaker 2 and speaker 3, speaker 3 is easier for users to operate.

[0069] For another example, the speaker set includes speaker 1, speaker 2, and speaker 3, where speaker 1 comes from manufacturer 1, speaker 2 comes from manufacturer 2, and speaker 3 comes from manufacturer 3. Since speaker 1, speaker 2, and speaker 3 come from different manufacturers, the operation methods of speaker 1, speaker 2, and speaker 3 may be very different. Speaker 1 is the speaker that the user has purchased the longest time ago, and the user is more familiar with the operation method of speaker 1, and is more accustomed to directly operating speaker 1.

[0070] In some implementations, the second message for each speaker may include a weight value for the speaker, thereby directly indicating the weight value.

[0071] In some embodiments, the second message for each speaker may include at least one parameter for determining a weight value of the speaker, thereby indirectly indicating the weight value through the at least one parameter. In some embodiments, the at least one parameter includes the number of control instructions received in the history of the speaker. In some embodiments, the at least one parameter includes the identity information of the speaker and the number of control instructions received in the history of the speaker. It is understandable that in actual applications, the second message may also include more or less information.

[0072] In some implementations, the control instructions received in the speaker history may include control instructions received by the speaker from a control device, control instructions obtained by the speaker from an input device of the speaker, or control instructions received by the speaker from other speakers.

[0073] In some implementations, the number of control instructions received in the speaker history may be the number of control instructions received by the speaker within a third time period before the current moment. The third time period may be any time period set in advance, and the embodiment of the present application does not limit the method for setting the third time period and the size of the third time period.

[0074] In some embodiments, the identity information of the speaker may be used to indicate the identity of the speaker. In some embodiments, the identity information of the speaker may include a unique device code (Identity, ID) of the speaker.

[0075] S203: If the weight value of the first speaker is greater than the weight value of each of the other speakers, the first speaker sends a third message to the other speakers, where the third message is used to indicate that the first speaker is the main speaker.

[0076] The weight value of the first speaker is greater than the weight value of each speaker in the other speakers, that is, the first speaker is the speaker with the largest weight value in the speaker set, so the first speaker can send a third message to the other speakers, thereby indicating that the first speaker is the master speaker through the third message. If each speaker in the other speakers receives the third message, it can be determined that the speaker is a slave speaker.

[0077] In some embodiments, the weight value of each speaker can be used to indicate the importance of the speaker in the speaker set, and the first speaker with the largest weight value in the speaker set is used as the main speaker, that is, the first most important speaker in the speaker set is used as the main speaker. In some embodiments, if the number of control instructions received in the speaker history is greater, it may be more convenient or more accustomed for the user to directly operate the speaker, and the first speaker with the largest weight value in the speaker set is used as the main speaker, that is, the first speaker in the speaker set that best meets the user's operating habits is used as the main speaker.

[0078] In some embodiments, the first speaker may determine the weight value of the first speaker based on the number of control instructions received in the history of the first speaker. In some embodiments, the first speaker may determine the weight value of the first speaker based on the identity information of the first speaker and the number of control instructions received in the history.

[0079] In some implementations, the weight value of each speaker may be determined through a preset functional function based on the identity information of each speaker and the number of control instructions received in history.

[0080] For example, the weight value of the speaker can be determined by P=Function(SpeakerID, VNum), where P represents the weight value, Function() represents the preset function, SpeakerID represents the unique device identifier of the speaker, and VNum represents the number of control instructions received in the speaker history.

[0081] It should be noted that the embodiments of the present application do not limit the specific operation method of the functional function.

[0082] In some implementations, if the weight value of the first speaker is greater than the weight value of each of the other speakers, the first speaker may send a third message once every first time interval, thereby regularly notifying other speakers that the first speaker is the main speaker.

[0083] In some implementations, the third message may include a victory message.

[0084] In some embodiments, if the weight value of the first speaker is less than the weight value of at least one of the other speakers, the first speaker may not send the third message. In some embodiments, if the first speaker receives the fifth message sent by the third speaker, the first speaker may determine the third speaker as the master speaker and the first speaker as the slave speaker, and the fifth message is used to indicate that the third speaker is the master speaker. That is, when the weight value of the first speaker is not the speaker with the largest weight value in the speaker set, the first speaker can monitor the fifth message sent by other speakers, so as to determine that the first speaker is a slave speaker when the other speakers are called master speakers.

[0085] In some implementations, the fifth message may include a victory message.

[0086] In some embodiments, if the first speaker does not receive a second message from any of the other speakers after sending the first message, the first speaker can send a third message to the other speakers, thereby becoming the main speaker in a timely manner when the first message is sent and the second message from any speaker is not obtained, thereby reducing the problem of being unable to set the main speaker and the slave speaker and improving the efficiency of networking.

[0087] In some embodiments, if the first speaker does not receive the second message sent by any of the other speakers within the second time period after sending the first message, the first speaker may send a third message to the other speakers. The second time period may be any time period set in advance, and the embodiment of the present application does not limit the method for setting the second time period and the size of the second time period.

[0088] In some implementations, when the fifth speaker joins the speaker set, the fifth speaker may receive the third message sent by the first speaker, so the fifth speaker may determine the first speaker as the master speaker and the fifth speaker as the slave speaker.

[0089] In an embodiment of the present application, a speaker set includes multiple speakers, and the first speaker in the speaker set can send a first message to other speakers in the speaker set, thereby triggering networking. The first speaker can obtain a second message for each of the other speakers, and the second message can be used to indicate the weight value of the speaker, and the weight value is positively correlated with the number of control instructions received in the history of the speaker. The first speaker can send a third message to the other speakers when the weight value of the first speaker is greater than the weight values ​​of the other speakers in the speaker set, thereby indicating that the first speaker is the master speaker and the other speakers are slave speakers. That is, any speaker in the speaker set can initiate networking, and the user does not need to operate each speaker in the speaker set one by one, which not only improves the efficiency of networking, but also reduces the user's learning cost.

[0090] Figure 3 A flow chart of a method for networking speakers provided in an embodiment of the present application is shown, and the method can be used in a speaker system, the speaker system includes a control device and a speaker set, the speaker set includes speaker 1, speaker 2 and speaker 3. The method includes:

[0091] S301, the control device sends a first instruction to speaker 1.

[0092] Among them, speaker 1 can be used as the aforementioned first speaker, and speaker 2 and speaker 3 can be used as other speakers in the aforementioned speaker set.

[0093] In some embodiments, the control device may include a mobile phone. In some embodiments, a speaker application is installed in the mobile phone, and the user can select a networking option in the speaker application. In response to the user selecting the networking option, the mobile phone sends a first instruction to the speaker 1.

[0094] S302, speaker 1 sends election message 1 to speakers 2 and 3.

[0095] Among them, election message 1 can be used as the first message mentioned above.

[0096] The manner in which speaker 1 sends election message 1 to speakers 2 and 3 may also refer to the relevant description in the aforementioned S201.

[0097] S303, speaker 2 sends a response message 1 to speaker 1, and speaker 3 sends a response message 2 to speaker 1.

[0098] Among them, the response message 1 and the response message 2 can be used as the second message mentioned above.

[0099] In some embodiments, response message 1 includes UnicID2 and Var2, UnicID2 is the identity information of speaker 2, and Var2 is the number of times speaker 2 has received control instructions in the history; response message 2 includes UnicID3 and Var3, UnicID3 is the identity information of speaker 3, and Var3 is the number of times speaker 3 has received control instructions in the history.

[0100] S304 , speaker 1 determines a weight value of speaker 1 , a weight value of speaker 2 , and a weight value of speaker 3 .

[0101] In some implementations, the weight value of speaker 1 may be P1, where P1=Function(UnicID1, Var1); the weight value of speaker 2 may be P2, where P2=Function(UnicID2, Var2); and the weight value of speaker 3 may be P3, where P3=Function(UnicID3, Var3). Where UnicID1 is the identity information of speaker 1, and Var1 is the number of times speaker 1 has received control instructions in history.

[0102] In some embodiments, in S301, the control device may send a first instruction by broadcasting, and speaker 1, speaker 2, and speaker 3 may all receive the first instruction; in S302, speaker 1 may broadcast election message 1, speaker 2 may broadcast election message 2, and speaker 3 may broadcast election message 3; in S303, speaker 1 may respond to election message 2 and election message 3 by broadcasting a reply message 3, which may include UnicID1 and Var1, speaker 2 may broadcast reply message 1, and speaker 3 may broadcast reply message 2; in S304, speaker 2 and speaker 3 may determine the weight value of speaker 1, the weight value of speaker 2, and the weight value of speaker 3.

[0103] S305, if the weight value of speaker 1 is the largest, speaker 1 can be the main speaker, and speaker 1 sends success message 1 to speaker 2 and speaker 3.

[0104] The success message 1 can be used as the third message mentioned above. Based on the success message 1, the speaker 2 determines that the speaker 1 is the master speaker and the speaker 2 is the slave speaker; based on the success message 1, the speaker 3 determines that the speaker 1 is the master speaker and the speaker 3 is the slave speaker.

[0105] In some embodiments, the speaker 1 may broadcast a success message 1 .

[0106] It should be noted that the manner in which speaker 1 sends success message 1 to speakers 2 and 3 can also refer to the relevant description in the aforementioned S203.

[0107] S306, if the weight value of speaker 2 is the largest, speaker 2 can be the main speaker, and speaker 2 sends success message 2 to speaker 1 and speaker 3.

[0108] Among them, the success message 2 can be used as the fifth message mentioned above, and the speaker 2 can be used as the third speaker mentioned above. Based on the success message 2, the speaker 1 determines that the speaker 2 is the master speaker and the speaker 1 is the slave speaker; based on the success message 2, the speaker 3 determines that the speaker 2 is the master speaker and the speaker 3 is the slave speaker.

[0109] In some embodiments, the speaker 2 may broadcast a success message 2 .

[0110] It should be noted that the way in which speaker 2 sends success message 2 to speaker 1 and speaker 3 may be the same as or similar to the way in which speaker 1 sends success message 1 to speaker 2 and speaker 3 in S305.

[0111] S307, if the weight value of speaker 3 is the largest, speaker 3 can be the main speaker, and speaker 3 sends success message 3 to speaker 1 and speaker 2.

[0112] Among them, the success message 3 can be used as the fifth message mentioned above, and the speaker 3 can be used as the third speaker mentioned above. Based on the success message 3, the speaker 1 determines that the speaker 3 is the master speaker and the speaker 1 is the slave speaker; based on the success message 3, the speaker 2 determines that the speaker 3 is the master speaker and the speaker 2 is the slave speaker.

[0113] In some embodiments, the speaker 3 may broadcast a success message 3 .

[0114] It should be noted that the way in which speaker 3 sends success message 3 to speaker 1 and speaker 2 may be the same as or similar to the way in which speaker 1 sends success message 1 to speaker 2 and speaker 3 in S305.

[0115] In the embodiment of the present application, the control device can broadcast the first instruction to trigger the speaker set networking. Each speaker in the speaker set can respond to the first instruction and send an election message to other speakers, and can also respond to the election message of other speakers to return a response message to the other speakers, so each speaker in the speaker set can determine the weight value of all speakers in the speaker set, and can determine the speaker with the largest weight value more quickly, thereby improving the efficiency of determining the main speaker.

[0116] Figure 4 A schematic diagram of a data interaction method provided in an embodiment of the present application is shown. The method can be applied to the aforementioned Figure 1 The speaker system in the embodiment of the present invention can be Figure 2 The method shown is then executed, the method comprising:

[0117] S204, the first speaker exchanges data with the fourth speaker based on the CSB protocol, where the fourth speaker is any speaker among the other speakers.

[0118] When the first speaker is determined as a master speaker and the other speakers are slave speakers in the speaker set, the first speaker and the other speakers in the speaker set may perform data exchange based on the determined master-slave relationship.

[0119] Among them, CSB is a connectionless broadcast link based on Bluetooth Basic Rate (BR) / Enhanced Data Rate (EDR) technology.

[0120] In some embodiments, the first speaker may send a CSB parameter to the fourth speaker, and the CSB parameter is used for the fourth speaker to join the broadcast group. The fourth speaker may determine whether to join the broadcast group where the first speaker is located based on the CSB parameter. If the fourth speaker joins the broadcast group, the first speaker sends a CSB data packet to the fourth speaker.

[0121] The CSB parameter may be used to establish a corresponding communication protocol between the first speaker and the fourth speaker. In some embodiments, the CSB parameter may indicate at least one of the size, time interval, and data structure of the transmitted data packet. Of course, in actual applications, the CSB parameter may also indicate more or less information for data interaction.

[0122] It should be noted that the embodiment of the present application does not limit the method of determining whether to join the broadcast group where the first speaker is located based on the CSB parameters.

[0123] In some embodiments, if the fourth speaker determines to join the broadcast group, a sixth message may be sent to the first speaker, the sixth message being used to request to join the broadcast group. In response to the sixth message, the first speaker returns a seventh message to the fourth speaker, the seventh message being used to confirm that the fourth speaker has joined the broadcast group.

[0124] In some implementations, the first speaker may send a data packet by broadcasting, and other devices in the broadcast group where the first speaker is located may receive the data packet.

[0125] In some implementations, the fourth speaker may perform a specific operation based on the acquired data packet. In some implementations, the fourth speaker may return an eighth message to the first speaker, and the eighth message may indicate an operation result of performing the specific operation.

[0126] In some embodiments, the data packet sent by the first speaker may include audio data, and the fourth speaker may play sound based on the audio data. In some embodiments, the data packet sent by the first speaker may include at least one control instruction, and the fourth speaker may execute the at least one control instruction.

[0127] In an embodiment of the present application, when the first speaker is determined as the master speaker and the other speakers are slave speakers in the speaker set, the first speaker exchanges data with the fourth speaker based on the CSB protocol. The fourth speaker can send CSB parameters, and when the fourth speaker joins the broadcast group, a CSB data packet is sent to the fourth speaker. That is, multiple speakers in the speaker set can be quickly networked and run to achieve an out-of-the-box effect, without the user having to operate each speaker in the speaker set one by one, which not only improves the efficiency of networking, but also reduces the user's learning cost.

[0128] Figure 5 The following is a flow chart of a data interaction method provided by an embodiment of the present application. The method can be used for Figure 3 After S305 in the method shown. Among them, speaker 1 can be used as the first speaker mentioned above, and speaker 2 and speaker 3 can be used as the fourth speaker mentioned above. In some embodiments, the broadcast channel is used to transmit information by broadcasting, the scanning channel is used for the master speaker to receive information from the slave speaker, and the synchronization channel is used to provide key time synchronization data for data interaction between speakers. The method includes:

[0129] S501, speaker 1 sends CSB parameters to speaker 2 and speaker 3.

[0130] In some implementations, the speaker 1 may broadcast the CSB parameters on a broadcast channel.

[0131] S502 , speaker 2 and speaker 3 send request 1 to speaker 1 .

[0132] Among them, request 1 can be used to request to join the broadcast group, and request 1 can be used as the sixth message mentioned above.

[0133] Speaker 2 and speaker 3 can determine whether to join the broadcast group where speaker 1 is located based on the obtained CSB parameters. If yes, request 1 is sent to speaker 1, otherwise request 1 is not sent to speaker 1.

[0134] S503, speaker 1 confirms that speaker 2 and speaker 3 join the broadcast group.

[0135] In some implementations, speaker 1 may send a confirmation message 1 corresponding to request 1 to speakers 2 and 3, thereby notifying speakers 2 and 3 of joining the broadcast group through the confirmation message 1. The confirmation message 1 may be used as the seventh message mentioned above.

[0136] In some implementations, speaker 1 may obtain request 1 sent by speaker 2 and speaker 3 through a scanning channel, and speaker 2 and speaker 3 may obtain confirmation message 1 returned by speaker 1 through a scanning channel.

[0137] S504, speaker 1 sends a data packet to speaker 2 and speaker 3.

[0138] S505, speaker 2 and speaker 3 perform specific operations according to the data packet.

[0139] S506 , speaker 2 and speaker 3 send feedback message 1 to speaker 1 .

[0140] Among them, the feedback message 1 can indicate the result of performing a specific operation, and the feedback message 1 can be used as the eighth message mentioned above.

[0141] In the embodiment of the present application, the speaker 1 as the master speaker can broadcast CSB parameters, and the speakers 2 and 3 as slave speakers can join the broadcast group where the speaker 1 is located based on the CSB parameters. After the speakers 2 and 3 join the broadcast group, the speaker 1 can send data packets to the speakers 2 and 3, thereby instructing the slave speakers such as the speakers 2 and 3 to perform various operations, without the user having to operate each speaker in the speaker set one by one, which not only improves the efficiency of networking, but also reduces the user's learning cost.

[0142] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0143] Figure 6 The first speaker 600 is a schematic diagram of a structure of a first speaker 600 provided in an embodiment of the present application. The first speaker 600 includes:

[0144] The first sending module 601 is used to send a first message to other speakers in the speaker set. The speaker set includes multiple speakers. The first speaker is any speaker in the speaker set. The other speakers include speakers in the speaker set except the first speaker. The first message is used to initiate networking.

[0145] The acquisition module 602 is used to obtain the second message sent by each speaker in other speakers in response to the first message, and the second message of each speaker is used to indicate the weight value of each speaker, and the weight value of each speaker is positively correlated with the number of control instructions received in the history of each speaker.

[0146] The second sending module 603 is configured to send a third message to the other speakers if the weight value of the first speaker is greater than the weight value of each of the other speakers, where the third message is used to indicate that the first speaker is the main speaker.

[0147] In some implementations, the first speaker 600 is further used for:

[0148] The first speaker sends a first message to other speakers in response to a first instruction, where the first instruction is used to trigger speaker collection networking; or,

[0149] If the first speaker does not receive the fourth message sent by the second speaker within the first time period, the first speaker sends the first message to other speakers, and the fourth message is used to indicate that the second speaker is the main speaker.

[0150] In some implementations, the first speaker determines a weight value of each speaker based on identity information of each speaker and the number of control instructions received in the history of each speaker.

[0151] In some implementations, the second sending module 603 is further configured to:

[0152] If the first speaker does not receive a second message from any of the other speakers after sending the first message, the first speaker sends a third message to the other speakers.

[0153] In some implementations, the first speaker 600 is further used for:

[0154] If the first speaker receives the fifth message sent by the third speaker, the first speaker determines the third speaker as the master speaker and determines the first speaker as the slave speaker, and the fifth message is used to indicate that the third speaker is the master speaker.

[0155] In some implementations, the first speaker 600 is further used for:

[0156] The first speaker exchanges data with the fourth speaker based on the CSB protocol, and the fourth speaker is any speaker among the other speakers.

[0157] In some implementations, the first speaker 600 is further used for:

[0158] The first speaker sends a CSB parameter to the fourth speaker, and the CSB parameter is used for the fourth speaker to join the broadcast group;

[0159] If the fourth speaker joins the broadcast group, the first speaker sends a CSB data packet to the fourth speaker.

[0160] Figure 7 FIG. 1 shows a schematic diagram of the structure of a speaker provided in an embodiment of the present application. Figure 7 As shown, the speaker 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70, such as a program for obtaining a weight value of each speaker in a speaker set. When the processor 70 executes the computer program 72, the steps in the above-mentioned various method embodiments are implemented, such as Figure 2Alternatively, when the processor 70 executes the computer program 72, the functions of each unit in the above embodiments are realized, for example, Figure 6 The functions of the first sending module 601 to the second sending module 603 are shown.

[0161] Exemplarily, the computer program 72 may be divided into one or more units, which are stored in the memory 71 and executed by the processor 70 to complete the present application. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 72 in the speaker 7. For example, the computer program 72 may be divided into a synchronization module, a summary module, an acquisition module, and a return module (a module in a virtual device), and the specific functions of each module are as follows:

[0162] The speaker may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that Figure 7 It is only an example of the speaker 7 and does not constitute a limitation of the speaker 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the speaker 7 may also include input and output devices, network access devices, buses, etc.

[0163] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0164] The memory 71 may be an internal storage unit of the speaker 7, such as a hard disk or memory of the speaker 7. The memory 71 may also be an external storage device of the speaker 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the speaker 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the speaker 7. The memory 71 is used to store the computer program and other programs and data required by the speaker 7. The memory 71 may also be used to temporarily store data that has been output or is to be output.

[0165] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0166] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0167] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0168] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0169] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0170] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0171] If the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0172] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for networking speakers, characterized in that: The method comprises: A first speaker sends a first message to other speakers in a speaker set, where the speaker set includes a plurality of speakers, the first speaker is any speaker in the speaker set, and the other speakers include speakers in the speaker set other than the first speaker, and the first message is used to initiate networking; The first speaker obtains a second message sent by each of the other speakers in response to the first message, the second message of each speaker is used to indicate a weight value of each speaker, and the weight value of each speaker is positively correlated with the number of control instructions received in the history of each speaker; If the weight value of the first speaker is greater than the weight value of each of the other speakers, the first speaker sends a third message to the other speakers, where the third message is used to indicate that the first speaker is the main speaker.

2. The method according to claim 1, characterized in that The first speaker sends a first message to other speakers in the speaker set, including: The first speaker sends the first message to the other speakers in response to a first instruction, wherein the first instruction is used to trigger the speaker set networking; or If the first speaker does not receive the fourth message sent by the second speaker within the first time period, the first speaker sends the first message to the other speakers, and the fourth message is used to indicate that the second speaker is the main speaker.

3. The method according to claim 1, characterized in that The second message of each of the speakers includes the identity information of each of the speakers and the number of control instructions received in the history of each of the speakers, and the method further includes: The first speaker determines a weight value of each speaker based on identity information of each speaker and the number of control instructions received in the history of each speaker.

4. The method according to claim 1, characterized in that The method further comprises: If the first speaker does not receive the second message from any of the other speakers after sending the first message, the first speaker sends the third message to the other speakers.

5. The method according to claim 1, characterized in that The method further comprises: If the first speaker receives the fifth message sent by the third speaker, the first speaker determines the third speaker as the master speaker and determines the first speaker as the slave speaker, and the fifth message is used to indicate that the third speaker is the master speaker.

6. The method according to claim 1, characterized in that The method further comprises: The first speaker exchanges data with the fourth speaker based on the connectionless slave broadcast (CSB) protocol, and the fourth speaker is any one of the other speakers.

7. The method according to claim 6, characterized in that The first speaker performs data interaction with the fourth speaker based on the CSB protocol, including: The first speaker sends a CSB parameter to the fourth speaker, where the CSB parameter is used for the fourth speaker to join the broadcast group; If the fourth speaker joins the broadcast group, the first speaker sends a CSB data packet to the fourth speaker.

8. A first sound box, characterized in that: The first speaker comprises: A first sending module, configured to send a first message to other speakers in a speaker set, wherein the speaker set includes a plurality of speakers, the first speaker is any speaker in the speaker set, and the other speakers include speakers in the speaker set except the first speaker, and the first message is used to initiate networking; an acquisition module, configured to acquire a second message sent by each of the other speakers in response to the first message, wherein the second message of each speaker is used to indicate a weight value of each speaker, and the weight value of each speaker is positively correlated with the number of control instructions received in the history of each speaker; The second sending module is configured to send a third message to the other speakers if the weight value of the first speaker is greater than the weight value of each of the other speakers, wherein the third message is used to indicate that the first speaker is a main speaker.

9. A speaker comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Sound box management method and user terminal

    CN105307078A

  • A device, and a networking method and an output method therefor

    CN108696842A