CN112684914A - Kernel-driven-based method for realizing keyboard and mouse function modification and related equipment - Google Patents
Kernel-driven-based method for realizing keyboard and mouse function modification and related equipment Download PDFInfo
- Publication number
- CN112684914A CN112684914A CN202011644395.0A CN202011644395A CN112684914A CN 112684914 A CN112684914 A CN 112684914A CN 202011644395 A CN202011644395 A CN 202011644395A CN 112684914 A CN112684914 A CN 112684914A
- Authority
- CN
- China
- Prior art keywords
- driver
- keyboard
- mouse
- kernel
- kernel driver
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000004048 modification Effects 0.000 title claims abstract description 40
- 238000012986 modification Methods 0.000 title claims abstract description 40
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000006870 function Effects 0.000 claims abstract description 80
- 238000001914 filtration Methods 0.000 claims abstract description 7
- 238000004590 computer program Methods 0.000 claims description 18
- 238000004891 communication Methods 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 3
- 238000002715 modification method Methods 0.000 claims description 3
- 239000000203 mixture Substances 0.000 claims 1
- 239000002994 raw material Substances 0.000 claims 1
- 230000008569 process Effects 0.000 abstract description 7
- 230000002155 anti-virotic effect Effects 0.000 abstract description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a method and related equipment for realizing keyboard and mouse function modification based on kernel driver, wherein the method comprises the steps of detecting whether the kernel driver is installed in an operating system or not through an upper driver when a keyboard or a mouse is accessed for the first time, and installing the kernel driver for the operating system if the kernel driver is not installed; after the kernel driver is installed in the operating system, connection is established between the upper layer driver and the kernel driver; when the keyboard or the mouse has input, filtering the keyboard or the mouse through the kernel driver, converting key information of the keyboard or the mouse into a specific function according to configuration, and sending the modified function to a system sub-environment; and after the configuration is modified by the upper layer driver, sending the configuration to the kernel driver through the connection with the kernel driver, and updating the configuration. The invention has the beneficial effects that: the modification efficiency and the security of the functions of the keyboard or the mouse are improved, and the situations of interception by antivirus software and invalidation of other processes are avoided.
Description
Technical Field
The invention relates to a keyboard and mouse function modification method and related equipment, in particular to a keyboard and mouse function modification method and related equipment based on kernel driving.
Background
In the process of displaying corresponding characters on a computer screen through keyboard tapping, a plurality of complex conversions are arranged in the middle, the interaction mode of the keyboard and the CPU is serial operation through an interrupt and read port, one interrupt of hardware is equal to that the keyboard sends a notification to the CPU, the notification does not contain the specific content of the key, the interrupt number of a general keyboard is 0x93, the port number is 0x60, when the CPU receives the interrupt, the scanning code in the port 0x60 can be read, only one byte can be stored in the port 0x60, but the scanning code has two bytes, so that the interrupt occurs twice at the moment, and the CPU can read the two bytes of the scanning code sequentially. The read message is processed layer by each layer of driver of the R0 layer, such as bus driver, USB class driver and HID class driver, and then transmitted to the upper layer of R3 layer application for use.
The kernel driver is a program allowing high-end computer software to interact with hardware, and the program creates an interface for hardware to communicate with hardware or hardware to communicate with software, and forms a connection mechanism with hardware through a bus (bus) or other communication subsystems (subsystems) on a mainboard, so that data exchange on hardware equipment (device) is possible.
In the Windows system, when the function of a specific keyboard or mouse is modified and a macro function is implemented, if the r3 layer is used to intercept and modify the keyboard or mouse, the efficiency is low due to the design of message circulation in the Windows system, and there are cases where the interception is performed by antivirus software and part of the software cannot be effective.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the utility model provides a method and related equipment for realizing keyboard and mouse function modification based on kernel drive, aiming at improving the efficiency and safety of mouse function modification.
In order to solve the technical problems, the invention adopts the technical scheme that: a method for realizing keyboard and mouse function modification based on kernel drive comprises the following steps,
s10, when the keyboard or the mouse is accessed for the first time, detecting whether a kernel driver is installed in the operating system or not through an upper driver, and if not, installing the kernel driver for the operating system;
s20, after installing the kernel driver in the operating system, establishing connection between the upper driver and the kernel driver;
s30, when the keyboard or the mouse has input, filtering the keyboard or the mouse through the kernel drive, converting the key information of the keyboard or the mouse into a specific function according to the configuration, and sending the modified function to the system sub-environment;
s40, after the configuration is modified by the upper driver, the configuration is sent to the kernel driver through the connection with the kernel driver, and the configuration is updated;
s50, after the keyboard or the mouse is powered on, receiving access information of the keyboard or the mouse through the operating system, initializing the keyboard or the mouse, and loading a corresponding kernel driver by the operating system to drive the keyboard or the mouse;
s60, calling back the message of registering equipment access/pull-out to the operating system through the upper driver;
s70, saving the configuration file through the upper layer driver, sending the configuration of the user modified key function to the kernel driver, and the kernel driver receiving the information and updating the configuration;
and S80, when the kernel driver is loaded for the first time, sending the key configuration information of the user to the kernel driver through the upper layer driver, and the kernel driver receives the information and updates the configuration.
Further, step S20 is specifically:
after the kernel driver is installed in the operating system, the keyboard or the mouse is accessed, the operating system automatically mounts the installed kernel driver for the keyboard or the mouse, and informs an upper layer driver program of establishing connection with the kernel driver.
Further, step S60 is specifically:
and calling back a message for accessing/pulling out the registered equipment from the operating system through the upper driver, judging whether the keyboard or the mouse is corresponding or not through pid/vid information by the upper driver when the keyboard or the mouse is accessed, continuously checking whether the kernel driver is installed in the operating system or not if the keyboard or the mouse is corresponding, and installing the kernel driver for the operating system if the kernel driver is not installed.
Further, step S70 is specifically:
and storing the configuration file in a local and server in a file/database mode through the upper layer driver, when a user modifies the key function, sending the configuration to the kernel driver through a communication pipeline established with the kernel driver by the upper layer driver, and receiving the information and updating the configuration by the kernel driver.
The invention also provides a device for realizing keyboard and mouse function modification based on kernel drive, which comprises,
the kernel driver detection module is used for detecting whether the kernel driver is installed in the operating system or not through an upper driver when the keyboard or the mouse is accessed for the first time, and if the kernel driver is not installed, the kernel driver is installed for the operating system;
the communication pipeline establishing module is used for establishing connection between an upper layer driver and a kernel driver after the kernel driver is installed in the operating system;
the function configuration module is used for filtering the keyboard or the mouse through the kernel driver when the keyboard or the mouse has input, converting the key information of the keyboard or the mouse into a specific function according to the configuration, and sending the modified function to the system sub-environment;
the kernel driver configuration module is used for sending the configuration to the kernel driver through the connection with the kernel driver and updating the configuration after the configuration is modified by the upper layer driver;
the device initialization module is used for receiving access information of the keyboard or the mouse through the operating system after the keyboard or the mouse is powered on, initializing the keyboard or the mouse, and loading a corresponding kernel driver by the operating system to drive the keyboard or the mouse;
the message callback module is used for calling back messages accessed/pulled out from the operating system registration equipment through the upper driver;
the device function modification module is used for storing the configuration file through an upper layer driver and sending the configuration of the key function modified by the user to the kernel driver, and the kernel driver receives the information and updates the configuration;
and the kernel driver modification and updating module is used for sending the key configuration information of the user to the kernel driver through the upper layer driver when the kernel driver is loaded for the first time, and the kernel driver receives the information and updates the configuration.
Further, the communication pipeline establishing module is specifically configured to:
after the kernel driver is installed in the operating system, the keyboard or the mouse is accessed, the operating system automatically mounts the installed kernel driver for the keyboard or the mouse, and informs an upper layer driver program of establishing connection with the kernel driver.
Further, the message callback module is specifically configured to:
and calling back a message for accessing/pulling out the registered equipment from the operating system through the upper driver, judging whether the keyboard or the mouse is corresponding or not through pid/vid information by the upper driver when the keyboard or the mouse is accessed, continuously checking whether the kernel driver is installed in the operating system or not if the keyboard or the mouse is corresponding, and installing the kernel driver for the operating system if the kernel driver is not installed.
Further, the device function modification module is specifically configured to:
and storing the configuration file in a local and server in a file/database mode through the upper layer driver, when a user modifies the key function, sending the configuration to the kernel driver through a communication pipeline established with the kernel driver by the upper layer driver, and receiving the information and updating the configuration by the kernel driver.
The invention also provides computer equipment, which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor executes the computer program to realize the method for realizing the keyboard and mouse function modification based on the kernel drive.
The invention also provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method for realizing keyboard and mouse function modification based on kernel driving can be realized.
The invention has the beneficial effects that: the input data of the keyboard or the mouse is processed by the kernel layer, the keys of the keyboard or the mouse are modified into specific functions according to the functions configured by the upper layer driver, the kernel driver can respond to the input of the keyboard or the mouse within a very short time and process the input data, and then the corresponding key functions are completed according to the input data; meanwhile, information is prevented from being intercepted, so that the modification efficiency and safety of the functions of the keyboard or the mouse are greatly improved, and the situations of interception by antivirus software and invalidation of other processes are avoided.
Drawings
The following detailed description of the invention refers to the accompanying drawings.
FIG. 1 is a flowchart of a method for implementing keyboard and mouse function modification based on kernel driver according to an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus for implementing a keyboard and mouse function modification based on kernel driving according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a computer device in accordance with a specific embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As shown in fig. 1, the first embodiment of the present invention is: a method for realizing keyboard and mouse function modification based on kernel drive comprises the following steps,
s10, when the keyboard or the mouse is accessed for the first time, detecting whether a kernel driver is installed in the operating system or not through an upper driver, and if not, installing the kernel driver for the operating system;
s20, after installing the kernel driver in the operating system, establishing connection between the upper driver and the kernel driver;
s30, when the keyboard or the mouse has input, filtering the keyboard or the mouse through the kernel drive, converting the key information of the keyboard or the mouse into a specific function according to the configuration, and sending the modified function to the system sub-environment;
s40, after the configuration is modified by the upper driver, the configuration is sent to the kernel driver through the connection with the kernel driver, and the configuration is updated;
s50, after the keyboard or the mouse is powered on, receiving access information of the keyboard or the mouse through the operating system, initializing the keyboard or the mouse, and loading a corresponding kernel driver by the operating system to drive the keyboard or the mouse;
s60, calling back the message of registering equipment access/pull-out to the operating system through the upper driver;
s70, saving the configuration file through the upper layer driver, sending the configuration of the user modified key function to the kernel driver, and the kernel driver receiving the information and updating the configuration; configuring function modification and macro function of a keyboard or a mouse;
and S80, when the kernel driver is loaded for the first time, sending the key configuration information of the user to the kernel driver through the upper layer driver, and the kernel driver receives the information and updates the configuration.
Further, step S20 is specifically:
after the kernel driver is installed in the operating system, the keyboard or the mouse is accessed, the operating system automatically mounts the installed kernel driver for the keyboard or the mouse, and informs an upper layer driver program of establishing connection with the kernel driver.
Further, step S60 is specifically:
and calling back a message for accessing/pulling out the registered equipment from the operating system through the upper driver, judging whether the keyboard or the mouse is corresponding or not through pid/vid information by the upper driver when the keyboard or the mouse is accessed, continuously checking whether the kernel driver is installed in the operating system or not if the keyboard or the mouse is corresponding, and installing the kernel driver for the operating system if the kernel driver is not installed.
Further, step S70 is specifically:
and storing the configuration file in a local and server in a file/database mode through the upper layer driver, when a user modifies the key function, sending the configuration to the kernel driver through a communication pipeline established with the kernel driver by the upper layer driver, and receiving the information and updating the configuration by the kernel driver.
In the embodiment, the input data of the keyboard or the mouse is processed by the kernel layer, the keys of the keyboard or the mouse are modified into specific functions according to the functions configured by the upper layer driver, the kernel driver can respond to the input of the keyboard or the mouse within a very short time and process the input data, and then the corresponding key functions are completed according to the input data; meanwhile, information is prevented from being intercepted, so that the modification efficiency and safety of the functions of the keyboard or the mouse are greatly improved, and the situations of interception by antivirus software and invalidation of other processes are avoided.
As shown in fig. 2, a second embodiment of the present invention is an apparatus for implementing keyboard and mouse function modification based on kernel driver, including,
the kernel driver detection module 10 is configured to detect whether a kernel driver is installed in an operating system through an upper driver when a keyboard or a mouse is first accessed, and install the kernel driver for the operating system if the kernel driver is not installed;
the communication pipeline establishing module 20 is used for establishing connection between an upper layer driver and a kernel driver after the kernel driver is installed in the operating system;
the function configuration module 30 is used for filtering the keyboard or the mouse through the kernel driver when the keyboard or the mouse has input, converting the key information of the keyboard or the mouse into a specific function according to the configuration, and sending the modified function to the system sub-environment;
the kernel driver configuration module 40 is used for sending the configuration to the kernel driver through the connection with the kernel driver after the upper driver modifies the configuration, and updating the configuration;
the device initialization module 50 is configured to receive access information of the keyboard or the mouse through the operating system after the keyboard or the mouse is powered on, initialize the keyboard or the mouse, and load a corresponding kernel driver to drive the keyboard or the mouse through the operating system;
a message callback module 60 for calling back a message for registering device access/pull-out to the operating system through an upper driver;
the device function modification module 70 is configured to store the configuration file through the upper driver, and send the configuration of the user modified key function to the kernel driver, and the kernel driver receives the information and updates the configuration;
and the kernel driver modification and update module 80 is configured to send the key configuration information of the user to the kernel driver through the upper driver when the kernel driver is loaded for the first time, and the kernel driver receives the information and updates the configuration.
Further, the communication pipe establishing module 20 is specifically configured to:
after the kernel driver is installed in the operating system, the keyboard or the mouse is accessed, the operating system automatically mounts the installed kernel driver for the keyboard or the mouse, and informs an upper layer driver program of establishing connection with the kernel driver.
Further, the message callback module 60 is specifically configured to:
and calling back a message for accessing/pulling out the registered equipment from the operating system through the upper driver, judging whether the keyboard or the mouse is corresponding or not through pid/vid information by the upper driver when the keyboard or the mouse is accessed, continuously checking whether the kernel driver is installed in the operating system or not if the keyboard or the mouse is corresponding, and installing the kernel driver for the operating system if the kernel driver is not installed.
Further, the device function modifying module 70 is specifically configured to:
and storing the configuration file in a local and server in a file/database mode through the upper layer driver, when a user modifies the key function, sending the configuration to the kernel driver through a communication pipeline established with the kernel driver by the upper layer driver, and receiving the information and updating the configuration by the kernel driver.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the device for implementing a keyboard and mouse function modification based on kernel driving may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The apparatus for implementing keyboard and mouse function modification based on kernel driver may be implemented in the form of a computer program, which can be run on a computer device as shown in fig. 3.
Referring to fig. 3, fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 3, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 comprises program instructions that, when executed, cause the processor 502 to perform a method for implementing a keyboard and mouse function modification based on kernel driver.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for running the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a method for implementing keyboard and mouse function modification based on kernel driver.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 3 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The processor 502 is configured to run the computer program 5032 stored in the memory to implement the method for implementing the keyboard and mouse function modification based on the kernel driver as described above.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program comprises program instructions. The program instructions, when executed by the processor, cause the processor to perform the method for implementing a keyboard and mouse function modification based on kernel drivers as described above.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A kernel-driven-based method for realizing keyboard and mouse function modification is characterized by comprising the following steps: comprises the following steps of (a) carrying out,
s10, when the keyboard or the mouse is accessed for the first time, detecting whether a kernel driver is installed in the operating system or not through an upper driver, and if not, installing the kernel driver for the operating system;
s20, after installing the kernel driver in the operating system, establishing connection between the upper driver and the kernel driver;
s30, when the keyboard or the mouse has input, filtering the keyboard or the mouse through the kernel drive, converting the key information of the keyboard or the mouse into a specific function according to the configuration, and sending the modified function to the system sub-environment;
s40, after the configuration is modified by the upper driver, the configuration is sent to the kernel driver through the connection with the kernel driver, and the configuration is updated;
s50, after the keyboard or the mouse is powered on, receiving access information of the keyboard or the mouse through the operating system, initializing the keyboard or the mouse, and loading a corresponding kernel driver by the operating system to drive the keyboard or the mouse;
s60, calling back the message of registering equipment access/pull-out to the operating system through the upper driver;
s70, saving the configuration file through the upper layer driver, sending the configuration of the user modified key function to the kernel driver, and the kernel driver receiving the information and updating the configuration;
and S80, when the kernel driver is loaded for the first time, sending the key configuration information of the user to the kernel driver through the upper layer driver, and the kernel driver receives the information and updates the configuration.
2. The kernel-based driver implementation method for keyboard and mouse function modification according to claim 1, wherein: step S20 specifically includes:
after the kernel driver is installed in the operating system, the keyboard or the mouse is accessed, the operating system automatically mounts the installed kernel driver for the keyboard or the mouse, and informs an upper layer driver program of establishing connection with the kernel driver.
3. The kernel-based driver implementation method for keyboard and mouse function modification according to claim 1, wherein: step S60 specifically includes:
and calling back a message for accessing/pulling out the registered equipment from the operating system through the upper driver, judging whether the keyboard or the mouse is corresponding or not through pid/vid information by the upper driver when the keyboard or the mouse is accessed, continuously checking whether the kernel driver is installed in the operating system or not if the keyboard or the mouse is corresponding, and installing the kernel driver for the operating system if the kernel driver is not installed.
4. The kernel-based driver implementation method for keyboard and mouse function modification according to claim 1, wherein: step S70 specifically includes:
and storing the configuration file in a local and server in a file/database mode through the upper layer driver, when a user modifies the key function, sending the configuration to the kernel driver through a communication pipeline established with the kernel driver by the upper layer driver, and receiving the information and updating the configuration by the kernel driver.
5. The utility model provides a device that key mouse function was revised based on kernel drive realizes which characterized in that: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
the kernel driver detection module is used for detecting whether the kernel driver is installed in the operating system or not through an upper driver when the keyboard or the mouse is accessed for the first time, and if the kernel driver is not installed, the kernel driver is installed for the operating system;
the communication pipeline establishing module is used for establishing connection between an upper layer driver and a kernel driver after the kernel driver is installed in the operating system;
the function configuration module is used for filtering the keyboard or the mouse through the kernel driver when the keyboard or the mouse has input, converting the key information of the keyboard or the mouse into a specific function according to the configuration, and sending the modified function to the system sub-environment;
the kernel driver configuration module is used for sending the configuration to the kernel driver through the connection with the kernel driver and updating the configuration after the configuration is modified by the upper layer driver;
the device initialization module is used for receiving access information of the keyboard or the mouse through the operating system after the keyboard or the mouse is powered on, initializing the keyboard or the mouse, and loading a corresponding kernel driver by the operating system to drive the keyboard or the mouse;
the message callback module is used for calling back messages accessed/pulled out from the operating system registration equipment through the upper driver;
the device function modification module is used for storing the configuration file through an upper layer driver and sending the configuration of the key function modified by the user to the kernel driver, and the kernel driver receives the information and updates the configuration;
and the kernel driver modification and updating module is used for sending the key configuration information of the user to the kernel driver through the upper layer driver when the kernel driver is loaded for the first time, and the kernel driver receives the information and updates the configuration.
6. The kernel-based driver implementation keyboard and mouse function modification apparatus according to claim 5, wherein: the communication pipeline establishing module is specifically used for:
after the kernel driver is installed in the operating system, the keyboard or the mouse is accessed, the operating system automatically mounts the installed kernel driver for the keyboard or the mouse, and informs an upper layer driver program of establishing connection with the kernel driver.
7. The kernel-based driver implementation keyboard and mouse function modification apparatus according to claim 5, wherein: the message callback module is specifically configured to:
and calling back a message for accessing/pulling out the registered equipment from the operating system through the upper driver, judging whether the keyboard or the mouse is corresponding or not through pid/vid information by the upper driver when the keyboard or the mouse is accessed, continuously checking whether the kernel driver is installed in the operating system or not if the keyboard or the mouse is corresponding, and installing the kernel driver for the operating system if the kernel driver is not installed.
8. The kernel-based driver implementation keyboard and mouse function modification apparatus according to claim 5, wherein: the device function modification module is specifically configured to:
and storing the configuration file in a local and server in a file/database mode through the upper layer driver, when a user modifies the key function, sending the configuration to the kernel driver through a communication pipeline established with the kernel driver by the upper layer driver, and receiving the information and updating the configuration by the kernel driver.
9. A computer device, characterized by: the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the kernel-based drive-based keyboard and mouse function modification method according to any one of claims 1 to 4.
10. A storage medium, characterized by: the storage medium stores a computer program which, when executed by a processor, implements the method of implementing a keymouse function modification based on a kernel driver as claimed in any one of claims 1 to 4.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011644395.0A CN112684914B (en) | 2020-12-31 | 2020-12-31 | Kernel-driven-based method for realizing keyboard and mouse function modification and related equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011644395.0A CN112684914B (en) | 2020-12-31 | 2020-12-31 | Kernel-driven-based method for realizing keyboard and mouse function modification and related equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112684914A true CN112684914A (en) | 2021-04-20 |
| CN112684914B CN112684914B (en) | 2021-11-19 |
Family
ID=75456919
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011644395.0A Active CN112684914B (en) | 2020-12-31 | 2020-12-31 | Kernel-driven-based method for realizing keyboard and mouse function modification and related equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112684914B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118939579A (en) * | 2024-10-14 | 2024-11-12 | 深圳市志海和科技有限公司 | Method, device, equipment and storage medium for changing input device function settings |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1591336A (en) * | 2003-08-25 | 2005-03-09 | 联想(北京)有限公司 | Method for simulating computer keyboard or mouse operation |
| US8046753B1 (en) * | 2003-06-18 | 2011-10-25 | Hewlett-Packard Development Company, L.P. | Mobile handset with symbian OS and update agent |
| CN102750164A (en) * | 2012-05-29 | 2012-10-24 | 湖北盛天网络技术股份有限公司 | Method for automatically configuring device driver |
| CN103312873A (en) * | 2012-03-12 | 2013-09-18 | 联想(北京)有限公司 | Data processing method and mobile terminal |
| CN103605430A (en) * | 2013-12-03 | 2014-02-26 | 深圳雷柏科技股份有限公司 | Method and device for simulating keyboard input |
| CN104991872A (en) * | 2015-06-19 | 2015-10-21 | 上海卓易科技股份有限公司 | Method and apparatus for implementing driving of intelligent device on peripheral device |
| CN106775833A (en) * | 2016-11-28 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | device driver loading method, terminal and system |
| CN107220190A (en) * | 2017-05-25 | 2017-09-29 | 无锡英斯特微电子有限公司 | It is a kind of to realize the self-defined USB mouse of two-way information interaction and the system and method for keyboard with host driven |
| CN109189566A (en) * | 2018-08-10 | 2019-01-11 | 深圳市智微智能科技开发有限公司 | A kind of method and Related product for realizing the upper layer android driving IO |
| CN109947482A (en) * | 2017-12-21 | 2019-06-28 | 深圳Tcl新技术有限公司 | A kind of loading method of USB device, storage medium and smart television |
| CN111222128A (en) * | 2019-12-31 | 2020-06-02 | 北京握奇数据股份有限公司 | Method and module for safely inputting and checking USBKey PIN code |
-
2020
- 2020-12-31 CN CN202011644395.0A patent/CN112684914B/en active Active
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8046753B1 (en) * | 2003-06-18 | 2011-10-25 | Hewlett-Packard Development Company, L.P. | Mobile handset with symbian OS and update agent |
| CN1591336A (en) * | 2003-08-25 | 2005-03-09 | 联想(北京)有限公司 | Method for simulating computer keyboard or mouse operation |
| CN103312873A (en) * | 2012-03-12 | 2013-09-18 | 联想(北京)有限公司 | Data processing method and mobile terminal |
| CN102750164A (en) * | 2012-05-29 | 2012-10-24 | 湖北盛天网络技术股份有限公司 | Method for automatically configuring device driver |
| CN103605430A (en) * | 2013-12-03 | 2014-02-26 | 深圳雷柏科技股份有限公司 | Method and device for simulating keyboard input |
| CN104991872A (en) * | 2015-06-19 | 2015-10-21 | 上海卓易科技股份有限公司 | Method and apparatus for implementing driving of intelligent device on peripheral device |
| CN106775833A (en) * | 2016-11-28 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | device driver loading method, terminal and system |
| CN107220190A (en) * | 2017-05-25 | 2017-09-29 | 无锡英斯特微电子有限公司 | It is a kind of to realize the self-defined USB mouse of two-way information interaction and the system and method for keyboard with host driven |
| CN109947482A (en) * | 2017-12-21 | 2019-06-28 | 深圳Tcl新技术有限公司 | A kind of loading method of USB device, storage medium and smart television |
| CN109189566A (en) * | 2018-08-10 | 2019-01-11 | 深圳市智微智能科技开发有限公司 | A kind of method and Related product for realizing the upper layer android driving IO |
| CN111222128A (en) * | 2019-12-31 | 2020-06-02 | 北京握奇数据股份有限公司 | Method and module for safely inputting and checking USBKey PIN code |
Non-Patent Citations (2)
| Title |
|---|
| 冒东奎: "《计算机软件技术基础》", 31 January 2003, 重庆:重庆大学出版社 * |
| 甘伟冲: "基于WEB中转的计算机移动管理系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑(月刊)》 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118939579A (en) * | 2024-10-14 | 2024-11-12 | 深圳市志海和科技有限公司 | Method, device, equipment and storage medium for changing input device function settings |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112684914B (en) | 2021-11-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111221476B (en) | Front-end command processing method and device for improving SSD performance, computer equipment and storage medium | |
| CN103412769B (en) | External card parameter configuration, equipment and system | |
| KR101743122B1 (en) | Client-server input method editor architecture | |
| US20010009020A1 (en) | Method and apparatus for providing seamless hooking and intercepting of selected kernel and hal exported entry points | |
| US20100318997A1 (en) | Annotating virtual application processes | |
| US20140259001A1 (en) | Automatic application updates | |
| WO2006023685A1 (en) | Method and apparatus for dynamic replacement of device drivers in the operating system kernel | |
| US9262178B2 (en) | Method for reducing platform boot times by providing lazy input/output abstractions | |
| US20140032810A1 (en) | Application sharing in multi host computing systems | |
| US20240378068A1 (en) | Control method and electronic device | |
| CN110244983B (en) | Method for fixing serial port number, terminal equipment and storage medium | |
| EP3617901A1 (en) | Data storage method and system | |
| CN112684914B (en) | Kernel-driven-based method for realizing keyboard and mouse function modification and related equipment | |
| WO2023216461A1 (en) | Task processing method and apparatus, and computer device | |
| EP4273731A1 (en) | Information processing method and apparatus | |
| CN110377328A (en) | A kind of data capture method, device, equipment and storage medium | |
| CN109739868B (en) | A data processing method and related equipment | |
| US10169113B2 (en) | Storage and application intercommunication using ACPI | |
| CN112015459A (en) | Method and device for upgrading image file, terminal and readable storage medium | |
| EP1690180B1 (en) | System for dynamic registration of privileged mode hooks in a device | |
| CN115757305A (en) | Data caching device and method and electronic equipment | |
| CN114880632A (en) | Method for obtaining confusion resources, intelligent terminal and computer readable storage medium | |
| US20040064676A1 (en) | Method and apparatus for broadcasting messages to guarantee knowledge of a state within a data processing system | |
| CN113961366A (en) | Kernel function calling method of operating system and computer equipment | |
| US11720395B1 (en) | Cloud thread synchronization |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |