CN119299534A - Mouse and keyboard information remote transmission method, device and system - Google Patents

Mouse and keyboard information remote transmission method, device and system Download PDF

Info

Publication number
CN119299534A
CN119299534A CN202411198091.4A CN202411198091A CN119299534A CN 119299534 A CN119299534 A CN 119299534A CN 202411198091 A CN202411198091 A CN 202411198091A CN 119299534 A CN119299534 A CN 119299534A
Authority
CN
China
Prior art keywords
mouse
keyboard
information
keyboard information
indication signal
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.)
Pending
Application number
CN202411198091.4A
Other languages
Chinese (zh)
Inventor
宋金凤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202411198091.4A priority Critical patent/CN119299534A/en
Publication of CN119299534A publication Critical patent/CN119299534A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention provides a remote transmission method, a remote transmission device and a remote transmission system for mouse and keyboard information, which comprise the steps of responding to an interrupt transmission polling request, obtaining a coding result corresponding to local mouse and keyboard information, generating a mouse and keyboard rest indication signal and sending the mouse and keyboard rest indication signal to a USB HOST module under the condition that the coding result is the same as a historical coding result corresponding to historical mouse and keyboard information, enabling the USB HOST module to pause interrupt transmission polling for the mouse and keyboard information, generating a mouse and keyboard action indication signal under the condition that the coding result is different from the historical coding result corresponding to the historical mouse and keyboard information, and sending the mouse and keyboard action indication signal to the USB HOST module, so that the USB HOST module restarts interrupt transmission polling for the mouse and keyboard information. The invention can avoid the repeated acquisition and repeated analysis of the same mouse and keyboard information by the driving software, and saves resources and bus bandwidth.

Description

Remote transmission method, device and system for mouse and keyboard information
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for remote transmission of mouse and keyboard information.
Background
With the rapid development of technology, the application of servers is becoming wider and wider, and the management and control of a large number of local servers is a very important problem. The remote control means that the local computer is connected through a local area network or the Internet, the desktop environment of the local computer is displayed on a remote computer, the work of configuring, monitoring, software maintenance, upgrading, troubleshooting and the like of the local computer is realized at the remote end, and the management work of a server is realized.
A terminal is implemented in a remote control system KVM (Keyboard Video Mouse) to access and control multiple computers. The KVM device allows an administrator to access and control multiple computers at one terminal by directly connecting the keyboard, video and mouse ports. And the mouse and the keyboard are operated at the remote end to realize the control of the local server. In the traditional information processing of the mouse and the keyboard, remote mouse and keyboard information is encoded and then transmitted to the local through a network, and local driving software receives and analyzes the information through a USB (Universal Serial Bus) system and transmits the information to an operating system or an application program to process corresponding mouse and keyboard events. In the process, the driver software can repeatedly acquire and repeatedly analyze the same mouse and keyboard information, thereby wasting resources and bus bandwidth.
To sum up, the prior art has the problem of large consumption of resources and bus bandwidth.
Disclosure of Invention
The invention provides a remote transmission method, device and system for mouse and keyboard information, which are used for solving the defect of large consumption of resources and bus bandwidth in the prior art and realizing remote transmission of the mouse and keyboard information with small consumption of the resources and the bus bandwidth.
The invention provides a remote transmission method of mouse and keyboard information, which is used for a USB DEVICE module and comprises the following steps:
responding to the interrupt transmission polling request, and acquiring a coding result corresponding to the current mouse keyboard information transmitted to the local;
generating a mouse-keyboard rest indication signal and sending the mouse-keyboard rest indication signal to a USB HOST module under the condition that the coding result is the same as a historical coding result corresponding to historical mouse-keyboard information, so that the USB HOST module pauses interrupt transmission polling of the mouse-keyboard information;
and generating a mouse and keyboard action indicating signal and sending the mouse and keyboard action indicating signal to the USB HOST module under the condition that the coding result is different from a historical coding result corresponding to the historical mouse and keyboard information, so that the USB HOST module restarts interrupt transmission polling of the mouse and keyboard information.
According to the remote transmission method of the mouse and keyboard information provided by the invention, the coding result corresponding to the mouse and keyboard information which is currently transmitted to the local is obtained, and the method specifically comprises the following steps:
capturing a coding result corresponding to mouse and keyboard information in the DDR based on an AHB bus protocol;
The method comprises the steps of obtaining mouse keyboard information of a user side based on Ethernet, performing coding processing on the mouse keyboard information, and storing the coding result to the DDR based on an AXI bus protocol, wherein the mouse keyboard information comprises the position of a mouse, the moving speed of the mouse, the clicking action of the mouse and the key information input by a keyboard receiving device.
The invention also provides a remote transmission method of the mouse and keyboard information, which is used for the USB HOST module and comprises the following steps:
Suspending transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard rest indication signal, wherein the mouse and keyboard rest indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is the same as the historical mouse and keyboard information;
and/or restarting interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal, wherein the mouse and keyboard action indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is different from the historical mouse and keyboard information.
According to the remote transmission method of the mouse and keyboard information provided by the invention, in response to receiving the mouse and keyboard action indication signal, the interrupt transmission polling of the mouse and keyboard information is restarted, and then the method further comprises the following steps:
And sending an interrupt transmission polling request to the USB DEVICE module.
The invention also provides a remote transmission device for mouse and keyboard information, which comprises:
the acquisition unit is used for responding to the interrupt transmission polling request and acquiring a coding result corresponding to the current mouse keyboard information transmitted to the local;
The first signal unit is used for generating a mouse and keyboard rest indication signal and sending the mouse and keyboard rest indication signal to the USB HOST module under the condition that the coding result is the same as a historical coding result corresponding to historical mouse and keyboard information, so that the USB HOST module pauses interrupt transmission polling of the mouse and keyboard information;
and the second signal unit is used for generating a mouse and keyboard action indication signal and sending the mouse and keyboard action indication signal to the USB HOST module under the condition that the coding result is different from the historical coding result corresponding to the historical mouse and keyboard information, so that the USB HOST module restarts interrupt transmission polling of the mouse and keyboard information.
The invention also provides a remote transmission device for mouse and keyboard information, which comprises:
The suspension unit is used for suspending the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard rest indication signal, wherein the mouse and keyboard rest indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is the same as the historical mouse and keyboard information;
And the restarting unit is used for restarting the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal, wherein the mouse and keyboard action indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is different from the historical mouse and keyboard information.
The invention also provides a remote transmission system of the mouse and keyboard information, which comprises a USB HOST module and a USB DEVICE module;
The USB HOST module is used for responding to an interrupt transmission polling request, acquiring a coding result corresponding to the mouse keyboard information which is currently transmitted to the local, generating a mouse keyboard rest indication signal and sending the mouse keyboard rest indication signal to the USB HOST module when the coding result is the same as a historical coding result corresponding to the historical mouse keyboard information, so that the USB HOST module pauses interrupt transmission polling of the mouse keyboard information;
The USB HOST module is used for stopping interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard rest indication signal, wherein the mouse and keyboard rest indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is the same as the historical mouse and keyboard information, and/or restarting interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal, and the mouse and keyboard action indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is different from the historical mouse and keyboard information.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the remote transmission method of the mouse and keyboard information is realized when the processor executes the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a mouse keyboard information remote transmission method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a mouse and keyboard information remote transmission method as described in any one of the above.
The remote transmission method, the remote transmission DEVICE and the remote transmission system for the mouse and keyboard information are characterized in that a USB HOST module is used for acquiring coding results of the local mouse and keyboard information, processing and analyzing the current coding results and the historical coding results, sending out a mouse and keyboard rest indication signal when the received current coding results and the received historical coding results are identical, sending out a mouse and keyboard action indication signal when the received current coding results and the received historical coding results are different, transmitting the indication signal to the USB HOST module, and suspending transmission polling of the mouse and keyboard information by the USB HOST module after the received mouse and keyboard rest indication signal until the mouse and keyboard action indication signal is received, and restarting the transmission polling of the mouse and keyboard information by the USB HOST module. The invention can avoid the repeated acquisition and repeated analysis of the same mouse and keyboard information by the driving software, and saves resources and bus bandwidth.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a remote transmission method for mouse and keyboard information provided by the invention.
Fig. 2 is a flow chart of another remote transmission method of mouse and keyboard information provided by the invention.
Fig. 3 is a schematic flow chart of a remote transmission method of mouse and keyboard information provided by the invention.
FIG. 4 is a schematic diagram of a USB DEVICE module according to the remote transmission method of mouse and keyboard information of the present invention;
FIG. 5 is a schematic diagram of an application environment of a remote transmission method of mouse and keyboard information provided by the invention;
Fig. 6 is a schematic structural diagram of a remote mouse-keyboard information transmission device according to the present invention.
Fig. 7 is a schematic structural diagram of another remote transmission device for mouse and keyboard information provided by the invention.
Fig. 8 is a schematic structural diagram of a remote transmission system for mouse and keyboard information provided by the invention.
Fig. 9 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 5, fig. 5 is a schematic diagram of an application environment provided by the present invention, where a remote end is a user end and includes a mouse and a keyboard, and mouse and keyboard information can be collected based on the remote end. Specifically, in the acquisition process, the mouse acquires action information of the mouse through a sensor or a sensor, wherein the action information comprises the position, the moving speed, the clicking action and the like of the mouse, and the keyboard receives input key information. The acquired mouse and keyboard information is converted into corresponding digital codes through coding.
The local server management system realizes the local processing of information. The network module receives the mouse and keyboard information transmitted to the local area through the Ethernet, and stores the acquired information into DDR (Double Data Rate Synchronous Dynamic Random Access Memory ).
The USB system receives remote mouse and keyboard information. The USB DEVICE module is communicated with the USB HOST module to realize signal and data transmission. In the actual transmission process, the USB HOST module actively initiates a request to the USB DEVICE module, and the USB DEVICE module responds according to the request. The USB system for transmitting the mouse and keyboard information is realized by interrupting transmission, the USB HOST module polls the USB DEVICE module at fixed time intervals and initiates a request, and the USB DEVICE module responds to the mouse and keyboard information data at the current moment.
When the USB DEVICE module detects that the mouse and the keyboard of the user terminal do not act, a mouse and keyboard rest indication signal is set and transmitted to the USB HOST module, after the USB HOST module receives the mouse and keyboard rest indication signal, the USB HOST module interrupts transmission to enter a sleep mode, and polling of the USB DEVICE module is suspended until the mouse and keyboard act indication signal is received, and then interrupt transmission polling of the USB DEVICE is restarted. When the USB DEVICE module detects that the mouse and the keyboard of the user side have actions, the mouse and the keyboard action indication signal is set and transmitted to the USB HOST module.
The following describes a remote transmission method of mouse and keyboard information according to the present invention with reference to fig. 1, the method is applicable to a USB DEVICE module, fig. 1 is a schematic flow chart of the remote transmission method of mouse and keyboard information according to the present invention, as shown in fig. 1, the method includes the following steps:
And 110, responding to the interrupt transmission polling request, and acquiring a coding result corresponding to the mouse and keyboard information which is currently transmitted to the local.
It should be noted that, the encoding result corresponding to the mouse and keyboard information currently transmitted to the local is obtained from the DDR by the USB DEVICE module.
And 120, generating a mouse and keyboard rest indication signal and sending the mouse and keyboard rest indication signal to the USB HOST module under the condition that the coding result is the same as the historical coding result corresponding to the historical mouse and keyboard information, so that the USB HOST module pauses interrupt transmission polling of the mouse and keyboard information.
After the encoding result is obtained in step 110, the received current encoding result is compared with the historical encoding result corresponding to the historical mouse and keyboard information, and processing analysis is performed, when the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, that is, the received mouse and keyboard information is the same as the last received mouse and keyboard information, a mouse and keyboard rest indication signal is sent out, and the mouse and keyboard rest indication signal is transmitted to the USB HOST module. The USB HOST module may suspend transmission of polling for the mouse-to-keyboard information based on a mouse-to-keyboard quiescence indication signal.
And 130, generating a mouse and keyboard action indication signal and sending the mouse and keyboard action indication signal to the USB HOST module under the condition that the coding result is different from a historical coding result corresponding to historical mouse and keyboard information, so that the USB HOST module restarts interrupt transmission polling of the mouse and keyboard information.
After the encoding result is obtained in step 110, the received current encoding result is compared with the historical encoding result corresponding to the historical mouse and keyboard information, and processing analysis is performed, when the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, that is, the received mouse and keyboard information is different from the last received mouse and keyboard information, a mouse and keyboard action indication signal is sent out, and the mouse and keyboard action indication signal is transmitted to the USB HOST module. The USB HOST module can restart interrupt transmission polling of the mouse and keyboard information according to a mouse and keyboard action indication signal.
The following further describes the encoding results corresponding to the mouse and keyboard information currently transmitted to the local from the DDR by the USB DEVICE module. In some embodiments, obtaining the encoding result corresponding to the mouse and keyboard information currently transmitted to the local device specifically includes:
capturing a coding result corresponding to mouse and keyboard information in the DDR based on an AHB bus protocol;
The method comprises the steps of obtaining mouse keyboard information of a user side based on Ethernet, performing coding processing on the mouse keyboard information, and storing the coding result to the DDR based on an AXI bus protocol, wherein the mouse keyboard information comprises the position of a mouse, the moving speed of the mouse, the clicking action of the mouse and the key information input by a keyboard receiving device.
Specifically, in the actual process, the mouse at the user side collects the action information of the mouse through the sensor or the sensor, including the position, the moving speed, the clicking action and the like of the mouse, and the keyboard receives the input key information. The acquired mouse and keyboard information is converted into corresponding digital codes through coding processing, and a coding result is obtained.
And then the mouse and keyboard information and the corresponding coding result are transmitted to the local area from the remote end through the Ethernet, and the local network module stores the mouse and keyboard information and the corresponding coding result to the DDR based on an AXI bus protocol. The USB DEVICE module captures mouse and keyboard information in the DDR based on the AHB bus protocol and corresponding coding results.
Further, the USB DEVICE module is further described. As shown in FIG. 4, in the USB DEVICE module, the USB DEVICE control module realizes control of the USB DEVICE based on the USB specification, the capturing module captures the mouse keyboard information and/or the mouse keyboard information stored in the DDR and the encoding result thereof based on the AHB bus, then stores the mouse keyboard information and/or the mouse keyboard information and the encoding result thereof in a cache in the USB DEVICE module, the comparing module compares the currently received mouse keyboard information and the last received mouse keyboard information, when the currently received mouse keyboard information and the last received mouse keyboard information are the same, the mouse keyboard at the far end is represented to have no action, when the currently received mouse keyboard information and the last received mouse keyboard information are different, the mouse keyboard at the far end is represented to have actions, the mouse keyboard action signal is pulled up, and the data caching module stores the captured mouse keyboard information.
The following describes another method for remote transmission of mouse and keyboard information according to the present invention with reference to fig. 2, the method is applicable to a USB HOST module, fig. 2 is a schematic flow chart of another method for remote transmission of mouse and keyboard information according to the present invention, and as shown in fig. 2, the method includes the following steps:
and 210, suspending transmission of the polling to the interruption of the mouse and keyboard information in response to receiving a mouse and keyboard rest indication signal, wherein the mouse and keyboard rest indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is the same as the historical mouse and keyboard information.
Specifically, the USB HOST module performs interrupt transmission polling on the USB DEVICE module within a set time interval, the driving software analyzes the mouse and keyboard information and transmits the mouse and keyboard information to the operating system or the application program, and after the USB HOST module receives the mouse and keyboard rest indication signal, the interrupt transmission polling on the mouse and keyboard information is suspended until the mouse and keyboard action indication signal is received.
The mouse-keyboard rest indication signal is generated when the currently captured mouse-keyboard information is the same as the last captured mouse-keyboard information, and the specific generation mode refers to the above embodiment, and the invention will not be repeated.
And 220, restarting interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal, wherein the mouse and keyboard action indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is different from the historical mouse and keyboard information.
And restarting interrupt transmission polling of the mouse and keyboard information after the USB HOST module receives the mouse and keyboard action indication signal.
The mouse and keyboard action indication signal is generated when the currently captured mouse and keyboard information is different from the last captured mouse and keyboard information, and the specific generation mode refers to the above embodiment, and the invention will not be repeated.
Further, in response to receiving the mouse-keyboard action indication signal, restarting the interrupt transmission polling of the mouse-keyboard information, and then further comprising:
And sending an interrupt transmission polling request to the USB DEVICE module.
Based on the above embodiment, as shown in fig. 3, a specific embodiment of interaction between the USB DEVICE module and the USB HOST module for remote transmission of mouse and keyboard information is provided below, which includes steps S1-S10:
S1, acquiring information by a mouse and a keyboard, wherein the mouse acquires action information of the mouse through an inductor or a sensor, the action information comprises the position, the moving speed, clicking actions and the like of the mouse, and the keyboard receives input key information. The acquired mouse and keyboard information is converted into corresponding digital codes through coding.
S2, the coded information of the mouse and the keyboard is transmitted to the local from the remote end through the Ethernet.
And S3, the local network module stores the mouse and keyboard information to the DDR based on an AXI bus protocol.
And S4, capturing mouse and keyboard information in the DDR by a capturing module in the USB DEVICE module based on an AHB bus protocol.
And S5, comparing the currently captured mouse and keyboard information with the last captured mouse and keyboard information by a comparison module in the USB DEVICE module.
And S6, if the currently captured mouse and keyboard information is different from the last captured mouse and keyboard information, representing that the mouse and the keyboard have actions, and setting a mouse and keyboard action indication signal.
And S7, the USB HOST module performs interrupt transmission polling on the USB DEVICE module within a set time interval, and the driving software analyzes the mouse keyboard information and transmits the mouse keyboard information to an operating system or an application program.
And S8, adding one to the number of the mouse and keyboard information, and entering a step S1.
And S9, if the currently captured mouse and keyboard information is the same as the last captured mouse and keyboard information, indicating that no action occurs on the mouse and keyboard, and setting a mouse and keyboard rest indication signal.
And S10, after the USB HOST module receives the mouse and keyboard rest indication signal, interrupting the polling to enter a sleep mode, stopping interrupting transmission polling to the USB DEVICE module, and entering step S8.
The remote transmission method of the mouse and keyboard information provided by the invention comprises the steps of acquiring the coding results of the local mouse and keyboard information through a USB HOST module, processing and analyzing the current coding result and the historical coding result, sending out a mouse and keyboard rest indication signal when the received current coding result and the received historical coding result are the same, sending out a mouse and keyboard action indication signal when the received current coding result and the received historical coding result are different, transmitting the indication signal to a USB HOST module, and suspending the interrupt transmission polling of the mouse and keyboard information until the mouse and keyboard action indication signal is received after the USB HOST module receives the mouse and keyboard rest indication signal. The invention can avoid the repeated acquisition and repeated analysis of the same mouse and keyboard information by the driving software, and saves resources and bus bandwidth.
The following describes a remote transmission device for mouse and keyboard information, and the remote transmission device for mouse and keyboard information and the remote transmission method for mouse and keyboard information described in the following can be referred to correspondingly. As shown in fig. 6, the apparatus includes:
an obtaining unit 610, configured to obtain, in response to the interrupt transmission polling request, a coding result corresponding to the mouse keyboard information currently transmitted to the local;
A first signal unit 620, configured to generate a mouse-keyboard rest indication signal and send the mouse-keyboard rest indication signal to a USB HOST module when the encoding result is the same as a historical encoding result corresponding to historical mouse-keyboard information, so that the USB HOST module pauses interrupt transmission polling of the mouse-keyboard information;
And the second signal unit 630 is configured to generate a mouse-keyboard action indication signal when the encoding result is different from a historical encoding result corresponding to historical mouse-keyboard information, and send the mouse-keyboard action indication signal to the USB HOST module, so that the USB HOST module restarts interrupt transmission polling for the mouse-keyboard information.
According to the remote transmission device for the mouse and keyboard information provided by the invention, the coding result corresponding to the mouse and keyboard information which is currently transmitted to the local is obtained, and the device specifically comprises the following steps:
capturing a coding result corresponding to mouse and keyboard information in the DDR based on an AHB bus protocol;
The method comprises the steps of obtaining mouse keyboard information of a user side based on Ethernet, performing coding processing on the mouse keyboard information, and storing the coding result to the DDR based on an AXI bus protocol, wherein the mouse keyboard information comprises the position of a mouse, the moving speed of the mouse, the clicking action of the mouse and the key information input by a keyboard receiving device.
The remote transmission DEVICE for the mouse and keyboard information acquires the coding results of the local mouse and keyboard information through the USB HOST module, processes and analyzes the current coding results and the historical coding results, sends out a mouse and keyboard rest indication signal when the received current coding results and the received historical coding results are the same, sends out a mouse and keyboard action indication signal when the received current coding results and the received historical coding results are different, transmits the indication signal to the USB HOST module, and after receiving the mouse and keyboard rest indication signal, the USB HOST module pauses interrupt transmission polling for the mouse and keyboard information until restarting interrupt transmission polling for the mouse and keyboard information after receiving the mouse and keyboard action indication signal. The invention can avoid the repeated acquisition and repeated analysis of the same mouse and keyboard information by the driving software, and saves resources and bus bandwidth.
The following describes another remote transmission device for mouse and keyboard information provided by the present invention, and the remote transmission device for mouse and keyboard information described below and the remote transmission method for mouse and keyboard information described above can be referred to correspondingly. As shown in fig. 7, the apparatus includes:
A suspension unit 710, configured to suspend transmission of polling for the mouse-keyboard information in response to receiving a mouse-keyboard-rest indication signal, where the mouse-keyboard-rest indication signal is generated by the USB DEVICE module when the current mouse-keyboard information is the same as the historical mouse-keyboard information;
And a restarting unit 720, configured to restart the interrupt transmission polling of the mouse-keyboard information in response to receiving a mouse-keyboard action indication signal, where the mouse-keyboard action indication signal is generated by the USB DEVICE module when the current mouse-keyboard information is different from the historical mouse-keyboard information.
According to the remote transmission device for the mouse and keyboard information provided by the invention, in response to receiving a mouse and keyboard action indication signal, the interrupt transmission polling for the mouse and keyboard information is restarted, and then the remote transmission device further comprises:
And sending an interrupt transmission polling request to the USB DEVICE module.
The remote transmission DEVICE for the mouse and keyboard information acquires the coding results of the local mouse and keyboard information through the USB HOST module, processes and analyzes the current coding results and the historical coding results, sends out a mouse and keyboard rest indication signal when the received current coding results and the received historical coding results are the same, sends out a mouse and keyboard action indication signal when the received current coding results and the received historical coding results are different, transmits the indication signal to the USB HOST module, and after receiving the mouse and keyboard rest indication signal, the USB HOST module pauses interrupt transmission polling for the mouse and keyboard information until restarting interrupt transmission polling for the mouse and keyboard information after receiving the mouse and keyboard action indication signal. The invention can avoid the repeated acquisition and repeated analysis of the same mouse and keyboard information by the driving software, and saves resources and bus bandwidth.
The mouse and keyboard information remote transmission system provided by the invention is described below, and the mouse and keyboard information remote transmission system described below and the mouse and keyboard information remote transmission method described above can be correspondingly referred to each other. As shown in fig. 8, the system includes a USB HOST module 810 and a USB DEVICE module 820;
The USB DEVICE module 810 is configured to respond to an interrupt transmission polling request, obtain a coding result corresponding to local mouse keyboard information, generate a mouse keyboard rest indication signal and send the mouse keyboard rest indication signal to the USB HOST module when the coding result is the same as a historical coding result corresponding to historical mouse keyboard information, so that the USB HOST module pauses interrupt transmission polling of the mouse keyboard information;
The USB HOST module 820 is configured to suspend transmission polling of the mouse-keyboard information in response to receiving a mouse-keyboard-rest indication signal, where the mouse-keyboard-rest indication signal is generated by the USB DEVICE module when the current mouse-keyboard information is the same as the historical mouse-keyboard information, and/or to restart transmission polling of the mouse-keyboard information in response to receiving a mouse-keyboard-action indication signal, where the mouse-keyboard-action indication signal is generated by the USB DEVICE module when the current mouse-keyboard information is different from the historical mouse-keyboard information.
According to the remote transmission system for the mouse and keyboard information provided by the invention, the coding result corresponding to the mouse and keyboard information which is currently transmitted to the local is obtained, and the remote transmission system specifically comprises the following steps:
capturing a coding result corresponding to mouse and keyboard information in the DDR based on an AHB bus protocol;
The method comprises the steps of obtaining mouse keyboard information of a user side based on Ethernet, performing coding processing on the mouse keyboard information, and storing the coding result to the DDR based on an AXI bus protocol, wherein the mouse keyboard information comprises the position of a mouse, the moving speed of the mouse, the clicking action of the mouse and the key information input by a keyboard receiving device.
According to the remote transmission system for mouse and keyboard information provided by the invention, in response to receiving a mouse and keyboard action indication signal, the interrupt transmission polling for the mouse and keyboard information is restarted, and then the remote transmission system further comprises:
And sending an interrupt transmission polling request to the USB DEVICE module.
The remote transmission system for the mouse and keyboard information acquires the coding results of the local mouse and keyboard information through the USB HOST module, processes and analyzes the current coding results and the historical coding results, sends out a mouse and keyboard rest indication signal when the received current coding results and the received historical coding results are the same, sends out a mouse and keyboard action indication signal when the received current coding results and the received historical coding results are different, transmits the indication signal to the USB HOST module, and after receiving the mouse and keyboard rest indication signal, the USB HOST module pauses interrupt transmission polling for the mouse and keyboard information until the mouse and keyboard action indication signal is received, and restarts interrupt transmission polling for the mouse and keyboard information. The invention can avoid the repeated acquisition and repeated analysis of the same mouse and keyboard information by the driving software, and saves resources and bus bandwidth.
Fig. 9 illustrates a physical schematic diagram of an electronic device, which may include a processor (processor) 910, a communication interface (Communications Interface) 920, a memory 930, and a communication bus 940, where the processor 910, the communication interface 920, and the memory 930 perform communication with each other through the communication bus 940, as shown in fig. 9. The processor 910 may invoke logic instructions in the memory 930 to perform the method for remote transmission of mouse and keyboard information provided by the methods described above.
Further, the logic instructions in the memory 930 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute the method for remotely transmitting mouse and keyboard information provided by the above methods.
In yet another aspect, the present invention further provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the method for remote transmission of mouse and keyboard information provided by the above methods.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention, and not for limiting the same, and although the present invention has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present invention.

Claims (10)

1. A remote transmission method for mouse and keyboard information is used for a USB DEVICE module and is characterized by comprising the following steps:
responding to the interrupt transmission polling request, and acquiring a coding result corresponding to the current mouse keyboard information transmitted to the local;
generating a mouse-keyboard rest indication signal and sending the mouse-keyboard rest indication signal to a USB HOST module under the condition that the coding result is the same as a historical coding result corresponding to historical mouse-keyboard information, so that the USB HOST module pauses interrupt transmission polling of the mouse-keyboard information;
and generating a mouse and keyboard action indicating signal and sending the mouse and keyboard action indicating signal to the USB HOST module under the condition that the coding result is different from a historical coding result corresponding to the historical mouse and keyboard information, so that the USB HOST module restarts interrupt transmission polling of the mouse and keyboard information.
2. The method for remotely transmitting mouse and keyboard information according to claim 1, wherein the step of obtaining the encoding result corresponding to the mouse and keyboard information currently transmitted to the local comprises the following steps:
capturing a coding result corresponding to mouse and keyboard information in the DDR based on an AHB bus protocol;
The method comprises the steps of obtaining mouse keyboard information of a user side based on Ethernet, performing coding processing on the mouse keyboard information, and storing the coding result to the DDR based on an AXI bus protocol, wherein the mouse keyboard information comprises the position of a mouse, the moving speed of the mouse, the clicking action of the mouse and the key information input by a keyboard receiving device.
3. The remote transmission method for the mouse and keyboard information is used for a USB HOST module and is characterized by comprising the following steps of:
Suspending transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard rest indication signal, wherein the mouse and keyboard rest indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is the same as the historical mouse and keyboard information;
and/or restarting interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal, wherein the mouse and keyboard action indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is different from the historical mouse and keyboard information.
4. The method for remotely transmitting mouse-over information according to claim 3, wherein in response to receiving the mouse-over action indication signal, restarting the interrupt transmission polling of the mouse-over information, further comprising:
And sending an interrupt transmission polling request to the USB DEVICE module.
5. A mouse-keyboard information remote transmission device, comprising:
the acquisition unit is used for responding to the interrupt transmission polling request and acquiring a coding result corresponding to the current mouse keyboard information transmitted to the local;
The first signal unit is used for generating a mouse and keyboard rest indication signal and sending the mouse and keyboard rest indication signal to the USB HOST module under the condition that the coding result is the same as a historical coding result corresponding to historical mouse and keyboard information, so that the USB HOST module pauses interrupt transmission polling of the mouse and keyboard information;
and the second signal unit is used for generating a mouse and keyboard action indication signal and sending the mouse and keyboard action indication signal to the USB HOST module under the condition that the coding result is different from the historical coding result corresponding to the historical mouse and keyboard information, so that the USB HOST module restarts interrupt transmission polling of the mouse and keyboard information.
6. A mouse-keyboard information remote transmission device, comprising:
The suspension unit is used for suspending the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard rest indication signal, wherein the mouse and keyboard rest indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is the same as the historical mouse and keyboard information;
And the restarting unit is used for restarting the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal, wherein the mouse and keyboard action indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is different from the historical mouse and keyboard information.
7. The remote transmission system for the mouse and keyboard information is characterized by comprising a USB HOST module and a USB DEVICE module;
The USB HOST module is used for responding to an interrupt transmission polling request, acquiring a coding result corresponding to the mouse keyboard information which is currently transmitted to the local, generating a mouse keyboard rest indication signal and sending the mouse keyboard rest indication signal to the USB HOST module when the coding result is the same as a historical coding result corresponding to the historical mouse keyboard information, so that the USB HOST module pauses interrupt transmission polling of the mouse keyboard information;
The USB HOST module is used for stopping interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard rest indication signal, wherein the mouse and keyboard rest indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is the same as the historical mouse and keyboard information, and/or restarting interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal, and the mouse and keyboard action indication signal is generated by the USB DEVICE module under the condition that the current mouse and keyboard information is different from the historical mouse and keyboard information.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the computer program when executed by the processor implements the method of remote transmission of mouse and keyboard information as claimed in any one of claims 1 to 4.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the mouse-keyboard information remote transmission method according to any one of claims 1 to 4.
10. A computer program product comprising a computer program which, when executed by a processor, implements a method for remote transmission of mouse-keyboard information as claimed in any one of claims 1 to 4.
CN202411198091.4A 2024-08-29 2024-08-29 Mouse and keyboard information remote transmission method, device and system Pending CN119299534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411198091.4A CN119299534A (en) 2024-08-29 2024-08-29 Mouse and keyboard information remote transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411198091.4A CN119299534A (en) 2024-08-29 2024-08-29 Mouse and keyboard information remote transmission method, device and system

Publications (1)

Publication Number Publication Date
CN119299534A true CN119299534A (en) 2025-01-10

Family

ID=94162237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411198091.4A Pending CN119299534A (en) 2024-08-29 2024-08-29 Mouse and keyboard information remote transmission method, device and system

Country Status (1)

Country Link
CN (1) CN119299534A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7711874B1 (en) * 2005-03-23 2010-05-04 American Megatrends, Inc. Usage of EHCI companion USB controllers for generating periodic events
CN102576083A (en) * 2009-08-11 2012-07-11 瑟塔思唯优科技有限责任公司 Positioning device communicatively coupled to or equipped with a mobile/portable device
CN104636103A (en) * 2014-12-31 2015-05-20 华为技术有限公司 Keyboard data transmission method and device
WO2017138950A1 (en) * 2016-02-12 2017-08-17 Hewlett Packard Enterprise Development Lp Keyboard data
WO2018107717A1 (en) * 2016-12-12 2018-06-21 威创集团股份有限公司 Method and system for mitigating feeling of lag of mouse cursor action in kvm system
CN109343808A (en) * 2018-09-06 2019-02-15 郑州云海信息技术有限公司 A kind of remote KVM mouse mode adaptation method, device, terminal and storage medium
US20200089527A1 (en) * 2018-09-17 2020-03-19 International Business Machines Corporation Intelligent Input/Output Operation Completion Modes in a High-Speed Network
CN111309168A (en) * 2020-01-16 2020-06-19 青岛每步数码科技有限公司 System and device for realizing remote control of intelligent equipment by mouse and keyboard
CN113750517A (en) * 2020-11-30 2021-12-07 上海达龙信息科技有限公司 Keyboard operation data transmission method and device and keyboard operation execution method and device
CN113824962A (en) * 2021-08-29 2021-12-21 山东云海国创云计算装备产业创新中心有限公司 Method, system, equipment and storage medium for transmitting cursor information
CN115344129A (en) * 2022-10-20 2022-11-15 中孚信息股份有限公司 One-way KVM keyboard state indication synchronization method, system and equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7711874B1 (en) * 2005-03-23 2010-05-04 American Megatrends, Inc. Usage of EHCI companion USB controllers for generating periodic events
CN102576083A (en) * 2009-08-11 2012-07-11 瑟塔思唯优科技有限责任公司 Positioning device communicatively coupled to or equipped with a mobile/portable device
CN104636103A (en) * 2014-12-31 2015-05-20 华为技术有限公司 Keyboard data transmission method and device
WO2017138950A1 (en) * 2016-02-12 2017-08-17 Hewlett Packard Enterprise Development Lp Keyboard data
WO2018107717A1 (en) * 2016-12-12 2018-06-21 威创集团股份有限公司 Method and system for mitigating feeling of lag of mouse cursor action in kvm system
CN109343808A (en) * 2018-09-06 2019-02-15 郑州云海信息技术有限公司 A kind of remote KVM mouse mode adaptation method, device, terminal and storage medium
US20200089527A1 (en) * 2018-09-17 2020-03-19 International Business Machines Corporation Intelligent Input/Output Operation Completion Modes in a High-Speed Network
CN111309168A (en) * 2020-01-16 2020-06-19 青岛每步数码科技有限公司 System and device for realizing remote control of intelligent equipment by mouse and keyboard
CN113750517A (en) * 2020-11-30 2021-12-07 上海达龙信息科技有限公司 Keyboard operation data transmission method and device and keyboard operation execution method and device
CN113824962A (en) * 2021-08-29 2021-12-21 山东云海国创云计算装备产业创新中心有限公司 Method, system, equipment and storage medium for transmitting cursor information
CN115344129A (en) * 2022-10-20 2022-11-15 中孚信息股份有限公司 One-way KVM keyboard state indication synchronization method, system and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
崔阳: "专用型低速USB设备通讯模块的研究", 现代计算机, 30 September 2016 (2016-09-30) *
高志新 等: "访问键盘芯片获取 PS/2 键盘按键信息", 信息安全与通信保密, 30 June 2011 (2011-06-30) *

Similar Documents

Publication Publication Date Title
KR20210156243A (en) Training methods of deep-running frameworks, devices and storage media
CN112616024A (en) USB camera data acquisition method and device, electronic equipment and storage medium
CN115543746B (en) Graphics processor monitoring method, system, device and electronic equipment
CN114675983A (en) Business data processing method, device, storage medium and electronic device
CN112437047A (en) Remote server management method, system and related device
CN113656241A (en) System and method for managing and controlling full life cycle of container terminal
CN116126409A (en) Method, device, equipment and medium for acquiring and modifying system configuration information
CN115904667A (en) A data processing method, device, equipment and storage medium
JP2015108898A (en) Abnormality detection system and abnormality detection method
CN117112339A (en) Abnormality detection method, abnormality detection device, electronic device, and computer program product
CN112799623A (en) BMC-based server interface remote display method, system and related equipment
CN115473947B (en) Data collection method, device and server based on cloud-edge collaboration
CN119299534A (en) Mouse and keyboard information remote transmission method, device and system
CN106294364B (en) Method and device for realizing web crawler to capture webpage
CN106155859B (en) monitoring management system, information processing method and high-density server
CN110942583A (en) Method, device and terminal for reporting smoke alarm
CN118101440B (en) Industrial Internet of Things data analysis method, Internet of Things system and equipment based on cloud computing
CN116902041B (en) Interface data processing method and device, electronic equipment and medium
CN105306270A (en) Simple network management protocol (SNMP) based data monitoring methods, and devices
CN112637119A (en) Host scanning method and device, storage medium and electronic equipment
CN116347169B (en) Video Service Processing Method and System Based on Edge Server
CN107465727B (en) Time monitoring system and method
CN118963542A (en) Method, device, equipment and storage medium for obtaining vehicle soft switch status
CN114684167B (en) Methods, devices, and autonomous vehicles for controlling vehicles based on multi-controller area networks
CN116682195A (en) Vehicle data acquisition method, device, equipment and medium

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