Disclosure of Invention
The invention provides a method, a device and a storage medium for switching main and standby of a public broadcasting power amplifier, which are used for realizing main and standby switching according to the priority of a main power amplifier module under the condition that the main control of a singlechip is set or a power supply is damaged, so that a broadcasting loudspeaker of the main power amplifier module with the highest priority is connected into the standby power amplifier, and the main and standby switching efficiency of the power amplifier is improved.
The invention provides a main and standby switching method of a public broadcasting power amplifier, which is applied to a control module of the main and standby switching device of the public broadcasting power amplifier, wherein the main and standby switching device of the public broadcasting power amplifier comprises a plurality of main power amplifier modules and a standby power amplifier module, wherein the standby power amplifier module is connected into a first main power amplifier module with the highest priority, and the first main power amplifier module is sequentially connected with the rest main power amplifier modules according to the sequence from high priority to low priority;
The method comprises the following steps:
When any one of the main power amplifier modules fails, the connection between the main power amplifier module and the main power amplifier module with lower priority is cut off, and the broadcast horn of the main power amplifier module is connected to the standby power amplifier module through the main power amplifier module with higher priority.
Further, the standby power amplifier module is connected to a first main power amplifier module with the highest priority, and the first main power amplifier module and the rest main power amplifier modules are sequentially connected according to the order of the priority from high to low, specifically:
The standby power amplifier module is connected with the backup input interface of the first main power amplifier module, the backup output interface of the first main power amplifier module is connected with the backup input interface of the next main power amplifier module, and the standby power amplifier module is sequentially connected with the backup input interface of each main power amplifier module and the backup output interface through the backup input interfaces of the main power amplifier modules according to the order of priority from high to low.
Further, before any one of the main power amplifier modules fails, the method specifically comprises the following steps:
The backup input interface and the backup output interface of each main power amplifier module are connected through a first relay which is connected, and the broadcast horn of each main power amplifier module is connected into the output port of each main power amplifier module through a second relay which is connected.
Further, when any one of the main power amplifier modules fails, the connection between the main power amplifier module and the main power amplifier module with lower priority is cut off, and the broadcast horn of the main power amplifier module is connected to the standby power amplifier module through the main power amplifier module with higher priority, which specifically comprises:
when one or more main power amplification modules fail and the power supply of each main power amplification module and the single chip microcomputer main control fail, the main power amplification module with the highest priority in the failed main power amplification module is used as a second main power amplification module, and a first relay and a second relay of the controlled second main power amplification module are closed, so that the connection between a backup input interface and a backup output interface of the second main power amplification module is disconnected, and a broadcast loudspeaker of the second main power amplification module is connected to the backup input interface through the closed first relay and second relay.
Further, the first relay and the second relay of the main power amplifier module are controlled to be closed, specifically:
And the first relay and the second relay of the second main power amplifier module are closed in a mode of sending a trigger signal or data communication through the singlechip main control.
Further, when any one of the main power amplifier modules fails, the connection between the main power amplifier module and the main power amplifier module with lower priority is cut off, and the broadcast horn of the main power amplifier module is connected to the standby power amplifier module through the main power amplifier module with higher priority, which specifically comprises:
When the third main power amplifier module fails and the power supply of the third main power amplifier module is damaged, the third main power amplifier module is any one main power amplifier module, and the first relay and the second relay of the third main power amplifier module are in a normally closed state due to power failure, so that the connection between the backup input interface and the backup output interface of the second main power amplifier module is disconnected, and a broadcast loudspeaker of the second main power amplifier module is connected to the backup input interface through the closed first relay and second relay.
As a preferred scheme, the invention does not need to be provided with an external main and standby switcher, and utilizes a standby power amplifier and the equipment types of a plurality of main power amplifiers to sequentially connect the power amplifiers together according to the order of priority. When the main power amplifier fails, the connection of the main power amplifier module with low priority is cut off through the singlechip main control, the disconnected main power amplifier and the main power amplifiers with low priority lose the qualification of main-standby switching, and all the main power amplifiers with high priority input by the failed power amplifier still have the qualification of main-standby switching so as to ensure that the main power amplifier with high priority can perform main-standby switching before the main power amplifier with low priority. In addition, under the condition that the power supply is damaged, the singlechip master control cannot work, so that when the singlechip master control controls the first relay and the second relay to be in a power-off and normally-closed state, the connection between the backup input interface and the backup output interface can be automatically disconnected, and the broadcasting horn of the power-off main power amplifier is automatically connected to the backup input interface of the main power amplifier module. According to the invention, through the relay state and the connection mode of the plurality of main power amplifiers, the main power amplifier with high priority can be ensured to perform main-standby switching before the main power amplifier with low priority under the condition of a plurality of power-off main power amplifiers, and the main-standby switching efficiency of the power amplifier is improved.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Correspondingly, the invention also provides a main and standby switching device of the public broadcasting power amplifier, which comprises a control module, a plurality of main power amplifier modules and a standby power amplifier module, wherein the standby power amplifier module is connected into a first main power amplifier module with the highest priority, and the first main power amplifier module and the rest main power amplifier modules are sequentially connected in sequence from high priority to low priority;
And the control module is used for cutting off the connection between the main power amplification module and the main power amplification module with lower priority than the main power amplification module when any main power amplification module fails, and connecting the broadcast horn of the main power amplification module to the standby power amplification module through the main power amplification module with higher priority than the main power amplification module.
Further, the control module includes a control unit;
When one or more main power amplification modules fail and the power supply of each main power amplification module and the master control of the singlechip fail, the control unit is used for taking the main power amplification module with the highest priority in the failed main power amplification module as a second main power amplification module, closing a first relay and a second relay of the controlled second main power amplification module, disconnecting the connection between a backup input interface and a backup output interface of the second main power amplification module, and connecting a broadcast loudspeaker of the second main power amplification module to the backup input interface through the closed first relay and second relay;
The first relay and the second relay of the second main power amplifier module are closed in a mode of sending a trigger signal or data communication through the singlechip main control.
The standby power amplifier module is connected to the backup input interface of the first main power amplifier module, the backup output interface of the first main power amplifier module is connected with the backup input interface of the next main power amplifier module, and the standby power amplifier module is sequentially connected with the backup input interface of each main power amplifier module and the backup output interface through the backup input interfaces of the main power amplifier modules according to the order of priority from high to low.
Correspondingly, the invention further provides a computer readable storage medium, which comprises a stored computer program, wherein the computer program controls equipment where the computer readable storage medium is located to execute the public broadcasting power amplifier active/standby switching method according to the content of the invention when in operation.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, a method for switching between main and standby power amplifiers of a public broadcasting power amplifier is provided in an embodiment of the present invention, and is applied to a control module of a switching device for switching between main and standby power amplifiers of a public broadcasting power amplifier, where the switching device for switching between main and standby power amplifiers of a public broadcasting power amplifier includes a plurality of main power amplifier modules and a standby power amplifier module, where the standby power amplifier module is connected to a first main power amplifier module with a highest priority, and the first main power amplifier module and the rest main power amplifier modules are sequentially connected in order of from high priority to low priority;
The method comprises the step S101:
When any one of the main power amplifier modules fails, the connection between the main power amplifier module and the main power amplifier module with lower priority is cut off, and the broadcast horn of the main power amplifier module is connected to the standby power amplifier module through the main power amplifier module with higher priority.
Further, the standby power amplifier module is connected to a first main power amplifier module with the highest priority, and the first main power amplifier module and the rest main power amplifier modules are sequentially connected according to the order of the priority from high to low, specifically:
The standby power amplifier module is connected with the backup input interface of the first main power amplifier module, the backup output interface of the first main power amplifier module is connected with the backup input interface of the next main power amplifier module, and the standby power amplifier module is sequentially connected with the backup input interface of each main power amplifier module and the backup output interface through the backup input interfaces of the main power amplifier modules according to the order of priority from high to low.
Further, before any one of the main power amplifier modules fails, the method specifically comprises the following steps:
The backup input interface and the backup output interface of each main power amplifier module are connected through a first relay which is connected, and the broadcast horn of each main power amplifier module is connected into the output port of each main power amplifier module through a second relay which is connected.
In this embodiment, when each main power amplifier module works normally, the backup output interface of the last main power amplifier module is connected with the backup input interface of the next main power amplifier module, so as to connect all the main power amplifier modules together, the backup power amplifier module is connected to the backup input interface of the first main power amplifier module, and the backup output interface of the last main power amplifier module is disconnected. Therefore, when each main power amplifier module works normally, the standby power amplifier module is not connected into any main power amplifier module, and all the main power amplifier modules have the qualification of main/standby switching.
Further, when any one of the main power amplifier modules fails, the connection between the main power amplifier module and the main power amplifier module with lower priority is cut off, and the broadcast horn of the main power amplifier module is connected to the standby power amplifier module through the main power amplifier module with higher priority, which specifically comprises:
when one or more main power amplification modules fail and the power supply of each main power amplification module and the single chip microcomputer main control fail, the main power amplification module with the highest priority in the failed main power amplification module is used as a second main power amplification module, and a first relay and a second relay of the controlled second main power amplification module are closed, so that the connection between a backup input interface and a backup output interface of the second main power amplification module is disconnected, and a broadcast loudspeaker of the second main power amplification module is connected to the backup input interface through the closed first relay and second relay.
Further, the first relay and the second relay of the main power amplifier module are controlled to be closed, specifically:
And the first relay and the second relay of the second main power amplifier module are closed in a mode of sending a trigger signal or data communication through the singlechip main control.
Further, when any one of the main power amplifier modules fails, the connection between the main power amplifier module and the main power amplifier module with lower priority is cut off, and the broadcast horn of the main power amplifier module is connected to the standby power amplifier module through the main power amplifier module with higher priority, which specifically comprises:
When the third main power amplifier module fails and the power supply of the third main power amplifier module is damaged, the third main power amplifier module is any one main power amplifier module, and the first relay and the second relay of the third main power amplifier module are in a normally closed state due to power failure, so that the connection between the backup input interface and the backup output interface of the second main power amplifier module is disconnected, and a broadcast loudspeaker of the second main power amplifier module is connected to the backup input interface through the closed first relay and second relay.
In this embodiment, the failure of the main power amplifier module is divided into two cases, one is that the power supply of the main power amplifier module and the main control of the singlechip are not failed, and the other is that the power supply is damaged.
When the power supply of the main power amplification module and the singlechip master control are not failed, in one embodiment, the first relay and the second relay of the main power amplification module with the highest priority are controlled by the singlechip master control to be closed, so that the broadcast loudspeaker of the main power amplification module with the highest priority is connected to the standby power amplification module through the main power amplification module with the higher priority.
In another embodiment, the first relay and the second relay of each main power amplifier module with faults can be controlled by the singlechip main control, but only the broadcast loudspeaker of the main power amplifier module with the highest priority is connected to the standby power amplifier module through the main power amplifier module with higher priority because the connection between the standby input interface and the standby output interface of the main power amplifier module is disconnected due to the closing of the first relay.
When the power supply of the main power amplifier module is damaged, the singlechip main control cannot work, so that the connection between the backup input interface and the backup output interface can be automatically disconnected when the singlechip main control controls the first relay and the second relay to be in a power-off normally-closed state, and the broadcasting horn of the power-off main power amplifier is automatically connected to the backup input interface of the main power amplifier module.
For better explaining the present embodiment, please refer to fig. 2, which is a schematic structural diagram of a specific switching device for main and standby public address amplifiers, wherein a control module is not shown in the figure. The device comprises four main power amplifiers (main power amplifiers 1-4) and one standby power amplifier, wherein the priorities of the main power amplifiers 1-4 are sequentially from high to low, the standby power amplifier is connected into the main power amplifier 1 with the highest priority, and the main power amplifier 1 is sequentially connected with the main power amplifier 2, the main power amplifier 3 and the main power amplifier 4. Under the normal working condition, the backup input interface and the backup output interface of each main power amplifier module are connected through the first relay which is connected, and the broadcast horn of each main power amplifier module is connected into the output port of each main power amplifier module through the second relay which is connected. The first relay is a main-standby switching adjacent priority relay, and the second relay is a main-standby switching relay. The first relay in the main power amplifier 1 is the main-standby switching adjacent priority relay S1-1, the first relay in the main power amplifier 2 is the main-standby switching adjacent priority relay S1-2, and the like.
The situation shown in the figure is that the first relay and the second relay of all main power amplifiers are in a closed state, the second relay is closed to enable the broadcast loudspeaker to be disconnected with the output end of the corresponding power amplifier module, and the broadcast loudspeaker is connected to the backup input interface of the corresponding power amplifier module through the closed first relay, and the output end of the power amplifier module comprises power amplifier module output P and power amplifier module output N. Under the condition that all the first relays S1-1 and the second relays S1-2 of the main power amplifier are in a closed state, only the broadcast horn of the main power amplifier 1 with the highest priority is connected into the standby power amplifier through the closed first relay and second relay.
The implementation of the embodiment of the invention has the following effects:
According to the invention, an external main and standby switcher is not required to be configured, and each power amplifier is sequentially connected together according to the priority order by utilizing one standby power amplifier and the equipment types of a plurality of main power amplifiers. When the main power amplifier fails, the connection of the main power amplifier module with low priority is cut off through the singlechip main control, the disconnected main power amplifier and the main power amplifiers with low priority lose the qualification of main-standby switching, and all the main power amplifiers with high priority input by the failed power amplifier still have the qualification of main-standby switching so as to ensure that the main power amplifier with high priority can perform main-standby switching before the main power amplifier with low priority. In addition, under the condition that the power supply is damaged, the singlechip master control cannot work, so that when the singlechip master control controls the first relay and the second relay to be in a power-off and normally-closed state, the connection between the backup input interface and the backup output interface can be automatically disconnected, and the broadcasting horn of the power-off main power amplifier is automatically connected to the backup input interface of the main power amplifier module. According to the invention, through the relay state and the connection mode of the plurality of main power amplifiers, the main power amplifier with high priority can be ensured to perform main-standby switching before the main power amplifier with low priority under the condition of a plurality of power-off main power amplifiers, and the main-standby switching efficiency of the power amplifier is improved.
Example two
Referring to fig. 3, a main/standby switching device for a public broadcasting power amplifier provided by the embodiment of the invention comprises a control module, a plurality of main power amplifier modules (main power amplifier module 1-main power amplifier module N) and a standby power amplifier module, wherein the standby power amplifier module is connected into a first main power amplifier module with highest priority, and the first main power amplifier module and the rest main power amplifier modules are sequentially connected in order from high priority to low priority;
And the control module is used for cutting off the connection between the main power amplification module and the main power amplification module with lower priority than the main power amplification module when any main power amplification module fails, and connecting the broadcast horn of the main power amplification module to the standby power amplification module through the main power amplification module with higher priority than the main power amplification module.
Further, the control module includes a control unit;
When one or more main power amplification modules fail and the power supply of each main power amplification module and the master control of the singlechip fail, the control unit is used for taking the main power amplification module with the highest priority in the failed main power amplification module as a second main power amplification module, closing a first relay and a second relay of the controlled second main power amplification module, disconnecting the connection between a backup input interface and a backup output interface of the second main power amplification module, and connecting a broadcast loudspeaker of the second main power amplification module to the backup input interface through the closed first relay and second relay;
The first relay and the second relay of the second main power amplifier module are closed in a mode of sending a trigger signal or data communication through the singlechip main control.
The standby power amplifier module is connected to the backup input interface of the first main power amplifier module, the backup output interface of the first main power amplifier module is connected with the backup input interface of the next main power amplifier module, and the standby power amplifier module is sequentially connected with the backup input interface of each main power amplifier module and the backup output interface through the backup input interfaces of the main power amplifier modules according to the order of priority from high to low.
The public broadcasting power amplifier main and standby switching device can implement the public broadcasting power amplifier main and standby switching method of the method embodiment. The options in the method embodiments described above are also applicable to this embodiment and will not be described in detail here. The rest of the embodiments of the present application may refer to the content of the above method embodiments, and in this embodiment, no further description is given.
Example III
Correspondingly, the invention further provides a computer readable storage medium, which comprises a stored computer program, wherein when the computer program runs, equipment where the computer readable storage medium is located is controlled to execute the public broadcasting power amplifier active/standby switching method according to any one of the embodiments.
The computer program may be divided into one or more modules/units, which are stored in the memory and executed by the processor to accomplish the present invention, for example. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program in the terminal device.
The terminal equipment can be computing equipment such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The terminal device may include, but is not limited to, a processor, a memory.
The Processor may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the terminal device, and which connects various parts of the entire terminal device using various interfaces and lines.
The memory may be used to store the computer program and/or the module, and the processor may implement various functions of the terminal device by running or executing the computer program and/or the module stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area which may store an operating system, an application program required for at least one function, etc., and a storage data area which may store data created according to the use of the mobile terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart memory card (SMART MEDIA CARD, SMC), secure Digital (SD) card, flash memory card (FLASH CARD), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the terminal device integrated modules/units may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as stand alone products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.