Hard disk hot plug connector and implementation method thereof

By introducing a function conversion module and signal processing module into the hard disk connector, switching the functions of the ground pin and identifying the plug-in and unplugging status signals, the problem that traditional hard disk connectors cannot identify the plug-in and unplugging status in time is solved, and the reliability and stability of hard disk hot-swap are improved.

CN119690892APending Publication Date: 2025-03-25成都芯忆联信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510086164.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

Traditional hard disk connectors cannot identify the plug-in and unplugging status of the hard disk in time, resulting in data transmission errors, system crashes or hard disk damage when the power supply is unstable.

Method used

Design a hard disk hot-swap connector, including a connection module, a signal processing module and a function conversion module. The function of the ground pin is switched through the function conversion module, and the plug-in and unplugging status signals are generated, and these signals are identified and transmitted through the signal processing module to accurately detect the plug-in and unplugging status of the hard disk.

Benefits of technology

By performing function conversion and signal processing on the ground pin of the hard disk interface, accurate detection and signal transmission of the hard disk plug-in and unplugging state is achieved, significantly improving the reliability and stability of the hard disk hot plug-in and ensuring the normal operation of the storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690892A_ABST
    Figure CN119690892A_ABST
Patent Text Reader

Abstract

The invention provides a hard disk hot plug connector and an implementation method thereof.The hard disk hot plug connector is connected with or separated from external equipment and comprises a connector body, and a connecting module, a signal processing module and a function conversion module are arranged on the connector body; the connection module is used for being connected with the external equipment, and the function conversion module is connected to the connection module so as to switch the functions of the connection module; the signal processing module is connected to the function conversion module so as to receive a switching signal of the function conversion module. The technical problem that a traditional hard disk connector cannot recognize the plugging state in time is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and more particularly to a hard disk hot-plug connector and an implementation method thereof. Background Art

[0002] In the current computer storage field, hard disks are key data storage devices, and their hot-swap performance is crucial. Traditional hard disk connectors have certain limitations in design, and only focus on basic signal transmission and power supply functions during hot-swap. For example, when connecting, the ground pin or pre-charge pin is usually contacted first, followed by the high-speed signal pin. Although it can prevent the influence of static electricity and surge current on high-speed signal lines and power lines to a certain extent, it cannot accurately tell the system whether the hard disk is fully inserted in place. This leads to the fact that in actual applications, when the hard disk is inserted, the system may not be able to know the accurate status of the hard disk in time, and start related operations when the power supply is still unstable, which may cause abnormal phenomena such as data transmission errors, system crashes, and even hard disk damage. When the hard disk is unplugged, due to the lack of an effective early warning mechanism, the system cannot be prepared for power-off in time, which may cause data loss or cache data confusion. Summary of the invention

[0003] The purpose of the present invention is to overcome the defects of the prior art and provide a hard disk hot-swap connector and an implementation method thereof, which aims to solve the technical problem that the traditional hard disk connector cannot timely identify the plug-in status.

[0004] To achieve the above object, the present invention adopts the following technical solutions:

[0005] A hard disk hot-swap connector is used to connect or disconnect with an external device, including a connector body, on which a connection module, a signal processing module and a function conversion module are provided; the connection module is used to connect with the external device, and the function conversion module is connected to the connection module to switch the function of the connection module; the signal processing module is connected to the function conversion module to receive a switching signal of the function conversion module.

[0006] In one embodiment, the connection module includes a connection component and a grounding component. The connection component is arranged adjacent to the grounding component. The connection component is used to be plugged into the external device. One end of the grounding component is used to connect to the external device, and the other end is connected to the function conversion module to switch the function of the grounding component.

[0007] In one embodiment, the grounding component includes a plurality of grounding pins, and when the connector body is connected to the external device, the function conversion module switches one of the grounding pins to a status pin.

[0008] In one embodiment, when the connector body is separated from the external device, the function conversion module switches the status pin to the ground pin.

[0009] In one embodiment, the function conversion module includes a conversion circuit and a control unit. The conversion circuit is connected to the grounding component and is used to realize the electrical function conversion between the grounding pin and the status pin. The control unit is connected to the conversion circuit and is used to control the working state of the conversion circuit.

[0010] In one embodiment, the ground pin is elastically connected to the connector body to achieve switching between the ground pin and the status pin.

[0011] In one embodiment, the ground pin is longer than the status pin.

[0012] In one embodiment, the signal processing module includes a signal filtering unit and a signal judging unit, the signal filtering unit is used to filter out interference signals in the switching signal, and the signal judging unit is used to judge the switching signal.

[0013] A method for realizing hard disk hot plugging by using a connector comprises the following steps:

[0014] Inserting or removing the connector body from an external device generates a corresponding connection signal;

[0015] The function conversion module receives and identifies the connection signal, switches the function of the connection module, and generates a function switching signal;

[0016] The function switching signal is received and identified by a signal processing module to generate plug-in status information.

[0017] In one embodiment, the step of receiving and identifying the connection signal through the function conversion module, switching the function of the connection module, and generating the function switching signal includes:

[0018] When the function conversion module receives an insertion signal, a ground pin in the connection module is converted into a status pin to generate an insertion stable status signal;

[0019] When the function conversion module receives a pull-out signal, the status pin is converted into a ground pin to generate a pull-out status signal.

[0020] Compared with the prior art, the beneficial effects of the present invention are as follows: by performing targeted processing on the ground pins of different types of hard disk interfaces, adjusting their lengths and converting their functions into status pins, accurate detection of the hard disk plug-in and plug-out status and signal transmission are achieved in cooperation with the internal circuit of the hard disk, which significantly improves the reliability and stability of hard disk hot plugging and ensures the normal operation of the storage system during the hard disk hot plugging operation.

[0021] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of a module of a hard disk hot-swap connector provided by the present invention;

[0023] Figure 2 A structural schematic diagram of a hard disk hot-swap connector provided by the present invention;

[0024] Figure 3 A schematic diagram of a signal processing module of a hard disk hot-swap connector provided by the present invention;

[0025] Figure 4 A module schematic diagram of a function conversion module of a hard disk hot-swap connector provided by the present invention;

[0026] Figure 5 A schematic diagram of the working state of a hard disk hot-swap connector provided by the present invention;

[0027] Figure 6 A schematic flow chart of a method for realizing hard disk hot plugging using a connector provided by the present invention;

[0028] Figure 7 A schematic diagram of power-on changes of a grounding component in a method for implementing hard disk hot plugging using a connector provided by the present invention.

[0029] Reference numerals

[0030] 1. Connector body; 2. Connection module; 21. Connection component; 22. Grounding component; 221. Grounding pin; 222. Status pin; 3. Signal processing module; 31. Signal filtering unit; 32. Signal judgment unit; 4. Function conversion module; 41. Conversion circuit; 42. Control unit; 5. Status indication module. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not 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.

[0033] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0034] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0035] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0036] See also Figures 1 to 5 As shown, an embodiment of the present invention discloses a hard disk hot-swappable connector for connecting or disconnecting with an external device, including a connector body 1, on which a connection module 2, a signal processing module 3 and a function conversion module 4 are provided; the connection module 2 is used to connect with the external device, and the function conversion module 4 is connected to the connection module 2 to switch the function of the connection module 2; the signal processing module 3 is connected to the function conversion module 4 to receive the switching signal of the function conversion module 4.

[0037] Specifically, the connector body 1 is the physical carrier of the entire hard disk hot-swap connector to protect the internal module from external physical impact and electromagnetic interference. Its size and shape can be accurately adapted and installed with the hard disk and external devices, and maintain the integrity of its own structure during multiple plug-in and pull-out operations. As a key part for establishing an electrical connection with an external device, the connection module 2 can be closely matched with the external device interface to ensure the high rate and accuracy of data transmission and the stability of power supply. It is understandable that it adopts a standardized interface pin design, such as the pin layout in the common SFF-8639 (U.2), E1.S, E1.L, E3.S, E3.L, M.2 and other interface standards, to achieve wide compatibility with different devices. The specific model is not specifically limited in this embodiment. The function conversion module 4 is used to dynamically adjust the function of the connection module 2. During the insertion or removal of the hard disk, the relevant pin functions in the connection module 2 are switched according to specific electrical signal changes and preset logical rules. For example, at the initial stage of hard disk insertion, the normal function of the connection module 2 may be maintained; when the hard disk is detected to be close to being fully inserted, the function conversion operation is triggered to change the functional properties of specific pins. This dynamic switching capability is one of the core elements for realizing intelligent control of hard disk hot plugging, ensuring that the system can correctly identify the hard disk status and respond accordingly at different plug-in and unplug stages. The signal processing module 3 is responsible for receiving the switching signal sent by the function conversion module 4, identifying the valid signal through the logic judgment circuit, transmitting the processed accurate signal to the control unit 42 of the system, and analyzing and processing it, so that the system can perform subsequent operations according to the actual status of the hard disk, such as starting the hard disk initialization program or executing the safe shutdown process.

[0038] In one embodiment, the connection module 2 includes a connection component 21 and a grounding component 22. The connection component 21 is arranged adjacent to the grounding component 22. The connection component 21 is used to be plugged into the external device. One end of the grounding component 22 is used to connect to the external device, and the other end is connected to the function conversion module 4 to switch the function of the grounding component 22.

[0039] Specifically, the structural design of the connection component 21 is precisely adapted to the common external device interface. Whether it is a server, storage array or other compatible device, as long as the standard interface specifications are followed, the connection component 21 can be accurately docked. It can be understood that the connection component 21 adopts a standardized pin arrangement and size specifications. During the plugging and unplugging process, the pins can be tightly and firmly embedded in the corresponding slots of the external device interface, ensuring low-resistance, high-stability electrical connections, and laying the foundation for high-speed data transmission and stable power supply. Furthermore, in this embodiment, the connection component 21 is a gold finger for connecting to an external device, specifically in the form of a row of metal sheets or pins arranged on the contact surface of the connector body 1. These metal parts are generally made of materials with good conductivity such as copper or copper alloys, and are specially gold-plated, so that when the connector body 1 is docked with an external device, electrical connection and signal transmission are achieved. For different interface standards (such as SFF-8639 (U.2), E1.S, E1.L, E3.S, E3.L, M.2, etc.), the number, arrangement, spacing and functional definition of the gold fingers are different to meet the connection needs and electrical performance requirements of the corresponding devices.

[0040] In one embodiment, the grounding component 22 includes a plurality of grounding pins 221 . When the connector body 1 is connected to the external device, the function conversion module 4 switches one of the grounding pins 221 to a status pin 222 .

[0041] Specifically, the grounding component 22 includes a plurality of grounding pins 221 (i.e., GND pins). The number of grounding pins 221 is reasonably configured based on different interface standards (such as SFF-8639 (U.2), E1.S, E1.L, E3.S, E3.L, M.2, etc.) and the requirements of external devices for electrical grounding, ensuring that sufficient grounding paths can be provided under various working conditions to achieve a stable grounding effect. In terms of layout, the grounding pins 221 are distributed at key locations where the connector is connected to external devices, and cooperate with the signal pins of the connection component 21 to avoid signal interference, ensure the shortest path of the grounding loop, and reduce the grounding impedance.

[0042] When the connector body 1 is connected to an external device, the function conversion module 4 accurately selects one of the ground pins 221 for function conversion based on the pre-set logic rules and the detected electrical parameter changes. It can be understood that the GND pins include three categories: idle GND, signal shielding GND and power loop GND, and the priority of selecting function conversion is: idle GND>signal shielding GND>power loop GND. When it is detected that the hard disk insertion process has reached a specific stage, such as all mechanical connections are in place and the initial electrical contact is stable, the control circuit in the function conversion module 4 will act quickly to cut off the connection between the ground pin 221 and the original ground line, and through the internal signal modulation circuit, select a ground pin 221 according to this priority and reconfigure it as a status pin 222 that can transmit specific status information to the outside.

[0043] In one embodiment, when the connector body 1 is separated from the external device, the function conversion module 4 switches the state pin 222 to the ground pin 221 .

[0044] Specifically, when the connector body 1 begins to separate from the external device, since the function conversion module 4 monitors the connection status at all times, it confirms the start of the separation action by capturing signals of state changes such as reduced contact pressure and changes in the current loop, and the function conversion module 4 responds quickly according to the preset reverse conversion program. At this time, the pin that originally served as the status pin 222 to transmit the hard disk plug-in status information to the outside needs to restore its original grounding function to ensure the electrical stability of the device in subsequent states. The switching circuit in the function conversion module 4 acts quickly to cut off the connection between the status pin 222 and the relevant signal transmission line, and at the same time re-establishes its path with the ground line, so that the status pin 222 becomes the ground pin 221, thereby once again assuming the responsibility of providing a stable ground reference potential for the device.

[0045] In one embodiment, the function conversion module 4 includes a conversion circuit 41 and a control unit 42. The conversion circuit 41 is connected to the grounding component 22 to realize the electrical function conversion between the grounding pin 221 and the status pin 222. The control unit 42 is connected to the conversion circuit 41 to control the working state of the conversion circuit 41.

[0046] Specifically, the function conversion module 4 is the core hub for realizing intelligent and dynamic functions of the hard disk hot-swap connector, and is constructed by the conversion circuit 41 and the control unit 42. When it is necessary to convert the ground pin 221 to the state pin 222, the conversion circuit 41 quickly cuts off the connection path between the ground pin 221 and the earth, and connects it to the signal conditioning circuit, and optimizes the signal output by the state pin 222, so that it can be recognized by the system as valid information representing the hard disk plug-in status in a stable and accurate state. In the reverse conversion, that is, when the state pin 222 is changed back to the ground pin 221, the conversion circuit 41 also operates in an orderly manner to restore the ground path to ensure that the electrical performance of the device is not affected.

[0047] The control unit 42 has a pre-programmed intelligent logic algorithm built in, which closely interacts with the connection status information fed back by the connection module 2 and the changes in electrical parameters transmitted by the signal processing module 3 to monitor the plugging and unplugging process of the hard disk in real time. Once the key state of the connection module 2 or the signal processing module 3 is identified, the control unit 42 immediately sends a precise instruction to the conversion circuit 41 to trigger the corresponding function conversion action, accurately controls each step of the conversion circuit 41, and ensures that the entire conversion process is highly synchronized with the actual plugging and unplugging state of the hard disk.

[0048] In one embodiment, the ground pin 221 is elastically connected to the connector body 1 to achieve switching between the ground pin 221 and the status pin 222 .

[0049] Specifically, the ground pin 221 is connected to the connector body 1 in the form of an elastic metal sheet or an elastic contact, so as to realize an elastic connection between the ground pin 221 and the connector body 1. When the connector body 1 is connected to an external device, due to this elastic connection, the ground pin 221 can produce a certain elastic deformation during the insertion process according to the slight position difference of the external device interface or the difference in insertion force. That is, under normal conditions, the ground pin 221 will maintain its grounding function, but when the insertion operation reaches a certain extent, the elastic connection allows the ground pin 221 to be displaced or deformed under the action of mechanical stress, creating conditions for the subsequent function switching of the ground pin 221 and the status pin 222.

[0050] Furthermore, during the insertion process, when the ground pin 221 switches to the status pin 222, when a certain insertion depth or pressure is reached, the elastic deformation of the elastic connection part will push the ground pin 221 into closer contact with the conversion circuit 41 in the function conversion module 4 or cause the ground pin 221 to be separated to a certain extent from the original ground circuit, thereby providing a physical basis for the function conversion module 4 to convert it into the status pin 222.

[0051] In one embodiment, the length of the ground pin 221 is greater than that of the status pin 222 .

[0052] Specifically, during the connection between the hard disk connector and the external device, the longer design of the ground pin 221 ensures that it can first contact the grounding part of the external device. In the initial stage of the insertion operation, the long ground pin 221 can quickly establish a stable ground connection, provide a safe electrical reference for the entire system, and promptly guide the static electricity and electromagnetic interference generated by the equipment to ensure the stability of subsequent electrical signal transmission. The status pin 222 is relatively short and only works after the hard disk is inserted to a certain depth. When the ground pin 221 has completed the initial grounding and the hard disk is close to being fully inserted, the status pin 222 forms an effective connection with the relevant circuit. At this time, the function conversion module 4 can convert it into a channel for transmitting hard disk insertion status information according to system requirements.

[0053] During the hot-swap process, the long ground pin 221 contacts first, which can effectively prevent the damage to the hard disk and the system caused by the accumulation of static electricity and electromagnetic interference due to the failure to establish ground in time, and enhance the anti-interference ability of the system. Secondly, the status pin 222 contacts and converts the function later, avoiding the transmission of wrong status signals when the hard disk is not fully in place, improving the accuracy of the hard disk insertion status detection, reducing the problems such as abnormal system startup or data transmission errors caused by misjudgment, improving the reliability and stability of hard disk hot-swap, and ensuring the normal operation of the data storage system.

[0054] Furthermore, the length of the ground pin 221 is 4.4 mm, and the length of the status pin 222 is 2.9 mm.

[0055] Specifically, in this embodiment, a 4.4 mm long ground pin 221 is used to fully contact the corresponding grounding part when the hard disk is connected to an external device. In the initial stage of the insertion process, its sufficient length ensures the rapid establishment of the grounding path, and can efficiently guide the static electricity generated during the operation of the device and the external electromagnetic interference that may be suffered into the earth, creating a stable and safe electrical environment for the entire connection process. For example, in a complex electronic equipment environment such as a server, there are a large number of electromagnetic signals. The long ground pin 221 can effectively resist these interferences and ensure the normal operation of the hard disk and related equipment. The length of the 2.9 mm status pin 222 is adapted to its specific functional requirements. As the hard disk insertion operation gradually deepens, when the grounding has been stably established and the hard disk is almost fully inserted, the status pin 222 begins to play a role. At this time, its shorter length can ensure accurate contact with the relevant circuit nodes at the right time, so that the function can be converted by the function conversion module 4 later, thereby reliably transmitting the hard disk insertion status signal to the system.

[0056] On the one hand, it ensures the orderly switching of grounding and status feedback functions in time and space, avoiding functional confusion or erroneous triggering caused by unreasonable pin length. During the hard disk hot-swap process, this orderliness greatly improves the accuracy of the system's judgment of the hard disk status, effectively reduces abnormal situations such as system freezes and data read and write errors caused by misjudgment, and significantly improves the reliability of hard disk hot-swap. On the other hand, precise length design also helps to optimize the internal space layout of the connector, realize the efficient allocation of each pin function in a limited space, improve the overall performance and stability of the connector, and provide strong support for the stable use of hard disks in different devices.

[0057] Furthermore, the signal processing module 3 includes a signal filtering unit 31 and a signal judging unit 32, wherein the signal filtering unit 31 is used to filter out interference signals in the switching signal, and the signal judging unit 32 is used to judge the switching signal.

[0058] Specifically, the signal filtering unit 31 is mainly responsible for purifying the switching signal from the function conversion module 4. In the actual operation environment of electronic equipment, there are various types of interference sources, such as electromagnetic radiation, power supply noise, etc., which will be mixed into the switching signal. It can be understood that the signal filtering unit 31 can effectively remove high-frequency noise and other clutter interference by adopting specific filtering technology, such as capacitor filtering, inductor filtering or a combination thereof, to ensure that the signal input to the signal judgment unit 32 has a high degree of purity.

[0059] The signal judgment unit 32 performs accurate analysis and judgment based on the filtered signal, and has built-in preset logic rules and threshold settings, which are determined based on the electrical characteristics and state change rules of the hard disk during hot plugging. For example, when the received signal level remains stable within a specific time range and meets the preset level range of the hard disk being plugged in or out, the signal judgment unit 32 can accurately determine the current state of the hard disk.

[0060] Through the effective filtering of the signal filtering unit 31, the quality of the signal is greatly improved, and the possibility of misjudgment caused by interference signals is reduced, so that the signal judgment unit 32 can more reliably identify the real status of the hard disk. At the same time, the precise judgment ability of the signal judgment unit 32 provides the system with accurate hard disk status information, and the system can make reasonable responses based on this information, such as safely starting related operations after the hard disk is firmly inserted, and timely backing up data and preparing for system power-off before the hard disk is unplugged, thereby improving the safety and stability of hard disk hot plugging and effectively protecting the integrity of data and the normal operation of the device.

[0061] Furthermore, a status indication module 5 is also provided on the connector body 1 , and the status indication module 5 is connected to the signal processing module 3 to display the connection status between the connector body 1 and the external device.

[0062] Specifically, the main function of the status indication module 5 is to intuitively show the user the connection status between the connector body 1 and the external device. It can be implemented in a variety of forms. In this embodiment, different states are indicated by light-emitting diodes (LEDs). When the connector is connected to the external device normally and the hard disk is firmly inserted, the status indication module 5 lights up a green LED; when the connection is abnormal or the hard disk is in the process of hot plugging, a yellow or red LED will be lit to prompt the user. Further, after processing and judging the switching signal from the function conversion module 4, the signal processing module 3 transmits the final connection status information to the status indication module 5. The status indication module 5 drives the corresponding indication element to work according to the received information. This connection method ensures the timeliness and accuracy of the status indication and can reflect the connection status of the hard disk in real time. Users do not need to use complex detection equipment or view system logs, but only need to observe the display of the status indication module 5 to quickly understand the connection status of the hard disk, so that they can be more handy when performing hot plug operations or system maintenance. In scenarios such as server rooms, administrators can quickly scan the status indicator module 5 to promptly discover hard disk connection problems and take corresponding measures, which greatly improves work efficiency, reduces system troubleshooting time caused by hard disk connection abnormalities, and ensures the stable operation of the data storage system.

[0063] See also Figure 6 and Figure 7 As shown, a method for implementing hard disk hot swapping using a connector comprises the following steps:

[0064] S600, inserting or disconnecting the connector body 1 from an external device to generate a corresponding connection signal;

[0065] Specifically, a connection signal is generated when the connector body 1 is inserted into or removed from an external device. During the insertion operation, as the physical contact between the connector and the external device becomes closer, the electrical connection state of each pin of the connection module 2 changes, thereby generating a series of signals representing the connection process; during the removal process, the disconnection of the pins also causes signal changes. These connection signals contain rich information, such as the tightness of the connection, whether there is poor contact, etc.

[0066] S610, receiving and identifying the connection signal through the function conversion module 4, switching the function of the connection module 2, and generating a function switching signal;

[0067] Specifically, the function conversion module 4 can accurately distinguish different connection states based on the built-in specific algorithm and logic judgment mechanism. When it is detected that the insertion action reaches a certain level, for example, the ground pin 221 has been stably connected and other key pins begin to contact, the function conversion module 4 will trigger the switching operation of the connection module 2 function and generate a function switching signal. In this process, the accurate recognition of the connection signal by the function conversion module 4 is the key link to ensure the correct execution of subsequent operations, which can effectively avoid function switching errors caused by misjudgment.

[0068] S620: Receive and identify the function switching signal through the signal processing module 3, and generate plug-in status information.

[0069] Specifically, the signal processing module 3 receives the function switching signal from the function conversion module 4. The signal filtering unit 31 in the signal processing module 3 first purifies the signal to remove possible noise and interference to ensure the purity of the signal. Subsequently, the signal judgment unit 32 analyzes the processed signal according to preset standards and rules to generate accurate plug-in status information. For example, when the function switching signal meets the characteristic parameters of the hard disk being fully inserted, the signal judgment unit 32 determines that the hard disk is firmly inserted and transmits this information to the system.

[0070] In one embodiment, the step of receiving and identifying the connection signal through the function conversion module 4, switching the function of the connection module 2, and generating the function switching signal includes:

[0071] S611, when the function conversion module 4 receives an insertion signal, a ground pin 221 in the connection module 2 is converted into a state pin 222, generating a plug-in state signal;

[0072] Specifically, when the function conversion module 4 receives an insertion signal, it indicates that the hard disk is being inserted into an external device. At this time, a ground pin 221 in the connection module 2 is converted to a status pin 222. In the initial insertion stage, the long ground pin 221 is the first to contact and establish grounding to ensure electrical stability. As the hard disk connector is stably connected to the external device, the function conversion module 4 recognizes that the insertion process has reached a specific stage based on the preset logic and electrical parameter changes, and quickly switches the selected ground pin 221 to the status pin 222. For example, when a hard disk with an interface such as SFF-8639 (U.2) is inserted, the conversion may be triggered according to the contact sequence and electrical characteristic changes of a specific pin. This stable insertion status signal can accurately inform the system that the hard disk is close to a fully inserted state, avoiding the system from performing operations such as data reading and writing when the hard disk is not fully in place, and effectively preventing data damage or system errors caused by unstable hard disk connection.

[0073] Furthermore, during the hard disk insertion process, the longer ground pin 221 in the initial stage preferentially contacts to power on the hard disk, but at this time the status pin 222 has not yet effectively participated. As the hard disk is further inserted, when it is close to being fully inserted, the shorter status pin 222 begins to play a role. The hard disk controller starts and runs the SBL program, the signal filter unit 31 is initialized and outputs a high level by default, and only a low level that lasts for more than 1us (software setting value) can be output by the signal filter unit 31. During this period, since the hard disk is not fully inserted, the signal output by the status pin 222 (i.e., the insertion status signal) remains in the initial state. Until the hard disk is fully inserted, the insertion status signal becomes a low level and meets the output conditions of the signal filter unit 31, it indicates that the hard disk is inserted firmly. At this time, the system can start subsequent operations according to the signal, such as initializing DDR and NAND particles, loading the operating system, etc., which effectively avoids abnormal phenomena caused by unstable power supply during the hard disk insertion process, and ensures that the system is started only after the hard disk is stably connected.

[0074] S612: When the function conversion module 4 receives a pull-out signal, the state pin 222 is converted to a ground pin 221 to generate a pull-out state signal.

[0075] Specifically, when the function conversion module 4 receives the unplugging signal, it means that the hard disk is about to be unplugged from the external device. At this time, the status pin 222 is converted to the ground pin 221. At the moment when the hard disk is unplugged, the system needs to respond quickly to protect the data and the device. The function conversion module 4 promptly restores the status pin 222 to the ground pin 221 to ensure that the device can still maintain a good grounding state during the unplugging process, and continue to resist possible electromagnetic interference and static electricity accumulation. At the same time, it also indicates to the system that the hard disk has begun to be unplugged. The system can perform operations such as data caching and stopping related read and write processes in advance based on this, reducing the risk of data loss caused by the sudden unplugging of the hard disk, and ensuring the security and stability of the system.

[0076] Furthermore, during the process of hard disk unplugging, when the hard disk starts to be unplugged, the signal output by the status pin 222 will change rapidly. Since the status pin 222 inside the hard disk responds first, once the action of the hard disk being unplugged is detected, the status pin 222 will immediately change state, switch to the ground pin 221, and output the unplugging status signal at the same time. The signal filtering unit 31 works normally, and a high level lasting more than 20ns (software setting value) will be output by the signal filtering unit 31, and the high level output by the signal filtering unit 31 will trigger the hard disk power-off interrupt. At this time, even if the external power supply of the hard disk is normal, the system will start the power-off process, complete the power-off procedure, and prepare for power-off in advance, thereby reducing the requirement for backup power energy, ensuring the safety and stability of the system during the hard disk unplugging process, and avoiding data loss or equipment damage caused by sudden power failure.

[0077] The above examples are only used to further illustrate the technical content of the present invention, so that readers can understand it more easily, but they do not mean that the implementation of the present invention is limited to this. Any technical extension or re-creation made according to the present invention is protected by the present invention. The protection scope of the present invention shall be subject to the claims.

Claims

1. A hard disk hot-swap connector for connecting or disconnecting with an external device, characterized in that: It includes a connector body, on which a connection module, a signal processing module and a function conversion module are provided; the connection module is used to connect to the external device, and the function conversion module is connected to the connection module to switch the function of the connection module; the signal processing module is connected to the function conversion module to receive the switching signal of the function conversion module.

2. A hard disk hot-swap connector according to claim 1, characterized in that: The connection module includes a connection component and a grounding component. The connection component is arranged adjacent to the grounding component. The connection component is used to be plugged into the external device. One end of the grounding component is used to connect to the external device, and the other end is connected to the function conversion module to switch the function of the grounding component.

3. A hard disk hot-swap connector according to claim 2, characterized in that: The grounding component includes a plurality of grounding pins. When the connector body is connected to the external device, the function conversion module switches one of the grounding pins to a status pin.

4. A hard disk hot-swap connector according to claim 3, characterized in that: When the connector body is separated from the external device, the function conversion module switches the status pin to the ground pin.

5. A hard disk hot-swap connector according to claim 4, characterized in that: The function conversion module includes a conversion circuit and a control unit. The conversion circuit is connected to the grounding component and is used to realize the electrical function conversion between the grounding pin and the status pin. The control unit is connected to the conversion circuit and is used to control the working state of the conversion circuit.

6. A hard disk hot-swap connector according to claim 5, characterized in that: The ground pin is elastically connected to the connector body to achieve switching between the ground pin and the status pin.

7. A hard disk hot-swap connector according to claim 4, characterized in that: The ground pin is longer than the status pin.

8. The hard disk hot-swap connector according to claim 1, characterized in that: The signal processing module includes a signal filtering unit and a signal judging unit. The signal filtering unit is used to filter out interference signals in the switching signal, and the signal judging unit is used to judge the switching signal.

9. A method for realizing hot plugging of a hard disk using a connector, characterized in that: The following steps are involved: Inserting or removing the connector body from an external device generates a corresponding connection signal; The function conversion module receives and identifies the connection signal, switches the function of the connection module, and generates a function switching signal; The function switching signal is received and identified by a signal processing module to generate plug-in status information.

10. The method for realizing hard disk hot plugging by using a connector according to claim 9, characterized in that: The step of receiving and identifying the connection signal through the function conversion module, switching the function of the connection module, and generating a function switching signal comprises: When the function conversion module receives an insertion signal, a ground pin in the connection module is converted into a status pin to generate an insertion stable status signal; When the function conversion module receives a pull-out signal, the status pin is converted into a ground pin to generate a pull-out status signal.