CN114443545B - Interface expansion method, device, management system and related equipment - Google Patents

Interface expansion method, device, management system and related equipment Download PDF

Info

Publication number
CN114443545B
CN114443545B CN202210340123.4A CN202210340123A CN114443545B CN 114443545 B CN114443545 B CN 114443545B CN 202210340123 A CN202210340123 A CN 202210340123A CN 114443545 B CN114443545 B CN 114443545B
Authority
CN
China
Prior art keywords
data
interface
target
register
target interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210340123.4A
Other languages
Chinese (zh)
Other versions
CN114443545A (en
Inventor
刘付东
陈才
范里政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Phytium Technology Co Ltd
Original Assignee
Phytium Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Phytium Technology Co Ltd filed Critical Phytium Technology Co Ltd
Priority to CN202210340123.4A priority Critical patent/CN114443545B/en
Publication of CN114443545A publication Critical patent/CN114443545A/en
Application granted granted Critical
Publication of CN114443545B publication Critical patent/CN114443545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention provides an interface expanding method, an interface expanding device, a management system and related equipment, wherein the interface expanding method applied to first equipment comprising a plurality of interfaces comprises the following steps: receiving a command sent by the second device, wherein the command is used for controlling and executing data transmission operation between the second device and a target interface; determining a target register having a mapping relation with a target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other; the read-write operation is executed on the target register to execute the data transmission operation between the second device and the target interface, so that the interface of the first device can realize the data transmission function which is the same as the interface of the second device, and then the interface expansion of the second device can be carried out through the first device, the problem that the number of the interfaces carried by the second device cannot meet the requirement is solved, and the accuracy and the correctness of the data transmission between the second device and the target interface can be ensured.

Description

Interface expansion method, device, management system and related equipment
Technical Field
The invention relates to the technical field of computers, in particular to an interface expanding method, an interface expanding device, a management system and related equipment.
Background
In a complex integrated circuit, the number of interfaces carried by a chip often cannot meet the requirement. For example, a Baseboard Management Controller (BMC) chip is generally connected to a node device in each computing node of a server system through a self-contained interface (e.g., an I/O interface) to implement remote installation, Management, monitoring, and restarting of the server system. However, with the increase of computing power of computing nodes and the increase of computing density of servers, the number of interfaces of the BMC chip cannot meet the demand.
Disclosure of Invention
In view of this, the present invention is directed to provide an interface expanding method, an apparatus, a management system and related devices, so as to solve the problem that the interface of the chip cannot meet the requirement.
In a first aspect, the present invention provides an interface expanding method, which is applied to a first device, where the first device is connected to a second device, the first device includes a plurality of interfaces and registers, and the interface expanding method includes:
receiving a command sent by the second device, where the command is used to control and execute a data transmission operation between the second device and a target interface, where the target interface is any interface in the multiple interfaces;
determining a target register having a mapping relationship with the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other;
and executing read-write operation on the target register so as to execute data transmission operation between the second equipment and the target interface.
In a second aspect, the present invention provides an interface expanding method, which is applied to a second device, where the second device is connected to a first device, the first device includes a plurality of interfaces and registers, and the interface expanding method includes:
generating a command, where the command is used to control the first device to execute a data transmission operation between the second device and a target interface, where the target interface is any interface in the multiple interfaces;
sending the command to the first device, so that the first device determines a target register having a mapping relation with the target interface, and performs read-write operation on the target register to perform data transmission operation between the second device and the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other.
In a third aspect, the present invention provides an interface expanding apparatus, which is applied to a first device, where the first device is connected to a second device, the first device includes a plurality of interfaces and registers, and the interface expanding apparatus includes:
a first transmission module, configured to receive a command sent by the second device, where the command is used to control execution of a data transmission operation between the second device and a target interface, and the target interface is any interface in the multiple interfaces;
the first control module is used for determining a target register which has a mapping relation with the target interface, and performing read-write operation on the target register so as to perform data transmission operation between the second equipment and the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other.
In a fourth aspect, the present invention provides an interface expanding apparatus, which is applied to a second device, where the second device is connected to a first device, the first device includes a plurality of interfaces and registers, and the interface expanding apparatus includes:
a second control module, configured to generate a command, where the command is used to control the first device to perform a data transmission operation between the second device and a target interface, where the target interface is any interface in the multiple interfaces;
a second transmission module, configured to send the command to the first device, so that the first device determines a target register having a mapping relationship with the target interface, and performs a read/write operation on the target register to perform a data transmission operation between the second device and the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other.
In a fifth aspect, the present invention provides a management system, including a first device and a second device, wherein the first device is connected to the second device, and the first device includes a plurality of interfaces and registers;
the second device is used for generating a command and sending the command to the first device, the command is used for controlling and executing data transmission operation between the second device and a target interface, and the target interface is any interface in the plurality of interfaces; the target interface is connected with a third device;
the first device is used for determining a target register which has a mapping relation with the target interface, and performing read-write operation on the target register so as to perform data transmission operation between the second device and the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other.
In a sixth aspect, the present invention provides an electronic device, comprising:
a memory for storing at least one set of instructions;
a processor for executing the at least one set of instructions to perform the interface expansion method as described in any one of the above.
In a seventh aspect, the present invention provides a readable storage medium storing at least one set of instructions for causing a processor to execute the interface expanding method according to any one of the above.
According to the interface expanding method, the device, the management system and the related equipment provided by the invention, the first equipment with a plurality of interfaces is connected with the second equipment, and the first equipment executes the data transmission operation between the second equipment and the target interface according to the command sent by the second equipment, so that the interface of the first equipment realizes the data transmission function which is the same as the interface of the second equipment, the interface of the second equipment can be expanded through the first equipment, and the problem that the number of the interfaces carried by the second equipment cannot meet the requirement is solved.
Moreover, the target register and the target interface have a mapping relationship, and the mapping relationship is used for enabling data of the target register and data transmitted by the target interface to correspond to each other, so that after the first device determines the target register having the mapping relationship with the target interface, the first device can execute data transmission operation between the second device and the target interface by executing read-write operation on the target register, and accuracy and correctness of data transmission between the second device and the target interface can be ensured.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in more detail embodiments of the present application with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 is a schematic diagram of a connection relationship between a BMC chip and a node device in a server system.
Fig. 2 is a schematic diagram of a connection relationship between a first device and a second device according to an embodiment of the present invention.
Fig. 3 is a flowchart of an interface expanding method according to an embodiment of the present invention.
Fig. 4 is a flowchart of an interface expanding method according to another embodiment of the present invention.
Fig. 5 is a flowchart of an interface expanding method according to another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an interface expansion apparatus according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an interface expanding apparatus according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram illustrating a connection relationship between a BMC chip and a node device in a server system, where as shown in fig. 1, the BMC chip is connected to a plurality of node devices 11 in the server system through a plurality of I/O interfaces (i.e., input/output interfaces) 10 provided in the BMC chip. That is to say, the BMC chip may be connected to multiple node devices of one computing node in the server system through multiple self-contained I/O interfaces, so as to implement monitoring and management of the BMC chip on the multiple node devices of one computing node.
The BMC chip can send a command to the node device through the I/O interface to realize data transmission between the BMC chip and the node device. For example, the BMC chip may output a data acquisition command to the node device 11 through the I/O interface 10, and after the node device 11 responds to the data acquisition command, the node device inputs its own status data to the BMC chip through the I/O interface 10, so that the BMC chip monitors and manages the node device 11 according to the status data.
When the computing density of the server system is not high, the BMC chip can meet the supervision requirement on a single computing node through an I/O interface of the BMC chip because the number of node devices which need to be managed by each computing node is small. However, with the increase of computing power of the computing nodes and the increase of computing density of the server, node devices of a single computing node, such as power devices and heat dissipation devices, become more and more complex, and the number of the node devices to be managed in the single computing node becomes more and more, so that the number of I/O interfaces of the BMC chip cannot meet the connection requirement of the single computing node.
Based on this, an interface expansion scheme is provided in an embodiment of the present invention, so that a first device (e.g., a BMC chip) having multiple interfaces (e.g., I/O interfaces) is connected to a second device (e.g., a BMC chip) to perform interface expansion on the second device (e.g., the BMC chip), so that the second device (e.g., the BMC chip) can meet the number requirement of the interfaces.
As an optional implementation of the disclosure of the present invention, an embodiment of the present invention provides an interface expansion method, which may be applied to a first device, to implement interface expansion of a second device (e.g., a BMC chip) through the first device.
As shown in fig. 2, fig. 2 is a schematic diagram of a connection relationship between a first device and a second device according to an embodiment of the present invention, the first device 21 is connected to the second device 22, the first device 21 includes a plurality of interfaces 211 and a register 210, and the plurality of interfaces 211 may be connected to a plurality of third devices 23, respectively.
In some embodiments of the present invention, all of the plurality of interfaces 211 may be I/O interfaces, but the present invention is not limited thereto, and in other embodiments, the plurality of interfaces 211 may also be other data transmission interfaces, such as USB interfaces. The first device 21 and the second device 22 may be connected through interfaces such as SPI and IIC, which are not described herein again.
In some optional examples, the first device 21 and the second device 22 are connected through an IIC interface, and the second device 22 issues a command to the first device 21 through an IIC data bus. And the first device 21 or a processor or a control module inside the first device 21 may be a slave device of the IIC to execute the command issued by the second device 22.
In some embodiments of the present invention, the second Device 22 includes a BMC chip, the first Device 21 includes a Programmable Logic Device, such as a CPLD (Complex Programmable Logic Device) or an FPGA (Field Programmable Gate Array), and the third Device 23 includes a node Device in a server system, which may include a blade server, a power supply module, a fan module, and the like.
The third devices 23 connected by different interfaces 211 may be different devices, for example, the third device 23 connected by one interface 211 may be a power module, and the third device 23 connected by another interface 211 may be a fan module.
Of course, the present invention is not limited to this, in other embodiments, the second device 22 may also be other devices that need to extend an interface, such as a processor chip, etc., the first device 21 may also be other processors, microprocessors, or single-chip microcomputers, etc., and the third device 23 may also be other devices or interfaces that need to perform data transmission with the second device 22, etc.
Fig. 3 is a flowchart of an interface expanding method according to an embodiment of the present invention, and as shown in fig. 3, the interface expanding method includes:
s301: receiving a command sent by the second device 22, where the command is used to control execution of a data transfer operation between the second device 22 and a target interface, where the target interface is any interface in the plurality of interfaces;
referring to fig. 2 and 4, fig. 4 is a flowchart of an interface expanding method according to another embodiment of the present invention, when the second device 22 needs to send data to the target device or needs to acquire data of the target device, as shown in step S401 in fig. 4, the second device 22 sends a command to the first device 21, where the command is used to control the first device 21 to execute a data transmission operation between the second device 22 and the target interface. The target device is any one or more third devices 23, and the target interface is an interface connected to the target device in the plurality of interfaces 211.
It is understood that, if the plurality of interfaces 211 are all I/O interfaces, the data transfer operation includes a first data transfer operation and a second data transfer operation, the first data transfer operation is used for transferring data sent by the second device 22 to the target interface so as to transfer the data to the third device 23 connected thereto through the target interface, and the second data transfer operation is used for transferring data input by the target interface to the second device 22, where the data input by the target interface is data of the third device 23 connected thereto.
For example, when the second device 22 needs to send data to the third device 23, the second device 22 sends a command to the first device 21 to control the first device 21 to execute a first data transmission operation between the second device 22 and a target interface, i.e., the interface 211; when the second device 22 needs to acquire the data of the third device 23, the second device 22 sends a command to the first device 21 to control the first device 21 to perform a second data transmission operation between the second device 22 and a target interface, i.e., the interface 211.
S302: determining a target register having a mapping relation with a target interface; the mapping relation is used for enabling the data stored in the target register to correspond to the data transmitted by the target interface;
after receiving the command sent by the second device 22, the first device 21 parses the command, determines a target interface according to a result of the parsing, and then determines a target register having a mapping relationship with the target interface as shown in step S402 in fig. 4. The mapping relationship is used for enabling the data stored in the target register and the data transmitted by the target interface to correspond to each other. Wherein the destination register may be register 210.
It should be noted that the mapping relationship between the target register and the target interface is preset. In some alternative examples, the execution of the mapping may be controlled by a control module in the first device 21. For example, if the data stored in the target register changes, the control module may control the data transmitted by the target interface to change correspondingly; if the data transmitted by the target interface changes, the control module controls the data stored in the target register to change correspondingly, so that the data stored in the target register and the data transmitted by the target interface correspond to each other.
It will be appreciated that the control module may be a program or set of instructions or the like pre-integrated in the processor of the first device 21. The control module can realize mutual correspondence of data between the target interface and the target register based on a Map protocol.
S303: read and write operations are performed on the target register to perform data transfer operations between the second device 22 and the target interface.
After determining the target register having a mapping relationship with the target interface, as shown in step S403 in fig. 4, the first device 21 may determine to perform a write operation or a read operation on the target register according to the command parsing result.
If it is determined that the write operation is performed on the destination register, the first device 21 changes the data stored in the destination register by writing new data into the destination register, and then changes the data output by the corresponding destination interface based on the mapping relationship, as shown in step S404 in fig. 4. Thereafter, as shown in step S405 in fig. 4, the target interface may transmit the corresponding data to the third device 23 connected thereto. Based on this, a first data transfer operation of transferring data sent by the second device 22 to the target interface may be implemented.
Wherein the new data written to the destination register may be obtained by parsing the command sent by the second device 22. Of course, the new data written into the target register may also be sent in a bundle with the command, i.e. the command does not need to be parsed, and the new data written into the target register may also be obtained.
If it is determined that a read operation is performed on the target register, the first device 21 reads the data stored in the target register, as shown in step S406 in fig. 4. Since the target register and the target interface have a mapping relationship, the data stored in the target register corresponds to the input data of the target interface, that is, the data corresponding to the input data of the target interface, which is the data of the third device 23 input by the target interface, is read by the first device 21. Thereafter, as shown in step S407 in fig. 4, the first device 21 may send the read data to the second device 22, so that the second device 22 obtains the input data of the target interface according to the read data, and further obtains the data of the third device 23 connected to the target interface. Based on this, a second data transfer operation of transferring data input by the target interface to the second device 22 can be realized.
The first device 21 may directly send the read data of the target register to the second device 22, or may convert the read data of the target register into input data of the target interface and send the input data of the target interface to the second device 22, which is not described herein again.
Based on this, in some embodiments of the present invention, performing the read/write operation on the target register to perform the data transfer operation between the second device and the target interface includes: and executing a write operation on the target register, writing the data sent by the second device 22 into the target register to execute a first data transfer operation of transferring the data sent by the second device 22 to the target interface, and enabling the target interface to output the corresponding data.
On this basis, in other embodiments of the present invention, performing a read/write operation on the target register to perform a data transfer operation between the second device and the target interface includes: a read operation is performed on the target register to read data corresponding to the input data of the target interface and the read data is transmitted to the second device 22 to perform a second data transmission operation of transmitting the input data of the target interface to the second device 22.
Because the first device 21 can execute the data transmission operation between the second device 22 and the target interface according to the command sent by the second device 22, the interface of the first device 21 can realize the same data transmission function as the interface of the second device 22, so that the interface of the second device 22 can be expanded through the first device 21, the problem that the number of the interfaces carried by the second device 22 cannot meet the requirement can be solved, the interface does not need to be expanded by developing the second device 22, the development cost can be reduced, and the application range of the second device 22 can be expanded. For example, the BMC chip with the interface expanded by the first device 21 may be applied to a two-way, four-way, eight-way, and high-integration server architecture.
Also, since the target register and the target interface have a mapping relationship for making data of the target register and data transferred by the target interface correspond to each other, after the first device 21 determines the target register having a mapping relationship with the target interface, it is possible to perform a data transfer operation between the second device 22 and the target interface by performing a read/write operation on the target register. Since the transmission data of the target interface is changed in real time, compared with directly acquiring the transmission data of the target interface, acquiring the data corresponding to the target interface cached by the target register can ensure the accuracy and correctness of the data, and thus can ensure the accuracy and correctness of data transmission between the second device 22 and the target interface.
It should be noted that the first device 21 may also control the input/output state of the target interface according to a command sent by the second device 22. For example, if the command sent by the second device 22 is used to control the first device 21 to perform a first data transmission operation for transmitting data sent by the second device 22 to the target interface, the first device 21 controls the data transmission mode of the target interface to be the output mode. If the command sent by the second device 22 is used to control the first device 21 to perform a second data transmission operation for transmitting the data of the target interface to the second device 22, the first device 21 controls the data transmission mode of the target interface to be the input mode.
Of course, the present invention is not limited to this, and in other embodiments, the first device 21 may control the data transmission mode of the target interface to be the output mode only in the process that the target interface outputs the data sent by the second device 22, and control the data transmission mode of the target interface to be the input mode in other periods after the transmission of the target interface is completed.
In some embodiments of the present invention, different target interfaces may have a mapping relationship with different target registers, that is, the transmission data of the multiple interfaces of the first device 21 may correspond to the data of the multiple registers inside the first device 21, respectively, but the present invention is not limited thereto, and in other alternative embodiments, different target interfaces may have a mapping relationship with different bits of the same target register, that is, the transmission data of the multiple interfaces of the first device 21 may correspond to the data of the multiple bits of one register inside the first device 21, respectively.
Based on this, in some embodiments of the present invention, determining the target register having a mapping relationship with the target interface comprises: determining a target register corresponding to the data of the corresponding bit and the transmission data of the target interface; the data of different bits of the target register corresponds to the transmission data of different interfaces. That is, after the target interface is determined, if data of a corresponding bit in one register corresponds to transfer data of the target interface, the register may be determined as the target register.
It should be noted that, in some alternative embodiments, one bit of data may correspond to transmission data of one interface, or multiple bits of data may correspond to transmission data of one interface. In the embodiment of the present invention, only one bit of data is described as corresponding to one interface of transmission data, but the present invention is not limited thereto.
In some optional embodiments, the data of one bit and the transmission data of the target interface correspond to each other, including: if the data of the bit is first data, the output data of the target interface is second data; if the data of the bit is third data, the output data of the target interface is fourth data; if the input data of the target interface is second data, the data of the bit is first data; if the input data of the target interface is the fourth data, the data of the bit is the third data.
Wherein the first data may include a logic 1, the second data may include high level data, the third data may include a logic 0, and the fourth data may include low level data. Of course, the present invention is not limited thereto, and in other alternative examples, the first data may also include a logic 1, the second data may also include a low level data, the third data may also include a logic 0, and the fourth data may also include a high level data, which is not described herein again.
When the first data is a logic 1, the second data is a high level data, the third data is a logic 0, and the fourth data is a low level data, if a logic 1 is written into a bit corresponding to the target register, the first device 21 controls the target interface having a mapping relationship with the bit to output the high level data, and if a logic 0 is written into a bit corresponding to the target register, the first device 21 controls the target interface having a mapping relationship with the bit to output the low level data.
If the data read from the bit corresponding to the target register is logic 1, the second device 22 may determine that the data currently transmitted by the target interface having a mapping relationship with the bit is high-level data, and if the data read from the bit corresponding to the target register is logic 0, the second device 22 may determine that the data currently transmitted by the target interface having a mapping relationship with the bit is low-level data.
In the embodiment of the present invention, not only the normal data transmission between the second device 22 and the third device 23 can be realized, but also the state of the third device 23 can be monitored by monitoring the interface connected to the third device 23. On this basis, the interface expanding method in some embodiments of the present invention further includes:
detecting input data of any interface connected to the third device 23;
if the input data of the interface includes abnormal data, sending feedback information to the second device 22, so that the second device 22 obtains the input data of the interface, and determining the state of the third device 23 connected with the interface according to the input data.
The abnormal data includes data representing an abnormality of a pin signal of the interface or data representing an abnormality of an operating state of the third device 23. That is, during normal operation of the third device 23, input data of the interface connected to the third device 23 is normal. For example, during normal operation of the third device 23, the input data of the interface connected thereto is always high level data or low level data. If the input data of the interface changes from high level data to low level data, or changes from low level data to high level data, or the interface has no input data, it indicates that the input data of the interface includes abnormal data, which may indicate that the pin signal of the interface is abnormal, and may also indicate that the operating state of the third device 23 is abnormal.
After the first device 21 sends the feedback information to the second device 22, the second device 22 sends a command to the first device 21, and controls the first device 21 to send the input data including the abnormal data of the interface to the second device 22, so that the second device 22 determines an abnormal condition according to the abnormal data in the input data and manages the abnormal condition. The feedback information may be an interrupt instruction or the like.
Based on this, in the process of operating the third device 23, the first device 21 may assist the second device 22 in monitoring the state of the third device 23 by detecting the input data of the interface and determining whether the input data includes abnormal data.
Although the data in the destination register and the transfer data of the destination interface correspond to each other, when the transfer data of the destination interface includes abnormal data, the transfer data is changed, and therefore, the data in the destination register is overwritten with new data. Based on this, after the first device 21 detects that the input data of the interface contains abnormal data, the input data containing abnormal data may be saved in a memory or other register for later retrieval of a call.
As another optional implementation of the disclosure, the embodiment of the present invention further provides an interface expanding method, where the interface expanding method may be applied to the second device 22. Fig. 2 and the related description are referred to for connection relationship between the second device 22 and the first device 21, and are not repeated here.
Fig. 5 is a flowchart of an interface expanding method according to another embodiment of the present invention, and as shown in fig. 5, the interface expanding method includes:
s501: generating a command for controlling the first device 21 to perform a data transfer operation between the second device 22 and a target interface, the target interface being any interface of the plurality of interfaces;
the second device 22 may be set in advance, so that the second device 22 generates a corresponding command in a specific situation, or the second device 22 may generate a command periodically to send data to the third device 23 periodically or to acquire data of the third device 23 periodically. Further, the operator may send an instruction to the second device 22 through a host or the like connected to the second device to cause the second device 22 to generate a corresponding command.
S502: sending a command to the first device 21, so that the first device 21 determines a target register having a mapping relationship with a target interface, and performs a read-write operation on the target register to perform a data transfer operation between the second device 22 and the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other.
After the second device 22 generates the command, it sends the command to the first device 21. Then, the first device 21 determines a target register having a mapping relationship with the target interface, and performs a read-write operation on the target register to perform a data transmission operation between the second device 22 and the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other.
It should be noted that, the step of determining, by the first device 21, a target register having a mapping relationship with the target interface and performing the read-write operation on the target register is described in detail in the foregoing embodiment, and details are not repeated here.
In some embodiments of the present invention, the interface expanding method further includes:
receiving feedback information sent by first equipment;
and acquiring input data of a corresponding interface in the first equipment according to the feedback information so as to determine the state of the third equipment 23 connected with the interface according to the input data.
That is, in the process of detecting the input data of any interface of the first device 21, if the input data of one or more interfaces includes abnormal data, the first device 21 sends feedback information to the second device 22. After receiving the feedback information sent by the first device 21, the second device 22 may obtain input data including abnormal data of a corresponding interface in the first device 21 according to the feedback information, so as to determine a state of the third device 23 connected to the interface according to the input data including the abnormal data.
Based on this, the second device 22 only needs to send a command to the first device 21 to control the first device 21 to execute the data transmission operation between the second device 22 and the target interface, so that the interface of the first device 21 can realize the same data transmission function as the interface of the second device 22, and the problem that the number of the interfaces of the second device 22 cannot meet the requirement is solved, so that the second device 22 does not need to be developed to expand the interfaces, which not only can reduce the development cost, but also can expand the application range of the second device 22.
As another optional implementation of the disclosure, an embodiment of the present invention provides an interface expansion apparatus, which may be applied to the first device 21. Similarly, the connection relationship between the second device 22 and the first device 21 may refer to fig. 2 and the related description, and is not described herein again.
Fig. 6 is a schematic structural diagram of an interface expanding apparatus according to an embodiment of the present invention, and as shown in fig. 6, the interface expanding apparatus includes:
a first transmission module 601, configured to receive a command sent by the second device 22, where the command is used to control and execute a data transmission operation between the second device 22 and a target interface, and the target interface is any interface in a plurality of interfaces;
a first control module 602, configured to determine a target register having a mapping relationship with a target interface, and perform a read/write operation on the target register to perform a data transmission operation between the second device 22 and the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other.
In some embodiments of the present invention, the determining, by the first control module 602, the target register having a mapping relationship with the target interface includes: the first control module 602 determines a target register corresponding to the data of the corresponding bit and the transmission data of the target interface; the data of different bits of the target register corresponds to the transmission data of different interfaces.
In some embodiments of the present invention, the corresponding of the data of the bits and the transmission data of the target interface includes: if the data of the bit is first data, the output data of the target interface is second data; if the data of the bit is third data, the output data of the target interface is fourth data; if the input data of the target interface is second data, the data of the bit is first data; and if the input data of the target interface is fourth data, the data of the bit is third data.
In some embodiments of the invention, the first data comprises a logic 1, the second data comprises a high level data, the third data comprises a logic 0, and the fourth data comprises a low level data.
In some embodiments of the present invention, the executing, by the first control module 602, the read/write operation on the target register to execute the data transmission operation between the second device and the target interface includes:
the first control module 602 performs a write operation on the target register, writes the data sent by the second device 22 into the target register, so as to perform a first data transfer operation of transferring the data sent by the second device 22 to the target interface, and enables the target interface to output corresponding data.
In some embodiments of the present invention, the executing, by the first control module 602, the read/write operation on the target register to execute the data transmission operation between the second device 22 and the target interface includes:
the first control module 602 performs a read operation on the target register to read data corresponding to the input data of the target interface and transmits the read data to the second device 22 to perform a second data transmission operation of transmitting the input data of the target interface to the second device 22.
In some embodiments of the present invention, the first control module 602 is further configured to detect input data of any interface, where the interface is connected to the third device 23; if the input data of the interface includes abnormal data, sending feedback information to the second device 22 so that the second device 22 acquires the input data, and determining the state of the third device 23 connected to the interface according to the input data.
In some embodiments of the invention, the anomaly data comprises data indicative of an anomaly in a signal at a pin of the interface or data indicative of an anomaly in an operating state of the third device 23.
As another optional implementation of the disclosure, the embodiment of the present invention provides an interface expanding apparatus, which may be applied to the second device 22. Similarly, the connection relationship between the second device 22 and the first device 21 can refer to fig. 2 and the related description, and will not be described herein again.
Fig. 7 is a schematic structural diagram of an interface expanding apparatus according to another embodiment of the present invention, and as shown in fig. 7, the interface expanding apparatus includes:
a second control module 701, configured to generate a command, where the command is used to control the first device 21 to perform a data transmission operation between the second device 22 and a target interface, where the target interface is any interface in the multiple interfaces;
a second transmission module 702, configured to send a command to the first device 21, so that the first device 21 determines a target register having a mapping relationship with a target interface, and performs a read/write operation on the target register, so as to perform a data transmission operation between the second device 22 and the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other.
In some embodiments of the present invention, the second transmission module 702 is further configured to receive feedback information sent by the first device 21; the second control module 701 is further configured to obtain input data of a corresponding interface in the first device 21 according to the feedback information, so as to determine a state of the third device 23 connected to the interface according to the input data.
As another alternative implementation of the present disclosure, an embodiment of the present invention provides a management system, and referring to fig. 2, the management system includes a first device 21 and a second device 22, where the first device 21 is connected to the second device 22, and the first device 21 includes a plurality of interfaces and registers;
the second device 22 is configured to generate a command and send the command to the first device 21, where the command is used to control and execute a data transmission operation between the second device 22 and a target interface, and the target interface is any interface in the multiple interfaces; the target interface is connected with a third device 23;
the first device 21 is configured to determine a target register having a mapping relationship with a target interface, and perform a read/write operation on the target register to perform a data transmission operation between the second device 22 and the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other.
In some embodiments of the present invention, the first device 21 is further configured to detect input data of any interface, and send feedback information to the second device 22 if the input data of the interface includes abnormal data; the second device 22 is further configured to obtain input data of a corresponding interface in the first device 21 according to the feedback information, so as to determine a state of a third device 23 connected to the interface according to the input data.
In some embodiments of the invention, the first device 21 comprises a programmable logic device, such as a CPLD or FPGA; the second device 22 includes a baseboard management controller, such as a BMC chip; the third device 23 comprises a node device in the server system, which may comprise a blade server, a power module, a fan module, and the like.
As another optional implementation of the disclosure, an embodiment of the present invention provides an electronic device, including: a memory for storing at least one set of instructions;
a processor configured to execute at least one set of instructions to perform the interface expanding method provided in any of the above embodiments.
The electronic device may be a first device or a second device. Of course, the present invention is not limited to this, and the electronic device may be a terminal device, a server device, or the like.
As another alternative implementation of the present disclosure, an embodiment of the present invention provides a readable storage medium, where the readable storage medium stores at least one set of instructions, and the at least one set of instructions is configured to cause a processor to execute the interface expanding method provided in any one of the above embodiments.
Readable storage media, including both permanent and non-permanent, removable and non-removable media, of embodiments of the present invention may implement information storage by any method or technology. The information may be host-readable instructions, data structures, modules of a program, or other data. Examples of storage media for the host include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (17)

1. An interface expansion method is applied to a first device, the first device is connected with a second device, the first device comprises a plurality of interfaces and a register, and the interface expansion method comprises the following steps:
receiving a command sent by the second device, where the command is used to control and execute a data transmission operation between the second device and a target interface, where the target interface is any interface in the multiple interfaces;
determining a target register having a mapping relationship with the target interface; the mapping relation is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other; wherein the making of the data of the target register and the data transmitted by the target interface correspond to each other includes: if the data of the target register or any bit of the target register changes, controlling the corresponding data transmitted by the target interface to correspondingly change; if the data transmitted by the target interface changes, controlling the corresponding target register or the data of the corresponding bit of the target register to correspondingly change;
and performing a read operation or a write operation on the target register to perform a data transfer operation between the second device and the target interface.
2. The interface expansion method according to claim 1, wherein the determining a destination register having a mapping relationship with the destination interface comprises: determining a target register corresponding to the data of the corresponding bit and the transmission data of the target interface; and the data of different bits of the target register corresponds to the transmission data of different interfaces.
3. The interface expansion method according to claim 2, wherein the data of the bit and the transmission data of the target interface correspond to each other, and the method comprises: if the data of the bit is first data, the output data of the target interface is second data; if the data of the bit is third data, the output data of the target interface is fourth data; if the input data of the target interface is second data, the data of the bit is first data; and if the input data of the target interface is fourth data, the data of the bit is third data.
4. The interface expansion method according to claim 3, wherein the first data includes a logic 1, the second data includes a high level data, the third data includes a logic 0, and the fourth data includes a low level data.
5. The interface expansion method according to claim 1, wherein the performing a read/write operation on the target register to perform a data transfer operation between the second device and the target interface includes:
and executing write operation on the target register, writing the data sent by the second equipment into the target register to execute first data transmission operation of transmitting the data sent by the second equipment to the target interface and enabling the target interface to output corresponding data.
6. The interface expansion method according to claim 1, wherein the performing a read/write operation on the target register to perform a data transfer operation between the second device and the target interface includes:
and executing a read operation on the target register to read data corresponding to the input data of the target interface, and sending the read data to the second device to execute a second data transmission operation of transmitting the input data of the target interface to the second device.
7. The interface expansion method according to claim 1, further comprising:
detecting input data of any one interface, wherein the interface is connected with third equipment;
and if the input data of the interface comprises abnormal data, sending feedback information to the second equipment so that the second equipment can acquire the input data, and determining the state of third equipment connected with the interface according to the input data.
8. An interface expansion method according to claim 7, wherein the abnormal data includes data representing pin signal abnormality of the interface or data representing working state abnormality of the third device.
9. An interface expanding method is applied to a second device, the second device is connected with a first device, the first device comprises a plurality of interfaces and registers, and the interface expanding method comprises the following steps:
generating a command, where the command is used to control the first device to execute a data transmission operation between the second device and a target interface, where the target interface is any interface in the multiple interfaces;
sending the command to the first device to enable the first device to determine a target register having a mapping relation with the target interface, and performing a read operation or a write operation on the target register to perform a data transfer operation between the second device and the target interface; wherein the mapping relationship is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other, and the enabling the data of the target register and the data transmitted by the target interface to correspond to each other includes: if the data of the target register or any bit of the target register changes, controlling the corresponding data transmitted by the target interface to correspondingly change; and if the data transmitted by the target interface changes, controlling the corresponding target register or the data of the corresponding bit of the target register to correspondingly change.
10. The interface expansion method according to claim 9, further comprising:
receiving feedback information sent by the first equipment;
and acquiring input data of a corresponding interface in the first equipment according to the feedback information, and determining the state of third equipment connected with the interface according to the input data.
11. An interface expansion apparatus, applied to a first device, the first device being connected to a second device, the first device including a plurality of interfaces and registers, the interface expansion apparatus comprising:
a first transmission module, configured to receive a command sent by the second device, where the command is used to control execution of a data transmission operation between the second device and a target interface, and the target interface is any interface in the multiple interfaces;
the first control module is used for determining a target register which has a mapping relation with the target interface, and executing read operation or write operation on the target register so as to execute data transmission operation between the second equipment and the target interface; wherein the mapping relationship is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other, and the enabling the data of the target register and the data transmitted by the target interface to correspond to each other includes: if the data of the target register or any bit of the target register changes, controlling the corresponding data transmitted by the target interface to correspondingly change; and if the data transmitted by the target interface changes, controlling the corresponding target register or the data of the corresponding bit of the target register to correspondingly change.
12. An interface expansion apparatus, applied to a second device, the second device being connected to a first device, the first device including a plurality of interfaces and registers, the interface expansion apparatus comprising:
a second control module, configured to generate a command, where the command is used to control the first device to perform a data transmission operation between the second device and a target interface, where the target interface is any interface in the multiple interfaces;
a second transmission module, configured to send the command to the first device, so that the first device determines a target register having a mapping relationship with the target interface, and performs a read operation or a write operation on the target register to perform a data transmission operation between the second device and the target interface; wherein the mapping relationship is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other, and the enabling the data of the target register and the data transmitted by the target interface to correspond to each other includes: if the data of the target register or any bit of the target register changes, controlling the corresponding data transmitted by the target interface to correspondingly change; and if the data transmitted by the target interface changes, controlling the corresponding target register or the data of the corresponding bit of the target register to correspondingly change.
13. A management system comprising a first device and a second device, said first device being connected to said second device, said first device comprising a plurality of interfaces and registers; the second device is used for generating a command and sending the command to the first device, the command is used for controlling and executing data transmission operation between the second device and a target interface, and the target interface is any interface in the plurality of interfaces; the target interface is connected with a third device;
the first device is used for determining a target register which has a mapping relation with the target interface, and performing read operation or write operation on the target register to perform data transmission operation between the second device and the target interface; wherein the mapping relationship is used for enabling the data of the target register and the data transmitted by the target interface to correspond to each other, and the enabling the data of the target register and the data transmitted by the target interface to correspond to each other includes: if the data of the target register or any bit of the target register changes, controlling the corresponding data transmitted by the target interface to correspondingly change; and if the data transmitted by the target interface changes, controlling the corresponding target register or the data of the corresponding bit of the target register to correspondingly change.
14. The management system according to claim 13, wherein the first device is further configured to detect input data of any of the interfaces, and send feedback information to the second device if the input data of the interface includes abnormal data;
the second device is further configured to obtain input data of a corresponding interface in the first device according to the feedback information, so as to determine a state of a third device connected to the interface according to the input data.
15. The management system of claim 13, wherein the first device comprises a programmable logic device; the second device comprises a baseboard management controller; the third device comprises a node device in a server system.
16. An electronic device, comprising:
a memory for storing at least one set of instructions;
a processor configured to execute the at least one set of instructions to perform the interface expanding method according to any one of claims 1 to 8 or to perform the interface expanding method according to any one of claims 9 to 10.
17. A readable storage medium storing at least one set of instructions for causing a processor to perform the interface extending method according to any one of claims 1 to 8 or the interface extending method according to any one of claims 9 to 10.
CN202210340123.4A 2022-04-02 2022-04-02 Interface expansion method, device, management system and related equipment Active CN114443545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210340123.4A CN114443545B (en) 2022-04-02 2022-04-02 Interface expansion method, device, management system and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210340123.4A CN114443545B (en) 2022-04-02 2022-04-02 Interface expansion method, device, management system and related equipment

Publications (2)

Publication Number Publication Date
CN114443545A CN114443545A (en) 2022-05-06
CN114443545B true CN114443545B (en) 2022-07-08

Family

ID=81359421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210340123.4A Active CN114443545B (en) 2022-04-02 2022-04-02 Interface expansion method, device, management system and related equipment

Country Status (1)

Country Link
CN (1) CN114443545B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291423A (en) * 2011-05-12 2011-12-21 福建星网锐捷网络有限公司 Method for controlling physical layer (PHY) chip and control circuit
CN113824741A (en) * 2021-11-23 2021-12-21 苏州浪潮智能科技有限公司 IIC device communication method, apparatus, device, system and medium
CN113835629A (en) * 2021-09-13 2021-12-24 新华三技术有限公司 Hard disk management method and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002342256A (en) * 2001-05-14 2002-11-29 Hitachi Ltd Data processor and method for updating data table
US20120110400A1 (en) * 2010-11-01 2012-05-03 Altera Corporation Method and Apparatus for Performing Memory Interface Calibration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291423A (en) * 2011-05-12 2011-12-21 福建星网锐捷网络有限公司 Method for controlling physical layer (PHY) chip and control circuit
CN113835629A (en) * 2021-09-13 2021-12-24 新华三技术有限公司 Hard disk management method and server
CN113824741A (en) * 2021-11-23 2021-12-21 苏州浪潮智能科技有限公司 IIC device communication method, apparatus, device, system and medium

Also Published As

Publication number Publication date
CN114443545A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
US7917664B2 (en) Storage apparatus, storage apparatus control method, and recording medium of storage apparatus control program
CN107273245B (en) Operation device and operation method
CN104838373A (en) Single microcontroller based management of multiple compute nodes
CN101216781B (en) Multiprocessor system, device and method
CN105183575A (en) Processor fault diagnosis method, device and system
CN103222286B (en) Route switching device, network switching system and route switching method
CN112015689A (en) Serial port output path switching method, system and device and switch
CN114443545B (en) Interface expansion method, device, management system and related equipment
CN110727611B (en) Configurable consistency verification system with state monitoring function
US7873498B2 (en) Remote hardware inspection system and method
CN117076344A (en) Data sharing method, device and system and readable storage medium
CN112015600A (en) Log information processing system, log information processing method and device and switch
CN103488505B (en) Patch method, equipment and system
CN113900718B (en) Decoupling method, system and device for BMC and BIOS asset information
JP2010231295A (en) Analysis system
JP4479131B2 (en) Control device
CN114613418B (en) System and method for NVMe-MI function test of solid state disk
US20130318223A1 (en) Communication system and communicaton method
CN112257381B (en) AXI Crossbar design circuit verification method and system
JP2000295242A (en) Monitor control system employing conventional components and its evaluation unit
TW201905720A (en) Computing device and operation method
CN113037507B (en) Intelligent network card system with error detection function and error detection method
CN112052132B (en) Method, device, equipment and medium for debugging plug-in chip through SDIO interface
CN117319255A (en) Method, device, medium and terminal for testing network card out-of-band management function
US10831676B2 (en) Apparatus and method for interfacing with common memory

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant