Drive search matching installation method and system under Linux system
By introducing automatic detection and installation of drivers in Linux systems, the cumbersome problem of users needing to manually install drivers in the prior art is solved, and a simplified driver installation process and improved user experience are achieved.
Patent Information
- Application Number
- CN202510013326.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-05-13
AI Technical Summary
The device management software of the existing Linux desktop operating system cannot automatically search and install hardware drivers, resulting in users needing to manually install and manage drivers, which increases the cumbersomeness of system configuration and technical threshold.
Provide a driver search matching installation method under Linux system, and realizes automatic detection, identification, search and installation of drivers through hardware peripheral automatic detection module, manufacturer model information identification module, driver package search matching module, data collection module and data analysis module.
It simplifies the driver installation process, improves user experience, reduces hardware compatibility issues, ensures the latest and accurate driver data, and provides users with a convenient and reliable hardware management experience.
Abstract
Description
Technical Field
[0001] The present invention relates to a driver search matching installation method, and in particular to a driver search matching installation method and system under a Linux system. Background Art
[0002] At present, the development of domestically-produced, independent and controllable trusted OS is booming, the application ecological environment is gradually maturing, and the rich desktop applications greatly meet customers' needs for office and entertainment.
[0003] At present, some device management software for Linux desktop operating systems at home and abroad can only identify and display some hardware information, but cannot automatically search for available drivers and install drivers based on the corresponding device information. As a result, users still need to install hardware drivers themselves, making management difficult.
[0004] The main disadvantages of the prior art are as follows: Limited hardware information display: Existing device management software is mainly limited to displaying basic hardware information, and often cannot provide detailed information for complex device combinations or advanced hardware functions. This limits users' comprehensive understanding of the system hardware status and may result in the inability to discover and solve potential hardware problems in a timely manner.
[0005] Lack of automated driver management: These software usually cannot intelligently search, identify and install the latest drivers automatically based on device information. Users still need to manually find and install the appropriate drivers, which increases the complexity and technical threshold of system configuration. If an automated driver management system is introduced, the user experience can be significantly improved and hardware compatibility issues can be reduced.
[0006] Users need to install drivers manually: Current device management software does not provide a convenient user interface that enables users to easily install, update, and manage hardware drivers. Users are forced to rely on terminal commands or manually download installation files, which is a tedious task for non-technical professionals.
[0007] Lack of intelligent hardware optimization: Most of the current device management software fails to provide intelligent hardware optimization functions, and cannot automatically adjust system settings according to hardware performance and configuration to provide the best performance and stability. This means that users miss the opportunity to improve system performance and cannot maximize the use of hardware resources.
[0008] Compatibility issues: Some device management software may have compatibility issues with specific hardware or driver versions, resulting in the inability to correctly identify, manage or update hardware in some cases. This instability may affect the reliability and stability of the system.
[0009] Existing patents such as CN115904400 A mention a driver matching method, and CN106126256A mentions a driver management method. However, for the driver management under the Kylin desktop operating system, the implementation of the adapter driver does not provide a complete solution. Neither of these two patents mentions the detailed interaction process and data feedback mechanism of the driver server. According to common knowledge in this field, if the complexity of the driver is not taken into account, the stability of the driver cannot be guaranteed only by improving the file system and information processing. Summary of the invention
[0010] The main purpose of the present invention is to provide a driver search, matching and installation method and system under Linux system, which can install peripheral drivers under Linux, is simple and convenient to use, reduces users' repeated operations, improves work efficiency and increases system friendliness.
[0011] In order to achieve the above object, the present invention provides a driver search matching installation method under Linux system, comprising the following steps: Step S100: Obtain operating system information and device access status, and simultaneously obtain access device information; Step S200: obtaining driver installation package information from a driver server according to device information and operating system information; Step S300: Detect whether the obtained driver installation package has been installed locally. If it has been installed, no processing is performed; if it has not been installed, install it and perform different types of operations according to different types of drivers. Step S400: After the installation is completed, the information collected during the installation process is recorded and the information is sent to the data collection module at a regular interval; Step S500: If it is necessary to restart the system or display peripheral information after the installation is completed, prompt the user to perform the corresponding operation; Step S600: Analyze the usage of hardware peripherals according to the information obtained by the data collection module, and timely update the driver information in the driver server according to the driver usage.
[0012] Preferably, in step S100, the operating system information obtained includes: kernel version, distribution information, system architecture, network configuration and installed software package information.
[0013] Preferably, in step S100, the hardware peripheral information obtained includes: USB device information, PCI device information, graphics card information, printer and scanner information, sound card information, Bluetooth device information, input device information and serial port device information.
[0014] Preferably, in step S200, during the interaction with the drive server, the following contents need to be output and input: Input parameters include peripheral manufacturer information / manufacturer code, peripheral model information / model code, system release version information, and system architecture information; The output parameters include driver package information, driver type, and driver additional information.
[0015] Preferably, in step S300: If the peripheral type is a printer, update the local PPD file list; If the peripheral type is a scanner, the scanning-related sane library is called to update the sane driver library; If the peripheral type is a graphics card device, you need to restart the system; If the peripheral has other special requirements after installation, the specified operations should be performed as needed.
[0016] Preferably, the information sent to the data collection module includes: Manufacturer code, model code, peripheral manufacturer information, peripheral model information, http request uri, request result, obtained registration, and installation result.
[0017] The present invention also provides a driver search matching installation system under a Linux system, comprising: A hardware peripheral automatic detection module, which is used to detect connected hardware peripherals; A manufacturer model information identification module, the manufacturer model information identification module is electrically connected to the hardware peripheral automatic detection module, and when the hardware peripheral automatic detection module detects the hardware peripheral, the manufacturer model information identification module automatically identifies the manufacturer model information of the hardware peripheral; The driver package search and matching module, the manufacturer model information identification module transmits the automatically identified manufacturer model information of the hardware peripheral to the driver package search and matching module, the driver package search and matching module automatically searches and obtains the corresponding driver installation package according to the manufacturer model information, and automatically installs the obtained driver installation package; Data collection module, the data collection module is used to collect data during the installation process of the driver installation package; Data analysis module: The data collection module sends the relevant data of installation failure to the data analysis module, analyzes the reasons for installation failure through the data analysis module, and feeds back to the operator. At the same time, the data analysis module analyzes the usage of hardware peripherals and updates the driver system of hardware peripherals in time.
[0018] The beneficial effects of the present invention are: By automatically detecting connected hardware peripherals, intelligently identifying manufacturer model information, and realizing intelligent search and matching of peripheral drivers in the source server, the system simplifies the driver installation process and overcomes the cumbersome problem of peripheral driver installation in the Linux desktop operating system. In addition, in the present invention, the accuracy of driver matching is improved through comprehensive data collection and statistics, and by optimizing source server data. Through the user feedback mechanism, the driver server data is continuously improved to ensure that the driver data is always the latest and most accurate, providing users with a convenient and reliable hardware management experience. DETAILED DESCRIPTION
[0019] The technical solutions in the embodiments of the present invention are described clearly and completely below in conjunction with the embodiments of the present invention. In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention can also be implemented in other ways different from those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below.
[0020] This embodiment provides a driver search, matching and installation system under a Linux system, including a hardware peripheral automatic detection module, a manufacturer model information identification module, a driver package search and matching module, a data collection module and a data analysis module.
[0021] Among them, the hardware peripheral automatic detection module is used to detect the connected hardware peripherals. If it is an existing hardware peripheral, it will be automatically skipped. If it is a newly inserted hardware peripheral, the hardware peripheral automatic detection module automatically obtains the new hardware peripheral insertion information and sends the information to the manufacturer model information identification module. It can be seen that this embodiment uses the hardware peripheral automatic detection module to realize the intelligent identification of peripherals under the Linux desktop operating system, which makes it unnecessary for users to manually search and confirm the device, greatly simplifying the preliminary preparation steps for driver installation.
[0022] The manufacturer model information identification module is electrically connected to the hardware peripheral automatic detection module. When the manufacturer model information identification module receives the new hardware peripheral insertion information sent by the hardware peripheral automatic detection module, the manufacturer model information identification module will automatically identify the manufacturer model information of the hardware peripheral and send the manufacturer model information to the driver package search and matching module. The system can more accurately locate the required driver through the manufacturer model information identification module, thereby providing users with a more accurate and convenient driver installation experience.
[0023] The driver package search and matching module automatically searches and obtains the corresponding driver installation package according to the manufacturer model information, and the obtained driver installation package is automatically installed. In this embodiment, the driver package search and matching module first searches for the corresponding driver installation package in the local computer. When the corresponding driver installation package is not found in the local computer, it searches for the driver installation package in the online by querying the operator. In this way, the driver package search and matching module avoids the tedious process of manual search and downloading by the user, thereby improving the overall convenience of use.
[0024] In this embodiment, the data collection module is used to collect data of the driver installation package during the installation process. The data collection module sends the relevant data of the installation failure to the data analysis module, analyzes the cause of the installation failure through the data analysis module, and feeds back to the operator. At the same time, the data analysis module analyzes the use of hardware peripherals and updates the driver system of the hardware peripherals in a timely manner. In this way, the data collection module conducts comprehensive data collection and statistics on the driver installation process, and the data analysis module summarizes the reasons for successful and failed installations. The system can continuously optimize the data in the source server, improve the accuracy and success rate of driver matching, and provide users with more reliable driver support.
[0025] This embodiment provides the above-mentioned driver search matching installation method under the Linux system, which specifically includes the following steps: Step S100: Start the driver search matching installation system, the driver search matching installation system automatically obtains the operating system information, and obtains the device access status through the hardware peripheral automatic detection module, and obtains the connected device information through the manufacturer model information identification module.
[0026] In this step, the operating system information obtained includes: Kernel version: The kernel version is the core component of the Linux operating system, which manages hardware and provides basic system services; Release information: used to distinguish different Kylin system versions, such as V10 and V10SP1; System architecture: Kylin OS can run on different hardware architectures, such as x86, ARM, etc. The system architecture information describes the hardware platform on which the operating system runs, and is also used to indicate the architecture corresponding to the driver package; Network configuration: including network interface, IP address, gateway, connection status and other information, used to determine the current system network status; Installed package information: Lists installed packages and their versions, which is used to understand the driver application information installed on the system.
[0027] The hardware peripheral information obtained includes: USB device information: includes detailed information about devices connected through the USB interface, such as device name, manufacturer, device ID, etc., used to obtain information about connected USB hardware peripherals; PCI device information: lists the information of devices connected through the PCI bus, including device name, manufacturer, device ID, etc., which is used to match the device information connected through the PCI bus; Graphics card information: including graphics card model, manufacturer, driver and other information, used to match graphics card information; Printer and scanner information: includes information about connected printers and scanners, such as device name, manufacturer, model, etc., used to match printer and scanner information; Sound card information: describes the sound card device installed on the system, including device name, model, driver, etc., used to match the sound card information; Bluetooth device information: describes the Bluetooth device connected to the system, including device name, MAC address, etc., used to match Bluetooth device information; Input device information: including information of input devices such as keyboard and mouse, such as device name and manufacturer, which is used to match input device information; Serial port device information: describes the information of the device connected through the serial port, such as a printer connected through the serial port, which is used to match the serial port device information.
[0028] Step S200: the driver package search and matching module obtains the driver installation package information from the driver server according to the device information and the operating system information.
[0029] In this step, during the interaction with the driver server, the following content needs to be output and input: Among them, the input parameters are: Peripheral manufacturer information / manufacturer code (VID): used to receive the manufacturer information of the peripheral to locate the driver. By default, VID is used first. If VID is empty, the peripheral manufacturer information is used for matching. Peripheral model information / model code (PID): used to receive the model information of the peripheral to locate the driver. By default, PID is used first. If PID is empty, the model manufacturer information is used for matching. System release information: used to locate different Kylin system versions, such as V10, V10SP1, etc. System architecture information: used to locate the architecture driver. Generally, drivers will provide different driver packages according to different system architectures, such as x86, ARM, etc.
[0030] Output parameters: Driver package information: output a series of driver package lists, used to display the driver list of the corresponding peripherals; Driver type: output peripheral type, such as "printer" for printer and "scanner" for scanner; Driver additional information: Outputs additional peripheral information to customize the different requirements of special peripherals.
[0031] Step S300: Check whether the obtained driver installation package has been installed locally. If it has been installed, no processing is performed; if it has not been installed, install it and perform different types of operations according to different types of drivers.
[0032] In this step: If the peripheral type is a printer, the local PPD file list is updated, and the driver matching method proposed in the published patent CN114217827 A can be used to accurately match the driver; If the peripheral type is a scanner, the scanning-related sane library is called to update the sane driver library; If the peripheral type is a graphics card device, you need to restart the system; If the peripheral has other special requirements after installation, the specified operations should be performed as needed.
[0033] Step S400: After the installation is completed, the information collected during the installation process is recorded and the above information is sent to the data collection module at a regular interval.
[0034] In this step, the information sent to the data collection module includes: Manufacturer code, model code, peripheral manufacturer information, peripheral model information, http request uri, request result, obtained registration, and installation result.
[0035] Step S500: If it is necessary to restart the system or display peripheral information after the installation is completed, prompt the user to perform the corresponding operation; Step S600: Based on the information acquired by the data collection module, the data analysis module analyzes the usage of the hardware peripherals, and timely updates the driver information in the driver server based on the driver usage.
[0036] Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
Claims
1. A driver search matching installation method under Linux system, characterized in that: The following steps are involved: Step S100: Obtain operating system information and device access status, and simultaneously obtain access device information; Step S200: obtaining driver installation package information from a driver server according to device information and operating system information; Step S300: Check whether the obtained driver installation package has been installed locally. If it has been installed, no processing is performed; If it is not installed, install it and perform different operations according to different types of drivers; Step S400: After the installation is completed, the information collected during the installation process is recorded and the information is sent to the data collection module at a regular interval; Step S500: If it is necessary to restart the system or display peripheral information after the installation is completed, prompt the user to perform the corresponding operation; Step S600: Analyze the usage of hardware peripherals according to the information obtained by the data collection module, and timely update the driver information in the driver server according to the driver usage.
2. A method for driver search matching and installation under Linux system according to claim 1, characterized in that: In step S100, the operating system information obtained includes: kernel version, distribution version information, system architecture, network configuration and installed software package information.
3. A method for driver search matching and installation in Linux system according to claim 1, characterized in that: In step S100, the hardware peripheral information obtained includes: USB device information, PCI device information, graphics card information, printer and scanner information, sound card information, Bluetooth device information, input device information and serial port device information.
4. The method for driver search matching and installation in Linux system according to claim 1, characterized in that: In step S200, during the interaction with the driver server, the following contents need to be output and input: Input parameters include peripheral manufacturer information / manufacturer code, peripheral model information / model code, system release version information, and system architecture information; The output parameters include driver package information, driver type, and driver additional information.
5. The method for driver search matching and installation in Linux system according to claim 1, characterized in that: In step S300: If the peripheral type is a printer, update the local PPD file list; If the peripheral type is a scanner, the scanning-related sane library is called to update the sane driver library; If the peripheral type is a graphics card device, you need to restart the system; If the peripheral has other special requirements after installation, the specified operations should be performed as needed.
6. A method for driver search matching installation in Linux system according to claim 1, characterized in that: The information sent to the data collection module includes: Manufacturer code, model code, peripheral manufacturer information, peripheral model information, http request uri, request result, obtained registration, and installation result.
7. A driver search matching installation system under Linux system, characterized in that: include: A hardware peripheral automatic detection module, which is used to detect connected hardware peripherals; A manufacturer model information identification module, the manufacturer model information identification module is electrically connected to the hardware peripheral automatic detection module, and when the hardware peripheral automatic detection module detects the hardware peripheral, the manufacturer model information identification module automatically identifies the manufacturer model information of the hardware peripheral; The driver package search and matching module, the manufacturer model information identification module transmits the automatically identified manufacturer model information of the hardware peripheral to the driver package search and matching module, the driver package search and matching module automatically searches and obtains the corresponding driver installation package according to the manufacturer model information, and automatically installs the obtained driver installation package; Data collection module, the data collection module is used to collect data during the installation process of the driver installation package; Data analysis module: The data collection module sends the relevant data of installation failure to the data analysis module, analyzes the reasons for installation failure through the data analysis module, and feeds back to the operator. At the same time, the data analysis module analyzes the usage of hardware peripherals and updates the driver system of hardware peripherals in time.
Citation Information
Patent Citations
Driver management method, device and system
CN106126256A
Driving package matching method and device, computing equipment and storage medium
CN115904400A