Board management method and device and communication board

文档序号:1556512 发布日期:2020-01-21 浏览:10次 中文

阅读说明:本技术 板卡管理方法、装置及通信板卡 (Board management method and device and communication board ) 是由 王茂松 杜远锋 于 2019-10-12 设计创作,主要内容包括:本申请提供一种板卡管理方法、装置及通信板卡,涉及数据通信技术领域。该方法包括:当通信板卡插入到槽位时,获取通信板卡所在槽位的通道标识信息;根据通道标识信息与板卡模式的预设关联关系,确定与通道标识信息对应的板卡模式作为目标工作模式,板卡模式包括业务卡模式或交换卡模式;控制通信板卡以目标工作模式运行。本方案能够减少板卡的种类,降低开发和生产成本;同时能够改善板卡使用的灵活性,从而使得板卡的使用和运维更简单。(The application provides a board management method, a board management device and a communication board, and relates to the technical field of data communication. The method comprises the following steps: when the communication board card is inserted into the slot position, channel identification information of the slot position where the communication board card is located is obtained; determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode; and controlling the communication board card to operate in a target working mode. The scheme can reduce the types of the board cards and reduce the development and production cost; meanwhile, the flexibility of the use of the board card can be improved, so that the use, operation and maintenance of the board card are simpler.)

1. A method for managing a card, the method comprising:

when the communication board card is inserted into the slot position, channel identification information of the slot position where the communication board card is located is obtained;

determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a business card mode or a switch card mode;

and controlling the communication board card to operate in the target working mode.

2. The method of claim 1, wherein controlling the communication board to operate in the target operating mode comprises:

when the target working mode is the exchange card mode, controlling the communication board card to operate as an exchange card;

and when the target working mode is the service card mode, controlling the communication board card to operate as a service card.

3. The method of claim 2, wherein controlling the communication board to operate as a switch card comprises:

acquiring a first configuration file corresponding to the exchange card mode based on the incidence relation between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card to operate as an exchange card when operating;

and sending the first configuration file to the communication board card so that the communication board card runs the first configuration file and runs with a switch card.

4. The method of claim 2, wherein controlling the communication board to operate as a traffic card comprises:

acquiring a second configuration file corresponding to the service card mode based on the incidence relation between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card to operate as a service card when operating;

and sending the second configuration file to the communication board card so that the communication board card runs the second configuration file and runs with a service card.

5. The method of claim 1, wherein controlling the communication board to operate in the target operating mode comprises:

and when the communication board card stores the configuration file corresponding to the target working mode, controlling the communication board card to operate the configuration file corresponding to the target working mode so as to enable the communication board card to operate in the target working mode.

6. The method according to claim 1, wherein before obtaining the channel identification information of the slot in which the communication board card is located, the method further comprises:

and acquiring identity information of the communication board card, wherein the identity information comprises content indicating that the communication board card supports the exchange card mode and the service card mode.

7. The utility model provides a board management device which characterized in that, board management device includes:

the information acquisition unit is used for acquiring channel identification information of the slot position where the communication board card is located when the communication board card is inserted into the slot position;

the mode determining unit is used for determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode;

and the operation control unit is used for controlling the communication board card to operate in the target working mode.

8. The board management device according to claim 7, wherein the operation control unit is further configured to:

when the target working mode is the exchange card mode, controlling the communication board card to operate as an exchange card;

and when the target working mode is the service card mode, controlling the communication board card to operate as a service card.

9. The board management device according to claim 8, wherein the operation control unit is further configured to:

acquiring a first configuration file corresponding to the exchange card mode based on the incidence relation between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card to operate as an exchange card when operating;

and sending the first configuration file to the communication board card so that the communication board card runs the first configuration file and runs with a switch card.

10. The board management device according to claim 8, wherein the operation control unit is further configured to:

acquiring a second configuration file corresponding to the service card mode based on the incidence relation between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card to operate as a service card when operating;

and sending the second configuration file to the communication board card so that the communication board card runs the second configuration file and runs with a service card.

11. The board management device according to claim 7, wherein the operation control unit is further configured to:

and when the communication board card stores the configuration file corresponding to the target working mode, controlling the communication board card to operate the configuration file corresponding to the target working mode so as to enable the communication board card to operate in the target working mode.

12. The board management device according to claim 7, wherein before the information obtaining unit obtains the channel identifier information of the channel of the slot in which the communication board is located, the information obtaining unit is further configured to obtain identity information of the communication board, where the identity information includes content indicating that the communication board supports the switch card mode and the service card mode.

13. A communication board card is characterized by comprising a processor and a memory, wherein the working mode of the communication board card comprises an exchange card mode and a service card mode;

when the communication board card is inserted into a slot position of communication equipment for working in the exchange card mode, the processor acquires a first configuration file corresponding to the exchange card mode from the communication equipment or the memory and runs the first configuration file so that the communication board card runs as an exchange card;

when the communication board card is inserted into the slot position of the communication equipment for working in the service card mode, the processor acquires a second configuration file corresponding to the service card mode from the communication equipment or the memory, and runs the second configuration file, so that the communication board card runs as a service card.

Technical Field

The invention relates to the technical field of data communication, in particular to a board management method, a board management device and a communication board.

Background

In a rack-mount communication device, a master card, a switch card, and a service card are typically included. The main control card is used for configuring and managing the communication equipment; the exchange card is used for forwarding data between two or more service cards in a cross-card mode; the service card is used for providing a service function interface and is responsible for accessing, processing and forwarding the data service of the communication equipment. The master control card is typically first started and run, and then the switch card and the service card in the communication device are identified, loaded and run. At present, an exchange card and a service card need to be accessed into communication equipment through different card slots, and if the exchange card and the service card are inserted into wrong slot positions, normal operation cannot be performed, so that a manager needs to check the working modes of the card and the slot positions before the communication equipment inserts the card, and operation and maintenance of the card are complex.

Disclosure of Invention

The application provides a board card management method and device and a communication board card, which can solve the problem that the operation and maintenance management of the board card is complex.

In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:

in a first aspect, an embodiment of the present application provides a card management method, where the method includes:

when the communication board card is inserted into the slot position, channel identification information of the slot position where the communication board card is located is obtained; determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a business card mode or a switch card mode; and controlling the communication board card to operate in the target working mode.

In the above embodiment, the communication board card can automatically select the working mode corresponding to the slot position according to the inserted slot position, and the manager does not need to check the working modes of the board card and the slot position in the process of inserting the board card into the communication device, so that the card inserting operation of the manager is simplified, and the problem of complex operation and maintenance management of the board card can be solved.

With reference to the first aspect, in some optional embodiments, controlling the communication board to operate in the target operating mode includes:

when the target working mode is the exchange card mode, controlling the communication board card to operate as an exchange card; and when the target working mode is the service card mode, controlling the communication board card to operate as a service card.

In the above embodiment, the communication board may operate as a switch card or as a service card to correspond to an operation mode of a slot into which the communication board is inserted. In the process of inserting the board card into the communication equipment, the manager does not need to check the corresponding relation between the board card and the exchange card slot position and the service card slot position, and the card inserting operation of the manager in the exchange card slot position and the service card slot position is simplified.

With reference to the first aspect, in some optional embodiments, controlling the communication board to operate as a switch card includes:

acquiring a first configuration file corresponding to the exchange card mode based on the incidence relation between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card to operate as an exchange card when operating; and sending the first configuration file to the communication board card so that the communication board card runs the first configuration file and runs with a switch card.

In the above embodiment, the communication board operates the communication board as a switch board by operating the first configuration file. Based on this, the communication board is convenient to operate in the operation mode of the switch card through the first configuration file.

With reference to the first aspect, in some optional embodiments, controlling the communication board to operate as a service card includes:

acquiring a second configuration file corresponding to the service card mode based on the incidence relation between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card to operate as a service card when operating; and sending the second configuration file to the communication board card so that the communication board card runs the second configuration file and runs with a service card.

In the above embodiment, the communication board operates the service card by operating the second configuration file. Based on the configuration information, the communication board card can run in the running mode of the service card through the second configuration file conveniently.

With reference to the first aspect, in some optional embodiments, controlling the communication board to operate in the target operating mode includes:

and when the communication board card stores the configuration file corresponding to the target working mode, controlling the communication board card to operate the configuration file corresponding to the target working mode so as to enable the communication board card to operate in the target working mode.

In the above embodiment, the configuration file is stored by the communication board, which is beneficial for the communication board to load and operate the configuration file quickly, so that the communication board can operate in the target working mode quickly.

With reference to the first aspect, in some optional implementations, before obtaining the channel identification information of the slot in which the communication board is located, the method further includes:

and acquiring identity information of the communication board card, wherein the identity information comprises content indicating that the communication board card supports the exchange card mode and the service card mode.

In the above embodiment, by obtaining the identity information of the board card, it is convenient to determine that the communication board card is a multiplexing board card supporting the switch card mode and the service card mode by using the identity information.

In a second aspect, an embodiment of the present application further provides a board management device, where the board management device includes:

the information acquisition unit is used for acquiring channel identification information of the slot position where the communication board card is located when the communication board card is inserted into the slot position;

the mode determining unit is used for determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode;

and the operation control unit is used for controlling the communication board card to operate in the target working mode.

With reference to the second aspect, in some optional embodiments, the operation control unit is further configured to:

when the target working mode is the exchange card mode, controlling the communication board card to operate as an exchange card;

and when the target working mode is the service card mode, controlling the communication board card to operate as a service card.

With reference to the second aspect, in some optional embodiments, the operation control unit is further configured to:

acquiring a first configuration file corresponding to the exchange card mode based on the incidence relation between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card to operate as an exchange card when operating; and sending the first configuration file to the communication board card so that the communication board card runs the first configuration file and runs with a switch card.

With reference to the second aspect, in some optional embodiments, the operation control unit is further configured to:

acquiring a second configuration file corresponding to the service card mode based on the incidence relation between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card to operate as a service card when operating; and sending the second configuration file to the communication board card so that the communication board card runs the second configuration file and runs with a service card.

With reference to the second aspect, in some optional embodiments, the operation control unit is further configured to:

and when the communication board card stores the configuration file corresponding to the target working mode, controlling the communication board card to operate the configuration file corresponding to the target working mode so as to enable the communication board card to operate in the target working mode.

With reference to the second aspect, in some optional embodiments, before the information obtaining unit obtains the channel identifier information of the slot where the communication board is located, the information obtaining unit is further configured to obtain identity information of the communication board, where the identity information includes content indicating that the communication board supports the switch card mode and the service card mode.

In a third aspect, an embodiment of the present application further provides a communication board, where the communication board includes a processor and a memory, and a working mode of the communication board includes an exchange card mode and a service card mode;

when the communication board card is inserted into a slot position of communication equipment for working in the exchange card mode, the processor acquires a first configuration file corresponding to the exchange card mode from the communication equipment or the memory and runs the first configuration file so that the communication board card runs as an exchange card;

when the communication board card is inserted into the slot position of the communication equipment for working in the service card mode, the processor acquires a second configuration file corresponding to the service card mode from the communication equipment or the memory, and runs the second configuration file, so that the communication board card runs as a service card.

In a fourth aspect, the present application further provides a communication device, which includes a memory and a processor coupled to each other, wherein the memory stores a computer program, and when the computer program is executed by the processor, the communication device is caused to perform the above method.

In a fifth aspect, the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above method.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below. It is appreciated that the following drawings depict only certain embodiments of the application and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.

Fig. 1 is a schematic structural diagram of a communication device according to an embodiment of the present application.

Fig. 2 is a schematic structural diagram of a communication board card provided in an embodiment of the present application.

Fig. 3 is a schematic flow chart of a board management method according to an embodiment of the present application.

Fig. 4 is a functional block diagram of a board management device according to an embodiment of the present application.

Icon: 10-a communication device; 11-a master control slot position; 12-exchange card slot position; 13-service card slot position; 14-a bus module; 15-a power supply module; 20-a master control card; 30-a communication board card; 31-a processing module; 32-a storage module; 100-board management device; 110-an information acquisition unit; 120-a mode determination unit; 130-running the control unit.

Detailed Description

The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It should be noted that the terms "first," "second," and the like are used merely to distinguish one description from another, and are not intended to indicate or imply relative importance.

Referring to fig. 1, an embodiment of the present application provides a communication device 10. The communication device 10 may include a master slot 11, a switch slot 12, a service slot 13, a bus module 14, a memory, and a processor, and may be configured to perform a board management method described below. The master slot 11, the switch slot 12, the service slot 13, the memory and the processor are electrically connected through one or more communication buses or signal lines in the bus module 14.

In this embodiment, the communication device 10 may include a master card 20. The main control card 20 may include a processor and a memory. Understandably, the processor and the memory in the main control card 20 can be used as the processor and the memory of the communication device 10. Alternatively, the processor and the memory included in the communication device 10 are devices independent from the master card 20.

The processor of the communication device 10 (or master card 20) may be an integrated circuit chip having signal processing capabilities. For example, the Processor may be a Central Processing Unit (CPU), a Network Processor (NP), or the like; the present invention may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, or discrete hardware components, which may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present Application.

The memory of the communication device 10 (or the host card 20) may be, but is not limited to, a random access memory, a read only memory, a programmable read only memory, an erasable programmable read only memory, an electrically erasable programmable read only memory, and the like. In this embodiment, the storage module 32 may be configured to store a first configuration file corresponding to the switch card mode and a second configuration file corresponding to the service card mode. Of course, the storage module 32 may also be used for storing a program, and the processing module 31 executes the program after receiving the execution instruction.

It is understood that the configuration shown in fig. 1 is merely a schematic diagram of the configuration of the communication device 10, and that the communication device 10 may include more or less components than those shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.

Referring to fig. 2, an embodiment of the present application further provides a communication board 30, where the communication board 30 may include a storage module 32 and a processing module 31. The storage module 32 may be the same as or similar to a memory of the communication device 10, and the processing module 31 may be the same as or similar to a processor of the communication device 10, which will not be described herein.

In this embodiment, the operation modes of the communication board 30 include a switch card mode and a service card mode. It is understood that the communication board 30 including the switch card mode and the service card mode is a multiplexing board, and can be used as a switch card and a service card.

For example, when the communication board 30 is inserted into the slot of the communication device 10 for operating in the switch card mode, the processor acquires a first configuration file corresponding to the switch card mode from the communication device 10 or the memory, and executes the first configuration file, so that the communication board 30 operates as a switch card, that is, the communication board 30 is used as a switch card.

For another example, when the communication board 30 is inserted into the slot of the communication device 10 for operating in the service card mode, the processor obtains the second configuration file corresponding to the service card mode from the communication device 10 or the memory, and runs the second configuration file, so that the communication board 30 runs as a service card, that is, the communication board 30 is used as a service card.

In this embodiment, the communication board 30 may cooperate with the communication device 10 to execute or implement the steps of the board management method described below, so as to solve the problem of complex board operation and maintenance management.

Referring to fig. 3, an embodiment of the present application further provides a board management method, which can be applied to the communication device 10. In this embodiment, the board management method may include steps S210 to S230.

Step S210, when the communication board card 30 is inserted into the slot position, obtaining channel identification information of the slot position where the communication board card 30 is located;

step S220, determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode;

step S230, controlling the communication board 30 to operate in the target operating mode.

In the above embodiment, the communication board 30 may automatically select the working mode corresponding to the slot position according to the inserted slot position, and when the manager inserts the board into the communication device 10, the communication board 30 may be inserted into the switch slot position 12 or the service slot position 13 to normally operate, and the working mode of the board and the slot position does not need to be checked, so that the card insertion operation of the manager is simplified, and the problem of complex board operation and maintenance management can be solved.

The steps of the board management method shown in fig. 3 will be described in detail below:

step S210, when the communication board 30 is inserted into the slot, obtaining the channel identification information of the slot where the communication board 30 is located.

In this embodiment, the slot positions for plugging the communication board 30 include a switch slot position 12 and a service slot position 13. Understandably, the channel identification information of the slot and the board card mode (including the switch card mode and the service card mode) of the slot have a relationship in advance. For example, when the slot connected to the bus is the switch card slot 12, the slot may be provided with channel identification information for identifying that the slot is the switch card slot 12. When the slot connected to the bus is the service card slot 13, the slot may be provided with channel identification information for identifying that the slot is the service card slot 13. The channel identification information may be a numeric string, a character string, or the like, and may be set according to actual conditions, as long as the channel identification information can be used to distinguish the switch card slot 12 and the service card slot 13.

Prior to step S210, the method may further comprise: acquiring the identity information of the communication board 30, where the identity information includes content indicating that the communication board 30 supports the switch card mode and the service card mode.

In this embodiment, after the communication board 30 is inserted into the communication device 10, the communication device 10 may further obtain the identity information of the communication board 30. The communication device 10 can confirm whether the communication board 30 is a multiplexing board supporting the switch card mode and the service card mode through the identity information. Understandably, the multiplexing board can be a board capable of supporting multiple modes, for example, the multiplexing board can be a board supporting a switch card mode and a service card mode. If the communication board 30 is a multiplexing board, the steps S210 to S230 are continued.

The identity information of the communication board 30 can be set according to actual conditions, the identity information of the communication board 30 of different types is different, and the identity information is associated with the type of the communication board 30. The types of communication cards 30 include, but are not limited to, switch cards, service cards, master cards 20, multiplexing cards, and the like. The processor of the communication device 10 may determine the board type corresponding to the identity information through the identity information and a preset association relationship between the identity information and the board type.

As an optional implementation manner, if the communication board is not a multiplexing board, the communication device 10 may determine, through the identity information, whether the communication board is a board matched with the slot. That is, the service card slot 13 needs to be matched with the service card, and the service card can continue to operate normally. The switch card slot 12 needs to be matched with the switch card, and the switch card can continue to operate normally. If the service card slot position 13 is plugged with a switch card, the switch card cannot operate normally. Similarly, if the switch slot 12 is plugged with a service card, the service card cannot operate normally.

Step S220, determining, according to a preset association relationship between the channel identification information and a board card mode, the board card mode corresponding to the channel identification information as a target working mode, where the board card mode includes a service card mode or a switch card mode.

In this embodiment, the channel identification information of the slot is associated with the board card mode in advance, so that the processor determines the board card mode supported by the slot through the channel identification information, where the board card mode supported by the slot is the target working mode of the slot.

After the communication board card 30 is inserted into the slot position, the processor may obtain the channel identification information of the slot position, and then determine that the slot position is the service slot position 13 or the exchange slot position 12 according to the association relationship between the channel identification information and the service slot position 13 or the exchange slot position 12.

For example, if the channel identification information is "01" indicating that the slot is the switch slot 12, the channel identification information is "02" indicating that the slot is the service slot 13. After the communication board card 30 is inserted into a slot position, if the channel identification information of the slot position obtained by the processor is "01", the slot position can be determined as the exchange card slot position 12; if the channel identifier information of the slot acquired by the processor is "02", it may be determined that the slot is the service card slot 13. The channel identification information may also be represented by other numbers or characters, which are not limited herein.

Step S230, controlling the communication board 30 to operate in the target operating mode.

In this embodiment, after determining the target operating mode supported by the slot, the communication device 10 controls the communication board 30 to operate in the target operating mode.

For example, step S230 may include: when the target working mode is the switch card mode, controlling the communication board card 30 to operate with the switch card; and when the target working mode is the service card mode, controlling the communication board card 30 to operate with the service card.

In this embodiment, the communication board 30 is set as a multiplexing board capable of supporting the switch card mode and the service card mode, so that the board types can be reduced, and the board product development and management costs can be reduced. In addition, the multiplexing board card can adaptively adjust the working mode according to the inserted slot position to match with the working mode supported by the slot position, which is helpful for improving the working flexibility of the communication device 10 and can improve the problem that the service card and the exchange card cannot normally run due to the inserted slot position being wrong.

In this embodiment, the communication board 30 may implement the functions of the switch card or the service card by running different configuration files. The configuration file may be stored in advance in a memory of the communication device 10 or in a memory of the communication board 30. The communication board 30 may obtain the configuration file from the memory of the communication device 10 or its own memory, and run the configuration file.

As an optional implementation, controlling the communication board 30 to operate as a switch card includes: acquiring a first configuration file corresponding to the exchange card mode based on the association relationship between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card 30 to operate as an exchange card when operating; and sending the first configuration file to the communication board 30, so that the communication board 30 runs the first configuration file and runs with a switch card.

In the present embodiment, a first configuration file is associated with the switch card mode of the slot, and the first configuration file is stored in the memory of the communication device 10. When the communication board 30 acquires the first configuration file, the communication device 10 may transmit the first configuration file in its memory to the communication board 30, or the communication board 30 may actively acquire the first configuration file from the memory of the communication device 10.

Understandably, if the processor determines that the slot supports the card switching mode, the processor loads the first configuration file to the communication board 30 inserted into the slot, so that the communication board 30 operates in the card switching mode by running the first configuration file.

The first configuration file may be created according to an actual situation, and may be used to establish a mapping configuration of a cross-card channel, so as to implement data communication between two (or more) service cards that need to perform data interaction and are connected to the switch card, so that the communication board card 30 operates in an operation manner of the switch card.

In the above embodiment, the communication board 30 may not need to store the first configuration file, so that the storage space of the memory of the communication board 30 can be saved.

As an optional implementation manner, controlling the communication board 30 to operate as a service card includes: acquiring a second configuration file corresponding to the service card mode based on the association relationship between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card 30 to operate as a service card when operating; and sending the second configuration file to the communication board 30, so that the communication board 30 runs the second configuration file and runs with a service card.

In this embodiment, the second configuration file and the service card mode of the slot have a relationship. The second configuration file is stored in a memory of the communication device 10. When the communication board 30 acquires the second configuration file, the communication device 10 may transmit the second configuration file in its memory to the communication board 30, or the communication board 30 may actively acquire the second configuration file from the memory of the communication device 10.

Understandably, if the processor determines that the slot position supports the service card mode, the processor loads a second configuration file to the communication board 30 inserted into the slot position, so that the communication board 30 operates in the service card mode by running the second configuration file.

The second configuration file may be created according to an actual situation, and may be used to complete configuration of an interface and an uplink channel in the communication board 30, so that the communication board 30 operates in a service card operation manner.

In the above embodiment, the communication board 30 may not need to store the second configuration file, so that the storage space of the memory of the communication board 30 can be saved.

As an optional implementation manner, controlling the communication board 30 to operate in the target operating mode includes: when the communication board 30 stores the configuration file corresponding to the target working mode, the communication board 30 is controlled to run the configuration file corresponding to the target working mode, so that the communication board 30 runs in the target working mode.

In the above embodiment, the communication board 30 stores the configuration file, which is helpful for the communication board 30 to load and run the configuration file quickly, so that the communication board 30 can run in the target operating mode quickly.

Referring to fig. 1 again, in this embodiment, the communication device 10 may further include a power supply module 15. The power supply module 15 may include, but is not limited to, a switching power supply, a battery pack, and the like, for supplying power to the communication board 30. Understandably, after the main control card 20 determines that the communication board 30 is matched with the slot position, the main control card 20 can provide power for the communication board 30 through the control power supply module 15, so as to ensure that the communication board 30 normally operates.

In this embodiment, the number of the master cards 20, the number of the communication boards 30, the number of the service card slots 13, and the number of the switch card slots 12 in the communication device 10 may be set according to actual situations. For example, there may be two master control cards 20, and the two master control cards 20 may determine that one is used as the master control card 20 and the other is used as the slave control card 20 through negotiation. The slave main control card 20 may replace the master main control card 20 when the master main control card 20 fails or when the master main control card 20 has a large load, so as to improve the reliability of the communication device 10.

To facilitate understanding of the implementation flow of the board management method, the following describes an example of the operation flow of the communication device 10 with reference to fig. 1:

for example, assuming that the communication device 10 includes two master cards 20, and the bus module 14 is disposed on the backplane, after the communication device 10 is powered on, the master card 20 in the master slot 11 is started, and the master-slave negotiation is completed during the starting process. That is, one master card 20 is a master system control unit, and the other master card 20 is a slave system control unit, for example, the master card 20 in master slot a may be used as the master system control unit, and the master card 20 in master slot B may be used as the slave system control unit. The main system control unit reads the content of the model of the communication device 10 through the bus module 14 to judge the current device model, complete the corresponding configuration, and generate the mapping relationship between the bus channel number and the slot position.

When the communication board 30 is a multiplexing board and is plugged into the slot, and the communication board 30 is started, the communication board can communicate with the main system control unit through the bus module 14, and then report the fixed code and the extended attribute content (the fixed code and the extended attribute content can be understood as the identity information of the board) of the communication board to the main system control unit.

And the main system control unit identifies and judges the content after receiving the fixed code and the extended attribute content of the multiplexing board card. For example, if the extended attribute includes attributes of the switch card capability and the service card capability, the main system control unit may determine that the multiplexing board card is located in the switch card slot 12 or the service card slot 13 according to a channel number (identification information of a channel) reported by the multiplexing board card. In fig. 1, the switch card slot 12 includes a switch card slot a and a switch card slot B, and the service card slot 13 includes a service card slot a and a service card slot B. If the multiplexing board card is located in the exchange card slot 12, the working mode of the exchange card is sent to the communication board card 30; and if the multiplexing board card is positioned in the service card slot position 13, the working mode of the service card is sent to the communication board card 30.

The processor of the main control card 20 may perform power-on loading and configuration of the communication board card 30 according to the operation mode of the extended attribute. If the working mode is the switch card mode, the processor loads the configuration file according to the switch card mode to establish configurations such as mapping configuration of a cross-card channel for the communication board card 30. If the working mode is the business card mode, the processor loads the configuration file according to the business card mode to complete the configuration of the interface, the uplink channel and the like.

Referring to fig. 4, an embodiment of the present application further provides a card management device 100. The board management apparatus 100 includes at least one software functional module, which may be stored in a memory in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the communication device 10. The processor is used for executing executable modules stored in the storage module 32, such as software functional modules and computer programs included in the board management device 100.

In this embodiment, the board management apparatus 100 may include an information obtaining unit 110, a mode determining unit 120, and an operation control unit 130.

The information obtaining unit 110 is configured to obtain channel identification information of a slot where the communication board 30 is located when the communication board 30 is inserted into the slot.

The mode determining unit 120 is configured to determine, according to a preset association relationship between the channel identifier information and a board card mode, that the board card mode corresponding to the channel identifier information is used as a target working mode, where the board card mode includes a service card mode or a switch card mode.

And an operation control unit 130, configured to control the communication board 30 to operate in the target operating mode.

Optionally, the operation control unit 130 may be further configured to: when the target working mode is the switch card mode, controlling the communication board card 30 to operate as a switch card; and when the target working mode is the service card mode, controlling the communication board card 30 to operate as a service card.

Optionally, the operation control unit 130 is further configured to: acquiring a first configuration file corresponding to the exchange card mode based on the association relationship between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card 30 to operate as an exchange card when operating; and sending the first configuration file to the communication board 30, so that the communication board 30 runs the first configuration file and runs with a switch card.

Optionally, the operation control unit 130 is further configured to: acquiring a second configuration file corresponding to the service card mode based on the association relationship between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card 30 to operate as a service card when operating; and sending the second configuration file to the communication board 30, so that the communication board 30 runs the second configuration file and runs with a service card.

Optionally, the operation control unit 130 is further configured to: when the communication board 30 stores the configuration file corresponding to the target working mode, the communication board 30 is controlled to run the configuration file corresponding to the target working mode, so that the communication board 30 runs in the target working mode.

Before the information obtaining unit 110 obtains the channel identification information of the slot where the communication board 30 is located, the information obtaining unit 110 is further configured to obtain identity information of the communication board 30, where the identity information includes content indicating that the communication board 30 supports the switch card mode and the service card mode.

It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the board management apparatus 100 and the communication device 10 described above may refer to the corresponding processes of each step in the foregoing method, and are not described in detail herein.

The embodiment of the application also provides a computer readable storage medium. The readable storage medium has stored therein a computer program that, when run on a computer, causes the computer to execute the board management method as described in the above embodiments.

From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by hardware, or by software plus a necessary general hardware platform, and based on such understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments of the present application.

In summary, the present application provides a board management method, an apparatus and a communication board. The method comprises the following steps: when the communication board card is inserted into the slot position, channel identification information of the slot position where the communication board card is located is obtained; determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode; and controlling the communication board card to operate in a target working mode. In the scheme, the communication board card can automatically select the working mode corresponding to the slot position according to the inserted slot position, and the manager does not need to check the working modes of the board card and the slot position in the process of inserting the board card into the communication equipment, so that the card inserting operation of the manager is simplified, and the problem of complex operation and maintenance management of the board card can be solved.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus, system, and method may be implemented in other ways. The apparatus, system, and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种随钻声波异步串口信号同步的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!