Board card indication circuit, board card, equipment and method for positioning board card
By using prompt circuits and switch control circuits in the board indication circuit, and using NPN transistors and current limiting resistors to control the status of the prompt unit, the problem of being unable to quickly locate the board in the prior art is solved, and fast board positioning without shutting down and disassembling is achieved.
Patent Information
- Application Number
- CN202510277867.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, it is impossible to quickly locate the board in the electronic device, which leads to the need to shut down, disassemble the machine, etc. to determine whether the board needs to be updated or replaced, which takes a long time.
A board indication circuit is designed, including a prompt circuit and a switch control circuit. By connecting with the registers in the board, the switching status of the prompt unit is controlled by using an NPN transistor and a current limiting resistor to realize the quick switching of the prompt unit and positioning the board.
The board can be quickly positioned without shutting down or dismantling the machine, which improves positioning efficiency and reduces time costs.
Smart Images

Figure CN120343797A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of board card positioning. Specifically, it relates to a board card indication circuit, a board card, a device, and a method for board card positioning. Background Art
[0002] In an electronic device, there may be multiple board cards plugged in, and there may be differences in the versions and performances among the board cards. Therefore, during specific use, it may be necessary to update or replace one or more of the board cards.
[0003] However, the current common method is to perform a series of operations such as shutting down the electronic device and disassembling it, then removing the board card, and it is also necessary to verify the board card before determining whether the removed board card is the one that needs to be updated or replaced. In this way, it takes a relatively long time cost. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a board card indication circuit, a board card, a device, and a method for board card positioning, so as to solve the problem in the related art that the board card cannot be quickly positioned.
[0005] In a first aspect, the embodiments of this application provide a board card indication circuit, including:
[0006] A prompting circuit, including a prompting unit and a first switch connected in series, and the prompting circuit is configured to be connected to a first voltage source;
[0007] A switch control circuit, connected to the control end of the first switch and configured to be connected to a register in the board card; the switch control circuit is used to control the first switch to close when the register value in the register is a first value, so that the prompting circuit forms a loop and the prompting unit is in a prompting state, and is used to control the first switch to open when the register value in the register is a second value, so that the prompting unit is in a closed state;
[0008] The prompting unit is located on the board card or is arranged close to the board card.
[0009] In the above implementation process, by connecting the switch control circuit to the register in the board, the switch controller can control the switch of the first switch according to the register value in the register of the board, thereby controlling whether the prompting circuit can form a loop, and further realizing the state control of the prompting unit. In this way, when it is necessary to locate the board, the register value in the register can be changed so that the register value in the register is the first value, thereby closing the first switch in the board indication circuit, further causing the prompting circuit to form a loop, and causing the prompting unit to be in a prompting state. Since the prompting unit is arranged on the board or near the board, only by controlling the register value in the board to be the first value, the prompting unit on the board or the prompting unit near the board can be in a prompting state. Thus, the board can be located by whether the prompting unit is in a prompting state and the setting position of the prompting unit, without performing operations such as shutting down and disassembling the device loaded with the board, and the effect of quickly locating the board can be achieved.
[0010] Further, the switch control circuit includes:
[0011] A second switch, the first end of the second switch is connected to the control end of the first switch and is configured to be connected to a second voltage source; the second end of the second switch is grounded; the control end of the second switch is configured to be connected to the register in the board.
[0012] In the above implementation process, by connecting the first end of the second switch to the control end of the first switch and configuring the control end of the second switch to be connected to the register in the board. In this way, the switch control of the second switch can be realized through the register value in the register. And through the switch control of the second switch, the switch control of the first switch can be realized. Moreover, the switch control of the first switch can also cause the prompting circuit to form a loop or not to form a loop, and further the prompting unit can be controlled to be in a closed state or a prompting state. In this way, when it is necessary to locate the board, the register value in the register can be controlled to control the second switch to close the first switch, further causing the prompting circuit to form a loop, and causing the prompting unit to be in a prompting state. Since the prompting unit is arranged on the board or near the board, only by controlling the register value in the board to be the first value, the prompting unit on the board or the prompting unit near the board can be in a prompting state. Thus, the board can be located by whether the prompting unit is in a prompting state and the setting position of the prompting unit, without performing operations such as shutting down and disassembling the device loaded with the board, and the effect of quickly locating the board can be achieved.
[0013] Further, the first switch is a first NPN transistor, the base of the first NPN transistor is connected to the switch control circuit; the emitter of the first NPN transistor is grounded; the collector of the first NPN transistor is connected in series with the prompting unit.
[0014] In the above implementation process, by setting the first switch as the first NPN transistor, since the characteristic of the NPN transistor is to conduct when the base voltage is greater than the emitter voltage. Therefore, by controlling the base voltage of the first NPN transistor to be equal to or less than the emitter voltage, the first NPN transistor can be made in a non-conducting state, so that the prompting circuit does not form a loop, and further the prompting unit is in a closed state. And by controlling the base voltage of the first NPN transistor to be greater than the emitter voltage, the first NPN transistor can be made in a conducting state, so that the prompting circuit forms a loop, and further the prompting unit is in a prompting state. Therefore, setting the first switch as the first NPN transistor can more conveniently realize the state switching of the prompting unit.
[0015] Further, the second switch is a second NPN transistor, the base of the second NPN transistor is configured to be connected to a register in the board; the emitter of the second NPN transistor is grounded; the collector of the second NPN transistor is connected to the control end of the first switch and is configured to be connected to a second voltage source.
[0016] In the above implementation process, by setting the second switch as the second NPN transistor, since the characteristic of the NPN transistor is to conduct when the base voltage is greater than the emitter voltage. At the same time, since the emitter of the second NPN transistor is grounded, the emitter voltage of the second NPN transistor will not change. Therefore, by controlling the base voltage of the second NPN transistor, the conduction or disconnection of the second NPN transistor can be realized. And the conduction or non-conduction of the second NPN transistor can affect the switch state of the first switch, thereby realizing the control of forming or not forming a loop in the prompting circuit, and further realizing the switching between the prompting state and the closed state of the prompting unit. And since the base of the second NPN transistor is connected to the register in the board, by setting the register value of the register in the board, the base voltage of the second NPN transistor can be set. Therefore, setting the second switch as the second NPN transistor can more conveniently realize the state switching of the prompting unit.
[0017] Further, the switch control circuit further includes a first current-limiting resistor; one end of the first current-limiting resistor is connected to the control end of the second switch, and the other end of the first current-limiting resistor is configured to be connected to a register in the board.
[0018] In the above implementation process, by adding a first current-limiting resistor in the switch control circuit, since one end of the first current-limiting resistor is connected to the control end of the second switch, the other end of the first current-limiting resistor is configured to be connected to a register in the board. Since the register value of the register in the board can affect the voltage input to the control end of the second switch. After setting the first current-limiting resistor between the register of the board and the second switch, the voltage input to the control end of the second switch can be reduced through the first current-limiting resistor, and the probability of the second switch being broken down due to excessive input voltage can be reduced.
[0019] Further, the switch control circuit further includes a second current-limiting resistor; one end of the second current-limiting resistor is configured to be connected to a second voltage source, and the other end of the second current-limiting resistor is connected to the control end of the first switch.
[0020] In the above implementation process, by adding a second current-limiting resistor in the switch control circuit, since one end of the second current-limiting resistor is configured to be connected to a second voltage source, and the other end of the second current-limiting resistor is connected to the control end of the first switch. That is, the second voltage source is the voltage directly input to the control end of the first switch. After setting the second current-limiting resistor between the second voltage source and the first switch, the voltage input to the control end of the first switch can be reduced through the second current-limiting resistor, and the probability of the first switch being broken down due to excessive input voltage can be reduced.
[0021] Further, the prompting circuit further includes:
[0022] A third current-limiting resistor, connected in series with the prompting unit and the first switch.
[0023] In the above implementation process, by adding a third current-limiting resistor in the prompting circuit, since the prompting circuit is configured to be connected to a first voltage source, and the prompting unit and the first switch are connected in series, the first voltage source is actually to provide voltage for the prompting unit and the first switch. By adding the third current-limiting resistor and connecting it in series with the prompting unit and the first switch, the first voltage source can be divided by the third current-limiting resistor, so that the voltage flowing through the prompting unit and the first switch can be reduced, and further the probability of the first switch and the prompting unit being broken down due to excessive input voltage can be reduced.
[0024] Further, the prompting circuit and the switch control circuit are arranged in the board.
[0025] In the above implementation process, by arranging the prompt circuit and the switch control circuit on the board, that is, arranging the board indication circuit on the board. Since one board can be alternately loaded into multiple devices, if it is necessary to locate the board in each device, then it is necessary to set the board indication circuit in each device, which may cause waste of resources. By arranging the board indication circuit on the board, no matter which electronic device the board is loaded into, the positioning of the board can be realized.
[0026] Further, the board is a GPU board.
[0027] In a second aspect, an embodiment of the present application provides a board, which may include the board indication circuit described in the first aspect.
[0028] In a third aspect, an embodiment of the present application further provides an electronic device, including a processor and multiple boards. The processor is communicatively connected to each board. Each board is provided with a register and a board indication circuit, and the registers of each board are connected to the corresponding board indication circuit; the board indication circuit is the board indication circuit described in the first aspect.
[0029] In a fourth aspect, an embodiment of the present application further provides a method for board positioning, which is applied to a processor. The processor is communicatively connected to multiple boards. Each board is provided with a register, and the registers of different boards are connected to different board indication circuits; wherein, the board indication circuit is the board indication circuit described in the first aspect; the method includes:
[0030] In response to the determination of the target board or the acquisition of the target board positioning instruction, modify the register value in the register of the target board to a first value, so that the prompt unit of the board indication circuit connected to the target board is in a prompt state.
[0031] In the above implementation process, by responding to the determination of the target board or the acquisition of the target board positioning instruction, the target board can be determined among multiple boards. Then, by modifying the register value in the register of the target board to the first value, since the register of the target board is connected to the board indication circuit, therefore, when the register value in the register of the target board is modified to the first value, the prompt unit on the target board or the prompt unit close to the target board can be in a prompt state. Thus, the positioning of the target board can be realized by whether the prompt unit is in a prompt state and the setting position of the prompt unit, without performing operations such as shutting down and disassembling the device loaded with the board, and the effect of quickly positioning the target board can be achieved.
[0032] Further, before responding to the determination of the target board, the method further includes:
[0033] Test each of the said board cards using preset test cases to obtain the test results corresponding to each of the said board cards;
[0034] Determine the board cards with unqualified test results as the said target board cards.
[0035] In the above implementation process, by using the test to test each board card, the test results corresponding to each board card can be obtained, and thus the target board card can be determined among multiple board cards. Description of the Drawings
[0036] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application, and thus should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0037] Figure 1 Schematic structural diagram of a board card indication circuit provided by an embodiment of the present application;
[0038] Figure 2 Schematic structural diagram of another board card indication circuit provided by an embodiment of the present application;
[0039] Figure 3 Schematic structural diagram of another board card indication circuit provided by an embodiment of the present application;
[0040] Figure 4 Schematic structural diagram of another board card indication circuit provided by an embodiment of the present application;
[0041] Figure 5 Schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0042] Figure 6 Schematic flowchart of a method for board card positioning provided by an embodiment of the present application;
[0043] Figure 7 Schematic diagram of visual positioning of a board card provided by an embodiment of the present application;
[0044] Figure 8 Schematic diagram of another visual positioning of a board card provided by an embodiment of the present application.
[0045] Reference Signs:
[0046] 110: Hint circuit; 111: Hint unit; 112: First switch; 113: Third current-limiting resistor; 120: Switch control circuit; 121: Second switch; 122: First current-limiting resistor; 123: Second current-limiting resistor. Detailed implementation manners
[0047] 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.
[0048] Embodiment 1:
[0049] To solve the problem in the related art that the board cannot be quickly located, a board indication circuit is provided in the embodiments of the present application. Refer to Figure 1 as shown Figure 1 which is a schematic structural diagram of the board indication circuit provided in the embodiments of the present application. The board indication circuit includes: a hint circuit 110 and a switch control circuit 120.
[0050] Among them, the hint circuit 110 includes a series-connected hint unit 111 and a first switch 112, and the hint circuit 110 is configured to be connected to a first voltage source.
[0051] The hint circuit 110 may further include a third current-limiting resistor 113, and the third current-limiting resistor 113 is connected in series with the hint unit 111 and the first switch 112.
[0052] Exemplarily, as shown in Figure 1 one end of the third current-limiting resistor 113 is connected to one end of the hint unit 111, and the other end of the third current-limiting resistor 113 is connected to one end of the first switch 112. And, the other end of the hint unit 111 is configured to be connected to a first voltage source.
[0053] Exemplarily, as shown in Figure 2 one end of the third current-limiting resistor 113 is configured to be connected to a first voltage source. The other end of the third current-limiting resistor 113 is connected in series with the hint unit 111 and the first switch 112.
[0054] Similarly, as shown in Figure 1 and Figure 2 the switch control circuit 120 is connected to the control end of the first switch 112 and is configured to be connected to a register in the board; the switch control circuit 120 is used to control the first switch 112 to close when the register value in the register is a first value, so that the hint circuit 110 forms a loop and the hint unit 111 is in a hint state, and is used to control the first switch 112 to open when the register value in the register is a second value, so that the hint unit 111 is in a closed state;
[0055] The hint unit 111 is located on the board or is arranged close to the board.
[0056] The board indication circuit provided by the embodiment of the present disclosure connects the switch control circuit to the register in the board, enabling the switch controller to control the on / off state of the first switch according to the register value in the register of the board, thereby controlling whether the prompt circuit can form a loop, and further realizing the state control of the prompt unit. In this way, when it is necessary to locate the board, the register value in the register can be changed so that the register value is the first value, causing the first switch in the board indication circuit to close, further causing the prompt circuit to form a loop, and making the prompt unit in the prompt state. Since the prompt unit is arranged on the board or near the board, simply controlling the register value in the board to be the first value can make the prompt unit on the board or the prompt unit near the board in the prompt state. Thus, the board can be located by whether the prompt unit is in the prompt state and the setting position of the prompt unit, without performing operations such as shutting down and disassembling the device loaded with the board, achieving the effect of quickly locating the board.
[0057] In an alternative implementation of this embodiment, the prompt unit 111 can be a light-emitting unit. Correspondingly, the switch control circuit 120 is used to control the first switch to close when the register value in the register is the first value, so that the prompt circuit 110 forms a loop and the prompt unit 111 is in the prompt state, and is used to control the first switch 112 to open when the register value in the register is the second value, so that the prompt unit 111 is in the off state; including: the switch control circuit 120 is used to control the first switch 112 to close when the register value in the register is the first value, so that the prompt circuit 110 forms a loop and the light-emitting unit is in the light-emitting state. And it is used to control the first switch 112 to open when the register value in the register is the second value, so that the light-emitting unit is in the extinguished state.
[0058] In this embodiment, by setting the prompt unit as a light-emitting unit, the target board can be determined by whether the light-emitting unit emits light, and the target board can be presented more intuitively. Optionally, the light-emitting unit can be an LED (Light Emitting Diode) lamp.
[0059] Alternatively, the prompting unit 111 may be a vibration unit. Correspondingly, the switch control circuit 120 is configured to control the first switch 112 to close when the register value in the register is the first value, so that the prompting circuit 110 forms a loop, and the prompting unit 111 is in a prompting state. And it is configured to control the first switch 112 to open when the register value in the register is the second value, so that the prompting unit 111 is in a closed state; including: the switch control circuit 120 is configured to control the first switch 112 to close when the register value in the register is the first value, so that the prompting circuit 110 forms a loop, and the vibration unit is in a vibrating state. And it is configured to control the first switch 112 to open when the register value in the register is the second value, so that the vibration unit is in a stationary state.
[0060] In this embodiment, by setting the prompting unit as a vibration unit, the positioning of the board can be performed according to whether the vibration unit vibrates or not, so that the user can be assisted to achieve board positioning more quickly.
[0061] Similarly combined with Figure 1 and Figure 2 As shown, in an alternative implementation manner in this embodiment, the first switch may be a first NPN transistor, the base of the first NPN transistor is connected to the switch control circuit; the emitter of the first NPN transistor is grounded; the collector of the first NPN transistor is connected in series with the prompting unit. The base of the first NPN transistor is the control end of the first switch.
[0062] In this embodiment, by setting the first switch as a first NPN transistor, since the characteristic of an NPN transistor is to conduct when the base voltage is greater than the emitter voltage. Therefore, by controlling the base voltage of the first NPN transistor to be equal to or less than the emitter voltage, the first NPN transistor can be made in a non-conducting state, so that the prompting circuit does not form a loop, and further the prompting unit is in a closed state. And by controlling the base voltage of the first NPN transistor to be greater than the emitter voltage, the first NPN transistor can be made in a conducting state, so that the prompting circuit forms a loop, and further the prompting unit is in a prompting state. Therefore, setting the first switch as a first NPN transistor can more conveniently realize the state switching of the prompting unit.
[0063] Similarly combined with Figure 1 and Figure 2 As shown, the switch control circuit 120 may include: a second switch 121, the first end of the second switch 121 is connected to the control end of the first switch 112 and is configured to be connected to a second voltage source; the second end of the second switch 121 is grounded; the control end of the second switch 121 is configured to be connected to a register in the board.
[0064] In this embodiment, by connecting the first end of the second switch to the control end of the first switch, and the control end of the second switch is configured to be connected to a register in the board. In this way, the on / off control of the second switch can be realized through the register value in the register. And through the on / off control of the second switch, the on / off control of the first switch can be realized. Moreover, the on / off control of the first switch can also realize that the prompt circuit forms a loop or cannot form a loop, and further the prompt unit can be controlled to be in the off state or the prompt state. In this way, when the board needs to be located, the register value in the register can be controlled to control the second switch to turn on the first switch, so that the prompt circuit forms a loop and the prompt unit is in the prompt state. Since the prompt unit is arranged on the board or near the board, only by controlling the register value in the board to be the first value, the prompt unit on the board or the prompt unit near the board can be made to be in the prompt state. Thus, the location of the board can be realized by whether the prompt unit is in the prompt state and the setting position of the prompt unit, without performing operations such as shutting down and disassembling the device loaded with the board, and the effect of quickly locating the board can be achieved.
[0065] Optionally, the second switch may be a second NPN transistor, the base of the second NPN transistor is configured to be connected to a register in the board; the emitter of the second NPN transistor is grounded; the collector of the second NPN transistor is connected to the control end of the first switch and is configured to be connected to a second voltage source.
[0066] The base of the second NPN transistor is the control end of the second switch. The collector of the second NPN transistor is the first end of the second switch. The emitter of the second NPN transistor is the first end of the second switch.
[0067] In this embodiment, by setting the second switch as a second NPN transistor, since the characteristic of an NPN transistor is to conduct when the base voltage is greater than the emitter voltage. At the same time, since the emitter of the second NPN transistor is grounded, the emitter voltage of the second NPN transistor will not change. Therefore, by controlling the base voltage of the second NPN transistor, the conduction or disconnection of the second NPN transistor can be realized. And the conduction or non-conduction of the second NPN transistor can affect the on / off state of the first switch, thereby realizing the control of whether the prompt circuit forms a loop or not, and further realizing the switching between the prompt state and the off state of the prompt unit. And since the base of the second NPN transistor is connected to a register in the board, by setting the register value of the register in the board, the base voltage of the second NPN transistor can be set. Therefore, setting the second switch as a second NPN transistor can more conveniently realize the state switching of the prompt unit.
[0068] The switch control circuit 120 may further include: a first current-limiting resistor 122. One end of the first current-limiting resistor 122 may be connected to the control end of the second switch 121, and the other end of the first current-limiting resistor 122 is configured to be connected to a register in the board.
[0069] In this embodiment, by adding a first current-limiting resistor in the switch control circuit, since one end of the first current-limiting resistor is connected to the control end of the second switch, and the other end of the first current-limiting resistor is configured to be connected to a register in the board. Since the register value in the register of the board can affect the voltage input to the control end of the second switch. And after setting the first current-limiting resistor between the register of the board and the second switch, the voltage input to the control end of the second switch can be reduced through the first current-limiting resistor, and the probability that the second switch is broken down due to excessive input voltage can be reduced.
[0070] The switch control circuit 120 may further include: a second current-limiting resistor 123.
[0071] Similarly combined Figure 1 and Figure 2 As shown, in an alternative implementation provided in the embodiment of the present application, one end of the second current-limiting resistor 123 is configured to be connected to a second voltage source, and the other end of the second current-limiting resistor 123 is respectively connected to the control end of the first switch 112 and the first end of the second switch 121.
[0072] In this embodiment, by adding a second current-limiting resistor in the switch control circuit, since one end of the second current-limiting resistor is configured to be connected to a second voltage source, and the other end of the second current-limiting resistor is respectively connected to the control end of the first switch and the first end of the second switch. That is, the second voltage source is the voltage directly input to the control end of the first switch and the first end of the second switch. And after adding the second current-limiting resistor in the switch control circuit, the second voltage source can be shared through the second current-limiting resistor, so as to reduce the voltage input to the control end of the first switch and the voltage input to the first end of the second switch, thereby reducing the probability that the first switch and the second switch are broken down due to excessive input voltage.
[0073] Combined Figure 3 and Figure 4 As shown, in an alternative implementation provided in the embodiment of the present application, one end of the second current-limiting resistor 123 is configured to be connected to a second voltage source, and the other end of the second current-limiting resistor 123 is connected to the control end of the first switch 112.
[0074] In this embodiment, by adding a second current-limiting resistor in the switch control circuit, since one end of the second current-limiting resistor is configured to be connected to the second voltage source, the other end of the second current-limiting resistor is connected to the control terminal of the first switch. That is, the second voltage source is the voltage directly input to the control terminal of the first switch. After setting the second current-limiting resistor between the second voltage source and the first switch, the voltage input to the control terminal of the first switch can be reduced through the second current-limiting resistor, and the probability of the first switch being broken down due to excessive input voltage can be reduced.
[0075] Embodiment 2
[0076] Combined with Figures 1 to 4 As shown, an embodiment of the present application provides a board card indication circuit, including: a prompt circuit 110 and a switch control circuit 120. The prompt circuit 110 includes an LED lamp, a first NPN transistor, and a third current-limiting resistor 113. Among them, one end of the LED lamp is used to connect to the first voltage source. The other end of the LED lamp is connected to one end of the third current-limiting resistor 113, and the other end of the third current-limiting resistor 113 is connected to the collector of the first NPN transistor. The emitter of the first NPN transistor is grounded. The first voltage source can provide a power supply voltage of 3.3 volts. The first voltage source can be an independent voltage source, such as a storage battery. The first voltage source can also be a mains voltage after step-down processing. The switch control circuit 120 includes a second NPN transistor, a first current-limiting resistor, and a second current-limiting resistor.
[0077] Among them, one end of the first current-limiting resistor is configured to be connected to a register in the board card, and the other end of the first current-limiting resistor is connected to the base of the second NPN transistor. The emitter of the second NPN transistor is grounded. The collector of the second NPN transistor is respectively connected to one end of the second current-limiting resistor and the base of the first NPN transistor. And the base of the first NPN transistor is connected to one end of the second current-limiting resistor. The other end of the second current-limiting resistor is used to connect to the second voltage source. Similarly, the second voltage source can also be an independent voltage source, such as a storage battery. The first voltage source can also be a mains voltage after step-down processing.
[0078] Since the characteristic of the NPN transistor is to conduct when the base voltage is greater than the emitter voltage. At the same time, since the emitter of the second NPN transistor is grounded, therefore, when the register value in the register of the board card is 0, that is, when the register outputs a low level, the second NPN transistor is in an off state, so that the second voltage source acts on the base of the first NPN transistor. At the same time, since the emitter of the first NPN transistor is grounded, the first NPN transistor conducts, and then the LED, the third current-limiting resistor, and the first NPN transistor form a loop. The LED lamp is in a lit state.
[0079] When the register value of the register in the board is 1, that is, when the register outputs a high level, the second NPN transistor is in the conducting state, so that the second voltage source flows to the ground through the second NPN transistor. Therefore, the base of the first NPN transistor cannot obtain enough voltage, making the first NPN transistor in the non-conducting state, and no loop can be formed among the LED, the third current-limiting resistor, and the first NPN transistor, so that the LED is in the off state.
[0080] Exemplarily, the register is, for example, a GPIO (General Purpose Input Output) status register.
[0081] When the GPIO status register is read, the register value in the GPIO status register does not change. When the GPIO status register is written with 1, the register value in the GPIO status register will become 1. When the GPIO status register is written with 0, the register value in the GPIO status register will become 0.
[0082] In the embodiment of the present application, different register values can be written into the GPIO status register to make the first NPN transistor or the second NPN transistor in the conducting state, so that the LED is in the lit state or the off state, realizing the positioning of the board. There is no need to perform operations such as shutting down and disassembling the device loaded with the board, so the effect of quickly positioning the board can be achieved.
[0083] Embodiment 3:
[0084] Based on the same inventive concept, this embodiment provides a board including the board indication circuit in the foregoing embodiment. That is, the prompting circuit and the switch control circuit are arranged in the board. By arranging the prompting circuit and the switch control circuit in the board, that is, arranging the board indication circuit on the board. Since a board can be alternately loaded into multiple devices, if it is necessary to position the board in each device, then the board indication circuit needs to be arranged in each device, which may cause waste of resources. And arranging the board indication circuit on the board can realize the positioning of the board no matter which electronic device the board is loaded into.
[0085] Exemplarily, the board can be a GPU (Graphics Processing Unit). The GPU board can be a GPGPU (General-Purpose computing on Graphics Processing Unit) board.
[0086] This embodiment provides an electronic device, which includes a processor and multiple boards. The processor is communicatively connected to each board. Each board is provided with a register and a board indication circuit, and the registers of each board are all connected to the corresponding board indication circuit; the board indication circuit is the board indication circuit of the foregoing embodiment.
[0087] It can be understood that the processor can be a processor core or a processor chip, or other circuits that can be configured and run programs. The electronic device may also have an internal communication bus for realizing communication between the processor and the board; for another example, it may also have an external communication interface, such as a USB (Universal Serial Bus) interface, a CAN (Controller Area Network) bus interface, etc.; for another example, it may also have an information display component such as a display screen, but this is not a limitation.
[0088] Combined Figure 5 As shown, the electronic device 500 may include 8 GPGPU boards and a processor 501, and each GPGPU board is communicatively connected to the processor. Each GPGPU board is provided with a GPIO status register and a board indication circuit. And the GPIO status registers of each GPGPU board are all connected to the corresponding board indication circuit.
[0089] Embodiment 4
[0090] Based on Embodiment 3, this embodiment provides a method for board positioning, which is applied to the processor in the electronic device provided in Embodiment 3. The method for board positioning includes:
[0091] In response to obtaining a target board positioning instruction, modify the register value in the register of the target board to a first value, so that the prompting unit of the board indication circuit connected to the target board is in a prompting state.
[0092] In a network environment, each hardware device connected to the processor is assigned a unique address. Since the board is communicatively connected to the processor, each board corresponds to a unique address. And the register in the board also corresponds to a unique address. Therefore, through the unique address corresponding to the hardware device, the processor can not only identify the board, but also identify the register in the board. Therefore, the processor can send control instructions to the registers in each board according to the unique address corresponding to each register, thereby realizing the modification of the register value in the board.
[0093] In an electronic device including multiple circuit boards, any one of the circuit boards in the electronic device may malfunction, or any one of the circuit boards needs to be upgraded separately. In such a case, it is necessary to locate the circuit board for replacement or upgrade. The method for circuit board location provided by the embodiments of the present application can determine a target circuit board among multiple circuit boards by responding to the acquisition of a target circuit board location instruction. Then, by modifying the register value of the register in the target circuit board to a first value, since the register of the target circuit board is connected to the circuit board indication circuit, when the register value of the register in the target circuit board is modified to the first value, the prompting unit on the target circuit board or the prompting unit close to the target circuit board can be in a prompting state. Thus, the location of the target circuit board can be achieved by whether the prompting unit is in a prompting state and the setting position of the prompting unit, without performing operations such as shutting down and disassembling the device loaded with the circuit board, and the effect of quickly locating the target circuit board can be achieved.
[0094] Alternatively, the single prompting path and the switch control circuit may also be provided in an electronic device that can communicate with the circuit board.
[0095] When the single prompting path and the switch control circuit are provided in an electronic device that can communicate with the circuit board, the distance between the position of the prompting unit on the electronic device and the loading position of the circuit board on the electronic device is within a preset range. In this way, by setting the circuit board indication circuit on other devices except the circuit board, the location of the circuit board that has been produced and does not have a circuit board indication circuit can be realized, thereby expanding the types of circuit boards that can be located.
[0096] Embodiment 5
[0097] Based on Embodiment 3, this embodiment provides a method for circuit board location, which is applied to the processor in the electronic device provided in Embodiment 3. Combining Figure 6 with the flowchart of the method for circuit board location shown, the following steps may be included:
[0098] Step S601: Test each circuit board using a preset test case to obtain the test results corresponding to each circuit board.
[0099] Step S602: Determine the circuit board with an unqualified test result as the target circuit board.
[0100] Step S603: Modify the register value in the register of the target circuit board to a first value so that the prompting unit of the circuit board indication circuit connected to the target circuit board is in a prompting state.
[0101] The method for board card positioning provided by the embodiments of the present application can determine a target board card among multiple board cards by obtaining a target board card positioning instruction. Then, by modifying the register value of the register in the target board card to a first value, since the register of the target board card is connected to the board card indication circuit, therefore, when the register value of the register in the target board card is modified to the first value, the prompting unit on the target board card or the prompting unit close to the target board card can be in a prompting state. Thus, the positioning of the target board card can be achieved by whether the prompting unit is in a prompting state and the setting position of the prompting unit, without performing operations such as powering off and disassembling the device loaded with the board card, and the effect of quickly positioning the target board card can be achieved.
[0102] Embodiment Six
[0103] In an electronic device, there are board card A, board card B, board card C, and board card D. Board card A, board card B, board card C, and board card D are respectively plugged into 4 PCIe (Peripheral Component Interconnect Express) slots on the main board of the electronic device, thereby realizing the communication connection between board card A, board card B, board card C, board card D and the processor in the electronic device. At the same time, board card A is provided with a register and a board card indication circuit, and the register in board card A is connected to the board card indication circuit in the board card. Similarly, board card B is provided with a register and a board card indication circuit, and the register in board card B is connected to the board card indication circuit in the board card. Board card C is provided with a register and a board card indication circuit, and the register in board card C is connected to the board card indication circuit in the board card. Board card D is provided with a register and a board card indication circuit, and the register in board card D is connected to the board card indication circuit in the board card. And, the prompting units in the board card indication circuits of board card A, board card B, board card C, and board card D are all LED lights.
[0104] The processor uses a preset test case to test board card A, board card B, board card C, and board card D respectively, and obtains the test results corresponding to board card A, board card B, board card C, and board card D respectively. If the test result of board card A indicates unqualified, and the test results of board card B, board card C, and board card D all indicate qualified, then board card A can be determined as a defective product, and board card B, board card C, and board card D are all qualified products.
[0105] The processor writes 0 to the registers corresponding to board A, board B, board C, and board D respectively, so that the LED lights of board A, board B, board C, and board D are all in the off state. Similarly, the processor can write 1 to the registers corresponding to board A, board B, board C, and board D respectively, so that the LED lights of board A, board B, board C, and board D are all in the on state. In this way, the states of the LED lights corresponding to board A, board B, board C, and board D can be unified.
[0106] Combined with Figure 7 As shown, if the user wants to locate board A and the LED lights of board A, board B, board C, and board D are all in the off state, the user can control the processor to write 1 to the register corresponding to board A, so that the LED light of board A is in the on state. Thus, the visual positioning of board A is achieved.
[0107] Similarly, if the user wants to locate board B and the LED lights of board A, board B, board C, and board D are all in the off state, the user can control the processor to write 1 to the register corresponding to board B, so that the LED light of board B is in the on state. Thus, the visual positioning of board B is achieved.
[0108] Similarly, if the user wants to locate board C and the LED lights of board A, board B, board C, and board D are all in the off state, the user can control the processor to write 1 to the register corresponding to board C, so that the LED light of board C is in the on state. Thus, the visual positioning of board C is achieved.
[0109] Similarly, if the user wants to locate board D and the LED lights of board A, board B, board C, and board D are all in the off state, the user can control the processor to write 1 to the register corresponding to board D, so that the LED light of board D is in the on state. Thus, the visual positioning of board C is achieved.
[0110] Or, combined with Figure 8 As shown, if the user wants to locate board A and the LED lights of board A, board B, board C, and board D are all in the on state, the user can control the processor to write 1 to the register corresponding to board A, so that the LED light of board A is in the off state. Thus, the visual positioning of board A is achieved.
[0111] Similarly, if the user wants to locate board B, and the LED lights of board A, board B, board C, and board D are all in the lit state, the user can control the processor to write 1 to the register corresponding to board B, so that the LED light of board B is in the extinguished state. Thus, the visual positioning of board B is achieved.
[0112] Similarly, if the user wants to locate board C, and the LED lights of board A, board B, board C, and board D are all in the lit state, the user can control the processor to write 1 to the register corresponding to board C, so that the LED light of board C is in the extinguished state. Thus, the visual positioning of board C is achieved.
[0113] Similarly, if the user wants to locate board D, and the LED lights of board A, board B, board C, and board D are all in the lit state, the user can control the processor to write 1 to the register corresponding to board D, so that the LED light of board D is in the extinguished state. Thus, the visual positioning of board C is achieved.
[0114] In addition, after locating the unqualified board, that is, board A, board A can be removed for analysis. And after locating the qualified board, operations such as information burning and label pasting can be performed on the board whose test result is characterized as qualified.
[0115] In the above implementation process, by setting a board indication circuit in the board, when it is necessary to locate the board, the register value in the register of the corresponding board can be changed, so that the register value in the register is 1 or 0, thereby closing the first switch in the board indication circuit, further forming a loop in the prompt circuit, and making the LED light in the prompt state. Since the LED light is set on the board or near the board, only by controlling the register value in the board to be the first value, the LED light on the board or the LED light near the board can be in the prompt state. Thus, the positioning of the corresponding board can be achieved by whether the LED light corresponding to the board is in the prompt state. In this way, when a high number of boards need to be located, the unqualified boards can be quickly located, the classification of the boards can be achieved, which is beneficial to accelerating the removal of unqualified boards, as well as the label pasting and information burning of qualified product cards.
[0116] Based on the same inventive concept, this embodiment also provides a computer-readable storage medium, such as a floppy disk, optical disc, hard disk, flash memory, USB flash drive, SD (Secure Digital Memory Card) card, MMC (Multimedia Card) card, etc. One or more programs for implementing the above-mentioned various steps are stored in the computer-readable storage medium, and the one or more programs can be executed by one or more processors to implement the above-mentioned method for board card positioning. Details are not described herein again.
[0117] In the embodiments provided in the present application, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, and the indirect coupling or communication connection of the device or unit may be in an electrical, mechanical or other form.
[0118] In addition, the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] Furthermore, in each embodiment of the present application, the various functional modules can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.
[0120] In this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0121] In this article, "a plurality of" means two or more.
[0122] The above description is only for the embodiments of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A board card indication circuit, characterized in that, Comprising: A prompting circuit, including a series-connected prompting unit and a first switch, and the prompting circuit is configured to be connected to a first voltage source; A switch control circuit, connected to the control terminal of the first switch and configured to be connected to a register in the board; the switch control circuit is used to control the first switch to close when the register value in the register is a first value, so that the prompting circuit forms a loop and the prompting unit is in a prompting state, and is used to control the first switch to open when the register value in the register is a second value, so that the prompting unit is in a closed state; The prompting unit is located on the board or is arranged close to the board.
2. The board card according to claim 1, wherein The switch control circuit includes: A second switch, the first end of the second switch is connected to the control terminal of the first switch and is configured to be connected to a second voltage source; the second end of the second switch is grounded; the control terminal of the second switch is configured to be connected to a register in the board.
3. The board card indication circuit according to claim 1, wherein The first switch is a first NPN transistor, and the base of the first NPN transistor is connected to the switch control circuit; the emitter of the first NPN transistor is grounded; the collector of the first NPN transistor is connected in series with the prompting unit.
4. The board card indication circuit according to claim 2, wherein The second switch is a second NPN transistor, and the base of the second NPN transistor is configured to be connected to a register in the board; the emitter of the second NPN transistor is grounded; the collector of the second NPN transistor is connected to the control terminal of the first switch and is configured to be connected to a second voltage source.
5. The board card indication circuit according to claim 2, wherein The switch control circuit further includes a first current-limiting resistor; one end of the first current-limiting resistor is connected to the control terminal of the second switch, and the other end of the first current-limiting resistor is configured to be connected to a register in the board.
6. The board card indication circuit according to claim 1, wherein The switch control circuit further includes a second current-limiting resistor; one end of the second current-limiting resistor is configured to be connected to a second voltage source, and the other end of the second current-limiting resistor is connected to the control terminal of the first switch.
7. The board card indication circuit according to claim 1, wherein The prompting circuit further includes: A third current-limiting resistor, connected in series with the prompting unit and the first switch.
8. The board card indication circuit according to any one of claims 1 to 7, characterized in that, The board is a GPU board.
9. The board card indicating circuit according to any one of claims 1 to 7, characterized in that, The prompting circuit and the switch control circuit are arranged in the board.
10. A board card, characterized in that, Including the board indicating circuit according to any one of claims 1 to 9.
11. An electronic device, characterized in that, Including a processor and a plurality of boards, the processor is communicatively connected to each of the boards, each board is provided with a register and a board indicating circuit, and the registers of each board are all connected to the corresponding board indicating circuit; the board indicating circuit is the board indicating circuit according to any one of claims 1-9.
12. A method for board card positioning, characterized in that, Applied to a processor, the processor is communicatively connected to a plurality of boards, each board is provided with a register, and the registers of different boards are all connected to different board indicating circuits; wherein, the board indicating circuit is the board indicating circuit according to any one of claims 1-8; the method includes: In response to the determination of the target board or in response to obtaining a target board positioning instruction, modify the register value in the register of the target board to a first value, so that the prompting unit of the board indicating circuit connected to the target board is in a prompting state.
13. The method according to claim 12, wherein Before the determination of the target board, the method further includes: Using preset test cases to test each of the boards respectively, and obtaining the test results corresponding to each of the boards; Determine the board with an unqualified test result as the target board.