CN110908943A - Board card automatic adapting method, device, network equipment and storage medium - Google Patents

Board card automatic adapting method, device, network equipment and storage medium Download PDF

Info

Publication number
CN110908943A
CN110908943A CN201911255226.5A CN201911255226A CN110908943A CN 110908943 A CN110908943 A CN 110908943A CN 201911255226 A CN201911255226 A CN 201911255226A CN 110908943 A CN110908943 A CN 110908943A
Authority
CN
China
Prior art keywords
card
service
model
function
board 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.)
Pending
Application number
CN201911255226.5A
Other languages
Chinese (zh)
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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201911255226.5A priority Critical patent/CN110908943A/en
Publication of CN110908943A publication Critical patent/CN110908943A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a board card automatic adaptation method, a board card automatic adaptation device, network equipment and a storage medium. The method is applied to the network equipment and comprises the following steps: acquiring a card ID of a service card inserted into a service card slot; judging whether the self equipment supports the service board card or not according to the card ID; when the self equipment supports the service board card, acquiring a model ID and a function ID corresponding to the card ID; and updating the model ID and the function ID of the service board card into the model ID and the function ID corresponding to the card ID, and loading the service board card. The method judges whether the equipment is the service board card or not by acquiring the card ID of the service board card inserted into the service card slot, and updates the model ID and the function ID of the service board card into the model ID and the function ID corresponding to the card ID when the equipment supports the service board card, so that the whole process does not need manual intervention, the labor input and the cost are greatly reduced, the errors in the manual operation process are reduced, and the defects of the existing board card adapting method are overcome.

Description

Board card automatic adapting method, device, network equipment and storage medium
Technical Field
The application belongs to the technical field of data communication, and particularly relates to a board card automatic adaptation method, a board card automatic adaptation device, network equipment and a storage medium.
Background
At present, network data communication is essential in life, equipment manufacturers produce equipment networks with different models and functions according to network application environments, wherein the equipment networks comprise centralized equipment and distributed equipment, and different functions are realized by inserting service boards with different functions. Part of the boards can be multiplexed on different devices, but the multiplexed boards need to present different models and functions on different devices, so that the authentication and loading of the multiplexed boards by different devices are performed through the model IDs and the function IDs stored on the multiplexed boards, and in order to distinguish the models and the functions of the same multiplexed board on different devices, the model IDs and the function IDs stored in the multiplexed boards are presented on different devices differently.
In the test environment of an equipment manufacturer, in the process of multiplexing the board cards by a tester, because the models and functions of the same multiplexing board card on different equipment are different, when the obtained model ID and function ID of the multiplexing board card do not conform to the board card which can be authenticated and managed by the current equipment, the model ID and function ID of the corresponding board card are modified by a modification command provided by the equipment, and then the multiplexing board card is authenticated and loaded by restarting the equipment or plugging the board card again. The whole process is complicated to operate, equipment needs to be restarted or the board card needs to be plugged and unplugged, and a large amount of time is consumed; meanwhile, if the number of the board cards needing to be modified is large, a large amount of manpower is consumed by manual modification, and due to excessive human participation factors, errors are easily caused in the process of modifying the codes. Therefore, the current method for adapting the network board consumes a lot of time and labor.
Disclosure of Invention
In view of the above, an object of the present application is to provide a board automatic adapting method, an apparatus, a network device, and a storage medium, so as to solve the problem that the existing network board adapting method consumes a lot of time and labor.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for automatically adapting a board, which is applied to a network device, and the method includes: acquiring a card ID of a service card inserted into a service card slot; judging whether the self equipment supports the service board card or not according to the card ID; when the equipment where the equipment is located is judged to support the service board card, acquiring a model ID and a function ID corresponding to the card ID; and updating the model ID and the function ID of the service board card to the model ID and the function ID corresponding to the card ID, and loading the service board card. In the embodiment of the application, whether the service board card is inserted into the service card slot is judged by obtaining the card ID of the service board card, when the service board card is judged to be supported by equipment, the model ID and the function ID corresponding to the card ID are obtained, the model ID and the function ID of the service board card are updated to the model ID and the function ID corresponding to the card ID, and the service board card is loaded, so that the whole process does not need manual intervention, the labor input and the cost are greatly reduced, the errors in the manual operation process are reduced, and the defects of the existing board card adapting method are overcome.
With reference to a possible implementation manner of the embodiment of the first aspect, before obtaining the card ID of the service card inserted into the service card slot, the method further includes: acquiring the model ID and the function ID of the service board card based on a data channel between a main control board card and the service card slot in the self equipment; and determining that the model ID and the function ID of the service board card do not exist locally. In the embodiment of the application, before the card ID of the service card inserted into the service card slot is acquired, it is required to ensure that the model ID and the function ID of the service card do not exist locally, so as to simplify the loading process and save the cost, wherein when the model ID and the function ID of the service card do not exist locally, the service card can be directly authenticated and loaded.
With reference to a possible implementation manner of the embodiment of the first aspect, the determining that the model ID and the function ID of the service board do not exist locally includes: matching the model ID and the function ID of the service board card with the model ID and the function ID in a product characteristic table of the service board card; and when the matching fails, the model ID and the function ID of the service board card do not exist locally. In the embodiment of the application, whether the model ID and the function ID of the service board card exist locally or not is judged by matching the model ID and the function ID of the service board card with the model ID and the function ID in the product characteristic table, so that the implementation logic is simple, the complexity is low, and the universality is good.
With reference to a possible implementation manner of the embodiment of the first aspect, the acquiring a card ID of a service card inserted into a service card slot includes: matching the model ID and the function ID of the service board card with the model IDs and the function IDs in other product characteristic tables; and when the matching is successful, acquiring the card ID of the service board card based on the other product characteristic tables. In the embodiment of the application, the model ID and the function ID of the service board card are matched with the model ID and the function ID in the characteristic table of other products, and when the matching is hit (successful), the card ID of the corresponding service board card is obtained, so that the card ID does not need to be stored in the service board card, another feasible implementation mode is provided, and the applicability of the equipment is further improved.
With reference to a possible implementation manner of the embodiment of the first aspect, the acquiring a card ID of a service card inserted into a service card slot includes: and acquiring the card ID of the service card based on a data channel between a main control card and the service card slot in the self equipment. In the embodiment of the application, the card ID of the service card is directly acquired based on the data channel between the main control card and the service card slot, so that the service flow can be simplified, and the efficiency is higher.
In a second aspect, an embodiment of the present application further provides an automatic board adapter device, which is applied to a network device, where the device includes: the device comprises a first acquisition module, a judgment module, a second acquisition module and an update loading module; the first acquisition module is used for acquiring the card ID of the service card inserted into the service card slot; the judging module is used for judging whether the network equipment supports the service board card according to the card ID; the second obtaining module is used for obtaining the model ID and the function ID corresponding to the card ID when the judging module judges that the network equipment supports the service board card; and the updating and loading module is used for updating the model ID and the function ID of the service board card into the model ID and the function ID corresponding to the card ID and loading the service board card.
In a third aspect, an embodiment of the present application further provides a network device, including: the service card slot is used for inserting the service card; the main control board card is used for acquiring the card ID of the service board card inserted into the service card slot; the main control board card is also used for judging whether the equipment where the main control board card is located supports the service board card according to the card ID; when the device where the device is located is judged to support the service board card, the device is further used for acquiring the model ID and the function ID corresponding to the card ID; the main control board card is further configured to update the model ID and the function ID of the service board card to the model ID and the function ID corresponding to the card ID, and load the service board card.
With reference to a possible implementation manner of the third aspect, the main control board is further configured to, before obtaining a card ID of a service board inserted into the service card slot, obtain a model ID and a function ID of the service board based on a data channel between the main control board and the service card slot; and determining that the model ID and the function ID of the service board card do not exist locally.
In a fourth aspect, an embodiment of the present application further provides a network device, including: a memory and a processor, the memory and the processor connected; the memory is used for storing programs; the processor is configured to invoke a program stored in the memory to perform the method according to the first aspect embodiment and/or any possible implementation manner of the first aspect embodiment.
In a fifth aspect, embodiments of the present application further provide a storage medium, on which a computer program is stored, where the computer program is executed by a computer to perform a method as provided in the foregoing first aspect and/or any possible implementation manner of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1a shows a schematic structural diagram of a network device according to an embodiment of the present application.
Fig. 1b shows a schematic structural diagram of another network device provided in the embodiment of the present application.
Fig. 2 shows a flow diagram of an automatic board adapting method provided by an embodiment of the present application.
Fig. 3 shows a functional module schematic diagram of an automatic card adapting device provided by an embodiment of the present application.
Fig. 4 shows a block diagram of a network device according to an embodiment of the present application.
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: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
As shown in fig. 1a and fig. 1B, there are two types of network DEVICEs, DEVICE _ a and DEVICE _ B, which are both composed of a master control board and a service board, and as can be seen from fig. 1a, DEVICE _ a supports 1 master control board and 4 service boards. As shown in FIG. 1B, DEVICE _ B supports 1 host card and 8 service cards. The main control card slot is used for inserting the main control board card, the service card slot is used for inserting the service board card, and each service card slot is connected with the main control card slot so as to realize data communication. For example, the service card slot 1, the service card slot 2, the service card slot 3 and the service card slot 4 in fig. 1a are all connected to the host card slot.
The main control board card is responsible for the management of the whole equipment and the loading of the service board card, and the service board card is responsible for different network service functions. The equipment can run when being inserted into the main control board card, but the equipment does not have the related functions of the service board card, and only the service board card is inserted into the corresponding slot, and the service board card is successfully authenticated and loaded by the main control board card, so that the corresponding service can be presented.
In the application process, some service board cards of DEVICE _ a and DEVICE _ B are completely the same in hardware, so that multiplexing can be performed, that is, the multiplexing board card is inserted into the service card slot of DEVICE _ a to realize the function of the corresponding card, and the card is inserted into the service card slot of DEVICE _ B to realize the function of the card. However, the multiplexing of the boards can be realized without simple back-and-forth insertion, and in order to distinguish the models and functions of the same multiplexing board on different devices, the model ID and the function ID stored in the multiplexing board are different on different devices. When the service card slot of the device in fig. 1a or fig. 1b is inserted into the service card, the main control card of the device obtains the model ID and the function ID stored on the service card through the data channel in communication with the service card to perform model identification and function authentication of the service card.
The storage module on the service board card is not lost when power is down, and stores important information of the service board card, such as the model ID and the function ID of the service board card. The model ID and the function ID are represented by the encoding shown in table 1, but other formats of encoding are also applicable to the present application. Table 1 shows the model ID and function ID stored in the memory module on the service card, taking two bytes as an example. The model ID is a display model of the CARD in the equipment, for example, when the model ID is A, the display model of the CARD is CARD _ A, and the model ID is B, the display model of the CARD is CARD _ B; the function ID is used for function authentication of the card by the device.
TABLE 1
Model ID Function ID
0x**** 0x****
Service boards on a device are divided into two categories: a reusable service board card (a multiplexing board card for short) and a non-reusable service board card. The multiplexing board card is a board card that can be multiplexed on different devices, that is, the same board card can be inserted into service card slots of different devices, and the device can complete the identification and authentication of the card, except that the model ID and the function ID stored in the multiplexing board card are different on different devices. For example, in FIG. 1a or FIG. 1B, there is a multiplexing card that can be multiplexed on DEVICE _ A and DEVICE _ B, and the format of the model ID and function ID of the multiplexing card on DEVICE _ A and DEVICE _ B is shown in Table 2.
TABLE 2
Figure BDA0002309673480000071
As can be seen from table 2, since the model IDs and function IDs of different devices are different, even the model IDs and function IDs presented on different devices for the same multiplexer card are different.
The service board card which is not reusable can be used only on the appointed equipment and can not be used on different equipment. Although the device can only be used on the same device, the model ID of the board card can be different because the model of the device can be changed, but the function ID is the same, so the function ID can not be changed. Taking fig. 1a or fig. 1b as an example, there is a non-reusable board card, which can only be used in DEVICE _ a, DEVICE _ a can present different models by modifying the model ID of the DEVICE, such as models DEVICE _ a _1 and DEVICE _ a _2, so that when the non-reusable board card is used in DEVICE _ a, different models are displayed according to the owner DEVICE, and therefore the model ID and function ID in DEVICE _ a are shown in table 3:
TABLE 3
Figure BDA0002309673480000081
As can be seen from table 3, if different models need to be presented on the same device, the model IDs are different, but the function IDs are the same.
In view of the current situation, when the obtained model ID and function ID of the multiplexing board card do not conform to the board card which can be authenticated and managed by the current device, the model ID and function ID of the corresponding board card are modified by a modification command provided by the device, and then the multiplexing board card is authenticated and loaded by restarting the device or unplugging and unplugging the board card again. The whole process is complicated to operate, equipment needs to be restarted or the board card needs to be plugged and unplugged, and a large amount of time is consumed; meanwhile, if the number of the board cards needing to be modified is large, a large amount of manpower is consumed through manual modification, too many human participation factors exist, errors are prone to occur in the process of modifying codes, and the like.
Referring to fig. 2, steps included in a method for automatically adapting a board card applied to a network device according to an embodiment of the present application will be described with reference to fig. 2.
Step S101: and acquiring the card ID of the service card inserted into the service card slot.
When the network equipment identifies that a service board card is inserted into the service card slot of the network equipment, the service board card is authenticated, and the service board card can be normally used only after the authentication is passed and the loading is completed. During authentication, the device can acquire the model ID and the function ID of the service board card inserted into the service card slot based on a data channel between a main control board card in the device and the service card slot; and then judging whether the model ID and the function ID exist locally, if so, performing model identification and function authentication on the card, and completing loading. If not, the card ID of the service card inserted into the service card slot needs to be acquired. That is, when it is determined that the model ID and the function ID of the service board inserted into the service card slot do not exist locally, the card ID of the service board is acquired.
Optionally, determining that the model ID and the function ID of the service board card inserted into the service card slot do not exist locally may be: matching the model ID and the function ID of the service board card with the model ID and the function ID in the product characteristic table of the service board card; when the matching fails, namely the model ID and the function ID of the service board card do not exist in the model ID and the function ID in the product characteristic table of the self, the model ID and the function ID of the service board card do not exist locally; and when the matching is successful, directly performing model identification and function authentication on the service board card, and completing the loading.
When the card ID of the service card inserted into the service card slot is obtained, as an implementation manner, the card ID of the service card may be obtained based on a data channel between the main control card and the service card slot in the device itself. That is, in this embodiment, the card ID of the service board is stored in the storage module of the service board, and the main control board directly obtains the card ID from the service board based on the data channel between the main control board and the service board. In this embodiment, the storage module of the service board stores not only the model ID and the function ID, but also the card ID.
As yet another embodiment, the process may be: matching the model ID and the function ID of the service board card with the model ID and the function ID in other product characteristic tables; and when the matching is successful, acquiring the card ID of the service board card based on other product characteristic tables. In this embodiment, that is, when the device recognizes that the service board is inserted into the service card slot, the device obtains the model ID and the function ID of the service board inserted into the service card slot based on the data channel between the main control board in the device itself and the service card slot, matches the model ID and the function ID of the service board with the model ID and the function ID in the product characteristic table of the device itself, further matches the model ID and the function ID of the service board with the model ID and the function ID in the other product characteristic tables if matching fails, and obtains the card ID of the service board when the model ID and the function ID of the service board are matched in the other product characteristic tables. It should be noted that, in this embodiment, the information stored in the storage module of the service board may not include the card ID.
It should be noted that, in the image file of the device in the embodiment of the present application, there is a product characteristic table that integrates a product characteristic table of the device itself (own product characteristic table) and a product characteristic table from another device (another product characteristic table). This table is integrated into the image files of DEVICE _ a illustrated in fig. 1a and DEVICE _ B illustrated in fig. 1B, and the specific format is as follows:
the product characteristics of DEVICE _ A _1 are as follows:
<DEVICE_TYPE nameId="0x00a1"funId="0x00a1"name="DEVICE_A_1">
<CARD nameId="0x0001"funId="0x0001"cardId="0x0001"name="NAME_A"></CARD>
<CARD nameId="0x0003"funId="0x0003"cardId="0x0002"name="NAME_A_1"></CARD>
</DEVICE_TYPE>
the product characteristics of DEVICE _ A _2 are as follows:
<DEVICE_TYPE nameId="0x00a2"funId="0x00a1"name="DEVICE_A_2">
<CARD nameId="0x0004"funId="0x0003"cardId="0x0002"name="NAME_A_2"></CARD>
</DEVICE_TYPE>
the product characteristics of DEVICE _ B are as follows:
<DEVICE_TYPEnameId="0x000b"funId="0x000b"name="DEVICE_B">
<CARD nameId="0x0002"funId="0x0002"cardId="0x0001"name="NAME_B"></CARD>
</DEVICE_TYPE>
the above description is given by way of example only: the table is integrated in the image files of DEVICE _ a and DEVICE _ B, the DEVICE software judges that the characteristic table of a DEVICE starts with a 'DEVICE _ TYPE' key and ends with a '/DEVICE _ TYPE' key, and judges that the characteristic of a certain service board CARD under the DEVICE starts with a 'CARD' key and ends with a '/CARD' key. The characteristic table of one of the devices contains the model ID of the device: nameId, function ID: funId, type number: name, the characteristic table of a service board card contains the model ID of the card: nameId, function ID: funId, type number: name, and cardId (card ID) indicating the same kind of service card. Of course, the above format is only exemplary, and any changes and modifications can be protected by the present application as long as they are within the scope of the method of the present invention.
For convenience of understanding, when the service board is inserted into the slot of the service card of DEVICE _ a _1, assuming that the model ID of the obtained service board is "0 x 0002" and the function ID is "0 x 0002", matching the model ID and the function ID of the service board with the model ID and the function ID in the product characteristic table (DEVICE _ a _1 product characteristic table) of the service board will fail, matching the model ID and the function ID of the service board with the model ID and the function ID in the other product characteristic table will match the model ID and the function ID of the service board in the DEVICE _ B product characteristic table, and obtaining the card ID of the service board based on the DEVICE _ B product characteristic table will be "0 x 0001".
Step S102: and judging whether the self equipment supports the service board card according to the card ID.
After the card ID of the service board card is obtained, whether the device itself supports the service board card is judged according to the card ID, when the device where the device itself is judged to support the service board card is judged, step S103 is executed, and if not, the process is ended. That is, it is determined whether the card IDs of all the service boards supported by the device itself include the card ID of the service board, if so, the representation supports the service board, and if not, that is, the matching fails, it indicates that the current service board does not support multiplexing, and then the current device does not support the current service board.
If the card IDs (cardid) are the same, it indicates that the current service board card is the same card, that is, the service board card supports multiplexing, and only the model IDs or function IDs presented on different devices are different.
Step S103: and acquiring the model ID and the function ID corresponding to the card ID.
When the self equipment supports the service board card which is currently inserted into the service card slot, the model ID and the function ID corresponding to the card ID are obtained, namely the model ID and the function ID corresponding to the card ID are obtained based on the self product characteristic table. For ease of understanding, returning to the example in step S101, assuming that the currently acquired card ID of the traffic card is "0 x 0001", based on the product characteristic table of DEVICE _ a _1, the model ID (0x0001) and the function ID (0x0001) corresponding to the card ID (0x0001) may be acquired.
Step S104: and updating the model ID and the function ID of the service board card to the model ID and the function ID corresponding to the card ID, and loading the service board card.
After obtaining the model ID and the function ID corresponding to the card ID, the model ID and the function ID of the service board card are updated to the model ID and the function ID corresponding to the card ID, that is, the model ID "0 x 0002" in the original service board card is updated to the model ID "0 x 0002" corresponding to the card ID, the function ID "0 x 0002" in the original service board card is updated to the function ID "0 x 0002" corresponding to the card ID, and the service board card is loaded, that is, the service card is identified and authenticated, and the loading of the card is completed.
After the automatic board card adapting method is adopted, in the operation process of board card multiplexing, when the obtained model ID and function ID of the multiplexing board card do not conform to the board card which can be authenticated and managed by the current equipment, the model ID and the function ID of the corresponding board card do not need to be manually modified manually, and then the authentication and loading of the multiplexing board card are carried out by restarting the equipment or plugging and unplugging the board card again. The whole process does not need manual intervention, greatly reduces the human input and cost, reduces errors in the manual operation process, and overcomes the defects of the existing board card adapting method. In addition, the software has simple logic, low complexity and better universality.
The embodiment of the present application further provides an automatic board card adapting device 100 applied to a network device, as shown in fig. 3. This integrated circuit board automatic adapter 100 includes: a first obtaining module 110, a determining module 120, a second obtaining module 130, and an update loading module 140.
The first obtaining module 110 is configured to obtain a card ID of a service card inserted into a service card slot. The judging module 120 is configured to judge whether the service board card is supported according to the card ID.
A second obtaining module 130, configured to obtain a model ID and a function ID corresponding to the card ID when the determining module 120 determines that the service board card is supported.
An update loading module 140, configured to update the model ID and the function ID of the service board to the model ID and the function ID corresponding to the card ID, and load the service board.
Optionally, the first obtaining module 110 is configured to match the model ID and the function ID of the service board with model IDs and function IDs in other product characteristic tables; and when the matching is successful, acquiring the card ID of the service board card based on the other product characteristic tables. Optionally, the first obtaining module 110 is configured to obtain the card ID of the service card based on a data channel between a main control card and the service card slot in the network device.
Wherein, this integrated circuit board automatic adapter device 100 still includes: the device comprises a third acquisition module and a determination module.
A third obtaining module, configured to obtain the model ID and the function ID of the service board based on a data channel between a main control board in the network device and a service card slot before the first obtaining module 110 obtains the card ID of the service board inserted into the service card slot.
And the determining module is used for determining that the model ID and the function ID of the service board card do not exist locally.
The implementation principle and the generated technical effect of the automatic board card adapting device 100 provided in the embodiment of the present application are the same as those of the foregoing method embodiment, and for brief description, no mention is made in the embodiment of the device, and reference may be made to the corresponding contents in the foregoing method embodiment.
An embodiment of the present application further provides a network device, including: a service card slot and a main control board card. The number of the service card slots is at least one, and each service card slot is used for inserting a service card. Each service card slot is connected with the main control board card to realize communication.
The main control board card is responsible for management of the whole equipment and loading of the service board card, and the service board card is responsible for different network service functions. The equipment can run when being inserted into the main control board card, but the equipment does not have the related functions of the service board card, and only the service board card is inserted into the corresponding slot, and the service board card is successfully authenticated and loaded by the main control board card, so that the corresponding service can be presented.
Specifically, in the embodiment of the present application, the main control board is configured to obtain a card ID of a service board inserted into a service card slot; the device is also used for judging whether the equipment where the device is located supports the service board card according to the card ID; when the device where the device is located is judged to support the service board card, the device is further used for acquiring the model ID and the function ID corresponding to the card ID; and updating the model ID and the function ID of the service board card to the model ID and the function ID corresponding to the card ID, and loading the service board card.
The main control board card is further used for acquiring the model ID and the function ID of the service board card based on a data channel between the main control board card and the service card slot before acquiring the card ID of the service board card inserted into the service card slot; and determining that the model ID and the function ID of the service board card do not exist locally.
Optionally, the master control board is configured to match the model ID and the function ID of the service board with the model ID and the function ID in a product characteristic table of the master control board; and when the matching fails, the model ID and the function ID of the service board card do not exist locally.
Optionally, the main control board is configured to match the model ID and the function ID of the service board with model IDs and function IDs in other product characteristic tables; and when the matching is successful, acquiring the card ID of the service board card based on the other product characteristic tables.
Optionally, the main control board obtains the card ID of the service board based on a data channel between the main control board and the service card slot in the device.
The network device provided in the embodiment of the present application has the same implementation principle and technical effect as those of the foregoing method embodiments, and for the sake of brief description, reference may be made to corresponding contents in the foregoing method embodiments for parts of the device embodiments that are not mentioned.
As shown in fig. 4, fig. 4 is a block diagram illustrating a network device 200 according to an embodiment of the present disclosure. The network device 200 includes: a transceiver 210, a memory 220, a communication bus 230, and a processor 240.
The elements of the transceiver 210, the memory 220, and the processor 240 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses 230 or signal lines. The transceiver 210 is used for transceiving data. The memory 220 is used for storing a computer program, such as a software functional module shown in fig. 3, that is, the board automatic adapter 100. The card auto-adapter 100 includes at least one software functional module, which may be stored in the memory 220 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the network device 200. The processor 240 is configured to execute an executable module stored in the memory 220, such as a software functional module or a computer program included in the card auto-adapter 100. For example, the processor 240 is configured to obtain a card ID of a service card inserted into a service card slot; and is also used for judging whether the self equipment supports the service board card according to the card ID; when the equipment where the equipment is located is judged to support the service board card, acquiring a model ID and a function ID corresponding to the card ID; and updating the model ID and the function ID of the service board card to the model ID and the function ID corresponding to the card ID, and loading the service board card.
The Memory 220 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 240 may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 240 may be any conventional processor or the like.
The network device 200 includes, but is not limited to, a switch, a router, a firewall, and other devices that support plugging and unplugging of a board card.
The embodiment of the present application further provides a non-volatile computer-readable storage medium (hereinafter referred to as a storage medium), where the storage medium stores a computer program, and when the computer program is run by the network device 200, the computer program executes the board card automatic adaptation method shown in the foregoing method embodiment.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, 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 functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An automatic board adapting method is applied to network equipment, and the method comprises the following steps:
acquiring a card ID of a service card inserted into a service card slot;
judging whether the self equipment supports the service board card or not according to the card ID; when the equipment where the equipment is located is judged to support the service board card, acquiring a model ID and a function ID corresponding to the card ID;
and updating the model ID and the function ID of the service board card to the model ID and the function ID corresponding to the card ID, and loading the service board card.
2. The method of claim 1, wherein prior to obtaining the card ID of the service card inserted into the service card slot, the method further comprises:
acquiring the model ID and the function ID of the service board card based on a data channel between a main control board card and the service card slot in the self equipment;
and determining that the model ID and the function ID of the service board card do not exist locally.
3. The method of claim 2, wherein determining that the model ID and the function ID of the service board card do not exist locally comprises:
matching the model ID and the function ID of the service board card with the model ID and the function ID in a product characteristic table of the service board card;
and when the matching fails, the model ID and the function ID of the service board card do not exist locally.
4. The method of claim 2, wherein obtaining the card ID of the service card inserted into the service card slot comprises:
matching the model ID and the function ID of the service board card with the model IDs and the function IDs in other product characteristic tables;
and when the matching is successful, acquiring the card ID of the service board card based on the other product characteristic tables.
5. The method of claim 2, wherein obtaining the card ID of the service card inserted into the service card slot comprises:
and acquiring the card ID of the service card based on a data channel between a main control card and the service card slot in the self equipment.
6. An automatic board adapter device, which is applied to network equipment, the device comprises:
the first acquisition module is used for acquiring the card ID of the service card inserted into the service card slot;
the judging module is used for judging whether the network equipment supports the service board card according to the card ID;
the second obtaining module is used for obtaining the model ID and the function ID corresponding to the card ID when the judging module judges that the network equipment supports the service board card;
and the updating and loading module is used for updating the model ID and the function ID of the service board card into the model ID and the function ID corresponding to the card ID and loading the service board card.
7. A network device, comprising:
the service card slot is used for inserting the service card;
the main control board card is used for acquiring the card ID of the service board card inserted into the service card slot;
the main control board card is also used for judging whether the equipment where the main control board card is located supports the service board card according to the card ID; when the device where the device is located is judged to support the service board card, the device is further used for acquiring the model ID and the function ID corresponding to the card ID;
the main control board card is further configured to update the model ID and the function ID of the service board card to the model ID and the function ID corresponding to the card ID, and load the service board card.
8. The network device of claim 7, wherein the master board card is further configured to: before acquiring a card ID of a service card inserted into the service card slot, acquiring a model ID and a function ID of the service card based on a data channel between the main control card and the service card slot;
and determining that the model ID and the function ID of the service board card do not exist locally.
9. A network device, comprising: a memory and a processor, the memory and the processor connected;
the memory is used for storing programs;
the processor to invoke a program stored in the memory to perform the method of any of claims 1-5.
10. A storage medium having stored thereon a computer program which, when executed by a computer, performs the method of any one of claims 1-5.
CN201911255226.5A 2019-12-09 2019-12-09 Board card automatic adapting method, device, network equipment and storage medium Pending CN110908943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911255226.5A CN110908943A (en) 2019-12-09 2019-12-09 Board card automatic adapting method, device, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911255226.5A CN110908943A (en) 2019-12-09 2019-12-09 Board card automatic adapting method, device, network equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110908943A true CN110908943A (en) 2020-03-24

Family

ID=69823918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911255226.5A Pending CN110908943A (en) 2019-12-09 2019-12-09 Board card automatic adapting method, device, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110908943A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559185A (en) * 2020-12-18 2021-03-26 迈普通信技术股份有限公司 Chip resource allocation method, device, network equipment and computer storage medium
CN112732343A (en) * 2020-12-31 2021-04-30 中国电子科技网络信息安全有限公司 Method for loading service primary and secondary board cards in stacking equipment
CN113407217A (en) * 2021-06-30 2021-09-17 迈普通信技术股份有限公司 Chip program upgrading method, communication device and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266590B (en) * 2008-04-22 2010-09-08 北京飞天诚信科技有限公司 Method and system for dynamically switching equipment arrangement
CN102098182A (en) * 2011-03-30 2011-06-15 成都市华为赛门铁克科技有限公司 Method for restoring allocation of distributed equipment and distributed equipment
CN103210372A (en) * 2011-09-08 2013-07-17 华为技术有限公司 Method and device for initializing board
CN103346898A (en) * 2013-05-30 2013-10-09 迈普通信技术股份有限公司 Method for processing configuration information of hot plug board card, and network communication device
CN104053030A (en) * 2014-06-16 2014-09-17 青岛海信宽带多媒体技术有限公司 Combined television starting method and combined television
CN104618136A (en) * 2014-12-25 2015-05-13 曙光信息产业(北京)有限公司 Configuration management method and device for blade server
CN109947610A (en) * 2019-03-19 2019-06-28 浪潮商用机器有限公司 Configuration method of calibration, device, system and the storage medium of server hardware system
US20190265964A1 (en) * 2018-02-28 2019-08-29 Ricoh Company, Ltd. Electronic apparatus, updating method, and recording medium
US10489338B1 (en) * 2018-09-05 2019-11-26 Quanta Computer Inc. Method and system for streamlined server design

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266590B (en) * 2008-04-22 2010-09-08 北京飞天诚信科技有限公司 Method and system for dynamically switching equipment arrangement
CN102098182A (en) * 2011-03-30 2011-06-15 成都市华为赛门铁克科技有限公司 Method for restoring allocation of distributed equipment and distributed equipment
CN103210372A (en) * 2011-09-08 2013-07-17 华为技术有限公司 Method and device for initializing board
CN103346898A (en) * 2013-05-30 2013-10-09 迈普通信技术股份有限公司 Method for processing configuration information of hot plug board card, and network communication device
CN104053030A (en) * 2014-06-16 2014-09-17 青岛海信宽带多媒体技术有限公司 Combined television starting method and combined television
CN104618136A (en) * 2014-12-25 2015-05-13 曙光信息产业(北京)有限公司 Configuration management method and device for blade server
US20190265964A1 (en) * 2018-02-28 2019-08-29 Ricoh Company, Ltd. Electronic apparatus, updating method, and recording medium
US10489338B1 (en) * 2018-09-05 2019-11-26 Quanta Computer Inc. Method and system for streamlined server design
CN109947610A (en) * 2019-03-19 2019-06-28 浪潮商用机器有限公司 Configuration method of calibration, device, system and the storage medium of server hardware system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559185A (en) * 2020-12-18 2021-03-26 迈普通信技术股份有限公司 Chip resource allocation method, device, network equipment and computer storage medium
CN112732343A (en) * 2020-12-31 2021-04-30 中国电子科技网络信息安全有限公司 Method for loading service primary and secondary board cards in stacking equipment
CN112732343B (en) * 2020-12-31 2022-04-22 中国电子科技网络信息安全有限公司 Method for loading service primary and secondary board cards in stacking equipment
CN113407217A (en) * 2021-06-30 2021-09-17 迈普通信技术股份有限公司 Chip program upgrading method, communication device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110908943A (en) Board card automatic adapting method, device, network equipment and storage medium
CN109814524B (en) Vehicle diagnosis method, device and system
RU2013123983A (en) ARCHITECTURE OF HEALTH MONITORING SYSTEMS
CN111143256B (en) Method and device for reading field replaceable unit information
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN106850241A (en) A kind of vehicle-mounted OBD terminals and its remote upgrade method
US7434112B2 (en) System and method for verifying validity of assembled PCI devices of a computer
CN110784348A (en) Firmware upgrading method and device, electronic equipment and storage medium
CN103514065A (en) Electronic device with automatic detection and recovery function and method
CN112015489A (en) Management method, device, storage medium and system for vehicle-mounted software
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN114185571A (en) Firmware upgrading method and device of CPLD, terminal and readable storage medium
CN111190621A (en) Firmware burning method, device, system, terminal equipment and storage medium
CN111984287A (en) Equipment upgrading method and system
CN110704076A (en) Data processing method and device, vehicle-mounted controller and computer-readable storage medium
CN111092765B (en) Intelligent driving method, system, electronic device and readable storage medium
CN113849135A (en) Log access method and device and server
CN113721953A (en) Firmware program upgrading method and device and display control equipment
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN112306040A (en) Vehicle detection method, device, equipment and server
CN109145022B (en) Writing method, device and storage medium for network identity of mobile equipment
CN109145021B (en) Mobile equipment network identity identification rewriting method, device and storage medium
WO2016127587A1 (en) Software version updating method and apparatus
CN114691397A (en) Disk repairing method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324

RJ01 Rejection of invention patent application after publication