Hot plug protection circuit
By designing a hot-swap protection circuit, the insertion detection circuit and limit detection circuit are used to automatically detect the access status of the equipment, and power supply control is performed through the control unit and the power supply unit, the problem of possible damage to the equipment when plugging and unplugging is solved, and the convenience and reliability of the system are improved.
Patent Information
- Application Number
- CN202421508695.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2034-06-28
AI Technical Summary
Plug and unplug when the device is live, it may damage or affect the normal operation of the entire equipment system.
A hot-swap protection circuit is designed, including an insertion detection circuit, a limit detection circuit, a control unit, a power supply unit and a hot-swap conversion unit. This circuit automatically controls the power supply unit to supply power to the device to be plugged and unplugged to realize hot-swap protection by detecting the access status between the device to be plugged and unplugged and the device to be plugged and unplugged.
It realizes that the access status of the device to be plugged and unplugged is automatically detected and powered by controlling the power supply while the power is not used without powering continuously, improving the convenience and reliability of the system and avoiding equipment damage and system failure.
Smart Images

Figure CN222897059U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of hot plugging, in particular to a hot plugging protection circuit. Background Art
[0002] Hot plugging, or hot plugging, is a technology that allows users to insert or unplug hardware devices (or hardware modules) without turning off the system power.
[0003] In actual use of products, it is very common to plug and unplug devices, especially when the device is being repaired or poor contact is found. However, not all devices support hot-plugging. For devices that do not support hot-plugging, if the device is plugged and unplugged while it is powered, it is likely to damage or affect the normal operation of the entire device system. Utility Model Content
[0004] In view of this, the utility model provides a hot-swap protection circuit to solve the problem that the normal operation of the entire device system may be damaged or affected when the device is plugged in or out while it is powered.
[0005] The utility model provides a hot-plug protection circuit, the circuit comprising: a to-be-plugged device side module arranged on the to-be-plugged device and a pluggable target device side module arranged on the pluggable target device, the to-be-plugged device side module comprising an insertion detection circuit, a limit detection circuit, a first hot-plug conversion unit and a power supply unit, the power supply unit being connected to the first hot-plug conversion unit; the pluggable target device side module comprising a control unit;
[0006] The insertion detection circuit is used to detect the initial insertion state of the device to be plugged in and the plugging target device, and is connected to the control unit and outputs an insertion detection signal to the control unit when the device to be plugged in is plugged in the plugging target device;
[0007] The limit detection circuit is used to detect the complete connection state between the device to be plugged in and the pluggable object device, and is connected to the control unit and outputs a limit detection signal to the control unit when the device to be plugged in is inserted into the pluggable object device;
[0008] The control unit is used to control the power supply of the first hot-swap conversion unit and the device to be plugged in through the power supply unit based on the received insertion detection signal and the limit detection signal.
[0009] The above scheme first detects the preliminary connection state between the device to be plugged in and the plugged in object device through the insertion detection circuit, and then detects the complete connection state between the device to be plugged in and the plugged in object device through the limit detection circuit. According to the insertion detection signal output by the insertion detection circuit and the limit detection signal output by the limit detection circuit, the connection state and disconnection state of the device to be plugged in can be automatically detected, and after detecting that the device to be plugged in is stably inserted, the power supply unit controls the power supply of the first hot plug conversion unit and the device to be plugged in. The whole process does not require the device to be powered off, nor does it require the use of physical buttons for control, so that hot plug protection of the device to be plugged in is realized, thereby greatly improving the convenience and reliability of the system.
[0010] In an optional implementation, the to-be-plugged device side module further includes a first connector, and the plugged-in target device side module further includes a second connector;
[0011] The insertion detection circuit is connected to the first input terminal of the control unit through the first connector and the second connector in sequence;
[0012] The limit detection circuit is connected to the second input end of the control unit through the first connector and the second connector in sequence.
[0013] The above scheme inserts the device to be plugged in into the pluggable device through the first connector on the device side module to be plugged in and the second connector on the pluggable device side module, so that when the device to be plugged in is inserted into the pluggable device, the insertion detection circuit and the limit detection circuit are respectively connected to the control unit.
[0014] In an optional implementation, the insertion detection circuit includes a first pull-down resistor, a first end of the first pull-down resistor is grounded, a second end of the first pull-down resistor is connected to a first pin of the first connector, and is connected to a first input end of the control unit through the first connector and the second connector in sequence;
[0015] The limit detection circuit includes a limit switch, a first end of the limit switch is grounded, a second end of the limit switch is connected to the second pin of the first connector, and is connected to the second input end of the control unit through the first connector and the second connector in sequence.
[0016] The above scheme detects the initial insertion state between the device to be plugged in and the plug-in target device through a pull-down resistor, and then detects the full connection state between the device to be plugged in and the plug-in target device through a limit switch. According to the insertion detection signal output by the pull-down resistor and the limit detection signal output by the limit switch, the insertion state and disconnection state of the device to be plugged in can be automatically detected, thereby realizing hot-swap protection for the device to be plugged in.
[0017] In an optional implementation, the pluggable device side module further includes a first pull-up resistor, and the first input terminal of the control unit is connected to the first pull-up resistor.
[0018] In the above solution, when the device to be plugged in is not plugged in to the other device, the level of the first input terminal of the control unit is pulled up by the first pull-up resistor to input a high level voltage to the first input terminal of the control unit.
[0019] In an optional implementation, the limit detection circuit further includes a first resistor, and the second end of the limit switch is further connected to the first power supply end through the first resistor.
[0020] In the above solution, when the device to be plugged in is not fully inserted into the pluggable target device, the level of the second input terminal of the control unit is raised through the first power supply terminal and the first resistor to input a high level voltage to the second input terminal of the control unit.
[0021] In an optional implementation, the first output terminal of the control unit is connected to the enable terminal of the power supply unit to send a power supply enable signal to the power supply unit;
[0022] The first output end of the power supply unit is connected to the first input end of the device to be plugged in, and the second output end of the power supply unit is connected to the first input end of the first hot plug conversion unit to send a first enable signal to the first hot plug conversion unit; the first output end of the first hot plug conversion unit is connected to the second input end of the device to be plugged in.
[0023] In the above scheme, when the control unit receives a low-level insertion detection signal and a limit detection signal at the same time, the control unit sends a power supply enable signal to the power supply unit, so that the power supply unit supplies power to the hot-swap converter and the external device, thereby connecting the signal circuit.
[0024] In an optional implementation, the pluggable device side module further includes a second hot-plug conversion unit; and the third output end of the power supply unit is connected to the first input end of the second hot-plug conversion unit.
[0025] The above solution provides hot-plug protection for the device-side module to be plugged in through the second hot-plug conversion unit and the first hot-plug conversion unit.
[0026] In an optional implementation, a control end of the first hot-plug conversion unit is connected to a control end of the second hot-plug conversion unit; a communication end of the first hot-plug conversion unit is connected to a communication end of the second hot-plug conversion unit.
[0027] The first hot-plug conversion unit and the second hot-plug conversion unit of the above solution are connected to each other in a controlled manner and convert signals between the device to be plugged in and the plugged-in target device.
[0028] In an optional implementation, the module on the device side to be plugged in and out further includes a second pull-down resistor; and the enable end of the power supply unit is also grounded through the second pull-down resistor.
[0029] The above solution provides circuit protection for the connection between the power supply unit and the control unit through the second pull-down resistor to ensure the stability and accuracy of the power supply enable signal.
[0030] In an optional implementation, the module on the device side to be plugged in and out further includes a third pull-down resistor; and the second output end of the power supply unit is also grounded through the third pull-down resistor.
[0031] The above solution provides circuit protection for the connection between the power supply unit and the first hot-swap conversion unit through the third pull-down resistor, so as to ensure the stability and accuracy of the enabling signal.
[0032] The technical solution provided by the utility model may have the following beneficial effects:
[0033] The utility model first detects the preliminary access status between the device to be plugged in and the plug-in target device through the insertion detection circuit, and then detects the full access status between the device to be plugged in and the plug-in target device through the limit detection circuit. According to the insertion detection signal output by the insertion detection circuit and the limit detection signal output by the limit detection circuit, the access status and disconnection status of the device to be plugged in can be automatically detected, and after detecting that the device to be plugged in is stably inserted, the power supply unit controls the power supply of the first hot-swap conversion unit and the device to be plugged in. The whole process does not require the device to be powered off, nor does it require the use of physical buttons for control, so that hot-swap protection of the device to be plugged in is achieved, thereby greatly improving the convenience and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the specific implementation methods of the utility model or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 It is a structural schematic diagram of a hot-swap protection circuit according to an embodiment of the utility model;
[0036] Figure 2It is a structural schematic diagram of another hot-swap protection circuit according to an embodiment of the utility model;
[0037] Figure 3 It is a schematic diagram of the connection between the insertion detection circuit and the limit detection circuit and the control unit according to an embodiment of the utility model;
[0038] Figure 4 is a schematic diagram of connection between a power supply unit and a control unit according to an embodiment of the utility model;
[0039] Figure 5 is a schematic diagram of signal transmission of a hot-swap converter according to an embodiment of the utility model;
[0040] Figure 6 It is a structural schematic diagram of another hot-swap protection circuit according to an embodiment of the utility model. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiment of the utility model clearer, the technical solution in the embodiment of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiment of the utility model. Obviously, the described embodiment is a part of the embodiment of the utility model, not all the embodiments. Based on the embodiment of the utility model, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the utility model.
[0042] According to an embodiment of the utility model, a hot-swap protection circuit embodiment is provided. Figure 1 is a schematic diagram of a hot-swap protection circuit according to an embodiment of the utility model, such as Figure 1 As shown, the circuit includes:
[0043] A device-side module 1 to be plugged in and out is arranged on the device to be plugged in and out 3, and a plug-in target device-side module 2 is arranged on the plug-in target device, wherein the device-side module 1 to be plugged in and out comprises an insertion detection circuit 12, a limit detection circuit 11, a first hot-plug conversion unit 14, and a power supply unit 13, wherein the power supply unit 13 is connected to the first hot-plug conversion unit 14; the plug-in target device-side module 2 comprises a control unit 21;
[0044] The insertion detection circuit 12 is used to detect the initial insertion state of the device to be plugged in 3 and the pluggable object device, and is connected to the control unit 21 and outputs an insertion detection signal to the control unit 21 when the device to be plugged in 3 is plugged in the pluggable object device;
[0045] The limit detection circuit 11 is used to detect the complete connection state between the device to be plugged in 3 and the pluggable object device, and is connected to the control unit 21 and outputs a limit detection signal to the control unit 21 when the device to be plugged in 3 is plugged in the pluggable object device;
[0046] The control unit 21 is used to control the power supply of the first hot-swap conversion unit 14 and the device to be plugged in 3 through the power supply unit 13 based on the received insertion detection signal and the limit detection signal.
[0047] In an optional embodiment, in actual application, the module 1 on the device side to be plugged in can be set on the device to be plugged in 3 (such as the device to be plugged in 3 is inserted into the interface of the module 1 on the device side to be plugged in through a plug), and the plug-in object device can be a main control device that performs data collection or data processing on the device to be plugged in 3. When the module 1 on the device side to be plugged in is inserted into the module 2 on the device side to be plugged in, it means that the device to be plugged in 3 is also inserted into the plug-in object device.
[0048] In an alternative embodiment, see Figure 2 Another schematic diagram of the structure of a hot-swap protection circuit is shown, the device-side module 1 to be plugged in further includes a first connector 15, and the device-side module 2 to be plugged in further includes a second connector 23;
[0049] The insertion detection circuit 12 is connected to the first input terminal of the control unit 21 through the first connector 15 and the second connector 23 in sequence;
[0050] The limit detection circuit 11 is connected to the second input end of the control unit 21 through the first connector 15 and the second connector 23 in sequence.
[0051] Furthermore, when the module 1 on the device side to be plugged in is inserted into the module 2 on the device side to be plugged in, the first connector 15 is connected to the second connector 23. The first connector 15 and the second connector 23 can be connected as terminal block connectors, providing connection channels for various components in the hot-swap protection circuit to achieve high-speed data transmission and signal transmission. The model of the first connector 15 can be TX25-80P-LT-H1E (H1), and the model of the second connector 23 can be TX24-80R-LT-H1E (H2).
[0052] In an alternative embodiment, see Figure 3The insertion detection circuit 12 and the limit detection circuit 11 are respectively connected to the control unit 21, and the insertion detection circuit 12 includes a first pull-down resistor R1, a first end of the first pull-down resistor R1 is grounded, and a second end of the first pull-down resistor R1 is connected to the first pin of the first connector 15, and is connected to the first input end of the control unit 21 through the first connector 15 and the second connector 23 in sequence;
[0053] The limit detection circuit 11 includes a limit switch SQ, a first end of which is grounded, a second end of which is connected to the second pin of the first connector 15, and is connected to the second input end of the control unit 21 through the first connector 15 and the second connector 23 in sequence.
[0054] Furthermore, the first pull-down resistor R1 is a resistor directly connected to the ground, and is used to pull down the input voltage of the first input terminal of the control unit 21 through the first connector 15 and the second connector 23 in sequence when the device 3 to be plugged in is initially inserted into the plug-in object device, that is, the first pull-down resistor R1 inputs a low-level insertion detection signal to the first input terminal of the control unit 21; the first end of the limit switch SQ is grounded, and is used to close when the device 3 to be plugged in is completely inserted into the plug-in object device, and pull down the input voltage of the second input terminal of the control unit 21 through the first connector 15 and the second connector 23 in sequence, that is, the limit switch SQ inputs a low-level limit detection signal to the second input terminal of the control unit 21.
[0055] Further, such as Figure 2 As shown, the first pin of the first connector 15 can be 63pin (pin 63), and the second pin of the first connector 15 can be 60pin (pin 60). The second end of the first pull-down resistor R1 is connected to the first pin of the first connector 15, and is connected to the first pin of the second connector 23 through the first pin of the first connector 15. The first pin of the second connector 23 is connected to the first input end of the control unit 21 to output the insertion detection signal to the control unit 21; the second end of the limit switch SQ is connected to the second pin of the first connector 15, and is connected to the second pin of the second connector 23 through the second pin of the first connector 15. The second pin of the second connector 23 is connected to the second input end of the control unit 21 to output the limit detection signal to the control unit 21. The control unit 21 can be a single-chip microcomputer.
[0056] In an optional implementation, the pluggable device side module 2 further includes a first pull-up resistor R3, and the first input end of the control unit 21 is connected to the first pull-up resistor R3.
[0057] Furthermore, the first pull-up resistor R3 is used to pull up the input voltage of the first input terminal of the control unit 21 when the device 3 to be plugged in is not initially inserted into the pluggable object device, that is, the first pull-up resistor R3 inputs a high level signal to the first input terminal of the control unit 21 .
[0058] In an optional implementation, the limit detection circuit 11 further includes a first resistor R2 , and the second end of the limit switch SQ is further connected to the first power supply end VCC1 through the first resistor R2 .
[0059] Furthermore, the limit switch SQ is in a disconnected state when the device to be plugged in 3 is not fully inserted into the pluggable object device. At this time, the first power supply terminal VCC1 is connected to the second input terminal of the control unit 21 through the first resistor R2, the first connector 15, and the second connector 23 in sequence. The first power supply terminal VCC1 and the first resistor R2 pull up the input voltage of the second input terminal of the control unit 21, so that the first resistor R2 inputs a high-level signal to the second input terminal of the control unit 21 through the first connector 15 and the second connector 23 in sequence.
[0060] In an optional implementation, the first output terminal of the control unit 21 is connected to the enable terminal of the power supply unit 13 to send a power supply enable signal to the power supply unit 13;
[0061] The first output end of the power supply unit 13 is connected to the first input end of the device to be plugged in 3, and the second output end of the power supply unit 13 is connected to the first input end of the first hot plug conversion unit 14 to send a first enable signal to the first hot plug conversion unit 14; the first output end of the first hot plug conversion unit 14 is connected to the second input end of the device to be plugged in 3.
[0062] Further, the power supply unit 13 provides the required power to the device to be plugged in 3 and the hot plug converter (including the first hot plug conversion unit 14 and the second hot plug conversion unit 22) under the control of the control unit 21. Figure 4 The connection diagram of the power supply unit 13 and the control unit 21 is shown. When the insertion detection circuit 12 and the limit detection circuit 11 generate a low level at the same time, it means that the device to be plugged in and out 3 is completely inserted into the plug-in and unplugging object device, and the first output terminal of the control unit 21 outputs a power supply enable signal to the enable terminal of the power supply unit 13 (i.e. Figure 4The EN pin in the power supply unit 13 is connected to the input terminal VIN of the power supply unit 13, and the first output terminal of the power supply unit 13 is controlled to generate the power supply VCC3 to supply power to the hot-swap converter and the device to be plugged in 3. The second output terminal of the power supply unit 13 outputs the ZOOM_OE_EN enable signal (the ZOOM_OE_EN enable signal here is the first enable signal), which is used to signal the first hot-swap conversion unit 14 to enable.
[0063] In an optional implementation, the pluggable device side module 2 further includes a second hot-plug conversion unit 22 ; the third output end of the power supply unit 13 is connected to the first input end of the second hot-plug conversion unit 22 .
[0064] Furthermore, when the device 3 to be plugged in is fully inserted into the pluggable object device, the third output end of the power supply unit 13 is connected to the first input end of the second hot plug conversion unit 22, and the first output end of the power supply unit 13 is controlled to generate a power supply VCC3 to supply power to the second hot plug conversion unit 22, and the third output end of the power supply unit 13 outputs a ZOOM_OE_EN enable signal (the ZOOM_OE_EN enable signal here is the second enable signal), which is used to signal the second hot plug conversion unit 22 to enable.
[0065] In an optional implementation, the control end of the first hot-plug conversion unit 14 is connected to the control end of the second hot-plug conversion unit 22 ; the communication end of the first hot-plug conversion unit 14 is connected to the communication end of the second hot-plug conversion unit 22 .
[0066] Furthermore, when the device to be plugged in 3 is fully inserted into the target device, the first hot-plug conversion unit 14 is connected to the second hot-plug conversion unit 22 and starts working, which not only avoids electrostatic damage that may be caused during hot plugging, but also enhances the transmission stability of the communication signal.
[0067] See also Figure 5 The signal transmission schematic diagram of the hot-swap converter is shown, and the second hot-swap conversion unit 22 and the first hot-swap conversion unit 14 together constitute Figure 5 The hot-swap converter BUFFER in the power supply unit 13 outputs a ZOOM_OE_EN enable signal to the hot-swap converter BUFFER, and controls the hot-swap converter BUFFER to be enabled. The control end of the hot-swap converter BUFFER receives a control signal from the plug-in target device, and sends it to the device 3 to be plugged in, so as to control the device 3 to be plugged in to perform operations such as initialization. The communication end of the hot-swap converter BUFFER also receives a communication signal from the plug-in target device, and sends it to the device 3 to be plugged in, so as to realize communication data transmission with the device 3 to be plugged in.
[0068] In an optional implementation, the device-side module 1 to be plugged in further includes a second pull-down resistor R4; and the enable end of the power supply unit 13 is also grounded through the second pull-down resistor R4.
[0069] Furthermore, when the device to be plugged in and out 3 is fully inserted into the plug-in target device, the first output end of the control unit 21 is grounded in sequence through the second connector 23, the first connector 15 and the second pull-down resistor R4. The second pull-down resistor R4 provides circuit protection for the connection between the power supply unit 13 and the control unit 21 to ensure the stability and accuracy of the power supply enable signal.
[0070] In an optional implementation, the device-side module 1 to be plugged in further includes a third pull-down resistor R5; and the second output end of the power supply unit 13 is also grounded through the third pull-down resistor R5.
[0071] Furthermore, when the device to be plugged in 3 is fully inserted into the pluggable target device, the second output end of the power supply unit 13 is also grounded through the third pull-down resistor R5, providing circuit protection for the connection between the power supply unit 13 and the first hot plug conversion unit 14 to ensure the stability and accuracy of the enable signal.
[0072] In an optional implementation, this embodiment can be used for video conferencing terminal products and other systems with a PTZ camera 31. Figure 6 Another structural schematic diagram of a hot-swap protection circuit is shown, in which the device to be plugged in 3 can be a pan-tilt camera 31, and the plug-in target device can be an image signal acquisition device 4, which can be an image signal acquisition mainboard, in which an image acquisition chip 41 is provided; the module 1 on the side of the device to be plugged in is plugged / fixed on the pan-tilt camera 31, and the module 2 on the side of the plug-in target device is plugged / fixed on the image signal acquisition device 4, and the pan-tilt camera 31 is hot-swapped with the image signal acquisition device 4 through the module 1 on the side of the device to be plugged in and the module 2 on the side of the plug-in target device.
[0073] When the PTZ camera 31 is inserted into the image signal acquisition device 4, the output end of the image acquisition chip 41 is connected to the second input end of the PTZ camera 31 through the second hot-plug conversion unit 22 and the first hot-plug conversion unit 14 in sequence, so as to control the PTZ camera 31 to perform initialization and image acquisition. After the first hot-plug conversion unit 14 and the second hot-plug conversion unit 22 ensure reliable signal connection, the image acquisition chip 41 initializes and self-checks the PTZ camera 31. After the initialization and self-check are completed, the image acquisition chip 41 turns on the image acquisition function and controls the PTZ camera 31 to start normal operation.
[0074] Furthermore, when the pan-tilt camera 31 is inserted into the image signal acquisition device 4, the output end of the image acquisition chip 41 is connected to the input end of the second hot-plug conversion unit 22, and there are two connection lines between the first hot-plug conversion unit 14 and the second hot-plug conversion unit 22, namely, a control signal connection and a communication signal connection (when the plug-in object device is the image signal acquisition device 4, the communication signal connection can be a MIPI signal connection), and the first output end of the first hot-plug conversion unit 14 is connected to the second input end of the pan-tilt camera 31. Therefore, the image acquisition chip 41 can sequentially output a control signal to the pan-tilt camera 31 through the control end of the second hot-plug conversion unit 22, the control end of the first hot-plug conversion unit 14, and the second input end of the pan-tilt camera 31 to control the pan-tilt camera 31 to perform initialization and self-test operations; the image acquisition chip 41 can also sequentially output a MIPI signal to the pan-tilt camera 31 through the communication end of the second hot-plug conversion unit 22, the communication end of the first hot-plug conversion unit 14, and the second input end of the pan-tilt camera 31 to control the pan-tilt camera 31 to perform image acquisition operations. The entire circuit structure forms a closed-loop system, from the insertion detection of the pan-tilt camera 31, stable insertion confirmation, power supply control, signal enhancement to the start of image acquisition, each link is closely connected to ensure the safety and stability of the hot-plug process of the pan-tilt camera.
[0075] Based on the circuit structure of the hot-swap protection circuit in the above embodiment, its working principle and process can be as follows:
[0076] During the operation of the plug-in target device side module 2, the to-be-plugged device side module 1 is inserted, and the insertion detection circuit 12 outputs a low-level insertion detection signal at the 63pin pin of the first connector 15, and feeds back the insertion detection signal to the control unit 21 through the 63pin pin of the second connector 23 (when there is no to-be-plugged device 3 connected, the signal sent by the 63pin pin of the second connector 23 to the control unit 21 is a high-level signal, and when the to-be-plugged device 3 is connected, the pull-down resistor of the insertion detection circuit 12 pulls down the 63pin pin of the second connector 23, and the control unit 21 can detect the first low-level signal), and when the to-be-plugged device 3 is fully inserted, the limit switch SQ of the limit detection circuit 11 outputs a low-level limit detection signal at the 60pin pin of the first connector 15. The limit detection signal is fed back to the control unit 21 through the 60pin pin of the second connector 23 (when the device 3 to be plugged in is not fully inserted, the signal sent by the 60pin pin of the second connector 23 to the control unit 21 is a high-level signal. When the device 3 to be plugged in is fully inserted, the limit switch SQ of the limit detection circuit 11 pulls down the limit detection signal, and transmits the second low-level signal to the control unit 21 through the 60pin of the first connector 15 and the second connector 23 in turn). When the two detection signals generate a low level at the same time, it indicates that the device 3 to be plugged in is reliably inserted. At this time, the control unit 21 controls the power supply unit 13 to generate power supply to the device 3 to be plugged in and the hot-swap converter. The ZOOM_OE_EN enable signal is used to enable the hot-swap converter to connect the signals on both sides.
[0077] When the device 3 to be plugged in is a pan-tilt camera 31, and the plug-in object device is an image signal acquisition device 4, the image acquisition chip 41 of this embodiment controls the pan-tilt to complete the power-on self-test and MIPI signal acquisition work. The hot-swap converter supplies power after the pan-tilt camera 31 is reliably inserted, thereby avoiding the possibility of electrostatic damage during live plugging and unplugging, and the hot-swap converter has a signal enhancement function, which ensures the stability of long-distance transmission of communication signals and reliable hot-plug connection of control signals. After the hot-swap converter signal is reliably connected, the image acquisition chip 41 initializes the pan-tilt camera 31 and performs pan-tilt self-test. After the initialization and pan-tilt self-test are completed, the image acquisition chip 41 controls the pan-tilt camera 31 to start image acquisition. In this embodiment, the power supply, pan-tilt initialization and image acquisition functions will only be turned on when the pan-tilt camera 31 is inserted and the interrupt detects that the pan-tilt camera 31 is fully inserted, to prevent damage to the pan-tilt camera 31 and the image signal acquisition device 4 when poor contact or hot plugging of the device.
[0078] The following describes the high and low level scenarios generated by the insertion detection circuit 12 and the limit detection circuit 11 respectively:
[0079] Scenario 1: When the device 3 to be plugged in is not connected to the pluggable object device, the 63pin pin of the first connector 15 corresponding to the insertion detection circuit 12 is a high level signal. When the control unit 21 detects the high level signal, it confirms that the device 3 to be plugged in is not plugged in.
[0080] Scenario 2: When the device 3 to be plugged in is initially connected to the plug-in object device, the first low-level signal output by the insertion detection circuit 12 is transmitted to the control unit 21 through the 63pin pin (first pin) of the first connector 15. After the control unit 21 collects the first low-level signal, it confirms that the device 3 to be plugged in is initially inserted. However, if the device 3 to be plugged in is not fully inserted at this time, the limit switch SQ of the limit detection circuit 11 will output a high-level signal to the control unit 21. The control unit 21 collects the high-level signal through the 60pin pin (second pin) of the second connector 23, confirms that the device 3 to be plugged in is poorly plugged in, and will not turn on the power supply unit 13.
[0081] Scenario 3: When the device 3 to be plugged in is initially connected to the plug-in object device, the first low-level signal output by the insertion detection circuit 12 is transmitted to the control unit 21 through the 63pin pin (first pin) of the first connector 15. After the control unit 21 collects the first low-level signal, it confirms that the device 3 to be plugged in is initially inserted. When the device 3 to be plugged in is inserted to the bottom and has good contact, the limit switch SQ of the limit detection circuit 11 will output a second low-level signal to the control unit 21. The control unit 21 collects the second low-level signal through the 60pin pin (second pin) of the second connector 23, and confirms that the device 3 to be plugged in is fully inserted and has good contact according to the low-level signals simultaneously generated by the insertion detection circuit 12 and the limit detection circuit 11. At this time, the control unit 21 controls the power supply unit 13 to generate power to the device 3 to be plugged in and the hot-swap converter to connect the signal circuit.
[0082] In summary, the utility model first detects the preliminary connection state between the device to be plugged in and the plug-in target device through the insertion detection circuit, and then detects the full connection state between the device to be plugged in and the plug-in target device through the limit detection circuit. According to the insertion detection signal output by the insertion detection circuit and the limit detection signal output by the limit detection circuit, the connection state and disconnection state of the device to be plugged in can be automatically detected, and after detecting that the device to be plugged in is stably inserted, the power supply unit controls the power supply of the first hot-swap conversion unit and the device to be plugged in. The whole process does not require the device to be powered off, nor does it require the use of physical buttons for control, thereby realizing hot-swap protection of the device to be plugged in, thereby greatly improving the convenience and reliability of the system.
[0083] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A hot-swap protection circuit, characterized in that: The circuit comprises: a device-side module to be plugged in and out provided on the device to be plugged in and out and a pluggable device-side module to be plugged in and out provided on the pluggable device, the device-side module to be plugged in and out comprises an insertion detection circuit, a limit detection circuit, a first hot-pluggable conversion unit and a power supply unit, the power supply unit is connected to the first hot-pluggable conversion unit; the pluggable device-side module comprises a control unit; The insertion detection circuit is used to detect the initial insertion state of the device to be plugged in and the plugging target device, and is connected to the control unit and outputs an insertion detection signal to the control unit when the device to be plugged in is plugged in the plugging target device; The limit detection circuit is used to detect the complete connection state between the device to be plugged in and the pluggable object device, and is connected to the control unit and outputs a limit detection signal to the control unit when the device to be plugged in is inserted into the pluggable object device; The control unit is used to control the power supply of the first hot-swap conversion unit and the device to be plugged in through the power supply unit based on the received insertion detection signal and the limit detection signal.
2. The circuit according to claim 1, characterized in that The module on the device side to be plugged in and out further comprises a first connector, and the module on the device side to be plugged in and out further comprises a second connector; The insertion detection circuit is connected to the first input terminal of the control unit through the first connector and the second connector in sequence; The limit detection circuit is connected to the second input end of the control unit through the first connector and the second connector in sequence.
3. The circuit according to claim 2, characterized in that The insertion detection circuit comprises a first pull-down resistor, a first end of the first pull-down resistor is grounded, a second end of the first pull-down resistor is connected to a first pin of the first connector, and is connected to a first input end of the control unit through the first connector and the second connector in sequence; The limit detection circuit includes a limit switch, a first end of the limit switch is grounded, a second end of the limit switch is connected to the second pin of the first connector, and is connected to the second input end of the control unit through the first connector and the second connector in sequence.
4. The circuit according to claim 3, characterized in that The pluggable device side module further includes a first pull-up resistor, and the first input end of the control unit is connected to the first pull-up resistor.
5. The circuit according to claim 3, characterized in that The limit detection circuit further includes a first resistor, and the second end of the limit switch is further connected to the first power supply end through the first resistor.
6. The circuit according to any one of claims 1 to 5, characterized in that: The first output terminal of the control unit is connected to the enable terminal of the power supply unit to send a power supply enable signal to the power supply unit; The first output end of the power supply unit is connected to the first input end of the device to be plugged in, and the second output end of the power supply unit is connected to the first input end of the first hot-plug conversion unit to send a first enabling signal to the first hot-plug conversion unit; The first output end of the first hot-plug conversion unit is connected to the second input end of the device to be plugged in.
7. The circuit according to claim 6, characterized in that The pluggable device side module further includes a second hot-plug conversion unit; the third output end of the power supply unit is connected to the first input end of the second hot-plug conversion unit.
8. The circuit according to claim 7, characterized in that The control end of the first hot-plug conversion unit is connected to the control end of the second hot-plug conversion unit; the communication end of the first hot-plug conversion unit is connected to the communication end of the second hot-plug conversion unit.
9. The circuit according to claim 6, characterized in that The module on the device side to be plugged in further includes a second pull-down resistor; and the enable end of the power supply unit is also grounded through the second pull-down resistor.
10. The circuit according to claim 6, characterized in that The module on the device side to be plugged in further includes a third pull-down resistor; and the second output end of the power supply unit is also grounded through the third pull-down resistor.