Computing device, sampling circuit and network port state acquisition method
By setting up a sampling circuit between the substrate management controller and the network chip, and using the control signal of the indicator light to obtain the network port status, the problem of the inability to detect the healthy status of the network chip in the prior art is solved, and a wider detection capability and performance improvement is achieved.
Patent Information
- Application Number
- CN202510242100.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-07-25
AI Technical Summary
In computing devices, the prior art cannot obtain the network port working status of the network chip in a specific scenario, resulting in the inability to detect the health status of the network chip.
A sampling circuit is set up between the substrate management controller and the network chip, and the operating state of the network port is obtained through the control signal of the sampling indicator to avoid relying on the communication interface and internal registers of the network chip.
In more scenarios, the network port working status of the network chip can be obtained, which improves the functional expansion and working performance of the network chip, reduces the use of register storage space, and improves the accuracy and real-time detection.
Smart Images

Figure CN120371630A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of computing devices, and in particular, to a computing device, a sampling circuit, and a method for obtaining the status of a network interface. Background Art
[0002] In a computing device, the health status of a network chip is crucial for the operation of the computing device, and the working status of the network interfaces in the network chip can reflect the health status of the network chip. Based on this, by obtaining the working status of the network interfaces, the health status of the network chip can be detected.
[0003] Currently, the baseboard management controller of a computing device communicates with the communication interface of the network chip through its communication interface (such as an I2C interface), reads the information of the registers inside the network chip, and the information of the registers is used to represent the working status of the network interfaces, so as to obtain the working status of the network interfaces, and thus detect the health status of the network chip. However, in some specific scenarios, such as when the communication interface of the network chip is used for other functions or the network chip does not support querying the working status of the network interfaces, etc., this causes the baseboard management controller to be unable to obtain the working status of the network interfaces, and thus unable to detect the health status of the network chip. Summary of the Invention
[0004] Embodiments of this application provide a computing device, a sampling circuit, and a method for obtaining the status of a network interface. It can obtain the working status of the network interfaces of a network chip in more scenarios, so as to monitor the health status of the network chip.
[0005] In a first aspect, embodiments of this application provide a computing device. The computing device includes a baseboard management controller, a network chip, an indicator light, and a sampling circuit. The input end of the sampling circuit is coupled to the indicator light control end of the network chip. The network chip is coupled to the indicator light. The output end of the sampling circuit is coupled to the baseboard management controller. Among them, the indicator light control end is used to output a control signal of the indicator light, and the control signal of the indicator light is used to control the indication status of the indicator light. The indicator light is used to indicate the working status of the network interfaces of the network chip. The baseboard management controller is used to: obtain the control signal through the sampling circuit. Determine the working status of the network interfaces based on the control signal.
[0006] In this way, a sampling circuit is provided between the baseboard management controller and the network chip, and the input end of the sampling circuit is coupled to the indicator light control end of the network chip, so that the sampling circuit samples the control signal of the indicator light output by the indicator light control end. In this way, the baseboard management controller obtains the control signal of the indicator light through the sampling circuit, and determines the working state of the network port based on the control signal. It can obtain the working state of the network port of the network chip without relying on the communication interface and the information of the internal register of the network chip, and still be able to obtain the working state of the network port of the network chip, so as to be able to obtain the working state of the network port of the network chip in more scenarios (such as the communication interface of the network chip is used for other functions, or the network chip does not support querying the working state of the network port, etc.), so as to realize monitoring the health state of the network chip.
[0007] In addition, since the communication interface of the network chip is no longer relied on when obtaining the working state of the network port, the communication interface resources of the network chip are released, so that the communication interface of the network chip can be used for other functions, improving the functional expandability of the network chip. At the same time, since there is no need to access the internal register of the network chip to obtain the information of the working state of the network port, the occupation of the storage space of the register is reduced, thereby improving the working performance of the network chip.
[0008] In a possible implementation manner of the first aspect, the sampling circuit includes an input / output I / O expansion circuit. Among them, the input interface of the I / O expansion circuit is coupled to the indicator light control end. The output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller. In this way, the baseboard management controller can obtain the control signal through the I / O expansion circuit, so as to realize detecting the working state of the network port.
[0009] In another possible implementation manner of the first aspect, the sampling circuit includes an input / output I / O expansion circuit and a peak detection circuit. Among them, the input end of the peak detection circuit is coupled to the indicator light control end. The output end of the peak detection circuit is coupled to the input interface of the I / O expansion circuit. The output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller. In this way, through the cooperation of the I / O expansion circuit and the peak detection circuit, the baseboard management controller can sample the control signals of multiple types of indicator lights (such as level signals or pulse signals, etc.), ensuring the integrity and sampling flexibility of the control signal, avoiding inaccurate control signals being sampled, and thus improving the accuracy of judging the working state of the network port.
[0010] In another possible implementation of the first aspect, the sampling circuit includes an analog / digital (A / D) sampling circuit. The input end of the A / D sampling circuit is coupled to the indicator control end. The output end of the A / D sampling circuit is coupled to the I2C interface of the baseboard management controller. The baseboard management controller can obtain the control signal through the A / D sampling circuit, so as to determine the working state of the network interface. In addition, the control signals that the A / D sampling circuit can sample are more diverse, comprehensive, and accurate, such as sampling level signals and / or pulse signals, etc., so that the determined working state of the network interface is more accurate and misjudgment is avoided.
[0011] In a possible implementation of the first aspect, the indicator includes a first type of indicator. Among them, the first type of indicator is used to indicate the connection state of the network interface. The connection state includes a connected state, a disconnected state, or a data transmission state. The control signal includes a first type of control signal. The first type of control signal is used to control the indication state of the first type of indicator. The baseboard management controller is used to determine the working state of the network interface based on the control signal, including: the baseboard management controller is used to determine the working state of the network interface based on the first type of control signal.
[0012] In this way, through the first type of control signal, the baseboard management controller can accurately determine the connection state of the network interface. Since the connection state of the network interface is a real-time feature, that is, it can immediately and accurately reflect the current connection state of the network interface, the accuracy and real-time performance of the working state detection of the network interface are improved.
[0013] In a possible implementation of the first aspect, the baseboard management controller is used to determine the working state of the network interface based on the first type of control signal, including: the baseboard management controller is used to: when the first type of control signal is a first level signal, determine that the network interface is in a connected state; when the first type of control signal is a second level signal, determine that the network interface is in a disconnected state; when the first type of control signal is a pulse signal, determine that the network interface is in a data transmission state.
[0014] In this way, through the first type of control signal, the baseboard management controller realizes the accurate judgment of the working state of the network interface (specifically the connected state), so as to provide a basis for judging the health state of the network chip.
[0015] In another possible implementation of the first aspect, the indicator light further includes a second type of indicator light. The second type of indicator light is used to indicate the connection rate of the network port. The control signal further includes a second type of control signal. The second type of control signal is used to control the indication state of the second type of indicator light. The indication state of the second type of indicator light includes that the network port operates at a first connection rate, a second connection rate, or the network port is in a disconnected state. The baseboard management controller is used to determine the working state of the network port based on the control signal, including: the baseboard management controller is used to: determine the working state of the network port based on the first type of control signal and the second type of control signal. The working state includes the connection rate and the connection state.
[0016] In this way, the baseboard management controller jointly determines the working state of the network port through the first type of control signal and the second type of control signal, not only detecting the connection state of the network port, but also detecting the connection rate at which the network port operates (such as the first connection rate or the second connection rate), so as to more comprehensively, accurately and specifically determine the working state of the network port and improve the accuracy of judgment.
[0017] In a possible implementation of the first aspect, the second type of indicator light includes a first indicator light and a second indicator light. The second type of control signal includes a first control signal and a second control signal. The first control signal is used to control the indication state of the first indicator light, and the indication state of the first indicator light includes that the network port operates at the first connection rate or the network port is disconnected. The second control signal is used to control the indication state of the second indicator light, and the indication state of the second indicator light includes that the network port operates at the second connection rate or the network port is disconnected. The baseboard management controller is used to determine the working state of the network port based on the first type of control signal and the second type of control signal, including: the baseboard management controller is used to: determine the working state of the network port based on the first type of control signal and the first control signal; or determine the working state of the network port based on the first type of control signal and the second control signal.
[0018] In this way, the baseboard management controller can determine the working state of the network port in multiple dimensions and with high precision through the combined analysis of the first type of control signal and the first control signal, or the combined analysis of the first type of control signal and the second control signal, further improving the reliability of determining the working state of the network port.
[0019] In a possible implementation of the first aspect, the baseboard management controller is used to determine the working state of the network port based on the first type of control signal and the first control signal, including: the baseboard management controller is used to: when the first type of control signal is a first-level signal and the first control signal is a first-level signal, determine that the network port is in a connected state and operates at the first connection rate; when the first type of control signal is a pulse signal and the first control signal is a first-level signal, determine that the network port is in a data transmission state and operates at the first connection rate.
[0020] In this way, by comprehensively analyzing the first type of control signal and the first control signal, the baseboard management controller can accurately determine the working state of the network interface, further improving the accuracy and reliability of the judgment of the working state of the network interface.
[0021] In a possible implementation manner of the first aspect, the baseboard management controller is configured to determine the working state of the network interface based on the first type of control signal and the second control signal, including: the baseboard management controller is configured to: when the first type of control signal is a first-level signal and the second control signal is a first-level signal, determine that the network interface is in a connected state and operates at a second connection rate. When the first type of control signal is a pulse signal and the second control signal is a first-level signal, determine that the network interface is in a data transmission state and operates at a second connection rate.
[0022] In this way, by comprehensively analyzing the first type of control signal and the second control signal, the baseboard management controller can accurately determine the working state of the network interface, further improving the accuracy and reliability of the judgment of the working state of the network interface.
[0023] In a second aspect, an embodiment of the present application provides a sampling circuit, which is applied to a computing device. The computing device includes a baseboard management controller, a network chip, and an indicator light. The input end of the sampling circuit is coupled to the indicator light control end of the network chip. The network chip is coupled to the indicator light. The output end of the sampling circuit is coupled to the baseboard management controller. Among them, the indicator light control end is used to output the control signal of the indicator light, and the control signal of the indicator light is used to control the indication state of the indicator light. The indicator light is used to indicate the network interface connection state of the network chip. The sampling circuit is used to obtain the control signal and provide the control signal to the baseboard management controller. The control signal is used for the baseboard management controller to determine the working state of the network interface.
[0024] In another possible implementation manner of the second aspect, the sampling circuit includes an input / output I / O expansion circuit; wherein, the input interface of the I / O expansion circuit is coupled to the indicator light control end. The output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller.
[0025] In another possible implementation manner of the second aspect, the sampling circuit includes an input / output I / O expansion circuit and a peak detection circuit. Among them, the input end of the peak detection circuit is coupled to the indicator light control end. The output end of the peak detection circuit is coupled to the input interface of the I / O expansion circuit. The output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller.
[0026] In another possible implementation manner of the second aspect, the sampling circuit includes an analog / digital A / D sampling circuit. The input end of the A / D sampling circuit is coupled to the indicator light control end. The output end of the A / D sampling circuit is coupled to the I2C interface of the baseboard management controller.
[0027] In a possible implementation of the second aspect, the indicator light includes a first type of indicator light. Among them, the first type of indicator light is used to indicate the connection status of the network port. The connection status includes a connected state, a disconnected state, or a data transmission state. The control signal includes a first type of control signal. The first type of control signal is used to control the indication state of the first type of indicator light. The baseboard management controller is used to determine the working state of the network port based on the control signal, including: the baseboard management controller is used to determine the working state of the network port based on the first type of control signal.
[0028] In a possible implementation of the second aspect, the baseboard management controller is used to determine the working state of the network port based on the first type of control signal, including: the baseboard management controller is used to: when the first type of control signal is a first-level signal, determine that the network port is in a connected state. When the first type of control signal is a second-level signal, determine that the network port is in a disconnected state. When the first type of control signal is a pulse signal, determine that the network port is in a data transmission state.
[0029] In another possible implementation of the second aspect, the indicator light further includes a second type of indicator light. Among them, the second type of indicator light is used to indicate the connection rate of the network port. The control signal further includes a second type of control signal. The second type of control signal is used to control the indication state of the second type of indicator light. The indication state of the second type of indicator light includes that the network port operates at a first connection rate, a second connection rate, or the network port is in a disconnected state. The baseboard management controller is used to determine the working state of the network port based on the control signal, including: the baseboard management controller is used to: determine the working state of the network port based on the first type of control signal and the second type of control signal. Among them, the working state includes the connection rate and the connection status.
[0030] In a possible implementation of the second aspect, the second type of indicator light includes a first indicator light and a second indicator light. The second type of control signal includes a first control signal and a second control signal. Among them, the first control signal is used to control the indication state of the first indicator light, and the indication state of the first indicator light includes that the network port operates at a first connection rate or the network port is disconnected. The second control signal is used to control the indication state of the second indicator light, and the indication state of the second indicator light includes that the network port operates at a second connection rate or the network port is disconnected. The baseboard management controller is used to determine the working state of the network port based on the first type of control signal and the second type of control signal, including: the baseboard management controller is used to: determine the working state of the network port based on the first type of control signal and the first control signal; or, determine the working state of the network port based on the first type of control signal and the second control signal.
[0031] In a possible implementation of the second aspect, the baseboard management controller is configured to determine the working state of the network interface based on the first type of control signal and the first control signal, including: the baseboard management controller is configured to: when the first type of control signal is a first-level signal and the first control signal is a first-level signal, determine that the network interface is in a connected state and operates at a first connection rate; when the first type of control signal is a pulse signal and the first control signal is a first-level signal, determine that the network interface is in a data transmission state and operates at a first connection rate.
[0032] In a possible implementation of the second aspect, the baseboard management controller is configured to determine the working state of the network interface based on the first type of control signal and the second control signal, including: the baseboard management controller is configured to: when the first type of control signal is a first-level signal and the second control signal is a first-level signal, determine that the network interface is in a connected state and operates at a second connection rate; when the first type of control signal is a pulse signal and the second control signal is a first-level signal, determine that the network interface is in a data transmission state and operates at a second connection rate.
[0033] In a third aspect, an embodiment of the present application provides a method for obtaining the network interface state, which is applied to a computing device. The method includes: obtaining a control signal of an indicator light. Wherein, the indicator light is used to indicate the connection state of the network interface. The control signal is used to control the indication state of the indicator light. Based on the control signal, determine the working state of the network interface.
[0034] In a possible implementation of the third aspect, the indicator light includes a first type of indicator light. Wherein, the first type of indicator light is used to indicate the connection state of the network interface. The connection state of the network interface includes a connected state, a disconnected state, or a data transmission state. The control signal includes a first type of control signal. The first type of control signal is used to control the indication state of the first type of indicator light. Determining the working state of the network interface based on the control signal includes: determining the working state of the network interface based on the first type of control signal.
[0035] In a possible implementation of the third aspect, determining the working state of the network interface based on the first type of control signal includes: when the first type of control signal is a first-level signal, determine that the network interface is in a connected state; when the first type of control signal is a second-level signal, determine that the network interface is in a disconnected state; when the first type of control signal is a pulse signal, determine that the network interface is in a data transmission state.
[0036] In a possible implementation of the third aspect, the indicating light further includes a second type of indicating light; wherein, the second type of indicating light is used to indicate the connection rate of the network port. The control signal further includes a second type of control signal. The second type of control signal is used to control the indicating state of the second type of indicating light. The indicating state of the second type of indicating light includes that the network port operates at a first connection rate, the first connection rate, or the network port is in a disconnected state. Determining the working state of the network port based on the first type of control signal includes: determining the working state of the network port based on the first type of control signal and the second type of control signal. Wherein, the working state includes the connection rate and the connection state.
[0037] In a possible implementation of the third aspect, the second type of indicating light includes a first indicating light and a second indicating light. The second type of control signal includes a first control signal and a second control signal. Wherein, the first control signal is used to control the indicating state of the first indicating light, and the indicating state of the first indicating light includes that the network port operates at a first connection rate or the network port is disconnected. The second control signal is used to control the indicating state of the second indicating light, and the indicating state of the second indicating light includes that the network port operates at a second connection rate or the network port is disconnected. Determining the working state of the network port based on the first type of control signal and the second type of control signal includes: determining the working state of the network port based on the first type of control signal and the first control signal. Or, determining the working state of the network port based on the first type of control signal and the second control signal.
[0038] In a possible implementation of the third aspect, determining the working state of the network port based on the first type of control signal and the first control signal includes: when the first type of control signal is a first level signal and the first control signal is a first level signal, determining that the network port is in a connected state and operates at a first connection rate. When the first type of control signal is a pulse signal and the first control signal is a first level signal, determining that the network port is in a data transmission state and operates at a first connection rate.
[0039] In a possible implementation of the third aspect, determining the working state of the network port based on the first type of control signal and the second control signal includes: when the first type of control signal is a first level signal and the second control signal is a first level signal, determining that the network port is in a connected state and operates at a second connection rate. When the first type of control signal is a pulse signal and the second control signal is a first level signal, determining that the network port is in a data transmission state and operates at a second connection rate.
[0040] In a fourth aspect, an embodiment of the present application provides a computing device, including a processor and a memory; the processor is coupled to the memory. The memory is used to store instructions. The processor is used to execute the instructions stored in the memory so that the computing device executes the method as described above.
[0041] Fifth aspect, an embodiment of the present application provides a storage medium, including computer program instructions. When the computer program instructions are executed by a computing device, the computing device executes the method as described above.
[0042] Sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, it causes the processor to execute the method as described above.
[0043] Among them, for the technical effects brought by any implementation manner in the second aspect to the sixth aspect, reference can be made to the technical effects brought by different implementation manners in the first aspect, which will not be elaborated here.
[0044] Based on the implementation manners provided in the above aspects of the present application, further combinations can be made to provide more implementation manners. Description of the Drawings
[0045] Figure 1 It is a schematic structural diagram of a computing device provided by an embodiment of the present application;
[0046] Figure 2 It is a schematic structural diagram of a sampling circuit provided by an embodiment of the present application;
[0047] Figure 3 It is a schematic structural diagram of another sampling circuit provided by an embodiment of the present application;
[0048] Figure 4 It is a circuit schematic diagram of a peak detection circuit provided by an embodiment of the present application;
[0049] Figure 5 It is a schematic structural diagram of another sampling circuit provided by an embodiment of the present application;
[0050] Figure 6 It is a schematic structural diagram of another computing device provided by an embodiment of the present application;
[0051] Figure 7 It is a schematic structural diagram of another computing device provided by an embodiment of the present application;
[0052] Figure 8 It is a schematic flowchart of a method for obtaining the network port state provided by an embodiment of the present application;
[0053] Figure 9 It is a schematic diagram of the structure of another computing device provided by an embodiment of the present application. Detailed Embodiments
[0054] Next, the technical solutions in the embodiments of the present application will be described with reference to the accompanying drawings in the embodiments of the present application.
[0055] Among them, in the description of the present application, unless otherwise specified, " / " means that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. Among them, A and B can be singular or plural.
[0056] Moreover, in the description of the present application, unless otherwise specified, "a plurality of" means two or more than two. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item(s) or plural item(s). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c can be single or plural.
[0057] In addition, for the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and roles. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit being different. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" aims to present relevant concepts in a specific way for easy understanding.
[0058] Hereinafter, an exemplary introduction to the application scenarios of the embodiments of the present application will be given.
[0059] In a computing device, the health status of a network chip is crucial for the operation of the computing device, and the working status of the network port in the network chip can reflect the health status of the network chip. Based on this, by obtaining the working status of the network port, the detection of the health status of the network chip is realized.
[0060] Taking a computing device as a server as an example, an out-of-band controller is used to monitor the status of hardware drive devices in the server system to ensure the normal operation of the server system. Among them, the out-of-band controller includes a baseboard management controller (BMC). The baseboard management controller can read the information of the registers inside the network chip through its communication interface (such as the I2C interface) (wherein, the information of one register in the network chip is used to represent the working status of the network interface) to obtain the working status of the network port.
[0061] However, in some specific scenarios, for example, when the communication interface of the network chip is used for other functions, such as the communication interface is connected to an electrically erasable programmable read-only memory (EEPROM) for loading the firmware in the EEPROM, or the network chip does not support querying the working status of the network port, such as there is no register in the network chip that can represent the working status of the network port, etc., this results in the baseboard management controller being unable to obtain the working status of the network port, and thus unable to detect the health status of the network chip.
[0062] In view of this, an embodiment of the present application provides a computing device. A sampling circuit is arranged between the baseboard management controller and the indicator light of the network chip. The sampling circuit collects the control signal of the indicator light and transmits it to the baseboard management controller. The baseboard management controller determines the working status of the network port according to the control signal. In this way, it is possible to obtain the working status of the network port of the network chip without relying on the communication interface or the information of the internal registers of the network chip, and thus it is possible to obtain the working status of the network port of the network chip in more scenarios (such as scenarios where the communication interface of the network chip is used for other functions, or the network chip does not support querying the working status of the network port, etc.), so as to realize detecting the health status of the network chip.
[0063] Next, an exemplary introduction to the system architecture of the embodiment of the present application will be given.
[0064] As Figure 1 shown, an embodiment of the present application provides a computing device. The computing device includes: a baseboard management controller, a network chip, an indicator light, and a sampling circuit.
[0065] The input end of the sampling circuit is coupled to the indicator light control end of the network chip. The network chip is coupled to the indicator light. The output end of the sampling circuit is coupled to the baseboard management controller.
[0066] Among them, the indicator light control terminal is used to output the control signal of the indicator light, and the control signal of the indicator light is used to control the indication state of the indicator light. The indicator light is used to indicate the working state of the network port of the network chip. The baseboard management controller is used to: obtain the control signal through the sampling circuit; determine the working state of the network port based on the control signal.
[0067] In the embodiment of the present application, a sampling circuit is arranged between the baseboard management controller and the network chip, and the input end of the sampling circuit is coupled to the indicator light control terminal of the network chip, so that the sampling circuit samples the control signal of the indicator light output by the indicator light control terminal. In this way, the baseboard management controller obtains the control signal of the indicator light through the sampling circuit and determines the working state of the network port based on the control signal, and can obtain the working state of the network port of the network chip without relying on the communication interface and internal register information of the network chip, so as to be able to obtain the working state of the network port of the network chip in more scenarios (such as when the communication interface of the network chip is used for other functions, or when the network chip does not support querying the working state of the network port, etc.), thereby realizing the monitoring of the health state of the network chip.
[0068] In addition, since the communication interface of the network chip is no longer relied on when obtaining the working state of the network port, the communication interface resources of the network chip are released, so that the communication interface of the network chip can be used for other functions, improving the function extensibility of the network chip. At the same time, since there is no need to access the internal register of the network chip to obtain the information of the working state of the network port, the occupation of the storage space of the register is reduced, thereby improving the working performance of the network chip.
[0069] In some embodiments, as Figure 2 shown, the embodiment of the present application provides a sampling circuit. The sampling circuit includes an input / output (I / O) expansion circuit. Among them, the input interface of the I / O expansion circuit is coupled to the indicator light control terminal. The output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller. In this way, the sampling circuit specifically includes an I / O expansion circuit. By coupling the input interface of the I / O expansion circuit to the indicator light control terminal and the output interface to the I2C interface of the baseboard management controller, an effective connection and data transmission between the indicator light control terminal and the baseboard management controller can be realized. Based on this, the baseboard management controller can obtain the control signal through the I / O expansion circuit, thereby realizing the detection of the working state of the network port.
[0070] In other embodiments, as Figure 3As shown in the figure, an embodiment of the present application provides another sampling circuit. The sampling circuit includes an I / O expansion circuit and a peak detection circuit. Among them, the input end of the peak detection circuit is coupled to the indicator control end. The output end of the peak detection circuit is coupled to the input interface of the I / O expansion circuit. The output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller.
[0071] In the embodiment of the present application, since the control signal of the indicator light may be a pulse signal, and the I / O expansion circuit does not have the function of sampling pulse signals, therefore, the control signal is sampled jointly by the peak detection circuit and the I / O expansion circuit. Specifically, the peak detection circuit is used to obtain the control signal of the indicator light, and when the control signal is a pulse signal, convert the pulse signal into a first level signal (hereinafter referred to as the converted control signal). It is also used to transmit the converted control signal to the I / O expansion circuit. If the control signal output by the indicator control end is a first level signal or a second level signal, no conversion is performed. In this way, through the cooperation of the baseboard management controller, the I / O expansion circuit and the peak detection circuit, the control signals of various types of indicator lights (such as level signals or pulse signals, etc.) can be sampled, ensuring the integrity and sampling flexibility of the control signal, avoiding inaccurate sampled control signals, and thus improving the accuracy of judging the working state of the network port.
[0072] Combined with Figure 4 As shown in the figure, an embodiment of the present application provides a peak detection circuit. The peak detection circuit includes: a rectification module 301, a signal conversion module 302, an operation module 303 and a power supply. Among them, the input end of the rectification module is coupled to the indicator control end 30, and the output end is coupled to the input end of the signal conversion module. The rectification module is used to receive the control signal of the indicator light and rectify the current in the peak detection circuit by using its unidirectional conductivity. The output end of the signal conversion module is grounded and coupled to the input end of the operation module. The signal conversion module is used to convert the pulse signal into a first level signal (hereinafter referred to as the converted control signal) when the control signal is a pulse signal, and output the converted control signal to the operation module. The input end of the operation module is also connected to the power supply, and the output end (out) is coupled to the input interface of the I / O expansion circuit, and is used to amplify, operate and other processes on the converted control signal, and transmit the processed control signal to the I / O expansion circuit. The power supply (including VCC and -VCC) is used to provide electrical energy for the operation module. Among them, if the control signal is a first level signal or a second level signal, the signal conversion module does not convert the control signal.
[0073] Specifically, the rectification module includes a diode 3011. Among them, the diode is coupled to the indicator control end.
[0074] Specifically, the signal conversion module 302 includes a capacitor 3021 and a resistor 3022. One end of the capacitor is coupled to the output end of the rectification module and the input end of the operation module respectively. The other end of the capacitor is coupled to the indicator light control end and one end of the resistor respectively, and is grounded. The other end of the resistor is connected to the first branch, and the first branch is the branch where the capacitor is connected to the operation module. In this way, the capacitor uses its own energy storage function to fix the pulse signal in the rectified control signal as the first level signal. The resistor is used to provide a discharge circuit to avoid short circuit. It can be understood that through the charging and discharging process of the capacitor, under the action of the RC (where R refers to the resistor and C refers to the capacitor) time constant, the pulse signal in the control signal is smoothed to make it closer to a stable level signal. By setting the resistor, the energy stored in the capacitor can be released.
[0075] Specifically, the operation module 303 includes an operational amplifier 3031.
[0076] In some other embodiments, in combination with Figure 5 As shown, the embodiment of the present application provides another sampling circuit. The sampling circuit includes an analog / digital (A / D) sampling circuit. The input end of the A / D sampling circuit is coupled to the indicator light control end. The output end of the A / D sampling circuit is coupled to the I2C interface of the baseboard management controller. In this way, the sampling circuit specifically includes an A / D sampling circuit. By coupling the input end of the A / D sampling circuit to the indicator light control end and the output end to the I2C interface of the baseboard management controller, an effective connection and data transmission between the indicator light control end and the baseboard management controller can be realized. Based on this, the baseboard management controller can obtain the control signal through the A / D sampling circuit, so as to determine the working state of the network port. In addition, the control signals that the A / D sampling circuit can sample are more diverse, comprehensive and accurate, such as sampling level signals and / or pulse signals, etc., so that the determined working state of the network port is more accurate and misjudgment can be avoided.
[0077] In one implementation manner, the I / O expansion circuit is further used to expand the function of the I2C interface of the baseboard management controller. For example, an input / output function is expanded on the basis of the original function of the I2C interface to make the I2C interface a general-purpose input / output (GPIO) interface, so as to realize the input or output of control signals through the I2C interface. Or, the A / D sampling circuit is further used to collect relevant data of each component of the computing device.
[0078] In the embodiments of the present application, since the sampling circuit (whether it is an I / O expansion circuit or an A / D sampling circuit) is an original component of the computing device and serves as a slave device of the I2C interface of the baseboard management controller, it has other functions in the computing device, such as expanding the function of the I2C interface of the baseboard management controller, or collecting relevant data of each component of the computing device. Therefore, using the sampling circuit to sample the control signal of the indicator light is equivalent to no longer adding other slave devices (such as network chips) to the I2C interface of the baseboard management controller, reducing the load on the I2C interface of the baseboard management controller.
[0079] At the same time, since there can be multiple slave devices on the I2C interface of the baseboard management controller. The I2C interface of the baseboard management controller is coupled to the output end of the sampling circuit, and the control signal of the indicator light for indicating the working state of the network port of the network chip is obtained through the sampling circuit. In this way, the network chip no longer serves as a slave device of the I2C interface of the baseboard management controller, solving the problem of address conflict between the network chip and other I2C components in the computing device and simplifying the system design.
[0080] In some embodiments, the sampling circuit includes a sampling chip, and there is a register in the sampling chip for storing the control signal of the indicator light, and the information of the register includes the control signal of the indicator light. That is to say, when the sampling circuit samples the control signal of the indicator light, the sampled control signal is stored in the register.
[0081] In one implementation, the sampling chip includes an I / O expansion chip or an A / D sampling chip.
[0082] Exemplarily, the I / O expansion circuit includes an I / O expansion chip, and there is a register in the I / O expansion chip for storing the control signal, and the information of the register includes the control signal of the indicator light.
[0083] Exemplarily, the A / D sampling circuit includes an A / D sampling chip. There is a register in the A / D sampling chip for storing the control signal, and the information of the register includes the control signal of the indicator light.
[0084] In some embodiments, when the sampling circuit obtains the control signal of the indicator light, it can sample the control signal of the indicator light once every first preset time interval. For example, the first preset time interval can be 1s, 3s, 5s, etc. In this way, the sampling circuit can spontaneously and continuously sample the control signal.
[0085] In one implementation, the baseboard management controller is used to obtain the control signal through the sampling circuit, including: the baseboard management controller is used to read the information of the register in the sampling circuit to obtain the control signal of the indicator light.
[0086] Exemplarily, the baseboard management controller is used to read the information of the registers in the I / O expansion chip or the A / D sampling chip to obtain the control signal of the indicator light.
[0087] Exemplarily, when the baseboard management controller reads the information of the registers of the sampling circuit, it reads the control signal of the most recent sampling in the registers. In this way, the real-time performance of the sampling data is ensured.
[0088] Exemplarily, the baseboard management controller is used to read the information of the registers in the sampling circuit to obtain the control signal of the indicator light, including: the baseboard management controller is used to: read the information of the registers in the sampling circuit once every second preset duration to obtain the control signal of the indicator light.
[0089] For example, the second preset duration can be set according to the actual needs of the user, and specifically can be 1 minute, 3 minutes, 5 minutes or 7 minutes, etc. In this way, the control signal of the indicator light is obtained by polling the sampling circuit. For example, every 5 minutes, so as to obtain the control signal of the indicator light in a timely and automatic manner, effectively realizing the continuous detection of the working state of the network port.
[0090] In another implementation manner, the baseboard management controller is used to obtain the control signal through the sampling circuit, including: the baseboard management controller is used to: send a status acquisition instruction to the sampling circuit, and the status acquisition instruction is used to acquire the control signal of the indicator light sampled by the sampling circuit. Receive the control signal of the indicator light acquired by the sampling circuit. In this way, by sending a status acquisition request to the sampling circuit, when the baseboard management controller needs to acquire the working state of the network port, the control signal is acquired, saving energy consumption.
[0091] Exemplarily, the baseboard management controller is used to send a status acquisition instruction to the sampling circuit, including: the baseboard management controller is used to: send a status acquisition instruction to the sampling circuit once every second preset duration. In this way, the control signal is acquired in a polling manner, effectively realizing the real-time detection of the working state of the network port.
[0092] In some embodiments, as Figure 6 shown, the indicator light includes a first type of indicator light.
[0093] Among them, the first type of indicator light is used to indicate the connection state of the network port. The connection state of the network port includes a connected state, a disconnected state or a data transmission state. The control signal includes a first type of control signal. The first type of control signal is used to control the indication state of the first type of indicator light. The baseboard management controller is used to determine the working state of the network port based on the control signal, including: the baseboard management controller is used to determine the working state of the network port based on the first type of control signal.
[0094] In the embodiments of the present application, since the first type of indicator light indicates the connection state, disconnection state, or data transmission state of the network port, in this way, the baseboard management controller can accurately determine the connection state of the network port through the first type of control signal. Since the connection state of the network port is a real-time characteristic, that is, it can immediately and accurately reflect the current connection state of the network port, improving the accuracy and real-time performance of the detection of the working state of the network port.
[0095] Exemplarily, the working state of the network port includes the connection state of the network port.
[0096] Optionally, the first type of indicator light can be an ACT (active) indicator light.
[0097] Exemplarily, the number of the first type of indicator lights is 1.
[0098] In one implementation, as Figure 6 shown, the indicator light control terminal includes a first type of control pin. The first type of control pin is used to output a first type of control signal.
[0099] Exemplarily, the first type of control pin outputs a first type of control signal to the first type of indicator light, so that the first type of indicator light presents a visual state of being on, flashing, or off.
[0100] Specifically, the sampling circuit is coupled to the first type of control pin in the indicator light control terminal. In this way, the sampling circuit can directly sample the first type of control signal.
[0101] In one implementation, the baseboard management controller is used to determine the working state of the network port based on the first type of control signal, including: the baseboard management controller is used to: when the first type of control signal is a first level signal, determine that the network port is in a connected state. When the first type of control signal is a second level signal, determine that the network port is in a disconnected state. When the first type of control signal is a pulse signal, determine that the network port is in a data transmission state. In this way, the baseboard management controller realizes the accurate judgment of the working state (specifically the connection state) of the network port through the first type of control signal, thereby providing a basis for judging the health state of the network chip.
[0102] Exemplarily, the pulse signal can specifically be a pulse wave with a preset period. Among them, the setting range of the preset period can be 1ms - 100ms.
[0103] Exemplarily, the first level signal can be a high level (which can be represented by "1") or a low level (which can be represented by "0"). It can be understood that if the first level signal is a high level, the second level signal is a low level; if the first level signal is a low level, the second level signal is a high level.
[0104] For example, if the first level signal is at a high level, when the first type of control signal is at a high level, the corresponding network interface is in a connected state. Then, the second level signal is at a low level, and when the first type of control signal is at a low level, the corresponding network interface is in a disconnected state.
[0105] For another example, if the first level signal is at a low level, when the first type of control signal is at a low level, the corresponding network interface is in a connected state. Then, the second level signal is at a high level, and when the first type of control signal is at a high level, the corresponding network interface is in a disconnected state.
[0106] Exemplarily, the indication states of the first type of indicator light include one or more of a lit state, an extinguished state, and a flashing state. Specifically, if the network interface is in a connected state, the first type of indicator light can be in a lit state. That is to say, when the first type of control signal is the first level signal, the first type of indicator light lights up; if the network interface is in a disconnected state, the first type of indicator light can be in an extinguished state. That is to say, when the first type of control signal is the second level signal, the first type of indicator light goes out; if the network interface is in a data transmission state, the first type of indicator light can be in a flashing state. That is to say, when the first type of control signal is a pulse signal, the first type of indicator light flashes. Based on the visual state change of the first type of indicator light, the indication state of the first type of indicator light is made more intuitive.
[0107] In another implementation, as Figure 6 shown, the indicator light further includes a second type of indicator light.
[0108] Among them, the second type of indicator light is used to indicate the connection rate of the network interface. The control signal further includes a second type of control signal. The second type of control signal is used to control the indication state of the second type of indicator light. The indication states of the second type of indicator light include that the network interface operates at a first connection rate, a second connection rate, or the network interface is in a disconnected state. The baseboard management controller is used to determine the working state of the network interface based on the control signal, including: the baseboard management controller is used to: determine the working state of the network interface based on the first type of control signal and the second type of control signal. Among them, the working state includes the connection rate and the connection state.
[0109] In the embodiments of the present application, the baseboard management controller jointly determines the working state of the network interface through the first type of control signal and the second type of control signal, not only detecting the connection state of the network interface, but also detecting the connection rate at which the network interface operates (such as the first connection rate or the second connection rate), thereby more comprehensively, accurately, and specifically determining the working state of the network interface and improving the accuracy of judgment.
[0110] Optionally, the second type of indicator light can be a link indicator light.
[0111] In one implementation, as Figure 6As shown, the indicator control terminal includes a second type of control pin. The second type of control pin is used to output a second type of control signal.
[0112] Exemplarily, the second type of control pin outputs the second type of control signal to the second type of indicator lamp, so that the second type of indicator lamp presents a visible state of being on or off.
[0113] Specifically, the sampling circuit is also coupled to the second type of control pin in the indicator control terminal. In this way, the sampling circuit can directly sample the second type of control signal.
[0114] In one implementation, the second type of indicator lamp includes a first indicator lamp and a second indicator lamp. The second type of control signal includes a first control signal and a second control signal.
[0115] Among them, the first control signal is used to control the indication state of the first indicator lamp, and the indication state of the first indicator lamp includes that the network interface works at a first connection rate or the network interface is disconnected. The second control signal is used to control the indication state of the second indicator lamp, and the indication state of the second indicator lamp includes that the network interface works at a second connection rate or the network interface is disconnected. The baseboard management controller is used to determine the working state of the network interface based on the first type of control signal and the second type of control signal, including: the baseboard management controller is used to: determine the working state of the network interface based on the first type of control signal and the first control signal. Or, determine the working state of the network interface based on the first type of control signal and the second control signal.
[0116] In the embodiments of the present application, the baseboard management controller can perform multi-dimensional and high-precision determination of the working state of the network interface through the combined analysis of the first type of control signal and the first control signal, or the combined analysis of the first type of control signal and the second control signal, further improving the reliability of determining the working state of the network interface.
[0117] It can be understood that the first indicator lamp and the second indicator lamp correspond to different connection rates, such as the first connection rate and the second connection rate. In the embodiments of the present application, the first indicator lamp corresponds to the first connection rate. In this way, the indication state of the first indicator lamp includes that the network interface works at the first connection rate or the network interface is disconnected. The second indicator lamp corresponds to the second connection rate. In this way, the indication state of the second indicator lamp includes that the network interface works at the second connection rate or the network interface is disconnected.
[0118] Exemplarily, the first connection rate is set according to the actual needs of the user, and can be specifically set to 1000 Mbps.
[0119] Exemplarily, the second connection rate is set according to the actual needs of the user, and can be specifically set to 100 Mbps.
[0120] Exemplarily, the control signals of the first indicator light and the second indicator light cannot be the first level signal at the same time. That is to say, the network port cannot work at the first connection rate and the second connection rate simultaneously. However, the control signals of the first indicator light and the second indicator light can be the second level signal at the same time, indicating that the network port is in a disconnected state.
[0121] Exemplarily, the indication states of the first indicator light include a lit state or an extinguished state. The indication states of the second indicator light also include a lit state or an extinguished state. For example, if the network port works at the first connection rate, the first indicator light is lit and the second indicator light is extinguished; if the network port works at the second connection rate, the first indicator light is extinguished and the second indicator light is lit. If the network port is in a disconnected state, both the first indicator light and the second indicator light are extinguished. It should be noted that the first indicator light and the second indicator light cannot be lit at the same time. In this way, through the lighting and extinguishing of the first indicator light and the second indicator light, the working state of the network port can be intuitively understood.
[0122] Optionally, the first indicator light can be a link indicator light, such as link indicator light 1. The second indicator light can be another link indicator light, such as link indicator light 2.
[0123] Exemplarily, if the network port works at the first connection rate, link indicator light 1 can be in a lit state; if the network port works at the second connection rate, link indicator light 2 can be in a lit state; if the network port is disconnected, both link indicator light 1 and link indicator light 2 can be in an extinguished state. In this way, based on the visual state change of the first type of indicator light, the indication state of the second type of indicator light is more intuitive.
[0124] For example, if the first level signal is a high level, when the first control signal is a high level, it corresponds to the network port working at the first connection rate. Then, the second level signal is a low level, and when the first control signal is a low level, it corresponds to the network port being in a disconnected state.
[0125] Another example, if the first level signal is a low level, when the first control signal is a low level, it corresponds to the network port working at the first connection rate. Then, the second level signal is a high level, and when the first control signal is a high level, it corresponds to the network port being in a disconnected state.
[0126] For example, if the first level signal is a high level, when the second control signal is a high level, it corresponds to the network port working at the second connection rate. Then, the second level signal is a low level, and when the second control signal is a low level, it corresponds to the network port being in a disconnected state.
[0127] For another example, if the first level signal is a low level, when the second control signal is a low level, the corresponding network interface operates at the second connection rate. Then, when the second level signal is a high level and the second control signal is a high level, the corresponding network interface is in a disconnected state.
[0128] Exemplarily, the baseboard management controller is configured to determine the working state of the network interface based on the first type of control signal and the first control signal, including: the baseboard management controller is configured to, when the first type of control signal is the first level signal and the first control signal is the first level signal, determine that the network interface is in a connected state and operates at the first connection rate. When the first type of control signal is a pulse signal and the first control signal is the first level signal, determine that the network interface is in a data transmission state and operates at the first connection rate.
[0129] In the embodiment of the present application, when the first type of control signal is the first level signal and the first control signal is the first level signal, it indicates that the network interface is in a connected state, and at this time, the connection rate at which the network interface operates is the connection rate corresponding to the first control signal, that is, the first connection rate. In this case, it is determined that the network interface is in a connected state and operates at the first connection rate. When the first type of control signal is a pulse signal and the first control signal is the first level signal, it indicates that the network interface is in a data transmission state, and at this time, the connection rate at which the network interface operates is the connection rate corresponding to the first control signal, that is, the first connection rate. In this case, it is determined that the network interface is in a data transmission state and operates at the first connection rate. Based on this, by comprehensively analyzing the first type of control signal and the first control signal, the baseboard management controller can accurately determine the working state of the network interface, further improving the accuracy and reliability of the determination of the working state of the network interface.
[0130] Exemplarily, the baseboard management controller is configured to determine the working state of the network interface based on the first type of control signal and the second control signal, including: the baseboard management controller is configured to, when the first type of control signal is the first level signal and the second control signal is the first level signal, determine that the network interface is in a connected state and operates at the second connection rate. When the first type of control signal is a pulse signal and the second control signal is the first level signal, determine that the network interface is in a data transmission state and operates at the second connection rate.
[0131] In the embodiment of the present application, when the first type of control signal is a first-level signal and the second control signal is a first-level signal, it indicates that the network interface is in a connected state, and at this time, the connection rate at which the network interface operates is the connection rate corresponding to the second control signal, that is, the second connection rate. In this case, it is determined that the network interface is in a connected state and operates at the second connection rate. When the first type of control signal is a pulse signal and the second control signal is a first-level signal, it indicates that the network interface is in a data transmission state, and at this time, the connection rate at which the network interface operates is the connection rate corresponding to the second control signal, that is, the second connection rate. In this case, it is determined that the network interface is in a data state and operates at the second connection rate. Based on this, by comprehensively analyzing the first type of control signal and the second control signal, the baseboard management controller can accurately determine the working state of the network interface, further improving the accuracy and reliability of the determination of the working state of the network interface.
[0132] In some embodiments, the embodiment of the present application provides a sampling circuit. As Figure 1 shown, the sampling circuit is applied to a computing device. The computing device includes a baseboard management controller, a network chip, and an indicator light.
[0133] The input end of the sampling circuit is coupled to the indicator light control end of the network chip. The network chip is coupled to the indicator light. The output end of the sampling circuit is coupled to the baseboard management controller.
[0134] Among them, the indicator light control end is used to output the control signal of the indicator light, and the control signal of the indicator light is used to control the indication state of the indicator light. The indicator light is used to indicate the network interface connection state of the network chip. The sampling circuit is used to obtain the control signal and provide the control signal to the baseboard management controller. The control signal is used for the baseboard management controller to determine the working state of the network interface.
[0135] In the embodiment of the present application, the sampling circuit is arranged between the baseboard management controller and the network chip, and the input end of the sampling circuit is coupled to the indicator light control end of the network chip, so that the sampling circuit samples the control signal of the indicator light output by the indicator light control end. In this way, the baseboard management controller obtains the control signal of the indicator light through the sampling circuit and determines the working state of the network interface based on the control signal, and can obtain the working state of the network interface of the network chip without relying on the communication interface and internal register information of the network chip, and can still obtain the working state of the network interface of the network chip in more scenarios (such as when the communication interface of the network chip is used for other functions, or when the network chip does not support querying the working state of the network interface, etc.), so as to realize obtaining the working state of the network interface of the network chip, and thus realize monitoring the health state of the network chip.
[0136] In addition, since obtaining the working state of the network interface no longer depends on the communication interface of the network chip, the communication interface resources of the network chip are released, enabling the communication interface of the network chip to be used for other functions and improving the functional expandability of the network chip. At the same time, since there is no need to access the internal registers of the network chip to obtain the information on the working state of the network interface, the storage space occupied by the registers is reduced, thereby improving the working performance of the network chip.
[0137] In some embodiments, as Figure 2 shown, the sampling circuit includes an input / output I / O expansion circuit. Among them, the input interface of the I / O expansion circuit is coupled to the indicator control terminal. The output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller. In this way, the sampling circuit specifically includes an I / O expansion circuit. By coupling the input interface of the I / O expansion circuit to the indicator control terminal and the output interface to the I2C interface of the baseboard management controller, an effective connection and data transmission between the indicator control terminal and the baseboard management controller can be achieved. Based on this, the baseboard management controller can obtain the control signal through the I / O expansion circuit, thereby realizing the detection of the working state of the network interface.
[0138] In other embodiments, as Figure 3 shown, the sampling circuit includes an input / output I / O expansion circuit and a peak detection circuit; among them, the input end of the peak detection circuit is coupled to the indicator control terminal. The output end of the peak detection circuit is coupled to the input interface of the I / O expansion circuit. The output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller.
[0139] In the embodiments of the present application, since the control signal of the indicator may be a pulse signal and the I / O expansion circuit does not have the function of sampling pulse signals, therefore, the control signal is sampled jointly by the peak detection circuit and the I / O expansion circuit. Specifically, the peak detection circuit is used to obtain the control signal of the indicator and convert the pulse signal into a first level signal (hereinafter referred to as the converted control signal) when the control signal is a pulse signal. It is also used to transmit the converted control signal to the I / O expansion circuit. If the control signal output by the indicator control terminal is a first level signal or a second level signal, no conversion is performed. In this way, through the cooperation of the I / O expansion circuit and the peak detection circuit, the baseboard management controller can sample the control signals of various types of indicators (such as level signals or pulse signals, etc.), ensuring the integrity and sampling flexibility of the control signal, avoiding inaccurate sampled control signals, and thus improving the accuracy of judging the working state of the network interface.
[0140] Combined with Figure 4As shown in the figure, the peak detection circuit includes: a rectification module 301, a signal conversion module 302, an operation module 303 and a power supply. Among them, the input end of the rectification module is coupled to the indicator light control terminal 30, and the output end is coupled to the input end of the signal conversion module. The rectification module is used to receive the control signal of the indicator light and rectify the current in the peak detection circuit by using its unidirectional conductivity. The output end of the signal conversion module is grounded and coupled to the input end of the operation module. The signal conversion module is used to convert the pulse signal into a first level signal (hereinafter referred to as the converted control signal) when the control signal is a pulse signal, and output the converted control signal to the operation module. The input end of the operation module is also connected to the power supply, and the output end (out) is coupled to the input interface of the I / O expansion circuit, and is used to amplify, operate and other processes on the converted control signal, and transmit the processed control signal to the I / O expansion circuit. The power supply (including VCC and -VCC) is used to provide electrical energy for the operation module. Among them, if the control signal is the first level signal or the second level signal, the signal conversion module does not convert the control signal.
[0141] Specifically, the rectification module includes a diode 3011. Among them, the diode is coupled to the indicator light control terminal.
[0142] Specifically, the signal conversion module 302 includes a capacitor 3021 and a resistor 3022. One end of the capacitor is respectively coupled to the output end of the rectification module and the input end of the operation module, and the other end of the capacitor is respectively coupled to the indicator light control terminal and one end of the resistor, and is grounded. The other end of the resistor is connected to the first branch, and the first branch is the branch where the capacitor is connected to the operation module. In this way, the capacitor uses its own energy storage function to fix the pulse signal in the rectified control signal as the first level signal. The resistor is used to provide a discharge circuit to avoid short circuit. It can be understood that through the charging and discharging process of the capacitor, under the action of the RC (here R refers to the resistor, C refers to the capacitor) time constant, the pulse signal in the control signal is smoothed to make it closer to a stable level signal. By setting the resistor, the energy stored on the capacitor can be released.
[0143] Specifically, the operation module 303 includes an operational amplifier 3031.
[0144] In some other embodiments, such as Figure 5As shown, the sampling circuit includes an analog / digital (A / D) sampling circuit. The input end of the A / D sampling circuit is coupled to the indicator control end. The output end of the A / D sampling circuit is coupled to the I2C interface of the baseboard management controller. In this way, the sampling circuit specifically includes the A / D sampling circuit. By coupling the input end of the A / D sampling circuit to the indicator control end and the output end to the I2C interface of the baseboard management controller, an effective connection and data transmission between the indicator control end and the baseboard management controller can be achieved. Based on this, the baseboard management controller can obtain the control signal through the A / D sampling circuit, thereby realizing the determination of the working state of the network interface. In addition, the control signals that the A / D sampling circuit can sample are more diverse, comprehensive, and accurate, such as sampling level signals and / or pulse signals, etc., so that the determined working state of the network interface is more accurate and misjudgment is avoided.
[0145] In one implementation, the I / O expansion circuit is also used to expand the functions of the I2C interface of the baseboard management controller. For example, input / output functions are expanded on the basis of the original functions of the I2C interface, making the I2C interface a general-purpose input / output (GPIO) interface, so as to realize the input or output of control signals through the I2C interface. Or, the A / D sampling circuit is also used to collect relevant data of each component of the computing device.
[0146] In the embodiment of the present application, since the sampling circuit (whether it is the I / O expansion circuit or the A / D sampling circuit) is an original component of the computing device and serves as a slave device of the I2C interface of the baseboard management controller, it has other functions in the computing device, such as expanding the functions of the I2C interface of the baseboard management controller, or collecting relevant data of each component of the computing device, etc. Therefore, using the sampling circuit to sample the control signal of the indicator is equivalent to not adding other slave devices (such as network chips) to the I2C interface of the baseboard management controller, reducing the load on the I2C interface of the baseboard management controller.
[0147] At the same time, since there can be multiple slave devices on the I2C interface of the baseboard management controller. The I2C interface of the baseboard management controller is coupled to the output end of the sampling circuit, and the control signal of the indicator for indicating the working state of the network interface of the network chip is obtained through the sampling circuit. In this way, the network chip is no longer a slave device of the I2C interface of the baseboard management controller, solving the problem of address conflict between the network chip and other I2C components in the computing device and simplifying the system design.
[0148] In some embodiments, the sampling circuit includes a sampling chip, and there is a register in the sampling chip for storing the control signal of the indicator. The information of this register includes the control signal of the indicator. That is to say, when the sampling circuit samples the control signal of the indicator, the sampled control signal is stored in this register.
[0149] In one implementation, the sampling chip includes an I / O expansion chip or an A / D sampling chip.
[0150] Exemplarily, the I / O expansion circuit includes an I / O expansion chip. There is a register for storing control signals in the I / O expansion chip, and the information of the register includes the control signals of the indicator lights.
[0151] Exemplarily, the A / D sampling circuit includes an A / D sampling chip. There is a register for storing control signals in the A / D sampling chip, and the information of the register includes the control signals of the indicator lights.
[0152] In some embodiments, when the sampling circuit acquires the control signals of the indicator lights, it can sample the control signals of the indicator lights once every first preset time interval. For example, the first preset time interval can be 1 s, 3 s, 5 s, etc. In this way, the sampling circuit can spontaneously and continuously sample the control signals.
[0153] In the embodiments of the present application, the computing device can be a computing device or a cluster of computing devices.
[0154] In the embodiments of the present application, the computing device can specifically be a network device. The network device can include a server, etc. Among them, the server can be a physical or logical server, or can be two or more physical or logical servers sharing different responsibilities and cooperating with each other to implement the various functions of the server.
[0155] Exemplarily, the server can be a blade server, a high-density server, a rack server, a tower server, etc.
[0156] Among them, the hardware part of the computing device includes a processor, a basic input / output system (BIOS) chip, an out-of-band controller, and a memory. The software part mainly includes BIOS, an out-of-band management module, and an operating system (OS), as Figure 7 As shown, the embodiments of the present application provide a schematic structural diagram of another computing device.
[0157] The processor can include a central processing unit (CPU). The CPU includes one or more CPU cores, and the operations of processing data by the CPU are all executed by the CPU cores. The more CPU cores included in the CPU, the faster the data processing speed.
[0158] The BIOS chip is a chip installed on the motherboard and used to initialize and detect various hardware during the startup process of the computing device. The BIOS chip includes a flash memory area.
[0159] The out-of-band management module is located in the out-of-band controller, and the operating system is located in the processor.
[0160] The out-of-band management module may be a management unit of a non-business module. For example, the out-of-band management module may remotely maintain and manage a computing device through a dedicated data channel. The out-of-band management module is completely independent of the operating system of the computing device and may communicate with the BIOS and the operating system through the out-of-band management interface of the computing device.
[0161] Exemplarily, the out-of-band management module may include a management unit for computing the running status of the device, a management system in a management chip, such as Figure 1 and Figure 2 Baseboard management controller (BMC), system management module (system management mode, SMM), etc. It should be noted that the embodiment of the present application does not limit the specific form of the out-of-band management module, and the above is only an exemplary description.
[0162] OS is a computer program that manages and controls the hardware and software resources of a computing device. Any other software must be supported by the operating system to run. After the computing device is powered on, the BIOS first starts a series of operations such as self-test and initialization, and then guides the OS to start, so that the user can use the computing device normally.
[0163] BIOS is a set of programs that are fixed on the BIOS chip on the motherboard of a computing device. The main function of BIOS is to provide the lowest-level and most direct hardware settings and controls for computing devices.
[0164] Memory, also called internal storage or main memory, is installed in memory slots on the motherboard of a computing device.
[0165] It should be noted that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0166] For ease of understanding, the network interface status acquisition method provided in an embodiment of the present application is exemplarily introduced below in combination with the above system architecture and accompanying drawings.
[0167] An embodiment of the present application provides a method for obtaining the network port status. This method is applied to a computing device and is executed by the above-mentioned baseboard management controller. First, obtain the control signal of the indicator light. Among them, the indicator light is used to indicate the connection status of the network port. The control signal is used to control the indication status of the indicator light. Based on the control signal, determine the working status of the network port.
[0168] In the embodiment of the present application, by obtaining the control signal of the indicator light and determining the working status of the network port based on the control signal, it is possible to obtain the working status of the network port of the network chip without relying on the communication interface and internal register information of the network chip. Therefore, it is possible to obtain the working status of the network port of the network chip in more scenarios (such as when the communication interface of the network chip is used for other functions, or when the network chip does not support querying the working status of the network port, etc.), so as to monitor the health status of the network chip.
[0169] In addition, since the communication interface of the network chip is no longer relied on when obtaining the working status of the network port, the communication interface resources of the network chip are released, so that the communication interface of the network chip can be used for other functions, improving the functional expandability of the network chip. At the same time, since there is no need to access the internal register of the network chip to obtain the information of the working status of the network port, the occupation of the storage space of the register is reduced, thereby improving the working performance of the network chip.
[0170] As Figure 8 shown, an embodiment of the present application provides a schematic flowchart of a method for obtaining the network port status. This method is applied to a computing device and is executed by the baseboard management controller in the computing device. The method includes:
[0171] S801, obtain the control signal of the indicator light.
[0172] Among them, the indicator light is used to indicate the connection status of the network port. The control signal is used to control the indication status of the indicator light.
[0173] It can be understood that the indication status of the indicator light is the visual effect actually presented by the indicator light, that is, it can be directly observed. That is to say, the indication status of the indicator light is controlled by the control signal and displayed.
[0174] In some embodiments, obtaining the control signal of the indicator light includes: obtaining the control signal of the indicator light through a sampling circuit.
[0175] Exemplarily, the sampling circuit is the above-mentioned as Figure 2 、 Figure 3 or Figure 5The sampling circuit shown. The sampling circuit includes a sampling chip, and there is a register in the sampling chip for storing the control signal of the indicator light. The information of this register includes the control signal of the indicator light. That is to say, when the sampling circuit samples the control signal of the indicator light, it stores the sampled control signal in this register.
[0176] In some embodiments, when the sampling circuit obtains the control signal of the indicator light, it can sample the control signal of the indicator light once every first preset time interval. For example, the first preset time interval can be 1s, 3s, 5s, etc. In this way, the sampling circuit can spontaneously and continuously sample the control signal.
[0177] In one implementation, obtaining the control signal of the indicator light through the sampling circuit includes: reading the information of the register in the sampling circuit to obtain the control signal of the indicator light.
[0178] Exemplarily, when reading the information of the register of the sampling circuit, read the control signal of the latest sampling in the register. In this way, the real-time nature of the sampling data is ensured.
[0179] Exemplarily, reading the information of the register in the sampling circuit to obtain the control signal of the indicator light includes: reading the information of the register in the sampling circuit once every second preset time interval to obtain the control signal of the indicator light.
[0180] For example, the second preset time interval can be set according to the actual needs of the user, and can specifically be 1 minute, 3 minutes, 5 minutes, 7 minutes, etc. In this way, the control signal of the indicator light is obtained by polling the sampling circuit. For example, every 5 minutes, so as to obtain the control signal of the indicator light in a timely and automatic manner, effectively realizing the continuous detection of the working state of the network port.
[0181] In another implementation, obtaining the control signal through the sampling circuit includes: sending a status acquisition instruction to the sampling circuit, and the status acquisition instruction is used to obtain the control signal of the indicator light sampled by the sampling circuit. Receiving the control signal of the indicator light obtained by the sampling circuit. In this way, by sending a status acquisition request to the sampling circuit, when there is a need to obtain the working state of the network port, the control signal is obtained, saving energy consumption.
[0182] Exemplarily, sending a status acquisition instruction to the sampling circuit includes: sending a status acquisition instruction to the sampling circuit once every second preset time interval. In this way, the control signal is obtained in a polling manner, effectively realizing the real-time detection of the working state of the network port.
[0183] Exemplarily, the control signal includes a level signal (such as high level, low level), and also includes a pulse signal. In this way, by obtaining diverse and comprehensive control signals, the working state of the network port can be judged more accurately.
[0184] S802. Determine the working state of the network port based on the control signal.
[0185] In some embodiments, the indicator light includes a first type of indicator light.
[0186] Among them, the first type of indicator light is used to indicate the connection state of the network port. The connection state of the network port includes a connected state, a disconnected state, or a data transmission state. The control signal includes a first type of control signal. The first type of control signal is used to control the indication state of the first type of indicator light.
[0187] Exemplarily, the working state of the network port includes the connection state of the network port. Based on this, through the first type of control signal, the connection state of the network port, that is, the working state, can be determined.
[0188] Optionally, the first type of indicator light can be an ACT indicator light.
[0189] Exemplarily, the number of the first type of indicator lights is 1.
[0190] In one implementation manner, determining the working state of the network port based on the control signal includes: determining the working state of the network port based on the first type of control signal. In this way, since the first type of indicator light indicates that the network port is in a connected state, a disconnected state, or a data transmission state, therefore, through the first type of control signal, the connection state of the network port can be accurately determined. Since the connection state of the network port is a real-time feature, it can immediately and accurately reflect the current connection state of the network port, improving the accuracy and real-time performance of the detection of the working state of the network port.
[0191] Exemplarily, determining the working state of the network port based on the first type of control signal includes: when the first type of control signal is a first-level signal, determining that the network port is in a connected state; when the first type of control signal is a second-level signal, determining that the network port is in a disconnected state; when the first type of control signal is a pulse signal, determining that the network port is in a data transmission state.
[0192] In the embodiments of the present application, through the first type of control signal, an accurate judgment of the working state (specifically, the connected state) of the network port is realized, thereby providing a basis for judging the health state of the computing device.
[0193] Exemplarily, the pulse signal can specifically be a pulse wave with a preset period. Among them, the setting range of the preset period can be 1 ms - 100 ms.
[0194] Exemplarily, the first level signal can be a high level (which can be represented by "1") or a low level (which can be represented by "0"). It can be understood that if the first level signal is a high level, then the second level signal is a low level; if the first level signal is a low level, then the second level signal is a high level.
[0195] For example, if the first level signal is a high level, when the first type of control signal is a high level, the corresponding network port is in a connected state. Then, the second level signal is a low level, and when the first type of control signal is a low level, the corresponding network port is in a disconnected state.
[0196] Another example, if the first level signal is a low level, when the first type of control signal is a low level, the corresponding network port is in a connected state. Then, the second level signal is a high level, and when the first type of control signal is a high level, the corresponding network port is in a disconnected state.
[0197] Exemplarily, the indication states of the first type of indicator light include one or more of a lit state, an extinguished state, and a flashing state. Specifically, if the network port is in a connected state, the first type of indicator light can be in a lit state, that is, when the first type of control signal is the first level signal, the first type of indicator light lights up; if the network port is in a disconnected state, the first type of indicator light can be in an extinguished state, that is, when the first type of control signal is the second level signal, the first type of indicator light goes out; if the network port is in a data transmission state, the first type of indicator light can be in a flashing state, that is, when the first type of control signal is a pulse signal, the first type of indicator light flashes. Based on the visual state change of the first type of indicator light, the indication state of the first type of indicator light is made more intuitive.
[0198] In some other embodiments, the indicator light further includes a second type of indicator light.
[0199] Among them, the second type of indicator light is used to indicate the connection rate of the network port. The control signal further includes a second type of control signal. The second type of control signal is used to control the indication state of the second type of indicator light. The indication states of the second type of indicator light include that the network port operates at a first connection rate, a second connection rate, or the network port is in a disconnected state.
[0200] Optionally, the second type of indicator light can be a link indicator light.
[0201] In one implementation manner, determining the working state of the network port based on the control signal includes: determining the working state of the network port based on the first type of control signal and the second type of control signal.
[0202] Among them, the working state includes the connection rate and the connection state.
[0203] In the embodiments of the present application, the working state of the network port is jointly determined by the first type of control signal and the second type of control signal, not only detecting the connection state of the network port, but also detecting the connection rate at which the network port works (such as the first connection rate or the second connection rate), so as to more comprehensively, accurately and specifically determine the working state of the network port and improve the accuracy of judgment.
[0204] In one implementation, the second type of indicator light includes a first indicator light and a second indicator light. The second type of control signal includes a first control signal and a second control signal.
[0205] Among them, the first control signal is used to control the indication state of the first indicator light, and the indication state of the first indicator light includes that the network port works at the first connection rate or the network port is disconnected. The second control signal is used to control the indication state of the second indicator light, and the indication state of the second indicator light includes that the network port works at the second connection rate or the network port is disconnected.
[0206] It can be understood that the first indicator light and the second indicator light correspond to different connection rates, such as the first connection rate and the second connection rate. In the embodiments of the present application, the first indicator light corresponds to the first connection rate. In this way, the indication state of the first indicator light includes that the network port works at the first connection rate or the network port is disconnected. The second indicator light corresponds to the second connection rate. In this way, the indication state of the second indicator light includes that the network port works at the second connection rate or the network port is disconnected.
[0207] Exemplarily, the first connection rate is set according to the actual needs of the user, and specifically can be set to 1000 Mbps.
[0208] Exemplarily, the second connection rate is set according to the actual needs of the user, and specifically can be set to 100 Mbps.
[0209] Exemplarily, the control signals of the first indicator light and the second indicator light cannot be the first level signal at the same time, that is to say, the network port cannot work at the first connection rate and the second connection rate at the same time. However, the control signals of the first indicator light and the second indicator light can be the second level signal at the same time, which indicates that the network port is in a disconnected state.
[0210] Exemplarily, the indication state of the first indicator light includes a lit state or an extinguished state. The indication state of the second indicator light also includes a lit state or an extinguished state. For example, if the network port works at the first connection rate, the first indicator light is lit and the second indicator light is extinguished; if the network port works at the second connection rate, the first indicator light is extinguished and the second indicator light is lit. If the network port is in a disconnected state, both the first indicator light and the second indicator light are extinguished. It should be noted that the first indicator light and the second indicator light cannot be lit at the same time. In this way, through the lighting and extinguishing of the first indicator light and the second indicator light, the working state of the network port can be intuitively understood.
[0211] Optionally, the first indicator light may be a link indicator light, such as Link Indicator Light 1. The second indicator light may be another link indicator light, such as Link Indicator Light 2.
[0212] Exemplarily, if the network port operates at the first connection rate, Link Indicator Light 1 may be in the lit state; if the network port operates at the second connection rate, Link Indicator Light 2 may be in the lit state; if the network port is disconnected, both Link Indicator Light 1 and Link Indicator Light 2 may be in the off state. In this way, based on the visual state change of the first type of indicator lights, the indication state of the second type of indicator lights is made more intuitive.
[0213] For example, if the first level signal is high level, when the first control signal is high level, it corresponds to the network port operating at the first connection rate. Then, the second level signal is low level, and when the first control signal is low level, it corresponds to the network port being in the disconnected state.
[0214] Another example, if the first level signal is low level, when the first control signal is low level, it corresponds to the network port operating at the first connection rate. Then, the second level signal is high level, and when the first control signal is high level, it corresponds to the network port being in the disconnected state.
[0215] For example, if the first level signal is high level, when the second control signal is high level, it corresponds to the network port operating at the second connection rate. Then, the second level signal is low level, and when the second control signal is low level, it corresponds to the network port being in the disconnected state.
[0216] Another example, if the first level signal is low level, when the second control signal is low level, it corresponds to the network port operating at the second connection rate. Then, the second level signal is high level, and when the second control signal is high level, it corresponds to the network port being in the disconnected state.
[0217] In one implementation, determining the working state of the network port based on the first type of control signal and the second type of control signal includes: determining the working state of the network port based on the first type of control signal and the first control signal; or, determining the working state of the network port based on the first type of control signal and the second control signal. In this way, through the combined analysis of the first type of control signal and the first control signal, or the combined analysis of the first type of control signal and the second control signal, it is possible to perform multi-dimensional and high-precision determination of the working state of the network port, improving the reliability of determining the working state of the network port.
[0218] Exemplarily, determining the working state of the network interface based on the first type of control signal and the first control signal includes: when the first type of control signal is a first-level signal and the first control signal is a first-level signal, determining that the network interface is in a connected state and operates at a first connection rate. When the first type of control signal is a pulse signal and the first control signal is a first-level signal, determining that the network interface is in a data transmission state and operates at a first connection rate.
[0219] In an embodiment of the present application, when the first type of control signal is a first-level signal and the first control signal is a first-level signal, it indicates that the network interface is in a connected state, and the connection rate at which the network interface operates at this time is the connection rate corresponding to the first control signal, that is, the first connection rate. In this case, it is determined that the network interface is in a connected state and operates at a first connection rate. When the first type of control signal is a pulse signal and the first control signal is a first-level signal, it indicates that the network interface is in a data transmission state, and the connection rate at which the network interface operates at this time is the connection rate corresponding to the first control signal, that is, the first connection rate. In this case, it is determined that the network interface is in a data transmission state and operates at a first connection rate. Based on this, by comprehensively analyzing the first type of control signal and the first control signal, the working state of the network interface can be accurately determined, further improving the accuracy and reliability of the determination of the working state of the network interface.
[0220] Exemplarily, determining the working state of the network interface based on the first type of control signal and the second control signal includes: when the first type of control signal is a first-level signal and the second control signal is a first-level signal, determining that the network interface is in a connected state and operates at a second connection rate. When the first type of control signal is a pulse signal and the second control signal is a first-level signal, determining that the network interface is in a data transmission state and operates at a second connection rate.
[0221] In an embodiment of the present application, when the first type of control signal is a first-level signal and the second control signal is a first-level signal, it indicates that the network interface is in a connected state, and the connection rate at which the network interface operates at this time is the connection rate corresponding to the second control signal, that is, the second connection rate. In this case, it is determined that the network interface is in a connected state and operates at a second connection rate. When the first type of control signal is a pulse signal and the second control signal is a first-level signal, it indicates that the network interface is in a data transmission state, and the connection rate at which the network interface operates at this time is the connection rate corresponding to the second control signal, that is, the second connection rate. In this case, it is determined that the network interface is in a data state and operates at a second connection rate. Based on this, by comprehensively analyzing the first type of control signal and the second control signal, the working state of the network interface can be accurately determined, further improving the accuracy and reliability of the determination of the working state of the network interface.
[0222] In some embodiments, the method further includes: when the working state of the network interface is the disconnected state, determining that the network chip is in an unhealthy state. In this way, the abnormality of the network chip can be monitored in a timely manner, and thus an abnormality alarm can be given.
[0223] In other embodiments, the method further includes: when the working state of the network interface is the connected state, determining that the network chip is in a healthy state, and the connection rate is the first connection rate or the second connection rate. In this way, the metrics when the network chip is in a healthy state are refined.
[0224] As Figure 9 shown, an embodiment of the present application provides another computing device 500. The computing device 500 includes a processor 510 and a memory 520. The processor 510 is coupled to the memory 520. The processor 510 is configured to execute instructions stored in the memory 520 so that the computing device 500 executes the method as described above.
[0225] In the embodiment of the present application, the processor 510 corresponds to the above-mentioned baseboard management controller BMC.
[0226] Figure 9 The shown computing device 500 is only an example, and should not impose any limitation on the functions and usage scope of the embodiments of the present application.
[0227] The computing device 500 is presented in the form of a general-purpose computing device. The components of the computing device 500 may include but are not limited to: one or more processors 510, a memory 520, a communication bus 540 connecting different system components (including the memory 520 and the processor 510), and a communication interface 530.
[0228] The communication bus 540 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure in a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnection (PCI) bus.
[0229] Computing device 500 typically includes a variety of computer system readable media. These media can be any available media accessible to the computing device, including volatile and non-volatile media, removable and non-removable media.
[0230] Memory 520 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter referred to as: RAM) and / or cache memory. The computing device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Although Figure 9 not shown in, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as: Compact Disk Read Only Memory; hereinafter referred to as: CD-ROM), Digital Versatile Disk Read Only Memory; hereinafter referred to as: DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 540 through one or more data media interfaces. Memory 520 may include at least one program product having a set (such as at least one) of program modules configured to perform the functions of the embodiments of the present application.
[0231] A program / utility having a set (at least one) of program modules may be stored in memory 520. Such program modules include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules generally perform the functions and / or methods in the embodiments described in the present application.
[0232] Computing device 500 may also communicate with one or more external devices (such as a keyboard, a pointing device, a display, etc.), may also communicate with one or more devices that enable a user to interact with the computing device, and / or communicate with any device that enables the computing device to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication may be through the communication interface 530. And, computing device 500 may also pass through a network adapter ( Figure 9is not shown) communicates with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet). The above network adapter can communicate with other modules of the computing device through the communication bus 540. It should be understood that although Figure 9 is not shown, other hardware and / or software modules can be used in conjunction with the computing device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, redundant arrays of independent drives (RAID) systems, tape drives, and data backup storage systems, etc.
[0233] The processor 510 executes various functional applications and data processing by running programs stored in the memory 520, such as implementing the network interface status acquisition method provided in the embodiments of the present application.
[0234] It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only illustrative and do not constitute a structural limitation on the computing device 500. In other embodiments of the present application, the computing device 500 can also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0235] It can be understood that in order to implement the above functions, the above computing device, etc., includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, in combination with the exemplary units and algorithm steps described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described function for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
[0236] The embodiments of the present application can perform functional module division on the above computing device, etc. according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiments of the present application is illustrative, only a logical function division, and there can be other division methods in actual implementation.
[0237] An embodiment of the present application further provides a storage medium, including computer program instructions. When the computer program instructions are executed by a computing device, the computing device executes the method as described above.
[0238] An embodiment of the present application further provides a computer program product. When the computer program product runs on a processor, it causes the processor to execute the method as described above.
[0239] The computing device, storage medium, or computer program product provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here.
[0240] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.
[0241] In each embodiment of the embodiments of the present application, each functional unit can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0242] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk, or optical disc that can store program codes.
[0243] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A computing device, characterized in that, The computing device includes a baseboard management controller, a network chip, an indicator light, and a sampling circuit; The input end of the sampling circuit is coupled to the indicator light control end of the network chip; the network chip is coupled to the indicator light; the output end of the sampling circuit is coupled to the baseboard management controller; Wherein, the indicator light control end is used to output the control signal of the indicator light, and the control signal of the indicator light is used to control the indication state of the indicator light; The indicator light is used to indicate the working state of the network port of the network chip; The baseboard management controller is used for: Obtaining the control signal through the sampling circuit; Determining the working state of the network port based on the control signal.
2. The computing device according to claim 1, wherein The sampling circuit includes an input / output I / O expansion circuit; wherein, the input interface of the I / O expansion circuit is coupled to the indicator light control end; the output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller.
3. The computing device according to claim 2, wherein The sampling circuit includes an input / output I / O expansion circuit and a peak detection circuit; wherein, the input end of the peak detection circuit is coupled to the indicator light control end; the output end of the peak detection circuit is coupled to the input interface of the I / O expansion circuit; the output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller.
4. The computing device according to claim 1, wherein The sampling circuit includes an analog / digital A / D sampling circuit; the input end of the A / D sampling circuit is coupled to the indicator light control end; the output end of the A / D sampling circuit is coupled to the I2C interface of the baseboard management controller.
5. The computing device according to any one of claims 1-4, characterized in that, The indicator light includes a first type of indicator light; wherein, the first type of indicator light is used to indicate the connection state of the network port; the connection state includes a connected state, a disconnected state, or a data transmission state; The control signal includes a first type of control signal; the first type of control signal is used to control the indication state of the first type of indicator light; The baseboard management controller is used to determine the working state of the network port based on the control signal, including: The baseboard management controller is used to determine the working state of the network port based on the first type of control signal.
6. The computing device according to claim 5, wherein The baseboard management controller is used to determine the working state of the network port based on the first type of control signal, including: The baseboard management controller is used for: When the first type of control signal is a first level signal, determining that the network port is in a connected state; When the first type of control signal is a second level signal, determining that the network port is in a disconnected state; When the first type of control signal is a pulse signal, determining that the network port is in a data transmission state.
7. The computing device according to claim 5 or 6, characterized in that, The indicator light further includes a second type of indicator light; wherein, the second type of indicator light is used to indicate the connection rate of the network port; The control signal further includes a second type of control signal; the second type of control signal is used to control the indication state of the second type of indicator light; the indication state of the second type of indicator light includes that the network port operates at a first connection rate, a second connection rate, or the network port is in a disconnected state; The baseboard management controller is used to determine the working state of the network port based on the control signal, including: The baseboard management controller is used for: Determine the working state of the network port based on the first type of control signal and the second type of control signal; Wherein, the working state includes the connection rate and the connection status.
8. The computing device according to claim 7, wherein The second type of indicator light includes a first indicator light and a second indicator light; the second type of control signal includes a first control signal and a second control signal; Wherein, the first control signal is used to control the indication state of the first indicator light, and the indication state of the first indicator light includes that the network port operates at a first connection rate or the network port is disconnected; The second control signal is used to control the indication state of the second indicator light, and the indication state of the second indicator light includes that the network port operates at a second connection rate or the network port is disconnected; The baseboard management controller is used to determine the working state of the network port based on the first type of control signal and the second type of control signal, including: The baseboard management controller is used to: Determine the working state of the network port based on the first type of control signal and the first control signal; or, Determine the working state of the network port based on the first type of control signal and the second control signal.
9. The computing device according to claim 8, wherein The baseboard management controller is used to determine the working state of the network port based on the first type of control signal and the first control signal; Or, determine the working state of the network port based on the first type of control signal and the second type of control signal, including: The baseboard management controller is used to: When the first type of control signal is a first-level signal and the first control signal is a first-level signal, determine that the network port is in a connected state and operates at a first connection rate; When the first type of control signal is a first-level signal and the second control signal is a first-level signal, determine that the network port is in a connected state and operates at a second connection rate; When the first type of control signal is a pulse signal and the first control signal is a first-level signal, determine that the network port is in a data transmission state and operates at a first connection rate; When the first type of control signal is a pulse signal and the second control signal is a first-level signal, determine that the network port is in a data transmission state and operates at a second connection rate.
10. A sampling circuit, characterized in that, The sampling circuit is applied to a computing device; the computing device includes a baseboard management controller, a network chip, and an indicator light; The input end of the sampling circuit is coupled to the indicator light control end of the network chip; the network chip is coupled to the indicator light; the output end of the sampling circuit is coupled to the baseboard management controller; Wherein, the indicator light control end is used to output the control signal of the indicator light, and the control signal of the indicator light is used to control the indication state of the indicator light; The indicator light is used to indicate the network port connection state of the network chip; The sampling circuit is used to obtain the control signal and provide the control signal to the baseboard management controller; the control signal is used for the baseboard management controller to determine the working state of the network port.
11. The sampling circuit according to claim 10, wherein The sampling circuit includes an input / output I / O expansion circuit; wherein, the input interface of the I / O expansion circuit is coupled to the indicator light control end; the output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller.
12. The sampling circuit according to claim 11, wherein The sampling circuit includes an input / output I / O expansion circuit and a peak detection circuit; wherein, the input end of the peak detection circuit is coupled to the indicator control end; the output end of the peak detection circuit is coupled to the input interface of the I / O expansion circuit; and the output interface of the I / O expansion circuit is coupled to the I2C interface of the baseboard management controller.
13. The sampling circuit according to claim 10, characterized in that, The sampling circuit includes an analog / digital A / D sampling circuit; the input end of the A / D sampling circuit is coupled to the indicator control end; and the output end of the A / D sampling circuit is coupled to the I2C interface of the baseboard management controller.
14. A method for obtaining network port status, which is applied to a computing device, characterized in that, The method includes: Obtaining a control signal of the indicator; wherein, the indicator is used to indicate the connection state of the network port; and the control signal is used to control the indication state of the indicator. Determining the working state of the network port based on the control signal.
15. A computing device, characterized in that, It includes a processor and a memory; the processor is coupled to the memory; The memory is used to store instructions; The processor is used to execute the instructions stored in the memory so that the computing device executes the method as described in claim 14.