CN212278251U - Intelligent gateway expansion board hot plug detection system - Google Patents

Intelligent gateway expansion board hot plug detection system Download PDF

Info

Publication number
CN212278251U
CN212278251U CN202021645395.8U CN202021645395U CN212278251U CN 212278251 U CN212278251 U CN 212278251U CN 202021645395 U CN202021645395 U CN 202021645395U CN 212278251 U CN212278251 U CN 212278251U
Authority
CN
China
Prior art keywords
pin
expansion board
detection
main control
control chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202021645395.8U
Other languages
Chinese (zh)
Inventor
董永
张超
刘济瑀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Semiconductor Technology Co ltd
Beijing Institute of Architectural Design Group Co Ltd
Original Assignee
Datang Semiconductor Technology Co ltd
Beijing Institute of Architectural Design Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Semiconductor Technology Co ltd, Beijing Institute of Architectural Design Group Co Ltd filed Critical Datang Semiconductor Technology Co ltd
Priority to CN202021645395.8U priority Critical patent/CN212278251U/en
Application granted granted Critical
Publication of CN212278251U publication Critical patent/CN212278251U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The utility model discloses an intelligent gateway expansion board hot plug detection system, which comprises an expansion board connector, a function expansion board and a main control chip; the detection pin PRSNT1# at one end of the extension board connector is electrically connected with the GPIO2 pin and the ADC pin of the main control chip respectively, the detection pin PRSNT2# at the other end of the extension board connector is electrically connected with the GPIO1 pin of the main control chip, and the main control chip is connected with the detection pin PRSNT 3578 # at the other end of the extension board connectorThe GPIO1 pin is also connected with a pull-up resistor R3Is electrically connected with an interface power supply; two gold fingers corresponding to the detection pin PRSNT1# and the detection pin PRSNT2# on the function expansion board pass through a resistor R2And (6) electrically connecting. The system enhances the reliability of hot plug detection, realizes the hot plug detection of the function expansion board and prevents the function of mistaken insertion of a standard PCIE card, can detect the type of the function expansion board under the condition that the function expansion board is not electrified, and has the advantages of simpler, more convenient, more accurate and more reliable detection process and more perfect function.

Description

Intelligent gateway expansion board hot plug detection system
Technical Field
The utility model relates to a plug card detects and discernment technical field, and more specifically the utility model relates to an intelligent gateway expansion board hot plug detecting system that says so.
Background
At present, when the intelligent gateway needs resource upgrade and function expansion, an expansion board needs to be inserted, the expansion board usually needs to be connected with the gateway body by means of a standard pcie x1 slot, and except three pins, namely GND, PRSNT1#, and PRSNT2#, interface signals of the other pins are generally self-defined. As shown in fig. 1, a pin PRSNT1# on a motherboard is grounded, a pin PRSNT2# is connected to an interface power supply, when the PCI Express card hot plug detection circuit is used, a gold finger on the PCI Express card is contacted with a corresponding pin on the motherboard, and the insertion state and validity of the PCI Express card are determined by a hot plug control logic.
The hot plug scheme of the existing intelligent gateway expansion board is based on the above standard PCIE hot plug detection circuit, and the hot plug detection principle based on the hot plug detection circuit is as follows: when no card is inserted, the hot plug detection signal is at a high level; and after the function expansion card is inserted, the hot plug detection signal is at a low level. The main control chip judges the insertion and extraction state of the function expansion card by detecting the level change of the hot plug detection signal, and then performs subsequent control.
The existing hot plug detection circuit for the intelligent gateway extension board is specifically shown in fig. 2, a PRSNT2# pin on the intelligent gateway extension board connector is connected with a GPIO pin of a main control chip for transmitting a hot plug detection signal, and the GPIO pin of the main control chip is further connected with a pull-up resistor. Meanwhile, the pin of the PRSNT1# on the main board side is suspended, and the gold finger of the card side corresponding to the PRSNT2# is directly grounded. The advantage of this is that it can be ensured that when a standard PCIE card is erroneously inserted into an intelligent gateway expansion slot, it is not recognized by the gateway expansion board connector (the gateway expansion board connector cannot recognize that a card is inserted). However, the scheme also has the following defects:
1. because only the pin PRSNT2# on the pcie x1 slot side is used for plug and pull detection, it cannot be ensured whether the PRSNT1# side is completely inserted. Therefore, the effect of plugging and unplugging detection is inevitably affected (this is also the reason why the detection pins are arranged on the two sides of the slot in the PCIE standard).
2. The function expansion cards corresponding to the intelligent gateway expansion board are divided into different types according to the communication interface types. The current hot plug design can only ensure the detection of the plug of the function expansion card, and the type of the function expansion card can only be identified by software after power-on, thereby realizing more complex realization.
Therefore, how to provide an intelligent gateway expansion board hot plug detection system with higher detection reliability and more complete functions is a problem that needs to be solved urgently by those skilled in the art.
SUMMERY OF THE UTILITY MODEL
In view of this, the utility model provides an intelligent gateway expansion board hot plug detecting system, this system use two detection pin PRSNT1#, PRSNT2# at expansion board connector both ends, strengthen the reliability that the hot plug detected to through the inside setting of system, outside realizing the hot plug function, can also just realize the type discernment of function extension card under the condition that the function expansion board is not electrified, solved current hot plug detection scheme reliability low, the loaded down with trivial details problem of type identification process.
In order to achieve the above purpose, the utility model adopts the following technical scheme:
in one aspect, the utility model provides an intelligent gateway expansion board hot plug detecting system, this system includes: the system comprises an expansion board connector, a function expansion board and a main control chip;
the detection pin PRSNT1# at one end of the extension board connector is electrically connected with the GPIO2 pin and the ADC pin of the main control chip respectively, and the GPIO2 pin and the ADC pin of the main control chip are also connected with each other through a resistor R1A ground, a detection pin PRSNT2# at the other end of the expansion board connector and the main boardThe GPIO1 pin of the master control chip is electrically connected, and the GPIO1 pin of the master control chip is also connected through a pull-up resistor R3Is electrically connected with an interface power supply;
two gold fingers on the function expansion board corresponding to the detection pin PRSNT1# and the detection pin PRSNT2# pass through a resistor R2Electrical connections, different types of said functional expansion board internal resistance R2Are different.
The utility model has the advantages that: the system uses two detection pins PRSNT1# and PRSNT2# at two ends of an expansion board connector to enhance the reliability of hot plug detection, the two detection pins PRSNT1# and PRSNT2# are respectively connected to a GPIO2 pin and a GPIO1 pin of a main control chip, through interaction between the two GPIO pins, the hot plug detection of a function expansion board and the detection function of preventing a standard PCIE card from being inserted mistakenly are realized, meanwhile, the detection pin PRSNT1# on the expansion board connector is also connected with an ADC pin of the main control chip, and in the function expansion card, a series resistor R is connected between gold fingers at two ends2After the function expansion card is inserted and detected, the different types of function expansion cards are connected with the resistor R in series2The resistance values of the ADC pins are different, the voltage values detected by the ADC pins are also different, the type of the function expansion board can be detected by the main control chip under the condition that the function expansion board is not electrified, the detection process of the system is simpler, more convenient, more accurate and more reliable, and the functions are more complete.
Further, the resistor R3Is greater than or equal to the resistance R210 times the resistance value of (a). To ensure that the GPIO1 pin can be based on a pull-up resistor R3And a resistor R connected in series in the function expansion card2The switching-in state of the GPIO1 pin is obviously distinguished from the input voltage, so that the high-low state of the input level is accurately judged by a pull-up resistor R3Is much larger than the resistance R2The resistance value of (c).
Further, the GPIO2 pin of the main control chip is also connected with a pull-down resistor R4And (6) electrically connecting. Pull-down resistor R4One device is not necessarily provided. Only has the resistor R4Can be at R1Under the condition of fixed resistance value, give R4Larger resistance value is selectedAnd the range is selected, so that more types of function expansion cards can be conveniently adapted and distinguished.
Further, the resistor R1、R2And R4There is the following relationship between:
Figure BDA0002625700020000031
in the formula, VilmaxIndicating the maximum voltage value, V, of the input low level of the corresponding pin of the main control chipioRepresenting the IO supply voltage value of the pin.
The resistance relationship in the above formula is mainly defined to ensure that the GPIO2 pin input is low when the function expansion board is inserted. And then can more accurate realization whether the card that inserts is the function extension card at present, can effectively prevent standard PCIE card mistake and insert.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of a conventional hot plug detection circuit for a standard PCI Express card;
fig. 2 is a schematic structural diagram of a conventional hot plug detection system for an intelligent gateway expansion board;
fig. 3 is a schematic structural diagram of an intelligent gateway expansion board hot plug detection system provided by the present invention;
fig. 4 is the embodiment of the utility model provides an in use intelligent gateway expansion board hot plug detecting system to realize the flow schematic diagram that the hot plug detected.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative work belong to the protection scope of the present invention.
On the one hand, refer to fig. 3, the embodiment of the utility model discloses an intelligent gateway expansion board hot plug detecting system, this system includes: the expansion board connector 2, the function expansion board 1 and the main control chip 3;
the detection pin PRSNT1# at one end of the extension board connector 2 is electrically connected with the GPIO2 pin and the ADC pin of the main control chip 3 respectively, and the GPIO2 pin and the ADC pin of the main control chip 3 are also connected with a resistor R1The detection pin PRSNT2# at the other end of the extension board connector 2 is electrically connected with the GPIO1 pin of the main control chip 3, and the GPIO1 pin of the main control chip 3 is also connected with the ground through a pull-up resistor R3Is electrically connected with an interface power supply;
two gold fingers corresponding to the detection pin PRSNT1# and the detection pin PRSNT2# on the function expansion board 1 pass through a resistor R2Electrical connection, different types of internal resistance R of the function expansion board 12Are different.
In particular, the resistance R3Is at least the resistance R210 times the resistance value of (a). To ensure that the GPIO1 pin can be based on a pull-up resistor R3And a resistor R connected in series in the function expansion card2The switching-in state of the GPIO1 pin is obviously distinguished from the input voltage, so that the high-low state of the input level is accurately judged by a pull-up resistor R3Is much larger than the resistance R2The resistance value of (c).
Specifically, the GPIO2 pin of the main control chip 3 is also connected to a pull-down resistor R4And (6) electrically connecting. Pull-down resistor R4One device is not necessarily provided. Only has the resistor R4Can be at R1Under the condition of fixed resistance value, give R4And the resistance value selection range is wider, so that more types of function expansion cards can be conveniently adapted and distinguished.
In particular, in order to ensure that the function expansion board 1 is insertedAnd the GPIO2 pin input is low. And then can more accurate realization whether the card that inserts at present is the judgement of function extension card, resistance R1、R2And R4The following relationship needs to be satisfied:
Figure BDA0002625700020000051
in the formula, VilmaxIndicating the maximum voltage value, V, of the input low level of the corresponding pin of the main control chipioRepresenting the IO supply voltage value of the pin.
Referring to fig. 4, the process of implementing hot plug detection by using the above hot plug detection system for an intelligent gateway expansion board is as follows:
card insertion detection: presetting a GPIO1 pin of a main control chip as input low level interruption, configuring a GPIO2 pin as output low level, setting an ADC pin to be disabled, and judging whether a card is inserted into the expansion board connector according to the input level state of the GPIO1 pin;
in a card-to-be-inserted state, a GPIO1 pin is set to be input and interrupted by a falling edge (low level); the GPIO2 pin is configured to output a low level; the ADC pin is not enabled. Because of the pull-up resistor R3Is much larger than the resistance R2The resistance value of GPIO1 pin input is high when no card is inserted; once a card is inserted, the GPIO1 pin input goes low, and an interrupt is generated to notify the main control chip.
For example: r31M Ω, R in a standard function expansion card2100K Ω. Then the GPIO1 pin input voltage is Vio11, i.e. 0.09VioThe low level can be accurately judged and the interrupt is triggered.
And (3) misplug detection: when the card is judged to be inserted into the expansion board connector, setting the GPIO2 pin as input, configuring the GPIO1 pin to output high level, and judging whether the card inserted into the expansion board connector is a function expansion board or not according to the level state input by the GPIO2 pin;
when the main control chip judges that a card is inserted, the GPIO2 pin is configured as input, and the internal power is pulled downResistance R4Enabling; the GPIO1 pin is then configured to output a high level. Detecting the state of a standard PCIE card, determining whether the standard PCIE card is the standard PCIE card, specifically, if the standard PCIE card is inserted, because the detection pin PRSNT1# and the detection pin PRSNT2# correspond to the card side golden finger which is directly short-circuited, the pin input of the GPIO2 is high level Vio. If the function expansion board matched with the intelligent gateway is inserted, the series resistance R between the detection pin PRSNT1# and the card side golden finger corresponding to the detection pin PRSNT2#, is detected2. The GPIO2 pin input voltage is:
Figure BDA0002625700020000061
by appropriate selection of R1、R2Due to the maximum voltage V of the main control chip in the intelligent gatewayilmax=0.3VioTherefore, it is required to
Figure BDA0002625700020000062
When applied to other platforms, according to VilmaxThe value range can vary. Through the resistance value setting, the GPIO2 pin input can be ensured to be at a low level. Thus, whether the inserted PCIE card is a standard PCIE card can be judged. If the PCIE card is the standard PCIE card, the power is not supplied to the card, and the abnormity is reported.
For example: some standard function expansion board R2When 100K Ω, 47K Ω, and 33K Ω, R4 and R1 are used, the input voltage of the GPIO2 pin is:
Figure BDA0002625700020000071
due to 0.1624VioV smaller than chipilmax(0.3Vio) The input may be judged to be low, and it is confirmed that the card is a recognizable standard function expansion card. If the card is a standard PCIE card, the input voltage of the GPIO2 pin is VioAnd is high.
And (3) type detection: when the card inserted into the expansion board connector is judged to be a function expansion board, enabling an ADC pin, measuring the voltage of a detection pin PRSNT1#, inquiring the model of the corresponding function expansion board from a preset voltage value and board card model correspondence table according to the voltage of the detection pin PRSNT1#, supplying power to the expansion board connector after inquiring the model of the corresponding function expansion board, and configuring the function expansion board;
after the main control chip judges that the inserted function expansion board matched with the intelligent gateway enters a function expansion card type detection state, the GPIO2 pin is changed into a pin without internal pull-down, an ADC pin is enabled, the voltage of a detection pin PRSNT1# is measured, and the calculation formula of the voltage is as follows:
Figure BDA0002625700020000072
then, the main control chip queries a preset 'voltage value-board card model' corresponding table in the system according to the read voltage value, and can judge what type of function expansion board is, and supply power and configure the function expansion board. If the voltage value does not conform to any type in the table at this stage, the function expansion board in the system is judged not to be, the power is not supplied to the function expansion board, and meanwhile, the abnormity is reported. The structure of the voltage value-board model correspondence table is substantially as shown in the following table 1:
TABLE 1 Voltage value-Board card model number correspondence table
Card type GPIO2 pin voltage value Parameter 1: supply voltage Parameter 2
1# 0.24Vio~0.26Vio 3.3V
2# 0.17Vio~0.19Vio 5V
3#
For example: standard function expansion board 1# inner R2100K Ω, R in standard function expansion board # 22150K Ω. At this stage, the input voltage of the GPIO2 pin when the 1# card is inserted is:
Figure BDA0002625700020000081
the input voltage of the GPIO2 pin when the 2# card is inserted is as follows:
Figure BDA0002625700020000082
and then the main control chip inquires a preset voltage value-board model corresponding table in the system according to the read voltage value, and the two inserted boards can be identified to be 1# and 2# respectively.
Card pulling detection: configuring a GPIO1 pin as an input high level interrupt, configuring a GPIO2 pin as an output low level, closing an ADC pin, and judging whether the function expansion board is pulled out or not according to the level state of the GPIO1 pin;
after the function expansion card is normally configured, the function expansion card enters a state to be pulled out, and a GPIO1 pin is configured to be input and interrupted in a rising edge (high level); the GPIO2 pin is configured to output low, turning off the ADC pin. The system waits for the function expansion card to be pulled out and interrupted.
And (3) state recovery: after the function expansion board is pulled out, the expansion board connector is powered off, and the configuration state of the pins in the step of detecting the plug-in card is recovered.
When the GPIO1 pin detects a high-level interrupt, the function expansion card is proved to be pulled out. The mainboard cuts off the power of the expansion board connector and restores the related detection circuit of the intelligent gateway expansion board to the state of the card to be inserted.
The above process can be visualized by the following table 2:
TABLE 2 Hot-swap status recording Table
Figure BDA0002625700020000083
In the present embodiment, the pull-down resistor R4And is not required. Only having pull-down resistor R4Can be at the resistance R1Under the condition of fixed resistance value, the pull-down resistor R is supplied4And the resistance value selection range is wider, so that the function expansion cards of more types can be conveniently distinguished.
In addition, the GPIO function and the ADC function in part of the main control chip can be multiplexed on the same pin, so that the GPIO2 function and the ADC function can be switched through software.
To sum up, the embodiment of the utility model discloses intelligent gateway function expansion board hot plug detecting system compares with prior art, has following advantage:
1. the system uses two detection pins PRSNT1# and PRSNT2# at two ends of an expansion board connector to enhance the reliability of hot plug detection;
2. two detection pins PRSNT1# and PRSNT2# of the expansion board connector are respectively connected to a GPIO2 pin and a GPIO1 pin of the main control chip (wherein the GPIO2 pin is internally provided with a matched pull-down resistor R4). The hot plug detection of the function expansion board and the function of preventing the false detection of a standard PCIE card are realized through the interaction between the two GPIO pins;
3. the detection signal of the detection pin PRSNT1# at one end of the expansion board connector is simultaneously accessed to one ADC input pin of the main control chip. In the function expansion board, a series resistor R is connected between two detection pins2. After the function expansion board is inserted and detected, an ADC pin on the main control chip, two GPIO pins for detection, a pull-down resistor R1 on the main control chip and a series resistor R2 on the function expansion board form a voltage detection circuit. Due to different types of function expansion in-board series resistors R2The voltage values detected by the ADC pins are different. Through the voltage value, the main control chip can judge the type of the function expansion board under the condition that the function expansion board is not electrified, and directly performs corresponding configuration, so that the detection efficiency and the accuracy are improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (4)

1. The utility model provides an intelligent gateway expansion board hot plug detecting system which characterized in that includes: the system comprises an expansion board connector, a function expansion board and a main control chip;
the detection pin PRSNT1# at one end of the extension board connector is electrically connected with the GPIO2 pin and the ADC pin of the main control chip respectively, and the GPIO2 pin and the ADC pin of the main control chip are also connected with each other through a resistor R1The detection pin PRSNT2# at the other end of the extension board connector is electrically connected with the GPIO1 pin of the main control chip, and the GPIO1 pin of the main control chip is also connected with the ground through a pull-up resistor R3Is electrically connected with an interface power supply;
two gold fingers on the function expansion board corresponding to the detection pin PRSNT1# and the detection pin PRSNT2# pass through a resistor R2And (6) electrically connecting.
2. The hot plug detection system for the expansion board of the intelligent gateway as claimed in claim 1, wherein the resistor R is a resistor R3Is greater than or equal to the resistance R210 times the resistance value of (a).
3. The hot plug detection system of claim 1, wherein the GPIO2 pin of the main control chip is further connected with a pull-down resistor R4And (6) electrically connecting.
4. The hot plug detection system for an intelligent gateway expansion board according to claim 3, wherein the resistor R is connected to the hot plug detection system1、R2And R4There is the following relationship between:
Figure FDA0002625700010000011
in the formula, VilmaxIndicating the maximum voltage value, V, of the input low level of the corresponding pin of the main control chipioRepresenting the IO supply voltage value of the pin.
CN202021645395.8U 2020-08-10 2020-08-10 Intelligent gateway expansion board hot plug detection system Active CN212278251U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202021645395.8U CN212278251U (en) 2020-08-10 2020-08-10 Intelligent gateway expansion board hot plug detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202021645395.8U CN212278251U (en) 2020-08-10 2020-08-10 Intelligent gateway expansion board hot plug detection system

Publications (1)

Publication Number Publication Date
CN212278251U true CN212278251U (en) 2021-01-01

Family

ID=73899233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202021645395.8U Active CN212278251U (en) 2020-08-10 2020-08-10 Intelligent gateway expansion board hot plug detection system

Country Status (1)

Country Link
CN (1) CN212278251U (en)

Similar Documents

Publication Publication Date Title
CN111835631A (en) Hot plug detection system and detection method for intelligent gateway expansion board
US9128691B2 (en) Method and terminal for selecting internal circuit according to USB interface status
CN105302755B (en) A kind of PCIE boards and its monitoring method with monitoring function
US7880475B2 (en) Type A USB receptacle with plug detection
US6543690B2 (en) Method and apparatus for communicating with a host
US20030212841A1 (en) Method and apparatus of controlling an operational mode of a USB device
WO2018045687A1 (en) Plug module recognition circuit and method
US6813672B1 (en) EMC enhancement for differential devices
CN109387737B (en) Needle seat and plastic shell connection state detection system
CN103198033A (en) Apparatus and method of identifying a USB or an MHL device
CN102087624A (en) Circuit structure and method for realizing USB interface functional verification test on the basis of FPGA module
US20190361819A1 (en) Apparatus For Adapting Interface Type Of Peripheral Device And Method Thereof
CN112799985B (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
CN201789630U (en) Headset plugging detection circuit
CN210776245U (en) Optical module
CN212278251U (en) Intelligent gateway expansion board hot plug detection system
US6523071B1 (en) Process and apparatus for configuring the direct memory access transfer mode of a motherboard or host computer
CN117907806A (en) Fault analysis processing equipment and fault direction judging device of bidirectional signal line
US7000123B2 (en) Device for automatically controlling a voltage applied to a data conductor in a serial link
CN110297789B (en) Method for realizing USB OTG function
CN210119772U (en) Multiplexing interface device
EP2687993B1 (en) USB apparatus and embedded system incorporating same
US20130067119A1 (en) Boot up configuration with usb data pins in embedded systems
CN102879705B (en) Flexible circuit board touch screen IC passage is short/out of circuit test method
CN212159996U (en) Configuration circuit for identifying hardware version of board card

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant