Configuration Method, Device, Electronic Device and Medium of Expansion Card

CN113934606BActive Publication Date: 2025-07-22XINHUASAN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111396026.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-23
Publication Date
2025-07-22
Estimated Expiration
2041-11-23

Smart Images

  • Figure CN113934606B_ABST
    Figure CN113934606B_ABST
Patent Text Reader

Abstract

The present application discloses a configuration method, device, electronic device and medium for an expansion card. In the present application, an event of connecting an expansion card to be updated can be detected; the pre-stored ID information to be updated is retrieved from its own storage area, and the ID information to be updated is the same as the ID information of other expansion cards in the server; the ID information to be updated is sent to the expansion card to be updated. By applying the technical solution of the present application, it can be realized that when it is monitored that a new expansion card is connected to the server, the ID information pre-stored in the storage device can be automatically assigned to the new expansion card, so that the new expansion card can independently configure its own ID information. Thus, it avoids the problem in the related art that when the business system replaces the expansion card, the business user needs to manually configure the corresponding ID information for the new expansion card to ensure the normal operation of the original business system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to data communication technology, and in particular to a configuration method, device, electronic device and medium for an expansion card. Background Art

[0002] Due to the rise of the communication era and society, business systems are continuously applied by business platforms with the development of the Internet.

[0003] Among them, in order to improve the performance and scalability of the business system, the servers of the business system usually include multiple expansion cards for connecting storage hard disks with the same ID information, so as to achieve the purpose of increasing the business processing space of the server.

[0004] However, during the business processing of the server, when a certain expansion card fails and needs to be replaced with a new one, the business user still needs to manually configure the corresponding ID information for the new expansion card so as not to affect the operation of the original business system. It can be understood that this greatly increases the complexity of configuring the expansion card. Summary of the Invention

[0005] The embodiments of the present application provide a configuration method, device, electronic device and medium for an expansion card, and the embodiments of the present application are used to solve the problem that in the related art, when replacing an expansion card, the business user needs to manually configure the corresponding ID information for the new expansion card so as not to affect the operation of the original business system.

[0006] Among them, according to one aspect of the embodiments of the present application, a configuration method for an expansion card is provided, which is applied to a storage device of a server and includes:

[0007] Detecting an event that there is a connection to an expansion card to be updated in the server;

[0008] Retrieving pre-stored ID information to be updated from its own storage area, and the ID information to be updated is the same as the ID information of other expansion cards in the server;

[0009] Sending an update request for instructing the expansion card to be updated to update its ID information, and the update request includes the ID information to be updated.

[0010] Optionally, in another embodiment based on the above method of the present application, the detecting an event that there is a connection to an expansion card to be updated in the server includes:

[0011] If it is determined that there is a communication interruption event between the first expansion card and the server, monitoring the communication interface connected to the first expansion card;

[0012] When it is detected that the communication interface is connected to the second expansion card, it is determined that an event of connecting an expansion card to be updated exists in the server currently.

[0013] Optionally, in another embodiment of the method based on the present application, when it is detected that the communication interface is connected to the second expansion card, determining that an event of connecting an expansion card to be updated exists in the server currently includes:

[0014] When it is detected that the communication interface is connected to the second expansion card, a transmission request is sent to the second expansion card, and the transmission request is used to obtain the current ID information transmitted by the second expansion card;

[0015] The current ID information transmitted by the second expansion card is received through the communication interface;

[0016] If it is determined that the current ID information is different from the ID information to be updated, it is determined that an event of connecting an expansion card to be updated exists in the server.

[0017] Optionally, in another embodiment of the method based on the present application, retrieving the pre-stored ID information to be updated from its own storage area includes:

[0018] Obtain the mac address information from the storage area;

[0019] Based on the mac address information, the ID information to be updated is obtained, and the ID information to be updated is assembled by the first byte of the first digit, the last byte of the second digit, and the mac address information.

[0020] Wherein, according to one aspect of the embodiments of the present application, a configuration method for an expansion card, which is applied to an expansion card to be updated of a server, includes:

[0021] Receiving an update request for changing ID information sent by a storage device of the server, where the update request includes the ID information to be updated;

[0022] Configuring its own ID information to be the same as the ID information to be updated;

[0023] If a service processing instruction sent by a service board is received, it is determined to receive and process the service data sent by the service board.

[0024] Optionally, in another embodiment of the method based on the present application, configuring its own ID information to be the same as the ID information to be updated includes:

[0025] Obtain the initial ID information configured by itself;

[0026] Detect whether the initial ID information is the same as the ID information to be updated;

[0027] If not, configure the initial ID information to be the same as the ID information to be updated.

[0028] Optionally, in another embodiment based on the above method of the present application, before receiving the update request for changing the ID information sent by the storage device of the server, it further includes:

[0029] Receive a transmission request sent by the storage device, where the transmission request is used to obtain the current ID information of the update expansion card;

[0030] Send the current ID information to the storage device.

[0031] Wherein, according to one aspect of the embodiments of the present application, a configuration device for an expansion card, which is applied to the storage device of a server, includes:

[0032] A detection module, configured to detect an event of connecting an expansion card to be updated in the server;

[0033] An extraction module, configured to extract pre-stored ID information to be updated from its own storage area, and the ID information to be updated is the same as the ID information of other expansion cards in the server;

[0034] A sending module, configured to send an update request for instructing the expansion card to be updated to update its ID information to the expansion card to be updated, and the update request includes the ID information to be updated.

[0035] Wherein, according to one aspect of the embodiments of the present application, a configuration device for an expansion card, which is applied to the expansion card to be updated of a server, includes:

[0036] A determination module, configured to receive an update request for changing ID information sent by the storage device of the server, and the update request includes the ID information to be updated;

[0037] A configuration module, configured to configure its own ID information to be the same as the ID information to be updated;

[0038] A processing module, configured to, if receiving a service processing instruction sent by a service board, determine to receive and process the service data sent by the service board.

[0039] Optionally, according to yet another aspect of the embodiments of the present application, an electronic device includes:

[0040] A memory, used to store executable instructions; and

[0041] A display, configured to execute the executable instructions with the memory to complete the operation of the configuration method for any one of the above-mentioned expansion cards included in the storage device applied to the server.

[0042] Further optionally, according to another aspect of the embodiments of the present application, an electronic device is provided, including:

[0043] A memory, configured to store executable instructions; and

[0044] A display, configured to execute the executable instructions with the memory to complete the operation of the configuration method for any one of the above-mentioned expansion cards included in the expansion card to be updated applied to the server.

[0045] According to still another aspect of the embodiments of the present application, a computer-readable storage medium is provided, configured to store computer-readable instructions, and when the instructions are executed, the operation of the configuration method for any one of the above-mentioned expansion cards is performed.

[0046] In the present application, an event of connecting to the expansion card to be updated can be detected; the pre-stored ID information to be updated is retrieved from its own storage area, and the ID information to be updated is the same as the ID information of other expansion cards in the server; the ID information to be updated is sent to the expansion card to be updated. By applying the technical solution of the present application, when it is monitored that a new expansion card is connected to the server, the ID information pre-stored in the storage device can be automatically assigned to the new expansion card, so that the new expansion card can independently configure its own ID information. Thus, it avoids the problem in the related art that when the business system replaces the expansion card, the business user needs to manually configure the corresponding ID information for the new expansion card to ensure the normal operation of the original business system.

[0047] Next, through the drawings and embodiments, the technical solution of the present application will be further described in detail. Description of the Drawings

[0048] The drawings forming a part of the specification depict the embodiments of the present application and, together with the description, are used to explain the principles of the present application.

[0049] Referring to the drawings, according to the following detailed description, the present application can be more clearly understood, where:

[0050] Figure 1 It is a schematic diagram of a configuration method for an expansion card in a storage device applied to a server proposed by the present application;

[0051] Figure 2 It is a schematic diagram of another configuration method for an expansion card in an expansion card to be updated applied to a server proposed by the present application;

[0052] Figure 3 Flow schematic diagram of a configuration method for an expansion card proposed in this application;

[0053] Figures 4 - 5 Structural schematic diagram of a configuration electronic device for an expansion card proposed in this application;

[0054] Figure 6 Structural schematic diagram of a configuration electronic device for an expansion card proposed in this application. Detailed implementation manners

[0055] Now, various exemplary embodiments of this application will be described in detail with reference to the accompanying drawings. It should be noted that: Unless otherwise specifically stated, the relative arrangements, numerical expressions, and numerical values of the components and steps set forth in these embodiments do not limit the scope of this application.

[0056] Meanwhile, it should be understood that, for the sake of description, the dimensions of the various parts shown in the drawings are not drawn in actual proportional relationships.

[0057] The following description of at least one exemplary embodiment is actually merely illustrative and does not impose any limitation on this application and its application or use.

[0058] Technologies, methods, and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the said technologies, methods, and devices should be regarded as part of the specification.

[0059] It should be noted that: Similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.

[0060] In addition, the technical solutions between various embodiments of this application can be combined with each other, but it must be based on the ability of those of ordinary skill in the art to implement. When the combination of technical solutions results in contradictions or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0061] It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of this application are only used to explain the relative positional relationship and movement conditions between components in a specific posture (as shown in the drawings). If the specific posture changes, then the directional indications will also change accordingly.

[0062] The following is combined with Figures 1 - 3Describe a configuration method for an expansion card according to an exemplary embodiment of the present application. It should be noted that the following application scenarios are only shown for the convenience of understanding the spirit and principle of the present application, and the embodiments of the present application are not limited in this regard. On the contrary, the embodiments of the present application can be applied to any applicable scenario.

[0063] Furthermore, the present application also proposes a configuration method, device, target terminal, and medium for an expansion card.

[0064] Figure 1 Schematically shows a flowchart of a configuration method for an expansion card according to an embodiment of the present application. As Figure 1 shown, this method is applied to the storage device of a server and includes:

[0065] S101, detecting an event of connecting a to-be-updated expansion card in the server.

[0066] With the continuous development of communication technologies, business platforms usually process corresponding services through large computer rooms with multiple servers deployed.

[0067] Among them, taking a blade server as an example, a blade server is a server architecture that integrates computing, networking, storage, management, and other modules at the same time. It can include Mezz: Mezzanine, an intermediate layer connector, generally using the PCIe bus, used to expand PCIe network cards, SAS cards, expansion cards, and hard disks corresponding to and connected to the expansion cards. It can be understood that an independent blade server can be composed of a management board, a switching network board, computing nodes, storage nodes, power supplies, fans, expansion cards, and other hardware, enabling it to implement IT infrastructure functions such as data computing, storage, and switching on a single blade device.

[0068] Furthermore, an expansion card is a device that can allocate multiple serial ports for hard disks to connect. Each server can store and transmit data with hard disk devices through the expansion card. It can be understood that using an expansion card can simply solve the solution for expanding the number of hard disk devices in a server. It can enable the server to easily expand serial ports or parallel ports, so it is also called a serial-parallel port expansion card.

[0069] It should be noted that the present application does not limit the number of expansion cards in the server, that is, as long as there are at least two expansion cards.

[0070] In a blade server, the path for accessing stored data is: Computing 1 ---> SAS network board M ---> First expansion card ---> Hard disk. However, when one of the expansion cards (for example, the main expansion card) fails, the path for accessing stored data in the server will become: Computing 1 ---> SAS network board S ---> Second expansion card ---> Hard disk.

[0071] It should be noted that, in order to effectively manage the server, the administrator can configure the same ID information for multiple expansion cards on the server through a PC. Only in this way can it be ensured that under a business system, multiple expansion cards all serve the same set of associated network boards and hard disk devices. It can be understood that if the ID information of a certain expansion card is different from that of other expansion cards, it will cause a device on the data transmission path to be unable to transmit data to this expansion card through the ID information, thereby resulting in data unavailability and affecting the business processing progress.

[0072] However, since the ID information of the expansion card is uniformly stored as the default value when it leaves the factory. Therefore, when a certain expansion card fails, the administrator still needs to manually configure the corresponding ID information for the new expansion card before replacing the faulty expansion card and connecting it to the server system, which greatly affects the efficiency of business processing.

[0073] In view of the above problems, the present application proposes a method that can automatically assign the ID information pre-stored in the storage device to a new expansion card when it is detected that there is a new expansion card connected to the server, so that the new expansion card can independently configure its own ID information. Thus, it avoids the problem in the related art that when replacing an expansion card in a business system, the business user needs to manually configure the corresponding ID information for the new expansion card to ensure the normal operation of the original business system.

[0074] In one way, the embodiment of the present application can configure a dedicated storage device for the server and monitor in real time whether there is an event that a newly connected expansion card to be updated exists in the current server. It can be understood that the expansion card to be updated is a brand-new expansion card for replacing the faulty expansion card.

[0075] In one way, the storage device can be a 5713 chip, so as to realize the automatic configuration of the ID information of the expansion card according to the 5713 chip subsequently.

[0076] In one way, the server can monitor in real time whether there is an event that an expansion card to be updated is connected to the current server, and then feedback the result to the storage device. In another way, the storage device can also determine whether there is an event that an expansion card to be updated is connected to the current server by monitoring each communication interface in real time. The present application does not limit this.

[0077] In one way, it can also be determined by the storage device to generate an event that an expansion card to be updated is connected to the server only when it detects whether there is an event that a newly connected expansion card to be updated exists in the current server.

[0078] S102. Retrieve the pre-stored ID information to be updated from its own storage area. The ID information to be updated is the same as the ID information of other expansion cards in the server.

[0079] In one way, the storage device in the embodiment of the present application can be a storage chip, in which the same ID information corresponding to all expansion cards in the server is pre-stored. It can be understood that the storage device is connected to the ports of all expansion cards in the server to transmit the ID information of a newly inserted expansion card at any port at any time.

[0080] Further, when the storage device determines that there is an event of first connecting an expansion card to be updated currently (that is, it detects that a new expansion card is connected to the server), it can retrieve the pre-stored ID information to be updated from its own storage area, and the ID information to be updated is the same as the ID information of other expansion cards in the server, so as to transmit the ID information to the expansion card to be updated subsequently.

[0081] S103. Send an update request for instructing the expansion card to be updated to update its ID information to the expansion card to be updated. The update request includes the ID information to be updated.

[0082] In one way, taking the storage device as a storage chip as an example, for example, when the storage chip determines that there is an event of first connecting an expansion card to be updated currently, it can retrieve the ID information to be updated from the storage area. The first byte is 0x50, the last byte is 0xc0, and the middle 6 bytes are spliced in the way of 7513mac. Then, it sends the data to the expansion card to be updated through the I2C protocol. So that after the expansion card to be updated receives the set id request sent by the storage chip subsequently, it extracts the 8-byte id therein and compares it with its own id. If they are different, it will be modified and restarted automatically. If they are the same, no modification will be made.

[0083] In the present application, it can be detected that there is an event of connecting an expansion card to be updated; retrieve the pre-stored ID information to be updated from its own storage area, and the ID information to be updated is the same as the ID information of other expansion cards in the server; send the ID information to be updated to the expansion card to be updated. By applying the technical solution of the present application, it can be realized that when it is monitored that a new expansion card is connected to the server, the ID information pre-stored in the storage device can be automatically assigned to the new expansion card, so that the new expansion card can configure its own ID information independently. Thus, it avoids the problem that in the related art, when the business system replaces the expansion card, the business user needs to manually configure the corresponding ID information for the new expansion card so as not to affect the operation of the original business system.

[0084] Optionally, in a possible implementation manner of the present application, before S101 (detecting that there is an event of connecting an expansion card to be updated in the server), the following steps can be implemented:

[0085] If it is determined that there is a communication interruption event between the first expansion card and the server, monitor the communication interface connected to the first expansion card;

[0086] When it is detected that the communication interface is connected to the second expansion card, determine that there is an event of a connection to a to-be-updated expansion card in the currently detected server.

[0087] In one way, the storage device can determine whether there is an event of a first connection to a to-be-updated expansion card currently. For example, the storage device can monitor each communication interface in real time. For example, when the user pulls out the faulty expansion card from the server, the storage device can determine that there is a communication interruption event between the first expansion card (i.e., the faulty expansion card) and the server according to the feedback of communication port A communicating with the faulty expansion card.

[0088] Furthermore, it is also necessary to continue monitoring communication port A to determine that there is an event of a connection to a to-be-updated expansion card in the currently detected server when it is determined subsequently that this communication port A is connected to a new expansion card (i.e., the second expansion card). So that the storage device can transmit its ID information subsequently.

[0089] Further optionally, when it is detected that the communication interface is connected to the second expansion card in this application, determining that there is an event of a connection to a to-be-updated expansion card in the currently detected server includes:

[0090] When it is detected that the communication interface is connected to the second expansion card, send a transmission request to the second expansion card, and the transmission request is used to obtain the current ID information transmitted by the second expansion card;

[0091] Receive the current ID information transmitted by the second expansion card through the communication interface;

[0092] If it is determined that the current ID information is different from the to-be-updated ID information, determine that there is an event of a connection to a to-be-updated expansion card in the detected server.

[0093] In one way, after the storage device continues to monitor communication port A to determine that this communication port A is connected to a newly inserted expansion card (i.e., the second expansion card) subsequently, it can also choose to judge the newly inserted expansion card (i.e., the second expansion card) to determine whether it is a brand-new expansion card that has not been connected to the server before or an old expansion card that has been connected to the server before. It can be understood that only when it is determined that the expansion card is a brand-new expansion card will the to-be-updated ID information be transmitted to it subsequently.

[0094] Among them, the determination method of the storage device can be to send a transmission request for obtaining the current ID information of the newly inserted expansion card (i.e., the second expansion card) to the expansion card, and after receiving the current ID information parameter transmitted by the expansion card, match it with the ID information to be updated stored inside the storage device, so as to determine whether the current ID information is consistent with the ID information to be updated. In one way, only when it is determined that the two are consistent can it be confirmed that the expansion card is a brand-new expansion card, and then the subsequent step of retrieving the ID information to be updated is allowed to be implemented.

[0095] Optionally, in a possible implementation manner of the present application, in S102 (retrieving the pre-stored ID information to be updated from its own storage area), the following steps can be implemented:

[0096] Obtain the mac address information from the storage area;

[0097] Based on the mac address information, obtain the ID information to be updated, and the ID information to be updated is assembled from the first byte of the first digit, the last byte of the second digit, and the mac address information.

[0098] In one way, taking the storage device as a storage chip as an example, for example, when the storage chip determines that there is currently an event of connecting an expansion card to be updated, it can retrieve the ID information to be updated from the storage area by splicing the first byte as 0x50, the last byte as 0xc0, and the middle 6 bytes using 7513mac, and send the ID data information to the expansion card to be updated through the I2C protocol. So that after the expansion card to be updated subsequently receives the set id request sent by the storage chip, it extracts the 8-byte id therein and compares it with its own id. If they are different, it is modified and restarted automatically. If they are the same, no modification is made.

[0099] In another embodiment of the present application, Figure 2 Schematically shows a flowchart of a configuration method for an expansion card according to an embodiment of the present application. As Figure 2 shown, this method is applied to the expansion card to be updated of the server, and includes:

[0100] S201, receiving an update request for changing the ID information sent by the storage device of the server, where the update request includes the ID information to be updated.

[0101] In the blade server, the path for accessing the stored data is: Computing 1 ---> SAS network board M ---> First expansion card ---> Hard disk. However, when one of the expansion cards (for example, the main expansion card) fails, the path for accessing the stored data in the server will become: Computing 1 ---> SAS network board S ---> Second expansion card ---> Hard disk.

[0102] It should be noted that for the effective management of the server, the administrator can configure the same ID information for multiple expansion cards on the server through a PC. This can ensure that under a business system, multiple expansion cards all serve the same set of associated motherboard and hard disk devices. It can be understood that if the ID information of a certain expansion card is different from that of other expansion cards, it will cause a device on the data transmission path to be unable to transmit data to this expansion card through the ID information, resulting in data being unreachable and thus affecting the business processing progress.

[0103] However, since the ID information of the expansion card is the default value uniformly burned when it leaves the factory. Therefore, when a certain expansion card fails, the administrator still needs to manually configure the corresponding ID information for the new expansion card before replacing the faulty expansion card and connecting it to the server system, which greatly affects the efficiency of business processing.

[0104] To address the above problems, the expansion card to be updated can perform real-time monitoring to determine whether it is the first time to connect to the expansion card to be updated, and then feedback the result to the storage device. In another way, the storage device can also determine that there is an event of the first connection to the expansion card to be updated by real-time monitoring of each communication interface, and then inform the expansion card to be updated. This application does not limit this.

[0105] Furthermore, if it is determined that it is the first time to connect to the server, it can receive the update request sent by the storage device for changing the ID information, so as to configure the corresponding ID information for itself according to the ID information to be updated carried in the request subsequently.

[0106] S202, configure its own ID information to be the same as the ID information to be updated.

[0107] In one way, after the expansion card receives the update request, it can first detect its own ID information. It can be understood that if the two are the same, it is determined not to perform any operation. Otherwise, it can change the initially configured ID information to be the same as the ID information to be updated.

[0108] For example, taking the storage device as a storage chip for example, when the storage chip determines that there is an event of the first connection to the expansion card to be updated, it can retrieve the ID information to be updated from the storage area and send the data to the expansion card to be updated through the I2C protocol. So that subsequently, after the expansion card to be updated receives the set id request sent by the storage chip, it extracts the 8-byte id therein and compares it with its own id. If they are different, it will be modified and restarted automatically. If they are the same, no modification will be made.

[0109] S203. If a service processing instruction sent by the service board is received, determine to receive and process the service data sent by the service board.

[0110] In this application, an event of a connection to a to-be-updated expansion card existing in the server can be detected; the pre-stored to-be-updated ID information is retrieved from its own storage area, and the to-be-updated ID information is the same as the ID information of other expansion cards in the server; the to-be-updated ID information is sent to the to-be-updated expansion card. By applying the technical solution of this application, when it is monitored that a new expansion card is connected to the server, the ID information pre-stored in the storage device can be automatically assigned to the new expansion card, so that the new expansion card can independently configure its own ID information. Thus, it avoids the problem in the related art that when the service system replaces the expansion card, the service user needs to manually configure the corresponding ID information for the new expansion card to ensure the normal operation of the original service system.

[0111] Optionally, in a possible implementation manner of this application, before S101 (receiving an update request for changing ID information sent by the storage device of the server), the following steps may be implemented:

[0112] Receive a transmission request sent by the storage device, where the transmission request is used to obtain the current ID information of the update expansion card;

[0113] Send the current ID information to the storage device.

[0114] In one way, to avoid the problem of wasting data reception and transmission resources caused by frequent sending of meaningless information between internal devices of the server. In the embodiment of this application, the storage device can also be selected to judge the newly inserted to-be-updated expansion card, so as to determine whether it is a brand-new expansion card that has not been connected to the server before or an old expansion card that has been connected to the server before. It can be understood that only when it is determined that the expansion card is a brand-new expansion card will the to-be-updated ID information be transmitted to it subsequently.

[0115] Among them, the judgment method of the storage device can be to send a transmission request for obtaining the current ID information of the to-be-updated expansion card to the newly inserted expansion card (i.e., the to-be-updated expansion card), and after receiving the current ID information parameter transmitted by the expansion card, match it with the to-be-updated ID information stored inside the storage device, and then determine whether the current ID information is consistent with the to-be-updated ID information. In one way, only when it is determined that the two are consistent can it be confirmed that the expansion card is a brand-new expansion card, and then the subsequent step of retrieving the to-be-updated ID information is allowed to be implemented.

[0116] In another way, when it is determined in the embodiment of the present application that the to-be-updated expansion card is not connected to the server for the first time (for example, an expansion card that has communicated with the server before), a service instruction for informing that ID information configuration is not required can be sent to the storage device, thereby achieving the purpose of saving the transceiver resources of the storage device.

[0117] For Figure 3 illustration, the following is a schematic diagram of the configuration process of the overall expansion card proposed in the embodiment of the present application, which includes:

[0118] For the storage device of the server, after detecting an event of connecting a to-be-updated expansion card in the server, it can retrieve the pre-stored to-be-updated ID information from its own storage area, where the to-be-updated ID information is the same as the ID information of other expansion cards in the server, and send an update request for instructing the to-be-updated expansion card to update its ID information to the to-be-updated expansion card, and the update request includes the to-be-updated ID information.

[0119] For the to-be-updated expansion card of the server, after receiving the update request for changing the ID information sent by the storage device of the server, it can obtain the initial ID information configured by itself, and detect whether the initial ID information is the same as the to-be-updated ID information. If not, it configures the initial ID information to be the same as the to-be-updated ID information, and when receiving a service processing instruction sent by the service board subsequently, it determines to receive and process the service data sent by the service board.

[0120] In another implementation manner of the present application, as Figure 4 shown, the present application also provides a configuration device for an expansion card. Among them, the device is applied to the storage device of the server and includes:

[0121] A detection module 301, configured as a detection module, configured to detect an event of connecting a to-be-updated expansion card in the server;

[0122] A retrieval module 302, configured to retrieve the pre-stored to-be-updated ID information from its own storage area, and the to-be-updated ID information is the same as the ID information of other expansion cards in the server;

[0123] A sending module 303, configured to send an update request for instructing the to-be-updated expansion card to update its ID information to the to-be-updated expansion card, and the update request includes the to-be-updated ID information.

[0124] In this application, an event of a connection to a to-be-updated expansion card in the server can be detected; the pre-stored to-be-updated ID information is retrieved from its own storage area, and the to-be-updated ID information is the same as the ID information of other expansion cards in the server; the to-be-updated ID information is sent to the to-be-updated expansion card. By applying the technical solution of this application, it can be realized that when it is monitored that there is a new expansion card connected to the server, the ID information pre-stored in the storage device can be automatically assigned to the new expansion card, so that the new expansion card can independently configure its own ID information. Thus, it avoids the problem in the related art that when the business system replaces the expansion card, the business user needs to manually configure the corresponding ID information for the new expansion card to ensure the normal operation of the original business system.

[0125] In another embodiment of this application, the detection module 301 further includes:

[0126] The detection module 301 is configured to monitor the communication interface connected to the first expansion card if it is determined that there is a communication interruption event between the first expansion card and the server;

[0127] The detection module 301 is configured to determine that there is an event of a connection to a to-be-updated expansion card in the server currently detected if it is detected that the communication interface is connected to a second expansion card.

[0128] In another embodiment of this application, the detection module 301 further includes:

[0129] The detection module 301 is configured to send a transmission request to the second expansion card if it is detected that the communication interface is connected to the second expansion card, and the transmission request is used to obtain the current ID information transmitted by the second expansion card;

[0130] The detection module 301 is configured to receive the current ID information transmitted by the second expansion card through the communication interface;

[0131] The detection module 301 is configured to determine that there is an event of a connection to a to-be-updated expansion card in the server currently detected if it is determined that the current ID information is different from the to-be-updated ID information.

[0132] In another embodiment of this application, the sending module 303 further includes:

[0133] The sending module 303 is configured to obtain the mac address information from the storage area;

[0134] The sending module 303 is configured to obtain the to-be-updated ID information based on the mac address information, and the to-be-updated ID information is assembled by the first byte of the first digit, the last byte of the second digit, and the mac address information.

[0135] In another embodiment of the present application, as Figure 5 shown, the present application further provides a configuration device for an expansion card. Among them, the device is applied to the expansion card to be updated of the server, and includes:

[0136] A determination module 304, configured to receive an update request for changing ID information sent by the storage device of the server, where the update request includes the ID information to be updated;

[0137] A configuration module 305, configured to configure its own ID information to be the same as the ID information to be updated;

[0138] A processing module 306, configured to determine to receive and process the service data sent by the service board if a service processing instruction sent by the service board is received.

[0139] In another embodiment of the present application, the determination module 304 further includes:

[0140] A determination module 304, configured to obtain the initial ID information configured by itself;

[0141] A determination module 304, configured to detect whether the initial ID information is the same as the ID information to be updated;

[0142] A determination module 304, configured to, if not, configure the initial ID information to be the same as the ID information to be updated.

[0143] In another embodiment of the present application, it further includes a receiving module 305:

[0144] A receiving module 305, configured to receive a transmission request sent by the storage device, where the transmission request is used to obtain the current ID information of the updated expansion card;

[0145] A receiving module 305, configured to send the current ID information to the storage device.

[0146] Figure 6 It is a logical structure block diagram of an electronic device shown according to an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0147] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is further provided, such as a memory including instructions. The above instructions can be executed by a processor of an electronic device to complete the above network monitoring method. The method includes: detecting an event of connecting an expansion card to be updated in the server; retrieving pre-stored ID information to be updated from its own storage area, where the ID information to be updated is the same as the ID information of other expansion cards in the server; sending an update request for instructing the expansion card to be updated to update its ID information, where the update request includes the ID information to be updated. Optionally, the above instructions can also be executed by a processor of an electronic device to complete other steps involved in the above exemplary embodiment. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0148] In an exemplary embodiment, an application program / computer program product including one or more instructions is further provided. The one or more instructions can be executed by a processor of an electronic device to complete the above network monitoring method. The method includes: detecting an event of connecting an expansion card to be updated in the server; retrieving pre-stored ID information to be updated from its own storage area, where the ID information to be updated is the same as the ID information of other expansion cards in the server; sending an update request for instructing the expansion card to be updated to update its ID information, where the update request includes the ID information to be updated. Optionally, the above instructions can also be executed by a processor of an electronic device to complete other steps involved in the above exemplary embodiment.

[0149] Figure 6 An example diagram of computer device 40. Those skilled in the art can understand that the schematic Figure 6 is merely an example of computer device 40 and does not constitute a limitation on computer device 40. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, computer device 30 may further include input / output devices, network access devices, a bus, etc.

[0150] The so-called processor 402 may be a Central Processing Unit (CPU), or may also be other general-purpose processors, 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, etc. The general-purpose processor may be a microprocessor, or the processor 402 may also be any conventional processor, etc. The processor 402 is the control center of the computer device 40, and connects various parts of the entire computer device 40 through various interfaces and lines.

[0151] The memory 401 can be used to store computer-readable instructions 403. The processor 402 realizes various functions of the computer device 40 by running or executing the computer-readable instructions or modules stored in the memory 401, and by calling the data stored in the memory 301. The memory 401 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the computer device 40. In addition, the memory 401 may include a hard disk, memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, at least one magnetic disk storage device, flash device, Read-Only Memory (ROM), Random Access Memory (RAM), or other non-volatile / volatile storage devices.

[0152] If the modules integrated in the computer device 40 are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-described embodiment methods of the present invention, it can also be completed by computer-readable instructions to instruct relevant hardware. The computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed by the processor, the steps of the above-described various method embodiments can be realized.

[0153] Other embodiments of the present application will be readily contemplated by those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common general knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.

[0154] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A configuration method for an expansion card, characterized in that, A storage device applied to a server, comprising: Detecting an event that there is an expansion card to be updated connected in the server; The detecting an event that there is an expansion card to be updated connected in the server includes: If it is determined that there is a communication interruption event between a first expansion card and the server, monitoring a communication interface connected to the first expansion card; When it is detected that the communication interface is connected to a second expansion card, determining that the event that there is an expansion card to be updated connected in the server is currently detected; The when it is detected that the communication interface is connected to a second expansion card, determining that the event that there is an expansion card to be updated connected in the server is currently detected includes: When it is detected that the communication interface is connected to a second expansion card, sending a transmission request to the second expansion card, where the transmission request is used to obtain current ID information transmitted by the second expansion card; Receiving, through the communication interface, the current ID information transmitted by the second expansion card; If it is determined that the current ID information is different from the ID information to be updated, determining that the event that there is an expansion card to be updated connected in the server is detected; Retrieving pre-stored ID information to be updated from its own storage area, where the ID information to be updated is the same as the ID information of other expansion cards in the server; Sending an update request for instructing the expansion card to be updated to update its ID information to the expansion card to be updated, where the update request includes the ID information to be updated.

2. The method according to claim 1, wherein The retrieving pre-stored ID information to be updated from its own storage area includes: Obtaining mac address information from the storage area; Based on the mac address information, obtaining the ID information to be updated, where the ID information to be updated is assembled by the first byte of the first digit, the last byte of the second digit, and the mac address information.

3. A configuration method for an expansion card, characterized in that, An expansion card to be updated applied to a server, comprising: Receiving an update request for changing ID information sent by the storage device of the server, where the update request includes the ID information to be updated; the update request is sent when the storage device of the server detects an event that there is an expansion card to be updated connected in the server, The storage device of the server detecting an event that there is an expansion card to be updated connected in the server includes: If the storage device of the server determines that there is a communication interruption event between a first expansion card and the server, monitoring a communication interface connected to the first expansion card; If the storage device of the server detects that the communication interface is connected to a second expansion card, determining that the event that there is an expansion card to be updated connected in the server is currently detected; The storage device of the server if detecting that the communication interface is connected to a second expansion card, determining that the event that there is an expansion card to be updated connected in the server is currently detected includes: If the storage device of the server detects that the communication interface is connected to a second expansion card, sending a transmission request to the second expansion card, where the transmission request is used to obtain current ID information transmitted by the second expansion card; The storage device of the server receiving, through the communication interface, the current ID information transmitted by the second expansion card; If the storage device of the server determines that the current ID information is different from the ID information to be updated, it determines that an event of connecting to an expansion card to be updated is detected in the server; Configure its own ID information to be the same as the ID information to be updated; If a service processing instruction sent by the service board is received, determine to receive and process the service data sent by the service board.

4. The method according to claim 3, characterized in that, The configuring its own ID information to be the same as the ID information to be updated includes: Obtain the initial ID information configured by itself; Detect whether the initial ID information is the same as the ID information to be updated; If not, configure the initial ID information to be the same as the ID information to be updated.

5. The method according to claim 3, wherein Before receiving the update request for changing the ID information sent by the storage device of the server, it further includes: Receive the transmission request sent by the storage device, and the transmission request is used to obtain the current ID information of the expansion card to be updated; Send the current ID information to the storage device.

6. A configuration device for an expansion card, characterized in that, Applied to the storage device of the server, it includes: A detection module configured to detect an event of connecting to an expansion card to be updated in the server; The detection module is specifically configured as: If it is determined that there is a communication interruption event between the first expansion card and the server, monitor the communication interface connected to the first expansion card; If it is detected that the communication interface is connected to the second expansion card, determine that an event of connecting to an expansion card to be updated is currently detected in the server; The detection module is further specifically configured as: If it is detected that the communication interface is connected to the second expansion card, send a transmission request to the second expansion card, and the transmission request is used to obtain the current ID information transmitted by the second expansion card; Receive the current ID information transmitted by the second expansion card through the communication interface; If it is determined that the current ID information is different from the ID information to be updated, determine that an event of connecting to an expansion card to be updated is detected in the server; An extraction module configured to extract the pre-stored ID information to be updated from its own storage area, and the ID information to be updated is the same as the ID information of other expansion cards in the server; A sending module configured to send an update request for instructing the expansion card to be updated to update its ID information, and the update request includes the ID information to be updated.

7. A configuration device for an expansion card, characterized in that, Applied to the expansion card to be updated of the server, it includes: A determination module configured to receive the update request for changing the ID information sent by the storage device of the server, the update request includes the ID information to be updated, and the update request is sent by the storage device of the server when it detects an event of connecting to an expansion card to be updated in the server, The storage device of the server detecting an event of connecting to an expansion card to be updated in the server includes: If the storage device of the server determines that there is a communication interruption event between the first expansion card and the server, monitor the communication interface connected to the first expansion card; When the storage device of the server detects that the communication interface is connected to the second expansion card, it determines that an event of connecting an expansion card to be updated exists in the server currently; When the storage device of the server detects that the communication interface is connected to the second expansion card, determining that an event of connecting an expansion card to be updated exists in the server currently includes: When the storage device of the server detects that the communication interface is connected to the second expansion card, it sends a transmission request to the second expansion card, and the transmission request is used to obtain the current ID information transmitted by the second expansion card; The storage device of the server receives the current ID information transmitted by the second expansion card through the communication interface; When the storage device of the server determines that the current ID information is different from the ID information to be updated, it determines that an event of connecting an expansion card to be updated exists in the server; The configuration module is configured to configure its own ID information to be the same as the ID information to be updated; The processing module is configured to determine to receive and process the service data sent by the service board if it receives a service processing instruction sent by the service board.

8. An electronic device, characterized in that, Including: A memory for storing executable instructions; And, A processor for executing the executable instructions with the memory to complete the operations of the configuration method of any one of the expansion cards in claims 1-2.

9. An electronic device, characterized in that, Including: A memory for storing executable instructions; And, A processor for executing the executable instructions with the memory to complete the operations of the configuration method of any one of the expansion cards in claims 3-5.

Citation Information

Patent Citations

  • Expansion system, communication method, address configuration method, equipment and device

    CN103412838A

  • Board card automatic adaptation method and device, network equipment and storage medium

    CN110908943A