Cross-device main / standby power amplifier switching method and system

By using multicast technology to achieve centralized communication between primary and backup power amplifiers across devices, the redundancy and latency issues in multi-device scenarios are resolved, improving the stability and operational efficiency of the audio system and ensuring the continuity and reliability of audio output.

CN121815159APending Publication Date: 2026-04-07GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-05
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing primary/backup power amplifier switching solutions cannot achieve efficient and reliable cross-device collaboration in multi-device scenarios. They suffer from redundant messages, switching delays, and unreasonable load distribution, resulting in insufficient stability and operational efficiency of the audio system.

Method used

By using multicast technology, the switching controller, multiple main power amplifiers, and backup power amplifiers are included in the same multicast group to achieve centralized communication, reduce redundancy and conflict risks, quickly trigger backup power amplifier takeover tasks, ensure audio output continuity in conjunction with link switching, and adapt to load balancing of multiple backup power amplifiers.

Benefits of technology

It improves the stability and operational efficiency of the audio system, reduces network bandwidth usage, avoids packet conflicts and switching delays, and ensures the continuity and reliability of audio output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121815159A_ABST
    Figure CN121815159A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-device main and standby power amplifier switching method and system. The cross-device main and standby power amplifier switching method comprises the steps that a switching controller, a plurality of main power amplifiers and at least one standby power amplifier are connected into the same multicast group; each main power amplifier reports own audio parameters to the switching controller and periodically reports an operation state to the switching controller through a multicast group; the switching controller carries out fault detection based on the operation state of each main power amplifier received from the multicast group set; when a fault of any main power amplifier is detected, the switching controller issues a switching instruction to all power amplifiers through the multicast group; the standby power amplifier monitors the multicast group and takes over the output task of the fault main power amplifier after receiving the switching instruction; and the switching controller controls an audio link switching unit to execute switching from a loudspeaker output link corresponding to the faulted main power amplifier to the standby power amplifier. According to the invention, communication redundancy is reduced based on multicast, cross-device main / standby rapid switching is realized, audio continuity is ensured, and the stability of the whole system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of audio amplification, and particularly relates to a cross-device main-backup power amplifier switching method and system. BACKGROUND

[0002] In recent years, with the upgrading of audio coverage requirements in large venues, public broadcasting and other scenarios, multi-channel and multi-zone audio system deployment has become increasingly common, the number and distribution range of main power amplifiers continue to expand, and the continuity and stability of audio output are increasingly demanding. However, the current main-backup power amplifier switching scheme still remains at the one-to-one single-device cooperation stage, and in the multi-main power amplifier scenario, it needs to rely on manual intervention for switching, and the system lacks automatic switching capability, which cannot meet the actual operation and maintenance requirements of large-scale audio systems.

[0003] The current multi-main-backup power amplifier switching scheme basically focuses on the optimization of unicast communication architecture, only pursuing the communication stability between single devices, but ignoring the cross-device cooperation relationship of multiple main power amplifiers and backup power amplifiers, resulting in that it can only run in a specific environment with a small number of main-backup devices and low network load. When applied to actual multi-device scenarios, it will be restricted by redundant messages, switching delay and other factors, and cannot achieve efficient and reliable switching. That is, the core of cross-device main-backup power amplifier switching is to realize low-redundancy communication and rapid cooperation of multiple devices, but in the existing scheme, problems such as conflict reporting of multiple main power amplifiers, slow parameter synchronization of backup power amplifiers, and unreasonable load distribution make the response speed and reliability of switching difficult to meet the requirements of actual scenarios.

[0004] Therefore, there is an urgent need for a cross-device main-backup power amplifier switching technology that can adapt to multi-device cross-communication and solve the redundancy and delay problems of traditional schemes to meet the stable operation requirements of large-scale audio systems. SUMMARY

[0005] The application provides a cross-device main-backup power amplifier switching method and system, which realizes centralized communication of cross-device main-backup power amplifiers through multicast technology, reduces the risk of message redundancy and conflict of multiple devices, quickly triggers backup power amplifier takeover tasks when main power amplifiers fail, cooperates with link switching to ensure continuous audio output, and adapts to multi-backup power amplifier load balancing, effectively improving the stability and operation efficiency of the audio system.

[0006] The application provides a cross-device main-backup power amplifier switching method, which comprises the following steps:

[0007] A switching controller, multiple main power amplifiers and at least one backup power amplifier are connected to the same multicast group;

[0008] Each main power amplifier reports its own audio parameters to the switching controller, and the backup power amplifier receives and stores the audio parameters to construct an audio parameter comparison table;

[0009] The multiple main power amplifiers periodically report running states to the switching controller through the multicast group;

[0010] The switching controller detects faults based on the running states of each main power amplifier received from the multicast group;

[0011] When detecting any main power amplifier fault, the switching controller issues a switching instruction to all power amplifiers through the multicast group;

[0012] The standby power amplifier listens to the multicast group, and after receiving the switching instruction, takes over the output task of the faulty main power amplifier;

[0013] The switching controller controls the audio link switching unit to perform switching of the speaker output link corresponding to the faulty main power amplifier to the standby power amplifier.

[0014] According to the cross-device main-standby power amplifier switching method provided by the application, the running states are periodically reported to the switching controller, specifically including:

[0015] Each main power amplifier reports a running state message through the multicast group in a respective time slice according to a different reporting time slice allocated by the switching controller.

[0016] According to the cross-device main-standby power amplifier switching method provided by the application, after the switching controller issues a switching instruction to all power amplifiers through the multicast group, it further includes:

[0017] The switching controller starts a timeout verification mechanism, and if the instruction confirmation message returned by the standby power amplifier is not received through the multicast group within a preset time length, the switching instruction is automatically reissued.

[0018] According to the cross-device main-standby power amplifier switching method provided by the application, the switching instruction carries unique identification information of the faulty main power amplifier, which is used by the standby power amplifier to identify the faulty main power amplifier to be taken over.

[0019] According to the cross-device main-standby power amplifier switching method provided by the application, the switching controller detects faults based on the running states of each main power amplifier received from the multicast group, specifically including:

[0020] The switching controller analyzes the running parameters in the received running state message, and if the running parameters exceed a preset threshold, it is determined that the corresponding main power amplifier is faulty; and / or,

[0021] If the switching controller does not receive the running state message of a specific main power amplifier through the multicast group within a continuous preset number of reporting periods, it is determined that the main power amplifier is faulty.

[0022] The application provides a cross-device main-backup power amplifier switching method, which takes over the output task of the faulty main power amplifier and specifically comprises the following steps.

[0023] The backup power amplifier calls audio parameters associated with the unique identification information of the faulty main power amplifier from a pre-stored audio parameter comparison table.

[0024] The audio output is started based on the called audio parameters, and the takeover of the audio output task of the faulty main power amplifier is completed.

[0025] The application provides a cross-device main-backup power amplifier switching method, which further comprises a fault recovery and back-switching step.

[0026] When the faulty main power amplifier is repaired, a recovery ready message is sent to the switching controller through the multicast group.

[0027] The switching controller issues a back-switching instruction through the multicast group after receiving the recovery ready message.

[0028] In response to the back-switching instruction, the operation of switching the loudspeaker output link from the backup power amplifier back to the repaired main power amplifier is performed, and the repaired main power amplifier takes over its original output task again.

[0029] The application further provides a cross-device main-backup power amplifier switching system, which comprises the following components.

[0030] A switching controller, multiple main power amplifiers and at least one backup power amplifier are connected to the same multicast group.

[0031] The multiple main power amplifiers are configured to report their own audio parameters to the switching controller and periodically report their running states to the switching controller through the multicast group.

[0032] The switching controller is configured to centrally receive the running states of the main power amplifiers through the multicast group and perform fault detection, issue a switching instruction to all power amplifiers through the multicast group when any main power amplifier is detected to be faulty, and control the audio link switching unit to perform link switching.

[0033] The backup power amplifier is configured to listen to the multicast group, receive and store the audio parameters of the main power amplifiers to build an audio parameter comparison table, and take over the output task of the faulty main power amplifier after receiving the switching instruction.

[0034] The audio link switching unit is configured to switch the loudspeaker output link corresponding to the faulty main power amplifier to the backup power amplifier under the control of the switching controller.

[0035] The application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the cross-device main-backup power amplifier switching method according to any one of the above when executing the program.

[0036] The application further provides a non-transitory computer-readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the cross-device main-backup power amplifier switching method according to any one of the above.

[0037] The application provides a cross-device main-backup power amplifier switching method and system. The application relies on the one-to-many transmission characteristics of multicast communication, and integrates a switching controller, multiple main power amplifiers and backup power amplifiers into the same multicast group, so as to realize centralized communication of multiple devices. Compared with a traditional unicast architecture, it is not necessary to establish a communication link for each main power amplifier, which greatly reduces redundant message transmission, reduces network bandwidth occupation, avoids message conflict problems when multiple main power amplifiers report states in parallel, and improves communication efficiency and stability. Through the design of pre-reporting of audio parameters by the main power amplifier and the construction of a parameter comparison table by the backup power amplifier, the temporary parameter acquisition link after failure occurs is omitted, and the switching controller quickly issues a switching instruction, so that the backup power amplifier can quickly take over the task of the failed main power amplifier. In combination with the precise linkage of the audio link switching unit, the audio output is ensured to be uninterrupted, and the strict demand for audio continuity in large venues, public broadcasting and other scenarios is met. The scheme is compatible with multiple backup power amplifier deployment scenarios, the switching controller can intelligently distribute the task of the failed main power amplifier according to the load capacity of the backup power amplifier, avoid overloading of a single backup power amplifier, and improve the system redundancy guarantee capability. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings described in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0039] Figure 1 is a flowchart of a cross-device main-backup power amplifier switching method provided by an embodiment of the present application;

[0040] Figure 2 is a structural schematic diagram of a cross-device main-backup power amplifier switching system provided by an embodiment of the present application;

[0041] Figure 3 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application will be further described in detail below in combination with the drawings and examples. It should be understood that the specific examples described herein are only used to explain the present application and do not limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.

[0043] Embodiment one

[0044] In order to solve the problems in the prior art, the present application proposes a cross-device master-backup power amplifier switching method. The centralized communication of cross-device master-backup power amplifiers is realized through multicast technology, which not only reduces the risk of message redundancy and conflict of multiple devices, but also quickly triggers the backup power amplifier to take over the task when the master power amplifier fails, cooperates with link switching to ensure continuous audio output, adapts to multiple backup power amplifier load balancing, and effectively improves the stability and operation efficiency of the audio system, as shown in Figure 1 The steps include but are not limited to the following steps:

[0045] S1: A switching controller, multiple master power amplifiers and at least one backup power amplifier are connected to the same multicast group.

[0046] This step S1 is the communication foundation construction link of the whole cross-device master-backup power amplifier switching scheme. The multicast group information (including multicast address, port, etc.) is pre-configured by the switching controller. Multiple master power amplifiers (responsible for normal audio output task), at least one backup power amplifier (as a hot standby redundant device) and the switching controller itself are connected to the same local area network and join the same preset multicast group, forming a communication architecture of one control to multiple power amplifiers and one power amplifier to one control.

[0047] Further, compared with the one-to-one link mode of traditional unicast communication, the centralized access design of the multicast group makes the switching controller not need to establish a communication connection for each master / backup power amplifier. On the one hand, it can greatly reduce the redundant message transmission when multiple devices communicate in parallel, and reduce the local area network bandwidth occupation; on the other hand, it can avoid the message conflict problem caused by multiple master power amplifiers reporting state data at the same time from the root.

[0048] S2: Each master power amplifier reports its own audio parameters to the switching controller, and the backup power amplifier receives and stores the audio parameters to construct an audio parameter comparison table;

[0049] In step S2, after each main amplifier completes multicast group access, it actively reports its corresponding audio parameters (including output gain, frequency response, channel number, and other key information) to the switching controller; after receiving the parameters, the switching controller synchronously distributes the parameters to each backup amplifier through the multicast group, or the backup amplifier directly listens to the parameter message reported by the main amplifier to the controller and extracts the information. The backup amplifier stores the audio parameters of each main amplifier in association with the corresponding device ID and channel information, and constructs a complete audio parameter table to provide support for subsequent switching between main and backup amplifiers.

[0050] S3: The multiple main amplifiers periodically report running states to the switching controller through the multicast group.

[0051] In step S3, each main amplifier that has accessed the multicast group reports its running state data to the switching controller through the multicast group according to a preset period (such as 50 ms). The reported data needs to be associated with a unique device ID to distinguish different main amplifiers. The state data includes but is not limited to working voltage, output current, temperature, channel running state, and whether there is a fault alarm, and other key information. The switching controller continuously listens to the state reporting messages in the multicast group, and centrally collects and checks the received data.

[0052] Further, relying on the multicast group to realize centralized reporting of the states of multiple main amplifiers, compared with the traditional unicast reporting mode, the communication link occupation and message redundancy are further reduced. The preset periodic reporting combined with device ID association can ensure the comprehensiveness and accuracy of the switching controller's monitoring of the states of each main amplifier. At the same time, centralized reporting facilitates the switching controller to uniformly manage the reporting rhythm, and cooperates with subsequent time division multiplexing and other conflict avoidance strategies, which can further improve the reliability of state reporting.

[0053] S4: The switching controller detects faults based on the running states of each main amplifier received from the multicast group.

[0054] In step S4, the switching controller checks each main amplifier's periodic state data received from the multicast group one by one. The checking dimensions include the integrity of the state data, whether the key parameters (voltage, temperature, etc.) exceed the preset threshold, whether there is an explicit fault alarm, and whether the state message of a certain main amplifier is continuously not received (judged as offline). If any of the checking dimensions does not meet the normal operation standard, it is determined that the corresponding main amplifier has failed, and the device ID, fault type, and associated output channel information of the failed main amplifier are recorded.

[0055] Further, unified fault detection based on multicast centralized received state data avoids the delay and omission problems of traditional decentralized detection, improving the uniformity and accuracy of fault identification; the multi-dimensional verification mechanism can cover active fault alarm and passive offline judgment, ensuring that there is no dead angle for fault detection; at the same time, fault detection and previous centralized state reporting are seamlessly connected, without the need to build additional detection links, further ensuring the timeliness of fault identification.

[0056] S5: When detecting any main power amplifier failure, the switching controller issues a switching instruction to all power amplifiers through the multicast group;

[0057] In step S5, after completing the determination and information recording of the failed main power amplifier, the switching controller generates a targeted switching instruction immediately, which contains key information such as the failed main power amplifier device ID, associated output channel, standby power amplifier identifier to be taken over, and switching timing requirements; then the switching instruction is sent to all main power amplifiers and standby power amplifiers through the preset multicast group to ensure that the relevant devices synchronously obtain the switching information.

[0058] Further, relying on the one-to-many transmission characteristics of the multicast group to implement unified switching instruction issuance greatly shortens the overall time consumption of instruction transmission and device response compared to the traditional unicast one-by-one issuance mode, laying the foundation for rapid takeover; issuing the instruction to all power amplifiers ensures that non-failed main power amplifiers remain in normal operation state, while standby power amplifiers accurately obtain complete information required for takeover, avoiding switching chaos caused by delayed instruction transmission or missing information.

[0059] S6: The standby power amplifier listens to the multicast group and takes over the output task of the failed main power amplifier after receiving the switching instruction;

[0060] In step S6, the standby power amplifier continuously listens to the packet transmission of the preset multicast group, and when it receives the switching instruction issued by the switching controller, it immediately parses the key information in the instruction, such as the failed main power amplifier device ID and associated output channel; then it calls the previously stored audio parameter table to match and quickly load the audio configuration parameters (such as output gain, channel mode, etc.) corresponding to the failed main power amplifier; after completing the parameter configuration, the standby power amplifier immediately starts the corresponding output channel to replace the failed main power amplifier and execute the audio amplification output task, ensuring the continuity of audio signal transmission. If it is a multi-standby power amplifier scenario, only the standby power amplifier specified by the instruction performs the takeover operation, and the remaining standby power amplifiers maintain a hot standby state.

[0061] Further, with the help of multicast listening to achieve fast reception of instructions, and in combination with the previously pre-stored audio parameter table, the step of temporarily matching parameters after failure is eliminated, greatly improving the response speed of takeover; the standby power amplifier accurately matches the audio parameters of the failed main power amplifier, which can ensure that the audio output quality after switching is consistent with that before switching, avoiding problems such as sudden volume changes and audio distortion.

[0062] S7: The switching controller controls the audio link switching unit to execute switching of the speaker output link corresponding to the fault main power amplifier to the backup power amplifier.

[0063] In step S7, after issuing the switching instruction, the switching controller synchronously sends a link switching control signal to the audio link switching unit, and the control signal explicitly contains the speaker link identification corresponding to the fault main power amplifier and the output link identification of the target backup power amplifier. After receiving the control signal, the audio link switching unit executes the switching logic of first connecting and then disconnecting, that is, first connecting the link between the backup power amplifier and the target speaker, and then disconnecting the original link between the fault main power amplifier and the speaker after confirming that the link is connected and stable, to complete the entire link switching process.

[0064] Further, the switching logic of first connecting and then disconnecting completely avoids the problems of audio disconnection and popping sound that may occur during the switching process from the physical link layer, ensuring the continuity of audio output. The switching controller uniformly coordinates the backup power amplifier takeover and link switching to avoid the invalid working state of the backup power amplifier starting output but the link not being switched. At the same time, the link switching instruction is accurately associated with the fault main power amplifier and the corresponding speaker to ensure the accuracy of the switching action and avoid mis-switching other normal links, further improving the reliability of system operation.

[0065] As a further optional embodiment, the switching controller periodically reports the running state, specifically including:

[0066] Each main power amplifier reports the running state message through the multicast group in the respective time slice according to the different reporting time slices allocated by the switching controller.

[0067] In a preferred embodiment, the switching controller as the core node of time slice allocation first completes the basic parameter configuration: on the one hand, it counts the total number of main power amplifiers currently accessing the multicast group, and on the other hand, it confirms the preset overall reporting period. Then, based on these two core parameters, it performs time slice division, which can adopt an equal allocation strategy to divide the 50ms overall period into time slices matching the number of main power amplifiers, for example, when 10 main power amplifiers are accessed, each main power amplifier is allocated a 5ms exclusive reporting time slice. Alternatively, it can adopt an on-demand allocation strategy to allocate longer time slices to main power amplifiers with large data volume and high performance, and shorter time slices to main power amplifiers with small data volume, to ensure that the reporting efficiency and device performance are adapted. After completing the time slice division, the switching controller generates an allocation list containing the device ID of each main power amplifier and the corresponding starting time and duration of the time slice, and uniformly issues the list to all main power amplifiers through the multicast group. After receiving, each main power amplifier matches the corresponding time slice information through its own device ID and stores it in the local cache, while synchronously calibrating its own clock with the clock of the switching controller to ensure the consistency of the time slice timing.

[0068] As a further optional embodiment, after the switching controller issues the switching instruction to all power amplifiers through the multicast group, it further comprises:

[0069] The switching controller starts a timeout verification mechanism. If the instruction confirmation message returned by the standby power amplifier is not received through the multicast group within a preset time period, the switching controller automatically reissues the switching instruction.

[0070] In a preferred embodiment, the switching controller starts a built-in timeout timer when it completes the issuance of the switching instruction. The preset time period can be flexibly configured according to the communication delay requirement of the actual application scenario. After receiving the switching instruction and completing the instruction analysis, the standby power amplifier immediately generates an instruction confirmation message, which contains key information such as the device identifier of the standby power amplifier, the identifier of the faulty main power amplifier, and the instruction reception status, and feeds back to the switching controller through the same multicast group. The switching controller continuously listens to the feedback message in the multicast group. If the instruction confirmation message of the target standby power amplifier is successfully received before the timeout timer reaches the preset time period, it is determined that the instruction transmission is successful, and the timeout verification is terminated. If the corresponding confirmation message is still not received after the timeout, or the received confirmation message has problems such as incomplete information or verification failure, it is determined that the instruction transmission is abnormal, and the switching controller automatically triggers the reissue mechanism to reissue the switching instruction to the multicast group. To avoid network redundancy caused by unlimited reissue, the upper limit of the number of reissues can be further set. If the instruction confirmation is still not completed after reaching the upper limit of the number of reissues, the switching controller records the fault log and can trigger the alarm mechanism to prompt the operation and maintenance personnel to intervene in troubleshooting.

[0071] As a further optional embodiment, the switching instruction carries the unique identifier information of the faulty main power amplifier, which is used by the standby power amplifier to identify the faulty main power amplifier to be taken over.

[0072] In a preferred embodiment, the unique identifier information of the faulty main power amplifier can adopt a coding form with uniqueness, such as a device serial number, a MAC address, or a pre-allocated device ID. When generating the switching instruction, the switching controller embeds the unique identifier information of the faulty main power amplifier that has been determined into the instruction data segment, ensuring the integrity and accuracy of the identifier information. After receiving the switching instruction through the multicast group, the standby power amplifier first analyzes the unique identifier information in the instruction, and combines the pre-stored audio parameter comparison table (which has associated the unique identifier of each main power amplifier with the corresponding audio parameter or output channel information) to quickly locate the faulty main power amplifier to be taken over and accurately match the corresponding configuration parameters and output tasks. For a multi-standby power amplifier deployment scenario, the switching instruction can also synchronously carry the unique identifier information of the target standby power amplifier, so that only the standby power amplifier matching the identifier performs the takeover operation, and the remaining standby power amplifiers maintain a hot standby state, further ensuring the orderliness of the switching process.

[0073] As a further optional embodiment, the switching controller performs fault detection based on the running state of each master power amplifier received from the multicast group, specifically including:

[0074] The switching controller parses the running parameters in the received running state message, and if the running parameters exceed the preset threshold, it is determined that the corresponding master power amplifier is faulty; and / or,

[0075] If the switching controller does not receive the running state message of a specific master power amplifier through the multicast group within a continuous preset number of reporting periods, it is determined that the master power amplifier is faulty.

[0076] As a further optional embodiment, the fault detection includes two core determination logics, which can be used alone or in combination: one is the parameter threshold determination logic, the switching controller parses the running state message of each received master power amplifier, extracts the key running parameters (such as operating voltage, output current, device temperature, output power, etc.) therein, and compares these parameters with the preset normal running threshold range one by one, if any running parameter exceeds the corresponding preset threshold, it is immediately determined that the corresponding master power amplifier is faulty, and the fault type is marked as parameter abnormality fault; the second is the offline missing determination logic, the switching controller pre-sets the threshold of the number of reporting periods of continuous non-received messages, and in the periodic listening process, the state message receiving situation of each master power amplifier is counted and counted, if the running state message of a specific master power amplifier is not received through the multicast group within a continuous preset number of reporting periods, and after excluding the communication link fault, it is determined that the master power amplifier is in offline state, that is, it is determined to be faulty, and the fault type is marked as offline fault.

[0077] As a further optional embodiment, the standby power amplifier takes over the output task of the faulty master power amplifier, specifically including:

[0078] The standby power amplifier calls the audio parameters associated with the unique identification information of the faulty master power amplifier from the pre-stored audio parameter reference table;

[0079] Based on the called audio parameters, start audio output to complete the takeover of the audio output task of the faulty master power amplifier.

[0080] In a preferred embodiment, the backup power amplifier calls the audio parameters associated with the unique identification information of the faulty main power amplifier from the pre-stored audio parameter table; specifically, after the backup power amplifier obtains the unique identification information of the faulty main power amplifier through the switching instruction, it uses the identification information as a search keyword to query the pre-stored audio parameter table, quickly extracts the complete audio parameters associated therewith, including but not limited to output gain, frequency response range, channel number, signal sampling rate, output power and other key configuration information, to ensure the accuracy of parameter calling. The backup power amplifier starts audio output based on the called audio parameters, completes the takeover of the audio output task of the faulty main power amplifier; during the implementation process, the backup power amplifier automatically completes internal circuit configuration and parameter calibration according to the extracted audio parameters, ensures that the output characteristics of the backup power amplifier are completely matched with those of the faulty main power amplifier, and immediately starts the audio amplification and transmission function of the corresponding output channel after the parameter configuration is completed, realizes seamless takeover of the output task of the faulty main power amplifier, and guarantees the continuity and consistency of the audio signal output.

[0081] As a further optional embodiment, the method further comprises a fault recovery and back switching step:

[0082] When the faulty main power amplifier is repaired, a recovery ready message is sent to the switching controller through the multicast group;

[0083] After receiving the recovery ready message, the switching controller issues a back switching instruction through the multicast group;

[0084] In response to the back switching instruction, the operation of switching the speaker output link from the backup power amplifier back to the repaired main power amplifier is performed, and the repaired main power amplifier re-takes over its original output task.

[0085] In a preferred embodiment, the method further comprises a fault recovery and back switching step: after the fault main power amplifier is repaired, the built-in self-test module completes key parameter verification such as working voltage and output current, and confirms that it meets the normal operation threshold, and then sends a recovery ready message containing its unique identifier and self-test qualified status to the switching controller through the multicast group; after the switching controller completes the legality verification of the message, it generates a back switching instruction, which explicitly contains the unique identifier of the fault main power amplifier, the corresponding speaker link identifier, the unique identifier of the backup power amplifier currently taking over the output task, and the timing requirements of the back switching execution (such as the interval length of link switching and parameter loading), and is uniformly issued to all main power amplifiers, backup power amplifiers and audio link switching units through the multicast group, to ensure that related devices synchronously acquire back switching information and make good coordination preparation; wherein, this step supports both automatic and manual back switching modes; automatic back switching adopts gradual switching logic, that is, the repaired main power amplifier starts output in low gain mode first, and realizes smooth superposition with the backup power amplifier output signal, and the audio link switching unit gradually increases the link gain of the repaired main power amplifier and reduces the link gain of the backup power amplifier according to the preset timing, until the complete switching is completed, to avoid audio signal mutation; in manual back switching mode, the switching controller receives the manual back switching instruction issued by the operation and maintenance personnel through the upper computer, and then executes the above back switching process, to meet the artificial intervention demand in special scenarios, and the backup power amplifier in both modes restores the hot standby state after confirming the completion of back switching.

[0086] The application provides a cross-device main-backup power amplifier switching method, wherein a switching controller, multiple main power amplifiers and at least one backup power amplifier are connected to the same multicast group; each main power amplifier reports its own audio parameter to the switching controller, and the backup power amplifier receives and stores the audio parameter to construct an audio parameter comparison table; the multiple main power amplifiers periodically report the running state to the switching controller through the multicast group; the switching controller detects faults based on the running state of each main power amplifier received from the multicast group; when any main power amplifier is detected to be faulty, the switching controller sends a switching instruction to all power amplifiers through the multicast group; the backup power amplifier listens to the multicast group and takes over the output task of the faulty main power amplifier after receiving the switching instruction; the switching controller controls an audio link switching unit to switch the speaker output link corresponding to the faulty main power amplifier to the backup power amplifier. The application relies on the one-to-many transmission characteristics of multicast communication, connects the switching controller, multiple main power amplifiers and backup power amplifiers to the same multicast group, realizes centralized communication of multiple devices, does not need to establish a communication link for each main power amplifier compared with the traditional unicast architecture, greatly reduces redundant message transmission, reduces network bandwidth occupation, avoids message conflict when multiple main power amplifiers report the state in parallel, and improves communication efficiency and stability. Through the design of pre-reporting the audio parameter by the main power amplifier and constructing the parameter comparison table by the backup power amplifier, the temporary parameter acquisition link after the fault occurs is saved, the switching instruction is quickly sent by the multicast group, the backup power amplifier can quickly take over the task of the faulty main power amplifier, the accurate linkage of the audio link switching unit is combined, the audio output is ensured to be uninterrupted, and the strict demand for audio continuity in large venues, public broadcasting and other scenes is met. The scheme is compatible with the deployment scene of multiple backup power amplifiers, the switching controller can intelligently distribute the task of the faulty main power amplifier according to the load capacity of the backup power amplifier, avoids overload of a single backup power amplifier, and improves the system redundancy guarantee capability.

[0087] Embodiment two

[0088] A cross-device main-backup power amplifier switching system provided by the application is described below, as shown in Figure 2 The cross-device main-backup power amplifier switching system described below can be referred to each other corresponding to the cross-device main-backup power amplifier switching method described above.

[0089] A cross-device main-backup power amplifier switching system comprises:

[0090] A switching controller, multiple main power amplifiers and at least one backup power amplifier are connected to the same multicast group;

[0091] The multiple main power amplifiers are configured to report their own audio parameters to the switching controller and periodically report the running state to the switching controller through the multicast group;

[0092] The switching controller is configured to receive the operating status of each main power amplifier and perform fault detection through the multicast group. When any main power amplifier fault is detected, a switching command is sent to all power amplifiers through the multicast group, and the audio link switching unit is controlled to perform link switching.

[0093] The backup power amplifier is configured to monitor the multicast group, receive and store the audio parameters of the main power amplifier to build an audio parameter lookup table, and take over the output task of the faulty main power amplifier after receiving the switching command.

[0094] The audio link switching unit is configured to, under the control of the switching controller, switch the speaker output link corresponding to the faulty main power amplifier to the backup power amplifier.

[0095] Example 3

[0096] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communications interface 320, and the memory 330 communicate with each other via the communication bus 340. The processor 310 can call logical instructions in the memory 330 to execute a cross-device master / slave power amplifier switching method, which includes:

[0097] Switching controllers, multiple main power amplifiers, and at least one backup power amplifier are connected to the same multicast group;

[0098] Each main power amplifier reports its own audio parameters to the switching controller, and the backup power amplifier receives and stores the audio parameters to build an audio parameter lookup table.

[0099] The multiple main power amplifiers periodically report their operating status to the switching controller through the multicast group;

[0100] The switching controller performs fault detection based on the operating status of each main power amplifier received from the multicast group;

[0101] When a fault is detected in any main power amplifier, the switching controller sends a switching command to all power amplifiers through the multicast group;

[0102] The backup power amplifier monitors the multicast group and, upon receiving the switching instruction, takes over the output task of the faulty main power amplifier.

[0103] The switching controller controls the audio link switching unit to switch the speaker output link corresponding to the faulty main power amplifier to the backup power amplifier.

[0104] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0105] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the cross-device master / slave power amplifier switching method provided above.

[0106] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0107] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for switching between primary and backup power amplifiers across devices, characterized in that, include: Switching controllers, multiple main power amplifiers, and at least one backup power amplifier are connected to the same multicast group; Each main power amplifier reports its own audio parameters to the switching controller, and the backup power amplifier receives and stores the audio parameters to build an audio parameter lookup table. The multiple main power amplifiers periodically report their operating status to the switching controller through the multicast group; The switching controller performs fault detection based on the operating status of each main power amplifier received from the multicast group; When a fault is detected in any main power amplifier, the switching controller sends a switching command to all power amplifiers through the multicast group; The backup power amplifier monitors the multicast group and, upon receiving the switching instruction, takes over the output task of the faulty main power amplifier. The switching controller controls the audio link switching unit to switch the speaker output link corresponding to the faulty main power amplifier to the backup power amplifier.

2. The method for switching between primary and backup power amplifiers across devices according to claim 1, characterized in that, The switching controller periodically reports its operating status, specifically including: Each main power amplifier reports its operating status message through the multicast group within its respective time slot, according to the different reporting time slots allocated by the switching controller.

3. The method for switching between primary and backup power amplifiers across devices according to claim 1, characterized in that, After the switching controller sends a switching command to all power amplifiers through the multicast group, it also includes: The switching controller initiates a timeout verification mechanism. If it does not receive the instruction confirmation message returned by the backup power amplifier through the multicast group within a preset time period, it automatically retransmits the switching instruction.

4. The method for switching between primary and backup power amplifiers across devices according to claim 1, characterized in that, The switching command carries the unique identification information of the faulty main power amplifier, which is used by the backup power amplifier to identify the faulty main power amplifier to be taken over.

5. The method for switching between primary and backup power amplifiers across devices according to claim 1, characterized in that, The switching controller performs fault detection based on the operating status of each main power amplifier received from the multicast group, specifically including: The switching controller parses the operating parameters in the received operating status message. If the operating parameters exceed a preset threshold, it determines that the corresponding main power amplifier is faulty; and / or, If the switching controller does not receive the operating status message of a specific main power amplifier through the multicast group within a preset number of consecutive reporting cycles, the main power amplifier is determined to be faulty.

6. The method for switching between primary and backup power amplifiers across devices according to claim 1, characterized in that, Taking over the output task of the faulty main power amplifier specifically includes: The backup amplifier retrieves audio parameters associated with the unique identifier of the faulty main amplifier from a pre-stored audio parameter lookup table. Based on the invoked audio parameters, audio output is initiated, thus taking over the audio output task of the faulty main power amplifier.

7. The method for switching between primary and backup power amplifiers across devices according to claim 1, characterized in that, The method also includes fault recovery and switchback steps: Once the faulty main power amplifier is repaired, a recovery ready message is sent to the switching controller via the multicast group. After receiving the recovery ready message, the switching controller issues a switchback command through the multicast group; In response to the switchback command, the operation of switching the speaker output link from the backup amplifier back to the repaired main amplifier is performed, and the repaired main amplifier takes over its original output task again.

8. A cross-device master / standby power amplifier switching system, characterized in that, include: Switching controllers, multiple main power amplifiers, and at least one backup power amplifier are connected to the same multicast group; The multiple main power amplifiers are configured to report their own audio parameters to the switching controller and periodically report their operating status to the switching controller through the multicast group. The switching controller is configured to receive the operating status of each main power amplifier and perform fault detection through the multicast group. When any main power amplifier fault is detected, a switching command is sent to all power amplifiers through the multicast group, and the audio link switching unit is controlled to perform link switching. The backup power amplifier is configured to monitor the multicast group, receive and store the audio parameters of the main power amplifier to build an audio parameter lookup table, and take over the output task of the faulty main power amplifier after receiving the switching command. The audio link switching unit is configured to, under the control of the switching controller, switch the speaker output link corresponding to the faulty main power amplifier to the backup power amplifier.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the cross-device primary / backup power amplifier switching method as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the cross-device primary / backup power amplifier switching method as described in any one of claims 1 to 7.