A power failure alarm method and device, a switch and a storage medium
By acquiring voltage in real time at the power input port of the switch and generating alarm signals, the problem of the switch failing to alarm when it is completely powered off is solved, thus improving maintenance efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- KYLAND TECH CO LTD
- Filing Date
- 2022-12-12
- Publication Date
- 2026-05-01
AI Technical Summary
The existing switch fails to trigger alarm signals when all power is disconnected, preventing maintenance personnel from performing timely repairs.
By acquiring the input voltage of each power source in real time from multiple power input ports of the switch, the target power source that has lost power is determined based on the input voltage and the standard voltage, and a corresponding alarm signal is generated.
It enables the issuance of a power failure alarm before the switch completely crashes, thus improving maintenance efficiency.
Smart Images

Figure CN116016394B_ABST
Abstract
Description
A power failure alarm method, device, switch, and storage medium Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a power failure alarm method, device, switch and storage medium. Background Technology
[0002] A switch is a device that performs information exchange in a communication system. When an existing switch loses power (i.e., the power supply is disconnected), it needs to issue a corresponding alarm signal so that testers can perform maintenance on the switch.
[0003] Currently, when a switch issues a power failure alarm, it typically monitors the power supply status of multiple power sources in real time. If one power source is detected to be disconnected, a single alarm signal corresponding to that power source is triggered.
[0004] However, when all power to the switch is disconnected, the switch is in a downtime state and therefore cannot trigger the corresponding alarm signals, preventing maintenance personnel from repairing the switch in a timely manner. Summary of the Invention
[0005] This invention provides a power failure alarm method, device, switch, and storage medium, which can improve the maintenance efficiency of the switch in the event of a power failure.
[0006] In a first aspect, embodiments of the present invention provide a power failure alarm method applied to a switch, the method comprising:
[0007] In real time, the input voltage of each power supply is collected from the multiple power input ports of the switch.
[0008] The target power failure source corresponding to the switch is determined based on the input voltage and standard voltage of each power source.
[0009] An alarm signal corresponding to the target power source is generated based on the identification information corresponding to the target power source.
[0010] Secondly, embodiments of the present invention also provide a power failure alarm device applied to a switch, the device comprising:
[0011] The voltage acquisition module is used to acquire the input voltage of each power supply in real time from the multiple power input ports of the switch.
[0012] The power supply determination module is used to determine the target power supply that is out of power for the switch based on the input voltage and standard voltage corresponding to each power supply.
[0013] The signal generation module is used to generate an alarm signal corresponding to the target power failure power source based on the identification information corresponding to the target power failure power source.
[0014] Thirdly, embodiments of the present invention also provide a switch, the switch comprising:
[0015] One or more processors;
[0016] Storage device for storing one or more programs;
[0017] When the one or more programs are executed by the one or more processors, the one or more processors execute the power failure alarm method provided in any embodiment of the present invention.
[0018] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the power failure alarm method provided in any embodiment of the present invention.
[0019] The technical solution of this invention improves the maintenance efficiency of the switch in the event of a power outage by real-time acquisition of the input voltage of each power source at multiple power input ports of the switch, determining the target power source of the switch based on the input voltage of each power source and the standard voltage, and generating an alarm signal corresponding to the target power source based on the identification information of the target power source.
[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 is a flowchart of a power failure alarm method provided according to an embodiment of the present invention;
[0023] Figure 2 is a flowchart of another power failure alarm method provided according to an embodiment of the present invention;
[0024] Figure 3 is a flowchart of another power failure alarm method provided according to an embodiment of the present invention;
[0025] Figure 4 is a structural schematic diagram of a power failure alarm device provided according to an embodiment of the present invention;
[0026] Figure 5 is a schematic diagram of the structure of a switch that implements the power failure alarm method of this invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] Figure 1 is a flowchart of a power failure alarm method provided in Embodiment 1 of the present invention. This embodiment is applicable to alarming the power failure of a switch. The method can be executed by a power failure alarm device, which can be implemented in hardware and / or software and can be configured in the switch. As shown in Figure 1, the method includes:
[0030] Step 110: Collect the input voltage of each power supply in real time from the multiple power input ports of the switch.
[0031] In this embodiment, the power input port can be a port in the switch connected to a power source, used to input electrical energy provided by the power source into the switch. The switch can be pre-configured with multiple power input ports, each corresponding to a specific power source.
[0032] Optionally, in this step, a preset voltage acquisition device (such as a voltage meter) can be used to collect the input voltage corresponding to each power supply in real time at multiple power input ports. The input voltage can be the actual voltage provided by the power supply to the switch.
[0033] Step 120: Determine the target power supply for the switch based on the input voltage and standard voltage corresponding to each power supply.
[0034] In this embodiment, the standard voltage can be a preset normal voltage corresponding to the power supply. Optionally, the input voltage corresponding to each power supply can be compared with the matched standard voltage, and the power supply that may lose power (i.e., the target power supply that is about to lose power) can be determined from among the multiple power supplies based on the comparison results.
[0035] In one specific embodiment, if the input voltage corresponding to a certain power source is detected to be less than the matching standard voltage, then that power source can be used as the target power-off power source.
[0036] Step 130: Generate an alarm signal corresponding to the target power failure source based on the identification information corresponding to the target power failure source.
[0037] Optionally, in this step, the identification information may include the name of the target power source that has lost power, or an identity document (ID), etc.
[0038] In one specific embodiment, the switch can be pre-configured with a buzzer or indicator light corresponding to each power source. After the target power source is determined, the switch can determine the target buzzer or indicator light that matches the target power source based on the identification information of the target power source, and control the target buzzer or indicator light to turn on in order to trigger the alarm signal corresponding to the target power source.
[0039] In this embodiment, by collecting the input voltage corresponding to each power source and determining the target power source of the switch based on the input voltage corresponding to each power source and the standard voltage, a power failure alarm signal can be issued before the switch completely crashes. This avoids the problem that maintenance personnel cannot repair the switch in a timely manner in the prior art, thereby improving the maintenance efficiency of the switch in the power failure state.
[0040] The technical solution provided by this invention improves the maintenance efficiency of the switch in the event of a power outage by real-time acquisition of the input voltage of each power source at multiple power input ports of the switch, determining the target power source of the switch based on the input voltage of each power source and the standard voltage, and generating an alarm signal corresponding to the target power source based on the identification information of the target power source.
[0041] Based on the above embodiments, after collecting the input voltage corresponding to each power supply, if the input voltage corresponding to each power supply is detected to be greater than or equal to the matching standard voltage, it can be determined that there is no target power failure power supply among all the power supplies corresponding to the switch, that is, the switch does not need to trigger the corresponding alarm signal.
[0042] Figure 2 is a flowchart of another power failure alarm method provided in this embodiment. In this embodiment, the technical solution can be combined with one or more methods in the above embodiments. In each power input port corresponding to the switch, an optocoupler and a sampling resistor corresponding to each power supply are deployed, as shown in Figure 2. The method provided in this embodiment may also include:
[0043] Step 210: In the multiple power input ports corresponding to the switch, the input voltage of each power supply is collected in real time through the optocoupler corresponding to each power supply.
[0044] In this embodiment, an optocoupler is a photoelectric conversion device that transmits electrical signals using light as a medium. By acquiring the input voltage corresponding to each power source through the optocoupler, the power consumption of other voltage acquisition devices can be avoided, which could lead to deviations in the input voltage acquisition results. This ensures the accuracy of the input voltage acquisition results and improves the reliability of the target power source determination.
[0045] Step 220: Obtain the standard voltage corresponding to each power supply by using the sampling resistors corresponding to each power supply.
[0046] In this step, the voltage across each sampling resistor can be used as the standard voltage of the corresponding power supply. Specifically, before acquiring the input voltage corresponding to each power supply, the resistance value of each sampling resistor can be preset. A higher resistance value indicates a higher standard voltage for the power supply corresponding to that sampling resistor.
[0047] The advantage of this setup is that, since the sampling resistor is adjustable, the standard voltage of the corresponding power supply can be obtained through the sampling resistor, allowing for flexible configuration of the standard voltage of each power supply. This ensures the accuracy of the subsequent determination of the target power failure source and improves the reliability of the alarm signal.
[0048] Step 230: Compare the input voltage of each power supply with the standard voltage, and take the power supply with the input voltage less than the corresponding standard voltage as the target power supply for the switch.
[0049] Step 240: Determine the target optocoupler based on the identification information corresponding to the target power failure source, and generate an alarm signal corresponding to the target power failure source through the target optocoupler.
[0050] In this embodiment, optionally, a preset optical signal can be emitted through the target optocoupler, and the optical signal can be used as an alarm signal corresponding to the target power failure.
[0051] The advantage of this setup is that it reduces the cost of generating alarm signals on the one hand, and improves the efficiency of alarm signal generation on the other, making it easier for maintenance personnel to perform timely maintenance on the switch.
[0052] The technical solution provided by this invention improves the maintenance efficiency of the switch in a power-loss state by using optocouplers corresponding to each power supply in real time at multiple power input ports of the switch, obtaining the standard voltage corresponding to each power supply through sampling resistors corresponding to each power supply, comparing the input voltage of each power supply with the standard voltage, and identifying the power supply with an input voltage lower than the corresponding standard voltage as the target power supply that is out of power for the switch, determining the target optocoupler based on the identification information of the target power supply, and generating an alarm signal corresponding to the target power supply through the target optocoupler.
[0053] Figure 3 is a flowchart of another power failure alarm method provided in this embodiment. In this embodiment, the technical solution can be combined with one or more methods in the above embodiments. As shown in Figure 3, the method provided in this embodiment may further include:
[0054] Step 310: In the multiple power input ports corresponding to the switch, the input voltage of each power supply is collected in real time through the optocoupler corresponding to each power supply.
[0055] Step 320: Obtain the standard voltage corresponding to each power supply by using the sampling resistors corresponding to each power supply.
[0056] Step 330: Compare the input voltage of each power supply with the standard voltage, and take the power supply with the input voltage less than the corresponding standard voltage as the target power supply for the switch.
[0057] Step 340: Determine the target optocoupler based on the identification information corresponding to the target power failure source, and generate an alarm signal corresponding to the target power failure source through the target optocoupler.
[0058] Step 350: Transmit the alarm signal corresponding to the target power failure to the logic control chip through the target optocoupler.
[0059] In this step, optionally, the logic control chip can be a Complex Programmable Logic Device (CPLD).
[0060] In one specific embodiment, the target optocoupler can convert the alarm signal into an electrical signal and transmit the electrical signal to the logic control chip.
[0061] Step 360: The alarm signal is sent to the central processing unit (CPU) in the switch via the logic control chip.
[0062] Step 370: The central processing unit generates a fault message based on the alarm signal, so that maintenance personnel can perform maintenance on the switch based on the fault message.
[0063] In this embodiment, optionally, after the CPU obtains the alarm signal, it can determine the target power source that matches the alarm signal, and generate a fault message based on the identification information of the target power source and the identification information of the switch.
[0064] The advantage of this setup is that, since the fault message includes the identification information of the switch and the identification information of the target power source that has lost power, maintenance personnel can quickly locate the switch that has lost power and the power source that needs to be repaired in the switch, thereby improving the maintenance efficiency of the switch in the power-off state.
[0065] In one embodiment of this example, generating a fault message based on the alarm signal via the central processing unit includes: triggering an interrupt signal based on the alarm signal via the central processing unit, and generating a fault message based on the alarm signal within a preset time period.
[0066] In this embodiment, after the CPU receives an alarm signal, it can trigger a preset interrupt signal to prompt other processing threads to pause, and generate a fault message within a preset time after the interrupt signal is triggered.
[0067] The advantage of this setting is that by triggering an interrupt signal through the CPU, the fault message generation process can be prevented from taking a long time when other processing threads occupy the CPU. This improves the efficiency of fault message generation and makes it easier for maintenance personnel to repair the switch in a timely manner.
[0068] In one specific embodiment, the preset duration can be 3ms, and the specific value can be adjusted according to the actual situation. This embodiment does not limit this.
[0069] The technical solution provided by this invention improves the maintenance efficiency of a switch in a power-loss state by using optocouplers corresponding to each power supply in real time at multiple power input ports of the switch, obtaining the standard voltage corresponding to each power supply through sampling resistors, comparing the input voltage of each power supply with the standard voltage, and identifying the power supply with an input voltage lower than the corresponding standard voltage as the target power failure power supply of the switch. Based on the identification information of the target power failure power supply, a target optocoupler is determined, and an alarm signal corresponding to the target power failure power supply is generated through the target optocoupler. This alarm signal is then transmitted to a logic control chip, which in turn sends the alarm signal to the central processing unit (CPU) in the switch. The CPU generates a fault message based on the alarm signal, enabling maintenance personnel to repair the switch according to the fault message.
[0070] Figure 4 is a schematic diagram of a power failure alarm device provided in an embodiment of the present invention. The power failure alarm device is applied to a switch and includes: a voltage acquisition module 410, a power supply determination module 420, and a signal generation module 430.
[0071] Among them, the voltage acquisition module 410 is used to acquire the input voltage of each power supply in real time from the multiple power input ports corresponding to the switch.
[0072] The power supply determination module 420 is used to determine the target power supply that is out of power for the switch based on the input voltage and standard voltage corresponding to each power supply.
[0073] The signal generation module 430 is used to generate an alarm signal corresponding to the target power failure power source based on the identification information corresponding to the target power failure power source.
[0074] The technical solution provided by this invention improves the maintenance efficiency of the switch in the event of a power outage by real-time acquisition of the input voltage of each power source at multiple power input ports of the switch, determining the target power source of the switch based on the input voltage of each power source and the standard voltage, and generating an alarm signal corresponding to the target power source based on the identification information of the target power source.
[0075] Based on the above embodiments, each power input port is equipped with an optocoupler corresponding to each power supply; and each power input port is equipped with a sampling resistor corresponding to each power supply.
[0076] Voltage acquisition module 410 includes:
[0077] The optocoupler acquisition unit is used to acquire the input voltage of each power supply in real time through the optocoupler corresponding to each power supply.
[0078] The power determination module 420 includes:
[0079] The standard voltage acquisition unit is used to acquire the standard voltage corresponding to each power supply through the sampling resistor corresponding to each power supply.
[0080] The voltage comparison unit is used to compare the input voltage of each power supply with the standard voltage, and to identify the power supply with an input voltage lower than the corresponding standard voltage as the target power supply to be de-energized for the switch.
[0081] The signal generation module 430 includes:
[0082] The optocoupler determination unit is used to determine the target optocoupler based on the identification information corresponding to the target power failure power source, and generate an alarm signal corresponding to the target power failure power source through the target optocoupler.
[0083] The power failure alarm device also includes:
[0084] The signal transmission module is used to transmit the alarm signal corresponding to the target power failure to the logic control chip through the target optocoupler;
[0085] The signal transmission module is used to send the alarm signal to the central processing unit in the switch through the logic control chip;
[0086] The message generation module is used to generate fault messages based on the alarm signals through the central processing unit, so that maintenance personnel can perform maintenance on the switch based on the fault messages.
[0087] The message generation module includes:
[0088] An interrupt triggering unit is used to trigger an interrupt signal based on the alarm signal through the central processing unit, and to generate a fault message based on the alarm signal within a preset time period.
[0089] The above-described apparatus can execute the methods provided in all the foregoing embodiments of the present invention, and has the corresponding functional modules and beneficial effects for executing the above methods. Technical details not described in detail in the embodiments of the present invention can be found in the methods provided in all the foregoing embodiments of the present invention.
[0090] Figure 5 shows a schematic diagram of a switch 10 that can be used to implement an embodiment of the present invention. As shown in Figure 5, the switch 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. The RAM 13 can also store various programs and data required for the operation of the switch 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0091] Multiple components in switch 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of monitors, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows switch 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0092] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as power failure alarm methods.
[0093] In some embodiments, the power failure alarm method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the switch 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the power failure alarm method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the power failure alarm method by any other suitable means (e.g., by means of firmware).
[0094] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0095] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0096] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0097] To provide user interaction, the systems and techniques described herein can be implemented on a switch having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the switch. Other types of devices can also be used to provide user interaction; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0098] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0099] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0100] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0101] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A power failure alarm method, characterized in that, The method, applied to a switch, includes: acquiring the input voltage of each power supply in real time through an optocoupler corresponding to each power supply in multiple power input ports of the switch; wherein each power input port of the switch is equipped with an optocoupler and a sampling resistor corresponding to each power supply; obtaining the standard voltage corresponding to each power supply through the sampling resistor; comparing the input voltage of each power supply with the standard voltage, and identifying the power supply with an input voltage lower than the corresponding standard voltage as the target power supply that has lost power in the switch; determining the target optocoupler based on the identification information of the target power supply, and generating an alarm signal corresponding to the target power supply through the target optocoupler; converting the alarm signal corresponding to the target power supply into an electrical signal through the target optocoupler, and transmitting the electrical signal to a logic control chip; sending the alarm signal to the central processing unit (CPU) in the switch through the logic control chip; determining the target power supply that matches the alarm signal through the CPU, and generating a fault message based on the identification information of the target power supply and the identification information of the switch, so that maintenance personnel can perform maintenance on the switch based on the fault message.
2. The method according to claim 1, characterized in that, The method further includes: triggering an interrupt signal based on the alarm signal through the central processing unit, and generating a fault message based on the alarm signal within a preset time period.
3. A power failure alarm device, characterized in that, The device, applied to a switch, includes: a voltage acquisition module for real-time acquisition of the input voltage of each power supply at multiple power input ports of the switch via optocouplers corresponding to each power supply; wherein each power input port of the switch is equipped with an optocoupler corresponding to each power supply and a sampling resistor; a power supply determination module, including: a standard voltage acquisition unit for acquiring the standard voltage corresponding to each power supply via the sampling resistors corresponding to each power supply; a voltage comparison unit for comparing the input voltage of each power supply with the standard voltage and identifying the power supply with an input voltage lower than the corresponding standard voltage as the target power supply to be de-energized for the switch; and a signal generation module for generating a signal based on the target power supply. The system uses the identification information corresponding to the source to determine the target optocoupler, and generates an alarm signal corresponding to the target power failure source through the target optocoupler; a signal transmission module converts the alarm signal corresponding to the target power failure source into an electrical signal through the target optocoupler, and transmits the electrical signal to the logic control chip; a signal sending module sends the alarm signal to the central processing unit in the switch through the logic control chip; and a message generation module determines the target power failure source matching the alarm signal through the central processing unit, and generates a fault message based on the identification information of the target power failure source and the identification information of the switch, so that maintenance personnel can perform maintenance on the switch based on the fault message.
4. A switch, the switch comprising: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors execute the programs to implement the power failure alarm method as described in any one of claims 1-2.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the power failure alarm method as described in any one of claims 1-2.
Citation Information
Patent Citations
Industrial Ethernet switch and fault submission method thereof
CN108616464A
Power failure alarm device and system
CN211860148U