Interface protection system and method based on hot plug technology
By integrating data preprocessing, current limiting circuits, delayed power outage and safety assessment modules in the interface protection system, the operation cumbersome and hardware damage caused by frequent plugging and unplugging of components is solved, and higher system security and stability are achieved.
Patent Information
- Application Number
- CN202411620751.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, when frequently plugging and unplugging components, it is necessary to press the plug-and-removing key, which increases the cumbersome operation and may lead to physical damage to the plug-and-removing keys, resulting in port damage, data loss and system crash.
Design an interface protection system based on hot plug technology, including data preprocessing module, current limiting circuit module, delay power outage module and safety evaluation module. By monitoring power line data in real time, judging interrupt signal types, setting current limiting circuits and delay power outage mechanisms, ensuring safe data transmission and smooth equipment shutdown.
It effectively prevents physical damage of plug-in and unplugged keys, reduces the risks of port corruption, data loss and system crash, improves system security and stability, and simplifies hardware replacement and maintenance processes.
Smart Images

Figure CN119577861A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer interface protection, relates to hot plug technology, and specifically is an interface protection system and method based on the hot plug technology. Background Art
[0002] Hot-swap technology enables the system to dynamically add or remove hardware resources such as hard disks, memory, PCI adapters, etc. as needed, thereby enhancing the scalability and flexibility of the system; administrators can adjust hardware configurations as needed during system operation without shutting down the system, which improves the flexibility and responsiveness of system configuration; hot-swap technology simplifies the process of hardware replacement and maintenance, because administrators can perform these operations without shutting down the system, thereby reducing the complexity and time cost of maintenance work.
[0003] The prior art (invention patent application with publication number CN107491406A) discloses a hot-swap method and device for an interface; comprising: setting a safe operation logic for the interface; obtaining relevant signals through a CPLD device; wherein the relevant signals are signals generated when components are plugged in and out; selecting a target safe operation logic corresponding to the relevant signals, and performing safe operations on the target interface according to the target safe operation logic to achieve hot-swap of components; the prior art sets a plug-in and pull-out button on the interface, and before plugging and unplugging components, the button needs to be pressed to indicate that this operation is a normal operation, but does not take into account the scenario where components need to be frequently plugged in and out. The need to press the button for each operation will increase the cumbersomeness of the operation, thereby reducing work efficiency; at the same time, long-term use and frequent operations may cause physical damage to the plug-in and pull-out buttons, thereby causing port damage, data loss and system crashes.
[0004] The present invention provides an interface protection system and method based on hot plug technology to solve the above technical problems. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art; to this end, the present invention proposes an interface protection system and method based on hot plug technology, which is used to solve the technical problem that physical damage to the plug and unplug button may occur due to long-term use and frequent operation, thereby causing port damage, data loss and system crash.
[0006] To achieve the above-mentioned object, the first aspect of the present invention provides an interface protection system based on hot plug technology, comprising: a data preprocessing module, a current limiting circuit module, a delayed power-off module and a safety assessment module;
[0007] Data preprocessing module: Install a hot-swap controller in the OPS box to obtain real-time power line data through the hot-swap controller; the power line data includes: voltage data and current data;
[0008] Connect the output of the hot-swap controller to the main controller of the OPS box, and set the configuration information for the main controller of the OPS box; determine whether the OPS box interface is unplugged based on the power line data; if yes, determine whether the main controller receives an interrupt signal; if yes, determine the type of interrupt signal, and cache the network data to local storage; if no, send a reminder signal;
[0009] If not, continue to judge;
[0010] Current limiting circuit module: determines whether the type of interrupt signal is an insertion interrupt signal; if yes, sets the current limiting circuit; if no, enters the delayed power-off module;
[0011] Delayed power-off module: set the delay time, save the network data in the OPS box during the delay time; judge whether the delay is over; if yes, enter the safety assessment module; if no, continue to judge;
[0012] Security assessment module: determine whether the network data is transmitted to the corresponding device; if yes, evaluate the interface protection system; determine whether the interface protection system is qualified; if yes, complete the interface protection test; if no, issue an alarm signal;
[0013] If not, alarm signal 2 is issued.
[0014] An interface protection system based on hot plug technology also includes: a user display module: used to display early warning information of different colors to the user; wherein the early warning information includes: a reminder signal, an alarm signal 1, an alarm signal 2, an early warning signal, an alarm signal 1, and an alarm signal 2.
[0015] Preferably, the configuration information of the main controller of the OPS box is set, including:
[0016] Enable the interrupt function in the settings of the main controller, configure the interrupt vector table according to the architecture and operating system of the main controller, and correspond the interrupt signal of the hot plug event to the corresponding interrupt handler one by one; set the interrupt signal priority corresponding to different devices; obtain the shutdown program in the program of the main controller, and execute the corresponding shutdown operation after receiving the interrupt signal of the hot plug event; release the resources and update the device status after the operation closes the resources.
[0017] The present invention enables an interrupt function in the setting of a main controller so as to receive an interrupt signal of a hot plug event; a closing program is responsible for releasing resources occupied by the unplugged device, such as memory, file handles, etc., which is conducive to reducing unnecessary waste of resources; after the device is unplugged, the device status list in the main controller is updated to better reflect the status of the currently connected device; and by configuring an interrupt vector table, the interrupt signal of the hot plug event can be associated with a corresponding interrupt processing program, thereby accelerating the operation and processing speed of the system.
[0018] Preferably, the setting of interrupt signal priorities corresponding to different devices includes:
[0019] Several pluggable devices in the OPS box are obtained from the database, and each pluggable device is scored; the pluggable devices are sorted from large to small according to the scores, and the main controller preferentially receives the pluggable devices with high scores.
[0020] It should be noted that the importance of the equipment is set by the staff based on actual work experience; if there are devices of the same level, they will be determined according to the time when the equipment is plugged in and out, and the interrupt signal corresponding to the device with the earlier time will be received first.
[0021] The present invention sets an appropriate priority for the interrupt signal of the hot plug event to ensure that the interrupt signal can be processed in a timely and preferential manner, and at the same time, improves the ability of the system to respond to emergency events.
[0022] Preferably, judging whether the OPS box interface is unplugged or not according to the power line data includes:
[0023] Set the standard power line variation range value, and determine whether the absolute value of the power line variation difference exceeds the standard power line variation range value; if yes, the OPS box interface has the phenomenon of unplugging and plugging; if no, the OPS box interface has not the phenomenon of unplugging and plugging.
[0024] It should be noted that the standard power cord variation range value is set by the staff based on actual working conditions.
[0025] The present invention can monitor the fluctuation of the power line in real time and find abnormalities in time by setting the standard power line change range value; when the power line change difference exceeds the set range, it can quickly determine that the OPS box interface has been unplugged, which helps to quickly locate the fault.
[0026] Preferably, determining the type of the interrupt signal includes:
[0027] Retrieve the interrupt signal received by the main controller and determine whether the interrupt signal is a device insertion interrupt signal; if yes, mark the corresponding interrupt signal as signal one; if no, mark the corresponding interrupt signal as signal two; wherein signal one is a device insertion interrupt signal; signal two is a device removal interrupt signal.
[0028] The present invention classifies the received interrupt signals by judging whether the interrupt signals are device insertion interrupt signals, which is beneficial for subsequent different processing of different types of interrupt signals and is beneficial for improving the efficiency of processing interrupt signals.
[0029] Preferably, caching the network data to local storage includes:
[0030] Retrieve the network data that needs to be transmitted and set the cache path and cache rules; use the monitoring tool to view the cache usage in real time; determine whether there are any abnormalities in the usage; if yes, issue a warning signal; if no, continue to determine; the cache rules include: recording the cache data size and cache time, and setting the cache update strategy; the cache usage includes: cache hit rate, cache size changes, so as to adjust the cache strategy in time; abnormal situations include: the cache data size exceeds the set memory, and the cache time exceeds the set time.
[0031] It should be noted that the setting memory and setting time are determined by the staff based on actual experience.
[0032] The present invention can ensure that cache resources are effectively utilized by setting cache rules, such as recording cache data size and cache time, and setting cache update strategy; cache hit rate, as an important indicator of usage, can help identify which data is frequently accessed, thereby optimizing cache content and improving access efficiency; cache can significantly reduce the number of direct accesses to the network or database, thereby reducing latency and improving system response speed; abnormal situation warning mechanism can send out signals in time before a problem occurs, allowing administrators to take measures to avoid system crashes or data loss.
[0033] Preferably, the setting of the current limiting circuit includes:
[0034] Add overvoltage protection devices and electrostatic protection devices at the interface of the OPS box, and connect the current limiting switch and the fuse in series between the power cord and the device; set the current limiting threshold of the current limiting switch to determine whether the surge current generated when the device is plugged in exceeds the current limiting threshold; if yes, issue an alarm signal one; if no, retrieve the network data in the local storage to determine whether the network data passes the transmission check; if yes, complete the current limiting circuit design; if no, issue an alarm signal two.
[0035] It should be noted that the current limiting threshold of the current limiting switch is set by the staff based on actual work experience.
[0036] The present invention designs a current limiting circuit at the interface to prevent surge current generated when the device is plugged in from damaging the power line and the interface device; at the same time, an overvoltage protection device is added at the interface to prevent overvoltage from damaging the device; and an electrostatic protection device is added at the interface to prevent electrostatic discharge from damaging the device; and current limiting is facilitated by connecting a current limiting switch and a fuse in series between the power line and the device.
[0037] Preferably, the determining whether the network data passes the transmission verification includes:
[0038] A checksum mechanism is added during the data transmission process to determine whether the network data checksum during the data transmission process is consistent with the network data checksum cached locally; if yes, the network data passes the transmission checksum; if not, the network data fails the transmission checksum.
[0039] The present invention can detect whether errors occur in data transmission through the check code, thereby ensuring the correctness and integrity of the data; when data errors are detected, invalid transmission is stopped in time, thereby saving network bandwidth resources.
[0040] Preferably, the setting of the delay time includes:
[0041] Retrieve the network data and cache time stored locally, and use the cache time as the preset delay time; set two access count thresholds marked as T1 and T2, respectively, where T2>T1; determine whether the number of times the corresponding network data is accessed exceeds the set access count threshold T2;
[0042] If yes, the delay time is extended based on the preset delay time;
[0043] If not, determine whether the number of times the corresponding network data is accessed is lower than the set access number threshold T1; if yes, shorten the delay time based on the preset delay time; if not, delay the process according to the preset delay time.
[0044] It should be noted that the access threshold and the specific time for extension / shortening based on the preset delay time are set by the staff according to actual work experience.
[0045] The present invention counts the number of times network data is accessed. If the data is frequently accessed in a short period of time, the cache time of the data can be appropriately extended, thereby reducing the access pressure on the database; on the contrary, if some data is seldom accessed, the cache time of the corresponding network data is shortened or removed from the cache, which is conducive to speeding up the system's progress in processing network data and reducing unnecessary waste of resources.
[0046] Preferably, the determining whether the delay is over includes:
[0047] Retrieve the locally stored network data and determine whether the network data in the OPS box is consistent with the local network data. If yes, the delay ends; if not, the delay continues.
[0048] The present invention ends the delay when it is determined that the network data in the OPS box is consistent with the local network data, indicating that the network data to be transmitted has not been damaged or lost after the interface device is unplugged. This approach is beneficial to protecting the interface device and network data.
[0049] Preferably, the determining whether to transmit the network data to the corresponding device includes:
[0050] Retrieve real-time power data and standard power line variation range values to determine whether the power line data is within the standard power line variation range values; if yes, transmit the network data to the corresponding device; if no, fail to transmit the network data to the corresponding device.
[0051] The present invention can avoid transmitting data when the power supply is unstable by checking whether the power line data is within the normal range, reduce errors and damage that may occur during data transmission, and thus improve the security of data transmission; data transmission is only performed when the power line data is within the standard range, which can ensure that the device receiving the data works under stable power conditions and avoid device failures caused by power fluctuations.
[0052] Preferably, the evaluating the interface protection system includes:
[0053] Retrieve power line data and set a test cycle, and assign a1 to power line data that is always within the standard power line variation range within the set test cycle;
[0054] Count the number of times that the power line data exceeds the standard power line variation range value within the set test cycle; set a number threshold, and determine whether the number of times the power line data exceeds the number threshold; if yes, assign a2 to the power line data that exceeds the standard power line variation range value; if no, assign a3 to the power line data that does not exceed the standard power line variation range value; wherein, 0<a1<a2<a3≤100;
[0055] Determine whether the power-limiting circuit is subject to external electromagnetic interference; if yes, assign the corresponding power-limiting circuit to b1; if no, assign the corresponding power-limiting circuit to b2; wherein 0<b1<b2≤100.
[0056] It should be noted that the specific value of the test cycle is set by the staff based on actual work experience.
[0057] The present invention can quantify the stability of the power supply and provide an intuitive evaluation of the power supply performance by comparing the power line data with the standard range value and assigning different scores; by scoring whether the power-limiting circuit is subject to external electromagnetic interference, the impact of the electromagnetic environment on the system can be evaluated, providing a basis for electromagnetic compatibility design; by counting the number of times exceeding the standard range and setting a threshold, the potential risks of the power supply system can be evaluated and possible problems can be discovered in time.
[0058] Preferably, the determining whether the interface protection system is qualified includes:
[0059] Retrieve the power line data scoring values a1, a2, a3, and the power limiting circuit scoring values b1, b2;
[0060] By formula The final rating score is calculated; i is the number of power line data scoring values, j is the number of power limiting circuit scoring values; α and β are both proportional coefficients, and 0<α<1, 0<β<1;
[0061] A qualified threshold is set to determine whether the final rating score exceeds the qualified threshold; if yes, the interface protection system is qualified; if no, the interface protection system is unqualified.
[0062] It should be noted that the qualification threshold is set by the staff based on actual work conditions.
[0063] The present invention can make a more comprehensive and accurate evaluation of the interface protection system by comprehensively considering the power line data and the scoring values of the power limiting circuit; by adjusting the proportional coefficients α and β, the influence of the power line data and the power limiting circuit is weighted according to the actual situation and importance, which is conducive to increasing the flexibility of system evaluation.
[0064] To achieve the above object, the second aspect of the present invention provides an interface protection method based on hot plug technology:
[0065] S100: Install a hot-swap controller in the OPS box, and obtain real-time power line data through the hot-swap controller; connect the output of the hot-swap controller to the main controller of the OPS box, and set configuration information for the main controller of the OPS box; determine whether the device is unplugged according to the power line data; if yes, determine whether the main controller receives an interrupt signal; if yes, determine the type of the interrupt signal, and cache the network data to local storage; if no, send a reminder signal;
[0066] S200: Determine whether the type of the interrupt signal is an insertion interrupt signal; if yes, set the current limiting circuit; if no, enter S300;
[0067] S300: set the delay time, save the network data in the OPS box during the delay time; determine whether the delay is over; if yes, enter S400; if no, continue to determine;
[0068] S400: Determine whether to transmit network data to corresponding equipment; if yes, evaluate the interface protection system; determine whether the interface protection system is qualified; if yes, complete the interface protection test; if no, issue an alarm signal 1;
[0069] If not, alarm signal 2 is issued.
[0070] Compared with the prior art, the present invention has the following beneficial effects:
[0071] 1. When the device is unplugged or fails, the present invention ensures the safe transmission of data and the smooth shutdown of the device through a delayed power-off mechanism. The delay mechanism can give the system enough time to complete data transmission, save status information or perform other necessary shutdown operations; during the delay period, the system continues to run and completes the necessary data transmission and shutdown operations; after the delay ends, the power-off controller cuts off the power to ensure the safe shutdown of the device; by designing a power-off protection mechanism, when it is detected that the device is unplugged or a power failure occurs, the power is immediately cut off and the current status information is saved, which is conducive to preventing data loss or device damage caused by sudden power failure.
[0072] 2. The present invention automatically identifies hot plug operations at the interface of the OPS box and takes protective measures to prevent electrical shock and data loss; since hardware replacement can be performed without shutting down the system, the risk caused by system restart or data loss is reduced; for end users, hot-swap technology ensures the continuous operation of the system and the continuity of services, thereby improving the user experience; hot-swap technology makes hardware replacement simpler and more intuitive, lowering the technical threshold for users during use; hot-swap technology helps to improve the overall security and stability of the system and reduce potential risks caused by hardware failures by reducing system downtime and simplifying maintenance processes. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0074] Figure 1 A schematic diagram showing the relationship between the modules included in the present invention;
[0075] Figure 2Schematic diagram of the specific steps of data preprocessing of the present invention;
[0076] Figure 3 It is a schematic diagram of the specific steps of signal processing of the present invention;
[0077] Figure 4 It is a schematic diagram of the specific steps of the safety assessment of the present invention;
[0078] Figure 5 It is a schematic diagram of the steps of interface protection of the present invention. DETAILED DESCRIPTION
[0079] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0080] See also Figure 1 , the first aspect of the present invention provides an interface protection system based on hot plug technology, including: a data preprocessing module, a current limiting circuit module, a delayed power-off module and a safety assessment module;
[0081] Data preprocessing module: Install a hot-swap controller in the OPS box to obtain real-time power line data through the hot-swap controller; the power line data includes: voltage data and current data;
[0082] Connect the output of the hot-swap controller to the main controller of the OPS box, and set the configuration information for the main controller of the OPS box; determine whether the OPS box interface is unplugged based on the power line data; if yes, determine whether the main controller receives an interrupt signal; if yes, determine the type of interrupt signal, and cache the network data to local storage; if no, send a reminder signal;
[0083] If not, continue to judge;
[0084] Current limiting circuit module: determines whether the type of interrupt signal is an insertion interrupt signal; if yes, sets the current limiting circuit; if no, enters the delayed power-off module;
[0085] Delayed power-off module: set the delay time, save the network data in the OPS box during the delay time; judge whether the delay is over; if yes, enter the safety assessment module; if no, continue to judge;
[0086] Security assessment module: determine whether the network data is transmitted to the corresponding device; if yes, 13 evaluates the interface protection system; determines whether the interface protection system is qualified; if yes, completes the interface protection test; if no, issues an alarm signal 1;
[0087] If not, alarm signal 2 is issued.
[0088] See also Figure 2 , the specific steps of data preprocessing are: install a hot-swap controller in the OPS box, and obtain real-time power line data through the hot-swap controller; wherein the power line data includes: voltage data and current data; connect the output of the hot-swap controller to the main controller of the OPS box, enable the interrupt function in the settings of the main controller, configure the interrupt vector table according to the architecture and operating system of the main controller, and correspond the interrupt signal of the hot-swap event to the corresponding interrupt handler one by one; obtain several pluggable devices in the OPS box from the database, and score each pluggable device; sort them from large to small according to the score, and the main controller gives priority to pluggable devices with high scores; obtain the shutdown program in the program of the main controller, and execute the corresponding shutdown operation after receiving the interrupt signal of the hot-swap event; release the resources and update the device status after the operation closes the resources;
[0089] Set the standard power line variation range value, and determine whether the absolute value of the power line variation difference exceeds the standard power line variation range value; if yes, the OPS box interface has the phenomenon of plugging and unplugging; if no, the OPS box interface has not the phenomenon of plugging and unplugging; determine whether the main controller receives the interrupt signal; if yes, determine whether the interrupt signal is the device insertion interrupt signal; if yes, mark the corresponding interrupt signal as signal one; if no, mark the corresponding interrupt signal as signal two;
[0090] If not, retrieve the network data that needs to be transmitted and set the cache path and cache rules; use the monitoring tool to view the cache usage in real time; determine whether there is any abnormality in the usage; if yes, issue a warning signal; if not, continue to determine.
[0091] For example, an existing OPS box needs to be protected against hot-swap interfaces. A hot-swap controller ADM1177 is installed in the OPS box. The real-time voltage data fluctuates between 46V and 48V, and the current data fluctuates between 9A and 11A through the hot-swap controller. The output of the hot-swap controller is connected to the main controller of the OPS box. The interrupt function is enabled in the settings of the main controller. According to the architecture and operating system of the main controller, the interrupt vector table is configured to correspond the interrupt signal of the hot-swap event to the corresponding interrupt handler one by one.
[0092] Obtain the pluggable devices in the OPS box from the database, where the pluggable devices include: power interface, display interface, USB interface, network device interface, and storage device; score the network interface as 100, the power interface as 95, the network device interface as 90, the storage device as 85, and the display interface as 80;
[0093] There is a network device interface and a display interface that need to be hot-plugged, and the main controller preferentially receives the network device interface with a high score; obtains the closing program in the program of the main controller, and executes the corresponding closing operation after receiving the interrupt signal of the hot-plugging event; releases the resource after the operation closes the resource and updates the device status;
[0094] Set the standard voltage change range to 0V-20V, and the standard current change range to 0A-5A; among them, the maximum voltage at time A is 75V, and the minimum is 45V; the maximum current is 15A, and the minimum is 8A; the absolute value of the voltage change difference is 30V, which exceeds the standard voltage change range; the absolute value of the current change difference is 7A, which exceeds the standard current change range, then the OPS box interface will be unplugged; and the corresponding interrupt signal will be marked.
[0095] See also Figure 3 , the specific steps of signal processing, add overvoltage protection devices and electrostatic protection devices at the interface of the OPS box, and connect the current limiting switch and the fuse in series between the power cord and the device; set the current limiting threshold of the current limiting switch to determine whether the surge current generated when the device is inserted exceeds the current limiting threshold; if yes, issue an alarm signal one; if no, retrieve the network data in the local storage to determine whether the network data passes the transmission check; if yes, complete the current limiting circuit design; if no, issue an alarm signal two; add a checksum mechanism during data transmission to determine whether the network data checksum during data transmission is consistent with the network data checksum cached locally; if yes, the network data passes the transmission check; if no, the network data fails the transmission check;
[0096] Retrieve the network data and cache time stored locally, and use the cache time as the preset delay time; set two access count thresholds marked as T1 and T2, respectively, where T2>T1; determine whether the number of times the corresponding network data is accessed exceeds the set access count threshold T2;
[0097] If yes, the delay time is extended based on the preset delay time;
[0098] If not, determine whether the number of times the corresponding network data has been accessed is lower than the set access number threshold T1; if yes, shorten the delay time based on the preset delay time; if not, delay the process according to the preset delay time;
[0099] Retrieve the network data stored locally and determine whether the network data in the OPS box is consistent with the local network data. If yes, the delay ends; if not, the delay continues;
[0100] Retrieve real-time power data and standard power line variation range values to determine whether the power line data is within the standard power line variation range values; if yes, transmit the network data to the corresponding device; if no, fail to transmit the network data to the corresponding device.
[0101] For example: retrieve the interrupt signal, use the current limiting switch TPD3S014 to limit the current, add overvoltage protection devices TVS (transient voltage suppressor) and PPTC (positive temperature coefficient thermistor) at the interface, and add electrostatic protection devices SESD (silicon-based ESD protection device) at the interface; connect the current limiting switch and the fuse in series between the power cord and the device; complete the current limiting circuit design, and add a checksum mechanism during data transmission; retrieve the network data that has passed the transmission check and the cache time of 5S, use the cache time as the preset delay time, set the two access count thresholds to T1=3 and T2=10 times, respectively, where the corresponding network data is accessed 8 times, between T1 and T2, so the delay process is performed according to the preset delay time of 5S.
[0102] See also Figure 4 ,Specific steps of safety assessment, retrieve power line data and set the test cycle, and assign a1 to the power line data that is always within the standard power line variation range within the set test cycle;
[0103] Count the number of times that the power line data exceeds the standard power line variation range value within the set test cycle; set a number threshold, and determine whether the number of times the power line data exceeds the number threshold; if yes, assign a2 to the power line data that exceeds the standard power line variation range value; if no, assign a3 to the power line data that does not exceed the standard power line variation range value; wherein, 0<a1<a2<a3≤100;
[0104] Determine whether the power-limiting circuit is subject to external electromagnetic interference; if yes, assign the corresponding power-limiting circuit to b1; if no, assign the corresponding power-limiting circuit to b2; where 0<b1<b2≤100;
[0105] By formula The final rating score is calculated; i is the number of power line data scoring values, j is the number of power limiting circuit scoring values; α and β are both proportional coefficients, and 0<α<1, 0<β<1;
[0106] A qualified threshold is set to determine whether the final rating score exceeds the qualified threshold; if yes, the interface protection system is qualified; if no, the interface protection system is unqualified.
[0107] For example, three groups of power line data C1, C2, and C3 are retrieved, and the test cycles of the three groups are set to 12 hours. The number of times that the three groups of power line data exceed the power line data in the standard power line variation range value within the set test cycle is counted; the number threshold is set to 5 times, among which, the power line data of group C1 that is always within the standard power line variation range value within the set test cycle is assigned a score of 100; the number of times that the power line data of group C2 exceeds the standard power line variation range value within the set test cycle is 6 times, and it is assigned a score of 60; the number of times that the power line data of group C3 is always within the standard power line variation range value within the set test cycle is 3 times, and it is assigned a score of 80;
[0108] The power-limiting circuits corresponding to the three sets of power line data are not subject to external electromagnetic interference, and the corresponding power-limiting circuits are assigned a score of 100; α is set to 0.5, β is set to 0.5; and the qualified threshold is set to 85 points;
[0109] By formula The final rating score PF1 corresponding to group C1 is calculated as 0.5×(100+0+0)+0.5×(100+0)=100, so the interface protection system corresponding to group C1 is qualified;
[0110] The final rating score PF2 corresponding to group C2 is 0.5×(0+60+0)+0.5×(100+0)=80, so the interface protection system corresponding to group C2 is unqualified, and an alarm signal is issued to notify the staff to handle it;
[0111] The final rating score PF3 corresponding to group C3 is 0.5×(0+0+80)+0.5×(100+0)=90, so the interface protection system corresponding to group C3 is qualified.
[0112] See also Figure 5 The second aspect of the present invention provides an interface protection method based on hot plug technology, including:
[0113] S100: Install a hot-swap controller in the OPS box, and obtain real-time power line data through the hot-swap controller; connect the output of the hot-swap controller to the main controller of the OPS box, and set configuration information for the main controller of the OPS box; determine whether the device is unplugged according to the power line data; if yes, determine whether the main controller receives an interrupt signal; if yes, determine the type of the interrupt signal, and cache the network data to local storage; if no, send a reminder signal;
[0114] S200: Determine whether the type of the interrupt signal is an insertion interrupt signal; if yes, set the current limiting circuit; if no, enter S300;
[0115] S300: set the delay time, save the network data in the OPS box during the delay time; determine whether the delay is over; if yes, enter S400; if no, continue to determine;
[0116] S400: Determine whether to transmit network data to corresponding equipment; if yes, evaluate the interface protection system; determine whether the interface protection system is qualified; if yes, complete the interface protection test; if no, issue an alarm signal 1;
[0117] If not, alarm signal 2 is issued.
[0118] Part of the data in the above formula is calculated by removing the dimension and taking its numerical value. The formula is a formula closest to the actual situation obtained by software simulation of a large amount of collected data; the preset parameters and preset thresholds in the formula are set by technical personnel in this field according to actual conditions or obtained through simulation of a large amount of data.
[0119] The working principle of the present invention is as follows: the present invention installs a hot-swap controller in an OPS box, obtains real-time power line data through the hot-swap controller; connects the output of the hot-swap controller to the main controller of the OPS box, and sets configuration information for the main controller of the OPS box; determines whether the OPS box interface has a plug-in phenomenon according to the power line data; determines whether the type of the interrupt signal is an insertion interrupt signal; sets a delay time, and saves network data in the OPS box during the delay time; determines whether the delay ends; determines whether the network data is transmitted to a corresponding device; if yes, evaluates the interface protection system; if no, issues a second alarm signal; determines whether the interface protection system is qualified; if yes, completes the interface protection test; if no, issues a first alarm signal.
[0120] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. An interface protection system based on hot plug technology, characterized in that: Data preprocessing module, current limiting circuit module, delayed power-off module and safety assessment module; Data preprocessing module: Install a hot-swap controller in the OPS box to obtain real-time power line data through the hot-swap controller; the power line data includes: voltage data and current data; Connect the output of the hot-swap controller to the main controller of the OPS box, and set the configuration information for the main controller of the OPS box; determine whether the OPS box interface has unplugging phenomenon according to the power line data; If yes, it determines whether the main controller receives the interrupt signal; if yes, it determines the type of the interrupt signal and caches the network data to the local storage; if no, it issues a reminder signal; If not, continue to judge; Current limiting circuit module: determines whether the type of interrupt signal is an insertion interrupt signal; if yes, sets the current limiting circuit; if no, enters the delayed power-off module; Delayed power-off module: set the delay time, save the network data in the OPS box during the delay time; judge whether the delay is over; if yes, enter the safety assessment module; if no, continue to judge; Security assessment module: determine whether the network data is transmitted to the corresponding device; if yes, evaluate the interface protection system; determine whether the interface protection system is qualified; if yes, complete the interface protection test; if no, issue an alarm signal; If not, alarm signal 2 is issued.
2. The interface protection system based on hot plug technology according to claim 1, characterized in that: Also includes: User display module: used to display warning information of different colors to the user; wherein the warning information includes: reminder signal, alarm signal 1, alarm signal 2, warning signal, alarm signal 1, alarm signal 2.
3. The interface protection system based on hot plug technology according to claim 1, characterized in that: The main controller of the OPS box is configured with the following information: Enable the interrupt function in the settings of the main controller, configure the interrupt vector table according to the architecture and operating system of the main controller, and correspond the interrupt signal of the hot plug event to the corresponding interrupt handler one by one; set the interrupt signal priority corresponding to different devices; obtain the shutdown program in the program of the main controller, and execute the corresponding shutdown operation after receiving the interrupt signal of the hot plug event; release the resources and update the device status after the operation closes the resources.
4. The interface protection system based on hot plug technology according to claim 3, characterized in that: The interrupt signal priorities corresponding to different devices are set, including: Several pluggable devices in the OPS box are obtained from the database, and each pluggable device is scored; the pluggable devices are sorted from large to small according to the scores, and the main controller preferentially receives the pluggable devices with high scores.
5. The interface protection system based on hot plug technology according to claim 1, characterized in that: The determining whether the OPS box interface is unplugged or not according to the power line data includes: Set the standard power line variation range value, and determine whether the absolute value of the power line variation difference exceeds the standard power line variation range value; if yes, the OPS box interface has the phenomenon of unplugging and plugging; if no, the OPS box interface has not the phenomenon of unplugging and plugging.
6. The interface protection system based on hot plug technology according to claim 1, characterized in that: Determining the type of the interrupt signal includes: Retrieve the interrupt signal received by the main controller and determine whether the interrupt signal is a device insertion interrupt signal; if yes, mark the corresponding interrupt signal as signal one; if no, mark the corresponding interrupt signal as signal two; wherein signal one is a device insertion interrupt signal; signal two is a device removal interrupt signal.
7. The interface protection system based on hot plug technology according to claim 1, characterized in that: The caching of network data to local storage includes: Retrieve the network data that needs to be transmitted and set the cache path and cache rules; use the monitoring tool to view the cache usage in real time; determine whether there are any abnormalities in the usage; if yes, issue a warning signal; if no, continue to determine; the cache rules include: recording the cache data size and cache time, and setting the cache update strategy; the cache usage includes: cache hit rate, cache size changes, so as to adjust the cache strategy in time; abnormal situations include: the cache data size exceeds the set memory, and the cache time exceeds the set time.
8. The interface protection system based on hot plug technology according to claim 1, characterized in that: The current limiting circuit setting includes: Add overvoltage protection devices and electrostatic protection devices at the interface of the OPS box, and connect the current limiting switch and the fuse in series between the power cord and the device; set the current limiting threshold of the current limiting switch to determine whether the surge current generated when the device is plugged in exceeds the current limiting threshold; if yes, issue an alarm signal one; if no, retrieve the network data in the local storage to determine whether the network data passes the transmission check; if yes, complete the current limiting circuit design; if no, issue an alarm signal two.
9. The interface protection system based on hot plug technology according to claim 8, characterized in that: The determining whether the network data passes the transmission verification includes: A checksum mechanism is added during the data transmission process to determine whether the network data checksum during the data transmission process is consistent with the network data checksum cached locally; if yes, the network data passes the transmission checksum; if not, the network data fails the transmission checksum.
10. The interface protection system based on hot plug technology according to claim 1, characterized in that: The setting of the delay time includes: Retrieve the network data and cache time stored locally, and use the cache time as the preset delay time; set two access count thresholds marked as T1 and T2, respectively, where T2>T1; determine whether the number of times the corresponding network data is accessed exceeds the set access count threshold T2; If yes, the delay time is extended based on the preset delay time; If not, determine whether the number of times the corresponding network data is accessed is lower than the set access number threshold T1; if yes, shorten the delay time based on the preset delay time; if not, delay the process according to the preset delay time.
11. The interface protection system based on hot plug technology according to claim 1, characterized in that: The determining whether the delay is over includes: Retrieve the locally stored network data and determine whether the network data in the OPS box is consistent with the local network data. If yes, the delay ends; if not, the delay continues.
12. The interface protection system based on hot plug technology according to claim 1, characterized in that: The determining whether to transmit the network data to the corresponding device includes: Retrieve real-time power data and standard power line variation range values to determine whether the power line data is within the standard power line variation range values; if yes, transmit the network data to the corresponding device; if no, fail to transmit the network data to the corresponding device.
13. The interface protection system based on hot plug technology according to claim 1, characterized in that: The interface protection system is evaluated, including: Retrieve power line data and set a test cycle, and assign a1 to power line data that is always within the standard power line variation range within the set test cycle; Count the number of times that the power line data exceeds the standard power line variation range value within the set test cycle; set a number threshold, and determine whether the number of times the power line data exceeds the number threshold; if yes, assign a2 to the power line data that exceeds the standard power line variation range value; if no, assign a3 to the power line data that does not exceed the standard power line variation range value; wherein, 0<a1<a2<a3≤100; Determine whether the power-limiting circuit is subject to external electromagnetic interference; if yes, assign the corresponding power-limiting circuit to b1; if no, assign the corresponding power-limiting circuit to b2; wherein 0<b1<b2≤100.
14. The interface protection system based on hot plug technology according to claim 1, characterized in that: The determining whether the interface protection system is qualified includes: Retrieve the power line data scoring values a1, a2, a3, and the power limiting circuit scoring values b1, b2; By formula The final rating score is calculated; i is the number of power line data scoring values, j is the number of power limiting circuit scoring values; α and β are both proportional coefficients, and 0<α<1, 0<β<1; A qualified threshold is set to determine whether the final rating score exceeds the qualified threshold; if yes, the interface protection system is qualified; if no, the interface protection system is unqualified.
15. An interface protection method based on hot plug technology, applied to an interface protection system based on hot plug technology as claimed in any one of claims 1 to 14, characterized in that: include: S100: Install a hot-swap controller in the OPS box and obtain real-time power line data through the hot-swap controller; Connect the output of the hot-swap controller to the main controller of the OPS box, and set the configuration information for the main controller of the OPS box; determine whether the device is unplugged according to the power line data; if yes, determine whether the main controller receives an interrupt signal; if yes, determine the type of interrupt signal, and cache the network data to local storage; if no, send a reminder signal; S200: Determine whether the type of the interrupt signal is an insertion interrupt signal; Yes, set the current limiting circuit; If not, then go to S300; S300: set the delay time, and save the network data in the OPS box during the delay time; Determine whether the delay is over; if yes, proceed to S400; if no, continue to determine; S400: Determine whether to transmit network data to corresponding equipment; if yes, evaluate the interface protection system; determine whether the interface protection system is qualified; if yes, complete the interface protection test; if no, issue an alarm signal 1; If not, alarm signal 2 is issued.
Citation Information
Patent Citations
Interface hot-plugging method and device
CN107491406A