Computing device
By introducing overcurrent detection circuits and logic circuits into the server, the output current of the USB interface is monitored in real time and alarm information is output, which solves the problem that the overcurrent of the USB interface cannot be monitored, ensures the safety of the device, and improves the user's perception and device reliability.
Patent Information
- Application Number
- CN202323547984.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2033-12-25
AI Technical Summary
The server cannot effectively monitor the overcurrent situation on the USB interface, which may cause external devices to be unrecognized or the USB interface hardware to be burned.
A computing device is designed, including an overcurrent detection circuit, logic circuit and substrate management controller. By detecting the output current of peripheral interfaces in real time, if overcurrent occurs, the logic circuit register status changes, and the substrate management controller outputs alarm information. It can also disconnect the power supply path of the USB interface to prevent burning.
Real-time monitoring and alarm of USB interface overcurrent is realized, prompting users to troubleshoot problems in a timely manner, avoiding equipment damage, and improving user perception and device security.
Smart Images

Figure CN222028611U_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of server technology, and in particular to a computing device. Background Art
[0002] The server includes multiple Universal Serial Bus (USB) interfaces, which can be connected to a variety of external devices, such as a mouse and keyboard. The USB interface supports hot plugging. When using external devices on the server, there is no need to shut down and restart the server. Instead, the external devices can be directly plugged into the USB interface for use while the server is working.
[0003] Since the power of external devices using USB interfaces on the market is different and the selection of internal power supply components of server USB interfaces is different, there is a maximum current limit for connected external devices; if the inserted external device has an overcurrent condition, it may cause the external device to be unable to be recognized by the USB interface or the USB interface hardware to burn out due to overcurrent.
[0004] Currently, the server cannot effectively monitor the overcurrent situation of the USB interface. Utility Model Content
[0005] The embodiment of the present application provides a computing device that can effectively monitor overcurrent in a USB interface to prevent the accident from further expanding.
[0006] An embodiment of the present application provides a computing device, including: a peripheral interface for connecting a peripheral; an overcurrent detection circuit connected to the peripheral interface and used to detect an output current of the peripheral interface, the overcurrent detection circuit being used to output a first signal when an overcurrent exists at the output of the peripheral interface; a logic circuit electrically connected to the overcurrent detection circuit, the logic circuit including a first register, the logic circuit being used to change the state of the first register when the overcurrent detection circuit outputs the first signal; a baseboard management controller electrically connected to the logic circuit, the baseboard management controller outputting an alarm message when the state of the first register of the logic circuit changes.
[0007] The computing device provided by the embodiment of the present application detects the output current of the peripheral interface in real time through the overcurrent detection circuit. When the peripheral interface has an overcurrent, the state of the register in the logic circuit will change. The baseboard management controller reads the state change of the register in the logic circuit and outputs an alarm message; the baseboard management controller can directly detect the state of the USB port corresponding to the server, and the active alarm can prompt the user to check the load of the USB peripheral, so that the user or maintenance personnel can be informed of the overcurrent in the peripheral interface in time, and take measures in time to increase the user's perception. It is an existing function of the logic circuit that the logic circuit changes the state of the corresponding register according to the received signal. The baseboard management controller will periodically read the value in the register and output the corresponding instruction according to the value, which is an existing function of the baseboard management controller.
[0008] In a possible implementation, the peripheral interface is a USB interface, and the computing device includes N USB interfaces, where N is an integer greater than or equal to 2; each USB interface is connected to an overcurrent detection circuit; and the overcurrent output pin of each overcurrent detection circuit is connected to a corresponding pin of a logic circuit.
[0009] The computing device provided in the embodiment of the present application may include multiple USB interfaces, each USB interface corresponds to an overcurrent detection circuit, and the overcurrent detection circuit can also provide power to the USB interface.
[0010] In a possible implementation manner, the alarm information is used to indicate that the alarm information is displayed on a BMC web page.
[0011] Since the alarm information is displayed on the BMC web page, users or maintenance personnel can be informed of the overcurrent fault of the USB interface through the alarm information in the first time. The alarm information may include the fault category, fault subject type, event code and occurrence time. The fault category can be divided into minor, serious, emergency, etc.; the fault subject type is the USB interface, and the event code may include the USB interface number and overcurrent information.
[0012] In a possible implementation, the first signal output by each overcurrent detection circuit corresponds to a bit of the first register. For example, if the computing device includes five USB interfaces, then the first register corresponds to five bits. If the first register has eight bits, the remaining three bits can be used as reserved bits. The value of each bit in the register can be used to determine whether the corresponding USB interface has an overcurrent.
[0013] In a possible implementation, the baseboard management controller reads the level of the corresponding pin from the first register of the logic circuit through a bus. For example, the bus may be a local bus. That is, the baseboard management controller is connected to the first register through the Local Bus.
[0014] In one possible implementation, the output pin of the logic circuit is connected to the enable pin of the overcurrent detection circuit; when the overcurrent output pin of the overcurrent detection circuit outputs a low level, the output pin of the logic circuit outputs a low level to the enable pin of the overcurrent detection circuit, so that the overcurrent detection circuit stops supplying power to the USB interface.
[0015] When the overcurrent detection circuit detects that the output current of the USB port is overcurrent, the overcurrent output pin will output a continuous low-level signal. After the fault is eliminated or the overcurrent is restored, the overcurrent output pin will resume outputting a high level.
[0016] A possible implementation method also includes: a switch; a first end of the switch is connected to the overcurrent detection circuit, and a second end of the switch is connected to the USB interface; a control end of the switch is connected to the baseboard management controller; the baseboard management controller is also used to control the switch to disconnect when an overcurrent occurs in the USB interface.
[0017] In the computing device provided by the embodiment of the present application, when an overcurrent occurs in the peripheral interface, the baseboard management controller can disconnect the control switch to cut off the power supply path of the USB interface, thereby avoiding continuous overcurrent in the peripheral interface and burning the peripheral interface.
[0018] In a possible implementation manner, the logic circuit is FPGA or CPLD.
[0019] In a possible implementation, the baseboard management controller includes a timing circuit; when the state of the first register of the baseboard management controller changes, the timing circuit counts, and when the state change of the first register lasts for more than a first time, the baseboard management controller generates an alarm message.
[0020] The baseboard management controller is provided with a timing circuit in order to avoid some transient overcurrent situations that occur when plugging and unplugging USB devices. No alarm is issued for instantaneous overcurrent situations. An alarm is issued only when the USB device is plugged into the USB interface, there is no plugging and unplugging action, and the overcurrent continues. When the state of the first register of the baseboard management controller changes, for example, the state of the first register changes from 1 to 0, the timing circuit starts timing. When the duration of the change in the state of the first register exceeds the first time, the baseboard management controller generates an alarm message. The embodiment of the present application does not specifically limit the duration of the first time, and it can be set according to specific needs, for example, it can be set to 1 second. When the baseboard management controller determines that the state of the first register has changed and the duration exceeds 1 second, it determines that an overcurrent has occurred in the USB interface and outputs an alarm message.
[0021] In a possible implementation, the overcurrent detection circuit is also used to output a second signal when the peripheral interface outputs normal current to restore the state of the first register. When the baseboard management controller reads the state of the first register and restores it, the alarm information is removed.
[0022] The computing device provided in the embodiment of the present application can promptly remove the alarm information when the peripheral interface restores normal current, prompting the user that the peripheral interface of the computing device can be used normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of a computing device provided in an embodiment of the present application;
[0024] Figure 2 A schematic diagram of a power management chip provided in an embodiment of the present application;
[0025] Figure 3 A schematic diagram of another computing device provided in an embodiment of the present application;
[0026] Figure 4 A schematic diagram of another computing device provided in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of another computing device provided in an embodiment of the present application;
[0028] Figure 6 A schematic diagram of a CPLD provided in an embodiment of the present application;
[0029] Figure 7 A schematic diagram of the connection between a power management chip and a CPLD provided in an embodiment of the present application;
[0030] Figure 8 A schematic diagram of another computing device provided in an embodiment of the present application;
[0031] Fig. 9 A schematic diagram of another computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The computing device provided in the embodiment of the present application does not specifically limit the application scenario. For example, the computing device is introduced by taking a server as an example, and the type of the server is not specifically limited. For example, the computing device can be a rack server or an edge server. The server can be located in a data center or in other areas, and the embodiment of the present application does not make specific limitations.
[0033] Servers are a type of computing device that runs faster and has a higher load than ordinary computers. Servers provide computing or application services to other clients (such as PCs, smartphones, and other devices) in the network. Servers have high-speed CPU computing power, long-term reliable operation, strong external data throughput, and better scalability. Servers are divided into rack-mounted, blade-mounted, tower-mounted, and cabinet-mounted types.
[0034] Single board is a common component in servers. Single board is a general term and can be in various forms such as main board, power management board, network data exchange board, etc. Single board is provided with an electrical connector, and single board can be plugged into other electrical components (for example, another single board) through the electrical connector.
[0035] The server generally includes a single board and a power supply, and the power supply is used to supply power to various loads of the single board. The embodiment of the present application does not specifically limit the voltage level provided by the power supply to the single board, for example, DC 12V is used as an example for introduction.
[0036] The embodiment of the present application does not specifically limit the type of single board, and the single board may be a main board or other single board.
[0037] Motherboard, a circuit board in a server, may include a central processing unit (CPU), memory, controller, electrical connector and other components. The central processing unit can be electrically connected to peripheral devices through electrical connectors, for example, the CPU is electrically connected to network cards, graphics cards and other devices through electrical connectors. The controller can be one or more of a micro controller unit (MCU), a complex programmable logic device (CPLD), and a field programmable gate array (FPGA).
[0038] The server load generally includes multiple types, such as CPU, fan, baseboard manager controller (Baseboard Manager Controller, BMC), data processor (Data Processing Unit, DPU) and memory, etc. The embodiment of the present application does not specifically limit the specific type of memory. For example, the memory includes but is not limited to the following types: dual-inline memory modules (DIMM, dual-inline-memory-modules), mechanical hard disk (hard disk drive, HDD) and high-speed serial computer expansion bus standard PCI-Express (peripheral component interconnect express), etc. In addition, the motherboard may include one CPU or multiple CPUs.
[0039] The Baseboard Manager Controller (BMC) is an essential component of the server, used to monitor the operating status of the server, such as temperature, fan speed, power supply status, operating system status, etc. BMC operates independently of the server and is not affected by the server. It can perform some operations such as upgrading the server firmware, viewing the server, and remotely controlling the server startup when the server is not turned on. It can also record key logs when the server crashes.
[0040] USB is a serial bus standard and also a technical specification for input and output interfaces. It regulates the connection and communication between servers and external devices. The USB interface has hot-swappable function.
[0041] When the USB interface of the server is actually used, because a high-power peripheral device, such as a mobile hard disk, is plugged into the USB interface, the USB interface triggers overcurrent protection and the server cannot recognize the mobile hard disk. However, the server does not prompt the reason why the mobile hard disk cannot be recognized.
[0042] In order to solve the problem that the USB interface cannot be prompted when it is overcurrent, the embodiment of the present application detects the current of the USB interface in real time through an overcurrent detection circuit, and the overcurrent detection circuit is connected to the CPLD. When the overcurrent occurs, the state of the register in the CPLD will be changed. When the BMC reads the state of the register and finds that the USB interface has an overcurrent, an overcurrent alarm will be issued. Users or maintenance personnel can learn from the alarm that the USB interface has an overcurrent and know the reason why the peripheral cannot be recognized by the server.
[0043] In order to enable those skilled in the art to better understand the technical solution provided by the embodiments of the present application, a detailed description is given below in conjunction with the accompanying drawings.
[0044] See also Figure 1, which is a schematic diagram of a computing device provided in an embodiment of the present application.
[0045] In the embodiments of the present application, the computing device is taken as a server as an example.
[0046] The server provided in the embodiment of the present application includes: a casing and a mainboard; the casing is provided with a peripheral interface, and the casing may also include a built-in interface, which can also be used to connect peripherals, for example, for testing or debugging.
[0047] The peripheral device interface 100 is used for connecting peripheral devices;
[0048] The embodiment of the present application does not specifically limit the specific type of the peripheral interface 100, for example, it can be a USB interface; it can also be other interfaces. And the embodiment of the present application does not specifically limit the number of peripheral interfaces 100, it can be one or more. Generally, a server includes multiple peripheral interfaces 100, for example, the server includes at least one front USB interface, at least one rear USB interface and / or at least one built-in USB interface. The USB interface can be used to connect a mouse, keyboard, or mobile hard disk, etc.
[0049] The overcurrent detection circuit 200 is connected to the peripheral interface 100 and is used to detect the output current of the peripheral interface 100. When the output of the peripheral interface 100 has an overcurrent, the overcurrent detection circuit 200 outputs a first signal;
[0050] It should be understood that the overcurrent of the output current of the peripheral interface 100 is generally caused by the high power of the peripheral connected to the peripheral interface 100. Since the voltage of the peripheral design 100 is generally fixed, when the power is high, the output current will be high.
[0051] The embodiment of the present application does not specifically limit the specific implementation form of the overcurrent detection circuit 200. For example, a power management chip may be used, specifically a SY6287Y chip. The power management chip can supply power to the USB interface and can also be used to detect the output current of the USB interface. When the output current of the USB interface is overcurrent, the overcurrent output pin of the power management chip will continue to output a low level. When the output current of the USB interface is not overcurrent, that is, normal, the overcurrent output pin of the power management chip will resume outputting a high level.
[0052] See also Figure 2 , which is a schematic diagram of a power management chip provided in an embodiment of the present application.
[0053] In the embodiment of the present application, the power management chip is taken as the SY6287Y chip U1 as an example for introduction.
[0054] For example, the input pin IN of the SY6287Y chip is connected to the power supply DC, the output voltage Vbus of the output pin OUT of the SY6287Y chip supplies power to the USB interface, the overcurrent output pin OCB of the SY6287Y chip outputs the overcurrent detection result, and the overcurrent output pin OCB of the SY6287Y chip is connected to the logic circuit 300. The enable pin EN of the SY6287Y chip receives the control signal of other chips to enable the SY6287Y chip to work. The reset pin ISET of the SY6287Y chip is grounded through a resistor. The ground pin GND of the SY6287Y chip is grounded.
[0055] The power management chip can determine whether the output current of the USB interface exceeds the current threshold. For example, the current threshold can be set to 1.5A. If the output current of the USB interface is greater than 1.5A, the overcurrent output pin of the power management chip will output a low level, and the state of the CPLD register will change, for example, from 1 to 0. The state of the register read by the baseboard management controller changes from 1 to 0, then it is determined that overcurrent occurs in the USB interface.
[0056] The logic circuit 300 is electrically connected to the overcurrent detection circuit 200. When the overcurrent detection circuit 200 outputs the first signal, the state of the first register in the logic circuit 300 changes. It should be understood that the logic circuit 300 changes the state of the corresponding register according to the received signal, which is an existing function of the logic circuit 300.
[0057] The embodiment of the present application does not specifically limit the specific type of the logic circuit 300. For example, the logic circuit 300 can be implemented by using CPLD or FPGA. In the embodiment of the present application, the logic circuit 300 is implemented by using CPLD in the server.
[0058] The baseboard management controller 400 is electrically connected to the logic circuit 300. When the state of the first register of the logic circuit 300 changes, the baseboard management controller 400 outputs an alarm message. The baseboard management controller 400 periodically reads the value in the register and outputs a corresponding instruction according to the value, which is an existing function of the baseboard management controller 400.
[0059] The embodiment of the present application does not specifically limit the alarm method of the baseboard management controller 400. For example, the alarm information is used to indicate that the alarm information is displayed on the BMC web page. The alarm information may include the fault category, the fault subject type, the event code, and the occurrence time. The fault category may be divided into minor, serious, and urgent; if the fault subject type is a USB interface, the event code may include the USB interface number and overcurrent information.
[0060] The server provided in the embodiment of the present application detects the output current of the peripheral interface in real time through an overcurrent detection circuit. When an overcurrent occurs in the peripheral interface, the state of the register in the logic circuit will change. The baseboard management controller reads the state change of the register in the logic circuit and outputs an alarm message. The baseboard management controller can directly detect the state of the USB port corresponding to the server. The active alarm can prompt the user to check the load condition of the USB peripheral, so that the user or maintenance personnel can be notified of the overcurrent in the peripheral interface in time and take measures in time to increase user awareness.
[0061] For problems such as the USB interface not recognizing peripherals or USB interface hardware damage, you can increase the location of the fault by viewing the baseboard management controller alarm record and increase the alarm category of the log.
[0062] The embodiment of the present application does not specifically limit the specific physical position relationship between the overcurrent detection circuit and the USB interface. A specific implementation method is introduced below in conjunction with the accompanying drawings.
[0063] See also Figure 3 , which is a schematic diagram of another server provided in an embodiment of the present application.
[0064] In order to save space, in the server provided in the embodiment of the present application, the overcurrent detection circuit 200 can be integrated with the USB interface 100, or the overcurrent detection circuit 200 can be integrated inside the USB interface 100.
[0065] Each USB interface 100 includes an overcurrent detection circuit 200. In addition to detecting the output current of the USB interface 100, the overcurrent detection circuit 200 can also provide power for the USB interface 100, that is, the input end of the overcurrent detection circuit 200 is connected to the power supply, and the output end of the overcurrent detection circuit 200 provides power for the USB interface 100, for example, providing a 5V voltage.
[0066] The server provided in the embodiment of the present application does not specifically limit the number of USB interfaces. The server includes N USB interfaces, where N is an integer greater than or equal to 2; each USB interface includes an overcurrent detection circuit; the overcurrent output pin of each overcurrent detection circuit is connected to a corresponding pin of the logic circuit.
[0067] In a possible implementation, the overcurrent detection circuit 200 is also used to output a second signal when the peripheral interface outputs normal current, and the state of the first register in the logic circuit 300 is restored. The baseboard management controller 400 reads the state of the first register in the logic circuit 300 and cancels the alarm information.
[0068] In another possible implementation, in addition to detecting whether the USB interface is overcurrent, the overcurrent detection circuit 200 can also actively shut down the power supply of the USB interface when the USB interface is overcurrent. When the USB interface is out of power, the overcurrent of the USB interface is naturally restored, and the overcurrent detection circuit 200 will no longer detect the overcurrent of the USB interface. Therefore, the overcurrent detection circuit 200 resumes outputting a high level, and the state of the CPLD register is also restored. In this way, the baseboard management controller can re-enable the overcurrent detection circuit by the logic circuit every preset period, such as every half a minute or one minute, and the overcurrent detection circuit re-powers the USB interface and re-detects whether the USB interface is overcurrent. If the USB interface is still overcurrent, the baseboard management controller keeps the alarm, and if it is not overcurrent, the recovery information is removed.
[0069] For example, the server may include 2 front USB ports, 2 rear USB ports, and one internal USB port.
[0070] For the convenience of introduction and understanding, the following description takes a server including two USB interfaces as an example.
[0071] See also Figure 4 , which is a schematic diagram of another server provided in an embodiment of the present application.
[0072] like Figure 4 As shown, the server includes a first USB interface 101 , a second USB interface 102 , a first overcurrent detection circuit 201 , a second overcurrent detection circuit 202 , a logic circuit 300 , and a baseboard management controller 400 .
[0073] A first end of the first overcurrent detection circuit 201 is connected to the first USB interface 101 , and an overcurrent output pin of the first overcurrent detection circuit 201 is connected to the logic circuit 300 .
[0074] A first end of the second over-current detection circuit 202 is connected to the second USB interface 102 , and an over-current output pin of the second over-current detection circuit 202 is connected to the logic circuit 300 .
[0075] The logic circuit 300 is connected to the baseboard management controller 400 .
[0076] The first signal output by each overcurrent detection circuit corresponds to a bit of the first register. For example, the first signal output by the overcurrent output pin of the first overcurrent detection circuit 201 corresponds to the first bit of the first register, and the first signal output by the overcurrent output pin of the second overcurrent detection circuit 202 corresponds to the second bit of the first register. When the server includes 5 USB interfaces, the first signals output by the overcurrent output pins of the 5 overcurrent detection circuits occupy 5 bits of the first register respectively. When the first register includes 8 bits, the remaining 3 bits can be reserved bits.
[0077] Specifically, the baseboard management controller 400 reads the level of the corresponding pin from the first register of the logic circuit 300 through the bus. For example, the bus may be a local bus.
[0078] It should be understood that the baseboard management controller 400 can periodically read the state of the first register in the logic circuit 300, generally in a period of seconds, which is fast and can promptly detect whether an overcurrent occurs in the USB interface.
[0079] In a possible implementation, in the server provided in the embodiment of the present application, the baseboard management controller 300 may further include a timing circuit (not shown in the figure).
[0080] The baseboard management controller 300 is provided with a timing circuit to avoid some transient overcurrent situations that occur when plugging and unplugging USB devices. No alarm is issued for transient overcurrent situations. An alarm is issued only when the USB device is plugged into the USB interface, there is no plugging and unplugging action, and the overcurrent continues.
[0081] When the state of the first register of the baseboard management controller 300 changes, for example, the state of the first register changes from 1 to 0, the timing circuit performs timing, and when the duration of the state change of the first register of the timing circuit exceeds the first time, the baseboard management controller generates an alarm message. The embodiment of the present application does not specifically limit the duration of the first time, and can be set according to specific needs, for example, it can be set to 1 second. When the baseboard management controller 300 determines that the state of the first register has changed and the duration exceeds 1 second, it is determined that the USB interface has an overcurrent, and an alarm message is output.
[0082] The following description takes a server including 5 USB interfaces as an example.
[0083] See also Figure 5 , which is a schematic diagram of another server provided in an embodiment of the present application.
[0084] The server provided in the embodiment of the present application includes USB interface 1, USB interface 2, USB interface 3, USB interface 4 and USB interface 5, and the five USB interfaces correspond to the following five overcurrent detection circuits respectively: overcurrent detection circuit 1, overcurrent detection circuit 2, overcurrent detection circuit 3, overcurrent detection circuit 4 and overcurrent detection circuit 5.
[0085] USB interface 1 is connected to overcurrent detection circuit 1; USB interface 2 is connected to overcurrent detection circuit 2; USB interface 3 is connected to overcurrent detection circuit 3; USB interface 3 is connected to overcurrent detection circuit 4; USB interface 4 is connected to overcurrent detection circuit 5.
[0086] The overcurrent detection circuit 1 , the overcurrent detection circuit 2 , the overcurrent detection circuit 3 , the overcurrent detection circuit 4 , and the overcurrent detection circuit 5 are all connected to the logic circuit 300 .
[0087] Among them, USB interface 1 and USB interface 2 may be front USB interfaces of the server, USB interface 3 and USB interface 4 may be rear USB interfaces of the server, and USB interface 5 is a built-in USB interface of the server.
[0088] A specific circuit diagram can be found in Figure 6 shown.
[0089] Figure 6 Continuing with the example of a server with five USB ports, the five USB ports correspond to five power management chips one by one. Figure 6 USB1-USB5 are the detection signals output by the overcurrent output pins of the five power management chips, that is, the overcurrent output pins of the five power management chips are directly connected to the five IO pins of the CPLD, and the remaining three IO pins of the CPLD are connected to the 3.3V power supply through pull-up resistors.
[0090] A specific connection relationship between the power management chip and the CPLD is introduced below with reference to the accompanying drawings.
[0091] See also Figure 7 , which is a schematic diagram of the connection between a power management chip and a CPLD provided in an embodiment of the present application.
[0092] from Figure 7It can be seen that the enable EN pin of the power management chip U1 is connected to the CPLD, and EN is also connected to 3.3V through a pull-up resistor. The input pin IN of U1 is connected to the DC power supply DC. It should be understood that a filter circuit is connected between IN and the DC power supply DC. The filter circuit includes multiple capacitors. The embodiment of the present application does not specifically limit the number and capacitance of the capacitors, and can be set according to actual needs. The OCB of U1 detects whether the USB interface is overcurrent, and the OCB is connected to the CPLD through a current-limiting resistor. The output OUT of U1 outputs 5V to power the USB interface. It should be understood that OUT powers the USB interface after passing through the filter circuit. The filter circuit includes resistors, capacitors and magnetic beads. The present application does not specifically limit the specific implementation form of the filter circuit. The figure is only a schematic. The reset pin ISET of U1 is connected to GND through a resistor.
[0093] The above is merely an example, and the embodiment of the present application does not specifically limit the number and position of the USB ports.
[0094] In a possible implementation, in the server provided by the embodiment of the present application, when the baseboard management controller identifies that the USB interface has overcurrent, it can not only generate an alarm, but also control the power management chip to stop supplying power to the USB interface or cut off the power supply path of the USB interface. The following is a detailed description of each of the above with reference to the accompanying drawings.
[0095] See also Figure 8 , which is a schematic diagram of another server provided in an embodiment of the present application.
[0096] The server provided by the embodiment of the present application has an overcurrent detection circuit with an enable pin. When the enable pin is valid, the output end of the overcurrent detection circuit supplies power to the USB interface. When the enable pin is invalid, the output end of the overcurrent detection circuit stops supplying power to the USB interface. Therefore, the baseboard management controller 400 can control the USB interface to power off by controlling the enable pin of the overcurrent detection circuit through the logic circuit 300, thereby ensuring the safety of the USB interface and preventing overcurrent from burning components.
[0097] The output pin of the logic circuit 300 connected to the baseboard management controller logic circuit is connected to the enable pin of the overcurrent detection circuit; continue to introduce the two USB interfaces and two overcurrent detection circuits as an example. That is, the output pin of the logic circuit 300 is connected to the first overcurrent detection circuit 201 and the second overcurrent detection circuit 202.
[0098] The logic circuit 300 is used to output a low level to the enable pin of the first overcurrent detection circuit 201 when the overcurrent output pin of the first overcurrent detection circuit 201 outputs a low level, so that the first overcurrent detection circuit 201 stops supplying power to the first USB interface 101.
[0099] The logic circuit 300 is also used for outputting a low level to the enable pin of the second overcurrent detection circuit 202 when the overcurrent output pin of the second overcurrent detection circuit 202 outputs a low level, so that the second overcurrent detection circuit 202 stops supplying power to the second USB interface 102 .
[0100] It should be understood that when the server includes multiple USB interfaces, sometimes only one USB interface may have overcurrent, or multiple USB interfaces may have overcurrent, which is not specifically limited. Whether the USB interface has overcurrent depends on whether the power of the connected peripheral is too high, for example, higher than the preset power, which may cause the output current of the USB interface to overcurrent. For example, the first USB interface 101 and the second USB interface are both connected to peripherals, but the output current of the first USB interface 101 has overcurrent, and the output current of the second USB interface 102 is normal.
[0101] The above introduction is that the baseboard management controller controls the enable pin of the overcurrent detection circuit through the logic circuit. In addition, the power supply path between the overcurrent detection circuit and the USB interface can also be cut off.
[0102] See also Fig. 9 , which is a schematic diagram of another server provided in an embodiment of the present application.
[0103] The server provided in the embodiment of the present application also includes: a switch; the first end of the switch is connected to the overcurrent detection circuit, and the second end of the switch is connected to the USB interface; the control end of the switch is connected to the baseboard management controller; the baseboard management controller is also used to control the switch to disconnect when an overcurrent occurs in the USB interface.
[0104] Fig. 9 The following continues to use two USB interfaces as an example.
[0105] The output terminal OUT of the overcurrent detection circuit is used to output a voltage to power the USB interface, and the overcurrent output pin OCB of the overcurrent detection circuit is used to detect the output current of the USB interface to determine whether an overcurrent occurs.
[0106] The OUT of the first overcurrent detection circuit 201 is connected to the power supply terminal of the first USB interface 101 through the first switch S1 , and the OCB of the first overcurrent detection circuit 201 is connected to the output current terminal of the first USB interface 101 .
[0107] The OUT of the second over-current detection circuit 202 is connected to the power terminal of the second USB interface 102 through the second switch S2 , and the OCB of the second over-current detection circuit 202 is connected to the output current terminal of the second USB interface 102 .
[0108] For example, when the logic circuit 300 determines that an overcurrent occurs in the first USB interface 101 , the control S1 is turned off, thereby cutting off the power supply path of the first overcurrent detection circuit 201 to the first USB interface 101 .
[0109] The embodiments of the present application do not specifically limit the specific implementation of the above switches. For example, it can be a semiconductor switching device such as a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) or an Insulate-Gate Bipolar Transistor (IGBT).
[0110] The server provided in the embodiment of the present application can detect whether an overcurrent occurs in the USB interface through a hardware circuit. If an overcurrent occurs, the register state of the CPLD changes. The baseboard management controller detects the change in the status bit of the CPLD register to implement an alarm and recovery prompt for the USB interface overcurrent.
[0111] The above is only a preferred embodiment of the present application and does not constitute any formal limitation to the present application. Although the present application has been disclosed as above with a preferred embodiment, it is not intended to limit the present application. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present application using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still fall within the scope of protection of the technical solution of the present application.
Claims
1. A computing device, characterized in that include: Peripheral interface, used for connecting peripherals; an overcurrent detection circuit, connected to the peripheral interface, and used to detect an output current of the peripheral interface, wherein the overcurrent detection circuit is used to output a first signal when an overcurrent exists at the output of the peripheral interface; a logic circuit electrically connected to the overcurrent detection circuit, the logic circuit comprising a first register, the logic circuit being configured to change a state of the first register when the overcurrent detection circuit outputs the first signal; A baseboard management controller is electrically connected to the logic circuit, and the baseboard management controller is used to output alarm information when the state of the first register changes.
2. The computing device according to claim 1, wherein: The peripheral interface is a USB interface, and the computing device includes N USB interfaces, where N is an integer greater than or equal to 2; Each of the USB interfaces is correspondingly connected to one of the overcurrent detection circuits; The overcurrent output pin of each overcurrent detection circuit is connected to a corresponding pin of the logic circuit.
3. The computing device according to claim 1, wherein: The warning information is used to instruct to display the warning information on the BMC web page.
4. The computing device according to claim 2, wherein: The first signal output by each of the overcurrent detection circuits corresponds to a bit of the first register.
5. The computing device according to claim 4, characterized in that The baseboard management controller reads the level of the corresponding pin from the first register of the logic circuit through a bus.
6. The computing device according to claim 5, characterized in that The output pin of the logic circuit is connected to the enable pin of the overcurrent detection circuit; The logic circuit is used for outputting a low level to the enable pin of the overcurrent detection circuit when the overcurrent output pin of the overcurrent detection circuit outputs a low level, so that the overcurrent detection circuit stops supplying power to the USB interface.
7. The computing device according to claim 2, characterized in that Also includes: switch; The first end of the switch is connected to the overcurrent detection circuit, and the second end of the switch is connected to the USB interface; The control end of the switch is connected to the baseboard management controller; The baseboard management controller is also used to control the switch to be disconnected when an overcurrent occurs in the USB interface.
8. The computing device according to claim 1, wherein: The logic circuit is FPGA or CPLD.
9. The computing device according to any one of claims 1 to 8, characterized in that: The baseboard management controller includes a timing circuit; When the state of the first register of the baseboard management controller changes, the timing circuit starts timing. When the state change of the first register lasts for more than a first time, the baseboard management controller generates alarm information.
10. The computing device according to any one of claims 1 to 8, characterized in that: The overcurrent detection circuit is also used to output a second signal when the peripheral interface outputs normal current to restore the state of the first register. The baseboard management controller reads the state of the first register and cancels the alarm information.
Citation Information
Cited By
Link exception processing method of server and electronic equipment
CN121239603A
