Server external plug-in card, error correction method and device for server external plug-in card, and medium
By integrating slot status and link status prompt devices and complex programmable logic devices on the server plug-in card, the problem of wrong slots is solved, the efficiency of development and testing is improved, and the server is ensured to operate normally.
Patent Information
- Application Number
- CN202410867586.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-30
- Publication Date
- 2024-11-01
AI Technical Summary
When the server plugs in the wrong slots when the server is plugged in, it is difficult to correct errors in a timely manner, resulting in the server being unable to recognize or slow down, affecting the development and testing efficiency.
A server plug-in card is designed, integrating slot status prompt device, link status prompt device and complex programmable logic device. It communicates with the server motherboard through a low-pin counting interface, obtains slot information and compares it. If it is inconsistent, an error will be reported. , and control the prompt device to output error information to ensure that the tester corrects the slot position in a timely manner.
It realizes timely error reporting and correction when the server plugs in the wrong slots, improves the efficiency of development and testing, and ensures the normal operation of the server.
Smart Images

Figure CN118885341A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a server plug-in card, an error correction method, a device and a medium for the server plug-in card. Background Art
[0002] Server plug-in cards are also called expansion cards. Different from the components already integrated on the server motherboard, server plug-in cards are connected to the server motherboard through the server slots to expand the server functions and performance. There are many types of server plug-in cards. When designing a server, different types of server plug-in cards need to be inserted into the corresponding server slots to work properly.
[0003] However, during the development and testing process, problems often occur, such as the server being unable to recognize the server external card, the server external card hanging, or the speed being reduced, because the testers insert the server external card into the wrong slot. At this time, the testers can only perform all relevant fault screening under the system until the external card status query command is entered to determine that the problem is that the external card is inserted into the wrong slot.
[0004] How to timely correct errors when a server external card is inserted into a wrong slot is a technical problem that those skilled in the art need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a server plug-in card, a method, a device and a medium for correcting an error of the server plug-in card, which are used to correct the error in time when the server plug-in card is inserted into the wrong slot, thereby improving the development and testing efficiency.
[0006] In order to solve the above technical problems, the present invention provides a server plug-in card, comprising: an external card main chip, a slot status prompting device, a link status prompting device and a complex programmable logic device;
[0007] The complex programmable logic device is connected to the external card main chip via a two-wire serial bus, the first output end of the complex programmable logic device is connected to the slot status prompt device, and the second output end of the complex programmable logic device is connected to the link rate prompt device;
[0008] The complex programmable logic device is used to, after recognizing that a server plug-in card is inserted into a server slot, communicate with a server mainboard through a low pin count interface via the server slot to obtain first slot information of the server slot, compare the first slot information with the second slot information obtained from the plug-in card main chip, and if they are consistent, determine that the server plug-in card is inserted into a correct slot; if they are inconsistent, determine that the server plug-in card is inserted into an incorrect slot and control the slot status prompt device to report a slot connection error;
[0009] The complex programmable logic device is also used to communicate with the server mainboard to obtain the link status information between the server plug-in card and the server mainboard, and control the link status prompt device to output the link status information.
[0010] On the one hand, it also includes a temperature prompt device connected to the third output terminal of the complex programmable logic device;
[0011] The complex programmable logic device is also used to communicate with the external card main chip to obtain the detected temperature value of the server external card, and compare the detected temperature value with a pre-stored first over-temperature protection value. If the detected temperature value exceeds the first over-temperature protection value, the temperature prompt device is controlled to issue an over-temperature prompt for the server external card.
[0012] On the other hand, it also includes an external card power-off control circuit connected to the fourth output terminal of the complex programmable logic device;
[0013] The complex programmable logic device is also used to maintain the connection of the power supply circuit of the server external card when preset conditions including the server external card being inserted into the correct slot are met, otherwise control the external card power-off control circuit to disconnect the power supply circuit of the server external card.
[0014] On the other hand, it also includes AND gate circuits;
[0015] The two input ends of the AND gate circuit are connected to the two fourth output ends of the complex programmable logic device, respectively; the output end of the AND gate circuit is connected to the input end of the external card power-off control circuit; and the output end of the external card power-off control circuit is connected to the enable end of the voltage regulator power chip of the server external card;
[0016] When the server plug-in card is inserted into an incorrect slot, the corresponding fourth output terminal of the complex programmable logic device outputs a low level signal; when the server plug-in card is inserted into a correct slot, the corresponding fourth output terminal of the complex programmable logic device outputs a high level signal;
[0017] When the detected temperature value of the main chip of the external card exceeds the second over-temperature protection value, the corresponding fourth output terminal of the complex programmable logic device outputs a low-level signal; when the detected temperature value of the main chip of the external card does not exceed the second over-temperature protection value, the corresponding fourth output terminal of the complex programmable logic device outputs a high-level signal;
[0018] The AND gate circuit outputs a high level signal to enable the voltage regulator power chip through the external card power off control circuit when high level signals are input to both input terminals, otherwise it outputs a low level signal to shut down the voltage regulator power chip through the external card power off control circuit.
[0019] On the other hand, the external card power-off control circuit includes a first field effect transistor, a second field effect transistor, a first resistor, a second resistor and a third resistor;
[0020] Wherein, the gate of the first field effect tube and the first end of the second resistor are connected to the fourth output end of the complex programmable logic device, the first end of the first resistor and the first end of the second resistor are connected to the low-voltage backup DC power supply of the server external plug-in card, the drain of the first field effect tube and the second end of the first resistor are connected to the gate of the second field effect tube, the drain of the second field effect tube and the second end of the third resistor are connected to the switch control end of the voltage regulator power chip of the server external plug-in card, the first end of the third resistor is connected to the enable power supply of the server external plug-in card, and the source of the first field effect tube and the source of the second field effect tube are grounded;
[0021] The first field effect transistor and the second field effect transistor are both N-channel metal-oxide semiconductor field effect transistors.
[0022] On the other hand, the link status prompt device includes five high-speed serial computer expansion bus rate indicator lights, which respectively correspond to the first-generation technical specification rate, the second-generation technical specification rate, the third-generation technical specification rate, the fourth-generation technical specification rate and the fifth-generation technical specification rate of the high-speed serial computer expansion bus;
[0023] The complex programmable logic device controls the link status prompt device to output the link status information, including: the complex programmable logic device controls the corresponding high-speed serial computer expansion bus rate indicator light to light up according to the link rate corresponding to the link status information, and controls the remaining high-speed serial computer expansion bus rate indicator lights to turn off.
[0024] On the other hand, it also includes a temperature prompt device connected to the third output terminal of the complex programmable logic device, an external card power-off control circuit connected to the fourth output terminal of the complex programmable logic device, an adapter slot information prompt device connected to the fifth output terminal of the complex programmable logic device, and an AND gate circuit;
[0025] The slot status prompt device is a slot connection status indicator light;
[0026] The adapter slot information prompting device includes a plurality of slot status indicator lights, and the slot status indicator lights correspond one to one with the server slots;
[0027] The link status prompt device includes five high-speed serial computer expansion bus rate indicator lights, which respectively correspond to the first-generation technical specification rate, the second-generation technical specification rate, the third-generation technical specification rate, the fourth-generation technical specification rate and the fifth-generation technical specification rate of the high-speed serial computer expansion bus;
[0028] The temperature prompt device is an over-temperature indicator light;
[0029] The two input ends of the AND gate circuit are connected to the two fourth output ends of the complex programmable logic device, respectively; the output end of the AND gate circuit is connected to the input end of the external card power-off control circuit; and the output end of the external card power-off control circuit is connected to the enable end of the voltage regulator power chip of the server external card;
[0030] When the complex programmable logic device determines that the server external card is inserted into the correct slot, the complex programmable logic device controls the slot connection status indicator to display green; when the complex programmable logic device determines that the server external card is inserted into the wrong slot, the complex programmable logic device controls the slot connection status indicator to display red;
[0031] The complex programmable logic device is also used to control the slot status indicator light corresponding to the correct slot corresponding to the server external card to light up according to the second slot information, and control the other slot status indicator lights to turn off;
[0032] The complex programmable logic device controls the link status prompt device to output the link status information, including: the complex programmable logic device controls the corresponding high-speed serial computer expansion bus rate indicator light to light up according to the link rate corresponding to the link status information, and controls the other high-speed serial computer expansion bus rate indicator lights to turn off;
[0033] The complex programmable logic device is also used to communicate with the external card main chip to obtain the detected temperature value of the server external card, and compare the detected temperature value with a pre-stored first over-temperature protection value, and if the detected temperature value exceeds the first over-temperature protection value, control the over-temperature indicator light to light up; if the detected temperature value does not exceed the first over-temperature protection value, control the over-temperature indicator light to turn off;
[0034] The complex programmable logic device is also used to output a low level signal through the corresponding fourth output terminal when the server external plug-in card is inserted into an incorrect slot; and output a high level signal through the corresponding fourth output terminal when the server external plug-in card is inserted into a correct slot;
[0035] The complex programmable logic device is also used to output a low level signal through the corresponding fourth output terminal when the detected temperature value exceeds the second over-temperature protection value; and output a high level signal through the corresponding fourth output terminal when the detected temperature value does not exceed the second over-temperature protection value;
[0036] The AND gate circuit outputs a high level signal to enable the voltage regulator power chip through the external card power off control circuit when high level signals are input to both input terminals, otherwise it outputs a low level signal to shut down the voltage regulator power chip through the external card power off control circuit.
[0037] In order to solve the above technical problems, the present invention also provides an error correction method for a server plug-in card, which is applied to a complex programmable logic device provided in the server plug-in card, comprising:
[0038] After identifying that a server plug-in card is inserted into a server slot, communicating with a server mainboard via the server slot through a low pin count interface to obtain first slot information of the server slot;
[0039] Compare the first slot information with the second slot information obtained from the external card main chip, if they are consistent, determine that the server external card is inserted into the correct slot, if they are inconsistent, determine that the server external card is inserted into the wrong slot and control the slot status prompt device to report a slot connection error;
[0040] communicating with the server mainboard to obtain link status information between the server plug-in card and the server mainboard, and controlling the link status prompt device to output the link status information;
[0041] Among them, the slot status prompting device and the link status prompting device are arranged on the server external card, the complex programmable logic device is connected to the external card main chip through a two-wire serial bus, the first output end of the complex programmable logic device is connected to the slot status prompting device, and the second output end of the complex programmable logic device is connected to the link rate prompting device.
[0042] In order to solve the above technical problems, the present invention further provides an error correction device for a server plug-in card, comprising:
[0043] Memory for storing computer programs;
[0044] The processor is used to execute the computer program, and the computer program, when executed by the processor, implements the steps of the error correction method of the server plug-in card.
[0045] In order to solve the above technical problem, the present invention also provides a non-volatile storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the error correction method of the server external card are implemented.
[0046] The server plug-in card provided by the present invention has the beneficial effect that an error correction device including a slot status prompting device, a link status prompting device and a complex programmable logic device is set on the server plug-in card. After the server plug-in card is connected to the server slot, the complex programmable logic device communicates with the server main board through the server slot through a low pin count interface to obtain first slot information of the server slot, and compares the first slot information with the second slot information obtained from the main chip of the plug-in card. If they are consistent, it is determined that the server plug-in card is inserted into the correct slot. If they are inconsistent, it is determined that the server plug-in card is inserted into the wrong slot and the slot status prompting device is controlled to report the slot connection error, thereby realizing timely reporting when the tester inserts the server plug-in card into the wrong slot. At the same time, the complex programmable logic device also communicates with the server main board to obtain the link status information between the server plug-in card and the server main board, and controls the link status prompting device to output the link status information, so that the tester can comprehensively judge the working status of the server plug-in card in combination with the slot connection status of the server plug-in card, thereby improving the efficiency of development and testing work.
[0047] The present invention also provides an error correction method, device and non-volatile storage medium for a server plug-in card, which have the above-mentioned beneficial effects and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 A schematic diagram of the structure of a server external plug-in card provided by an embodiment of the present invention;
[0050] Figure 2 A schematic diagram of the connection of a server plug-in card;
[0051] Figure 3 A flow chart of an error correction method for a server external card provided by an embodiment of the present invention;
[0052] Figure 4 A schematic diagram of the structure of an error correction device for a server external card provided by an embodiment of the present invention;
[0053] Figure 5 A schematic structural diagram of an error correction device for a server plug-in card provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The core of the present invention is to provide a server plug-in card, a method, device and medium for correcting errors of the server plug-in card in a timely manner when the server plug-in card is inserted into the wrong slot, thereby improving the development and testing efficiency.
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] Figure 1 A schematic diagram of the structure of a server external plug-in card provided by an embodiment of the present invention; Figure 2 The present invention is a connection diagram of a server plug-in card.
[0057] like Figure 1 As shown, the server plug-in card provided in the embodiment of the present invention includes: an plug-in card main chip 102, a slot status prompting device, a link status prompting device and a complex programmable logic device 101;
[0058] The complex programmable logic device 101 is connected to the external card main chip 102 via a two-wire serial bus, the first output end of the complex programmable logic device 101 is connected to the slot status prompt device, and the second output end of the complex programmable logic device 101 is connected to the link rate prompt device;
[0059] The complex programmable logic device 101 is used to communicate with the server mainboard through the server slot through the low pin count interface to obtain the first slot information of the server slot after recognizing that the server plug-in card is inserted into the server slot, and compare the first slot information with the second slot information obtained from the plug-in card main chip 102. If they are consistent, it is determined that the server plug-in card is inserted into the correct slot. If they are inconsistent, it is determined that the server plug-in card is inserted into the wrong slot and the slot status prompt device is controlled to report the slot connection error.
[0060] The complex programmable logic device 101 is also used to communicate with the server mainboard to obtain the link status information between the server plug-in card and the server mainboard, and control the link status prompt device to output the link status information.
[0061] In an embodiment of the present invention, types of server plug-in cards may include network adapter expansion cards (NICs), disk array (Redundant Arrays of Independent Disks, RAID) cards, graphics processing unit (Graphics Processing Unit, GPU) cards, storage expansion cards, etc., and may also include other types of server plug-in cards that can be connected to a server motherboard by being inserted into a server slot.
[0062] In the embodiment of the present invention, if the server plug-in card already has a complex programmable logic device 101, the complex programmable logic device 101 on the server plug-in card can be used. The plug-in card main chip 102 is the original device of the server plug-in card, that is, the core controller of the server plug-in card.
[0063] By integrating the slot status prompt device, the link status prompt device and the complex programmable logic device 101 on the printed circuit board (PCB) of the server external card, the server external card can achieve a self-correction function.
[0064] like Figure 2 As shown in the figure, the main structure of the server includes a server motherboard, a server backplane and a server power board (Backup Battery Unit, BBU). Among them, the server plug-in card is connected to the server motherboard through the server slot, the server motherboard is connected to the server backplane, and the server backplane is also connected to the server power board, and the server power board is used to connect the power supply module. The power supply module usually provides a 12V voltage output to the server power board, and supplies power to the server motherboard through the server backplane. After the server plug-in card is inserted into the server slot, it is also connected to the power supply voltage provided by the server power board through the pins in the server slot.
[0065] In an embodiment of the present invention, after the server plug-in card is inserted into the server slot, the complex programmable logic device 101 communicates with the central processing unit (CPU) of the server mainboard through a low pin count (LPC) interface to identify the information of the server plug-in card, which may include: the type of the plug-in card and the first slot information of the inserted server slot. By comparing the first slot information with the pre-configured second slot information, it is determined whether the inserted server slot supports the operation of the server plug-in card.
[0066] In an embodiment of the present invention, the pre-configured second slot information is obtained through the plug-in card main chip 102. Generally, server plug-in cards of the same type can be inserted into the same server slot. The slot information of the server slot can be represented by the slot number. For the server motherboard, it can provide the slot number of the server slot as the first slot information. The plug-in card main chip 102 can provide the slot number of the server slot to which the server plug-in card is adapted to be connected as the second slot information. The second slot information in the plug-in card main chip 102 is pre-configured for the server plug-in card according to the type of the server plug-in card when it leaves the factory.
[0067] In some optional implementations of the embodiments of the present invention, Figure 1 As shown, the slot status prompt device can use a slot connection status indicator light 103. The complex programmable logic device 101 can control the slot connection status indicator light 103 to display green when it determines that the server plug-in card is inserted into the correct slot; the complex programmable logic device 101 can control the slot connection status indicator light 103 to display red when it determines that the server plug-in card is inserted into the wrong slot.
[0068] In some other optional implementations of the embodiments of the present invention, the slot status prompt device may also be a display device such as a digital tube or a display screen, or a voice prompt device such as a buzzer or a voice prompter.
[0069] In the embodiment of the present invention, a link status prompt device is also used to enhance the reliability of the self-correction of the server plug-in card, and to provide the tester with more abundant self-correction information of the plug-in card. The link status prompt device can also be a display device such as an indicator light, a digital tube or a display screen, or a voice prompt device such as a buzzer or a voice prompter.
[0070] To further prompt the tester to insert the server plug-in card into the correct slot, the server plug-in card provided in the embodiment of the present invention may further include an adapter slot information prompting device connected to the fifth output terminal of the complex programmable logic device 101. Figure 1As shown, the slot information prompting device may include a plurality of slot status indicator lights 104, and the slot status indicator lights 104 correspond to the server slots one by one; the complex programmable logic device 101 may also be used to control the slot status indicator light 104 corresponding to the correct slot corresponding to the server plug-in card to light up according to the second slot information, and control the remaining slot status indicator lights 104 to turn off. Table 1 is a slot status indicator light 104 control table provided in an embodiment of the present invention. As shown in Table 1, a subcard slot register may be set in the complex programmable logic device 101 to control the slot status indicator lights 104 supported by the server plug-in card to light up. Different register values are configured in the subcard slot register to light up different slot status indicator lights 104. For example, when the slot indication register is set to 0000001, the complex programmable logic device 101 controls the slot status indicator light 104 corresponding to slot 1 to light up (or set to green), and controls the slot status indicator lights 104 corresponding to other slots to turn off (or set to red).
[0071] Table 1
[0072] Register Value Slot 1 Slot 2 Slot 3 Slot 4 Slot 5 Slot 6 Slot 7 0000001 √ x x x x x x 0000010 x √ x x x x x 0000100 x x √ x x x x 0001000 x x x √ x x x …… …… …… …… …… …… …… ……
[0073] By adapting the slot information prompt device, the tester can quickly determine whether the server plug-in card is inserted into the correct slot. If the tester inserts the card into the wrong slot for the first time, the tester can also use the slot information prompt device to determine the correct slot for the next insertion, saving the tester's time.
[0074] During the actual operation of the server plug-in card, the high-speed serial computer expansion bus link between the server mainboard or other chips and the server plug-in card may slow down due to temperature and other reasons. Therefore, in an embodiment of the present invention, a link status prompt device is used to facilitate testers to comprehensively judge the working status of the server plug-in card in combination with the slot connection status of the server plug-in card. The complex programmable logic device 101 communicates with the central processing unit of the server mainboard through a low pin count interface to obtain the status information of the high-speed serial computer expansion bus link between the server mainboard and the server plug-in card, which may include the link rate, bandwidth, etc. of the high-speed serial computer expansion bus link. The complex programmable logic device 101 controls the link status prompt device to display according to the acquired status information of the high-speed serial computer expansion bus link, so as to tell the tester the status of the high-speed serial computer expansion bus link at this time, such as the link rate, so that the tester can judge whether there is a speed reduction problem at present.
[0075] In some optional implementations of the embodiments of the present invention, Figure 1As shown, the link status prompt device may include five high-speed serial computer expansion bus rate indicator lights 105, which correspond to the first-generation technical specification rate, the second-generation technical specification rate, the third-generation technical specification rate, the fourth-generation technical specification rate and the fifth-generation technical specification rate of the high-speed serial computer expansion bus, respectively. The complex programmable logic device 101 controls the link status prompt device to output link status information, which may include: the complex programmable logic device 101 controls the corresponding high-speed serial computer expansion bus rate indicator light 105 to light up according to the link rate corresponding to the link status information, and controls the remaining high-speed serial computer expansion bus rate indicator lights 105 to go out. Table 2 is a high-speed serial computer expansion bus rate indicator light 105 control table provided by an embodiment of the present invention. As shown in Table 2, the complex programmable logic device 101 communicates with the server mainboard through the low pin count interface to obtain the high-speed serial computer expansion bus link information of the server external card, and controls the state of the high-speed serial computer expansion bus rate indicator light 105 according to the actual rate of the high-speed serial computer expansion bus link. The server plug-in card can be provided with five high-speed serial computer expansion bus rate indicator lights 105, corresponding to the first generation technical specification rate (Gen1), the second generation technical specification rate (Gen2), the third generation technical specification rate (Gen3), the fourth generation technical specification rate (Gen4) and the fifth generation technical specification rate (Gen5). After determining the actual rate of the high-speed serial computer expansion bus link of the server plug-in card, the complex programmable logic device 101 can control the corresponding high-speed serial computer expansion bus rate indicator light 105 to light up (or set to green), and control the remaining high-speed serial computer expansion bus rate indicator lights 105 to go out. For example, if the actual rate of the high-speed serial computer expansion bus link of the server plug-in card is the fourth generation technical specification rate (Gen4), the complex programmable logic device 101 can control the indicator light 4 corresponding to the fourth generation technical specification rate (Gen4) to be green, and the remaining indicator lights to be off.
[0076] Table 2
[0077] Speed / Indicator Indicator light 1 Indicator 2 Indicator light 3 Indicator 4 Indicator light 5 Gen1 Go Green Off Off Off Off Gen2 Off Go Green Off Off Off Gen3 Off Off Go Green Off Off Gen4 Off Off Off Go Green Off Gen5 Off Off Off Off Go Green
[0078] Some server plug-in cards are equipped with heat sinks, but in the development and testing phase, in order to facilitate the testing of signals, testers will remove the heat sinks, resulting in insufficient heat dissipation of the server plug-in card. As a result, the server plug-in card will become hung 1 to 2 minutes after the server mainboard enters the system, and the server plug-in card cannot be identified in the system. In some optional implementations of the embodiments of the present invention, the server plug-in card may also include a temperature prompt device connected to the third output terminal of the complex programmable logic device 101; the complex programmable logic device 101 may also be used to communicate with the plug-in card main chip 102 to obtain the detected temperature value of the server plug-in card, and compare the detected temperature value with the pre-stored first over-temperature protection value. If the detected temperature value exceeds the first over-temperature protection value, the temperature prompt device is controlled to provide an over-temperature prompt for the server plug-in card.
[0079] like Figure 1 As shown, the temperature prompt device may be an over-temperature indicator light 106 .
[0080] In an embodiment of the present invention, the complex programmable logic device 101 can communicate with the external card main chip 102 through a two-wire serial bus (Inter-Integrated Circuit, I2C) to read the detected temperature value of the server external card and set a first over-temperature protection value. The first over-temperature protection value can be 60°C, that is, when the detected temperature value of the server external card is detected to be 60°C, the complex programmable logic device 101 controls the over-temperature indicator light 106 to light up (or set to yellow) to remind the tester to pay attention to strengthening the heat dissipation of the server external card; when the detected temperature value of the server external card does not reach 60°C, the complex programmable logic device 101 controls the over-temperature indicator light 106 to go out.
[0081] On the basis of the above embodiments, in order to further ensure the safe operation of the server plug-in card, Figure 1 As shown, the server plug-in card provided in the embodiment of the present invention may further include an plug-in card power-off control circuit 107 connected to the fourth output terminal of the complex programmable logic device 101; the complex programmable logic device 101 is also used to keep the power supply circuit of the server plug-in card connected when the preset conditions including the server plug-in card being inserted into the correct slot are met, otherwise the power supply circuit of the server plug-in card is disconnected by controlling the power-off control circuit 107 of the plug-in card. In the embodiment of the present invention, the power-off control of the power-off control circuit 107 of the plug-in card can be realized by a field effect transistor, such as Figure 1As shown, the external card power-off control circuit 107 may include a first field effect transistor, a second field effect transistor, a first resistor R1, a second resistor R2, and a third resistor R3; wherein the gate of the first field effect transistor and the first end of the second resistor R2 are connected to the fourth output end of the complex programmable logic device 101, the first end of the first resistor R1 and the first end of the second resistor R2 are connected to the low-voltage standby DC power supply (P3V3_AUX) of the server external card, the drain of the first field effect transistor and the second end of the first resistor R1 are connected to the gate of the second field effect transistor, the drain of the second field effect transistor and the second end of the third resistor R3 are connected to the switch control end of the voltage regulator power chip (VR chip, P12V) of the server external card, the first end of the third resistor R3 is connected to the enable power supply (EN_12V) of the server external card, and the source of the first field effect transistor and the source of the second field effect transistor are grounded. The first field effect transistor and the second field effect transistor are both N-channel metal-oxide semiconductor field effect transistors. The external card power-off control circuit 107 composed of two field effect transistors can achieve voltage isolation between the processor circuit and the power supply circuit, thereby preventing current from flowing back into the processor-related circuit of the server external card.
[0082] In some other optional implementations of the embodiment of the present invention, the external card power-off control circuit 107 may further include an optical coupler. The input end of the optical coupler is connected to the fourth output end of the complex programmable logic device 101, and the output end of the optical coupler is connected to the enable power supply of the server external card, thereby realizing voltage isolation between the processor circuit and the power supply circuit.
[0083] In some other optional implementations of the embodiments of the present invention, the server external card may further include an AND gate circuit 108; the two input ends of the AND gate circuit 108 are connected to the two fourth output ends of the complex programmable logic device 101, and the output end of the AND gate circuit 108 is connected to the input end of the external card power-off control circuit 107; the output end of the external card power-off control circuit 107 is connected to the enable end of the voltage regulator power chip of the server external card.
[0084] When the server plug-in card is inserted into the wrong slot, the corresponding fourth output terminal of the complex programmable logic device 101 outputs a low-level signal; when the server plug-in card is inserted into the correct slot, the corresponding fourth output terminal of the complex programmable logic device 101 outputs a high-level signal.
[0085] When the detected temperature value of the external card main chip 102 exceeds the second over-temperature protection value, the corresponding fourth output terminal of the complex programmable logic device 101 outputs a low-level signal; when the detected temperature value of the external card main chip 102 does not exceed the second over-temperature protection value, the corresponding fourth output terminal of the complex programmable logic device 101 outputs a high-level signal.
[0086] The AND gate circuit 108 outputs a high level signal to enable the voltage regulator power chip through the external card power off control circuit 107 when both input terminals receive high level signals, otherwise it outputs a low level signal to shut down the voltage regulator power chip through the external card power off control circuit 107 .
[0087] On the basis of the above embodiments, an embodiment of the present invention provides a server plug-in card, which, in addition to the plug-in card main chip 102, the slot status prompting device, the link status prompting device and the complex programmable logic device 101, may also include a temperature prompting device connected to the third output terminal of the complex programmable logic device 101, an external card power-off control circuit 107 connected to the fourth output terminal of the complex programmable logic device 101, an adapter slot information prompting device connected to the fifth output terminal of the complex programmable logic device 101, and an AND gate circuit 108.
[0088] In the embodiment of the present invention, the slot status prompting device may be a slot connection status indicator light 103 .
[0089] The adapter slot information prompting device may include a plurality of slot status indicator lights 104, and the slot status indicator lights 104 correspond one-to-one to the server slots.
[0090] The link status prompt device may include five high-speed serial computer expansion bus rate indicator lights 105, which respectively correspond to the first-generation technical specification rate, the second-generation technical specification rate, the third-generation technical specification rate, the fourth-generation technical specification rate and the fifth-generation technical specification rate of the high-speed serial computer expansion bus.
[0091] The temperature prompt device may be an over-temperature indicator light 106 .
[0092] The two input ends of the AND gate circuit 108 are connected to the two fourth output ends of the complex programmable logic device 101, and the output end of the AND gate circuit 108 is connected to the input end of the external card power-off control circuit 107. The output end of the external card power-off control circuit 107 is connected to the enable end of the voltage regulator power chip of the server external card.
[0093] When the complex programmable logic device 101 determines that the server external card is inserted into the correct slot, the slot connection status indicator 103 is controlled to display green; when the complex programmable logic device 101 determines that the server external card is inserted into the wrong slot, the slot connection status indicator 103 is controlled to display red.
[0094] The complex programmable logic device 101 is also used to control the slot status indicator light 104 corresponding to the correct slot corresponding to the server external card to light up according to the second slot information, and control the other slot status indicator lights 104 to turn off.
[0095] The complex programmable logic device 101 controls the link status prompt device to output link status information, including: the complex programmable logic device 101 controls the corresponding high-speed serial computer expansion bus rate indicator light 105 to light up according to the link rate corresponding to the link status information, and controls the remaining high-speed serial computer expansion bus rate indicator lights 105 to turn off.
[0096] The complex programmable logic device 101 is also used to communicate with the external card main chip 102 to obtain the detected temperature value of the server external card, and compare the detected temperature value with the pre-stored first over-temperature protection value. If the detected temperature value exceeds the first over-temperature protection value, the over-temperature indicator light 106 is controlled to light up; if the detected temperature value does not exceed the first over-temperature protection value, the over-temperature indicator light 106 is controlled to go out.
[0097] The complex programmable logic device 101 is also used to output a low level signal through the corresponding fourth output terminal when the server external card is inserted into the wrong slot; and output a high level signal through the corresponding fourth output terminal when the server external card is inserted into the correct slot.
[0098] The complex programmable logic device 101 is also used to output a low level signal through the corresponding fourth output terminal when the detected temperature value exceeds the second over-temperature protection value; and output a high level signal through the corresponding fourth output terminal when the detected temperature value does not exceed the second over-temperature protection value.
[0099] The AND gate circuit 108 outputs a high level signal to enable the voltage regulator power chip through the external card power off control circuit 107 when both input terminals receive high level signals, otherwise it outputs a low level signal to shut down the voltage regulator power chip through the external card power off control circuit 107 .
[0100] In the embodiment of the present invention, when the server plug-in card is inserted into the server mainboard, the complex programmable logic device 101 on the server plug-in card communicates with the server mainboard central processor through a low pin count interface to identify the information of the server plug-in card, including: the server plug-in card type and the first slot information corresponding to the inserted server mainboard, and compares the pre-configured second slot information to determine whether the inserted server slot supports the operation of the server plug-in card. The server plug-in card is provided with a slot connection status indicator 103, and the tester can quickly determine whether the server plug-in card is inserted into the correct slot through the slot connection status indicator 103. A subcard slot register is set in the complex programmable logic device 101. The subcard slot register is mainly used to determine the server slot that the server plug-in card can support. The server plug-in card is also provided with an adapter slot information prompt device that the server plug-in card can support. The slot status indicator light 104 is controlled by the value of the subcard slot register. If the tester inserts the slot incorrectly for the first time, the slot status indicator light 104 can be used to determine the correct slot for the next insertion, saving the tester's time.
[0101] In order to solve the problem of abnormal operation caused by insufficient heat dissipation of the server external card during the development and testing phase, a slot status indicator light 104 is installed to prompt the tester whether the server external card is overheated.
[0102] In order to solve the link speed reduction problem of server plug-in cards during operation, the embodiment of the present invention uses a complex programmable logic device 101 to communicate with a central processing unit through a low pin count interface protocol to obtain the link status information of the high-speed serial computer expansion bus between the server mainboard and the server plug-in card, including: the rate and bandwidth of the high-speed serial computer expansion bus. The complex programmable logic device 101 controls the high-speed serial computer expansion bus status indicator light according to the obtained high-speed serial computer expansion bus link status information, and tells the development and test personnel the rate of the high-speed serial computer expansion bus at this time to determine whether there is a speed reduction problem.
[0103] If the slot is incorrect and the temperature is too high, through an AND gate circuit 108, the complex programmable logic device 101 outputs the information of whether the server plug-in card is correctly inserted into the slot and the detected temperature value of the service plug-in card as two general purpose input / output signals (GPIO) to control the output of the AND gate circuit 108. When the server plug-in card is correctly inserted into the slot, the corresponding GPIO pin outputs a high level, otherwise it outputs a low level. When the detected temperature value of the service plug-in card does not exceed the second over-temperature protection value (which can be set to 80°C), the corresponding GPIO pin outputs a high level, otherwise it outputs a low level. The output end of the AND gate circuit 108 is connected to the P12V power supply enable signal of the server plug-in card through two MOS tubes. That is to say, when the server plug-in card is inserted into the slot incorrectly or the detected temperature value of the server plug-in card exceeds the second over-temperature protection value, the server plug-in card can be powered off through the AND gate circuit 108 and the plug-in card power-off control circuit 107, thereby reducing power consumption and improving safety.
[0104] In the embodiment of the present invention, when the detected temperature value of the server external card exceeds the second over-temperature protection value, the complex programmable logic device 101 can also control the over-temperature indicator light 106 to display red. That is, when the detected temperature value of the server external card exceeds the first over-temperature protection value, the complex programmable logic device 101 controls the over-temperature indicator light 106 to display yellow; when the detected temperature value of the server external card exceeds the second over-temperature protection value, the complex programmable logic device 101 controls the over-temperature indicator light 106 to display red. The first over-temperature protection value is less than the second over-temperature protection value.
[0105] Based on the above architecture, the error correction method for the server plug-in card provided by the embodiment of the present invention is described below in conjunction with the accompanying drawings.
[0106] Figure 3 The present invention provides a flowchart of a method for correcting an error of a server plug-in card according to an embodiment of the present invention.
[0107] like Figure 3 As shown, a complex programmable logic device is applied to a server plug-in card. The error correction method of the server plug-in card provided in an embodiment of the present invention includes: S301: after identifying that the server plug-in card is inserted into the server slot, communicating with the server mainboard via the server slot through a low pin count interface to obtain the first slot information of the server slot.
[0108] S302: Compare the first slot information with the second slot information obtained from the external card main chip. If they are consistent, it is determined that the server external card is inserted into the correct slot. If they are inconsistent, it is determined that the server external card is inserted into the wrong slot and the slot status prompt device is controlled to report a slot connection error.
[0109] S303: Communicate with the server mainboard to obtain the link status information between the server external card and the server mainboard, and control the link status prompt device to output the link status information.
[0110] Among them, the slot status prompt device and the link status prompt device are arranged on the server external card, the complex programmable logic device is connected to the external card main chip through a two-wire serial bus, the first output end of the complex programmable logic device is connected to the slot status prompt device, and the second output end of the complex programmable logic device is connected to the link rate prompt device.
[0111] Since the embodiments of the error correction method of the server plug-in card correspond to the embodiments of the server plug-in card, please refer to the description of the embodiments of the server plug-in card for the embodiments of the error correction method of the server plug-in card, which will not be repeated here.
[0112] Figure 4 A schematic structural diagram of an error correction device for a server plug-in card provided by an embodiment of the present invention.
[0113] like Figure 4 As shown, a complex programmable logic device applied to a server plug-in card, an error correction device for a server plug-in card provided in an embodiment of the present invention includes: a first acquisition unit 401, which is used to communicate with the server mainboard through the server slot through a low pin count interface to obtain the first slot information of the server slot after recognizing that the server plug-in card is inserted into the server slot.
[0114] The comparison unit 402 is used to compare the first slot information with the second slot information obtained from the external card main chip. If they are consistent, it is determined that the server external card is inserted into the correct slot. If they are inconsistent, it is determined that the server external card is inserted into the wrong slot and the slot status prompt device is controlled to report a slot connection error.
[0115] The second acquisition unit 403 is used to communicate with the server mainboard to acquire the link status information between the server external card and the server mainboard, and control the link status prompt device to output the link status information.
[0116] Among them, the slot status prompt device and the link status prompt device are arranged on the server external card, the complex programmable logic device is connected to the external card main chip through a two-wire serial bus, the first output end of the complex programmable logic device is connected to the slot status prompt device, and the second output end of the complex programmable logic device is connected to the link rate prompt device.
[0117] It should be noted that in each implementation of the error correction device of the server plug-in card provided in the embodiment of the present invention, the division of units is only a logical functional division, and other division methods can be used. The connection method between different units can be electrical, mechanical or other connection methods. The separated units can be located in the same physical location or distributed on multiple network nodes. Each unit can be implemented in the form of hardware or in the form of a software functional unit. That is, according to actual needs, part or all of the units provided in the embodiment of the present invention can be selected and the corresponding connection method or integration method can be adopted to achieve the purpose of the embodiment of the present invention.
[0118] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0119] Figure 5 A schematic structural diagram of an error correction device for a server plug-in card provided by an embodiment of the present invention.
[0120] like Figure 5 As shown, the error correction device of the server plug-in card provided by the embodiment of the present invention includes:
[0121] A memory 510 for storing a computer program 511;
[0122] The processor 520 is used to execute the computer program 511. When the computer program 511 is executed by the processor 520, the steps of the error correction method for the server external card provided in any one of the above embodiments are implemented.
[0123] Among them, the processor 520 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 520 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 520 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 520 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 520 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0124] The memory 510 may include one or more non-volatile storage media, which may be non-transitory. The memory 510 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 510 is at least used to store the following computer program 511, wherein, after the computer program 511 is loaded and executed by the processor 520, it can implement the relevant steps in the error correction method of the server plug-in card disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 510 may also include an operating system 512 and data 513, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 512 may be Windows or other types of operating systems. Data 513 may include, but is not limited to, the data involved in the above method.
[0125] In some embodiments, the error correction device of the server plug-in card may also include a display screen 530 , a power supply 540 , a communication interface 550 , an input / output interface 560 , a sensor 570 , and a communication bus 580 .
[0126] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the error correction device of the server add-in card, and may include more or less components than those shown in the figure.
[0127] The error correction device for the server plug-in card provided in the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the steps of the error correction method for the server plug-in card provided in the above embodiment, and the effect is the same as above.
[0128] An embodiment of the present invention provides a non-volatile storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the error correction method for a server plug-in card provided in any one of the above embodiments can be implemented.
[0129] The non-volatile storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0130] For the introduction of the non-volatile storage medium provided in the embodiment of the present invention, please refer to the above method embodiment, and the effect thereof is the same as the error correction method for the server plug-in card provided in the embodiment of the present invention, and the present invention will not elaborate on it here.
[0131] An embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the error correction method for a server external card provided in any one of the above embodiments.
[0132] For an introduction to the computer program product provided by the embodiment of the present invention, please refer to the above method embodiment, and the effect thereof is the same as the error correction method for the server plug-in card provided by the embodiment of the present invention, and the present invention will not elaborate on it here.
[0133] The server plug-in card, the error correction method, device and medium of the server plug-in card provided by the present invention are introduced in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the methods, devices, equipment, non-volatile storage media and computer program products disclosed in the embodiments, since they correspond to the server plug-in card disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the server plug-in card. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
[0134] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A server plug-in card, characterized in that: include: External card main chip, slot status prompt device, link status prompt device and complex programmable logic device; The complex programmable logic device is connected to the external card main chip via a two-wire serial bus, the first output end of the complex programmable logic device is connected to the slot status prompt device, and the second output end of the complex programmable logic device is connected to the link rate prompt device; The complex programmable logic device is used to, after recognizing that a server plug-in card is inserted into a server slot, communicate with a server mainboard through a low pin count interface via the server slot to obtain first slot information of the server slot, compare the first slot information with the second slot information obtained from the plug-in card main chip, and if they are consistent, determine that the server plug-in card is inserted into a correct slot; if they are inconsistent, determine that the server plug-in card is inserted into an incorrect slot and control the slot status prompt device to report a slot connection error; The complex programmable logic device is also used to communicate with the server mainboard to obtain the link status information between the server plug-in card and the server mainboard, and control the link status prompt device to output the link status information.
2. The server plug-in card according to claim 1, characterized in that: Also included is a temperature prompting device connected to the third output terminal of the complex programmable logic device; The complex programmable logic device is also used to communicate with the external card main chip to obtain the detected temperature value of the server external card, and compare the detected temperature value with a pre-stored first over-temperature protection value. If the detected temperature value exceeds the first over-temperature protection value, the temperature prompt device is controlled to issue an over-temperature prompt for the server external card.
3. The server plug-in card according to claim 1, characterized in that: It also includes an external card power-off control circuit connected to the fourth output terminal of the complex programmable logic device; The complex programmable logic device is also used to maintain the connection of the power supply circuit of the server external card when preset conditions including the server external card being inserted into the correct slot are met, otherwise control the external card power-off control circuit to disconnect the power supply circuit of the server external card.
4. The server plug-in card according to claim 3, characterized in that: Also includes AND gate circuits; The two input ends of the AND gate circuit are connected to the two fourth output ends of the complex programmable logic device, respectively; the output end of the AND gate circuit is connected to the input end of the external card power-off control circuit; and the output end of the external card power-off control circuit is connected to the enable end of the voltage regulator power chip of the server external card; When the server plug-in card is inserted into an incorrect slot, the corresponding fourth output terminal of the complex programmable logic device outputs a low level signal; when the server plug-in card is inserted into a correct slot, the corresponding fourth output terminal of the complex programmable logic device outputs a high level signal; When the detected temperature value of the main chip of the external card exceeds the second over-temperature protection value, the corresponding fourth output terminal of the complex programmable logic device outputs a low-level signal; when the detected temperature value of the main chip of the external card does not exceed the second over-temperature protection value, the corresponding fourth output terminal of the complex programmable logic device outputs a high-level signal; The AND gate circuit outputs a high level signal to enable the voltage regulator power chip through the external card power off control circuit when high level signals are input to both input terminals, otherwise it outputs a low level signal to shut down the voltage regulator power chip through the external card power off control circuit.
5. The server plug-in card according to claim 3, characterized in that: The external card power-off control circuit comprises a first field effect transistor, a second field effect transistor, a first resistor, a second resistor and a third resistor; Wherein, the gate of the first field effect tube and the first end of the second resistor are connected to the fourth output end of the complex programmable logic device, the first end of the first resistor and the first end of the second resistor are connected to the low-voltage backup DC power supply of the server external plug-in card, the drain of the first field effect tube and the second end of the first resistor are connected to the gate of the second field effect tube, the drain of the second field effect tube and the second end of the third resistor are connected to the switch control end of the voltage regulator power chip of the server external plug-in card, the first end of the third resistor is connected to the enable power supply of the server external plug-in card, and the source of the first field effect tube and the source of the second field effect tube are grounded; The first field effect transistor and the second field effect transistor are both N-channel metal-oxide semiconductor field effect transistors.
6. The server plug-in card according to claim 1, characterized in that: The link status prompt device includes five high-speed serial computer expansion bus rate indicator lights, which respectively correspond to the first-generation technical specification rate, the second-generation technical specification rate, the third-generation technical specification rate, the fourth-generation technical specification rate and the fifth-generation technical specification rate of the high-speed serial computer expansion bus; The complex programmable logic device controls the link status prompt device to output the link status information, including: the complex programmable logic device controls the corresponding high-speed serial computer expansion bus rate indicator light to light up according to the link rate corresponding to the link status information, and controls the remaining high-speed serial computer expansion bus rate indicator lights to turn off.
7. The server plug-in card according to claim 1, characterized in that: It also includes a temperature prompt device connected to the third output terminal of the complex programmable logic device, an external card power-off control circuit connected to the fourth output terminal of the complex programmable logic device, an adapter slot information prompt device connected to the fifth output terminal of the complex programmable logic device, and an AND gate circuit; The slot status prompt device is a slot connection status indicator light; The adapter slot information prompting device includes a plurality of slot status indicator lights, and the slot status indicator lights correspond one to one with the server slots; The link status prompt device includes five high-speed serial computer expansion bus rate indicator lights, which respectively correspond to the first-generation technical specification rate, the second-generation technical specification rate, the third-generation technical specification rate, the fourth-generation technical specification rate and the fifth-generation technical specification rate of the high-speed serial computer expansion bus; The temperature prompt device is an over-temperature indicator light; The two input ends of the AND gate circuit are connected to the two fourth output ends of the complex programmable logic device, respectively; the output end of the AND gate circuit is connected to the input end of the external card power-off control circuit; and the output end of the external card power-off control circuit is connected to the enable end of the voltage regulator power chip of the server external card; When the complex programmable logic device determines that the server external card is inserted into the correct slot, the complex programmable logic device controls the slot connection status indicator to display green; when the complex programmable logic device determines that the server external card is inserted into the wrong slot, the complex programmable logic device controls the slot connection status indicator to display red; The complex programmable logic device is also used to control the slot status indicator light corresponding to the correct slot corresponding to the server external card to light up according to the second slot information, and control the other slot status indicator lights to turn off; The complex programmable logic device controls the link status prompt device to output the link status information, including: the complex programmable logic device controls the corresponding high-speed serial computer expansion bus rate indicator light to light up according to the link rate corresponding to the link status information, and controls the other high-speed serial computer expansion bus rate indicator lights to turn off; The complex programmable logic device is also used to communicate with the external card main chip to obtain the detected temperature value of the server external card, and compare the detected temperature value with a pre-stored first over-temperature protection value, and if the detected temperature value exceeds the first over-temperature protection value, control the over-temperature indicator light to light up; if the detected temperature value does not exceed the first over-temperature protection value, control the over-temperature indicator light to turn off; The complex programmable logic device is also used to output a low level signal through the corresponding fourth output terminal when the server external plug-in card is inserted into an incorrect slot; and output a high level signal through the corresponding fourth output terminal when the server external plug-in card is inserted into a correct slot; The complex programmable logic device is also used to output a low level signal through the corresponding fourth output terminal when the detected temperature value exceeds the second over-temperature protection value; and output a high level signal through the corresponding fourth output terminal when the detected temperature value does not exceed the second over-temperature protection value; The AND gate circuit outputs a high level signal to enable the voltage regulator power chip through the external card power off control circuit when high level signals are input to both input terminals, otherwise it outputs a low level signal to shut down the voltage regulator power chip through the external card power off control circuit.
8. A method for correcting errors of a server plug-in card, characterized in that: Complex programmable logic devices used in server add-in cards, including: After identifying that a server plug-in card is inserted into a server slot, communicating with a server mainboard via the server slot through a low pin count interface to obtain first slot information of the server slot; Compare the first slot information with the second slot information obtained from the external card main chip, if they are consistent, determine that the server external card is inserted into the correct slot, if they are inconsistent, determine that the server external card is inserted into the wrong slot and control the slot status prompt device to report a slot connection error; communicating with the server mainboard to obtain link status information between the server plug-in card and the server mainboard, and controlling the link status prompt device to output the link status information; Among them, the slot status prompting device and the link status prompting device are arranged on the server external card, the complex programmable logic device is connected to the external card main chip through a two-wire serial bus, the first output end of the complex programmable logic device is connected to the slot status prompting device, and the second output end of the complex programmable logic device is connected to the link rate prompting device.
9. An error correction device for a server plug-in card, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the error correction method for the server external card as claimed in claim 8 are implemented.
10. A non-volatile storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the error correction method for a server plug-in card as claimed in claim 8 are implemented.
