CN114245285A - Fault sound box positioning method and sound box management system - Google Patents

Fault sound box positioning method and sound box management system Download PDF

Info

Publication number
CN114245285A
CN114245285A CN202210064881.8A CN202210064881A CN114245285A CN 114245285 A CN114245285 A CN 114245285A CN 202210064881 A CN202210064881 A CN 202210064881A CN 114245285 A CN114245285 A CN 114245285A
Authority
CN
China
Prior art keywords
loop
sub
sound box
server
main node
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
CN202210064881.8A
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.)
Beijing Xiaoya Xingkong Technology Co ltd
Original Assignee
Beijing Xiaoya Xingkong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaoya Xingkong Technology Co ltd filed Critical Beijing Xiaoya Xingkong Technology Co ltd
Priority to CN202210064881.8A priority Critical patent/CN114245285A/en
Publication of CN114245285A publication Critical patent/CN114245285A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • H04R29/002Loudspeaker arrays

Abstract

The application provides a fault sound box positioning method and a sound box management system.A server controls a main node in each sub-loop to carry out loop detection, the main node is any sound box in the sub-loops, any sound box in a total loop of the sound boxes belongs to N sub-loops, N is more than or equal to 1 and less than M, and M is the total number of the sub-loops; the server acquires the current state of each sub-loop, wherein the current state comprises that the sub-loop is smooth or the sub-loop is disconnected; the server determines a fault sound box according to the current state of each sub-loop, wherein the fault sound box is a sound box with a first type of sub-loop and a second type of sub-loop, the first type of sub-loop comprises the fault sound box, the current state of the first type of sub-loop is that the sub-loop is disconnected, the second type of sub-loop comprises all sound boxes except the fault sound box in the first type of sub-loop, and the current state of the second type of sub-loop is that the sub-loop is unblocked. The server can quickly determine the fault sound box by comparing the current states of the sub-loops, so that fault positioning is realized.

Description

Fault sound box positioning method and sound box management system
Technical Field
The application relates to the field of sound boxes, in particular to a fault sound box positioning method and a sound box management system.
Background
At present, with the development of integrated circuits, wireless communication and smart home technologies, more and more smart terminals have bluetooth call and bluetooth audio playing functions attached thereto. In a home, audio playback is not limited to a single area, and a full-house multi-room audio playback is received by a user. Many users expect that all speakers in a home can be combined to play music synchronously. Namely, under a local area network, a plurality of sound boxes play a Bluetooth resource at the same time.
In this case, how to quickly locate the problem when one of the audio devices fails becomes a problem that those skilled in the art pay attention to.
Disclosure of Invention
The present application aims to provide a method for locating a faulty loudspeaker and a loudspeaker management system, so as to at least partially improve the above problems.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides a method for locating a sound box with a fault, where the method includes:
the server controls a main node in each sub-loop to perform loop detection, wherein the main node is any one sound box in the sub-loops, any one sound box in the total sound box loop belongs to N sub-loops, N is more than or equal to 1 and is less than M, and M is the total number of the sub-loops;
the server acquires the current state of each sub-loop, wherein the current state comprises that the sub-loop is smooth or the sub-loop is disconnected;
the server determines a fault sound box according to the current state of each sub-loop, wherein the fault sound box is a sound box with a first type of sub-loop and a second type of sub-loop, the first type of sub-loop comprises the fault sound box, the current state of the first type of sub-loop is that the sub-loop is disconnected, the second type of sub-loop comprises all sound boxes except the fault sound box in the first type of sub-loop, and the current state of the second type of sub-loop is that the sub-loop is unblocked.
In a second aspect, an embodiment of the present application provides a speaker management system, where the speaker management system includes: the system comprises a server and a preset number of sound boxes, wherein the preset number of sound boxes form a sound box total loop, the sound box total loop is divided into M sub-loops, any sound box in the sound box total loop belongs to N sub-loops, N is more than or equal to 1 and less than M, each sub-loop is correspondingly provided with a main node, and the main node is any sound box in the sub-loops;
the server is used for controlling the main node in each sub-loop to perform loop detection;
the server is used for acquiring the current state of each sub-loop, wherein the current state comprises that the sub-loop is smooth or the sub-loop is disconnected;
the server is used for determining a fault sound box according to the current state of each sub-loop, wherein the fault sound box is a sound box with a first type of sub-loop and a second type of sub-loop, the first type of sub-loop comprises the fault sound box, the current state of the first type of sub-loop is that the sub-loop is disconnected, the second type of sub-loop comprises all sound boxes except the fault sound box in the first type of sub-loop, and the current state of the second type of sub-loop is that the sub-loop is unblocked.
Compared with the prior art, the fault sound box positioning method and the sound box management system provided by the embodiment of the application have the advantages that the server controls the main node in each sub-loop to perform loop detection, wherein the main node is any sound box in the sub-loops, any sound box in the total loop of the sound boxes belongs to N sub-loops, N is more than or equal to 1 and less than M, and M is the total number of the sub-loops; the server acquires the current state of each sub-loop, wherein the current state comprises that the sub-loop is smooth or the sub-loop is disconnected; the server determines a fault sound box according to the current state of each sub-loop, wherein the fault sound box is a sound box with a first type of sub-loop and a second type of sub-loop, the first type of sub-loop comprises the fault sound box, the current state of the first type of sub-loop is that the sub-loop is disconnected, the second type of sub-loop comprises all sound boxes except the fault sound box in the first type of sub-loop, and the current state of the second type of sub-loop is that the sub-loop is unblocked. The server can quickly determine the fault sound box by comparing the current states of the sub-loops, so that fault positioning is realized.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of a sound box management system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a fault sound box positioning method provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of a total loop of a sound box according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another total loop of a loudspeaker box according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a fault sound box positioning method according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a fault sound box positioning method according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a sub-loop division result according to an embodiment of the present application;
fig. 8 is a schematic diagram of a link when a sound box provided by the embodiment of the present application has a fault;
fig. 9 is a schematic signaling interaction diagram according to an embodiment of the present application.
In the figure: 10-a user terminal; 20-a sound box; 30-server.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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 application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the description of the present application, it should be noted that the terms "upper", "lower", "inner", "outer", and the like indicate orientations or positional relationships based on orientations or positional relationships shown in the drawings or orientations or positional relationships conventionally found in use of products of the application, and are used only for convenience in describing the present application and for simplification of description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present application.
In the description of the present application, it is also to be noted that, unless otherwise explicitly specified or limited, the terms "disposed" and "connected" are to be interpreted broadly, e.g., as being either fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
In order to quickly locate a faulty speaker, the present embodiment provides a speaker management system, as shown in fig. 1, the speaker management system includes a user terminal 10, a preset number of speakers 20, and a server 30. Optionally, the server 30 is in communication connection with the user terminal 10 and each speaker 20. Optionally, the server 30 is communicatively connected to the sound box 20 through a gateway corresponding to a wifi network, and the server 30 may also be communicatively connected to the user terminal 10 through a gateway or a mobile network (e.g., 5g, 4g, 3g, etc.) corresponding to the wifi network. The user terminal 10 may be communicatively coupled to at least one speaker 20 via a bluetooth network. The connection of the user terminal 10 to each speaker 20 shown in fig. 1 is only one possible example and is not intended to be limiting. Of course, the server 30 may be connected to only communicate with a host node (one loudspeaker 20) mentioned below, and the server 30 is not limited to be connected to each loudspeaker 20 in communication.
Optionally, the preset number is k, and k is an integer greater than or equal to 3.
It should be understood that the configuration shown in FIG. 1 is merely a schematic diagram of a portion of a loudspeaker management system, and that the loudspeaker management system may include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The method for positioning a faulty loudspeaker provided in the embodiment of the present application can be applied to, but is not limited to, the loudspeaker management system shown in fig. 1, and with reference to fig. 2, the method for positioning a faulty loudspeaker includes: s306, S307, and S308 are specifically described below.
S306, the server controls the main node in each sub-loop to perform loop detection.
The main node is any one sound box in the sub-loops, any one sound box in the total sound box loop belongs to N sub-loops, N is more than or equal to 1 and is less than M, and M is the total number of the sub-loops.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a total loop of a sound box according to an embodiment of the present disclosure. In fig. 3, speaker a, speaker B, speaker C, speaker D, and speaker E form a speaker loop. Its corresponding sub-loop may include: ABCDE, ABCE, ABDE, ACDE, ABC, ABD, ABE, ADE, ACE, ACD, BCDE, BCD, BDE, CDE, and CD, among others. The composition of the sub-loop is various and is not limited herein.
It should be understood that the same enclosure a may belong to multiple sub-loops simultaneously, such as sub-loops (ABC, ABCD, ACD, and ABD), etc. Alternatively, when enclosure A is simultaneously acting as the primary node for a sub-loop (ABC, ABCD, ACD and ABD), enclosure A is required to simultaneously perform loop detection for the sub-loop (ABC, ABCD, ACD and ABD).
Of course, the main nodes of the sub-loops (ABC, ABCD, ACD, and ABD) may be enclosure B, enclosure C, and enclosure D, which are merely examples and do not constitute a limitation of the main node selection.
Any one sound box in the total sound box loop belongs to N sub-loops, and for the sound box B as an example, N < M means that at least one sub-loop does not include the sound box B, and N is more than or equal to 1 means that at least one sub-loop includes the sound box B. For example, the first sub-loop type hereinafter includes enclosure B and the second sub-loop type hereinafter does not include enclosure B.
It should be noted that other combinations of the total loops of the sound boxes may also exist, as shown in fig. 4, fig. 4 is a schematic structural diagram of another total loop of the sound box provided in the embodiment of the present application.
Optionally, after the main node performs loop detection, the current state of the corresponding sub-loop may be known, for example, the sub-loop is clear or the sub-loop is disconnected. The current state of each sub-loop obtained by the master node is transmitted to the server 30.
S307, the server acquires the current state of each sub-loop.
Wherein the current state comprises that the sub-loop is open or the sub-loop is disconnected.
Optionally, the current state fed back by the master node includes an identifier of the corresponding sub-loop, which facilitates the identification and determination by the server 30.
With continued reference to the above example, it is assumed that the speaker a performs loop detection on the sub-loops (ABC, ABCD, ACD, and ABD) at the same time, and the detection results are that (ABC, ABCD, and ABD are all in the sub-loop off state, ACD is in the sub-loop clear state, and the master node (speaker a) may transmit the detection results (the current states of the respective sub-loops) obtained by the master node to the server 30.
S308, the server determines the fault sound box according to the current state of each sub-loop.
The fault sound box is a sound box with a first type sub-loop and a second type sub-loop, the first type sub-loop comprises the fault sound box, the current state of the first type sub-loop is that the sub-loop is disconnected, the second type sub-loop comprises all sound boxes except the fault sound box in the first type sub-loop, and the current state of the second type sub-loop is that the sub-loop is unblocked.
With reference to the above example, the first-type sub-loop is ABCD, the second-type sub-loop is ACD or ACDE, and the server 30 can determine the sound box B as a faulty sound box by comparing the current states of the sub-loops, so as to implement fault location.
In summary, the embodiment of the present application provides a method for locating a faulty loudspeaker, where a server controls a main node in each sub-loop to perform loop detection, where the main node is any loudspeaker in the sub-loops, any loudspeaker in a total loudspeaker loop belongs to N sub-loops, N is greater than or equal to 1 and less than M, and M is the total number of the sub-loops; the server acquires the current state of each sub-loop, wherein the current state comprises that the sub-loop is smooth or the sub-loop is disconnected; the server determines a fault sound box according to the current state of each sub-loop, wherein the fault sound box is a sound box with a first type of sub-loop and a second type of sub-loop, the first type of sub-loop comprises the fault sound box, the current state of the first type of sub-loop is that the sub-loop is disconnected, the second type of sub-loop comprises all sound boxes except the fault sound box in the first type of sub-loop, and the current state of the second type of sub-loop is that the sub-loop is unblocked. The server can quickly determine the fault sound box by comparing the current states of the sub-loops, so that fault positioning is realized.
On the basis of fig. 2, regarding how to control the master node in each sub-loop to perform loop detection in S306, the embodiment of the present application further provides a possible implementation manner, please refer to fig. 5, where S106 includes: s106-1, as detailed below.
S306-1, the server sends a detection starting instruction to the main nodes in each sub-loop.
The detection starting instruction is used for driving the main node to determine the current state of the sub-loop where the main node is located.
Referring to fig. 5, regarding how the master node completes loop detection, a possible implementation manner is further provided in the embodiments of the present application, as shown in fig. 5, the method for locating a fault sound box further includes S202, S203, S204, and S205, which are described in detail below.
S202, after receiving the detection starting instruction, the main node sends out a detection message corresponding to the sub-loop.
Wherein, the detection message carries the ring transmission sequence of the detection message in the sub-loop.
In a possible implementation manner, each sub-loop is configured with a corresponding detection message, the detection message is stored in the main node corresponding to the sub-loop, when the main node receives a detection start instruction, the main node sends the detection message in the corresponding sub-loop, and whether the sub-loop is unblocked is determined according to whether the feedback message is received or not. When one loudspeaker box is simultaneously used as a main node of a plurality of sub-loops, the main node respectively sends corresponding detection messages in each sub-loop where the main node is located, and it should be understood that the detection messages of different sub-loops are different.
Continuing to refer to the above example, when the sound box a is simultaneously used as the main node of the sub-loops (ABC, ABCD, ACD, and ABD), it is required that the sound box a simultaneously performs loop detection on the sub-loops (ABC, ABCD, ACD, and ABD), that is, sends out detection messages corresponding to the sub-loops (ABC, ABCD, ACD, and ABD), respectively.
It should be understood that the circular transfer sequence is a circular structure, for example, the sub-loops are speaker A, speaker B, and speaker C, the circular transfer sequence may be speaker A → speaker B → speaker C → speaker A, and speaker A is the main node in the sub-loop. When each sound box in the sub-loop receives the detection message, the detection message is continuously transmitted according to the annular transmission sequence until the sound box returns to the main node.
In a possible implementation manner, a TCP protocol may be used to transmit the detection packet, the TCP protocol ensures that the loop is reliable, each speaker in the sub-loop is provided with a client (for sending the detection packet) and a server (for receiving the detection packets sent by other speakers), and the detection packet format is a "TLV" format (TLV refers to Type, Length, and Value).
Of course, the detection message may also be sent using UDP protocol.
And S203, in a preset time interval, whether the main node receives the detection message transmitted back by the sub-loop or not is judged. If yes, go to S205; if not, go to S204.
Optionally, the value of the preset time interval may be 5 seconds or 30 milliseconds, and may also be specifically set according to the number of the speakers in the sub-loop.
With reference to the above example, assuming that the sound box a receives the detection message of the sub-loop ACD within the preset time interval, the detection message of the sub-loop ACD passes through the sound box a → the sound box C → the sound box D → the sound box a, and indicates that the current state of the sub-loop ACD is that the sub-loop is unblocked. On the contrary, if the sound box a fails to receive the detection messages of the sub-loops ABC, ABCD and ABD within the preset time interval, it indicates that the current states of the sub-loops ABC, ABCD and ABD are the sub-loops disconnected.
And S204, determining the current state of the sub-loop as the sub-loop disconnection.
S205, determining the current state of the sub-loop as that the sub-loop is clear.
It should be appreciated that after determining the current state of the sub-loops, the master node may transmit the current state to the server, i.e., the server obtains the current state of each sub-loop.
On the basis of fig. 5, regarding how the sub-loops are divided and how the detection messages corresponding to the sub-loops are obtained, a possible implementation manner is further provided in the embodiment of the present application, please refer to fig. 6, where the method for locating a faulty loudspeaker further includes: s304 and S305 are specifically set forth below.
S304, the server divides each sound box in the total sound box loop to determine information of each sub-loop.
The sub-loop information comprises a main node identifier and a detection message corresponding to the sub-loop.
Referring to fig. 7, fig. 7 is a schematic diagram illustrating a sub-loop division result according to an embodiment of the present disclosure. For example, the total enclosure loop includes enclosure 1, enclosure 2, enclosure 3, enclosure 4, enclosure 5, and enclosure 6. After division, the sub-loop composed of four nodes may include 8 sub-loops such as speaker 1 → speaker 2 → speaker 5 → speaker 4 → speaker 1 and speaker 2 → speaker 3 → speaker 5 → speaker 6 → speaker 2, and the sub-loop composed of three nodes may include speaker 1 → speaker 2 → speaker 4 → speaker 1, speaker 1 → speaker 2 → speaker 5 → speaker 1, speaker 1 → speaker 4 → speaker 5 → speaker 1, speaker 2 → speaker 4 → speaker 5 → speaker 2, speaker 2 → speaker 3 → speaker 6 → speaker 2, speaker 2 → speaker 5 → speaker 6 and speaker 3 → speaker 5 → speaker 6 → speaker 3.
As for the result of the division of the sub-loops shown in fig. 7, when the speaker 2 fails, as shown in fig. 8, the speaker 1 → the speaker 4 → the speaker 5 → the speaker 1 and the speaker 3 → the speaker 5 → the speaker 6 → the speaker 3 is not affected, and the data link is still accessible, without affecting the playing and detecting of the two loops.
S305, the server sends the sub-loop information to the main node according to the main node identification.
So that the main node sends out the detection message corresponding to the sub-loop after receiving the detection starting instruction.
In a possible implementation manner, the detection packet may not carry a ring transmission sequence corresponding to the sub-loop. Each node in the sound box stores configuration information of the sub-loop and the corresponding relation between each sub-loop and the detection message, and when the node receives the detection message, the node determines the sub-loop according to the detection message, so that the next node in the sub-loop is determined, and the detection message is transmitted to the next node.
Referring to fig. 6, how to determine the total loop of the sound box, the embodiment of the present application further provides a possible implementation manner, as shown in fig. 6, the method for locating a fault sound box further includes: s101, S201, S301, S302, and S303 are specifically described below.
S101, after the user terminal and the sound box are in wireless communication connection for the first time, the user terminal transmits WiFi information and an authentication code to the sound box.
The authentication code comprises an identifier of the user terminal; the WiFi information includes a WiFi name and a WiFi password.
Alternatively, the first establishment of the wireless communication connection between the user terminal and the speaker box may be performed through bluetooth.
S201, the loudspeaker box sends an authentication code to a server through a communication network corresponding to the WiFi information.
Optionally, the sound box searches through a WiFi name to determine a WiFi network, verifies through a WiFi password, accesses the WiFi network, and sends the authentication code to the server through the WiFi network.
S301, after receiving the authentication code sent by the sound box, the server adds the sound box to a management list corresponding to the user terminal.
It should be understood that the management lists for different users are different.
S302, the server issues a management list to the user terminal so that the user terminal generates a composition instruction according to the management list.
It should be understood that there may be a greater number of enclosures for the same user, and that the user does not need to have all enclosures operating simultaneously for a certain period of time, so that a management list is provided for the user to select.
It should be understood that each time the management list is updated, a new management list is transmitted to the user terminal.
It should be understood that, a user may select, for example, click or slide, a sound box for playing on a user interface (display management list) displayed by the user terminal, and after the user selects a corresponding sound box, the user terminal may generate a composition instruction, where the composition instruction includes an identifier of each sound box selected by the user, that is, an identifier of any sound box in the total loop of the sound boxes.
And S303, the server determines the total loop of the sound box according to the composition instruction transmitted by the user terminal.
Wherein the composition instruction includes an identification of any one of the speakers in the total loop of speakers.
Referring to fig. 9, fig. 9 is a schematic signaling interaction diagram according to an embodiment of the present application. For details in fig. 9, please refer to the corresponding parts above, which are not described herein.
It should be noted that a tcp-based long connection is provided between each speaker or the master node speaker in the speaker management system provided in the embodiment of the present application and the server; moreover, the failure sound box positioning method provided by the embodiment of the application uses tcp detection, a retransmission mechanism does not need to be set, and the method has the characteristics of high reliability and high efficiency.
Referring to fig. 1, fig. 1 is a sound box management system according to an embodiment of the present disclosure, and optionally, the sound box management system may implement the above fault sound box locating method.
The embodiment of the application provides a sound box management system, and the sound box management system includes: the system comprises a server and a preset number of sound boxes, wherein the preset number of sound boxes form a sound box main loop, the sound box main loop is divided into M sub-loops, any sound box in the sound box main loop belongs to N sub-loops, N is more than or equal to 1 and less than M, each sub-loop is correspondingly provided with a main node, and the main node is any sound box in the sub-loops.
The server is used for controlling the main node in each sub-loop to carry out loop detection.
The server is used for obtaining the current state of each sub-loop, wherein the current state comprises that the sub-loop is smooth or the sub-loop is disconnected.
The server is used for determining the fault sound boxes according to the current states of the sub-loops, wherein the fault sound boxes are sound boxes with a first type of sub-loops and a second type of sub-loops, the first type of sub-loops comprise fault sound boxes, the current state of the first type of sub-loops is that the sub-loops are disconnected, the second type of sub-loops comprise all sound boxes except the fault sound boxes in the first type of sub-loops, and the current state of the second type of sub-loops is that the sub-loops are unblocked.
Optionally, the server is further configured to send a detection start instruction to the main node in each sub-loop, where the detection start instruction is used to drive the main node to determine a current state of the sub-loop where the main node is located;
and the main node is used for sending out a detection message corresponding to the sub-loop after receiving the detection starting instruction, wherein the detection message carries the annular transmission sequence of the detection message in the sub-loop.
And if the main node does not receive the detection message transmitted back by the sub-loop after the preset time interval, the main node is also used for determining that the current state of the sub-loop is the disconnection of the sub-loop.
If the main node receives the detection message transmitted back by the sub-loop within the preset time interval, the main node is also used for determining that the current state of the sub-loop is that the sub-loop is smooth.
Optionally, the server is further configured to divide each loudspeaker box in the total loudspeaker box loop, and determine each sub-loop information, where the sub-loop information includes a main node identifier and a detection packet corresponding to the sub-loop.
The server is further used for sending the sub-loop information to the main node according to the main node identification, so that the main node sends out a detection message corresponding to the sub-loop after receiving the detection starting instruction.
Optionally, the server is further configured to determine the total speaker loop according to a composition instruction transmitted by the user terminal, where the composition instruction includes an identifier of any speaker in the total speaker loop.
Optionally, after the user terminal establishes a wireless communication connection with the sound box for the first time, the user terminal is configured to transmit WiFi information and an authentication code to the sound box, where the authentication code includes an identifier of the user terminal.
The loudspeaker box is used for sending the authentication code to the server through the communication network corresponding to the WiFi information.
And the server is also used for adding the sound box into the management list corresponding to the user terminal after receiving the authentication code sent by the sound box.
The server is also used for issuing the management list to the user terminal so that the user terminal generates a composition instruction according to the management list.
It should be noted that, the sound box management system provided in this embodiment may execute the method flows shown in the above method flow embodiments to achieve the corresponding technical effects. For the sake of brevity, the corresponding contents in the above embodiments may be referred to where not mentioned in this embodiment.
The embodiment of the application provides an electronic device, which can be the server, the loudspeaker box or the user terminal in the above. The electronic device comprises a processor, a memory and a bus. The processor, the memory being connected by a bus, is used for executing executable modules, such as computer programs, stored in the memory.
The processor may be an integrated circuit chip having signal processing capabilities. In the implementation process, the steps of the fault sound box positioning method can be completed through an integrated logic circuit of hardware in the processor or instructions in the form of software. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
The Memory may comprise a Random Access Memory (RAM) and may also include a non-volatile Memory, such as at least one disk Memory.
The bus may be an ISA (Industry Standard architecture) bus, a PCI (peripheral Component interconnect) bus, or an EISA (extended Industry Standard architecture) bus. Only one bi-directional arrow is shown in fig. 1, but this does not indicate only one bus or one type of bus.
The memory is used for storing programs, such as programs corresponding to the fault sound box positioning device. The fault sound box positioning device comprises at least one software functional module which can be stored in a memory in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the electronic equipment. And after receiving the execution instruction, the processor executes the program to realize the fault sound box positioning method.
Possibly, the electronic device provided by the embodiment of the application further comprises a communication interface. The communication interface is connected with the processor through a bus.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules 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 application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including 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 application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A fault sound box positioning method is characterized by comprising the following steps:
the server controls a main node in each sub-loop to perform loop detection, wherein the main node is any one sound box in the sub-loops, any one sound box in the total sound box loop belongs to N sub-loops, N is more than or equal to 1 and is less than M, and M is the total number of the sub-loops;
the server acquires the current state of each sub-loop, wherein the current state comprises that the sub-loop is smooth or the sub-loop is disconnected;
the server determines a fault sound box according to the current state of each sub-loop, wherein the fault sound box is a sound box with a first type of sub-loop and a second type of sub-loop, the first type of sub-loop comprises the fault sound box, the current state of the first type of sub-loop is that the sub-loop is disconnected, the second type of sub-loop comprises all sound boxes except the fault sound box in the first type of sub-loop, and the current state of the second type of sub-loop is that the sub-loop is unblocked.
2. The method for locating a faulty loudspeaker according to claim 1, wherein the step of the server controlling the main node in each sub-loop to perform loop detection comprises:
the server sends a detection starting instruction to the main node in each sub-loop, wherein the detection starting instruction is used for driving the main node to determine the current state of the sub-loop in which the main node is located;
the method further comprises the following steps:
after receiving the detection starting instruction, the main node sends out a detection message corresponding to the sub-loop, wherein the detection message carries the annular transmission sequence of the detection message in the sub-loop;
if the main node does not receive the detection message transmitted back by the sub-loop after a preset time interval, determining that the current state of the sub-loop is the disconnection of the sub-loop;
and if the main node receives the detection message transmitted back by the sub-loop within a preset time interval, determining that the current state of the sub-loop is smooth.
3. The method of claim 2, wherein before the server controls the master node in each sub-loop to perform loop detection, the method further comprises:
the server divides each sound box in the total sound box loop to determine each sub-loop information, wherein the sub-loop information comprises a main node identifier and a detection message corresponding to the sub-loop;
and the server sends the sub-loop information to the main node according to the main node identification so that the main node sends out a detection message corresponding to the sub-loop after receiving a detection starting instruction.
4. The method of claim 3, wherein before the server divides each speaker in the total speaker loop to determine each sub-loop information, the method further comprises:
and the server determines the total sound box loop according to a composition instruction transmitted by the user terminal, wherein the composition instruction comprises an identifier of any sound box in the total sound box loop.
5. The method of claim 4, wherein before determining the total loop of the loudspeaker based on the composition instructions transmitted by the user terminal, the method further comprises:
after the user terminal and a sound box are in wireless communication connection for the first time, the user terminal transmits WiFi information and an authentication code to the sound box, wherein the authentication code comprises an identifier of the user terminal;
the loudspeaker box sends the authentication code to the server through a communication network corresponding to the WiFi information;
after receiving the authentication code sent by the sound box, the server adds the sound box to a management list corresponding to the user terminal;
and the server issues the management list to the user terminal so that the user terminal generates the composition instruction according to the management list.
6. A speaker management system, the speaker management system comprising: the system comprises a server and a preset number of sound boxes, wherein the preset number of sound boxes form a sound box total loop, the sound box total loop is divided into M sub-loops, any sound box in the sound box total loop belongs to N sub-loops, N is more than or equal to 1 and less than M, each sub-loop is correspondingly provided with a main node, and the main node is any sound box in the sub-loops;
the server is used for controlling the main node in each sub-loop to perform loop detection;
the server is used for acquiring the current state of each sub-loop, wherein the current state comprises that the sub-loop is smooth or the sub-loop is disconnected;
the server is used for determining a fault sound box according to the current state of each sub-loop, wherein the fault sound box is a sound box with a first type of sub-loop and a second type of sub-loop, the first type of sub-loop comprises the fault sound box, the current state of the first type of sub-loop is that the sub-loop is disconnected, the second type of sub-loop comprises all sound boxes except the fault sound box in the first type of sub-loop, and the current state of the second type of sub-loop is that the sub-loop is unblocked.
7. The loudspeaker management system of claim 6, wherein the server is further configured to send a detection start instruction to the master node in each sub-loop, wherein the detection start instruction is used to drive the master node to determine a current state of the sub-loop in which the master node is located;
the main node is used for sending a detection message corresponding to the sub-loop after receiving the detection starting instruction, wherein the detection message carries the annular transmission sequence of the detection message in the sub-loop;
if the main node does not receive the detection message transmitted back by the sub-loop after a preset time interval, the main node is further used for determining that the current state of the sub-loop is that the sub-loop is disconnected;
if the main node receives the detection message transmitted back by the sub-loop within the preset time interval, the main node is further used for determining that the current state of the sub-loop is that the sub-loop is unblocked.
8. The sound box management system according to claim 7, wherein the server is further configured to divide each sound box in the total loop of sound boxes to determine information of each sub-loop, where the information of the sub-loop includes a main node identifier and a detection packet corresponding to the sub-loop;
the server is further configured to send the sub-loop information to the master node according to the master node identifier, so that the master node sends a detection message corresponding to the sub-loop after receiving a detection start instruction.
9. The loudspeaker management system of claim 8, wherein the server is further configured to determine the total loudspeaker loop according to a composition instruction transmitted by the user terminal, wherein the composition instruction includes an identification of any loudspeaker in the total loudspeaker loop.
10. The sound box management system of claim 9, wherein after the user terminal initially establishes a wireless communication connection with a sound box, the user terminal is configured to transmit WiFi information and an authentication code to the sound box, wherein the authentication code includes an identifier of the user terminal;
the loudspeaker box is used for sending the authentication code to the server through a communication network corresponding to the WiFi information;
the server is further used for adding the sound box into a management list corresponding to the user terminal after receiving the authentication code sent by the sound box;
the server is further configured to issue the management list to the user terminal, so that the user terminal generates the composition instruction according to the management list.
CN202210064881.8A 2022-01-20 2022-01-20 Fault sound box positioning method and sound box management system Pending CN114245285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210064881.8A CN114245285A (en) 2022-01-20 2022-01-20 Fault sound box positioning method and sound box management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210064881.8A CN114245285A (en) 2022-01-20 2022-01-20 Fault sound box positioning method and sound box management system

Publications (1)

Publication Number Publication Date
CN114245285A true CN114245285A (en) 2022-03-25

Family

ID=80746884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210064881.8A Pending CN114245285A (en) 2022-01-20 2022-01-20 Fault sound box positioning method and sound box management system

Country Status (1)

Country Link
CN (1) CN114245285A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662421A (en) * 2008-08-28 2010-03-03 中兴通讯股份有限公司 Method and device for transmitting control message based on ethernet multi-ring network
JP2017072542A (en) * 2015-10-09 2017-04-13 ルネサスエレクトロニクス株式会社 Light emission analyzer and failure location determination method
CN113300868A (en) * 2020-07-13 2021-08-24 阿里巴巴集团控股有限公司 Method and device for positioning fault network equipment node and network communication method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662421A (en) * 2008-08-28 2010-03-03 中兴通讯股份有限公司 Method and device for transmitting control message based on ethernet multi-ring network
JP2017072542A (en) * 2015-10-09 2017-04-13 ルネサスエレクトロニクス株式会社 Light emission analyzer and failure location determination method
CN113300868A (en) * 2020-07-13 2021-08-24 阿里巴巴集团控股有限公司 Method and device for positioning fault network equipment node and network communication method

Similar Documents

Publication Publication Date Title
TWI470967B (en) Wireless access point supporting control by multiple applications
US7324802B2 (en) Method and system for managing communication in emergency communication system
US20170374690A1 (en) Indication of Attributes of Backhaul Connections of Access Points
KR20070078862A (en) Method of providing interoperatibility of heterogeneous network devices capable of error handling and network device using the same
JP2011244151A (en) Radio communication device, radio communication method, program and radio communication system
BRPI0613037A2 (en) system and method to update wireless applications
KR20140049612A (en) Providing communication path information in hybrid networks
CN110022260B (en) Cross-environment receipt message processing method and system
US20140324994A1 (en) Method and device for transmitting and forwarding a message
CN111711941A (en) Data transmission method and related equipment and device
WO2022055415A1 (en) Seamless bluetooth switching system
TW201719384A (en) Projection system and method for controlling projection system
CN114245285A (en) Fault sound box positioning method and sound box management system
CN110602338B (en) Audio processing method, device, system, storage medium and equipment
CN110535712B (en) BFD parameter setting method and device and electronic equipment
US9578529B1 (en) Cellular data testing system
JP2005124057A (en) Network device and network state notification method
KR101605259B1 (en) Call service providing method and system for switching between public switched telephone network mode and voice over internet protocol mode
WO2010148727A1 (en) Method and terminal for atom command callback
CN114040310A (en) Sound box system fault positioning method and device, storage medium and electronic equipment
US10298673B2 (en) Roaming to share a communication channel
KR20050036281A (en) Method for information service using information service contents of mobile communication terminal in idle mode
CN113590079B (en) Music playing control method, device and computer readable storage medium
CN113016233A (en) Trace management
CN108346016A (en) A kind of method and system of cooperating

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