CN113553275B - Method, device, equipment and storage medium for determining connection relation - Google Patents

Method, device, equipment and storage medium for determining connection relation Download PDF

Info

Publication number
CN113553275B
CN113553275B CN202010337161.5A CN202010337161A CN113553275B CN 113553275 B CN113553275 B CN 113553275B CN 202010337161 A CN202010337161 A CN 202010337161A CN 113553275 B CN113553275 B CN 113553275B
Authority
CN
China
Prior art keywords
board
slot interface
interface
board slot
card
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
CN202010337161.5A
Other languages
Chinese (zh)
Other versions
CN113553275A (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.)
China Mobile Communications Group Co Ltd
China Mobile Chengdu ICT Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Chengdu ICT 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 China Mobile Communications Group Co Ltd, China Mobile Chengdu ICT Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010337161.5A priority Critical patent/CN113553275B/en
Publication of CN113553275A publication Critical patent/CN113553275A/en
Application granted granted Critical
Publication of CN113553275B publication Critical patent/CN113553275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • 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/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for determining a connection relation. The method comprises the following steps: determining a first board slot interface preconfigured by a first board card from a mapping relation library between the preconfigured board card and hardware; when the interface information of the second board card does not comprise the second board slot interface, determining whether the first board slot interface and the third board card have a connection relation or not; when the interface information of the second board card does not comprise the second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, the first board slot interface is determined to be the second board slot interface of the second board card, the connection relation between the first board slot interface and the second board card is obtained, and the expandability and maintainability of configuration board cards in the communication equipment are improved.

Description

Method, device, equipment and storage medium for determining connection relation
Technical Field
The invention belongs to the technical field of hardware equipment abstract management, and particularly relates to a method, a device, equipment and a storage medium for determining a connection relation.
Background
The connection relationship between boards in a communication device is important in various functional implementations of the communication device.
At present, the connection relation between the board card and the board card is solidified in the driving program of the board card, and if a plurality of board cards are arranged in the communication equipment, each board card needs to deploy the connection relation between the board card and the board card in the respective driving program, so that the expandability and maintainability of the board card arranged in the communication equipment are low.
Disclosure of Invention
The method, the device, the equipment and the storage medium for determining the connection relation can improve the expandability and maintainability of the configuration board card in the communication equipment.
In a first aspect, a method for determining a connection relationship is provided, the method comprising:
determining a first board slot interface preconfigured by a first board card from a mapping relation library between the preconfigured board card and hardware;
when the interface information of the second board card does not comprise the second board slot interface, determining whether the first board slot interface and the third board card have a connection relation or not;
and when the interface information of the second board card does not comprise the second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, determining the first board slot interface as the second board slot interface of the second board card, and obtaining the connection relation between the first board slot interface and the second board card.
In one possible implementation, the method further includes:
when the interface information of the second board card comprises the second board slot interface, establishing a connection relation between the first board slot interface and the second board slot interface.
In one possible implementation, the method further includes:
determining a third board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
and establishing a connection relation between the third plate slot interface and the second plate slot interface.
In one possible implementation, the method further includes:
when the interface information of the second board card does not comprise the second board slot interface and the first board slot interface has a connection relation with the third board card, determining the first board slot interface as the second board slot interface of the second board card according to the pre-built board card slot interface type database and the pre-built slot interface interconnection relation library, and obtaining the connection relation between the first board slot interface and the second board card.
In one possible implementation, the method further includes:
determining a third board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
and when the connection information of the third board slot interface does not comprise the connection relation between the third board slot interface and the third board card, establishing the connection relation between the third board slot interface and the second board slot interface.
In a second aspect, there is provided an apparatus for connection relation determination, the apparatus comprising:
the first determining module is used for determining a first board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
the relation determining module is used for determining whether the first board slot interface and the third board card have a connection relation or not when the interface information of the second board card does not comprise the second board slot interface;
and the second determining module is used for determining the first board slot interface as the second board slot interface of the second board card when the interface information of the second board card does not comprise the second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, so as to obtain the connection relation between the first board slot interface and the second board card.
In one possible implementation, the apparatus further includes a setup module;
the establishing module is used for establishing the connection relation between the first board slot interface and the second board slot interface when the interface information of the second board card comprises the second board slot interface.
In one possible implementation manner, the first determining module is further configured to determine a third board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
the establishing module is also used for establishing the connection relation between the third plate slot interface and the second plate slot interface.
In one possible implementation manner, the second determining module is further configured to determine, when the interface information of the second board card does not include the second board slot interface and the first board slot interface has a connection relationship with the third board card, the first board slot interface as the second board slot interface of the second board card according to the pre-built board card slot interface type database and the pre-built interconnection relationship library of the slot interfaces, so as to obtain the connection relationship between the first board slot interface and the second board card.
In one possible implementation of the present invention,
the first determining module is further used for determining a third board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
the establishing module is further configured to establish a connection relationship between the third board slot interface and the second board slot interface when the connection information of the third board slot interface does not include the connection relationship between the third board slot interface and the third board card.
In a third aspect, there is provided an electronic device, the device comprising: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements the method as in the first aspect or any of the possible implementations of the first aspect.
In a fourth aspect, there is provided a computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method as in the first aspect or any of the possible implementations of the first aspect.
Determining a first board slot interface preconfigured by a first board card through a mapping relation library between the preconfigured board card and hardware based on the provided connection relation determining method, device, equipment and storage medium; when the interface information of the second board card does not comprise the second board slot interface, determining whether the first board slot interface and the third board card have a connection relation or not; when the interface information of the second board card does not comprise the second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, the first board slot interface is determined to be the second board slot interface of the second board card, the connection relation between the first board slot interface and the second board card is obtained, and the expandability and maintainability of configuration board cards in the communication equipment are improved.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are needed to be used in the embodiments of the present invention will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 is a flow chart of a method for determining connection relation according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for determining a connection relationship according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for determining a connection relationship according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
There are various communication devices such as a program-controlled telephone exchange, a router, an exchange, a wireless base station, and the like.
A communication device typically includes one or more subracks, each subrack having one or more board card modules. The management software module for a communication device is often referred to as a device management subsystem, which is an important subsystem of the overall communication device software.
The device management subsystem is capable of establishing a software map of hardware resources and providing an interface to other software modules. Other software modules may utilize the interface to obtain resource information of the communication device and utilize the information to perform interoperation functions with the hardware.
The software mapping module can complete the software mapping of the connection relation between the boards. The connection relationship of the boards on the boards of the communication device can be varied. Many times, the board is unchanged, and only the different connection modes among the boards are changed to form a different board. This mapping may be used by hardware drivers and other software modules to accomplish the implementation of various communication functions.
For example, when the system needs to configure an interconnection interface of one board card, another board card needs to be obtained from the software mapping module and the corresponding configuration is completed, so as to ensure that the board cards can communicate normally.
Another important task of software mapping is to map all external connection interfaces, including interfaces inside the system and interfaces outside the system, against board hardware, and to map the user name and user index of the interfaces with the hardware index to each other.
In the related art, software mapping modules of hardware resources in a device management subsystem on a communication device are all dispersed in different board card driving modules, and software mapping of the hardware resources is realized only for one hardware board card or a series of hardware board cards with small hardware differences. Thus, there is essentially no explicit independent implementation of the connection relationships between boards, essentially all solidified in the code of the board hardware. There is a code corresponding to each connection. Whereas the hardware external connection interface mapping for the board is typically also distributed among the interface-related hardware drivers. The above-mentioned connection relations between boards are all solidified in the running program of the boards, which results in poor expandability and maintainability of the boards, and meanwhile, also results in poor portability and adaptability of the boards.
Therefore, the embodiment of the invention provides a method, a device, equipment and a storage medium for determining a connection relation, which can improve the expandability and maintainability of configuring a board card in communication equipment.
In order to facilitate understanding of the embodiments of the present invention, a method for determining a connection relationship provided by the embodiments of the present invention will be described in detail.
Fig. 1 is a flowchart of a method for determining a connection relationship according to an embodiment of the present invention.
As shown in fig. 1, a method for determining a connection relationship according to an embodiment of the present invention may include:
s101: and determining a first board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware.
The first board card may be a device motherboard in the communication device, i.e. a core carrier managed in the communication device. Hardware refers to hardware components included in the board, such as board slot interfaces, and the like. The mapping relation library between the board card and the hardware comprises board slot interfaces corresponding to the board card. And determining a first board slot interface of the first board card from a mapping relation library between the pre-built board card and hardware.
S102: and when the interface information of the second board card does not comprise the second board slot interface, determining whether the first board slot interface and the third board card have a connection relation.
And acquiring the interface information of the second board card from the board card database through the board card identification. The second board card refers to a board card which needs to establish connection with the first board card. When the interface information of the second board card does not include the second board slot interface, it is also required to determine whether the first board slot interface has a connection relationship with the third board card. When the first board slot interface and the third board card have a connection relationship, the connection relationship between the first board slot interface and the second board card cannot be established.
S103: and when the interface information of the second board card does not comprise the second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, determining the first board slot interface as the second board slot interface of the second board card, and obtaining the connection relation between the first board slot interface and the second board card.
When the interface information of the second board card does not include the second board slot interface, the connection information of the first board slot interface in the first board card can be obtained from the board card database. For example, the connection information of the first board slot interface may be obtained from the board card database through the board card identifier of the first board card and the interface code corresponding to the first board slot interface. When the connection information of the first board slot interface does not include the connection relation between the first board slot interface and the third board card, the first board slot interface can establish the connection relation with the second board card. And determining the first board slot interface as a second board slot interface of the second board card, and obtaining the connection relation between the first board slot interface and the second board card, namely establishing the connection relation between the first board card and the second board card.
In some embodiments, the second board may also be the first board. When the second board card is the first board card, the first board slot interface may be a preconfigured interface, which is not yet configured on the first board card. Under the condition that the second board slot interface is not arranged in the first board card and the first board slot interface is not connected with other board cards, the first board slot interface is determined to be the board slot interface of the first board card, and the connection relation between the first board slot interface on the first board card and the other board cards is established.
When the interface information of the second board card comprises a second board slot interface, and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, the connection relation between the first board slot interface and the second board slot interface can be directly established, and then the connection relation between the first board card and the second board card can be determined.
In some embodiments, a plurality of board slot interfaces of the first board card may be used to establish a connection relationship. The connection relation between the first board slot interface and the second board slot interface is established, the third board slot interface of the first board card can be obtained again, and the connection relation between the third board slot interface and the second board slot interface is established.
In some embodiments, when the interface information of the second board card does not include the second board slot interface and the first board slot interface has a connection relationship with the third board card, determining the first board slot interface as the second board slot interface of the second board card according to the pre-built board card slot interface type database and the pre-built interconnection relationship library of the slot interfaces, so as to obtain the connection relationship between the first board slot interface and the second board card.
In some embodiments, the preconfigured third board slot interface of the first board card is determined from a library of mapping relationships between pre-constructed board cards and hardware. And when the connection information of the third board slot interface does not comprise the connection relation between the third board slot interface and the third board card, establishing the connection relation between the third board slot interface and the second board slot interface.
According to the method for determining the connection relation, the first board slot interface preconfigured by the first board card is determined through a mapping relation library between the preconfigured board card and hardware; when the interface information of the second board card does not comprise the second board slot interface, determining whether the first board slot interface and the third board card have a connection relation or not; when the interface information of the second board card does not comprise the second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, the first board slot interface is determined to be the second board slot interface of the second board card, the connection relation between the first board slot interface and the second board card is obtained, and the expandability and maintainability of configuration board cards in the communication equipment are improved.
In some embodiments, different boards are interconnected by a board slot interface. The card slot interface is generally composed of a plurality of connectors. The same card slot interface physically behaves as a container mouth, a receiving mouth. The nano-portal may generally lack several connectors. Each connector will contain several hardware board external interfaces.
And reading the board slot interface type information in the preconfigured board card slot interface type set, and establishing a board card slot interface type database according to the board slot interface type information.
Specifically, the board slot interface information includes information such as a connector type index number, a type name, a connection port type number, a connection port type index number, a name, and a port number.
As one example, { connector type index number, type name, number of connection port type categories, board card slot interface type database may be the following information:
[ { connection port type index number, name, port number },
{ connection Port type index number, name, port number }, … ]
}
The interconnection relation library of the slot interface may include the following information:
{ Board card socket interface type index number, name, connector type number, [
{ connector type index number 1, whether a connector allows a miss, number },
{ connector type index number 2, whether the connector allows deletion, number },
]}
reading slot interface interconnection information in a preconfigured board card slot interface type set, and establishing a board card slot interface type database according to the board slot interface type information.
As one example, the slot interface interconnect information includes: hardware board type index number, hardware board type name, board slot interface serial number, etc.
The board slot interface type database includes the following information:
{ hardware Board type index number, hardware Board type name, [
{0 (board slot interface number, if the board needs to be inserted into other board, number 0),
board card slot interface type index number, whether container mouth [ is
{0 (connector serial number), whether missing, [0 ] port corresponds to the card external hardware interface identifier,
port No. 1 corresponds to the card external hardware interface identification, … ],
{1 (connector serial number), whether missing, [0 ] port corresponds to the card external hardware interface identifier,
port No. 1 corresponds to the card external hardware interface identification, … ],
]},
{1, board card socket type index number, whether Container mouth, [ Provided is a card socket type index number
{0, whether missing, [0 ] port corresponds to the card external hardware interface identifier,
port No. 1 corresponds to the card external hardware interface identification, … ],
{1, whether missing, [0 ] port corresponds to the card external hardware interface identifier,
port No. 1 corresponds to the card external hardware interface identification, … ],
]},
]}
fig. 2 is a flowchart of a method for determining a connection relationship according to an embodiment of the present invention.
As shown in fig. 2, the method for determining a connection relationship according to the embodiment of the present invention may include:
s201: reading the preconfigured board card slot interface type set and establishing a board card slot interface type library.
S202: reading a preset board card type interconnection slot interface set, and establishing a board card type interconnection slot interface library.
S203: and reading the motherboard hardware, obtaining the type of the 2-slot Ethernet motherboard hardware, and creating a software map of the 2-slot Ethernet motherboard hardware.
S204: the first board slot interface preconfigured in the motherboard hardware is read.
S205: whether a board slot interface is present. If yes, executing S206; if not, S208 is performed.
S206: a software map of the board slot interface is created.
S207: and reading the next board slot interface preconfigured by the motherboard hardware. S205 is performed.
S208: and taking the first board slot interface mapped by the motherboard software and setting the first board slot interface as the current board slot interface.
S209: and reading whether hardware of the current board slot interface exists or not. If yes, executing S210; if not, S212 is performed.
S210: the read card hardware type may be an electronic card. And creating a software mapping corresponding to the hardware board card software mapping according to the hardware type, and creating a software mapping of the hardware board card slot interface. And creating a connection relation software mapping of the hardware board clamping board slot interface and the motherboard board slot interface.
S211: the next board slot interface mapped by the motherboard software is fetched, and S209 is executed.
S212: and the mapping relation is built.
After the connection relation of the board card slot interfaces is established, software mapping of the hardware interface connection relation between different board cards can be established through the association relation of the board card slot interfaces and the hardware board card external interfaces. And other software modules can acquire the connection relation of the hardware components by using the mapping, so as to complete corresponding functions.
In this example, after the board-card relationship is established, whether the interface of the switching SOC chip is connected to the electrical port or the optical port can be determined by the connection relationship of the hardware component, and the correspondence relationship between the interface of the hardware chip and the external interface is specified. The establishment of the mapping relation only needs one code, and the portability and the expandability of the code are very strong, so that a separate code is not needed for each piece of hardware. The code and the hardware are in a tightly coupled relation, so that the workload is greatly reduced, the portability and the expandability of the software are enhanced, and the time for stabilizing and debugging the software is reduced.
Fig. 3 is a schematic structural diagram of a device for determining a connection relationship according to an embodiment of the present invention.
As shown in fig. 3, the apparatus for determining a connection relationship provided in the embodiment of the present invention may include: a first determination module 301, a relationship determination module 302, and a second determination module 303.
The first determining module 301 is configured to determine a first board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
the relationship determining module 302 is configured to determine whether the first board slot interface and the third board card have a connection relationship when the interface information of the second board card does not include the second board slot interface;
and the second determining module 303 is configured to determine the first board slot interface as the second board slot interface of the second board card when the interface information of the second board card does not include the second board slot interface and the connection information of the first board slot interface does not include the connection relationship between the first board slot interface and the third board card, so as to obtain the connection relationship between the first board slot interface and the second board card.
Optionally, in some embodiments of the present invention, the apparatus further includes a setup module;
the establishing module is used for establishing the connection relation between the first board slot interface and the second board slot interface when the interface information of the second board card comprises the second board slot interface.
Optionally, in some embodiments of the present invention, the first determining module 301 is further configured to determine a third board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
the establishing module is also used for establishing the connection relation between the third plate slot interface and the second plate slot interface.
Optionally, in some embodiments of the present invention, the second determining module 303 is further configured to determine, when the interface information of the second board card does not include the second board slot interface and the first board slot interface has a connection relationship with the third board card, the first board slot interface as the second board slot interface of the second board card according to the pre-built board card slot interface type database and the pre-built interconnection relationship library of the slot interfaces, so as to obtain the connection relationship between the first board slot interface and the second board card.
Alternatively, in some embodiments of the invention,
the first determining module 301 is further configured to determine a third board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
the establishing module is further configured to establish a connection relationship between the third board slot interface and the second board slot interface when the connection information of the third board slot interface does not include the connection relationship between the third board slot interface and the third board card.
The device for determining the connection relation provided by the embodiment of the invention is used for determining a first board slot interface preconfigured by a first board card from a mapping relation library between the preconfigured board card and hardware through a first determining module; the relation determining module is used for determining whether the first board slot interface and the third board card have a connection relation or not when the interface information of the second board card does not comprise the second board slot interface; and the second determining module is used for determining the first board slot interface as the second board slot interface of the second board card when the interface information of the second board card does not comprise the second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, so that the connection relation between the first board slot interface and the second board card is obtained, and the expandability and maintainability of the configuration board card in the communication equipment are improved.
The road condition determining device provided by the embodiment of the invention executes each step in the method shown in fig. 1 or fig. 2, and can achieve the aim of improving the expandability and maintainability of configuring the board card in the communication equipment. For brevity, the technical effects of (a) are not described in detail.
Fig. 4 shows a schematic hardware structure of an electronic device according to an embodiment of the present invention.
A processor 401 may be included in an electronic device as well as a memory 402 in which computer program instructions are stored.
In particular, the processor 401 described above may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. Memory 402 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement the method of determining the connection relation of any one of the embodiments shown in fig. 1 or fig. 2.
In one example, the electronic device may also include a communication interface 403 and a bus 410. As shown in fig. 4, the processor 401, the memory 402, and the communication interface 403 are connected by a bus 410 and perform communication with each other.
The communication interface 403 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present invention.
Bus 410 includes hardware, software, or both, coupling components of the electronic device to one another. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 410 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
The electronic device may execute the method for determining the connection relationship in the embodiment of the present invention, thereby implementing the method for determining the connection relationship described in connection with fig. 1 or fig. 2.
In addition, in combination with the method for determining the connection relationship in the above embodiment, the embodiment of the present invention may be implemented by providing a computer storage medium. The computer storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement a method of connection relationship determination in any of the above embodiments.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (10)

1. A method of connection determination, the method comprising:
determining a first board slot interface preconfigured by a first board card from a mapping relation library between the preconfigured board card and hardware;
when the interface information of the second board card does not comprise the second board slot interface, determining whether the first board slot interface and the third board card have a connection relation or not;
and when the interface information of the second board card does not comprise a second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, determining the first board slot interface as the second board slot interface of the second board card, and obtaining the connection relation between the first board slot interface and the second board card.
2. The method according to claim 1, wherein the method further comprises:
when the interface information of the second board card comprises a second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, the connection relation between the first board slot interface and the second board slot interface is established.
3. The method according to claim 2, wherein the method further comprises:
determining a third board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
and establishing a connection relation between the third plate slot interface and the second plate slot interface.
4. The method according to claim 1, wherein the method further comprises:
and when the interface information of the second board card does not comprise the second board slot interface and the first board slot interface has a connection relation with the third board card, determining the first board slot interface as the second board slot interface of the second board card according to the pre-built board card slot interface type database and the pre-built slot interface interconnection relation library to obtain the connection relation between the first board slot interface and the second board card.
5. The method according to claim 4, wherein the method further comprises:
determining a third board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
and when the connection information of the third board slot interface does not comprise the connection relation between the third board slot interface and the third board card, establishing the connection relation between the third board slot interface and the second board slot interface.
6. An apparatus for determining a connection relationship, the apparatus comprising:
the first determining module is used for determining a first board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
the relation determining module is used for determining whether the first board slot interface and the third board card have a connection relation or not when the interface information of the second board card does not comprise the second board slot interface;
and the second determining module is used for determining the first board slot interface as the second board slot interface of the second board card when the interface information of the second board card does not comprise the second board slot interface and the connection information of the first board slot interface does not comprise the connection relation between the first board slot interface and the third board card, so as to obtain the connection relation between the first board slot interface and the second board card.
7. The apparatus of claim 6, further comprising a setup module;
the establishing module is configured to establish a connection relationship between the first board slot interface and the second board slot interface when the interface information of the second board card includes the second board slot interface and the connection information of the first board slot interface does not include the connection relationship between the first board slot interface and the third board card.
8. The apparatus of claim 7, wherein the first determining module is further configured to determine a third board slot interface preconfigured by the first board card from a mapping relation library between the preconfigured board card and hardware;
the establishing module is further configured to establish a connection relationship between the third board slot interface and the second board slot interface.
9. An electronic device, the device comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the method of any of claims 1-5.
10. A computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of any of claims 1-5.
CN202010337161.5A 2020-04-26 2020-04-26 Method, device, equipment and storage medium for determining connection relation Active CN113553275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010337161.5A CN113553275B (en) 2020-04-26 2020-04-26 Method, device, equipment and storage medium for determining connection relation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010337161.5A CN113553275B (en) 2020-04-26 2020-04-26 Method, device, equipment and storage medium for determining connection relation

Publications (2)

Publication Number Publication Date
CN113553275A CN113553275A (en) 2021-10-26
CN113553275B true CN113553275B (en) 2023-08-15

Family

ID=78129875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010337161.5A Active CN113553275B (en) 2020-04-26 2020-04-26 Method, device, equipment and storage medium for determining connection relation

Country Status (1)

Country Link
CN (1) CN113553275B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704823B1 (en) * 2000-07-20 2004-03-09 International Business Machines Corporation Method and apparatus for dynamic allocation of interrupt lines through interrupt sharing
US6754757B1 (en) * 2000-12-22 2004-06-22 Turin Networks Full mesh interconnect backplane architecture
CN102148751A (en) * 2010-12-16 2011-08-10 福建星网锐捷网络有限公司 Method and device as well as network equipment for managing logical interface
WO2012167422A1 (en) * 2011-06-07 2012-12-13 天津海润恒通高性能计算系统科技有限公司 A universal software radio system peripheral device
CN103516961A (en) * 2013-07-19 2014-01-15 北京淳中视讯科技有限公司 Image processor, preparing method thereof and mother card
CN103559053A (en) * 2013-10-30 2014-02-05 迈普通信技术股份有限公司 Board system and FPGA (Field Programmable Logic Array) online update method of communication interface cards
CN107463523A (en) * 2017-08-17 2017-12-12 迈普通信技术股份有限公司 Communication equipment and extension neck multiplexing method
CN109634678A (en) * 2019-01-07 2019-04-16 烽火通信科技股份有限公司 A kind of method and system for flexibly supporting a variety of boards
CN109857684A (en) * 2019-01-04 2019-06-07 烽火通信科技股份有限公司 The device, method and system of communication device board card slot bit address and type identification

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704823B1 (en) * 2000-07-20 2004-03-09 International Business Machines Corporation Method and apparatus for dynamic allocation of interrupt lines through interrupt sharing
US6754757B1 (en) * 2000-12-22 2004-06-22 Turin Networks Full mesh interconnect backplane architecture
CN102148751A (en) * 2010-12-16 2011-08-10 福建星网锐捷网络有限公司 Method and device as well as network equipment for managing logical interface
WO2012167422A1 (en) * 2011-06-07 2012-12-13 天津海润恒通高性能计算系统科技有限公司 A universal software radio system peripheral device
CN103516961A (en) * 2013-07-19 2014-01-15 北京淳中视讯科技有限公司 Image processor, preparing method thereof and mother card
CN103559053A (en) * 2013-10-30 2014-02-05 迈普通信技术股份有限公司 Board system and FPGA (Field Programmable Logic Array) online update method of communication interface cards
CN107463523A (en) * 2017-08-17 2017-12-12 迈普通信技术股份有限公司 Communication equipment and extension neck multiplexing method
CN109857684A (en) * 2019-01-04 2019-06-07 烽火通信科技股份有限公司 The device, method and system of communication device board card slot bit address and type identification
CN109634678A (en) * 2019-01-07 2019-04-16 烽火通信科技股份有限公司 A kind of method and system for flexibly supporting a variety of boards

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于VxWorks操作系统的PCI设备驱动程序开发;常明志;电脑开发与应用(第第7期期);50-52 *

Also Published As

Publication number Publication date
CN113553275A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN110855471B (en) Port mapping method, device and equipment
CN109408309B (en) Multi-terminal testing method and device
CN111142885B (en) eSIM equipment management method, device, equipment and storage medium
CN113553275B (en) Method, device, equipment and storage medium for determining connection relation
CN112231251B (en) Board card slot identification method and device, communication equipment and readable storage medium
CN109491909A (en) A kind of CPLD refreshes verification method, device, terminal and storage medium
CN105246132A (en) Parameter matching method and device for network access point
US10165390B2 (en) Methods, systems, and computer readable media for management of passive network taps using radio frequency identification (RFID)
CN116820865A (en) Board card testing method, device, system and equipment
CN113553276B (en) Method, device, system and storage medium for determining connection relation
CN114071464B (en) Private network implementation method, device and equipment based on 5G message and storage medium
CN111131454B (en) Internet of things equipment flow analysis device based on USRP
CN112988407B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN113472611A (en) Method and device for acquiring WiFi signal strength and readable storage medium
CN108064069B (en) Method, medium and device for determining unique identifier of WiFi sub-network
CN112187568B (en) Message transmission method, device and system
CN113824621B (en) CAN communication method based on signals and CAN controller
CN115914096B (en) Method for realizing virtual Mi-Fi, electronic device and storage medium
CN112860663B (en) System configuration method, device, equipment and storage medium
CN114500688B (en) Method, device, terminal and storage medium for identifying equipment protocol
CN115695265B (en) Automatic cycle power-on and power-off testing method and equipment for switch and storage medium
CN117194388B (en) Data management method, device, electronic equipment and storage medium
CN108923955B (en) Interface configuration method and service card
CN116775538A (en) File transmission method, device, equipment, system, medium and product
CN112162730A (en) DSP software design method for realizing multifunctional CAN bus communication

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