Network card driver installation method, device, equipment, medium and program product

By automatically detecting the load status of the network card driver, transmitting configuration information to obtain target driver files and installing it, the problem of cumbersome and lack of flexibility in the installation of network card drivers in the existing technology is solved, and a more efficient and flexible driver installation process is achieved.

CN119149119BActive Publication Date: 2025-06-17LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411658825.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-06-17
Estimated Expiration
2044-11-20

AI Technical Summary

Technical Problem

After the network card is installed, the existing technology requires manual integrated drivers in the operating system kernel. The process is cumbersome, lack of flexibility, time-consuming and labor-intensive, and is particularly difficult to manage a large number of computers in an enterprise-level environment.

Method used

Provides a network card driver installation method. By traversing the network card, it determines the driver loading status. If it is not loaded successfully, it transmits computer configuration information to the network card, encapsulates and sends it to the server, obtains the target driver file, and installs it in the operating system.

Benefits of technology

It reduces the difficulty of operation and maintenance, improves the flexibility of driver installation, reduces the installation of the intranet machine compilation environment, is simple to operate, saves time and manpower, and solves the pain points of problems from scratch when deploying the system for the first time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149119B_ABST
    Figure CN119149119B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a method, device, equipment, medium and program product for installing a network card driver. The method includes: traversing the network card to determine the loading status of the network card driver; when the determined loading status of the network card driver is the status of unsuccessful loading, transmitting the relevant configuration information of the current computer to the network card, so that the network card encapsulates the relevant configuration information of the current computer and sends it to the server, and the server obtains the corresponding target driver file; installing the driver into the operating system by using the received target driver file. In this way, the traditional offline scattered and repeated operations are centralized and automatically executed online, without relying on the operation and maintenance personnel to implement them one by one offline, reducing the operation and maintenance difficulty, improving the flexibility of driver installation, reducing the installation of machine compilation environments in the intranet, with simple operation, saving time and manpower, and solving the pain point of the problem from scratch when deploying the system for the first time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and particularly to a method, device, equipment, medium and program product for installing a network card driver. Background Art

[0002] After a network card is installed on a server, a driver software running inside the operating system kernel is usually required to identify this network card, configure it, and drive it to provide corresponding functions. The operating system usually integrates some network card drivers offline in advance inside it to achieve the effect of being ready to use out of the box. However, the prerequisite for this solution to be applicable is that before a specific operating system is packaged and released, this network card and driver have been manufactured, and the system manufacturer must obtain the driver software to integrate this driver, which is relatively cumbersome, lacks flexibility, and is time-consuming and laborious. Summary of the Invention

[0003] The object of the present invention is to provide a method, device, equipment, medium and program product for installing a network card driver, which can reduce the operation and maintenance difficulty, improve the flexibility of driver installation, reduce the installation of machine compilation environments in the intranet, is simple to operate, and saves time and manpower.

[0004] To solve the above technical problems, the present invention provides a method for installing a network card driver, and the method includes:

[0005] Traverse the network cards to determine the loading status of the network card drivers;

[0006] When the determined loading status of the network card driver is the status of unsuccessful loading, transmit the relevant configuration information of the current computer to the network card, so that the network card encapsulates the relevant configuration information of the current computer and sends it to the server, and the server obtains the corresponding target driver file;

[0007] Install the driver into the operating system by using the received target driver file.

[0008] In the first aspect, in the above method for installing a network card driver provided by the present invention, traversing the network cards to determine the loading status of the network card drivers includes:

[0009] Traverse the network cards and check the set value of the network card driver loading flag bit;

[0010] Determine the loading status of the network card driver according to the set value of the network card driver loading flag bit.

[0011] On the other hand, in the above network card driver installation method provided by the present invention, the set value of the network card driver loading flag bit is set by the proxy component inside the network card after the network card is powered on and running to identify whether the driver is successfully loaded; wherein, if the proxy component inside the network card identifies that the driver is successfully loaded, the network card driver loading flag bit is set to the first state; if the proxy component inside the network card identifies that the driver is not successfully loaded, the network card driver loading flag bit is set to the second state;

[0012] Determine the network card driver loading status according to the set value of the network card driver loading flag bit, including:

[0013] When the set value of the network card driver loading flag bit is the first state, it is determined that the network card driver loading status is the successfully loaded state;

[0014] When the set value of the network card driver loading flag bit is the second state, it is determined that the network card driver loading status is the not successfully loaded state.

[0015] On the other hand, in the above network card driver installation method provided by the present invention, after determining that the network card driver loading status is the successfully loaded state, it includes:

[0016] Check whether the successfully loaded driver needs to be updated;

[0017] If the successfully loaded driver needs to be updated, transfer the current computer related configuration information to the network card;

[0018] If the successfully loaded driver does not need to be updated, it is determined that the driver does not need to be reinstalled.

[0019] On the other hand, in the above network card driver installation method provided by the present invention, transferring the current computer related configuration information to the network card includes:

[0020] Transfer the current computer related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type and the network card driver version to the network card through the network card interface.

[0021] On the other hand, in the above network card driver installation method provided by the present invention, encapsulating and sending the current computer related configuration information to the server includes:

[0022] Encapsulate the current computer related configuration information according to the Internet communication protocol to form a network packet;

[0023] Send the request carrying the network packet to the gateway server.

[0024] On the other hand, in the above network card driver installation method provided by the present invention, obtaining the corresponding target driver file by the server includes:

[0025] After receiving the request carrying the network packet, the gateway server queries whether there is a target driver file corresponding to the network packet in the storage;

[0026] If there is the target driver file in the storage, directly take out the target driver file from the storage;

[0027] Send the target driver file to the proxy component inside the network card, so that the proxy component inside the network card sends an instruction to the service component integrated in the operating system.

[0028] On the other hand, in the above network card driver installation method provided by the present invention, when there are multiple sets of computers in the current local area network, querying whether there is a target driver file corresponding to the network packet in the storage includes:

[0029] If the configuration information of multiple sets of computers is the same, determine a unified query condition according to the same configuration information;

[0030] Use the query condition to query whether there is a target driver file corresponding to the network packet in the storage.

[0031] On the other hand, in the above network card driver installation method provided by the present invention, after querying whether there is a target driver file corresponding to the network packet in the storage, it further includes:

[0032] If there is no target driver file in the storage, build a simulation environment, compile the target driver file corresponding to the network packet in the simulation environment and store it;

[0033] Send the target driver file to the proxy component inside the network card, so that the proxy component inside the network card sends an instruction to the service component integrated in the operating system.

[0034] On the other hand, in the above network card driver installation method provided by the present invention, building a simulation environment, compiling the target driver file corresponding to the network packet in the simulation environment and storing it includes:

[0035] Use virtualization to build a kernel driver compilation environment according to the information in the network packet, and compile the target driver file corresponding to the network packet;

[0036] Save the target driver file to the storage of the gateway server.

[0037] On the other hand, in the above network card driver installation method provided by the present invention, installing the driver into the operating system by using the received target driver file includes:

[0038] After receiving the instruction sent by the proxy component inside the network card, obtain the target driver file from the network card and temporarily store it in the memory;

[0039] Run the target driver file temporarily stored in the memory and install the driver into the operating system.

[0040] To solve the above technical problems, the present invention also provides a network card driver installation device, and the device includes:

[0041] A status confirmation module for traversing the network card to determine the network card driver loading status;

[0042] An information transmission module for, when the determined network card driver loading status is an unsuccessful loading status, transmitting the relevant configuration information of the current computer to the network card, so that the network card encapsulates the relevant configuration information of the current computer and sends it to the server, and the server obtains the corresponding target driver file;

[0043] A driver installation module for installing the driver into the operating system by using the received target driver file.

[0044] To solve the above technical problems, the present invention also provides a network card driver installation device, and the device includes:

[0045] A memory for storing computer programs;

[0046] A processor for implementing the steps of the above network card driver installation method when executing the computer program.

[0047] To solve the above technical problems, the present invention also provides a non-volatile storage medium, on which a computer program is stored, and the computer program implements the steps of the above network card driver installation method when executed by a processor.

[0048] To solve the above technical problems, the present invention also provides a computer program product, including computer programs / instructions, and the computer programs / instructions implement the steps of the above network card driver installation method when executed by a processor.

[0049] As can be seen from the above technical solutions, a network card driver installation method provided by the present invention includes: traversing the network card to determine the network card driver loading status; when the determined network card driver loading status is an unsuccessful loading status, transmitting the relevant configuration information of the current computer to the network card, so that the network card encapsulates the relevant configuration information of the current computer and sends it to the server, and the server obtains the corresponding target driver file; installing the driver into the operating system by using the received target driver file.

[0050] The beneficial effects of the present invention are as follows. For the network card driver installation method provided by the present invention, first traverse the network card to determine the loading status of the network card driver. When the driver fails to be loaded successfully, transmit the relevant configuration information of the current computer to the network card, which can encapsulate it and send it to the server. The server can obtain the target driver file, and then running the target driver file can install the driver into the operating system. In this way, the traditional offline, scattered, and repetitive operations are centralized and automatically executed online, without relying on operation and maintenance personnel to implement them one by one offline, reducing the operation and maintenance difficulty, improving the flexibility of driver installation, reducing the installation of machine compilation environments in the intranet, with simple operations, saving time and manpower, and solving the pain point of starting from scratch when deploying the system for the first time.

[0051] In addition, the present invention also provides a corresponding network card driver installation device, network card driver installation equipment, non-volatile storage medium, and computer program product for the network card driver installation method, which have the same or corresponding technical features as the above-mentioned network card driver installation method, and the effects are the same. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] To more clearly illustrate the embodiments of the present invention, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0053] Figure 1 It is a flowchart of the network card driver installation method provided by the embodiments of the present invention;

[0054] Figure 2 It is a schematic diagram of the network topology corresponding to the network card driver installation method provided by the embodiments of the present invention;

[0055] Figure 3 It is a schematic diagram of the structure of the network card driver installation device provided by the embodiments of the present invention;

[0056] Figure 4 It is a schematic diagram of the structure of the network card driver installation equipment provided by the embodiments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0057] In some related technical solutions, in order to achieve the effect of being ready to use out of the box, some operating systems generally integrate the drivers of some network cards in advance; after the system is installed, some hardware on the computer can be used without the need for additional driver installation operations. However, the prerequisite for applying this solution is that before a specific operating system is packaged and released, the network card and its driver have been manufactured, and the system manufacturer can obtain the driver software to integrate this driver. The drivers integrated in the above way are generally called Inbox drivers (which refer to the software version or driver program version included in the initial installation of the operating system and are regarded as part of the operating system ready to use out of the box). Inbox drivers will provide the most basic function set to enable the system to have network functions, be able to obtain the Internet Protocol (IP), and enable operation and maintenance management personnel to remotely log in for operation and maintenance. Corresponding to this is the OOT (Out Of Tree, which refers to the software version or driver program version developed independently of the standard configuration of the operating system) driver. Generally, OOT drivers will be iteratively updated over time to solve program failures or add new functions and features.

[0058] If the release time of the operating system to be used by the end user is earlier than the appearance time of the network card or its driver, the end user will face the problem that a certain hardware cannot be used after the system is installed. At this time, it is necessary to install the OOT driver, and this operation requires installing the kernel driver compilation environment of the corresponding target system, executing compilation instructions, and installation operations. If it is an enterprise user and the number of computers is large, this operation will be rather cumbersome, increasing the difficulty of implementation. If the discussed driver software is limited to hardware such as network cards, the problem becomes particularly intractable. Because if the network card cannot work properly, the computer will have no network, and it will become a single-machine working mode and cannot be remotely accessed; if operations need to be performed on it, one can only enter the computer room or the location where the computer is located and plug in a mouse, keyboard, and monitor for local operations. If the number of computers reaches the level of thousands or tens of thousands, this will be very unacceptable. And if the enterprise not only uses a single-architecture platform or different operating system environments, the complexity of the problem rises to an even more unacceptable level.

[0059] To solve the above technical problems, the present invention provides a method for installing a network card driver, which centralizes the traditional offline, scattered, and repetitive operations to be automatically executed online, improves the flexibility of driver installation, and avoids the problem of no Inbox driver during the first deployment of the system.

[0060] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts belong to the protection scope of the present invention.

[0061] To enable those skilled in the art of this technology to better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Figure 1 It is a flowchart of the network card driver installation method provided by the embodiment of the present invention. As Figure 1 shown, the method includes:

[0062] S101. Traverse the network card to determine the network card driver loading status.

[0063] It can be understood that a network card is a modular circuit composed of multiple electronic devices that can be used for network packet sending and receiving, enabling computers to be interconnected with each other through cables or wirelessly. Since a network card has a local area network address (Media Access Control Address, MAC), it belongs to the first and second layers of the Open System Interconnect (OSI) reference model.

[0064] It should be noted that the present invention integrates a service component in the operating system (Operating System, OS). When performing step S101, the present invention can use the service component integrated in the operating system to traverse the network card and check the network card driver loading status. The network card driver loading status can be a successfully loaded status or an unsuccessfully loaded status.

[0065] S102. When the determined network card driver loading status is the unsuccessfully loaded status, transmit the relevant configuration information of the current computer to the network card, so that the network card encapsulates the relevant configuration information of the current computer and sends it to the server, and the server obtains the corresponding target driver file.

[0066] In implementation, when the service component integrated in the operating system detects that the network card driver loading status is not successfully loaded, it will automatically trigger a series of operations to obtain the network driver, specifically including sending the relevant configuration information of the current computer to the network card. The relevant configuration information of the current computer may include the current platform architecture, the release version of the operating system kernel, the network card type, and the network card driver version, etc. The relevant configuration information of the current computer can be understood as the configuration information used to compile the driver file. After receiving the relevant configuration information of the current computer sent by the service component, the network card will encapsulate it and send it to the server. This server can be understood as a device for obtaining driver files and having a storage function.

[0067] Figure 2 It is a network topology diagram corresponding to the network card driver installation method provided by the embodiment of the present invention. As Figure 2 shown, after receiving the relevant configuration information of the current computer sent by the service component, the network card will encapsulate it, and then the encapsulated packet can be sent to the gateway server (Gateway Server).

[0068] The gateway is also called an internetwork connector and a protocol converter. The gateway realizes network interconnection above the network layer. It is a complex network interconnection device and is only used for network interconnection between two networks with different high-level protocols. The gateway can be used for both wide area network interconnection and local area network interconnection. It is a computer system or device that acts as a converter. Used between two systems with different communication protocols, data formats, or languages, or even completely different architectures, the gateway is a translator.

[0069] The present invention can set up a gateway server at the gateway of the local area network. This gateway server can process the encapsulated configuration information of the network card and obtain the corresponding target driver file according to the content of the encapsulated configuration information.

[0070] S103. Install the driver into the operating system by using the received target driver file.

[0071] In implementation, the present invention can run the target driver file through the service component integrated in the operating system to install the driver into the operating system.

[0072] In the above network card driver installation method provided by the embodiments of the present invention, the network cards are traversed first to determine the loading status of the network card drivers. When the drivers are not successfully loaded, the relevant configuration information of the current computer is transmitted to the network card, which can encapsulate it and send it to the server. The server can obtain the target driver file and then run the target driver file to install the driver into the operating system. In this way, the traditional offline, scattered, and repetitive operations are centralized and automatically executed online, without relying on operation and maintenance personnel to implement them one by one offline, reducing the operation and maintenance difficulty, improving the flexibility of driver installation, reducing the installation of machine compilation environments in the intranet, with simple operations, saving time and manpower, and solving the pain point of starting from scratch when deploying the system for the first time.

[0073] Further, in specific implementation, in the above network card driver installation method provided by the embodiments of the present invention, step S101 of traversing the network cards to determine the loading status of the network card drivers may specifically include: traversing the network cards and checking the set value of the network card driver loading flag bit; and determining the network card driver loading status according to the set value of the network card driver loading flag bit.

[0074] In implementation, after the operating system integrated in the host (central processing unit) side is successfully started, the service components integrated in the operating system start to execute. The service components traverse the network cards and check the value of the network card driver loading indication Flag (mark) to determine whether the drivers of the network cards are successfully loaded.

[0075] Further, in specific implementation, in the above network card driver installation method provided by the embodiments of the present invention, the set value of the network card driver loading flag bit is set by the proxy component inside the network card after the network card is powered on and runs to identify whether the driver is successfully loaded; wherein, if the proxy component inside the network card identifies that the driver is successfully loaded, the network card driver loading flag bit is set to the first state; if the proxy component inside the network card identifies that the driver is not successfully loaded, the network card driver loading flag bit is set to the second state.

[0076] Correspondingly, in the above step, determining the network card driver loading status according to the set value of the network card driver loading flag bit may specifically include: when the set value of the network card driver loading flag bit is the first state, it is determined that the network card driver loading status is the successfully loaded state; when the set value of the network card driver loading flag bit is the second state, it is determined that the network card driver loading status is the not successfully loaded state.

[0077] In implementation, the present invention implements an agent component inside the network card. This agent component can identify whether the network card driver is successfully loaded, can parse network packets, has the ability at the application layer of the Transmission Control Protocol / Internet Protocol (TCP / IP), and can serve as a window for users to interact with the network.

[0078] After the computer hardware and the network card are both installed, the central processing unit and the network card start to power on and run. The agent component inside the network card can identify whether the driver is successfully loaded. If it is successfully loaded, the agent component can set the network card driver loading flag bit to 1, that is, 1 represents the first state; if it is not successfully loaded, the agent component can set the network card driver loading flag bit to 0, that is, 0 represents the second state. Then, the service component integrated in the operating system will traverse the network card and check the set value of the network card driver loading flag bit, so as to determine whether the network card has successfully loaded the driver.

[0079] Further, in specific implementation, in the above network card driver installation method provided by the embodiments of the present invention, after determining that the network card driver loading state is the successful loading state, it may include: checking whether the successfully loaded driver needs to be updated; if the successfully loaded driver needs to be updated, transmitting the current computer related configuration information to the network card; if the successfully loaded driver does not need to be updated, determining that the driver does not need to be reinstalled.

[0080] In implementation, when the service component integrated in the operating system determines that the driver is successfully loaded, it can further check whether an update is needed. If an update is needed, it initiates a process to obtain a new driver version, that is, executes the step of transmitting the current computer related configuration information to the network card. Then the network card will encapsulate it and send it to the server, and the server will obtain the new driver file. If no update is needed, there is no need to execute the next process.

[0081] Further, in specific implementation, in the above network card driver installation method provided by the embodiments of the present invention, transmitting the current computer related configuration information to the network card in the above step may specifically include: transmitting the current computer related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type, and the network card driver version to the network card through the network card interface.

[0082] In implementation, the present invention can design a set of general network card interfaces based on the Peripheral Component Interconnect Express (PCIe) protocol or other bus interconnection protocols. Taking the PCIe bus (which is a channel for data transmission between various hardware devices) as an example, an interface for the operating system to trigger the acquisition of the network card driver is added through the Base Address Register (BAR) space mechanism. That is, before transmitting the current computer-related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type, and the network card driver version to the network card through the network card interface, such as Figure 2 As shown, it can specifically further include: between the service component integrated in the operating system and the network card, a network card interface for the operating system to trigger the acquisition of the network card driver is designed based on the bus interconnection protocol (such as the PCIe protocol), and the service component integrated in the operating system uses this network card interface to transmit the current computer-related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type, and the network card driver version to the network card. This makes the information transmission efficient, ensures that the network card can effectively receive the required configuration information, and further reduces the difficulty of driver installation.

[0083] Furthermore, in specific implementation, in the above network card driver installation method provided by the embodiments of the present invention, in step S102, the network card encapsulates the current computer-related configuration information and sends it to the server, which can specifically include: the network card encapsulates the current computer-related configuration information according to the Internet communication protocol to form a network packet; and sends a request carrying the network packet to the gateway server.

[0084] In implementation, the network card can encapsulate the current computer-related configuration information according to the Internet communication protocol to form a network packet. The Internet communication protocol can be the TCP / IP protocol, or a serial bus, or directly use the Ethernet raw frame. After forming the network packet, the network card can send a request carrying the network packet to the gateway server, so that the gateway server receives the request and, in response to the request, obtains the corresponding target driver file according to the request content.

[0085] Furthermore, in specific implementation, in the above network card driver installation method provided by the embodiments of the present invention, in step S102, obtaining the corresponding target driver file by the server can specifically include: after the gateway server receives a request carrying a network packet, it queries whether there is a target driver file corresponding to the network packet in the storage; if there is a target driver file in the storage, it directly takes out the target driver file from the storage; and sends the target driver file to the proxy component inside the network card, so that the proxy component inside the network card sends an instruction to the service component integrated in the operating system.

[0086] In implementation, as Figure 2 shown, the gateway server has a storage function and can store the generated driver files according to the processed requests. Therefore, after receiving a request carrying a network packet, the gateway server can query the storage to see if there is a target driver file corresponding to the network packet according to the request content. That is, it queries whether there is a driver file that meets the requirements in the storage. If so, it directly retrieves and sends it to the proxy component inside the network card. After receiving the target driver file, the proxy component inside the network card can send an instruction indicating that the target driver file has been received to the service component integrated in the operating system through the network card interface.

[0087] Furthermore, in specific implementation, in the above-mentioned network card driver installation method provided by the embodiments of the present invention, when there are multiple sets of computers in the current local area network, querying whether there is a target driver file corresponding to the network packet in the storage may specifically include: when the configuration information of multiple sets of computers is the same, determining a unified query condition according to the same configuration information; using the query condition to query whether there is a target driver file corresponding to the network packet in the storage.

[0088] In implementation, if there are multiple computers with the same configuration in the local area network, then only one actual simulation environment setup and driver file compilation and production are required. The present invention can query according to conditions, retrieve the corresponding driver files and return them to the requester. As time goes by, the driver files corresponding to the operating system can form a library, which is convenient for management and access. This saves the highly professional operation of remaking the operating system image and the repetitive work of implementing one by one offline; and solves the compatibility problem of a single prefabricated file during multi-platform architecture deployment.

[0089] In addition, as Figure 2 shown, Computer 1, Computer 2, Computer 3, …, Computer n respectively represent independent computers, and the configuration information of these computers can be the same or different, such as x86 (an instruction set architecture of a computer processor), aarch64 (an instruction set architecture of a central processing unit), KYLIN (an operating system), etc. The present invention can obtain the corresponding driver files according to the configuration information of the computer, without the need for prior offline scattered and repetitive operations, and the production location is centralized at the gateway, greatly reducing the difficulty of driver installation and update.

[0090] Further, in specific implementation, in the above network card driver installation method provided by the embodiments of the present invention, after querying whether there is a target driver file corresponding to the network packet in the storage, it may further include: if there is no target driver file in the storage, build a simulation environment, compile the target driver file corresponding to the network packet in the simulation environment and store it; send the target driver file to the proxy component inside the network card, so that the proxy component inside the network card sends an instruction to the service component integrated in the operating system.

[0091] In implementation, when the server queries that there is no target driver file corresponding to the network packet in the storage, it can build a simulation environment, create the corresponding target driver file, and store it for later use. At the same time, send the target driver file to the proxy component inside the network card. After receiving the target driver file, the proxy component inside the network card can send an instruction that the target driver file has been received to the service component integrated in the operating system through the network card interface.

[0092] Further, in specific implementation, in the above network card driver installation method provided by the embodiments of the present invention, building a simulation environment, compiling the target driver file corresponding to the network packet in the simulation environment and storing it in the above steps may specifically include: using virtualization to build a kernel driver compilation environment according to the information in the network packet, and compiling the target driver file corresponding to the network packet; saving the target driver file to the storage of the gateway server.

[0093] In implementation, as Figure 2 shown, the gateway server can use virtualization (Virtual Machine, VM) technology to prepare different virtual machines, such as virtual machine 01, virtual machine 02, virtual machine 03, etc. According to the network packet sent by the network card containing information such as platform architecture and operating system version, use the corresponding virtual machine to automatically build a set of the same kernel compilation environment to automatically compile the corresponding target driver file.

[0094] Further, in specific implementation, in the above network card driver installation method provided by the embodiments of the present invention, step S103 installs the driver into the operating system using the received target driver file, which may specifically include: after receiving the instruction sent by the proxy component inside the network card, obtain the target driver file from the network card and temporarily store it in the memory; run the target driver file temporarily stored in the memory and install the driver into the operating system.

[0095] In implementation, after the service component integrated in the operating system receives the instruction that the target driver file has been received sent by the proxy component inside the network card, it first retrieves the target driver file from the network card to receive the target driver file, and then temporarily stores the target driver file in the memory, thus completing the acquisition of the target driver file. Then it runs the target driver file temporarily stored in the memory, thereby installing the driver into the operating system. After the driver is automatically loaded, the network function is restored and remote access can be performed.

[0096] In the above embodiments, the method for installing the network card driver is described in detail. The present invention also provides corresponding embodiments of a network card driver installation device and a network card driver installation device. It should be noted that the present invention describes the embodiments of the device part from two perspectives, one is from the perspective of functional modules, and the other is from the perspective of hardware.

[0097] Figure 3 The following is a schematic structural diagram of the network card driver installation device provided by the embodiments of the present invention. This embodiment is based on the perspective of functional modules, as Figure 3 shown, the device includes:

[0098] A status confirmation module 10, configured to traverse the network card to determine the network card driver loading status;

[0099] An information transmission module 11, configured to, when the determined network card driver loading status is an unsuccessful loading status, transmit the relevant configuration information of the current computer to the network card, so that the network card encapsulates the relevant configuration information of the current computer and sends it to the server, and the server obtains the corresponding target driver file;

[0100] A driver installation module 12, configured to install the driver into the operating system by using the received target driver file.

[0101] In the above network card driver installation device provided by the embodiments of the present invention, through the interaction of the above three modules, the traditional offline scattered and repeated operations can be centralized and automatically executed online, without relying on operation and maintenance personnel to implement one by one offline, reducing the operation and maintenance difficulty, improving the flexibility of driver installation, reducing the installation of machine compilation environments in the intranet, with simple operations, saving time and manpower, and solving the pain point of the problem from scratch when deploying the system for the first time.

[0102] Since the embodiments of the device part correspond to the embodiments of the method part, for the embodiments of the device part, please refer to the description of the embodiments of the method part, which will not be elaborated here. And it has the same beneficial effects as the above-mentioned network card driver installation method.

[0103] Further, in specific implementation, in the above network card driver installation device provided by the embodiments of the present invention, the status confirmation module 10 can specifically be used to traverse the network cards, check the set value of the network card driver loading flag bit; and determine the network card driver loading status according to the set value of the network card driver loading flag bit.

[0104] In implementation, the set value of the network card driver loading flag bit can be set by the proxy component inside the network card after the network card is powered on and running to identify whether the driver is successfully loaded; wherein, if the proxy component inside the network card identifies that the driver is successfully loaded, the set value of the network card driver loading flag bit is the first state; if the proxy component inside the network card identifies that the driver is not successfully loaded, the set value of the network card driver loading flag bit is the second state.

[0105] Further, in specific implementation, in the above network card driver installation device provided by the embodiments of the present invention, the information transmission module 11 can specifically be used to determine that the network card driver loading status is the successfully loaded status when the set value of the network card driver loading flag bit is the first state; and determine that the network card driver loading status is the not successfully loaded status when the set value of the network card driver loading flag bit is the second state.

[0106] Further, in specific implementation, in the above network card driver installation device provided by the embodiments of the present invention, it may further include:

[0107] An update check module, which is used to check whether the successfully loaded driver needs to be updated; if the successfully loaded driver needs to be updated, transmit the relevant configuration information of the current computer to the network card; if the successfully loaded driver does not need to be updated, determine that the driver does not need to be reinstalled.

[0108] Further, in specific implementation, in the above network card driver installation device provided by the embodiments of the present invention, the driver installation module 12 can specifically be used to obtain the target driver file from the network card after receiving the instruction sent by the proxy component inside the network card, and temporarily store it in the memory; run the target driver file temporarily stored in the memory, and install the driver into the operating system.

[0109] Figure 4 It is a schematic structural diagram of the network card driver installation device provided by the embodiments of the present invention. This embodiment is from a hardware perspective, as Figure 4 shown, the network card driver installation device includes:

[0110] A memory 20, which is used to store computer programs;

[0111] A processor 21, which is used to implement the steps of the network card driver installation method as mentioned in the above embodiments when executing the computer program.

[0112] Among them, the processor 21 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. The processor 21 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also known as the CPU; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may further include an artificial intelligence (AI) processor, and the AI processor is used to process computational operations related to machine learning.

[0113] The memory 20 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 20 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201. After the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the network card driver installation method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the network card driver installation method mentioned above.

[0114] In some embodiments, the network card driver installation device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26. Those skilled in the art can understand that Figure 4 the structure shown in does not constitute a limitation on the network card driver installation device, and it may include more or fewer components than those shown in the figure. The network card driver installation device provided by the embodiments of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the network card driver installation method mentioned above, and the effect is the same.

[0115] Finally, the present invention also provides an embodiment corresponding to a non-volatile storage medium. A computer program is stored on the non-volatile storage medium, and when the computer program is executed by a processor, the steps recorded in the embodiment of the network card driver installation method as described above are implemented.

[0116] It can be understood that if the method in the above embodiments is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes. The computer-readable storage medium provided by the present invention can implement the network card driver installation method mentioned above, and the effect is the same.

[0117] Finally, the present invention also provides an embodiment corresponding to a computer program product. The computer program product includes computer programs / instructions, and when the computer programs / instructions are executed by a processor, the steps recorded in the embodiment of the network card driver installation method as described above are implemented. The computer program product provided by the present invention can implement the network card driver installation method mentioned above, and the effect is the same.

[0118] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0119] The above has introduced in detail the network card driver installation method, device, equipment, medium and program product provided by the present invention. Each embodiment in the specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and reference can be made to the description in the method part for the relevant parts. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of the present invention, several improvements and modifications can still be made to the present invention, and these improvements and modifications also fall within the protection scope of the present invention.

Claims

1. A network card driver installation method, characterized in that: The method comprises: Use the service components integrated in the operating system to traverse the network card and determine the loading status of the network card driver; When the network card driver loading state determined by the service component integrated in the operating system is an unsuccessful loading state, the current computer-related configuration information is transmitted to the network card, so that the network card encapsulates the current computer-related configuration information, forms a network packet and sends it to the server, and the server queries whether there is a target driver file corresponding to the network packet in the storage; if the server queries that the target driver file is in the storage, the target driver file is directly taken out from the storage; the target driver file is sent to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system through the network card interface; if the server queries that there is no target driver file in the storage, a kernel driver compilation environment is built according to the information in the network packet by using a virtualization method, the target driver file is automatically compiled under the kernel driver compilation environment and the target driver file is saved in the storage of the server, and the target driver file is sent to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system; After the service component integrated in the operating system receives the instruction sent by the proxy component inside the network card, the service component integrated in the operating system runs the target driver file obtained from the network card to install the driver into the operating system.

2. The network card driver installation method according to claim 1, characterized in that: Traverse the network card and determine the network card driver loading status, including: Traverse the network card and check the setting value of the network card driver loading flag; The network card driver loading status is determined according to the setting value of the network card driver loading flag.

3. The network card driver installation method according to claim 2, characterized in that: The setting value of the network card driver loading flag is set by the proxy component inside the network card to identify whether the driver is loaded successfully after the network card is powered on; if the proxy component inside the network card identifies that the driver is loaded successfully, the network card driver loading flag is set to a first state; if the proxy component inside the network card identifies that the driver is not loaded successfully, the network card driver loading flag is set to a second state; Determining the network card driver loading state according to the setting value of the network card driver loading flag bit includes: When the setting value of the network card driver loading flag is in the first state, it is determined that the network card driver loading state is a loading success state; When the setting value of the network card driver loading flag is in the second state, it is determined that the network card driver loading state is an unsuccessful loading state.

4. The network card driver installation method according to claim 3, characterized in that: After determining that the network card driver loading status is a loading success status, including: Check whether the successfully loaded driver needs to be updated; If the successfully loaded driver needs to be updated, the current computer-related configuration information is transmitted to the network card; If the successfully loaded driver does not need to be updated, it is determined that the driver does not need to be reinstalled.

5. The network card driver installation method according to claim 1 or 4, characterized in that: Transfer the current computer configuration information to the network card, including: The current computer related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type and the network card driver version is transmitted to the network card through the network card interface.

6. The method for installing a network card driver according to claim 1, characterized in that: Encapsulating the current computer-related configuration information to form a network packet and sending it to the server, including: Encapsulating the current computer-related configuration information according to the Internet communication protocol to form a network packet; The request carrying the network packet is sent to the gateway server.

7. The method for installing a network card driver according to claim 6, characterized in that: If there are multiple computers in the current LAN, query whether there is a target driver file corresponding to the network packet in the storage, including: If the configuration information of multiple computers is consistent, a unified query condition is determined based on the consistent configuration information; The query condition is used to query whether there is a target driver file corresponding to the network packet in the storage.

8. The network card driver installation method according to claim 1, characterized in that: Running the target driver file obtained from the network card to install the driver into the operating system includes: Obtain the target driver file from the network card and temporarily store it in the memory; The target driver file temporarily stored in the running memory is installed into the operating system.

9. A network card driver installation device, characterized in that: The device comprises: A status confirmation module is used to traverse the network card using the service component integrated in the operating system to determine the network card driver loading status; An information transmission module is used to transmit the current computer-related configuration information to the network card when the network card driver loading state determined by the service component integrated in the operating system is an unsuccessful loading state, so that the network card encapsulates the current computer-related configuration information to form a network packet and sends it to the server, and the server queries whether there is a target driver file corresponding to the network packet in the storage; if the server queries that the target driver file is in the storage, the target driver file is directly taken out from the storage; the target driver file is sent to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system through the network card interface; if the server queries that there is no target driver file in the storage, a kernel driver compilation environment is built according to the information in the network packet by using a virtualization method, the target driver file is automatically compiled under the kernel driver compilation environment and the target driver file is saved in the storage of the server, and the target driver file is sent to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system; The driver installation module is used for the service component integrated in the operating system to run the target driver file obtained from the network card after receiving the instruction sent by the agent component inside the network card, so as to install the driver into the operating system.

10. A network card driver installation device, characterized in that: The device comprises: Memory for storing computer programs; A processor, configured to implement the steps of the network card driver installation method as described in any one of claims 1 to 8 when executing the computer program.

11. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the network card driver installation method according to any one of claims 1 to 8 are implemented.

12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the network card driver installation method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Network block equipment management method and device, equipment and storage medium

    CN110336693A

  • Method for pre-installing network card driver in diskless workstation starting stage

    CN110618822A

  • Network card drive compiling method and device, computer equipment and storage medium

    CN111857729A

  • WiFi connection control method and device, equipment and storage medium

    CN118474711A