Search

CN-122027604-A - Equipment address control method and device

CN122027604ACN 122027604 ACN122027604 ACN 122027604ACN-122027604-A

Abstract

The application discloses a device address control method and device, the device at least comprises an expansion board connected with a server, a switch device and an expansion card inserted on the expansion board are arranged on the expansion board, serial signals output by the server are transmitted to the expansion card through the switch device on the expansion board, a plurality of first devices are inserted on the expansion board, a plurality of second devices are arranged on the expansion card, under the condition that the switch device is in a disconnection state, first address information of each first device on the expansion board is determined, under the condition that the switch device is in a connection state, second address information of each second device on the expansion card is determined through the serial signals, and if the first address information of the first target devices in the plurality of first devices conflicts with the second address information of the second target devices in the plurality of second devices, the first address information of the first target devices is adjusted.

Inventors

  • MA SHUAI
  • ZHAO KUI
  • XU LU

Assignees

  • 联想(北京)有限公司

Dates

Publication Date
20260512
Application Date
20260128

Claims (10)

  1. 1. The equipment address control method is applied to an equipment address control device, and the equipment address control device at least comprises an expansion board connected with a server, wherein a switch device and an expansion card inserted on the expansion board are arranged on the expansion board, serial signals output by the server are transmitted to the expansion card through the switch device on the expansion board, a plurality of first equipment are inserted on the expansion board, and a plurality of second equipment are arranged on the expansion card, and the method comprises the following steps: determining first address information of each first device on the expansion board under the condition that the switching device is in an off state; determining second address information of each second device on the expansion card through a serial signal under the condition that the switch device is in a connection state; comparing the first address information with the second address information to obtain a comparison result; And if the comparison result indicates that the first address information of the first target device in the plurality of first devices conflicts with the second address information of the second target device in the plurality of second devices, adjusting the first address information of the first target device.
  2. 2. The method of claim 1, further comprising: responsive to the server being in a target state, adjusting a state of the switching device to place the switching device in an off state; Wherein said adjusting the state of the switching device to place the switching device in an off state comprises: Adjusting the state of an enabling signal of the switching device to be a first state, wherein the first state is a non-enabling state; and adjusting the switching device to be in an off state in response to the state of the enabling signal being in the first state.
  3. 3. The method of claim 1, further comprising: After the first address information is determined, the state of the switching device is adjusted from a disconnection state to a connection state; Wherein, the adjusting the state of the switch device from the disconnected state to the connected state includes: Adjusting the state of an enabling signal of the switching device to be a second state, wherein the second state is an enabling state; and adjusting the switching equipment to be in a connection state in response to the state of the enabling signal being in the second state.
  4. 4. A method according to claim 3, wherein said determining the second address information of each second device on the expansion card in the case where the switching device is in a connected state comprises: outputting a reset signal to the expansion board to reset each first device on the expansion board; transmitting a detection signal to the expansion card through the switching device; At least one response signal which is transmitted by the expansion card through the switch equipment and is used for responding to the detection signal is obtained, and the detection signal is a serial signal; and determining address information corresponding to each response signal in the at least one response signal respectively, and determining the address information corresponding to each response signal in the at least one response signal as second address information of each second device on the expansion card.
  5. 5. The method of claim 1, the determining the first address information of each first device on the expansion board, comprising: Determining the type of the expansion board; first address information of each first device on the expansion board is determined based on the type of the expansion board.
  6. 6. The method of claim 5, the determining the type of expansion board comprising: Acquiring level state information of each input/output pin in a plurality of input/output pins of an expansion chip on the expansion board; And determining a first type corresponding to the level state combination of the expansion chip based on the corresponding relation between the pre-stored level state combination and the expansion board type, and determining the first type as the type of the expansion board, wherein the level state combination of the expansion chip consists of the level state information of each input and output pin of the expansion chip.
  7. 7. The method of claim 5, the determining first address information for each first device on the expansion board based on the type of expansion board, comprising: obtaining an address list of first address information of each first device corresponding to different types of expansion boards stored in advance; and determining first address information of each first device corresponding to the expansion board of the first type based on the address list.
  8. 8. The method of claim 4, further comprising: and if the comparison result indicates that any one of the first address information and the second address information does not have conflict, outputting a cancel reset signal to the expansion board.
  9. 9. The method of claim 1, the adjusting the first address information of the first target device, comprising: The state of the switch equipment is adjusted from a connection state to a disconnection state, and a level adjusting instruction is output; and adjusting the level information of the pins of the first target device with conflict through the level adjustment instruction so as to realize adjustment of the first address information of the first target device based on the change of the level information of the pins of the first target device.
  10. 10. A device address control apparatus comprising: the expansion board is connected with the server, and a plurality of first devices are inserted on the expansion board; the switch device is arranged on the expansion board; The expansion card is inserted on the expansion board, a plurality of second devices are arranged on the expansion card, and serial signals output by the server are transmitted to the expansion card through switch devices on the expansion board; And the controller is used for determining the first address information of each first device when the switch device is in an off state, determining the second address information of each second device through a serial signal when the switch device is in a connection state, comparing the first address information with the second address information to obtain a comparison result, and adjusting the first address information of the first target device if the comparison result represents that the first address information of the first target device in the plurality of first devices conflicts with the second address information of the second target device in the plurality of second devices.

Description

Equipment address control method and device Technical Field The present application relates to the field of computer technologies, and in particular, to a device address control method and apparatus. Background As server technology evolves, more and more PCIE (Peripheral Component Interconnect Express) expansion cards are introduced into the server configuration, which results in an increased probability that the address of the expansion device on the PCIE expansion card overlaps the address of the device on the motherboard or expansion board Riser, thereby causing abnormal device communication. Disclosure of Invention In view of this, the present application provides a method and apparatus for controlling device address, which has the following specific scheme: The equipment address control method is applied to an equipment address control device, and the equipment address control device at least comprises an expansion board connected with a server, wherein a switch device and an expansion card inserted on the expansion board are arranged on the expansion board, serial signals output by the server are transmitted to the expansion card through the switch device on the expansion board, a plurality of first equipment are inserted on the expansion board, and a plurality of second equipment are arranged on the expansion card, and the method comprises the following steps: determining first address information of each first device on the expansion board under the condition that the switching device is in an off state; determining second address information of each second device on the expansion card through a serial signal under the condition that the switch device is in a connection state; comparing the first address information with the second address information to obtain a comparison result; And if the comparison result indicates that the first address information of the first target device in the plurality of first devices conflicts with the second address information of the second target device in the plurality of second devices, adjusting the first address information of the first target device. Further, the method further comprises the following steps: responsive to the server being in a target state, adjusting a state of the switching device to place the switching device in an off state; Wherein said adjusting the state of the switching device to place the switching device in an off state comprises: Adjusting the state of an enabling signal of the switching device to be a first state, wherein the first state is a non-enabling state; and adjusting the switching device to be in an off state in response to the state of the enabling signal being in the first state. Further, the method further comprises the following steps: After the first address information is determined, the state of the switching device is adjusted from a disconnection state to a connection state; Wherein, the adjusting the state of the switch device from the disconnected state to the connected state includes: Adjusting the state of an enabling signal of the switching device to be a second state, wherein the second state is an enabling state; and adjusting the switching equipment to be in a connection state in response to the state of the enabling signal being in the second state. Further, the determining, when the switching device is in a connected state, the second address information of each second device on the expansion card includes: outputting a reset signal to the expansion board to reset each first device on the expansion board; transmitting a detection signal to the expansion card through the switching device; At least one response signal which is transmitted by the expansion card through the switch equipment and is used for responding to the detection signal is obtained, and the detection signal is a serial signal; and determining address information corresponding to each response signal in the at least one response signal respectively, and determining the address information corresponding to each response signal in the at least one response signal as second address information of each second device on the expansion card. Further, the determining the first address information of each first device on the expansion board includes: Determining the type of the expansion board; first address information of each first device on the expansion board is determined based on the type of the expansion board. Further, the determining the type of the expansion board includes: Acquiring level state information of each input/output pin in a plurality of input/output pins of an expansion chip on the expansion board; And determining a first type corresponding to the level state combination of the expansion chip based on the corresponding relation between the pre-stored level state combination and the expansion board type, and determining the first type as the type of the expansion board, wherein the level state combination of the expansion chip