CN114040310A - Sound box system fault positioning method and device, storage medium and electronic equipment - Google Patents

Sound box system fault positioning method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114040310A
CN114040310A CN202111303701.9A CN202111303701A CN114040310A CN 114040310 A CN114040310 A CN 114040310A CN 202111303701 A CN202111303701 A CN 202111303701A CN 114040310 A CN114040310 A CN 114040310A
Authority
CN
China
Prior art keywords
loop
target
sound box
main
slave
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
CN202111303701.9A
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 CN202111303701.9A priority Critical patent/CN114040310A/en
Publication of CN114040310A publication Critical patent/CN114040310A/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

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application provides a method, a device, a storage medium and electronic equipment for positioning faults of a sound box system, wherein the method is applied to a main sound box of the sound box system, the sound box system further comprises at least two slave sound boxes, the main sound box and the at least two slave sound boxes form a main loop in a wireless communication mode, the main sound box generates a first target transmission sequence corresponding to a target loop under the condition that the main loop is in fault, the target loop comprises at least one target sound box, the number of the target sound boxes is smaller than the total number of the slave sound boxes, and the target loop is a loop consisting of the main sound box and all the target sound boxes; the main sound box sends a first detection frame in the target loop, wherein the first detection frame comprises a first target transmission sequence; under the condition that the main sound box does not receive the first detection frame returned by the target loop in the first time interval, the main sound box positions the fault node from the target loop, so that the sending number of detection messages is effectively reduced, the message sending time is saved, and the fault node is quickly positioned.

Description

Sound box system fault positioning method and device, storage medium and electronic equipment
Technical Field
The application relates to the field of audio systems, in particular to a method and a device for positioning a fault of a sound box system, a storage medium and electronic equipment.
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 provides a method, an apparatus, a storage medium, and an electronic device for locating a failure of a sound box system, so as to at least partially improve the above problem.
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 fault of an audio amplifier system, where the method is applied to a master audio amplifier of the audio amplifier system, the audio amplifier system further includes at least two slave audio amplifiers, where the master audio amplifier and the at least two slave audio amplifiers form a total loop in a wireless communication manner, and the method for locating a fault of an audio amplifier system includes:
under the condition that the total loop has a fault, the master loudspeaker boxes generate a first target transmission sequence corresponding to a target loop, wherein the target loop comprises at least one target loudspeaker box, the target loudspeaker boxes are slave loudspeaker boxes in the total loop, the number of the target loudspeaker boxes is smaller than the total number of the slave loudspeaker boxes, and the target loop is a loop consisting of the master loudspeaker boxes and all the target loudspeaker boxes;
the main loudspeaker box sends a first detection frame in the target loop, wherein the first detection frame comprises the first target transmission sequence;
and under the condition that the main sound box does not receive the first detection frame returned by the target loop in a first time interval, the main sound box locates a fault node from the target loop.
In a second aspect, an embodiment of the present application provides a sound box system fault location device, which is applied to a main sound box of a sound box system, where the sound box system further includes at least two slave sound boxes, the main sound box and the at least two slave sound boxes form a total loop in a wireless communication manner, and the sound box system fault location device includes:
the system comprises a preprocessing unit, a first transmission unit and a second transmission unit, wherein the preprocessing unit is used for generating a first target transmission sequence corresponding to a target loop by a main sound box under the condition that the total loop has a fault, the target loop comprises at least one target sound box, the target sound box is a slave sound box in the total loop, the number of the target sound boxes is less than the total number of the slave sound boxes, and the target loop is a loop consisting of the main sound box and all the target sound boxes;
the preprocessing unit is further configured to send a first sounding frame by the main speaker in the target loop, where the first sounding frame includes the first target delivery order;
and the positioning unit is used for positioning a fault node from the target loop by the main sound box under the condition that the main sound box does not receive the first detection frame returned by the target loop in a first time interval.
In a third aspect, the present application provides a storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method described above.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor and memory for storing one or more programs; the one or more programs, when executed by the processor, implement the methods described above.
Compared with the prior art, the sound box system fault positioning method provided by the embodiment of the application is applied to a main sound box of a sound box system, the sound box system further comprises at least two slave sound boxes, the main sound box and the at least two slave sound boxes form a general loop in a wireless communication mode, and the sound box system fault positioning method comprises the following steps: under the condition that the main loop fails, the main sound boxes generate a first target transmission sequence corresponding to a target loop, wherein the target loop comprises at least one target sound box, the target sound boxes are slave sound boxes in the main loop, the number of the target sound boxes is smaller than the total number of the slave sound boxes, and the target loop is a loop consisting of the main sound boxes and all the target sound boxes; the main sound box sends a first detection frame in a target loop, wherein the first detection frame comprises a first target transmission sequence; and under the condition that the main sound box does not receive the first detection frame returned by the target loop in the first time interval, the main sound box positions the fault node from the target loop. The loudspeaker box system fault positioning method provided by the embodiment of the application can effectively reduce the sending number of the messages, save the sending time of the messages and quickly position the fault node.
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 connection diagram of a sound box system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a method for locating a fault of a sound box system according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a loop circuit provided by an embodiment of the present application;
fig. 5 is a schematic flow chart of a method for locating a fault of a sound box system according to an embodiment of the present application;
fig. 6 is a schematic view of the substeps of S105 provided in the embodiment of the present application;
fig. 7 is a schematic diagram illustrating the substeps of S103 according to an embodiment of the present application;
fig. 8 is a schematic flow chart of a method for locating a fault in a sound box system according to an embodiment of the present application;
fig. 9 is a schematic unit diagram of a sound box system fault location device provided in an embodiment of the present application.
In the figure: 10-a processor; 11-a memory; 12-a bus; 13-a communication interface; 201-a pre-processing unit; 202-positioning unit.
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.
The embodiment of the application provides an audio amplifier system, as shown in fig. 1, the audio amplifier system includes a master audio amplifier and at least two slave audio amplifiers. The middle loudspeaker boxes of the loudspeaker box system form a total loop in a wireless communication mode. Certainly, the main sound box can interact with a user terminal (mobile phone) to receive instructions and audio files transmitted by the user terminal, the files and the instructions can be transmitted in a loop according to a preset sequence, the main sound boxes are not required to be sent one by one, and the sending frequency is reduced.
The wireless communication mode in the embodiment of the application can be bluetooth, and can also be other wireless communication modes such as wifi, 3G, 4G and 5G. In one possible implementation, the instructions and audio files may be propagated in the loudspeaker system in the form of instruction frames and audio frames, respectively. The at least two slave loudspeaker boxes are arranged according to a preset sequence, and the preset sequence is the transmission sequence of the audio frames and/or the detection frames.
Optionally, the Protocol of the instruction frame and the audio frame in this embodiment may be a User Datagram Protocol (UDP).
As shown in fig. 1, three speakers form a loop for example. The connected sound box is used as a main sound box, and other sound boxes are used as auxiliary sound boxes. The audio playing process is as follows: firstly, connecting a mobile phone with a main sound box, wherein the main sound box plays Bluetooth music; secondly, when the master loudspeaker box plays, the master loudspeaker box transmits the Bluetooth audio to the slave loudspeaker box 1 through UDP, and the slave loudspeaker box 1 plays Bluetooth music; and thirdly, when the slave loudspeaker box 1 plays, the slave loudspeaker box 1 transmits the Bluetooth audio to the slave loudspeaker box 2 through UDP, and the slave loudspeaker box 2 plays Bluetooth music.
It should be noted that, for convenience of illustration, only two slave speakers are shown in fig. 1, and the number of slave speakers is not limited herein. In a possible implementation manner, the identities of the master speaker and the slave speakers may be interchanged, and the speaker that is currently interacting directly with the user terminal is determined as the master speaker.
The embodiment of the application provides an electronic device, which can be a sound box device, such as a master sound box and a slave sound box in fig. 1. Please refer to fig. 2, a schematic structural diagram of an electronic device. The electronic device comprises a processor 10, a memory 11, a bus 12. The processor 10 and the memory 11 are connected by a bus 12, and the processor 10 is configured to execute an executable module, such as a computer program, stored in the memory 11.
The processor 10 may be an integrated circuit chip having signal processing capabilities. In the implementation process, the steps of the sound box system fault location method may be completed by an integrated logic circuit of hardware in the processor 10 or instructions in the form of software. The Processor 10 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 11 may comprise a high-speed Random Access Memory (RAM) and may further comprise a non-volatile Memory (non-volatile Memory), such as at least one disk Memory.
The bus 12 may be an ISA (Industry Standard architecture) bus, a PCI (peripheral Component interconnect) bus, an EISA (extended Industry Standard architecture) bus, or the like. Only one bi-directional arrow is shown in fig. 2, but this does not indicate only one bus 12 or one type of bus 12.
The memory 11 is used for storing programs, such as programs corresponding to the sound box system fault locating device. The sound box system fault locating device comprises at least one software functional module which can be stored in a memory 11 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the electronic equipment. After receiving the execution instruction, the processor 10 executes the program to implement the sound box system fault location method.
Possibly, the electronic device provided by the embodiment of the present application further includes a communication interface 13. The communication interface 13 is connected to the processor 10 via a bus. The electronic device may interact with other terminals via the communication interface 13.
It should be understood that the structure shown in fig. 2 is merely a structural schematic diagram of a portion of an electronic device, which may also include more or fewer components than shown in fig. 2, or have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
The method for locating a fault of a sound box system provided in the embodiment of the present application can be applied to, but is not limited to, the main sound box shown in fig. 1, and with reference to fig. 3, the method for locating a fault of a sound box system includes: s103, S104, and S105.
And S103, under the condition that the total loop fails, the main sound box generates a first target transmission sequence corresponding to the target loop.
The target loop comprises at least one target sound box, the target sound boxes are slave sound boxes in the total loop, the number of the target sound boxes is smaller than the total number of the slave sound boxes, and the target loop is a loop consisting of a master sound box and all the target sound boxes.
Referring to fig. 4, fig. 4 is a schematic diagram of a total loop when the number of slave speakers is 2. Taking fig. 4 as an example for explanation, the target loudspeaker may be the slave loudspeaker 2 in fig. 4. The target loop may be a loop consisting of a master enclosure and a slave enclosure 2. The first target delivery sequence may be from the main enclosure to the slave enclosure 2 to the main enclosure.
It should be noted that the number of target speakers in the target loop may be greater than or equal to 2, the above example is only used as an example for illustration, and the number of target speakers is not limited, and the following is the same.
When there are multiple target enclosures (e.g., including slave enclosure a, slave enclosure B, slave enclosure C, and slave enclosure D), in order to facilitate the target enclosures to know the transfer order of the sounding frames, it is necessary to set a first target transfer order, e.g., master enclosure to slave enclosure a to slave enclosure B to slave enclosure C to slave enclosure D to master enclosure. The loop can be understood as a circular loop with the main sound box as a starting point and the main sound box as an end point.
And S104, the main loudspeaker box sends a first detection frame in the target loop.
Wherein the first sounding frame includes a first target delivery order.
Optionally, the first target delivery order is used for the target speaker to transmit the probe frame on the target loop along the delivery order when receiving the probe frame from the main speaker.
Continuing with the above example, when all nodes (slave enclosures) in the target loop are normal (not malfunctioning). When the slave loudspeaker box A receives the first detection frame transmitted by the master loudspeaker box, the slave loudspeaker box A can know the first target transmission sequence carried in the first detection frame, the slave loudspeaker box A should transmit the first detection frame to the slave loudspeaker box B, and the rest is done in the same way. And when the slave loudspeaker box D receives the first detection frame transmitted from the loudspeaker box C, the slave loudspeaker box D transmits the first detection frame back to the master loudspeaker box.
S105, under the condition that the main sound box does not receive the first detection frame returned by the target loop in the first time interval, the main sound box positions the fault node from the target loop.
It can be understood that, when the main speaker does not receive the first probe frame returned by the target loop within the first time interval, it indicates that there is a faulty node in the target loop, and it is necessary to further locate the faulty node from the target loop. The first time interval is the time interval from the current time to the time when the main loudspeaker box sends out the first detection frame.
Compared with the method that the main sound box sends the detection message to each slave sound box, the sound box system fault positioning method provided by the embodiment of the application can effectively reduce the sending number of the messages. Possibly, because the detection frames can only be sent frame by frame in sequence, and the time consumed for sending the multiple frames is too long, the embodiment of the application can also save the sending time of the message and quickly position the fault node.
To sum up, the embodiment of the present application provides a method for locating a fault of a sound box system, which is applied to a main sound box of the sound box system, wherein the sound box system further includes at least two slave sound boxes, the main sound box and the at least two slave sound boxes form a main loop in a wireless communication manner, and the method for locating a fault of a sound box system includes: under the condition that the main loop fails, the main sound boxes generate a first target transmission sequence corresponding to a target loop, wherein the target loop comprises at least one target sound box, the target sound boxes are slave sound boxes in the main loop, the number of the target sound boxes is smaller than the total number of the slave sound boxes, and the target loop is a loop consisting of the main sound boxes and all the target sound boxes; the main sound box sends a first detection frame in a target loop, wherein the first detection frame comprises a first target transmission sequence; and under the condition that the main sound box does not receive the first detection frame returned by the target loop in the first time interval, the main sound box positions the fault node from the target loop. The loudspeaker box system fault positioning method provided by the embodiment of the application can effectively reduce the sending number of the messages, save the sending time of the messages and quickly position the fault node.
On the basis of fig. 3, in order to accurately locate the fault node, the embodiment of the present application further provides a possible implementation manner, please refer to fig. 5, and the method for locating a fault in a sound box system further includes S106.
And S106, under the condition that the main sound box receives the first detection frame returned by the target loop in the first time interval, the main sound box generates a first target transmission sequence corresponding to a new target loop.
As described above, when the master speaker receives the first probe frame returned by the target loop within the first time interval, it indicates that all slave speakers in the target loop are working normally. At this time, the fault node needs to be located from other slave speakers in the total loop.
In a possible implementation manner, the slave loudspeaker box only has the slave loudspeaker box 1 and the slave loudspeaker box 2 as shown in fig. 1, when the total loop has a fault, the slave loudspeaker box 2 is tested, and when the slave loudspeaker box 2 transmits the first detection frame back to the master loudspeaker box, the slave loudspeaker box 1 can be directly determined as a fault node.
In one possible implementation, when a target loop composed of multiple target speakers (e.g., including speaker a, speaker B, speaker C, and speaker D) successfully returns the first probe frame, if the total loop also includes speaker a, speaker B, speaker C, and speaker D. Optionally, one or more of the slave loudspeaker boxes a, the slave loudspeaker box b, the slave loudspeaker box c and the slave loudspeaker box d may be combined into a new target loop, and a first target delivery sequence corresponding to the new target loop may be generated.
In one possible implementation, the new target loop may be a slave loudspeaker node that has no cross-coverage with the historical target loop, or may be a slave loudspeaker node that has cross-coverage. Illustratively, the new target loops include Slave enclosure A, Slave enclosure B, Slave enclosure C, and Slave enclosure A, and the historical target loops include Slave enclosure A, Slave enclosure B, Slave enclosure C, and Slave enclosure D, both of which include Slave enclosure A, illustrating cross-over of the two. The historical target loop may be a loop that has already performed the first sounding frame sounding.
In one possible implementation, in order to reduce the message sending frequency, the new target loop and any historical target loop do not intersect with each other. It should be noted that, nodes in the historical target loop have been verified and have not failed, and in order to reduce the complexity of verification, it is not necessary to repeatedly verify the nodes in the historical target loop, so that the new target loop and the historical target loop do not have cross coverage slave loudspeaker nodes, that is, the slave loudspeaker in the new target loop does not belong to any historical target loop.
After S106, S104 is repeatedly executed to determine whether a failed node exists in the new target loop.
When the target loop includes at least two slave speakers, the embodiment of the present application further provides a possible implementation manner for the content in S105, please refer to fig. 6, where S105 includes S105-1 to S105-5.
S105-1, the main sound box splits the target loop into at least two sub-loops.
In order to accurately locate a fault node from a target loop, the target loop needs to be split into at least two sub-loops. For example, the current target loop includes slave speaker A, slave speaker B, slave speaker C, and slave speaker D, and correspondingly, the sub-loops may be slave speaker A and slave speaker B, slave speaker C, and slave speaker D, respectively. The current target loop comprises a slave loudspeaker box A and a slave loudspeaker box B, and correspondingly, the sub-loops can be the slave loudspeaker box A and the slave loudspeaker box B respectively.
And S105-2, the main sound box sequentially sends a second detection frame in each sub-loop till the fault sub-loop is determined.
The second detection frame comprises a second target transmission sequence corresponding to the sub-loop, and the fault sub-loop is a sub-loop of the second detection frame which is not received by the main loudspeaker in the first time interval. It will be appreciated that the second targeted delivery order is of the same form and differs in content from the first targeted delivery order.
Alternatively, the transmission path of the second sounding frame may still refer to fig. 4.
And S105-3, the master loudspeaker box judges whether the number of the slave loudspeaker boxes in the fault sub-loop is more than 2. If yes, executing S105-5; if not, S105-4 is executed.
It can be understood that the number of slave loudspeaker boxes in the fault sub-loop is less than 2, that is, the number is 1, at this time, the slave loudspeaker boxes in the fault sub-loop can be determined as fault nodes, that is, S105-4 is performed; otherwise, a further determination of the failed node is required, i.e. S105-5 is performed.
And S105-4, determining the slave loudspeaker boxes in the fault sub-loop as fault nodes.
And S105-5, splitting the fault sub-loop into at least two new sub-loops.
After S105-5, S105-2 is repeatedly executed until the number of slave loudspeaker boxes in the fault sub-loop is less than 2.
When the target loop includes 1 slave loudspeaker, for the content in S105, the embodiment of the present application further provides a possible implementation manner, and the slave loudspeaker in the target loop is determined as the fault node.
When the slave speakers in the total loop are arranged according to a predetermined sequence, on the basis of fig. 3, for the content in S103, the embodiment of the present application further provides a possible implementation manner, please refer to fig. 7, where S103 includes: s103-1 and S103-2.
S103-1, the main sound box intercepts a section of continuous auxiliary sound boxes from the main loop according to a set sequence to serve as target sound boxes in the target loop.
S103-2, the main sound box generates a first target transmission sequence corresponding to the target loop according to the target sound box.
For example, the target loop includes a slave enclosure a, a slave enclosure B, a slave enclosure C, and a slave enclosure D, where the slave enclosures are in the master loop in a predetermined order from enclosure a to enclosure B, and from enclosure C to enclosure D. The first target delivery sequence is from master enclosure to slave enclosure A to slave enclosure B, and from enclosure C to slave enclosure D to master enclosure. Namely, the first target transmission sequence is consistent with the arrangement of the slave loudspeaker boxes in the total loop according to the set sequence.
On the basis of fig. 3, regarding how to determine whether the total loop has a fault, the embodiment of the present application further provides a possible implementation manner, please refer to fig. 8, and the method for locating a fault in a sound box system further includes S101 and S102.
And S101, the main sound box sends a third detection frame in the main loop according to a preset period.
First detection frame, second detection frame and third detection frame in this application embodiment all carry corresponding sign to main audio amplifier discerns. For the sake of brevity, the description of the third sounding frame is not repeated here, and in particular, reference is made to the description of the first sounding frame.
And S102, under the condition that the main sound box does not receive the third detection frame returned by the total loop in the second time interval, the main sound box determines that the total loop has a fault.
Wherein the second time interval is greater than or equal to the preset period.
Optionally, the second time interval is 3 times the period, e.g. 30 ms.
In one possible implementation, the number of slave loudspeaker boxes is 2.
In a possible implementation manner, after the failure node is determined, the main speaker may perform an alarm, for example, send a failure prompt to the user terminal, where the failure prompt includes an identifier of the failure node; for example, the main sound box can prompt the user that a fault occurs through a fault prompting lamp; for example, the main speaker may perform a fault broadcast, and the broadcast content includes an identifier of the fault node, so as to remind a user to maintain the fault node.
Referring to fig. 9, fig. 9 is a schematic diagram of a sound box system fault locating device according to an embodiment of the present disclosure, where optionally, the sound box system fault locating device is applied to the electronic device described above.
The sound box system fault locating device comprises: a preprocessing unit 201 and a positioning unit 202.
The preprocessing unit 201 is configured to, when the total loop fails, generate a first target transmission sequence corresponding to a target loop by a master loudspeaker box, where the target loop includes at least one target loudspeaker box, the target loudspeaker boxes are slave loudspeaker boxes in the total loop, the number of the target loudspeaker boxes is less than the total number of the slave loudspeaker boxes, and the target loop is a loop composed of the master loudspeaker box and all the target loudspeaker boxes.
The preprocessing unit 201 is further configured to send a first sounding frame in the target loop by the main speaker, where the first sounding frame includes a first target delivery order.
The positioning unit 202 is configured to, when the main speaker does not receive the first probe frame returned by the target loop within the first time interval, position the fault node from the target loop by the main speaker.
Alternatively, the preprocessing unit 201 may execute the above S101, S102, S103, S104, and S106, and the positioning unit 202 may execute the above S105.
It should be noted that the sound box system fault location device provided in this embodiment may execute the method flows shown in the above method flow embodiments to achieve 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 also provides a storage medium, wherein the storage medium stores computer instructions and programs, and the computer instructions and the programs execute the sound box system fault positioning method of the embodiment when being read and run. The storage medium may include memory, flash memory, registers, or a combination thereof, etc.
The following provides an electronic device, which may be a sound box device or other devices with an audio playing function, and as shown in fig. 2, the electronic device may implement the above-mentioned sound box system fault location method; specifically, the electronic device includes: processor 10, memory 11, bus 12. The processor 10 may be a CPU. The memory 11 is used for storing one or more programs, and when the one or more programs are executed by the processor 10, the sound box system fault location method of the above embodiment is executed.
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 method for locating a fault of a sound box system is characterized in that the method is applied to a main sound box of the sound box system, the sound box system further comprises at least two slave sound boxes, the main sound box and the at least two slave sound boxes form a general loop in a wireless communication mode, and the method for locating the fault of the sound box system comprises the following steps:
under the condition that the total loop has a fault, the master loudspeaker boxes generate a first target transmission sequence corresponding to a target loop, wherein the target loop comprises at least one target loudspeaker box, the target loudspeaker boxes are slave loudspeaker boxes in the total loop, the number of the target loudspeaker boxes is smaller than the total number of the slave loudspeaker boxes, and the target loop is a loop consisting of the master loudspeaker boxes and all the target loudspeaker boxes;
the main loudspeaker box sends a first detection frame in the target loop, wherein the first detection frame comprises the first target transmission sequence;
and under the condition that the main sound box does not receive the first detection frame returned by the target loop in a first time interval, the main sound box locates a fault node from the target loop.
2. The loudspeaker system fault location method of claim 1, wherein the method further comprises:
under the condition that the main sound box receives the first detection frame returned by the target loop in a first time interval, the main sound box generates a first target transmission sequence corresponding to a new target loop, wherein the new target loop comprises at least one new slave sound box relative to any historical target loop;
and the main sound box repeatedly sends the first detection frame in the target loop until the main sound box does not receive the first detection frame returned by the target loop in a first time interval.
3. The loudspeaker system fault localization method of claim 1 or 2, wherein when the target loop includes at least two slave loudspeakers, the step of the master loudspeaker locating the fault node from the target loop comprises:
the main sound box splits the target loop into at least two sub-loops;
the main sound box sequentially sends a second detection frame in each sub-loop till a fault sub-loop is determined, wherein the second detection frame comprises a second target transmission sequence corresponding to the sub-loop, and the fault sub-loop is a sub-loop of the main sound box which does not receive the second detection frame returned within a first time interval;
the master loudspeaker box judges whether the number of slave loudspeaker boxes in the fault sub-loop is greater than 2;
if not, determining the slave loudspeaker boxes in the fault sub-loop as fault nodes;
if so, splitting the fault sub-loop into at least two new sub-loops, and repeating the main loudspeaker box to sequentially send a second detection frame in each sub-loop until the fault sub-loop is determined.
4. The loudspeaker system fault localization method of claim 2, wherein the new target loop is not intersected with any historical target loop.
5. The method for locating a failure in an acoustic enclosure system of claim 1, wherein the slave acoustic enclosures in the master loop are arranged in a predetermined order, and the step of generating the first target transmission order corresponding to the target loop by the master acoustic enclosure when the master loop fails comprises:
the main sound box intercepts a section of continuous auxiliary sound boxes from the main loop according to the set sequence to serve as target sound boxes in the target loop;
and the main sound box generates a first target transmission sequence corresponding to the target loop according to the target sound box.
6. The loudspeaker system fault location method of claim 1, wherein prior to determining that the total loop is faulty, the method further comprises:
the main sound box sends a third detection frame in the main loop according to a preset period;
and under the condition that the main sound box does not receive the third detection frame returned by the total loop in a second time interval, the main sound box determines that the total loop has a fault, wherein the second time interval is greater than or equal to a preset period.
7. The loudspeaker system fault location method of claim 1, wherein the number of slave loudspeakers is 2.
8. The utility model provides a sound box system fault location device which characterized in that is applied to sound box system's main audio amplifier, sound box system still includes two at least follow audio amplifiers, main audio amplifier and two at least follow the audio amplifier and constitute total loop with wireless communication mode, sound box system fault location device includes:
the system comprises a preprocessing unit, a first transmission unit and a second transmission unit, wherein the preprocessing unit is used for generating a first target transmission sequence corresponding to a target loop by a main sound box under the condition that the total loop has a fault, the target loop comprises at least one target sound box, the target sound box is a slave sound box in the total loop, the number of the target sound boxes is less than the total number of the slave sound boxes, and the target loop is a loop consisting of the main sound box and all the target sound boxes;
the preprocessing unit is further configured to send a first sounding frame by the main speaker in the target loop, where the first sounding frame includes the first target delivery order;
and the positioning unit is used for positioning a fault node from the target loop by the main sound box under the condition that the main sound box does not receive the first detection frame returned by the target loop in a first time interval.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
10. An electronic device, comprising: a processor and memory for storing one or more programs; the one or more programs, when executed by the processor, implement the method of any of claims 1-7.
CN202111303701.9A 2021-11-05 2021-11-05 Sound box system fault positioning method and device, storage medium and electronic equipment Pending CN114040310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111303701.9A CN114040310A (en) 2021-11-05 2021-11-05 Sound box system fault positioning method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111303701.9A CN114040310A (en) 2021-11-05 2021-11-05 Sound box system fault positioning method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114040310A true CN114040310A (en) 2022-02-11

Family

ID=80136288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111303701.9A Pending CN114040310A (en) 2021-11-05 2021-11-05 Sound box system fault positioning method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114040310A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650594A (en) * 2015-11-04 2018-10-12 广东欧珀移动通信有限公司 A kind of speaker management method and user terminal, computer storage media
WO2020127836A1 (en) * 2018-12-21 2020-06-25 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Sound reproduction/simulation system and method for simulating a sound reproduction
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
CN108650594A (en) * 2015-11-04 2018-10-12 广东欧珀移动通信有限公司 A kind of speaker management method and user terminal, computer storage media
WO2020127836A1 (en) * 2018-12-21 2020-06-25 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Sound reproduction/simulation system and method for simulating a sound reproduction
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
CN108882228B (en) Wireless grid network establishing method, device and system of electronic equipment system
CN106302997B (en) Output control method, electronic equipment and system
WO2014137524A1 (en) Wireless device pairing
CN103024772B (en) A kind of voice special line auto-dial testing system and method
KR20140049612A (en) Providing communication path information in hybrid networks
CN111093159B (en) Message pushing method and device, server and computer readable storage medium
CN106126168A (en) A kind of sound effect treatment method and device
CN108489000A (en) Detection method, device, system and the air conditioner of unit exception
CN108124042A (en) Device fault detection method and device and mobile terminal
CN109120779B (en) Microphone blockage reminding method and related device
CN110198242A (en) Distribution method, apparatus and storage medium for speech ciphering equipment
CN101702811A (en) Monitoring method and device for quality of service
CN105704338A (en) Audio mixing method, audio mixing equipment and system
CN108366361A (en) Communication means and device and electronic equipment
JP2021500761A (en) Information instruction method, terminal and computer storage medium
CN108513365B (en) Control method and device of intelligent equipment, intelligent equipment and medium
JP2021516884A (en) How to send and receive paging messages, network devices, and user devices
CN110602338B (en) Audio processing method, device, system, storage medium and equipment
CN112068794A (en) Audio mixing control method, device, electronic device and storage medium
CN105679350A (en) Audio playing method and device
JP5512641B2 (en) Wireless terminal, emergency information distribution system, and program
CN113179505B (en) Bluetooth playing device restarting and reconnecting method, bluetooth playing device and electronic equipment
CN114040310A (en) Sound box system fault positioning method and device, storage medium and electronic equipment
CN110096250B (en) Audio data processing method and device, electronic equipment and storage medium
CN107231275B (en) Method for connection configuration of user equipment and household equipment

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