A network switching circuit for industrial information security
By introducing energy storage power supply module and relay switching circuit into the network switching circuit, the problem of office computers being unable to communicate when the network server fails is solved, automatic switching and communication maintenance are realized in the event of power outage or downtime, and direct-through, Selective switching between break and bypass modes improves network reliability and flexibility.
Patent Information
- Application Number
- CN202111605944.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-12-25
AI Technical Summary
When the network server fails, office computers cannot communicate with each other, affecting daily work.
A network switching circuit for industrial information security is designed, including a control module, an energy storage power supply module, a storage module and a relay switch circuit. The energy storage power supply module is used to provide power when the power supply is off or the CPU is down. The control module reads Take the preset mode and control the relay switch circuit to switch lines to ensure communication between office computers.
When the power is out or the CPU is down, the network switching circuit can automatically switch modes to ensure that communication between office computers is not interrupted. It provides selective switching of pass-through, break and bypass modes, enhancing the reliability and flexibility of the network.
Smart Images

Figure CN114327014B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to a network switching circuit applied to industrial information security. Background Art
[0002] At present, the use of local area networks is increasingly being used in various enterprises, and each node in the local area network is accessed through a network server in the local area network. Figure 1 , office computers are connected through the network connector, filter, network card and CPU of the network server in sequence, and each office computer can access each other after being bridged by the CPU.
[0003] With respect to the above-mentioned related technologies, the inventors believe that there are the following defects: when a network server fails, such as a crash or a power outage, office computers cannot communicate with each other, affecting daily office work. Summary of the invention
[0004] In order to improve the problem that office computers cannot communicate with each other when a network server fails, the present application provides a network switching circuit applied to industrial information security.
[0005] The present application provides a network switching circuit for industrial information security, which adopts the following technical solution:
[0006] A network switching circuit for industrial information security includes a control module, an energy storage power supply module, a storage module and a relay switch circuit, wherein:
[0007] Energy storage power supply module, used to provide power to the control module, storage module, and relay switch circuit;
[0008] A storage module, used for storing preset modes;
[0009] The control module is connected with the energy storage power supply module, the storage module and the CPU, and is used to monitor the state of the CPU in real time, and when the CPU state changes, reads the preset mode, and outputs the corresponding switching instruction according to the preset mode;
[0010] The relay switch circuit is connected to the control module, the energy storage power supply module, the first filter, the first network connector, the second filter, and the second network connector, and is used to receive a switching instruction and perform line switching according to the switching instruction.
[0011] By adopting the above technical solution, office computers can be directly connected through the bypass formed by the relay switch circuit. When the power supply is normal and the CPU is working normally, each office computer is accessed through the CPU bridge. The external power supply provides power to the control module, storage module, and relay switch circuit through the energy storage power supply module. At the same time, the energy storage power supply module can store power. When the external power supply is suddenly cut off, the CPU does not work, and the state of the CPU changes. At this time, the energy storage power supply module uses the stored power to power the control module, storage module, and relay switch circuit. The control module can continue to work. The control module reads the preset mode set in the case of power failure, and controls the relay switch circuit to complete the line switching. The office computers communicate directly through the relay switch circuit. The control module and the CPU establish communication. When the CPU is down, each office computer cannot be accessed through the CPU bridge. There is no communication between the CPU and the control module. The control module detects this state and controls the relay switch circuit to switch the line, so that the office computers communicate through the relay switch circuit.
[0012] Preferably, the relay switch circuit includes a first relay, a second relay, a third relay, a fourth relay, a fifth relay, a sixth relay, a seventh relay, an eighth relay, a self-locking relay, a first control circuit and a second control circuit, wherein:
[0013] A first relay is connected to the MDI_A channel of the first filter, the MDI_A channel of the first network connector, the first control circuit, and the self-locking relay;
[0014] A second relay is connected to the MDI_B channel of the first filter, the MDI_B channel of the first network connector, the first control circuit, and the fifth relay;
[0015] A third relay is connected to the MDI_C channel of the first filter, the MDI_C channel of the first network connector, the first control circuit, and the seventh relay;
[0016] a fourth relay connected to the MDI_D channel of the first filter, the MDI_D channel of the first network connector, the first control circuit, and the eighth relay;
[0017] a fifth relay connected to the MDI_A channel of the second filter, the MDI_A channel of the second network connector, and the first control circuit;
[0018] a sixth relay connected to the MDI_B channel of the second filter, the MDI_B channel of the second network connector, the first control circuit, and the self-locking relay;
[0019] a seventh relay connected to the MDI_C channel of the second filter, the MDI_C channel of the second network connector, and the first control circuit;
[0020] an eighth relay connected to the MDI_D channel of the second filter, the MDI_D channel of the second network connector, and the first control circuit;
[0021] A self-locking relay connected to the second control circuit;
[0022] A first control circuit is connected to the control module and the energy storage power supply module, and is used to control the power-on of the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay and the eighth relay according to the switching instruction;
[0023] A second control circuit is connected to the control module and the energy storage power supply module, and is used to control the power-on of the self-locking relay according to the switching instruction;
[0024] The preset modes include a pass-through mode, a break mode and a bypass mode.
[0025] Preferably, the first control circuit includes a one-hundred-ninth resistor R109, a diode D1, a first switch unit, a one-hundred-thirteenth resistor R113 and a logic control unit, one end of the one-hundred-ninth resistor R109 is connected to the energy storage power supply module, the other end of the one-hundred-ninth resistor R109 is connected to the cathode of the diode D1, the anode of the diode D1 is connected to the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay, the eighth relay and the third end of the first switch unit, the second end of the first switch unit is grounded, the first end of the first switch unit is connected to one end of the one-hundred-thirteenth resistor R113, the other end of the one-hundred-thirteenth resistor R113 is connected to the output end of the logic control unit, the first input end of the logic control unit is connected to the control module, and the second input end of the logic control unit is connected to the SLEEP_S3 port of the CPU.
[0026] Preferably, the first switch unit adopts a MOS tube, and the logic control unit adopts an AND gate chip U7 and its peripheral circuits.
[0027] Preferably, the second control circuit includes a second switch unit, a third switch unit, a fourth switch unit, a one-hundred-and-forty-fourth resistor R144, a fifth switch unit, a sixth switch unit and a seventh switch unit; the first end of the second switch unit is connected to the energy storage power supply module, the third end of the fifth switch unit and the first end of the sixth switch unit, the second end of the second switch unit is grounded, and the third end of the second switch unit is connected to the energy storage power supply module, the first end of the third switch unit and the first end of the fourth switch unit; the second end of the third switch unit is connected to the energy storage power supply module, the third end of the third switch unit is connected to the third end of the fourth switch unit, one end of the self-locking relay coil and one end of the one-hundred-and-forty-fourth resistor R144; the second end of the fourth switch unit is connected to the other end of the one-hundred-and-forty-fourth resistor R144 and the ground; the first end of the fifth switch unit is connected to the control module, and the second end of the fifth switch unit is grounded; the second end of the sixth switch unit is connected to the energy storage power supply module, the third end of the sixth switch unit is connected to the third end of the seventh switch unit and the other end of the self-locking relay coil; the second end of the seventh switch unit is grounded;
[0028] Among them, when the potential of the third end of the fourth switch unit is high level, the potential of the third end of the seventh switch unit is low level; and when the potential of the third end of the fourth switch unit is low level, the potential of the third end of the seventh switch unit is high level.
[0029] Preferably, the second switch unit, the third switch unit, the fourth switch unit, the fifth switch unit, the sixth switch unit and the seventh switch unit all adopt MOS tubes.
[0030] By adopting the above technical solution, the through mode is access between various office computers through the CPU bridge, the bypass mode is access between various office computers through the relay switch circuit, and the break mode is no access between various office computers. There are more choices and users can choose according to actual needs.
[0031] When the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay and the eighth relay are energized, the switches of the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay and the eighth relay are energized, the first filter is connected to the first network connector, the second filter is connected to the second network connector, and each office computer can be accessed through the CPU bridge.
[0032] When the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay and the eighth relay are powered on, the switches of the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay and the eighth relay return to the default open state, the self-locking relay is connected, at this time, the first network connector is connected to the second network connector, and each office computer can access each other through the relay switch circuit. When the self-locking relay is disconnected, there is no access between each office computer.
[0033] Preferably, it also includes a communication circuit, which is connected to the control module and the energy storage and power supply module.
[0034] By adopting the above technical solution and setting a communication circuit, the preset mode can be modified through the communication circuit to change the corresponding switching mode.
[0035] Preferably, the control module includes a watchdog unit, and the watchdog unit is connected to the CPU.
[0036] By adopting the above technical solution, when the dog feeding signal is not received for more than the preset time, it is determined that the CPU is in a state of downtime, and the control module controls the relay switch circuit to switch so as to detect the downtime of the CPU.
[0037] Preferably, the energy storage power supply module includes a first power supply circuit and a second power supply circuit, the input end of the first power supply circuit is connected to the 3.3V power supply end, the output end of the first power supply circuit is connected to the control module, the input end of the second power supply circuit is connected to the 5V power supply end, and the output end of the second power supply circuit is connected to the relay switch circuit.
[0038] Preferably, the first power supply circuit includes a diode D3, a diode D4, a diode D5 and a first energy storage unit, the anode of the diode D3 is connected to the 3.3V power supply terminal, the cathode of the diode D3 is connected to the control module, the anode of the diode D4 is connected to the anode of the diode D3, the cathode of the diode D4 is connected to the anode of the diode D5, the cathode of the diode D5 is connected to the cathode of the diode D3, the positive electrode of the first energy storage unit is connected to the cathode of the diode D4 and the anode of the diode D5, and the negative electrode of the first energy storage unit is grounded;
[0039] The second power supply circuit includes a diode D6, a diode D7, a diode D8 and a second energy storage unit, the anode of the diode D6 is connected to the 5V power supply terminal, the cathode of the diode D6 is connected to the relay switch circuit, the anode of the diode D7 is connected to the anode of the diode D6, the cathode of the diode D7 is connected to the anode of the diode D8, the cathode of the diode D8 is connected to the cathode of the diode D6, the positive electrode of the second energy storage unit is connected to the cathode of the diode D7 and the anode of the diode D8, and the negative electrode of the second energy storage unit is grounded.
[0040] By adopting the above technical solution, when the power is off, the diode D3 and the diode D4 play an isolation role, the electric energy of the first energy storage unit will not flow back, and the first energy storage unit supplies power to the control module; the diode D6 and the diode D7 play an isolation role, the electric energy of the second energy storage unit will not flow back, and the first energy storage unit supplies power to the relay switch circuit. When the power is restored, the 3.3V power supply end can quickly supply power to the control module through the diode D3, so that the control module can start quickly, and then the control module works while the 3.3V power supply end charges the first energy storage unit; the 5V power supply end can quickly supply power to the relay switch circuit through the diode D6.
[0041] In summary, the present application includes at least one of the following beneficial technical effects:
[0042] 1. When the power is off, the energy storage power supply module uses the stored electric energy to supply power to the control module, storage module, and relay switch circuit. The control module controls the relay switch circuit to complete the line switching, and the office computers communicate directly through the relay switch circuit. When the CPU crashes, there is no communication between the CPU and the control module. The control module controls the relay switch circuit to switch the line, so that the office computers can communicate through the relay switch circuit;
[0043] 2. There are direct mode, break mode and bypass mode, and users can choose according to actual needs;
[0044] 3. The user can modify the preset mode through the communication circuit to change the corresponding switching mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a network communication architecture diagram of an office computer in the related technology;
[0046] Figure 2 This is an architecture diagram of a network switching circuit applied to industrial information security in an embodiment of the present application;
[0047] Figure 3 is a circuit diagram of the energy storage power supply module in an embodiment of the present application;
[0048] Figure 4 is a circuit diagram of a voltage stabilizing circuit in an embodiment of the present application;
[0049] Figure 5 is a circuit diagram of a control module in an embodiment of the present application;
[0050] Figure 6 is a circuit diagram of a communication circuit in an embodiment of the present application;
[0051] Figure 7 This is an architectural diagram of a network switching circuit applied to industrial information security in a pass-through mode in an embodiment of the present application;
[0052] Figure 8 This is an architecture diagram of a network switching circuit applied to industrial information security in bypass mode in an embodiment of the present application;
[0053] Fig. 9 A circuit of a first relay, a second relay, a third relay, a fourth relay, a fifth relay, a sixth relay, a seventh relay, an eighth relay and a latching relay;
[0054] Fig.10 is a circuit diagram of a first control circuit and a second control circuit.
[0055] Description of reference numerals:
[0056] 10. First power supply circuit; 11. First energy storage unit; 20. Second power supply circuit; 21. Second energy storage unit; 30. Voltage stabilizing circuit; 40. First control circuit; 41. First switch unit; 42. Logic control unit; 50. Second control circuit; 51. Second switch unit; 52. Third switch unit; 53. Fourth switch unit; 54. Fifth switch unit; 55. Sixth switch unit; 56. Seventh switch unit; 60. Communication circuit. DETAILED DESCRIPTION
[0057] The following is combined with Figure 1-10 This application is described in further detail.
[0058] The present application embodiment discloses a network switching circuit for industrial information security. Figure 2The network switching circuit includes a control module, an energy storage power supply module, a storage module and a relay switch circuit, wherein the energy storage power supply module is used to provide power to the control module, the storage module and the relay switch circuit. The storage module is used to store a preset mode. The control module is connected to the energy storage power supply module, the storage module and the CPU to monitor the state of the CPU in real time, and when the CPU state changes, reads the preset mode and outputs a corresponding switching instruction according to the preset mode. The relay switch circuit is connected to the control module, the energy storage power supply module, the first filter, the first network connector, the second filter and the second network connector to receive a switching instruction and perform line switching according to the switching instruction.
[0059] When the CPU is working, the external power supply provides the CPU with 3.3V and 5V operating voltages. Figure 3 Optionally, the energy storage power supply module includes a first power supply circuit 10 and a second power supply circuit 20, the input end of the first power supply circuit 10 is connected to the 3.3V power supply end, the output end of the first power supply circuit 10 is connected to the control module, the input end of the second power supply circuit 20 is connected to the 5V power supply end, and the output end of the second power supply circuit 20 is connected to the relay switch circuit.
[0060] The first power supply circuit 10 includes a diode D3, a diode D4, a diode D5 and a first energy storage unit 11, the anode of the diode D3 is connected to the 3.3V power supply terminal, the cathode of the diode D3 is connected to the control module, the anode of the diode D4 is connected to the anode of the diode D3, the cathode of the diode D4 is connected to the anode of the diode D5, the cathode of the diode D5 is connected to the cathode of the diode D3, the positive electrode of the first energy storage unit 11 is connected to the cathode of the diode D4 and the anode of the diode D5, and the negative electrode of the first energy storage unit 11 is grounded.
[0061] The second power supply circuit 20 includes a diode D6, a diode D7, a diode D8 and a second energy storage unit 21, the anode of the diode D6 is connected to the 5V power supply terminal, the cathode of the diode D6 is connected to the relay switch circuit, the anode of the diode D7 is connected to the anode of the diode D6, the cathode of the diode D7 is connected to the anode of the diode D8, the cathode of the diode D8 is connected to the cathode of the diode D6, the positive electrode of the second energy storage unit 21 is connected to the cathode of the diode D7 and the anode of the diode D8, and the negative electrode of the second energy storage unit 21 is grounded.
[0062] In this embodiment, the first energy storage unit 11 and the second energy storage unit 21 are supercapacitors; in other embodiments, the first energy storage unit 11 and the second energy storage unit 21 may also be rechargeable batteries.
[0063] Under normal circumstances, the capacitor stores electricity. The capacitor discharges to supply power to the control module and the relay switch circuit. When the capacitor discharges, diodes D3, D4, D6 and D7 act as an isolation, and the electric energy of the capacitor will not flow back to the mainboard. When the power is restored, the 3.3V power supply end can quickly supply power to the control module through diode D3, so that the control module can start quickly; the 5V power supply end can quickly supply power to the relay switch circuit through diode D6.
[0064] refer to Figure 4 Optionally, the first power supply circuit 10 further includes a voltage stabilizing circuit 30, the input end of the voltage stabilizing circuit 30 is connected to the cathode of the diode D3, and the output end of the voltage stabilizing circuit 30 is connected to the control module. In this embodiment, the voltage stabilizing circuit 30 can use a voltage stabilizing chip PU1 and its peripheral circuits to achieve a 5V regulated output.
[0065] refer to Figure 5 and Figure 7 , the control module includes a watchdog unit, and the watchdog unit is connected to the CPU. In this embodiment, the control module adopts FPGA, the 15th pin of FPGA is connected to the SLEEP_S3 port of CPU, the 12th pin of FPGA is connected to the SLEEP_S4 port of CPU, the 7th pin of FPGA is connected to the SMB_CLK_MAIN port of CPU, the 13th pin of FPGA is connected to the SMB_DATA_MAIN port of CPU, and FPGA communicates with CPU through the 7th pin and the 13th pin; in other embodiments, the control module may also adopt MCU.
[0066] During normal startup, the CPU recognizes the startup action and transmits the startup signal to the FPGA, and the potential of the SLEEP_S3 port and the SLEEP_S4 port changes from low level to high level; during normal shutdown, the CPU recognizes the shutdown action and transmits the shutdown signal to the FPGA, and the potential of the CPU's SLEEP_S3 port and SLEEP_S4 port changes from high level to low level. When the power is suddenly cut off, the capacitor discharges to provide power to the FPGA, and the FPGA can continue to work. The FPGA recognizes that the potential of the SLEEP_S3 port and the SLEEP_S4 port changes to a low level, but the FPGA does not receive the shutdown signal. The FPGA determines that the CPU is abnormally powered off, and the FPGA controls the relay switch circuit to switch the line according to the preset mode.
[0067] When in the power-on state, the CPU communicates with the FPGA, the FPGA starts the WDT (watchdog) function, and the CPU sends a watchdog feeding signal to the FPGA at regular intervals. When the CPU is down, the CPU cannot send a watchdog feeding signal at regular intervals, and the FPGA does not receive the watchdog feeding signal within the predetermined time, then the FPGA controls the relay switch circuit to switch the line.
[0068] In this embodiment, the storage module adopts EEPROM storage; in other embodiments, the storage module may also adopt other types of storage.
[0069] refer to Figure 7 The relay switch circuit includes a first relay, a second relay, a third relay, a fourth relay, a fifth relay, a sixth relay, a seventh relay, an eighth relay, a self-locking relay, a first control circuit 40, and a second control circuit 50, wherein the first relay is connected to the MDI_A channel of the first filter, the MDI_A channel of the first network connector, the first control circuit 40, and the self-locking relay. The second relay is connected to the MDI_B channel of the first filter, the MDI_B channel of the first network connector, the first control circuit 40, and the fifth relay. The third relay is connected to the MDI_C channel of the first filter, the MDI_C channel of the first network connector, the first control circuit 40, and the seventh relay. The fourth relay is connected to the MDI_D channel of the first filter, the MDI_D channel of the first network connector, the first control circuit 40, and the eighth relay.
[0070] The fifth relay is connected to the MDI_A channel of the second filter, the MDI_A channel of the second network connector, and the first control circuit 40. The sixth relay is connected to the MDI_B channel of the second filter, the MDI_B channel of the second network connector, the first control circuit 40, and the self-locking relay. The seventh relay is connected to the MDI_C channel of the second filter, the MDI_C channel of the second network connector, and the first control circuit 40. The eighth relay is connected to the MDI_D channel of the second filter, the MDI_D channel of the second network connector, and the first control circuit 40.
[0071] The self-locking relay is connected to the second control circuit 50, and the first control circuit 40 is connected to the control module and the energy storage power supply module, and is used to control the power-on of the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay and the eighth relay according to the switching instruction. The second control circuit 50 is connected to the control module and the energy storage power supply module, and is used to control the power-on of the self-locking relay according to the switching instruction. Among them, the preset mode includes a direct mode, a break mode and a bypass mode.
[0072] refer to Figure 7 When the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay, and the eighth relay are energized, the first network connector and the first filter are connected, the second network connector and the second filter are connected, and each office computer communicates through the CPU. This mode is the pass-through mode.
[0073] refer to Figure 8 When the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay, and the eighth relay are not energized, the switches of the corresponding relays are disconnected, the first network connector and the second network connector are connected, the self-locking relay is turned on, and the office computers can communicate directly with each other. This mode is the bypass mode.
[0074] When the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay, and the eighth relay are not energized, and the self-locking relay is disconnected, there is no communication between the office computers. This mode is the break mode.
[0075] refer to Fig. 9 and Fig.10 The first control circuit 40 includes a one-hundred-ninth resistor R109, a diode D1, a first switch unit 41, a one-hundred-thirteenth resistor R113 and a logic control unit 42, one end of the one-hundred-ninth resistor R109 is connected to the second power supply circuit 20, the other end of the one-hundred-ninth resistor R109 is connected to the cathode of the diode D1, the anode of the diode D1 is connected to the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay, the eighth relay and the third end of the first switch unit 41, the second end of the first switch unit 41 is grounded, the first end of the first switch unit 41 is connected to one end of the one-hundred-thirteenth resistor R113, the other end of the one-hundred-thirteenth resistor R113 is connected to the output end of the logic control unit 42, the first input end of the logic control unit 42 is connected to the 48 pin of the FPGA, and the second input end of the logic control unit 42 is connected to the SLEEP_S3 port of the CPU.
[0076] In this embodiment, the first switch unit 41 adopts an N-type MOS tube, wherein the gate of the MOS tube is the first terminal, the source of the MOS tube is the second terminal, and the drain of the MOS tube is the third terminal. In other embodiments, the first switch unit 41 may also adopt a triode. In this embodiment, the logic control unit 42 may adopt an AND gate chip U7 and its peripheral circuits.
[0077] When both pin 1 and pin 2 of gate chip U7 are high level, pin 4 of gate chip U7 outputs high level, and first switch unit 41 is turned on; otherwise, first switch unit 41 is turned off. When in shutdown state, the potential of SLEEP_S3 port of CPU is low level; when in startup state, the potential of SLEEP_S3 port of CPU is high level. Among them, when SLEEP_S3 port of CPU or 48 pin of FPGA outputs low level, first switch unit 41 is turned off, and no current flows through the coils of first relay, second relay, third relay, fourth relay, fifth relay, sixth relay, seventh relay and eighth relay. When SLEEP_S3 port of CPU and 48 pin of FPGA output high level at the same time, first switch unit 41 is turned on, and current flows through the coils of first relay, second relay, third relay, fourth relay, fifth relay, sixth relay, seventh relay and eighth relay.
[0078] When the power is suddenly cut off, the potential of the SLEEP_S3 port of the CPU is at a low level, and the switches of the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay and the eighth relay are disconnected. At this time, it is only necessary to control the self-locking relay to be turned on to enter the bypass mode.
[0079] The second control circuit 50 includes a second switch unit 51, a third switch unit 52, a fourth switch unit 53, a 144th resistor R144, a fifth switch unit 54, a sixth switch unit 55 and a seventh switch unit 56. The first end of the second switch unit 51 is connected to the second power supply circuit 20, the first end of the fifth switch unit 54 and the first end of the sixth switch unit 55. The second end of the second switch unit 51 is grounded. The third end of the second switch unit 51 is connected to the second power supply circuit 20, the first end of the third switch unit 52 and the first end of the fourth switch unit 53. The second end of the third switch unit 52 is connected to the second power supply circuit 20. The third end of the third switch unit 52 is connected to the third end of the fourth switch unit 53, one end of the self-locking relay coil and one end of the 144th resistor R144. The second end of the fourth switch unit 53 is connected to the other end of the 144th resistor R144 and the ground.
[0080] The first end of the fifth switch unit 54 is connected to the 49th pin of the FPGA, and the second end of the fifth switch unit 54 is grounded. The second end of the sixth switch unit 55 is connected to the second power supply circuit 20, and the second end of the sixth switch unit 55 is connected to the third end of the seventh switch unit 56 and the other end of the self-locking relay coil; the second end of the seventh switch unit 56 is grounded.
[0081] In this embodiment, the second switch unit 51, the fourth switch unit 53, the fifth switch unit 54 and the seventh switch unit 56 use N-type MOS tubes, and the third switch unit 52 and the sixth switch unit 55 use P-type MOS tubes; wherein, when the potential of the third end of the four switch units is high, the potential of the third end of the seventh switch unit 56 is low; and when the potential of the third end of the four switch units is low, the potential of the third end of the seventh switch unit 56 is high. In other embodiments, the second switch unit 51, the third switch unit 52, the fourth switch unit 53, the fifth switch unit 54, the sixth switch unit 55 and the seventh switch unit 56 may also use triodes.
[0082] When the self-latching relay is powered off, the switch of the self-latching relay can remain in the closed state before the power is turned off. Specifically, the 49th pin of the FPGA outputs a high level, the fifth switch unit 54, the sixth switch unit 55 and the fourth switch unit 53 are turned on, the second switch unit 51, the third switch unit 52 and the seventh switch unit 56 are turned off, the 8th pin of the self-latching relay is a high level, the 1st pin of the locking relay is a low level, and the current of the coil flows from the 8th pin to the 1st pin.
[0083] Pin 49 of FPGA outputs a low level, the fifth switch unit 54, the sixth switch unit 55 and the fourth switch unit 53 are cut off, the second switch unit 51, the third switch unit 52 and the seventh switch unit 56 are turned on, pin 8 of the self-locking relay is a low level, pin 1 of the locking relay is a high level, and the current of the coil flows from pin 1 to pin 8.
[0084] Optionally, the second control circuit 50 further includes a 122nd resistor R122, a 124th resistor R124, a 140th resistor R140, a 145th resistor R145, a 142nd resistor R142, a 153th resistor R153 and a 154th resistor R154, one end of the 122nd resistor R122 is connected to the second power supply circuit 20, and the other end is connected to the third end of the second switch unit 51 and the first end of the third switch unit 52. One end of the 124th resistor R124 is connected to the third end of the third switch unit 52, the other end of the 124th resistor R124 is connected to the third end of the fourth switch unit 53 and the 144th resistor R144, and the 140th resistor R140 and the 124th resistor R124 are connected in parallel.
[0085] One end of the 145th resistor R145 is connected to the 49th pin of the FPGA, and the other end of the 145th resistor R145 is connected to the first end of the fifth switch unit 54. One end of the 145th resistor R145 is connected to the second power supply circuit 20, and the other end of the 145th resistor R145 is connected to the third end of the fifth switch unit 54, the first end of the second switch unit 51, and the first end of the seventh switch unit 56. One end of the 153rd resistor R153 is connected to the third end of the sixth switch unit 55, and the other end of the 153rd resistor R153 is connected to the third end of the seventh switch unit 56 and the other end of the self-locking relay coil. The 154th resistor R154 and the 153rd resistor R153 are connected in parallel.
[0086] Optionally, the second control circuit 50 also includes capacitor C80, capacitor C81, capacitor C83 and capacitor C97, one end of capacitor C80 is connected to the second end of the third switch unit 52, and the other end of capacitor C80 is connected to the first end of the third switch unit 52; one end of capacitor C81 is connected to the third end of the fourth switch unit 53, and the other end of capacitor C81 is grounded; one end of capacitor C83 is connected to the second end of the sixth switch unit 55, and the other end of capacitor C83 is connected to the first end of the sixth switch unit 55; one end of capacitor C97 is connected to the third end of the seventh switch unit 56, and the other end of capacitor C97 is grounded.
[0087] refer to Figure 6 Optionally, the network switching circuit also includes a communication circuit 60, which is connected to the control module and the energy storage power supply module. In this embodiment, the communication circuit 60 adopts an I2C communication circuit 60; in other embodiments, the communication circuit 60 may also adopt a serial communication circuit 60 or a USB communication circuit 60.
[0088] The implementation principle of a network switching circuit applied to industrial information security in an embodiment of the present application is as follows: when the external power supply suddenly fails, the energy storage power supply module uses the stored electric energy to power the control module, the storage module, and the relay switch circuit, and the control module can continue to work to control the relay switch circuit to switch to bypass mode, so that each office computer can communicate directly with each other. When the CPU crashes, each office computer cannot be accessed through the CPU bridge, and the control module controls the relay switch circuit to switch to bypass mode, so that each office computer can communicate directly with each other.
[0089] Users can set the corresponding mode according to their needs. For example, when the server is turned on, the FPGA control enters the pass-through mode; when the server is turned off, the FPGA control enters the break mode; when there is a sudden power outage or CPU crash, the FPGA control enters the bypass mode; and when the power is restored, the server restarts and the FPGA control enters the pass-through mode.
[0090] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A network switching circuit used for industrial information security, It is characterized in that It includes a control module, an energy storage power supply module, a storage module and a relay switch circuit, wherein: Energy storage power supply module, used to provide power to the control module, storage module and relay switch circuit; A storage module, used for storing preset modes; The control module is connected to the energy storage power supply module, the storage module and the CPU, and is used to monitor the state of the CPU in real time, and when the CPU state changes, read the preset mode and output the corresponding switching instruction according to the preset mode; A relay switch circuit is connected to the control module, the energy storage power supply module, the first filter, the first network connector, the second filter and the second network connector, and is used to receive a switching instruction and perform line switching according to the switching instruction; The relay switch circuit comprises a first relay, a second relay, a third relay, a fourth relay, a fifth relay, a sixth relay, a seventh relay, an eighth relay, a self-locking relay, a first control circuit (40) and a second control circuit (50), wherein: A first relay connected to the MDI_A channel of the first filter, the MDI_A channel of the first network connector, the first control circuit (40) and the self-locking relay; A second relay connected to the MDI_B channel of the first filter, the MDI_B channel of the first network connector, the first control circuit (40) and the fifth relay; A third relay connected to the MDI_C channel of the first filter, the MDI_C channel of the first network connector, the first control circuit (40) and the seventh relay; a fourth relay connected to the MDI_D channel of the first filter, the MDI_D channel of the first network connector, the first control circuit (40) and the eighth relay; a fifth relay connected to the MDI_A channel of the second filter, the MDI_A channel of the second network connector, the first control circuit (40) and the second relay; a sixth relay connected to the MDI_B channel of the second filter, the MDI_B channel of the second network connector, the first control circuit (40) and the self-locking relay; a seventh relay connected to the MDI_C channel of the second filter, the MDI_C channel of the second network connector, the first control circuit (40) and the third relay; an eighth relay connected to the MDI_D channel of the second filter, the MDI_D channel of the second network connector, the first control circuit (40) and the fourth relay; A self-locking relay connected to the second control circuit (50); A first control circuit (40) is connected to the control module and the energy storage power supply module and is used to control the power-on of the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay and the eighth relay according to a switching instruction; A second control circuit (50), connected to the control module and the energy storage power supply module, for controlling the power-on of the self-locking relay according to a switching instruction; The preset modes include a pass-through mode, a break mode and a bypass mode; The first control circuit (40) comprises a one-hundred-ninth resistor R109, a diode D1, a first switch unit (41), a one-hundred-thirteenth resistor R113 and a logic control unit (42), one end of the one-hundred-ninth resistor R109 is connected to the energy storage power supply module, the other end of the one-hundred-ninth resistor R109 is connected to the cathode of the diode D1, the anode of the diode D1 is connected to the first relay, the second relay, the third relay, the fourth relay, the fifth relay, the sixth relay, the seventh relay, the eighth relay and the third end of the first switch unit (41), the second end of the first switch unit (41) is grounded, the first end of the first switch unit (41) is connected to one end of the one-hundred-thirteenth resistor R113, the other end of the one-hundred-thirteenth resistor R113 is connected to the output end of the logic control unit (42), the first input end of the logic control unit (42) is connected to the control module, and the second input end of the logic control unit (42) is connected to the SLEEP_S3 port of the CPU; The first switch unit (41) adopts a MOS tube, and the logic control unit (42) includes an AND gate chip U7 and its peripheral circuits; The second control circuit (50) comprises a second switch unit (51), a third switch unit (52), a fourth switch unit (53), a resistor R144, a fifth switch unit (54), a sixth switch unit (55) and a seventh switch unit (56); a first end of the second switch unit (51) is connected to the energy storage power supply module, a third end of the fifth switch unit (54) and a first end of the sixth switch unit (55); a second end of the second switch unit (51) is grounded; a third end of the second switch unit (51) is connected to the energy storage power supply module, a first end of the third switch unit (52) and a first end of the fourth switch unit (53); a second end of the third switch unit (52) is connected to the energy storage power supply module, a third end of the third switch unit (52) and a first end of the fourth switch unit (53); The energy storage power supply module is connected, the third end of the third switch unit (52) is connected to the third end of the fourth switch unit (53), one end of the self-locking relay coil and one end of the one-hundred-and-forty-fourth resistor R144; the second end of the fourth switch unit (53) is connected to the other end of the one-hundred-and-forty-fourth resistor R144 and the ground; the first end of the fifth switch unit (54) is connected to the control module, and the second end of the fifth switch unit (54) is grounded; the second end of the sixth switch unit (55) is connected to the energy storage power supply module, the third end of the sixth switch unit (55) is connected to the third end of the seventh switch unit (56) and the other end of the self-locking relay coil; the second end of the seventh switch unit (56) is grounded; When the potential of the third terminal of the fourth switch unit is at a high level, the potential of the third terminal of the seventh switch unit (56) is at a low level; and when the potential of the third terminal of the fourth switch unit is at a low level, the potential of the third terminal of the seventh switch unit (56) is at a high level; The control module includes a watchdog unit, and the watchdog unit is connected to the CPU; The energy storage power supply module comprises a first power supply circuit (10) and a second power supply circuit (20), the input end of the first power supply circuit (10) is connected to a 3.3V power supply end, the output end of the first power supply circuit (10) is connected to a control module, the input end of the second power supply circuit (20) is connected to a 5V power supply end, and the output end of the second power supply circuit (20) is connected to a relay switch circuit; The first power supply circuit (10) comprises a diode D3, a diode D4, a diode D5 and a first energy storage unit (11), the anode of the diode D3 is connected to a 3.3V power supply terminal, the cathode of the diode D3 is connected to a control module, the anode of the diode D4 is connected to the anode of the diode D3, the cathode of the diode D4 is connected to the anode of the diode D5, the cathode of the diode D5 is connected to the cathode of the diode D3, the positive electrode of the first energy storage unit (11) is connected to the cathode of the diode D4 and the anode of the diode D5, and the negative electrode of the first energy storage unit (11) is grounded; The second power supply circuit (20) comprises a diode D6, a diode D7, a diode D8 and a second energy storage unit (21), the anode of the diode D6 is connected to a 5V power supply terminal, the cathode of the diode D6 is connected to a relay switch circuit, the anode of the diode D7 is connected to the anode of the diode D6, the cathode of the diode D7 is connected to the anode of the diode D8, the cathode of the diode D8 is connected to the cathode of the diode D6, the positive electrode of the second energy storage unit (21) is connected to the cathode of the diode D7 and the anode of the diode D8, and the negative electrode of the second energy storage unit (21) is grounded.
2. The network switching circuit for industrial information security according to claim 1, It is characterized in that The second switch unit (51), the third switch unit (52), the fourth switch unit (53), the fifth switch unit (54), the sixth switch unit (55) and the seventh switch unit (56) all adopt MOS tubes.
3. The network switching circuit for industrial information security according to claim 1, It is characterized in that It also includes a communication circuit (60), wherein the communication circuit (60) is connected to the control module and the energy storage and power supply module.
Citation Information
Patent Citations
Network bypass device and method for processing network bypass
CN102377586A
Uninterruptible power supply circuit
CN103368231A
Interface control equipment, data acquisition system and equipment connection control method
CN103714025A
A control method and electronic equipment
CN109710323A
BYPASS control method and device, terminal and storage medium
CN113630281A
