BIOS recovery function adding method applied to smart network card, network card, server and storage medium

By setting up BIOS switches and server-side communication query on the smart network card motherboard, the BIOS recovery function of the smart network card is realized, which solves the problem of the smart network card lacking self-restoration ability and improves work efficiency and user experience.

CN117194108BActive Publication Date: 2024-12-20SHANGHAI HEXIN DIGITAL TECH CO LTD +1
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202311190949.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-14
Publication Date
2024-12-20
Estimated Expiration
2043-09-14

AI Technical Summary

Technical Problem

The existing smart network cards lack BIOS recovery function, which requires suppliers to return to the factory to solve the problem when firmware is damaged, which increases maintenance costs and user experience impact.

Method used

Set up a BIOS switch on the motherboard of the smart network card, and connect the communication between the server and the network card terminal, query and send corresponding BIOS files, perform BIOS recovery actions, and realize the self-recovery function of the network card.

Benefits of technology

It reduces the after-sales maintenance cost of smart network cards, saves user time, improves user experience, and allows smart network cards to update and repair firmware by themselves.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117194108B_ABST
    Figure CN117194108B_ABST
Patent Text Reader

Abstract

The present application provides a method for adding a BIOS recovery function applied to a smart network card, a network card, a server, and a storage medium, which adds a BIOS recovery function to the smart network card. By setting pins on the motherboard of the smart network card and setting a switch for controlling the BIOS recovery function, the smart network card can add a BIOS recovery function, so that the smart network card can update and repair damaged firmware by itself during use, which greatly improves the work efficiency of the smart network card, reduces the manpower cost of after-sales maintenance of the smart network card, saves the user's time cost, and improves the user experience of the user in the process of using the smart network card.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart network cards, and in particular to a method for adding a BIOS recovery function applied to a smart network card, a network card, a server, and a storage medium. Background Art

[0002] The core of the Smart NIC is to assist the CPU in processing network loads through FPGA (Field Programmable Gate Array), which can improve application and virtualization performance. When the Smart NIC is working, the data plane and control plane functions are customized through FPGA local programming, and the CPU is assisted in processing network loads. The Smart NIC contains multiple ports and internal switches for multiple ports and internal switches. The Smart NIC has the advantage of removing network virtualization, load balancing and other low-level functions from the server CPU, ensuring that it can provide maximum processing power for applications in the server CPU.

[0003] However, the existing smart network card does not have the BIOS recovery function. When the firmware file inside the smart network card is damaged, the existing smart network card cannot restore the BIOS function by itself, which makes it difficult for users to handle it by themselves. Usually, they need to contact the supplier for professional technical support. This not only increases the cost of returning the smart network card to the factory for maintenance and the corresponding manpower and material resources, but also greatly affects the user experience in the process of using the smart network card, and consumes a lot of time. Summary of the invention

[0004] In view of the shortcomings of the prior art described above, the purpose of the present application is to provide a method for adding a BIOS recovery function to a smart network card, a network card, a server and a storage medium, so as to solve the problem that the existing smart network card does not have the BIOS recovery function, resulting in damage to the internal files of the smart network card, or when the factory settings need to be restored, the problem can only be solved by returning the smart network card to the supplier, thereby increasing the maintenance cost of the smart network card and consuming a lot of time, while greatly affecting the user experience.

[0005] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a method for adding a BIOS recovery function applied to a smart network card, which is applied to a network card end; the network card end is communicatively connected to a server end; the network card end includes a BIOS switch; the method includes: powering on the server end in response to a connection with the server end; receiving a BIOS file corresponding to the network card end from the server end, the BIOS file being obtained by querying a plurality of BIOS files pre-stored by the server end in response to a BIOS switch-on action; after performing a power-on operation in response to a power-on instruction issued by the server end, performing a BIOS recovery action based on the BIOS file.

[0006] In some embodiments of the first aspect of the present application, the BIOS switch includes: a first pin and a second pin; the first pin is respectively connected to the BIOS function recovery signal terminal and the power supply signal terminal of the network card end; the second pin is connected to the ground signal terminal; the BIOS switch also includes a pin connector; wherein the state in which the pin connector connects the first pin and the second pin, and the state in which the first pin and the second pin are not connected, corresponds to one and the other of the BIOS switch being in an on state and a off state.

[0007] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a method for adding a BIOS recovery function applied to a smart network card, which is applied to a server side; the server side is communicatively connected to a network card side; the network card side includes a BIOS switch; the method includes: powering on the network card side in response to a connection with the network card side; in response to the turning-on action of the BIOS switch, querying a plurality of pre-stored BIOS files to obtain a BIOS file corresponding to the network card side, and sending it to the network card side; issuing a re-power-on instruction to re-power on the network card side, so as to display and monitor the BIOS recovery process of the network card side after the network card side executes a BIOS recovery action based on the BIOS file.

[0008] In some embodiments of the second aspect of the present application, the connection method between the server and the network card end includes: the server end is connected to the UART pin of the network card end through a serial port.

[0009] In some embodiments of the second aspect of the present application, the process of searching among multiple pre-stored BIOS files to obtain a BIOS file corresponding to the network card end includes: through the query function of the server end, based on the BIOS version file name of the network card end, searching for a BIOS file that matches the BIOS version file name on the server end.

[0010] In some embodiments of the second aspect of the present application, the method for displaying and monitoring the BIOS recovery process of the network card includes: the server displays and monitors the BIOS recovery process in PUTTY through the serial port.

[0011] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a BIOS recovery function for adding a network card to a smart network card. It includes: a BIOS switch module, used to turn on or off the BIOS recovery function; a communication module, used to establish a communication connection with a server, and receive a BIOS file corresponding to the network card from the server, wherein the BIOS file is obtained by the server in response to the BIOS switch on action and querying multiple BIOS files pre-stored therein; a BIOS recovery module, used to perform a BIOS recovery action based on the BIOS file after performing a power-on operation in response to a power-on instruction issued by the server.

[0012] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides a BIOS recovery function adding server applied to a smart network card. It includes: a communication module: used to establish a communication connection with the network card, and send the BIOS file corresponding to the server to the network card; a query module: used to query in a plurality of pre-stored BIOS files to obtain a BIOS file corresponding to the network card in response to the opening action of the BIOS switch; a power supply module: used to power on the network card end in response to the connection with the network card end; a monitoring module: used to issue a re-power-on instruction to re-power on the network card end, so as to display and monitor the BIOS recovery process of the network card end after the network card end performs a BIOS recovery action based on the BIOS file.

[0013] To achieve the above-mentioned purpose and other related purposes, the fifth aspect of the present application provides a BIOS recovery function adding system applied to a smart network card, the system comprising a network card end and a server end; the network card end comprises a BIOS switch; wherein:

[0014] The server side is connected to the network card side and powers on the network card side; in response to the turning-on action of the BIOS switch, the server side queries multiple pre-stored BIOS files to obtain the BIOS file corresponding to the network card side, and sends the BIOS file corresponding to the server side to the network card side; the server side powers on the network card side again, and then the network card side executes a BIOS recovery action based on the BIOS file; the server side displays and monitors the BIOS recovery process of the network card side until the network card side completes the BIOS recovery action.

[0015] To achieve the above-mentioned purpose and other related purposes, the sixth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the method when executed by a processor.

[0016] As described above, the present application provides a method for adding a BIOS recovery function applied to a smart network card, a network card, a server and a storage medium for the smart network card field involved, and has the following beneficial effects: by setting pins on the motherboard of the smart network card and setting a switch for controlling the BIOS recovery function, the smart network card can add a BIOS recovery function, so that the smart network card can update and repair damaged firmware by itself during use, and can also restore the factory settings of the smart network card by itself, which greatly improves the work efficiency of the smart network card, reduces the manpower cost of after-sales maintenance of the smart network card, saves the user's time cost, and improves the user experience of the user when using the smart network card. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 Shown is a flow chart of an embodiment of a method for adding a BIOS recovery function to a smart network card according to the present application.

[0018] Figure 2 Shown is a structural schematic diagram of the BIOS switch in an embodiment of a method for adding a BIOS recovery function applied to a smart network card of the present application.

[0019] Figure 3 Shown is a flow chart of an embodiment of a method for adding a BIOS recovery function to a smart network card according to the present application.

[0020] Figure 4 Shown is a structural diagram of an embodiment of a network card in which the BIOS recovery function applied to a smart network card of the present application is added.

[0021] Figure 5 Shown is a structural diagram of a server in an embodiment of the method for adding a BIOS recovery function to a smart network card of the present application.

[0022] Figure 6 Shown is a structural diagram of an embodiment of a server added with a BIOS recovery function applied to a smart network card of the present application.

[0023] Figure 7 Shown is a structural diagram of an embodiment of a BIOS recovery function adding system applied to a smart network card of the present application.

[0024] Figure 8 Shown is a flow chart of BIOS recovery in an embodiment of a BIOS recovery function adding system for a smart network card according to the present application. DETAILED DESCRIPTION

[0025] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0026] It should be noted that in the following description, with reference to the accompanying drawings, several embodiments of the present application are described in the accompanying drawings. It should be understood that other embodiments may also be used, and mechanical composition, structure, electrical and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present application is limited only by the claims of the published patents. The terms used here are only for describing specific embodiments and are not intended to limit the present application. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.

[0027] In this application, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix", "hold" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0028] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.

[0029] In order to solve the problems in the above-mentioned background technology, the present invention provides a method for adding a BIOS recovery function applied to a smart network card, aiming to solve the problem that the existing smart network card does not have the BIOS recovery function, which leads to the internal files of the smart network card being damaged, or the factory setting parameters need to be restored, which can only be solved by returning the smart network card to the supplier, thereby increasing the maintenance cost of the smart network card and consuming a lot of time, and greatly affecting the user experience. At the same time, in order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention is further described in detail through the following embodiments and in combination with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention and are not used to limit the invention.

[0030] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:

[0031] <1> Smart NIC: Smart NIC refers to a NIC with programmable network interface function that assists CPU in processing network load through FPGA (field programmable gate array). It usually contains multiple ports and internal switches, which can be used to quickly forward data and intelligently map to related applications based on network data packets, application sockets, etc. It can also be used to detect and manage network traffic.

[0032] <2> BIOS (Basic Input Output System): refers to "Basic Input Output System". BIOS is a set of programs fixed on the ROM chip of the computer motherboard. It stores the most important basic input and output programs of the computer, the self-test program after power-on and the system self-starting program. It can read and write specific information of system settings from CMOS. The main function of BIOS is to provide the computer with low-level and direct hardware settings and control.

[0033] <3> Firmware: Firmware is a program written into an EEPROM or EEPROM. The firmware contains the device's "driver program". Through the firmware, the operating system can implement the operation of a specific machine according to the standard device driver.

[0034] <4> Jumper cap: A jumper cap is a switch used to control the flow of current on a circuit board. The jumper cap is a movable part with an outer layer of insulating plastic and an inner layer of conductive material. It can be inserted on the jumper pins to connect the two jumper pins.

[0035] <5> BOOTBLOCK: BOOTBLOCK is an area in the BIOS memory that cannot be erased during a standard BIOS flash.

[0036] <6> UART interface: UART interface is a physical interface for serial communication, which converts the data to be transmitted between serial communication and parallel communication. The UART interface includes a 3.3V power supply pin, a ground pin, a ground pin and a data transmission pin.

[0037] <7> PuTTY tool: The PuTTY tool is a client program for the SSH, Telnet, Rlogin, and SUPDUP network protocols. These protocols are used to run remote sessions on a computer over a network. The PuTTY tool implements the client side of the session.

[0038] The embodiments of the present invention provide a method for adding a BIOS recovery function applied to a smart network card, a network card for adding a BIOS recovery function applied to a smart network card, a server for adding a BIOS recovery function applied to a smart network card, a system for adding a BIOS recovery function applied to a smart network card, and a computer-readable storage medium for adding a BIOS recovery function applied to a smart network card. As for the implementation of the method for adding a BIOS recovery function applied to a smart network card, the embodiments of the present invention will describe an exemplary implementation scenario of the method for adding a BIOS recovery function applied to a smart network card.

[0039] like Figure 1 As shown, a flow chart of a method for adding a BIOS recovery function applied to a smart network card in an embodiment of the present invention is shown. It is worth noting that the method for adding a BIOS recovery function applied to a smart network card in this embodiment is applied to the network card end. The network card end is connected to the server end in communication, and the network card end includes a BIOS switch.

[0040] Specifically, in this embodiment applied to the network card side, the method for adding the BIOS recovery function applied to the smart network card mainly includes the following steps:

[0041] Step S11: the server side is powered on in response to the connection with the server side.

[0042] In one embodiment of the present invention, the connection method between the network card end and the server end includes: a USB interface, a USB interface that can support TYPE-C to USB, a PCIe bus, etc.

[0043] Step S12: receiving a BIOS file corresponding to the network card from the server, wherein the BIOS file is obtained by querying a plurality of pre-stored BIOS files by the server in response to the activation of the BIOS switch.

[0044] In one embodiment of the present invention, the server stores a plurality of BIOS files, wherein the plurality of BIOS files have different BIOS version file names, and a character string search is performed according to the BIOS version file name required for BIOS recovery by the network card, thereby confirming the BIOS file required by the network card. The BIOS file includes an erasable BIOS data memory and a readable BIOS program memory.

[0045] Step S13: after executing the power-on operation in response to the power-on instruction issued by the server, executing a BIOS recovery action based on the BIOS file.

[0046] In one embodiment of the present invention, it is worth noting that the power-on operation includes two steps: power off and power on again. After the network card is inserted into the server slot, the network card is powered by the server. Manually plugging and unplugging the network card to power off and power on again may cause the internal circuit of the network card to be broken. Therefore, the power-off and power-on operation described here is that the server controls the power supply of the network card through the control module placed on the server, and the network card is powered off through the interface connected to the network card, and then powered on again.

[0047] like Figure 2 As shown, a circuit structure diagram of a BIOS switch in an embodiment of the present invention is shown. A BIOS switch is included at the network card end. The BIOS switch includes: a first pin 22 and a second pin 23. The first pin 22 is respectively connected to a BIOS function recovery signal terminal 221 and a power supply signal terminal 222 at the network card end; the second pin 23 is connected to a ground signal terminal 231.

[0048] In one embodiment of the present invention, the BIOS switch further includes a pin connector 21; the pin connector 21 includes a jumper cap, a dip switch, a self-locking switch, an open-circuit resistor, etc. For example, the jumper cap is composed of a plastic shell and a metal pin, and the jumper cap can be used to connect and disconnect multiple circuit nodes. The jumper cap connects or disconnects the first pin 22 and the second pin 23 to control the switch of the BIOS recovery function of the network card.

[0049] In one embodiment of the present invention, the state in which the pin connector 21 connects the first pin 22 and the second pin 23 and the state in which the first pin 22 and the second pin 23 are not connected correspond to one and the other of the BIOS switch being in the on state and the off state, respectively.

[0050] Specifically, there are two solutions: Solution 1) The state in which the pin connector 21 connects the first pin 22 and the second pin 23 corresponds to the BIOS switch being in the on state, and the state in which the pin connector 21 does not connect the first pin 22 and the second pin 23 corresponds to the BIOS switch being in the off state. Solution 2)

[0051] In the following, only scheme 1) is used as an example for explanation. Those skilled in the art can undoubtedly infer the implementation process of the above scheme 2) based on the implementation process of scheme 1).

[0052] In some embodiments of the present invention, when the first pin 22 and the second pin 23 are connected, at this time, since the power supply signal terminal 222 is connected to the ground signal terminal 231, the BIOS function recovery signal terminal 221 connected to the power supply is in a low level mode, and the BIOS recovery function is in a closed state. On the contrary, when the jumper cap is removed to disconnect the first pin 22 and the second pin 23, the BIOS function recovery signal terminal 221 is only connected to the power supply signal terminal 222, and the power supply signal terminal 222 is in a high level mode, and the BIOS recovery function is in an open state. If the jumper cap is connected to the first pin 22 and the second pin 23 again, the BIOS function recovery signal terminal 221 is reset, and the BIOS function recovery signal terminal 221 returns to the low level mode, and the BIOS recovery function is closed. It is worth noting that the above-mentioned power supply signal source can be a conventional power supply voltage such as 3.3V or 5V.

[0053] like Figure 3 As shown, a flow chart of a method for adding a BIOS recovery function applied to a smart network card in an embodiment of the present invention is shown. It is worth noting that, unlike the above-mentioned embodiment, the method for adding a BIOS recovery function applied to a smart network card in this embodiment is applied to a server side. The server side is communicatively connected to a network card side, and the network card side includes a BIOS switch.

[0054] Specifically, in this embodiment applied to the server, the method for adding a BIOS recovery function applied to the smart network card mainly includes the following steps:

[0055] Step S21: powering on the network card terminal in response to the connection with the network card terminal.

[0056] In some embodiments of the present invention, the connection method between the server and the network card end includes: the server end is connected to the UART pin of the network card end through a serial port. The UART pin is a physical interface for serial communication, and the UART pin converts the data to be transmitted between serial communication and parallel communication. The UART pin includes: a 3.3V power supply pin, a ground pin, a ground pin, and a data transmission pin.

[0057] Step S22: In response to the turning-on action of the BIOS switch, a query is performed in a plurality of pre-stored BIOS files to obtain a BIOS file corresponding to the network card end, and the BIOS file is sent to the network card end.

[0058] In some embodiments of the present invention, the server is configured with a query function for querying the file name of the BIOS version corresponding to the network card. The specific query process includes: the server detects the model of the network card and the corresponding BIOS file version number through the interface, and then searches for a BIOS file that matches the BIOS version file name on the server through the query function of the server based on the BIOS version file name of the network card through string matching. The BIOS file is a firmware file for the network card to perform BIOS recovery.

[0059] Step S23: issuing a power-on command to power on the network card end again, so as to display and monitor the BIOS recovery process of the network card end after the network card end executes the BIOS recovery action based on the BIOS file.

[0060] In some embodiments of the present invention, before the server starts to send a power-on command to the network card, it is necessary to confirm whether BOOTBLOCK is in a lossless state. It is worth noting that BOOTBLOCK is a specific area located in the BIOS instructions, which is mainly used to guide the minimum instruction set in the BIOS recovery process. BOOTBLOCK cannot be erased during the BIOS recovery process. BOOTBLOCK bypasses the normal startup and directly enters the BIOS state through a set of minimum instruction sets. Confirming that BOOTBLOCK is in a lossless state can ensure that the BIOS recovery process of the network card can run normally.

[0061] In some embodiments of the present invention, after the network card is powered on again, the server side will judge the level of the BIOS function recovery signal end of the network card side. If the BIOS function recovery signal end is at a high level, the server side will perform BIOS recovery on the network card side. If the BIOS function recovery signal end is at a low level, the server side will not perform BIOS recovery on the network card side, and the network card will be powered on and started normally. It is worth noting that the high level and low level of the BIOS function recovery signal end described here corresponding to the turning on or off of the BIOS recovery function are only used to explain the role of the present invention rather than to limit the role. The corresponding relationship between the level state of the BIOS function recovery signal end of the present invention and the turning on or off of the BIOS recovery function corresponding to its different states is not limited.

[0062] In some embodiments of the present invention, the method of displaying and monitoring the BIOS recovery process of the network card side includes: the server side displays the BIOS recovery process in the PUTTY tool through the serial port and monitors it. The server side is configured with the PuTTY tool to display the progress status of the BIOS recovery of the network card side to improve the user experience.

[0063] The above describes the embodiment of the method for adding a BIOS recovery function to a smart network card provided by the present invention, which is applied to the network card end and the server end. Figure 4 and Figure 5 The network card and server to which the method for adding the BIOS recovery function applied to the smart network card are applied are described in detail.

[0064] like Figure 4 As shown, a schematic diagram of the structure of a network card with a BIOS recovery function added to a smart network card in an embodiment of the present invention is shown. In this embodiment, a network card 30 with a BIOS recovery function added to a smart network card includes:

[0065] The BIOS switch module 41 is used to enable or disable the BIOS recovery function.

[0066] The communication module 42 is used to establish a communication connection with the server and receive a BIOS file corresponding to the network card from the server. The BIOS file is obtained by querying a plurality of pre-stored BIOS files by the server in response to the activation action of the BIOS switch.

[0067] The BIOS recovery module 43 is used to perform a BIOS recovery action based on the BIOS file after performing a power-on operation in response to a power-on instruction issued by the server.

[0068] In some examples, the BIOS switch module 41 includes a first pin and a second pin, the first pin is connected to the BIOS function recovery signal terminal and the power supply signal terminal of the network card end respectively; the second pin is connected to the ground signal terminal, and the BIOS switch further includes a pin connector. The state in which the pin connector connects the first pin and the second pin, and the state in which the first pin and the second pin are not connected, respectively correspond to one of the BIOS switch being in an on state and the other of the off state. The communication module 42 is connected to the server end through the UART pin of the network card end.

[0069] It should be noted that: the above-mentioned embodiment provides a BIOS recovery function for adding a network card to the smart network card when performing BIOS recovery, and only uses the division of the above-mentioned program modules as an example. In actual applications, the above-mentioned processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the BIOS recovery function for adding a network card to the smart network card provided in the above-mentioned embodiment and the BIOS recovery function adding method embodiment applied to the smart network card belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0070] like Figure 5 As shown, a schematic diagram of the structure of a server for adding a BIOS recovery function to a smart network card in an embodiment of the present invention is shown. In this embodiment, a server 40 for adding a BIOS recovery function to a smart network card includes:

[0071] Communication module 51: used for establishing a communication connection with the network card, and sending the BIOS file corresponding to the server to the network card.

[0072] The query module 52 is configured to query a plurality of pre-stored BIOS files to obtain a BIOS file corresponding to the network card in response to the activation of the BIOS switch.

[0073] The power supply module 53 is used to power on the network card terminal in response to the connection with the network card terminal.

[0074] The monitoring module 54 is used to issue a power-on command to power on the network card, so as to display and monitor the BIOS recovery process of the network card after the network card executes the BIOS recovery action based on the BIOS file.

[0075] In some examples, the communication module 51 is connected to the UART pin of the network card end through a serial port. The process in which the query module 52 queries a plurality of pre-stored BIOS files to obtain a BIOS file corresponding to the network card end includes: searching for a BIOS file that matches the BIOS version file name on the server end based on the BIOS version file name of the network card end through the query function of the server end. The monitoring module 54 displays and monitors the BIOS recovery process of the network card end in a manner that: the server end displays and monitors the BIOS recovery process in PUTTY through the serial port.

[0076] It should be noted that: the BIOS recovery function adding server applied to the server provided in the above embodiment only uses the division of the above program modules as an example when performing BIOS recovery for the network card. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the BIOS recovery function adding server applied to the smart network card provided in the above embodiment and the BIOS recovery function adding method embodiment applied to the smart network card belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0077] Furthermore, if Figure 6 As shown, the BIOS recovery function adding server applied to the smart network card provided in the embodiment of the present invention can be applied to the terminal side or the server side for implementation. As for the hardware structure, please refer to Figure 6 , which is an optional hardware structure diagram of a server 600 for adding a BIOS recovery function applied to a smart network card provided in an embodiment of the present invention. The terminal 600 can be a mobile phone, a computer device, a tablet device, a personal digital processing device, a factory background processing device, etc. The server 600 for adding a BIOS recovery function applied to a smart network card includes: at least one processor 601, a memory 602, at least one network interface 605 and a user interface 606. The various components in the device are coupled together through a bus system 606. It can be understood that the bus system 606 is used to realize connection and communication between these components. In addition to the data bus, the bus system 606 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 6 In the specification, various buses are labeled as bus systems.

[0078] The user interface 606 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.

[0079] It is understood that the memory 602 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable categories of memory.

[0080] The memory 602 in the embodiment of the present invention is used to store various categories of data to support the operation of the BIOS recovery function adding server 600 applied to the smart network card. Examples of these data include: any executable program used to operate on the BIOS recovery function adding server 600 applied to the smart network card, such as an operating system 6021 and an application 6022; the operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application 6022 can include various applications, such as a media player (MediaPlayer), a browser (Browser), etc., for implementing various application services. The method for adding a BIOS recovery function applied to a smart network card provided in the embodiment of the present invention can be included in the application 6022.

[0081] The method disclosed in the above embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 601 or the instruction in the form of software. The above processor 601 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 601 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor 601 may be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0082] In an exemplary embodiment, the BIOS recovery function adding server 600 applied to the smart network card can be used by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), and complex programmable logic devices (CPLDs) to execute the aforementioned method.

[0083] In some embodiments of the present invention, the BIOS recovery function adding server applied to the smart network card also includes a BIOS control unit, and the control unit can be applied to a controller. For example: an ARM controller, an FPGA controller, a SoC controller, a DSP controller, or an MCU controller, etc. In some embodiments, the BIOS recovery function method applied to the smart network card can also be applied to a computer including components such as a memory, a storage controller, one or more processing units (CPUs), a peripheral interface, an RF circuit, an audio circuit, a speaker, a microphone, an input / output (I / O) subsystem, a display screen, other output or control devices, and an external port; the computer includes but is not limited to personal computers such as desktop computers, laptop computers, tablet computers, smart phones, smart TVs, and personal digital assistants (PDAs). In other embodiments, the anti-collision control method can also be applied to a server, which can be arranged on one or more physical servers according to various factors such as function and load, or can be composed of distributed or centralized server clusters.

[0084] The following will combine Figure 7 and Figure 8 A BIOS recovery function adding system applied to a smart network card provided in this application is described.

[0085] like Figure 7 As shown, the BIOS recovery function adding system 700 applied to the smart network card includes a network card end 701 and a server end 702, and the network card end 701 includes a BIOS switch (not shown). Figure 8 The flowchart of the process of adding a BIOS recovery function applied to a smart network card further illustrates the implementation process of the system 700 for adding a BIOS recovery function applied to a smart network card.

[0086] like Figure 8 As shown, when the BIOS recovery function adding system applied to the smart network card is performing BIOS recovery, the network card end and the server end mainly include the following interaction processes:

[0087] S801: The server is connected to the network card and powers on the network card.

[0088] S802: BIOS switch on the network card.

[0089] S803: Server side In response to the turning on action of the BIOS switch, the server side searches in a plurality of pre-stored BIOS files to obtain a BIOS file corresponding to the network card side.

[0090] S804: The server sends the BIOS file corresponding to the server to the network card.

[0091] S805: The server side powers on the network card side again.

[0092] S806: The network card performs a BIOS recovery action based on the BIOS file.

[0093] S807: The server displays and monitors the BIOS recovery process of the network card until the network card completes the BIOS recovery action.

[0094] The BIOS recovery function adding system for the smart network card provided in this embodiment has the same concept as the BIOS recovery function adding method embodiment for the smart network card when performing BIOS recovery on the network card side. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0095] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0096] In the embodiment of the method for adding a BIOS recovery function applied to a smart network card provided in the present application, the computer readable and writable storage medium may include a read-only memory, a random access memory, an EEPROM, a CD-ROM or other optical disk storage device, a disk storage device or other magnetic storage device, a flash memory, a USB flash drive, a mobile hard disk, or any other medium that can be used to store the desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, a server or other remote source using a coaxial cable, an optical fiber cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio and microwaves, the coaxial cable, optical fiber cable, twisted pair, DSL, or wireless technologies such as infrared, radio and microwaves are included in the definition of the medium. However, it should be understood that computer readable and writable storage media and data storage media do not include connections, carriers, signals or other temporary media, but are intended for non-temporary, tangible storage media. Disk and disc, as used in this application, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.

[0097] In summary, the present application provides a method for adding a BIOS recovery function to a smart network card, a network card, a server, and a storage medium. The present invention provides a method for adding a BIOS recovery function to a smart network card, by setting a pin on the motherboard of the smart network card and setting a switch for controlling the BIOS recovery function, so that the smart network card can add a BIOS recovery function, thereby facilitating the smart network card to update and repair damaged firmware by itself during use, greatly improving the working efficiency of the smart network card, reducing the manpower cost of after-sales maintenance of the smart network card, saving the user's time cost, and improving the user experience of the user in the process of using the smart network card. Therefore, the present application effectively overcomes the various shortcomings of the prior art and has a high industrial utilization value.

[0098] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for adding a BIOS recovery function applied to a smart network card, characterized in that: Applied to a network card end; the network card end is connected to a server end in communication; The network card end includes a BIOS switch; the method includes: The server end is powered on in response to the connection with the server end; the server end is connected to the UART pin of the network card end through the serial port; Receive a BIOS file corresponding to the network card from the server, wherein the BIOS file is obtained by searching a plurality of BIOS files pre-stored by the server in response to a BIOS switch-on action; the server stores a plurality of BIOS files, wherein the plurality of BIOS files have different BIOS version file names, and perform a character string search according to the BIOS version file name required for BIOS recovery by the network card, thereby confirming the BIOS file required by the network card; search for a BIOS file that matches the BIOS version file name on the server based on the BIOS version file name of the network card through a query function of the server; After executing the power-on operation in response to the power-on instruction issued by the server, the BIOS recovery action is performed based on the BIOS file; before the server sends the power-on instruction to the network card, it confirms whether BOOTBLOCK is in an intact state to ensure the normal operation of the BIOS recovery process of the network card; the server displays the BIOS recovery process in PUTTY through the serial port and monitors it; The BIOS switch includes: a first pin and a second pin; the first pin is respectively connected to the BIOS function recovery signal terminal and the power supply signal terminal of the network card end; the second pin is connected to the ground signal terminal; the BIOS switch also includes a pin connector; wherein the state in which the pin connector connects the first pin and the second pin, and the state in which the first pin and the second pin are not connected, corresponds to one and the other of the BIOS switch being in an on state and a closed state; the first pin and the second pin are connected or disconnected by a jumper cap to control the switch of the BIOS recovery function at the network card end.

2. A method for adding a BIOS recovery function applied to a smart network card, characterized in that: Applied to the server side; The server end is communicatively connected to the network card end; The network card end includes a BIOS switch; the method includes: In response to the connection with the network card end, the network card end is powered on; the server end is connected to the UART pin of the network card end through the serial port; In response to the turning-on action of the BIOS switch, a query is performed in a plurality of pre-stored BIOS files to obtain a BIOS file corresponding to the network card end, and the BIOS file is sent to the network card end; the server end stores a plurality of BIOS files, wherein the plurality of BIOS files have different BIOS version file names, and a character string search is performed according to the BIOS version file name required for BIOS recovery by the network card end, so as to confirm the BIOS file required by the network card end; through the query function of the server end, a BIOS file that matches the BIOS version file name is searched on the server end based on the BIOS version file name of the network card end; A power-on command is issued to power the network card back on. Before the server sends the power-on command to the network card, the server confirms whether BOOTBLOCK is in an intact state to ensure the normal operation of the BIOS recovery process of the network card; after the network card performs the BIOS recovery action based on the BIOS file, the BIOS recovery process of the network card is displayed and monitored; the server displays the BIOS recovery process in PUTTY through the serial port and monitors it.

3. A BIOS recovery function for adding a network card to a smart network card, characterized in that: include: BIOS switch module, used to turn on or off the BIOS recovery function; The BIOS switch module comprises: a first pin and a second pin; the first pin is respectively connected to the BIOS function recovery signal terminal and the power supply signal terminal of the network card end; the second pin is connected to the ground signal terminal; the BIOS switch further comprises a pin connector; wherein the state in which the first pin and the second pin are connected and the state in which the first pin and the second pin are not connected correspond to one and the other of the BIOS switch being in an on state and a closed state; the first pin and the second pin are connected or disconnected by a jumper cap to control the switch of the BIOS recovery function at the network card end; A communication module, used for establishing a communication connection with a server, receiving a BIOS file corresponding to a network card from the server, wherein the server is connected to a UART pin of the network card via a serial port; the BIOS file is obtained by querying a plurality of BIOS files pre-stored by the server in response to a BIOS switch on action; the server stores a plurality of BIOS files, wherein the plurality of BIOS files have different BIOS version file names, respectively, and a character string is retrieved according to the BIOS version file name required for BIOS recovery by the network card, thereby confirming the BIOS file required by the network card; through a query function of the server, a BIOS file matching the BIOS version file name is searched on the server based on the BIOS version file name of the network card; The BIOS recovery module is used to perform a BIOS recovery action based on the BIOS file after performing a power-on operation in response to a power-on instruction issued by the server side; before the server side sends a power-on instruction to the network card side, it confirms whether BOOTBLOCK is in an intact state to ensure the normal operation of the BIOS recovery process of the network card; the server side displays the BIOS recovery process in PUTTY through the serial port and monitors it.

4. A BIOS recovery function adding server applied to a smart network card, characterized in that: include: Communication module: used for establishing a communication connection with the network card, and sending the BIOS file corresponding to the server to the network card; The server end is connected to the UART pin of the network card end through the serial port; A query module: used for querying a plurality of pre-stored BIOS files to obtain a BIOS file corresponding to the network card in response to the turning-on action of the BIOS switch; the server side stores a plurality of BIOS files, wherein the plurality of BIOS files respectively have different BIOS version file names, and a character string search is performed according to the BIOS version file name required for BIOS recovery on the network card side, so as to confirm the BIOS file required by the network card side; through the query function of the server side, a BIOS file that matches the BIOS version file name is searched on the server side based on the BIOS version file name of the network card side; A power supply module: used to power on the network card terminal in response to the connection with the network card terminal; Monitoring module: used for issuing a power-on command to power on the network card end. Before the server end sends the power-on command to the network card end, it confirms whether BOOTBLOCK is in an intact state to ensure the normal operation of the BIOS recovery process of the network card. After the network card end executes the BIOS recovery action based on the BIOS file, the BIOS recovery process of the network card end is displayed and monitored; The server displays the BIOS recovery process in PUTTY through the serial port and monitors it.

5. A BIOS recovery function adding system applied to a smart network card, characterized in that: The system includes a network card end and a server end; the network card end includes a BIOS switch; wherein: The server end is connected to the network card end and powers on the network card end; the server end is connected to the UART pin of the network card end through a serial port; The server side searches for a BIOS file corresponding to the network card side in a plurality of pre-stored BIOS files in response to the turning-on action of the BIOS switch, and sends the BIOS file corresponding to the server side to the network card side; the server side stores a plurality of BIOS files, wherein the plurality of BIOS files have different BIOS version file names, and performs a character string search according to the BIOS version file name required for BIOS recovery by the network card side, thereby confirming the BIOS file required by the network card side; The server end powers on the network card end again, and before sending a power-on command to the network card end, the server end confirms whether BOOTBLOCK is in an intact state to ensure the normal operation of the BIOS recovery process of the network card; then the network card end performs a BIOS recovery action based on the BIOS file; the BIOS switch includes: a first pin and a second pin; the first pin is respectively connected to the BIOS function recovery signal end and the power supply signal end of the network card end; the second pin is connected to the ground signal end; the BIOS switch also includes a pin connector; wherein the state of the pin connector connecting the first pin and the second pin, and the state of not connecting the first pin and the second pin, corresponds to one and the other of the BIOS switch being in an on state and a closed state; the first pin and the second pin are connected or disconnected by a jumper cap to control the switch of the BIOS recovery function of the network card end; The server displays and monitors the BIOS recovery process of the network card until the network card completes the BIOS recovery action; the server displays and monitors the BIOS recovery process in PUTTY through the serial port.

6. A computer-readable storage medium for adding a BIOS recovery function to a smart network card, wherein a computer program is stored on the medium, characterized in that: When the computer program is executed by the processor, it implements the method for adding a BIOS recovery function applied to a smart network card as described in claim 1; or it is used to implement a method for adding a BIOS recovery function applied to a smart network card as described in any one of claim 2.

Citation Information

Patent Citations

  • Method for one-key recovery of computer system

    CN101944035A

  • Automatic configuration method of network device and management server

    CN102546267A

  • MODBUS network card

    CN111371566A

  • Network card firmware batch refreshing method and system, terminal and storage medium

    CN111371610A

  • Network card configuration method, network card configuration device, network card configuration equipment and storage medium

    CN111399942A