CN111858264A - A method, system, device and medium for preventing wrongly pulling out cables - Google Patents

A method, system, device and medium for preventing wrongly pulling out cables Download PDF

Info

Publication number
CN111858264A
CN111858264A CN202010570094.1A CN202010570094A CN111858264A CN 111858264 A CN111858264 A CN 111858264A CN 202010570094 A CN202010570094 A CN 202010570094A CN 111858264 A CN111858264 A CN 111858264A
Authority
CN
China
Prior art keywords
plug
cable
buckle
pcie link
response
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.)
Withdrawn
Application number
CN202010570094.1A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010570094.1A priority Critical patent/CN111858264A/en
Publication of CN111858264A publication Critical patent/CN111858264A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

本发明公开了一种防止线缆错误拔出的方法、系统、设备和存储介质,方法包括以下步骤:判断线缆插头的卡扣与连接器卡扣连接是否正常;响应于线缆插头的卡扣与连接器卡扣的连接不正常,向PCH发送低电平的中断信号;响应于中断信号触发PCH的中断,启动插头对应的PCIE链路的热插拔以断开PCIE链路;以及判断PCIE链路是否断开,并响应于PCIE链路断开,将线缆拔出。本发明提出的方案通过将线缆插头的卡扣和金手指的管脚建立连接,当连接出现异常时启动风险PCIE链路的规范热插拔,终止问题链路的数据传输,避免暴力热插拔可能导致的服务器宕机。

Figure 202010570094

The invention discloses a method, system, device and storage medium for preventing wrongly pulling out a cable. The method includes the following steps: judging whether the buckle of the cable plug is normally connected with the buckle of the connector; The connection between the buckle and the connector buckle is abnormal, and a low-level interrupt signal is sent to the PCH; in response to the interrupt signal triggering the interruption of the PCH, the hot-plug of the PCIE link corresponding to the plug is started to disconnect the PCIE link; Whether the PCIE link is down, and in response to the PCIE link being down, unplug the cable. The solution proposed by the present invention establishes a connection between the buckle of the cable plug and the pin of the golden finger, starts the standardized hot-plug of the risk PCIE link when the connection is abnormal, terminates the data transmission of the problem link, and avoids violent hot-plug Unplugging may cause server downtime.

Figure 202010570094

Description

一种防止线缆错误拔出的方法、系统、设备及介质A method, system, device and medium for preventing wrongly pulling out cables

技术领域technical field

本发明涉及服务器领域,更具体地,特别是指一种防止线缆错误拔出的方法、系统、计算机设备及可读介质。The present invention relates to the field of servers, and more particularly, to a method, a system, a computer device and a readable medium for preventing a cable from being pulled out incorrectly.

背景技术Background technique

GPU服务器为深度学习、科学计算、图形处理等多种场景提供快速、稳定、弹性的计算服务,为人工智能技术的快速发展和方案落地提供了算力支撑;传统机架式服务器可以减少占用空间,但同样受空间限制,很难在有限空间里同时塞下高性能CPU和高性能GPU,并且同时满足散热要求。使用Cable(线缆)在外部把CPU服务器和GPU服务器互联,实现了传统RACK(机架)服务器的功能扩展,可以满足某些特定场景和应用的需要;互联总线可使用PCIe(Peripheral Component Interconnect express,高速串行计算机扩展总线标准)。GPU servers provide fast, stable and flexible computing services for deep learning, scientific computing, graphics processing and other scenarios, and provide computing power support for the rapid development of artificial intelligence technology and the implementation of solutions; traditional rack-mounted servers can reduce the space occupied , but also limited by space, it is difficult to pack a high-performance CPU and a high-performance GPU at the same time in a limited space, and meet the cooling requirements at the same time. The use of Cable (cable) to connect the CPU server and GPU server externally realizes the function expansion of the traditional RACK (rack) server, which can meet the needs of some specific scenarios and applications; the interconnect bus can use PCIe (Peripheral Component Interconnect express , the high-speed serial computer expansion bus standard).

根据实际业务需要选择合适的PCIe带宽,为保证PCIe信号的高性能传输,在CPU服务器扩展口安装PCIe Repeater转接卡,实现PCIe连接器或OCP连接器到MiniSAS连接器的接口转换,同时为PCIe信号的远距离传输提供中继功能;使用Cable在外部把CPU服务器和GPU服务器互联,这种扩展方案比较常见;由于Cable位于机箱外部,存在Cable被拔出的可能,如果在系统正常运行中Cable被人为误拔出,正常业务被中断,非规范热插拔可能导致CPU服务器宕机。Select the appropriate PCIe bandwidth according to the actual business needs. To ensure the high-performance transmission of PCIe signals, install a PCIe Repeater adapter card in the expansion port of the CPU server to realize the interface conversion from PCIe connector or OCP connector to MiniSAS connector. The long-distance transmission of the signal provides the relay function; the use of the cable to connect the CPU server and the GPU server externally is a common expansion scheme; since the cable is located outside the chassis, the cable may be pulled out. If the cable is in normal operation of the system Unplugged by mistake, normal business is interrupted, and non-standard hot swap may cause CPU server downtime.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例的目的在于提出一种防止线缆错误拔出的方法、系统、计算机设备及计算机可读存储介质,通过将线缆插头的卡扣和金手指的管脚建立连接,能够容易感知线缆插头的卡扣与连接器的卡扣的连接是否出现异常,当连接出现异常时启动风险PCIE链路的规范热插拔,终止问题链路的数据传输,避免暴力热插拔可能导致的服务器宕机。In view of this, the purpose of the embodiments of the present invention is to provide a method, system, computer device and computer-readable storage medium for preventing wrongly pulling out a cable, by establishing a connection between the buckle of the cable plug and the pin of the gold finger , It can easily detect whether the connection between the buckle of the cable plug and the buckle of the connector is abnormal. When the connection is abnormal, start the standardized hot-plug of the risk PCIE link, terminate the data transmission of the problem link, and avoid violent hot-plug Unplugging may cause server downtime.

基于上述目的,本发明实施例的一方面提供了一种防止线缆错误拔出的方法,包括如下步骤:判断线缆插头的卡扣与所述连接器卡扣连接是否正常;响应于所述线缆插头的卡扣与所述连接器卡扣的连接不正常,向PCH发送低电平的中断信号;响应于所述中断信号触发PCH的中断,启动所述插头对应的PCIE链路的热插拔以断开所述PCIE链路;以及判断所述PCIE链路是否断开,并响应于所述PCIE链路断开,将所述线缆拔出。Based on the above purpose, one aspect of the embodiments of the present invention provides a method for preventing wrong pull-out of a cable, including the following steps: judging whether the buckle of the cable plug is normally connected to the connector buckle; in response to the The connection between the buckle of the cable plug and the buckle of the connector is not normal, and a low-level interrupt signal is sent to the PCH; in response to the interrupt signal triggering the interruption of the PCH, the thermal circuit of the PCIE link corresponding to the plug is started. plugging to disconnect the PCIE link; and judging whether the PCIE link is disconnected, and pulling out the cable in response to the disconnection of the PCIE link.

在一些实施方式中,还包括:响应于所述中断信号触发BMC的中断,导通声光报警电路。In some embodiments, the method further includes: in response to the interruption signal triggering the interruption of the BMC, turning on the sound and light alarm circuit.

在一些实施方式中,还包括:响应于所述PCIE链路断开,关闭所述声光报警电路。In some embodiments, the method further includes: in response to the disconnection of the PCIE link, turning off the sound and light alarm circuit.

在一些实施方式中,所述判断线缆插头的卡扣与所述插头的金手指的管脚的连接是否正常包括:判断所述插头的金手指的管脚对应的中断信号是否产生上升沿或下降沿。In some embodiments, the judging whether the connection between the buckle of the cable plug and the pin of the golden finger of the plug is normal includes: judging whether the interrupt signal corresponding to the pin of the golden finger of the plug generates a rising edge or falling edge.

本发明实施例的另一方面,还提供了一种防止线缆错误拔出系统,包括:第一判断模块,配置用于判断线缆插头的卡扣与所述连接器卡扣连接是否正常;中断模块,配置用于响应于所述线缆插头的卡扣与所述连接器卡扣连接不正常,向PCH发送低电平的中断信号;执行模块,配置用于响应于所述中断信号触发PCH的中断,启动所述插头对应的PCIE链路的热插拔以断开所述PCIE链路;以及第二判断模块,配置用于判断所述PCIE链路是否断开,并响应于所述PCIE链路断开,将所述线缆拔出。In another aspect of the embodiments of the present invention, there is also provided a system for preventing erroneous unplugging of cables, including: a first judging module, configured to judge whether the clasp of the cable plug is normally connected to the clasp of the connector; an interrupt module, configured to send a low-level interrupt signal to the PCH in response to an abnormal connection between the clip of the cable plug and the connector clip; an execution module, configured to trigger in response to the interrupt signal The interruption of the PCH starts hot-plugging of the PCIE link corresponding to the plug to disconnect the PCIE link; and a second judging module is configured to judge whether the PCIE link is disconnected, and respond to the The PCIE link is disconnected, and the cable is unplugged.

在一些实施方式中,还包括:报警模块,配置用于响应于所述中断信号触发BMC的中断,导通声光报警电路。In some embodiments, it further includes: an alarm module, configured to trigger the interruption of the BMC in response to the interruption signal, and turn on the sound and light alarm circuit.

在一些实施方式中,报警模块还配置用于:响应于所述PCIE链路断开,关闭所述声光报警电路。In some embodiments, the alarm module is further configured to: in response to the disconnection of the PCIE link, turn off the sound and light alarm circuit.

在一些实施方式中,所述第一判断模块还配置用于:判断所述插头的金手指的管脚对应的中断信号是否产生上升沿或下降沿。In some embodiments, the first judgment module is further configured to: judge whether the interrupt signal corresponding to the pin of the golden finger of the plug generates a rising edge or a falling edge.

本发明实施例的又一方面,还提供了一种计算机设备,包括:至少一个处理器;以及存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现如上方法的步骤。In yet another aspect of the embodiments of the present invention, there is also provided a computer device, comprising: at least one processor; and a memory, where the memory stores computer instructions that can be executed on the processor, and the instructions are executed by the processor. The processor implements the steps of the above method when executed.

本发明实施例的再一方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时实现如上方法步骤的计算机程序。In yet another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, where the computer-readable storage medium stores a computer program that implements the above method steps when executed by a processor.

本发明具有以下有益技术效果:通过将线缆插头的卡扣和金手指的管脚建立连接,能够容易感知线缆插头的卡扣与连接器的卡扣的连接是否出现异常,当连接出现异常时启动风险PCIE链路的规范热插拔,终止问题链路的数据传输,避免暴力热插拔可能导致的服务器宕机。The invention has the following beneficial technical effects: by establishing the connection between the buckle of the cable plug and the pin of the gold finger, it is easy to sense whether the connection between the buckle of the cable plug and the buckle of the connector is abnormal, and when the connection is abnormal At the same time, start the standardized hot-plug of risky PCIE links, terminate the data transmission of the problem link, and avoid the server downtime that may be caused by violent hot-plug.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can also be obtained according to these drawings without creative efforts.

图1为本发明提供的防止线缆错误拔出的方法的实施例的示意图;FIG. 1 is a schematic diagram of an embodiment of a method for preventing a cable from being pulled out incorrectly according to the present invention;

图2为CPU服务器和GPU服务器互联的示意图;Fig. 2 is the schematic diagram of CPU server and GPU server interconnection;

图3为连接器和线缆插头的示意图;3 is a schematic diagram of a connector and a cable plug;

图4为机械连通性检测电路的示意图;4 is a schematic diagram of a mechanical connectivity detection circuit;

图5为本发明提供的防止线缆错误拔出的计算机设备的实施例的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an embodiment of a computer device for preventing wrongly pulling out a cable provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention will be further described in detail below with reference to the specific embodiments and the accompanying drawings.

需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities with the same name but not the same or non-identical parameters. It can be seen that "first" and "second" It is only for the convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and subsequent embodiments will not describe them one by one.

基于上述目的,本发明实施例的第一个方面,提出了一种防止线缆错误拔出的方法的实施例。图1示出的是本发明提供的防止线缆错误拔出的方法的实施例的示意图。如图1所示,本发明实施例包括如下步骤:Based on the above objective, in the first aspect of the embodiments of the present invention, an embodiment of a method for preventing wrongly pulling out a cable is provided. FIG. 1 shows a schematic diagram of an embodiment of a method for preventing wrong cable pulling out provided by the present invention. As shown in Figure 1, the embodiment of the present invention includes the following steps:

S1、判断线缆插头的卡扣与所述连接器卡扣连接是否正常;S1. Determine whether the connection between the buckle of the cable plug and the buckle of the connector is normal;

S2、响应于所述线缆插头的卡扣与所述连接器卡扣的连接不正常,向PCH发送低电平的中断信号;S2. In response to the abnormal connection between the buckle of the cable plug and the buckle of the connector, send a low-level interrupt signal to the PCH;

S3、响应于中断信号触发PCH的中断,启动插头对应的PCIE链路的热插拔以断开PCIE链路;以及S3. In response to the interruption of the PCH triggered by the interruption signal, the hot-plug of the PCIE link corresponding to the plug is started to disconnect the PCIE link; and

S4、判断PCIE链路是否断开,并响应于PCIE链路断开,将线缆拔出。S4. Determine whether the PCIE link is disconnected, and in response to the disconnection of the PCIE link, unplug the cable.

图2为CPU服务器和GPU服务器互联的示意图。PCIe Repeater(中继)板卡1位于CPU服务器(CPU server)上,互联接口2分别位于CPU服务器和GPU服务器(GPU server)上,声光报警电路3位于PCIe Repeater板卡1上。CPU服务器和GPU服务器通过PCIe Cable互联,在CPU服务器端和GPU服务器端均通过互联接口2连接线缆;互联接口2一方面实现电气连接用于通信,另一方面实现机械连接用于固定;Cable插入连接器时先完成电气连接,再完成机械连接,机械连接晚于电气连接;Cable拔出连接器先断开机械连接,再断开电气连接,断开机械连接早于断开电气连接。中断信号(interrupt)由互联接口2的机械连接产生,并且Cable两端互联接口2的机械连接都可以产生,PCIe Repeater板卡1输出中断信号(interrupt)到主板BMC和PCH,声光报警电路3由主板BMC的I2C总线控制。FIG. 2 is a schematic diagram of the interconnection between the CPU server and the GPU server. The PCIe Repeater (relay) board 1 is located on the CPU server (CPU server), the interconnection interface 2 is located on the CPU server and the GPU server (GPU server) respectively, and the sound and light alarm circuit 3 is located on the PCIe Repeater board 1. The CPU server and the GPU server are interconnected through PCIe Cable, and the cables are connected through the interconnection interface 2 on the CPU server end and the GPU server end; the interconnection interface 2 realizes electrical connection for communication on the one hand, and mechanical connection for fixation on the other hand; Cable When the connector is inserted, the electrical connection is completed first, and then the mechanical connection is completed, and the mechanical connection is later than the electrical connection; when the cable is pulled out of the connector, the mechanical connection is disconnected first, and then the electrical connection is disconnected. The mechanical connection is disconnected earlier than the electrical connection. The interrupt signal (interrupt) is generated by the mechanical connection of the interconnection interface 2, and the mechanical connection of the interconnection interface 2 at both ends of the Cable can be generated. The PCIe Repeater board 1 outputs the interrupt signal (interrupt) to the motherboard BMC and PCH, and the sound and light alarm circuit 3 Controlled by the I2C bus of the motherboard BMC.

图3为连接器和线缆插头的示意图。连接器由连接器本体4和连接器金属卡扣5构成,其中连接器金属卡扣5通过插针焊接在PCB的GND(地线)上;线缆插头由金手指6和插头金属卡扣7构成;当连接器和线缆正常连接时,金手指6和连接器本体4实现电气连接,插头金属卡扣7和连接器金属卡扣5实现机械连接。3 is a schematic diagram of a connector and a cable plug. The connector is composed of a connector body 4 and a connector metal buckle 5, wherein the connector metal buckle 5 is welded on the GND (ground wire) of the PCB through pins; the cable plug is composed of gold fingers 6 and plug metal buckles 7. Composition: When the connector and the cable are normally connected, the gold finger 6 and the connector body 4 are electrically connected, and the plug metal buckle 7 and the connector metal buckle 5 are mechanically connected.

本发明实施例在保证线缆各引脚之间正常连接不变的前提下,将线缆插头的金手指上的1个管脚PIN1与插头金属卡扣7通过连接线8连接;Cable另一端金手指上的与管脚PIN2对应管脚PIN2'(图中未示出)与另一端卡扣连通;互联接口2在电气连接和机械连接都正常时,管脚PIN1、插头金属卡扣7、连接器金属卡扣5与PCB上的GND导通,管脚PIN2'在Cable另一端与PCB上的GND导通。Cable端不限于插头金属卡扣跟金手指上一个管脚连通,可以是插头金属卡扣下加一个按键,按键一端跟金手指上一个管脚连通,一端跟GND连通,断开卡扣触发按键按下导通。In this embodiment of the present invention, on the premise that the normal connection between the pins of the cable remains unchanged, a pin PIN1 on the gold finger of the cable plug is connected to the metal buckle 7 of the plug through the connecting wire 8; the other end of the cable is connected. The pin PIN2' (not shown in the figure) corresponding to the pin PIN2 on the golden finger is connected with the other end of the clip; when the electrical connection and mechanical connection of the interconnection interface 2 are normal, the pin PIN1, the plug metal clip 7, The connector metal clip 5 is connected to the GND on the PCB, and the pin PIN2' is connected to the GND on the PCB at the other end of the Cable. The cable end is not limited to the connection between the metal clip of the plug and a pin on the gold finger. It can be a button under the metal clip of the plug. One end of the button is connected to a pin on the gold finger, and the other end is connected to GND. Disconnect the buckle to trigger the button. Press to turn on.

在上述装置的基础上,可以实施如下防止线缆错误拔出的方法:On the basis of the above-mentioned device, the following method for preventing the cable from being pulled out by mistake can be implemented:

判断线缆插头的卡扣与所述连接器卡扣连接是否正常。Cable被拔出之前,必然先按下卡扣,此时机械连接由导通状态变为断开状态,可以通过线缆卡扣与金手指引脚的连接来感知线缆卡扣与连接器卡扣之间连接是否异常。因此,如果想监测线缆是否被误拔出,可以通过监测线缆插头的卡扣与所述连接器卡扣连接是否正常。Determine whether the buckle of the cable plug is properly connected to the buckle of the connector. Before the cable is pulled out, the buckle must be pressed first. At this time, the mechanical connection changes from the on state to the disconnected state. The cable buckle and the connector card can be sensed through the connection between the cable buckle and the gold finger pins. Whether the connection between the buckles is abnormal. Therefore, if you want to monitor whether the cable is pulled out by mistake, you can monitor whether the snap connection of the cable plug and the connector is normal.

在一些实施方式中,所述判断线缆插头的卡扣与所述连接器卡扣连接是否正常包括:判断所述插头的金手指的管脚对应的中断信号是否产生上升沿或下降沿。Calbe两端接口机械连接状态变化都会触发中断信号变化,互联接口2上的管脚PIN1上升沿表示CPU服务器端的接口机械连接从接通到断开,互联接口2上的管脚PIN2上升沿表示GPU服务器端的接口机械连接从接通到断开;中断信号下降沿表示Cable两端至少存在一端连接器互联接口机械连接从接通到断开。因此,可以根据中断信号是否产生上升沿或下降沿来判断线缆插头的卡扣与所述连接器卡扣连接是否正常。In some implementation manners, the judging whether the buckle of the cable plug is normally connected with the buckle of the connector includes: judging whether the interrupt signal corresponding to the pin of the golden finger of the plug has a rising edge or a falling edge. The change of the mechanical connection status of the interfaces at both ends of Calbe will trigger the change of the interrupt signal. The rising edge of pin PIN1 on interconnection interface 2 indicates that the mechanical connection of the interface on the CPU server side is switched from on to off, and the rising edge of pin PIN2 on interconnection interface 2 indicates that the GPU The mechanical connection of the interface on the server side is from on to off; the falling edge of the interrupt signal indicates that there is at least one connector at both ends of the cable and the mechanical connection of the interface is from on to off. Therefore, it can be judged whether the snap connection of the cable plug and the connector snap is normal according to whether the interrupt signal generates a rising edge or a falling edge.

图4示出的是机械连通性检测电路的示意图。如图4所示,机械连通性检测电路由TVS管、上拉电阻R、反相施密特触发器(Inverse Schmitt trigger)组成;TVS靠近连接器信号管脚放置,用于静电防护,上拉电阻R保证信号有个确定电平,反相施密特触发器消除信号抖动和增加驱动能力,反相施密特触发器输出端接一起,作为一个中断信号输出到主板(Main Board)。断开机械连接时,反相施密特触发器输入端被电阻R上拉到VCC,输出端中断信号为低电平;接通机械连接时,反相施密特触发器输入端跟GND导通,输出端中断信号为高电平。根据中断信号的电平可以判断此时机械连接的状态。Figure 4 shows a schematic diagram of a mechanical continuity detection circuit. As shown in Figure 4, the mechanical continuity detection circuit is composed of a TVS tube, a pull-up resistor R, and an inverse Schmitt trigger; the TVS is placed close to the connector signal pins for electrostatic protection and pull-up. The resistor R ensures that the signal has a certain level, the inverting Schmitt trigger eliminates signal jitter and increases the driving capability, and the inverting Schmitt trigger outputs are connected together and output to the main board as an interrupt signal. When the mechanical connection is disconnected, the input terminal of the inverting Schmitt trigger is pulled up to VCC by the resistor R, and the interrupt signal at the output terminal is low level; when the mechanical connection is turned on, the input terminal of the inverting Schmitt trigger is connected to GND. On, the output terminal interrupt signal is high level. According to the level of the interrupt signal, the state of the mechanical connection at this time can be judged.

响应于所述插头的卡扣与所述插头的金手指的管脚的连接异常,向PCH发送低电平的中断信号。In response to an abnormal connection between the clasp of the plug and the pin of the golden finger of the plug, a low-level interrupt signal is sent to the PCH.

响应于所述中断信号触发PCH的中断,启动所述插头对应的PCIE链路的热插拔以断开所述PCIE链路。PCH接收到中断信号后,可以控制中断服务程序通知系统启动问题链路的热插拔。In response to the interruption of the PCH triggered by the interruption signal, hot-plugging of the PCIE link corresponding to the plug is started to disconnect the PCIE link. After the PCH receives the interrupt signal, it can control the interrupt service program to notify the system to start the hot-plug of the problem link.

在一些实施方式中,还包括:响应于所述中断信号触发BMC的中断,导通声光报警电路。在将中断信号发送到PCH的同时,还可以将中断信号发送到BMC,BMC接收到中断信号后,可以控制声光报警电路进行报警。In some embodiments, the method further includes: in response to the interruption signal triggering the interruption of the BMC, turning on the sound and light alarm circuit. While sending the interrupt signal to the PCH, it can also send the interrupt signal to the BMC. After the BMC receives the interrupt signal, it can control the sound and light alarm circuit to give an alarm.

判断所述PCIE链路是否断开,并响应于所述PCIE链路断开,将所述线缆拔出。如果PCIE链路断开,表明此时已经没有数据的传输,可以将线缆拔下。在一些实施方式中,还包括:响应于所述PCIE链路断开,关闭所述声光报警电路。如果可以正常将线缆拔下,可以关闭声光报警电路以停止报警。It is judged whether the PCIE link is disconnected, and in response to the disconnection of the PCIE link, the cable is pulled out. If the PCIE link is disconnected, it means that there is no data transmission at this time, you can unplug the cable. In some embodiments, the method further includes: in response to the disconnection of the PCIE link, turning off the sound and light alarm circuit. If the cable can be unplugged normally, the sound and light alarm circuit can be turned off to stop the alarm.

通过检测互联Cable两端与高速连接器间机械连接的状态和变化,预判RACK服务器间PCIe互联接口即将拔出,在PCIe总线断开电气连接器前系统及时断开链路,生成报警事件,现场声光报警,达到避免人为误操作、PCIe暴力热插拔导致的服务器宕机问题,增强了系统的稳定性和可靠性。By detecting the state and change of the mechanical connection between the two ends of the interconnecting cable and the high-speed connector, it can predict that the PCIe interconnection interface between the RACK servers is about to be pulled out. Before the PCIe bus disconnects the electrical connector, the system disconnects the link in time and generates an alarm event. The on-site sound and light alarm can avoid the problem of server downtime caused by human error operation and PCIe violent hot swap, and enhance the stability and reliability of the system.

需要特别指出的是,上述防止线缆错误拔出的方法的各个实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于防止线缆错误拔出的方法也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在实施例之上。It should be particularly pointed out that the steps in each embodiment of the above-mentioned method for preventing the wrong cable pulling out can be crossed, replaced, added, and deleted. The proposed method should also belong to the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.

基于上述目的,本发明实施例的第二个方面,提出了一种防止线缆错误拔出系统,包括:第一判断模块,配置用于判断线缆插头的卡扣与所述连接器卡扣连接是否正常;中断模块,配置用于响应于所述线缆插头的卡扣与所述连接器卡扣连接不正常,向PCH发送低电平的中断信号;执行模块,配置用于响应于所述中断信号触发PCH的中断,启动所述插头对应的PCIE链路的热插拔以断开所述PCIE链路;以及第二判断模块,配置用于判断所述PCIE链路是否断开,并响应于所述PCIE链路断开,将所述线缆拔出。Based on the above purpose, and in a second aspect of the embodiments of the present invention, a system for preventing incorrect unplugging of cables is provided, including: a first judgment module configured to judge the buckle of the cable plug and the buckle of the connector whether the connection is normal; the interruption module is configured to send a low-level interruption signal to the PCH in response to the abnormal connection between the clip of the cable plug and the connector clip; the execution module is configured to respond to the The interrupt signal triggers the interruption of the PCH, and starts hot-plugging of the PCIE link corresponding to the plug to disconnect the PCIE link; and a second judgment module, configured to judge whether the PCIE link is disconnected, and In response to the PCIE link being disconnected, the cable is unplugged.

在一些实施方式中,还包括:报警模块,配置用于响应于所述中断信号触发BMC的中断,导通声光报警电路。In some embodiments, it further includes: an alarm module, configured to trigger the interruption of the BMC in response to the interruption signal, and turn on the sound and light alarm circuit.

在一些实施方式中,报警模块还配置用于:响应于所述PCIE链路断开,关闭所述声光报警电路。In some embodiments, the alarm module is further configured to: in response to the disconnection of the PCIE link, turn off the sound and light alarm circuit.

在一些实施方式中,所述第一判断模块还配置用于:判断所述插头的金手指的管脚对应的中断信号是否产生上升沿或下降沿。In some embodiments, the first judgment module is further configured to: judge whether the interrupt signal corresponding to the pin of the golden finger of the plug generates a rising edge or a falling edge.

基于上述目的,本发明实施例的第三个方面,提出了一种计算机设备,包括:至少一个处理器;以及存储器,存储器存储有可在处理器上运行的计算机指令,指令由处理器执行以实现如下步骤:S1、判断线缆插头的卡扣与所述连接器卡扣连接是否正常;S2、响应于所述线缆插头的卡扣与所述连接器卡扣的连接不正常,向PCH发送低电平的中断信号;S3、响应于中断信号触发PCH的中断,启动插头对应的PCIE链路的热插拔以断开PCIE链路;以及S4、判断PCIE链路是否断开,并响应于PCIE链路断开,将线缆拔出。Based on the above objective, in a third aspect of the embodiments of the present invention, a computer device is provided, including: at least one processor; and a memory, where the memory stores computer instructions that can be executed on the processor, and the instructions are executed by the processor to The following steps are implemented: S1, judging whether the connection between the buckle of the cable plug and the connector buckle is normal; S2, in response to the abnormal connection between the buckle of the cable plug and the connector buckle, to the PCH Sending a low-level interrupt signal; S3, triggering the interruption of the PCH in response to the interrupt signal, and starting the hot-plug of the PCIE link corresponding to the plug to disconnect the PCIE link; and S4, judging whether the PCIE link is disconnected, and responding If the PCIE link is disconnected, unplug the cable.

在一些实施方式中,还包括:响应于所述中断信号触发BMC的中断,导通声光报警电路。In some embodiments, the method further includes: in response to the interruption signal triggering the interruption of the BMC, turning on the sound and light alarm circuit.

在一些实施方式中,还包括:响应于所述PCIE链路断开,关闭所述声光报警电路。In some embodiments, the method further includes: in response to the disconnection of the PCIE link, turning off the sound and light alarm circuit.

在一些实施方式中,所述判断线缆插头的卡扣与所述连接器卡扣连接是否正常包括:判断所述插头的金手指的管脚对应的中断信号是否产生上升沿或下降沿。In some implementation manners, the judging whether the buckle of the cable plug is normally connected with the buckle of the connector includes: judging whether the interrupt signal corresponding to the pin of the golden finger of the plug has a rising edge or a falling edge.

如图2所示,为本发明提供的上述防止线缆错误拔出的计算机设备的一个实施例的硬件结构示意图。As shown in FIG. 2 , it is a schematic diagram of the hardware structure of an embodiment of the above-mentioned computer device for preventing the wrong cable unplugging provided by the present invention.

以如图2所示的装置为例,在该装置中包括一个处理器301以及一个存储器302,并还可以包括:输入装置303和输出装置304。Taking the device shown in FIG. 2 as an example, the device includes a processor 301 and a memory 302 , and may further include an input device 303 and an output device 304 .

处理器301、存储器302、输入装置303和输出装置304可以通过总线或者其他方式连接,图2中以通过总线连接为例。The processor 301 , the memory 302 , the input device 303 and the output device 304 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 2 .

存储器302作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的防止线缆错误拔出的方法对应的程序指令/模块。处理器301通过运行存储在存储器302中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的防止线缆错误拔出的方法。As a non-volatile computer-readable storage medium, the memory 302 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the protection against wrongly unplugging the cable in the embodiment of the present application. The program instruction/module corresponding to the method. The processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 302 , that is, implementing the method for preventing wrong cable unplugging in the above method embodiments.

存储器302可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据防止线缆错误拔出的方法的使用所创建的数据等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器302可选包括相对于处理器301远程设置的存储器,这些远程存储器可以通过网络连接至本地模块。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 302 may include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function; data etc. Additionally, memory 302 may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, memory 302 may optionally include memory located remotely from processor 301, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

输入装置303可接收输入的用户名和密码等信息。输出装置304可包括显示屏等显示设备。The input device 303 can receive input information such as user name and password. The output device 304 may include a display device such as a display screen.

一个或者多个防止线缆错误拔出的方法对应的程序指令/模块存储在存储器302中,当被处理器301执行时,执行上述任意方法实施例中的防止线缆错误拔出的方法。The program instructions/modules corresponding to one or more methods for preventing erroneous unplugging of cables are stored in the memory 302, and when executed by the processor 301, the methods for preventing erroneously unplugging of cables in any of the foregoing method embodiments are executed.

执行上述防止线缆错误拔出的方法的计算机设备的任何一个实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Any one of the embodiments of the computer device that executes the above-mentioned method for preventing a cable from being pulled out incorrectly can achieve the same or similar effects as any of the preceding method embodiments corresponding to it.

本发明还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时执行如上方法的计算机程序。The present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program that executes the above method when executed by a processor.

最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,防止线缆错误拔出的方法的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,程序的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Finally, it should be noted that those of ordinary skill in the art can understand that all or part of the process in the method of the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. In the computer-readable storage medium, when the program is executed, it may include the processes of the foregoing method embodiments. Wherein, the storage medium of the program may be a magnetic disk, an optical disk, a read only memory (ROM) or a random access memory (RAM) or the like. The above computer program embodiments can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.

此外,根据本发明实施例公开的方法还可以被实现为由处理器执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被处理器执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the methods disclosed according to the embodiments of the present invention may also be implemented as a computer program executed by a processor, and the computer program may be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above-mentioned functions defined in the methods disclosed in the embodiments of the present invention are executed.

此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。In addition, the above-mentioned method steps and system units can also be implemented by using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the functions of the above-mentioned steps or units.

此外,应该明白的是,本文的计算机可读存储介质(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)或快闪存储器。易失性存储器可以包括随机存取存储器(RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM可以以多种形式获得,比如同步RAM(DRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据速率SDRAM(DDRSDRAM)、增强SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)、以及直接Rambus RAM(DRRAM)。所公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。In addition, it should be understood that computer-readable storage media (eg, memory) herein can be volatile memory or non-volatile memory, or can include both volatile and non-volatile memory. By way of example and not limitation, nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory memory. Volatile memory may include random access memory (RAM), which may act as external cache memory. By way of example and not limitation, RAM is available in various forms such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but not be limited to, these and other suitable types of memory.

本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开的范围。Those skilled in the art will also appreciate that the various exemplary logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends on the specific application and design constraints imposed on the overall system. Those skilled in the art may implement the functions in various ways for each specific application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.

结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP和/或任何其它这种配置。The various exemplary logical blocks, modules, and circuits described in connection with the disclosure herein can be implemented or executed using the following components designed to perform the functions herein: general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, eg, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in combination with a DSP, and/or any other such configuration.

结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在RAM存储器、快闪存储器、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM、或本领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器,使得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中,存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在ASIC中。ASIC可以驻留在用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。The steps of a method or algorithm described in connection with the disclosures herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. In an alternative, the storage medium may be integrated with the processor. The processor and storage medium may reside in an ASIC. The ASIC may reside in the user terminal. In an alternative, the processor and storage medium may reside in the user terminal as discrete components.

在一个或多个示例性设计中,功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外线、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。In one or more exemplary designs, functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer. By way of example and not limitation, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or may be used to carry or store instructions in the form of or data structures and any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave are used to send software from a website, server, or other remote source, the above coaxial cable Cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are all included in the definition of medium. As used herein, magnetic disks and optical disks include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVDs), floppy disks, blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically with lasers . Combinations of the above should also be included within the scope of computer-readable media.

以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are exemplary embodiments of the present disclosure, but it should be noted that various changes and modifications may be made without departing from the scope of the disclosure of the embodiments of the present invention as defined in the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements disclosed in the embodiments of the present invention may be described or claimed in the singular, unless explicitly limited to the singular, the plural may also be construed.

应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that, as used herein, the singular form "a" is intended to include the plural form as well, unless the context clearly supports an exception. It will also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned embodiments of the present invention disclose the serial numbers of the embodiments only for description, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a magnetic disk or an optical disk, and the like.

所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that the discussion of any of the above embodiments is only exemplary, and is not intended to imply that the scope (including the claims) disclosed by the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention , the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included within the protection scope of the embodiments of the present invention.

Claims (10)

1.一种防止线缆错误拔出的方法,其特征在于,包括以下步骤:1. A method for preventing a cable from being pulled out by mistake, comprising the following steps: 判断线缆插头的卡扣与所述连接器卡扣连接是否正常;Determine whether the connection between the buckle of the cable plug and the buckle of the connector is normal; 响应于所述线缆插头的卡扣与所述连接器卡扣的连接不正常,向PCH发送低电平的中断信号;In response to the abnormal connection between the clasp of the cable plug and the clasp of the connector, sending a low-level interrupt signal to the PCH; 响应于所述中断信号触发PCH的中断,启动所述插头对应的PCIE链路的热插拔以断开所述PCIE链路;以及In response to the interruption of the PCH triggered by the interruption signal, hot-plugging of the PCIE link corresponding to the plug is started to disconnect the PCIE link; and 判断所述PCIE链路是否断开,并响应于所述PCIE链路断开,将所述线缆拔出。It is judged whether the PCIE link is disconnected, and in response to the disconnection of the PCIE link, the cable is pulled out. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising: 响应于所述中断信号触发BMC的中断,导通声光报警电路。In response to the interruption of the BMC triggered by the interruption signal, the sound and light alarm circuit is turned on. 3.根据权利要求2所述的方法,其特征在于,还包括:3. The method of claim 2, further comprising: 响应于所述PCIE链路断开,关闭所述声光报警电路。In response to the PCIE link being disconnected, the audible and visual alarm circuit is turned off. 4.根据权利要求1所述的方法,其特征在于,所述判断线缆插头的卡扣与所述连接器卡扣连接是否正常包括:4. The method according to claim 1, wherein the judging whether the buckle of the cable plug is normally connected with the buckle of the connector comprises: 判断所述插头的金手指的管脚对应的中断信号是否产生上升沿或下降沿。It is judged whether the interrupt signal corresponding to the pin of the gold finger of the plug has a rising edge or a falling edge. 5.一种防止线缆错误拔出的系统,其特征在于,包括:5. A system for preventing erroneous unplugging of cables, comprising: 第一判断模块,配置用于判断线缆插头的卡扣与所述连接器卡扣连接是否正常;a first judging module, configured to judge whether the clasp of the cable plug is normally connected with the clasp of the connector; 中断模块,配置用于响应于所述线缆插头的卡扣与所述连接器卡扣连接不正常,向PCH发送低电平的中断信号;an interruption module, configured to send a low-level interruption signal to the PCH in response to an abnormal connection between the buckle of the cable plug and the buckle of the connector; 执行模块,配置用于响应于所述中断信号触发PCH的中断,启动所述插头对应的PCIE链路的热插拔以断开所述PCIE链路;以及an execution module, configured to trigger an interruption of the PCH in response to the interruption signal, and initiate hot-plugging of the PCIE link corresponding to the plug to disconnect the PCIE link; and 第二判断模块,配置用于判断所述PCIE链路是否断开,并响应于所述PCIE链路断开,将所述线缆拔出。The second judgment module is configured to judge whether the PCIE link is disconnected, and in response to the disconnection of the PCIE link, unplug the cable. 6.根据权利要求5所述的系统,其特征在于,还包括:6. The system of claim 5, further comprising: 报警模块,配置用于响应于所述中断信号触发BMC的中断,导通声光报警电路。The alarm module is configured to trigger the interruption of the BMC in response to the interruption signal, and turn on the sound and light alarm circuit. 7.根据权利要求6所述的方法,其特征在于,报警模块还配置用于:7. The method according to claim 6, wherein the alarm module is further configured to: 响应于所述PCIE链路断开,关闭所述声光报警电路。In response to the PCIE link being disconnected, the audible and visual alarm circuit is turned off. 8.根据权利要求5所述的系统,其特征在于,所述第一判断模块还配置用于:8. The system according to claim 5, wherein the first judgment module is further configured to: 判断所述插头的金手指的管脚对应的中断信号是否产生上升沿或下降沿。It is judged whether the interrupt signal corresponding to the pin of the gold finger of the plug has a rising edge or a falling edge. 9.一种计算机设备,其特征在于,包括:9. A computer equipment, characterized in that, comprising: 至少一个处理器;以及at least one processor; and 存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现权利要求1-4任意一项所述方法的步骤。a memory storing computer instructions executable on the processor, the instructions implementing the steps of the method of any one of claims 1-4 when executed by the processor. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-4任意一项所述方法的步骤。10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the method of any one of claims 1-4 are implemented.
CN202010570094.1A 2020-06-21 2020-06-21 A method, system, device and medium for preventing wrongly pulling out cables Withdrawn CN111858264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010570094.1A CN111858264A (en) 2020-06-21 2020-06-21 A method, system, device and medium for preventing wrongly pulling out cables

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010570094.1A CN111858264A (en) 2020-06-21 2020-06-21 A method, system, device and medium for preventing wrongly pulling out cables

Publications (1)

Publication Number Publication Date
CN111858264A true CN111858264A (en) 2020-10-30

Family

ID=72987731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010570094.1A Withdrawn CN111858264A (en) 2020-06-21 2020-06-21 A method, system, device and medium for preventing wrongly pulling out cables

Country Status (1)

Country Link
CN (1) CN111858264A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653591A (en) * 2020-11-24 2021-04-13 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for balancing speed of line concentration cable
CN114756909A (en) * 2022-05-24 2022-07-15 浪潮商用机器有限公司 Device, method and medium for preventing power line from being pulled out mistakenly

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653591A (en) * 2020-11-24 2021-04-13 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for balancing speed of line concentration cable
CN112653591B (en) * 2020-11-24 2022-05-27 苏州浪潮智能科技有限公司 A method, system, terminal and storage medium for rate balancing of hub cable
CN114756909A (en) * 2022-05-24 2022-07-15 浪潮商用机器有限公司 Device, method and medium for preventing power line from being pulled out mistakenly

Similar Documents

Publication Publication Date Title
CN111858431B (en) PCIE (peripheral component interface express) -based extension cabinet hot plug method, device, equipment and medium
US9366712B2 (en) Determination of physical connectivity status of devices based on electrical measurement
CN102045112A (en) Optical universal serial bus device and operation method thereof
WO2018045684A1 (en) Interface device, and method and apparatus for secure access
CN111858264A (en) A method, system, device and medium for preventing wrongly pulling out cables
CN204576500U (en) A kind of usb communication circuit of compatible I2C communication and system
WO2017161750A1 (en) Mobile apparatus
JP2004072770A (en) Automatic restoration system from interruption by ieee-1394phy
CN100476780C (en) Automatic identification method of signal interface of electronic equipment
TWI710911B (en) Electronic system, host device and control method
CN114090360B (en) Server debugging device, method and medium thereof, and server debugger
CN111417034A (en) Switch and hot plug method, device and system for switch board card thereof
CN115237234A (en) A method, device, device and medium for supporting different types of smart network cards
CN112131060B (en) A method, system, device and medium for detecting full-link connectivity of cables
WO2025102717A1 (en) Misinsertion detection method for external device, and computing device
CN115269474A (en) Server and PCIe hot plug control method, device and medium thereof
CN107783862B (en) An 8-way server master-slave BMC reset control method based on PCA9555
CN113448904B (en) A hot plugging method and device for an external device
US20170270021A1 (en) Repair of failed firmware through an unmodified dual-role communication port
TW202409835A (en) Peripheral component interconnect express device error reporting optimization method and peripheral component interconnect express device error reporting optimization system
CN114925011A (en) A method and device for solving the problem that the PCIE hot-plug slot cannot identify the device
CN113448416B (en) A hot-swappable stable device and computer
US20220334993A1 (en) Hot-plugging control method, device and retimer
CN101266536B (en) Detection device
TW202143060A (en) Electronic apparatus and hot-pluggable storage device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20201030