Remote mouse and keyboard information transmission method, device and system
Through communication between the USB DEVICE module and the USB HOST module, the indication signal is generated based on the encoding results of the mouse and keyboard information to control interrupt transmission polling, which solves the problem of large resource and bus bandwidth consumption in the remote control system, and realizes the resource and bandwidth Savings.
Patent Information
- Application Number
- CN202411198091.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-08-29
AI Technical Summary
In the prior art, remote control systems have problems of large resource and bus bandwidth consumption when transmitting mouse and keyboard information, resulting in waste of resources and inefficiency.
Through the communication between the USB DEVICE module and the USB HOST module, the coded result of the mouse and keyboard information is obtained by using the interrupt transmission polling request, and the encoding result of the current encoding result and the historical encoding result is generated, and the static indication signal or action indication signal is generated to control the interrupt Transfer the pause or restart of polling to avoid repeated acquisition and parsing of the same information.
It effectively saves resources and bus bandwidth, reduces the repeated acquisition and parsing of the same information by the driver software, and improves transmission efficiency.
Smart Images

Figure CN119299534A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device and system for remotely transmitting mouse and keyboard information. Background Art
[0002] With the rapid development of science and technology, the application of servers is becoming more and more extensive. The management and control of a large number of local servers is a very important issue. Remote control means connecting the local computer through a local area network or the Internet, displaying the desktop environment of the local computer on the remote computer, and realizing the configuration, monitoring, software maintenance, upgrade, troubleshooting and other tasks of the local computer remotely, thus realizing the management of the server.
[0003] In the remote control system, KVM (Keyboard Video Mouse) enables one terminal to access and control multiple computers. KVM devices directly connect to the keyboard, video and mouse ports, allowing administrators to access and control multiple computers at one terminal. The local server can be controlled by operating the mouse and keyboard remotely. Traditionally, the information processing of the mouse and keyboard is that the remote mouse and keyboard information is encoded and transmitted to the local through the network. The local driver software receives and parses this information through the USB (Universal Serial Bus) system and transmits it to the operating system or application to process the corresponding mouse and keyboard events. In this process, the driver software will repeatedly obtain and parse the same mouse and keyboard information, wasting resources and bus bandwidth.
[0004] In summary, the existing technology has the problem of large consumption of resources and bus bandwidth. Summary of the invention
[0005] The present invention provides a method, device and system for remote transmission of mouse and keyboard information, which are used to solve the defects of large resource and bus bandwidth consumption in the prior art and realize remote transmission of mouse and keyboard information with small resource and bus bandwidth consumption.
[0006] The present invention provides a method for remotely transmitting mouse and keyboard information, which is used in a USB DEVICE module and comprises the following steps: In response to the interrupt transmission polling request, obtaining the encoding result corresponding to the mouse and keyboard information currently transmitted to the local; When the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, a mouse and keyboard stillness indication signal is generated, and the mouse and keyboard stillness indication signal is sent to the USB HOST module, so that the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information; When the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, a mouse and keyboard action indication signal is generated and sent to the USB HOST module, so that the USB HOST module restarts the interrupt transmission polling of the mouse and keyboard information.
[0007] According to a method for remotely transmitting mouse and keyboard information provided by the present invention, obtaining the encoding result corresponding to the mouse and keyboard information currently transmitted to the local computer specifically includes: Capture the encoding results corresponding to the mouse and keyboard information in DDR based on the AHB bus protocol; Among them, the mouse and keyboard information includes the position of the mouse, the mouse movement speed, the mouse click action and the key information of the keyboard receiving input; the encoding result corresponding to the mouse and keyboard information in the DDR is obtained by obtaining the mouse and keyboard information of the user end based on Ethernet and encoding the mouse and keyboard information, and then storing the encoding result in the DDR based on the AXI bus protocol.
[0008] The present invention also provides a method for remotely transmitting mouse and keyboard information, which is used in a USB HOST module and comprises the following steps: In response to receiving a mouse and keyboard stillness indication signal, suspending the interrupt transmission polling of the mouse and keyboard information; the mouse and keyboard stillness indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is the same as the historical mouse and keyboard information; And / or, in response to receiving a mouse and keyboard action indication signal, restarting the interrupt transmission polling of the mouse and keyboard information; the mouse and keyboard action indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is different from the historical mouse and keyboard information.
[0009] According to a method for remotely transmitting mouse and keyboard information provided by the present invention, in response to receiving a mouse and keyboard action indication signal, the interrupt transmission polling of the mouse and keyboard information is restarted, and then the method further includes: An interrupt transmission polling request is sent to the USB DEVICE module.
[0010] The present invention also provides a device for remotely transmitting mouse and keyboard information, comprising: An acquisition unit, used for acquiring the encoding result corresponding to the mouse and keyboard information currently transmitted to the local in response to the interrupt transmission polling request; A first signal unit is used for generating a mouse and keyboard still indication signal when the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, and sending the mouse and keyboard still indication signal to the USB HOST module, so that the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information; The second signal unit is used to generate a mouse and keyboard action indication signal when the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, and send the mouse and keyboard action indication signal to the USB HOST module, so that the USB HOST module restarts the interrupt transmission polling of the mouse and keyboard information.
[0011] The present invention also provides a device for remotely transmitting mouse and keyboard information, comprising: A pause unit, used for suspending the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard stillness indication signal; the mouse and keyboard stillness indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is the same as the historical mouse and keyboard information; The restart unit is used to restart the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal; the mouse and keyboard action indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is different from the historical mouse and keyboard information.
[0012] The present invention also provides a mouse and keyboard information remote transmission system, comprising a USB HOST module and a USB DEVICE module; The USB DEVICE module is used to respond to the interrupt transmission polling request and obtain the encoding result corresponding to the mouse and keyboard information currently transmitted to the local; if the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, generate a mouse and keyboard static indication signal, and send the mouse and keyboard static indication signal to the USB HOST module, so that the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information; if the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, generate a mouse and keyboard action indication signal, and send the mouse and keyboard action indication signal to the USB HOST module, so that the USB HOST module restarts the interrupt transmission polling of the mouse and keyboard information; The USB HOST module is used to suspend the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard stillness indication signal; the mouse and keyboard stillness indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is the same as the historical mouse and keyboard information; and / or, in response to receiving a mouse and keyboard action indication signal, restart the interrupt transmission polling of the mouse and keyboard information; the mouse and keyboard action indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is different from the historical mouse and keyboard information.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above methods for remotely transmitting mouse and keyboard information is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for remotely transmitting mouse and keyboard information as described in any one of the above is implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above methods for remotely transmitting mouse and keyboard information.
[0016] The invention provides a method, device and system for remote transmission of mouse and keyboard information. The method, device and system obtain the encoding result of the mouse and keyboard information transmitted to the local computer through a USB DEVICE module, and process and analyze the current encoding result and the historical encoding result. When the received current encoding result and the historical encoding result are the same, a mouse and keyboard static indication signal is issued. When the received current encoding result and the historical encoding result are different, a mouse and keyboard action indication signal is issued. The indication signal is transmitted to a USB HOST module. After receiving the mouse and keyboard static indication signal, the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information until the mouse and keyboard action indication signal is received, and then the interrupt transmission polling of the mouse and keyboard information is restarted. The invention can avoid repeated acquisition and repeated analysis of the same mouse and keyboard information by the driver software, saving resources and bus bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 The present invention is a flowchart of a method for remotely transmitting mouse and keyboard information.
[0019] Figure 2 It is a flow chart of another method for remotely transmitting mouse and keyboard information provided by the present invention.
[0020] Figure 3 It is a flow chart of the method for remotely transmitting mouse and keyboard information provided by the present invention.
[0021] Figure 4It is a structural schematic diagram of a USB DEVICE module of the method for remotely transmitting mouse and keyboard information provided by the present invention; Figure 5 It is a schematic diagram of the application environment of the method for remotely transmitting mouse and keyboard information provided by the present invention; Figure 6 The present invention is a schematic structural diagram of a device for remotely transmitting mouse and keyboard information.
[0022] Figure 7 It is a structural schematic diagram of another device for remotely transmitting mouse and keyboard information provided by the present invention.
[0023] Figure 8 It is a structural schematic diagram of the mouse and keyboard information remote transmission system provided by the present invention.
[0024] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] like Figure 5 As shown, Figure 5 is a schematic diagram of the application environment provided by the present invention, wherein the remote end is the user end and includes a mouse and a keyboard, and the mouse and keyboard information can be collected based on the remote end. Specifically, during the collection process, the mouse collects the action information of the mouse through a sensor or a sensor, including the position, movement speed, click action, etc. of the mouse; the keyboard receives the input key information. The collected mouse and keyboard information is converted into corresponding digital codes through encoding processing.
[0027] The local server management system processes the information locally. The network module receives the mouse and keyboard information transmitted to the local area through Ethernet, and stores the collected information in DDR (Double Data Rate Synchronous Dynamic Random Access Memory).
[0028] The USB system receives the remote mouse and keyboard information. The USB DEVICE module communicates with the USB HOST module to realize the transmission of signals and data. 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 implements the transmission of mouse and keyboard information through interrupt transmission. The USBHOST module polls the USB DEVICE module at a fixed time interval and initiates a request, and the USB DEVICE module responds to the mouse and keyboard information data at the current moment.
[0029] When the USB DEVICE module detects that the user-side mouse and keyboard are not moving, the mouse and keyboard stillness indication signal is set and transmitted to the USB HOST module. After receiving the mouse and keyboard stillness indication signal, the USB HOST module interrupts the transmission and enters the sleep mode, and suspends the polling of the USB DEVICE module until the mouse and keyboard action indication signal is received, and then the interruption transmission polling of the USB DEVICE is restarted. Among them, the mouse and keyboard action indication signal is set and transmitted to the USB HOST module when the USB DEVICE module detects that the user-side mouse and keyboard are moving.
[0030] Combine the following Figure 1 A method for remotely transmitting mouse and keyboard information of the present invention is described, and the method is applicable to a USBDEVICE module. Figure 1 FIG. 1 is a flow chart of a method for remotely transmitting mouse and keyboard information provided by the present invention. Figure 1 As shown, the method comprises the following steps: Step 110: In response to the interrupt transmission polling request, the encoding result corresponding to the mouse and keyboard information currently transmitted to the local is obtained.
[0031] It should be noted that the encoding result corresponding to the mouse and keyboard information currently transmitted to the local device is obtained by the USB DEVICE module from the DDR.
[0032] Step 120: When the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, a mouse and keyboard stillness indication signal is generated, and the mouse and keyboard stillness indication signal is sent to the USB HOST module, so that the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information.
[0033] 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 processed and analyzed. 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 mouse and keyboard information received last time, a mouse and keyboard still indication signal is sent at this time, and the mouse and keyboard still indication signal is transmitted to the USB HOST module. The USB HOST module can suspend the interrupt transmission polling of the mouse and keyboard information according to the mouse and keyboard still indication signal.
[0034] Step 130: When the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, a mouse and keyboard action indication signal is generated, and the mouse and keyboard action indication signal is sent to the USB HOST module, so that the USB HOST module restarts the interrupt transmission polling of the mouse and keyboard information.
[0035] 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 processed and analyzed. 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 mouse and keyboard information received last time, a mouse and keyboard action indication signal is sent at this time, and the mouse and keyboard action indication signal is transmitted to the USB HOST module. The USB HOST module can restart the interrupt transmission polling of the mouse and keyboard information according to the mouse and keyboard action indication signal.
[0036] The following further describes how the USB DEVICE module obtains the encoding result corresponding to the mouse and keyboard information currently transmitted to the local from the DDR. In some embodiments, obtaining the encoding result corresponding to the mouse and keyboard information currently transmitted to the local specifically includes: Capture the encoding results corresponding to the mouse and keyboard information in DDR based on the AHB bus protocol; Among them, the mouse and keyboard information includes the position of the mouse, the mouse movement speed, the mouse click action and the key information of the keyboard receiving input; the encoding result corresponding to the mouse and keyboard information in the DDR is obtained by obtaining the mouse and keyboard information of the user end based on Ethernet and encoding the mouse and keyboard information, and then storing the encoding result in the DDR based on the AXI bus protocol.
[0037] Specifically, in the actual process, the user's mouse collects the mouse's action information through a sensor or a sensor, including the mouse's position, movement speed, click action, etc. The keyboard receives the input key information. The collected mouse and keyboard information is converted into a corresponding digital code through encoding processing to obtain the encoding result.
[0038] After that, the mouse and keyboard information and the corresponding encoding results are transmitted from the remote end to the local via Ethernet. The local network module stores the mouse and keyboard information and the corresponding encoding results in DDR based on the AXI bus protocol. The USB DEVICE module captures the mouse and keyboard information and the corresponding encoding results in DDR based on the AHB bus protocol.
[0039] Furthermore, the USB DEVICE module is further described. Figure 4 As shown, in the USB DEVICE module, the USB DEVICE control module implements control of the USB device based on the USB specification; the capture module captures the mouse and keyboard information and / or the mouse and keyboard information and their encoding results stored in the DDR based on the AHB bus, and then stores the mouse and keyboard information and / or the mouse and keyboard information and their encoding results in the cache in the USB DEVICE module; the comparison module compares the currently received mouse and keyboard information with the last received mouse and keyboard information, when the currently received mouse and keyboard information is the same as the last received mouse and keyboard information, it indicates that the remote mouse and keyboard have no action, and the mouse and keyboard static signal is pulled high; when the currently received mouse and keyboard information is different from the last received mouse and keyboard information, it indicates that the remote mouse and keyboard have action, and the mouse and keyboard action signal is pulled high; the data cache module stores the captured mouse and keyboard information.
[0040] Combine the following Figure 2 Another method for remotely transmitting mouse and keyboard information of the present invention is described, which is applicable to the USBHOST module. Figure 2 FIG. 1 is a flow chart of another method for remotely transmitting mouse and keyboard information provided by the present invention. Figure 2 As shown, the method comprises the following steps: Step 210: In response to receiving a mouse and keyboard stillness indication signal, suspending the interrupt transmission polling of the mouse and keyboard information; the mouse and keyboard stillness indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is the same as the historical mouse and keyboard information.
[0041] Specifically, since the USB HOST module performs interrupt transmission polling on the USB DEVICE module at a set time interval, the driver software parses the mouse and keyboard information and transmits it to the operating system or application. After the USB HOST module receives the mouse and keyboard stillness indication signal, it suspends the interrupt transmission polling of the mouse and keyboard information until it receives the mouse and keyboard action indication signal.
[0042] The mouse and keyboard still indication signal is generated when the currently captured mouse and keyboard information is the same as the last captured mouse and keyboard information. The specific generation method is described in the above embodiment, which will not be elaborated in the present invention.
[0043] Step 220: In response to receiving a mouse and keyboard action indication signal, restart the interrupt transmission polling of the mouse and keyboard information; the mouse and keyboard action indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is different from the historical mouse and keyboard information.
[0044] After the USB HOST module receives the mouse and keyboard action indication signal, it restarts the interrupt transmission polling of the mouse and keyboard information.
[0045] 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. The specific generation method is shown in the above embodiment, and the present invention will not elaborate on it.
[0046] Further, in response to receiving the mouse and keyboard action indication signal, restarting the interrupt transmission polling of the mouse and keyboard information, and then further comprising: An interrupt transmission polling request is sent to the USB DEVICE module.
[0047] Based on the above embodiments, Figure 3 As shown, a specific embodiment of the interaction between the USB DEVICE module and the USB HOST module to perform remote transmission of mouse and keyboard information is given below, including steps S1-S10: S1: Mouse and keyboard collect information. The mouse collects the action information of the mouse through the inductor or sensor, including the position, movement speed, click action, etc. of the mouse; the keyboard receives the input key information. The collected mouse and keyboard information is converted into corresponding digital codes through encoding processing.
[0048] S2: The encoded information of the mouse and keyboard is transmitted from the remote end to the local end via Ethernet.
[0049] S3: The local network module stores the mouse and keyboard information in DDR based on the AXI bus protocol.
[0050] S4: The capture module in the USB DEVICE module captures the mouse and keyboard information in DDR based on the AHB bus protocol.
[0051] S5: The comparison module in the USB DEVICE module compares the currently captured mouse and keyboard information with the last captured mouse and keyboard information.
[0052] S6: If the currently captured mouse and keyboard information is different from the last captured mouse and keyboard information, it indicates that there is an action on the mouse and keyboard, and the mouse and keyboard action indication signal is set.
[0053] S7: The USB HOST module performs interrupt transmission polling on the USB DEVICE module at the set time interval, and the driver software parses the mouse and keyboard information and passes it to the operating system or application.
[0054] S8: The number of mouse and keyboard information is increased by one, and the process goes to step S1.
[0055] S9: If the currently captured mouse and keyboard information is the same as the last captured mouse and keyboard information, it indicates that no mouse and keyboard action has occurred, and the mouse and keyboard static indication signal is set.
[0056] S10: After receiving the mouse and keyboard stillness indication signal, the USB HOST module interrupts polling and enters the sleep mode, stops interrupting the transmission polling of the USB DEVICE module, and enters step S8.
[0057] The method for remote transmission of mouse and keyboard information provided by the present invention obtains the encoding result of the mouse and keyboard information transmitted to the local through the USB DEVICE module, processes and analyzes the current encoding result and the historical encoding result, and sends a mouse and keyboard static indication signal when the received current encoding result and the historical encoding result are the same, and sends a mouse and keyboard action indication signal when the received current encoding result and the historical encoding result are different; the indication signal is transmitted to the USBHOST module, and the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information after receiving the mouse and keyboard static indication signal, and restarts the interrupt transmission polling of the mouse and keyboard information after receiving the mouse and keyboard action indication signal. The present invention can avoid repeated acquisition and repeated analysis of the same mouse and keyboard information by the driver software, saving resources and bus bandwidth.
[0058] The following is a description of a remote transmission device for mouse and keyboard information provided by the present invention. 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 each other. Figure 6 As shown, the device comprises: The acquisition unit 610 is used to respond to the interrupt transmission polling request and acquire the encoding result corresponding to the mouse and keyboard information currently transmitted to the local computer; The first signal unit 620 is used to generate a mouse and keyboard still indication signal when the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, and send the mouse and keyboard still indication signal to the USB HOST module, so that the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information; The second signal unit 630 is used to generate a mouse and keyboard action indication signal when the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, and send the mouse and keyboard action indication signal to the USB HOST module, so that the USB HOST module restarts the interrupt transmission polling of the mouse and keyboard information.
[0059] According to a mouse and keyboard information remote transmission device provided by the present invention, obtaining the encoding result corresponding to the mouse and keyboard information currently transmitted to the local device specifically includes: Capture the encoding results corresponding to the mouse and keyboard information in DDR based on the AHB bus protocol; Among them, the mouse and keyboard information includes the position of the mouse, the mouse movement speed, the mouse click action and the key information of the keyboard receiving input; the encoding result corresponding to the mouse and keyboard information in the DDR is obtained by obtaining the mouse and keyboard information of the user end based on Ethernet and encoding the mouse and keyboard information, and then storing the encoding result in the DDR based on the AXI bus protocol.
[0060] The device for remotely transmitting mouse and keyboard information provided by the present invention obtains the encoding result of the mouse and keyboard information transmitted to the local through the USB DEVICE module, processes and analyzes the current encoding result and the historical encoding result, and sends a mouse and keyboard static indication signal when the received current encoding result and the historical encoding result are the same, and sends a mouse and keyboard action indication signal when the received current encoding result and the historical encoding result are different; the indication signal is transmitted to the USBHOST module, and the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information after receiving the mouse and keyboard static indication signal, and restarts the interrupt transmission polling of the mouse and keyboard information after receiving the mouse and keyboard action indication signal. The present invention can avoid the driver software from repeatedly obtaining and analyzing the same mouse and keyboard information, saving resources and bus bandwidth.
[0061] Another remote transmission device for mouse and keyboard information provided by the present invention is described below. The remote transmission device for mouse and keyboard information described below and the other remote transmission method for mouse and keyboard information described above can be referred to each other. Figure 7 As shown, the device comprises: The pausing unit 710 is used to suspend the interrupt transmission polling of the mouse and keyboard information in response to receiving the mouse and keyboard stillness indication signal; the mouse and keyboard stillness indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is the same as the historical mouse and keyboard information; The restart unit 720 is used to restart the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal; the mouse and keyboard action indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is different from the historical mouse and keyboard information.
[0062] According to a mouse and keyboard information remote transmission device provided by the present invention, in response to receiving a mouse and keyboard action indication signal, restarting the interrupt transmission polling of the mouse and keyboard information, thereafter further comprising: An interrupt transmission polling request is sent to the USB DEVICE module.
[0063] The device for remotely transmitting mouse and keyboard information provided by the present invention obtains the encoding result of the mouse and keyboard information transmitted to the local through the USB DEVICE module, processes and analyzes the current encoding result and the historical encoding result, and sends a mouse and keyboard static indication signal when the received current encoding result and the historical encoding result are the same, and sends a mouse and keyboard action indication signal when the received current encoding result and the historical encoding result are different; the indication signal is transmitted to the USBHOST module, and the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information after receiving the mouse and keyboard static indication signal, and restarts the interrupt transmission polling of the mouse and keyboard information after receiving the mouse and keyboard action indication signal. The present invention can avoid the driver software from repeatedly obtaining and analyzing the same mouse and keyboard information, saving resources and bus bandwidth.
[0064] The following is a description of the mouse and keyboard information remote transmission system provided by the present invention. The mouse and keyboard information remote transmission system described below and the mouse and keyboard information remote transmission method described above can be referred to each other. Figure 8 As shown, the system includes a USB HOST module 810 and a USB DEVICE module 820; The USB DEVICE module 810 is used to respond to the interrupt transmission polling request and obtain the encoding result corresponding to the mouse and keyboard information currently transmitted to the local; if the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, generate a mouse and keyboard static indication signal, and send the mouse and keyboard static indication signal to the USB HOST module, so that the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information; if the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, generate a mouse and keyboard action indication signal, and send the mouse and keyboard action indication signal to the USB HOST module, so that the USB HOST module restarts the interrupt transmission polling of the mouse and keyboard information; The USB HOST module 820 is used to suspend the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard stillness indication signal; the mouse and keyboard stillness indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is the same as the historical mouse and keyboard information; and / or, in response to receiving a mouse and keyboard action indication signal, restart the interrupt transmission polling of the mouse and keyboard information; the mouse and keyboard action indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is different from the historical mouse and keyboard information.
[0065] According to a mouse and keyboard information remote transmission system provided by the present invention, obtaining the encoding result corresponding to the mouse and keyboard information currently transmitted to the local device specifically includes: Capture the encoding results corresponding to the mouse and keyboard information in DDR based on the AHB bus protocol; Among them, the mouse and keyboard information includes the position of the mouse, the mouse movement speed, the mouse click action and the key information of the keyboard receiving input; the encoding result corresponding to the mouse and keyboard information in the DDR is obtained by obtaining the mouse and keyboard information of the user end based on Ethernet and encoding the mouse and keyboard information, and then storing the encoding result in the DDR based on the AXI bus protocol.
[0066] According to a mouse and keyboard information remote transmission system provided by the present invention, in response to receiving a mouse and keyboard action indication signal, the interrupt transmission polling of the mouse and keyboard information is restarted, and then the system further comprises: An interrupt transmission polling request is sent to the USB DEVICE module.
[0067] The mouse and keyboard information remote transmission system provided by the present invention obtains the encoding result of the mouse and keyboard information transmitted to the local through the USB DEVICE module, and processes and analyzes the current encoding result and the historical encoding result, and sends a mouse and keyboard static indication signal when the received current encoding result and the historical encoding result are the same, and sends a mouse and keyboard action indication signal when the received current encoding result and the historical encoding result are different; the indication signal is transmitted to the USBHOST module, and the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information after receiving the mouse and keyboard static indication signal, and restarts the interrupt transmission polling of the mouse and keyboard information after receiving the mouse and keyboard action indication signal. The present 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.
[0068] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the mouse and keyboard information remote transmission methods provided by the above methods.
[0069] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0070] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the remote transmission method of mouse and keyboard information provided by the above methods.
[0071] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the mouse and keyboard information remote transmission method provided by the above methods.
[0072] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for remote transmission of mouse and keyboard information, used in a USB DEVICE module, characterized in that: include: In response to the interrupt transmission polling request, obtaining the encoding result corresponding to the mouse and keyboard information currently transmitted to the local; When the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, a mouse and keyboard stillness indication signal is generated, and the mouse and keyboard stillness indication signal is sent to the USB HOST module, so that the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information; When the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, a mouse and keyboard action indication signal is generated and sent to the USB HOST module, so that the USB HOST module restarts the interrupt transmission polling of the mouse and keyboard information.
2. The method for remotely transmitting mouse and keyboard information according to claim 1, characterized in that: Get the encoding result corresponding to the mouse and keyboard information currently transmitted to the local computer, including: Capture the encoding results corresponding to the mouse and keyboard information in DDR based on the AHB bus protocol; Among them, the mouse and keyboard information includes the position of the mouse, the mouse movement speed, the mouse click action and the key information of the keyboard receiving input; the encoding result corresponding to the mouse and keyboard information in the DDR is obtained by obtaining the mouse and keyboard information of the user end based on Ethernet and encoding the mouse and keyboard information, and then storing the encoding result in the DDR based on the AXI bus protocol.
3. A method for remote transmission of mouse and keyboard information, used in a USB HOST module, characterized in that: include: In response to receiving a mouse and keyboard stillness indication signal, suspending interrupt transmission polling of mouse and keyboard information; The mouse and keyboard static indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is the same as the historical mouse and keyboard information; And / or, in response to receiving a mouse and keyboard action indication signal, restarting the interrupt transmission polling of the mouse and keyboard information; the mouse and keyboard action indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is different from the historical mouse and keyboard information.
4. The method for remotely transmitting mouse and keyboard information according to claim 3, characterized in that: In response to receiving the mouse and keyboard action indication signal, restarting the interrupt transmission polling of the mouse and keyboard information, and then further comprising: An interrupt transmission polling request is sent to the USB DEVICE module.
5. A device for remotely transmitting mouse and keyboard information, characterized in that: include: An acquisition unit, used for acquiring the encoding result corresponding to the mouse and keyboard information currently transmitted to the local in response to the interrupt transmission polling request; A first signal unit is used for generating a mouse and keyboard still indication signal when the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, and sending the mouse and keyboard still indication signal to the USB HOST module, so that the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information; The second signal unit is used to generate a mouse and keyboard action indication signal when the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, and send the mouse and keyboard action indication signal to the USB HOST module, so that the USB HOST module restarts the interrupt transmission polling of the mouse and keyboard information.
6. A device for remotely transmitting mouse and keyboard information, characterized in that: include: A pause unit, for suspending the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard stillness indication signal; The mouse and keyboard static indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is the same as the historical mouse and keyboard information; The restart unit is used to restart the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard action indication signal; the mouse and keyboard action indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is different from the historical mouse and keyboard information.
7. A mouse and keyboard information remote transmission system, characterized in that: Including USB HOST module and USB DEVICE module; The USB DEVICE module is used to respond to the interrupt transmission polling request and obtain the encoding result corresponding to the mouse and keyboard information currently transmitted to the local; if the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, generate a mouse and keyboard static indication signal, and send the mouse and keyboard static indication signal to the USB HOST module, so that the USB HOST module suspends the interrupt transmission polling of the mouse and keyboard information; if the encoding result is different from the historical encoding result corresponding to the historical mouse and keyboard information, generate a mouse and keyboard action indication signal, and send the mouse and keyboard action indication signal to the USBHOST module, so that the USB HOST module restarts the interrupt transmission polling of the mouse and keyboard information; The USB HOST module is used to suspend the interrupt transmission polling of the mouse and keyboard information in response to receiving a mouse and keyboard stillness indication signal; the mouse and keyboard stillness indication signal is generated by the USB DEVICE module when the current mouse and keyboard information is the same as the historical mouse and keyboard information; and / or, in response to receiving a mouse and keyboard action indication signal, restart the interrupt transmission polling of the mouse and keyboard information; the mouse and keyboard action indication signal is generated by the USB DEVICE module when 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 in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for remotely transmitting mouse and keyboard information as claimed in any one of claims 1 to 4 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for remotely transmitting mouse and keyboard information as claimed in any one of claims 1 to 4 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for remotely transmitting mouse and keyboard information as claimed in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Locating equipment equipped with a mobile / portable device
CN102576083A
Keyboard data transmission method and device
CN104636103A
System and method of conducting user define on USB mouse and keyboard and achieving duplex information interaction with host driver
CN107220190A
Remote KVM mouse mode adaptation method and device, terminal and storage medium
CN109343808A
System and device for remotely controlling intelligent equipment through mouse and keyboard
CN111309168A