Mouse keyboard information remote transmission method, device and system

CN119299534BActive Publication Date: 2026-09-15SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411198091.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2026-09-15
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

[0005]本发明提供一种鼠标键盘信息远程传输方法、装置和系统,用以解决现有技术中资源和总线带宽消耗大的缺陷,实现资源和总线带宽消耗小的鼠标键盘信息远程传输

Benefits of technology

[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the mouse and keyboard information remote transmission method as described above.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299534B_ABST
    Figure CN119299534B_ABST
Patent Text Reader

Abstract

The application provides a mouse keyboard information remote transmission method, device and system, comprising: in response to an interrupt transmission polling request, obtaining an encoding result corresponding to current mouse keyboard information transmitted to a local; in the case that the encoding result is the same as a historical encoding result corresponding to historical mouse keyboard information, generating a mouse keyboard static indication signal and sending the mouse keyboard static indication signal to a USB HOST module, so that the USB HOST module suspends interrupt transmission polling of the mouse keyboard information; in the case that the encoding result is different from the historical encoding result corresponding to the historical mouse keyboard information, generating a mouse keyboard action indication signal and sending the mouse keyboard action indication signal to the USB HOST module, so that the USB HOST module restarts interrupt transmission polling of the mouse keyboard information. The application can avoid repeated acquisition and repeated analysis of the same mouse keyboard information by the driving software, and saves resources and bus bandwidth.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method, apparatus and system for remote transmission of mouse and keyboard information. Background Technology

[0002] With the rapid development of technology, servers are being used more and more widely, making the management and control of a large number of local servers a very important issue. Remote control refers to connecting a local computer via a local area network or the Internet, displaying the local computer's desktop environment on a remote computer, and enabling remote configuration, monitoring, software maintenance, upgrades, and troubleshooting of the local computer, thus realizing server management.

[0003] In remote control systems, KVM (Keyboard Video Mouse) enables a single terminal to access and control multiple computers. KVM devices, by directly connecting to keyboard, video, and mouse ports, allow administrators to access and control multiple computers from a single terminal. Remote mouse and keyboard operations enable control of the local server. Traditional mouse and keyboard information processing involves encoding the information from the remote end and transmitting it over the network to the local machine. The local driver software then receives and parses this information via the USB (Universal Serial Bus) system, transmitting it to the operating system or application to process the corresponding mouse and keyboard events. In this process, the driver software repeatedly acquires and parses the same mouse and keyboard information, wasting resources and bus bandwidth.

[0004] In summary, existing technologies suffer from high resource and bus bandwidth consumption. Summary of the Invention

[0005] This invention provides a method, apparatus, and system for remote transmission of mouse and keyboard information, which addresses the shortcomings of existing technologies in terms of high resource and bus bandwidth consumption, and enables remote transmission of mouse and keyboard information with low resource and bus bandwidth consumption.

[0006] This invention provides a method for remote transmission of mouse and keyboard information for a USB device module, comprising the following steps: In response to an interrupted transmission polling request, obtain the encoding result corresponding to the mouse and keyboard information currently transmitted to the local machine; If the encoded result is the same as the historical encoded result corresponding to the historical mouse and keyboard information, a mouse and keyboard still indication signal is generated and sent to the USB HOST module so that the USB HOST module can stop the interrupted transmission polling of the mouse and keyboard information. If the encoded result differs from the historical encoded 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 interrupted transmission polling of the mouse and keyboard information.

[0007] According to the present invention, a method for remotely transmitting mouse and keyboard information, wherein the encoded result corresponding to the currently transmitted mouse and keyboard information is obtained, specifically includes: Capture the encoded results of mouse and keyboard information in DDR based on the AHB bus protocol; The mouse and keyboard information includes the mouse position, mouse movement speed, mouse click action, and key input information received by the keyboard. The encoding result corresponding to the mouse and keyboard information in the DDR is obtained by acquiring the user's mouse and keyboard information via Ethernet, encoding the mouse and keyboard information, and then storing the encoding result in the DDR based on the AXI bus protocol.

[0008] This invention also provides a method for remote transmission of mouse and keyboard information for a USB HOST module, comprising the following steps: In response to receiving a mouse and keyboard inactivity indicator signal, the interrupted transmission polling of mouse and keyboard information is paused; the mouse and keyboard inactivity indicator 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 interrupted transmission polling of 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 remote transmission of mouse and keyboard information provided by the present invention, in response to receiving a mouse and keyboard action indication signal, the method restarts the interrupted transmission polling of mouse and keyboard information, and then further includes: Send an interrupt transmission polling request to the USB DEVICE module.

[0010] The present invention also provides a remote transmission device for mouse and keyboard information, comprising: The acquisition unit is used to acquire the encoding result corresponding to the mouse and keyboard information currently transmitted to the local machine in response to the interrupted transmission polling request. The first signal unit is used to generate a mouse and keyboard stillness 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 stillness indication signal to the USB HOST module so that the USB HOST module suspends the interrupted 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 encoded result is different from the historical encoded 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 interrupted transmission polling of the mouse and keyboard information.

[0011] The present invention also provides a remote transmission device for mouse and keyboard information, comprising: The pause unit is used to pause the interrupted transmission polling of mouse and keyboard information in response to receiving a mouse and keyboard still indication signal; the mouse and keyboard still 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 interrupted transmission polling of 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 remote transmission system for mouse and keyboard information, including a USB HOST module and a USB DEVICE module; The USB DEVICE module is configured to respond to an interrupted transmission polling request by obtaining the encoding result corresponding to the currently transmitted mouse and keyboard information; if the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, it generates a mouse and keyboard stationary indicator signal and sends the mouse and keyboard stationary indicator signal to the USB HOST module, so that the USB HOST module suspends the interrupted 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, it generates a mouse and keyboard action indicator signal and sends the mouse and keyboard action indicator signal to the USB HOST module, so that the USB HOST module restarts the interrupted transmission polling of the mouse and keyboard information. The USB HOST module is used to pause the interrupted transmission polling of 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, to restart the interrupted transmission polling of 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.

[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the mouse and keyboard information remote transmission method as described above.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the mouse and keyboard information remote transmission method as described above.

[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the mouse and keyboard information remote transmission method as described above.

[0016] The present invention provides a method, apparatus, and system for remote transmission of mouse and keyboard information. It acquires the encoded results of mouse and keyboard information transmitted locally via a USB DEVICE module, and processes and analyzes the current and historical encoded results. When the received current and historical encoded results are the same, a mouse / keyboard inactivity indicator signal is issued; when they are different, a mouse / keyboard activity indicator signal is issued. This indicator signal is transmitted to a USB HOST module. Upon receiving the mouse / keyboard inactivity indicator signal, the USB HOST module pauses its polling of interrupted mouse and keyboard information transmission until it receives the mouse / keyboard activity indicator signal, at which point it resumes polling. This invention avoids the repeated acquisition and parsing of the same mouse and keyboard information by the driver software, saving resources and bus bandwidth. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating a method for remote transmission of mouse and keyboard information provided by the present invention.

[0019] Figure 2 This is a flowchart illustrating another method for remote transmission of mouse and keyboard information provided by the present invention.

[0020] Figure 3 This is a flowchart illustrating the remote transmission method for mouse and keyboard information provided by the present invention.

[0021] Figure 4This is a schematic diagram of the structure of the USB DEVICE module in the remote transmission method for mouse and keyboard information provided by the present invention; Figure 5 This is a schematic diagram of the application environment of the remote transmission method for mouse and keyboard information provided by the present invention; Figure 6 This is a schematic diagram of the structure of a remote mouse and keyboard information transmission device provided by the present invention.

[0022] Figure 7 This is a schematic diagram of another remote mouse and keyboard information transmission device provided by the present invention.

[0023] Figure 8 This is a schematic diagram of the remote transmission system for mouse and keyboard information provided by the present invention.

[0024] Figure 9 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0026] like Figure 5 As shown, Figure 5 This is a schematic diagram of the application environment provided by the present invention. The remote end refers to the user end, including a mouse and keyboard, which can collect mouse and keyboard information remotely. Specifically, during the collection process, the mouse collects mouse action information through sensors, including mouse position, movement speed, click actions, etc.; the keyboard receives input key information. The collected mouse and keyboard information is encoded and converted into corresponding digital codes.

[0027] The local server management system processes information locally. The network module receives mouse and keyboard data transmitted to the local machine via Ethernet and stores the collected information in DDR (Double Data Rate Synchronous Dynamic Random Access Memory).

[0028] The USB system receives mouse and keyboard information from a remote location. The USB DEVICE module communicates with the USB HOST module to transmit signals and data. During actual transmission, the USB HOST module actively initiates requests to the USB DEVICE module, and the USB DEVICE module responds accordingly. For the transmission of mouse and keyboard information, the USB system uses interrupt transmission. The USB HOST module polls the USB DEVICE module and initiates requests at fixed time intervals, and the USB DEVICE module responds with the mouse and keyboard information data for the current moment.

[0029] When the USB DEVICE module detects no mouse or keyboard activity on the user's end, it sets the mouse / keyboard inactivity indicator signal and transmits it to the USB HOST module. Upon receiving the inactivity indicator signal, the USB HOST module interrupts transmission and enters sleep mode, pausing polling of the USB DEVICE module until it receives a mouse / keyboard activity indicator signal, at which point it resumes interrupted transmission polling of the USB DEVICE. The mouse / keyboard activity indicator signal is set and transmitted to the USB HOST module by the USB DEVICE module when it detects mouse or keyboard activity on the user's end.

[0030] The following is combined with Figure 1 This invention describes a method for remotely transmitting mouse and keyboard information, applicable to USBDEVICE modules. Figure 1 This is a flowchart illustrating the remote transmission method for mouse and keyboard information provided by the present invention, as shown below. Figure 1 As shown, the method includes the following steps: Step 110: In response to the interruption transmission polling request, obtain the encoding result corresponding to the mouse and keyboard information currently transmitted to the local machine.

[0031] It should be noted that the encoded result of the mouse and keyboard information currently transmitted to the local device is obtained by the USB DEVICE module from the DDR.

[0032] Step 120: If the encoded result is the same as the historical encoded result corresponding to the historical mouse and keyboard information, generate a mouse and keyboard stillness indication signal and send the mouse and keyboard stillness indication signal to the USB HOST module so that the USB HOST module suspends the interrupted transmission polling of the mouse and keyboard information.

[0033] After obtaining the encoding result 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, when the received mouse and keyboard information is the same as the previously received mouse and keyboard information, a mouse and keyboard stillness indication signal is issued and transmitted to the USB HOST module. The USB HOST module can pause the interrupted polling of the mouse and keyboard information transmission based on the mouse and keyboard stillness indication signal.

[0034] Step 130: If the encoded result is different from the historical encoded 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 interrupted transmission polling of the mouse and keyboard information.

[0035] After obtaining the encoding result 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 previously received mouse and keyboard information, a mouse and keyboard action indication signal is issued and transmitted to the USB HOST module. The USB HOST module can restart the interrupted polling of the mouse and keyboard information transmission based on the mouse and keyboard action indication signal.

[0036] The following further explains how the USB DEVICE module retrieves the encoded result corresponding to the mouse and keyboard information currently transmitted to the local machine from the DDR. In some embodiments, retrieving the encoded result corresponding to the mouse and keyboard information currently transmitted to the local machine specifically includes: Capture the encoded results of mouse and keyboard information in DDR based on the AHB bus protocol; The mouse and keyboard information includes the mouse position, mouse movement speed, mouse click action, and key input information received by the keyboard. The encoding result corresponding to the mouse and keyboard information in the DDR is obtained by acquiring the user's mouse and keyboard information via Ethernet, 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 mouse action information through sensors, including mouse position, movement speed, and click actions; the keyboard receives input keystrokes. The collected mouse and keyboard information is encoded and converted into corresponding digital codes to obtain the encoded result.

[0038] The mouse and keyboard information, along with their corresponding encoding results, are then transmitted from the remote location to the local location via Ethernet. The local network module, based on the AXI bus protocol, stores the mouse and keyboard information and their corresponding encoding results in DDR memory. The USB device module then captures the mouse and keyboard information and their corresponding encoding results from the DDR memory using the AHB bus protocol.

[0039] Furthermore, the USB DEVICE module will be explained in more detail. For example... Figure 4 As shown, within the USB DEVICE module, the USB DEVICE control module controls the USB device based on the USB specification; the capture module captures mouse and keyboard information and / or mouse and keyboard information and their encoding results stored in DDR via the AHB bus, and then stores the mouse and keyboard information and / or mouse and keyboard information and their encoding results in the buffer of the USB DEVICE module; the comparison module compares the currently received mouse and keyboard information with the previously received mouse and keyboard information. When the currently received mouse and keyboard information is the same as the previously received mouse and keyboard information, it indicates that the remote mouse and keyboard is not active, and the mouse and keyboard inactive signal is pulled high; when the currently received mouse and keyboard information is different from the previously received mouse and keyboard information, it indicates that the remote mouse and keyboard is active, and the mouse and keyboard active signal is pulled high; the data buffer module stores the captured mouse and keyboard information.

[0040] The following is combined with Figure 2 Another method for remote transmission of mouse and keyboard information according to the present invention is described, which is applicable to a USBHOST module. Figure 2 This is a flowchart illustrating another method for remote transmission of mouse and keyboard information provided by the present invention, as shown below. Figure 2 As shown, the method includes the following steps: Step 210: In response to receiving the mouse and keyboard stillness indication signal, pause the interrupted transmission polling of 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, because the USB HOST module polls the USB DEVICE module during the set time interval, the driver software parses the mouse and keyboard information and passes it to the operating system or application. After the USB HOST module receives the mouse and keyboard stillness indication signal, it pauses the interruption of the mouse and keyboard information polling until it receives the mouse and keyboard action indication signal.

[0042] The mouse and keyboard stillness indicator signal is generated when the currently captured mouse and keyboard information is the same as the previously captured mouse and keyboard information. For the specific generation method, please refer to the above embodiment. This invention will not elaborate on this.

[0043] Step 220: In response to receiving the mouse and keyboard action indication signal, restart the interrupted transmission polling of 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 interrupted polling of mouse and keyboard information transmission.

[0045] The mouse and keyboard action indication signal is generated when the currently captured mouse and keyboard information is different from the previously captured mouse and keyboard information. For the specific generation method, please refer to the above embodiment. This invention will not elaborate on this.

[0046] Furthermore, in response to receiving a mouse and keyboard action indication signal, the process restarts the interrupted polling of mouse and keyboard information transmission, and then includes: Send an interrupt transmission polling request to the USB DEVICE module.

[0047] Based on the above embodiments, such as Figure 3 As shown, the following is a specific embodiment of a USB DEVICE module and a USB HOST module interacting to remotely transmit mouse and keyboard information, including steps S1-S10: S1: Mouse and keyboard information acquisition. The mouse collects mouse action information, including mouse position, movement speed, and click actions, through sensors or sensors; the keyboard receives input key presses. The acquired mouse and keyboard information is encoded and converted into corresponding digital codes.

[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 is based on the AXI bus protocol and stores mouse and keyboard information in DDR.

[0050] S4: The capture module in the USB DEVICE module captures mouse and keyboard information from 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 previously captured mouse and keyboard information.

[0052] S6: If the currently captured mouse and keyboard information is different from the previously captured mouse and keyboard information, it indicates that mouse and keyboard actions have occurred, and the mouse and keyboard action indication signal is set.

[0053] S7: The USB HOST module polls the USB DEVICE module at set time intervals, and the driver software parses mouse and keyboard information and passes it to the operating system or application.

[0054] S8: Increment the mouse and keyboard information count by one, then proceed to step S1.

[0055] S9: If the currently captured mouse and keyboard information is the same as the previously captured mouse and keyboard information, it indicates that no mouse or keyboard action has occurred, and the mouse and keyboard stationary indicator signal is set.

[0056] S10: After receiving the mouse and keyboard stillness indicator signal, the USB HOST module interrupts the polling and enters sleep mode, stops the interrupt transmission polling of the USB DEVICE module, and proceeds to step S8.

[0057] The mouse and keyboard information remote transmission method provided by this invention acquires the encoded results of mouse and keyboard information transmitted to the local device via a USB DEVICE module, and processes and analyzes the current and historical encoded results. When the received current and historical encoded results are the same, a mouse and keyboard stationary indicator signal is issued; when the received current and historical encoded results are different, a mouse and keyboard action indicator signal is issued. This indicator signal is transmitted to a USBHOST module. Upon receiving the mouse and keyboard stationary indicator signal, the USB HOST module pauses its interrupted polling of mouse and keyboard information transmission until it receives the mouse and keyboard action indicator signal, at which point it resumes the interrupted polling of mouse and keyboard information transmission. This invention avoids the repeated acquisition and parsing of the same mouse and keyboard information by the driver software, saving resources and bus bandwidth.

[0058] The following describes a remote mouse and keyboard information transmission device provided by the present invention. The remote mouse and keyboard information transmission device described below can be referred to in correspondence with the remote mouse and keyboard information transmission method described above. For example... Figure 6 As shown, the device includes: The acquisition unit 610 is used to acquire the encoding result corresponding to the mouse and keyboard information currently transmitted to the local machine in response to an interrupted transmission polling request. The first signal unit 620 is used to generate a mouse and keyboard stillness 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 stillness indication signal to the USB HOST module so that the USB HOST module suspends the interrupted 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 encoded result is different from the historical encoded 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 interrupted transmission polling of the mouse and keyboard information.

[0059] According to the present invention, a remote transmission device for mouse and keyboard information is provided, which acquires the encoding result corresponding to the mouse and keyboard information currently transmitted to the local machine, specifically including: Capture the encoded results of mouse and keyboard information in DDR based on the AHB bus protocol; The mouse and keyboard information includes the mouse position, mouse movement speed, mouse click action, and key input information received by the keyboard. The encoding result corresponding to the mouse and keyboard information in the DDR is obtained by acquiring the user's mouse and keyboard information via Ethernet, encoding the mouse and keyboard information, and then storing the encoding result in the DDR based on the AXI bus protocol.

[0060] The mouse and keyboard information remote transmission device provided by this invention acquires the encoded results of mouse and keyboard information transmitted to the local device via a USB DEVICE module, and processes and analyzes the current and historical encoded results. When the received current and historical encoded results are the same, a mouse and keyboard stationary indicator signal is issued; when the received current and historical encoded results are different, a mouse and keyboard action indicator signal is issued. This indicator signal is transmitted to a USBHOST module. Upon receiving the mouse and keyboard stationary indicator signal, the USB HOST module pauses its interrupted polling of mouse and keyboard information until it receives the mouse and keyboard action indicator signal, at which point it resumes the interrupted polling of mouse and keyboard information. This invention avoids the repeated acquisition and parsing of the same mouse and keyboard information by the driver software, saving resources and bus bandwidth.

[0061] The following describes another mouse and keyboard information remote transmission device provided by the present invention. The mouse and keyboard information remote transmission device described below can be referred to in correspondence with the other mouse and keyboard information remote transmission method described above. For example... Figure 7 As shown, the device includes: The pause unit 710 is used to pause the interrupted transmission polling of mouse and keyboard information in response to receiving a mouse and keyboard still indication signal; the mouse and keyboard still 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 interrupted transmission polling of 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 the present invention, a remote transmission device for mouse and keyboard information, in response to receiving a mouse and keyboard action indication signal, restarts the interrupted transmission polling of mouse and keyboard information, and further includes: Send an interrupt transmission polling request to the USB DEVICE module.

[0063] The mouse and keyboard information remote transmission device provided by this invention acquires the encoded results of mouse and keyboard information transmitted to the local device via a USB DEVICE module, and processes and analyzes the current and historical encoded results. When the received current and historical encoded results are the same, a mouse and keyboard stationary indicator signal is issued; when the received current and historical encoded results are different, a mouse and keyboard action indicator signal is issued. This indicator signal is transmitted to a USBHOST module. Upon receiving the mouse and keyboard stationary indicator signal, the USB HOST module pauses its interrupted polling of mouse and keyboard information until it receives the mouse and keyboard action indicator signal, at which point it resumes the interrupted polling of mouse and keyboard information. This invention avoids the repeated acquisition and parsing of the same mouse and keyboard information by the driver software, saving resources and bus bandwidth.

[0064] The remote mouse and keyboard information transmission system provided by this invention is described below. The remote mouse and keyboard information transmission system described below can be referred to in correspondence with the remote mouse and keyboard information transmission method described above. For example... Figure 8 As shown, the system includes a USB HOST module 810 and a USB DEVICE module 820; The USB DEVICE module 810 is configured to, in response to an interrupted transmission polling request, obtain the encoding result corresponding to the currently transmitted mouse and keyboard information; 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 stationary indication signal and send the mouse and keyboard stationary indication signal to the USB HOST module, so that the USB HOST module suspends the interrupted 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 interrupted transmission polling of the mouse and keyboard information. The USB HOST module 820 is used to pause the interrupted transmission polling of 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, to restart the interrupted transmission polling of 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.

[0065] According to the present invention, a remote transmission system for mouse and keyboard information is provided, which obtains the encoding result corresponding to the mouse and keyboard information currently transmitted to the local machine, specifically including: Capture the encoded results of mouse and keyboard information in DDR based on the AHB bus protocol; The mouse and keyboard information includes the mouse position, mouse movement speed, mouse click action, and key input information received by the keyboard. The encoding result corresponding to the mouse and keyboard information in the DDR is obtained by acquiring the user's mouse and keyboard information via Ethernet, encoding the mouse and keyboard information, and then storing the encoding result in the DDR based on the AXI bus protocol.

[0066] According to the present invention, a remote transmission system for mouse and keyboard information, in response to receiving a mouse and keyboard action indication signal, restarts the interrupted transmission polling of mouse and keyboard information, and further includes: Send an interrupt transmission polling request to the USB DEVICE module.

[0067] The mouse and keyboard information remote transmission system provided by this invention acquires the encoded results of mouse and keyboard information transmitted to the local machine via a USB DEVICE module. It processes and analyzes the current and historical encoded results. When the received current and historical encoded results are the same, a mouse and keyboard inactivity indicator signal is issued; when they are different, a mouse and keyboard activity indicator signal is issued. This indicator signal is transmitted to a USBHOST module. Upon receiving the mouse and keyboard inactivity indicator signal, the USB HOST module pauses its polling of interrupted mouse and keyboard information transmission until it receives the mouse and keyboard activity indicator signal, at which point it resumes polling. This invention avoids the driver software from repeatedly acquiring and parsing the same mouse and keyboard information, saving resources and bus bandwidth.

[0068] Figure 9 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 9As shown, the electronic device may include a processor 910, a communications interface 920, a memory 930, and a communication bus 940. The processor 910, communications interface 920, and memory 930 communicate with each other via the communication bus 940. The processor 910 can call logical instructions stored in the memory 930 to execute the remote mouse and keyboard information transmission methods provided by the aforementioned methods.

[0069] Furthermore, the logical instructions in the aforementioned memory 930 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0070] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the mouse and keyboard information remote transmission method provided by the above methods.

[0071] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the mouse and keyboard information remote transmission method provided by the above methods.

[0072] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0073] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments 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, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate 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 an interrupted transmission polling request, obtain the encoding result corresponding to the mouse and keyboard information currently transmitted to the local machine; If the encoded result is the same as the historical encoded result corresponding to the historical mouse and keyboard information, a mouse and keyboard still indication signal is generated and sent to the USB HOST module so that the USB HOST module can stop the interrupted transmission polling of the mouse and keyboard information. If the encoded result differs from the historical encoded result corresponding to the historical mouse and keyboard information, a mouse and keyboard action indication signal is generated. The mouse and keyboard action indication signal is set and transmitted to the USB HOST module when the USB DEVICE module detects mouse and keyboard action on the user end, so that the USB HOST module restarts the interrupted transmission polling of the mouse and keyboard information.

2. The method for remote transmission of mouse and keyboard information according to claim 1, characterized in that, Retrieve the encoded results of the mouse and keyboard information currently transmitted to the local machine, specifically including: Capture the encoded results of mouse and keyboard information in DDR based on the AHB bus protocol; The mouse and keyboard information includes the mouse position, mouse movement speed, mouse click action, and key input information received by the keyboard. The encoding result corresponding to the mouse and keyboard information in the DDR is obtained by acquiring the user's mouse and keyboard information via Ethernet, 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 inactivity indicator signal, pause the interrupted polling of mouse and keyboard information transmission; The mouse and keyboard stationary indicator 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. In response to receiving a mouse and keyboard action indication signal, the interrupted transmission polling of mouse and keyboard information is restarted; 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 remote transmission of mouse and keyboard information according to claim 3, characterized in that, In response to receiving a mouse and keyboard action indication signal, the process restarts the interrupted polling of mouse and keyboard information transmission, and then includes: Send an interrupt transmission polling request to the USB DEVICE module.

5. A remote transmission device for mouse and keyboard information, characterized in that, include: The acquisition unit is used to acquire the encoding result corresponding to the mouse and keyboard information currently transmitted to the local machine in response to the interrupted transmission polling request. The first signal unit is used to generate a mouse and keyboard stationary indication signal when the encoded result is the same as the historical encoded result corresponding to the historical mouse and keyboard information. 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's mouse and keyboard have action, so that the USB HOST module can suspend the interrupted 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 encoded result is different from the historical encoded 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 interrupted transmission polling of the mouse and keyboard information.

6. A remote transmission device for mouse and keyboard information, characterized in that, include: The pause unit is used to pause the interrupted transmission polling of mouse and keyboard information in response to receiving a mouse and keyboard still indication signal; The mouse and keyboard stationary indicator 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 interrupted transmission polling of 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 remote transmission system for mouse and keyboard information, characterized in that, Includes a USB host module and a USB device module; The USB DEVICE module is configured to respond to an interrupted transmission polling request by obtaining the encoding result corresponding to the currently transmitted mouse and keyboard information; if the encoding result is the same as the historical encoding result corresponding to the historical mouse and keyboard information, it generates a mouse and keyboard stationary indicator signal and sends the mouse and keyboard stationary indicator signal to the USB HOST module, so that the USB HOST module suspends the interrupted 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, it generates a mouse and keyboard action indicator signal and sends the mouse and keyboard action indicator signal to the USB HOST module, so that the USB HOST module restarts the interrupted transmission polling of the mouse and keyboard information. The USB HOST module is used to pause the interrupted transmission polling of 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, to restart the interrupted transmission polling of 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.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the remote transmission method for mouse and keyboard information as described in any one of claims 1 to 4.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the remote transmission method for mouse and keyboard information as described in any one of claims 1 to 4.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the remote transmission method for mouse and keyboard information as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Locating equipment equipped with a mobile / portable device

    CN102576083A

  • Method and system for transmitting cursor information, equipment and storage medium

    CN113824962A