Instruction input experience optimization method and system for remote operation
By cached remote operation instructions in the local terminal and sent to the remote server after the user confirms, the input lag problem caused by network delay in the remote terminal in a weak network environment is solved, and the user's input experience and operation efficiency are significantly improved.
Patent Information
- Application Number
- CN202411797972.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-18
AI Technical Summary
The input lag caused by network delay in remote terminals in a weak network environment affects the user's operating experience and work efficiency.
The instructions entered by the user are cached in the local terminal. Only after the user confirms the execution of the instructions, the instructions in the cache are sent to the remote server for execution, and the retransmission mechanism is used to ensure the reliability of data transmission.
It effectively avoids the input lag caused by network delay, significantly improves the user's input experience in a weak network environment, and improves the efficiency and accuracy of remote operations.
Smart Images

Figure CN119847601A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network application technology, and in particular to a method and system for optimizing command input experience for remote operation. Background Art
[0002] With the development of information technology, especially the extensive application of cloud servers, remote terminals and remote desktop software are becoming more and more widely used. In terms of current implementation methods, remote terminals usually monitor the client command input in real time and transmit it to the server. This often leads to input jams or repeated inputs when the network environment is unstable or the network speed is slow. This not only affects the user's operating experience, but may also lead to misoperation, thereby affecting work efficiency. Therefore, how to optimize the input experience of remote terminals in a weak network environment has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The technical task of the present invention is to address the above shortcomings and provide a method and system for optimizing the command input experience for remote operation, so as to realize the optimization of the command input experience of the remote terminal and remote desktop software, effectively avoid the input lag problem caused by network delay, significantly improve the user's input experience in a weak network environment, and improve the efficiency and accuracy of remote operation.
[0004] The technical solution adopted by the present invention to solve the technical problem is:
[0005] A method for optimizing command input experience for remote operation,
[0006] Cache all commands entered by users in the local terminal;
[0007] Only after the user enters an instruction to confirm execution (such as the Enter key) will the instruction in the cache be sent to the remote server for execution; thereby reducing the problem of poor input caused by network delays.
[0008] After receiving the instruction, the remote server processes it and returns the result to the local terminal;
[0009] The local terminal receives and displays the execution result returned by the server.
[0010] This method not only ensures the fluency of the user's input process, but also effectively improves the operating efficiency, and is particularly suitable for use in environments with poor network conditions. It has the advantages of being simple to implement and having significant effects, and can significantly improve the user experience of using a remote terminal in a weak network environment.
[0011] Furthermore, the implementation of this method includes:
[0012] The input cache module is used to receive and temporarily store all instructions entered by the user. When the user inputs, regardless of the network conditions, all input characters, commands, or operation instructions will first be stored in the local buffer. The design purpose of this module is to avoid delays or losses of input instructions before they are sent to the remote server due to network fluctuations or delays.
[0013] The instruction confirmation module is used to monitor and detect the confirmation execution instruction input by the user; after detecting the confirmation execution instruction, the instruction confirmation module triggers the integration of the instructions in the cache and prepares to send them to the remote server;
[0014] The instruction sending module is used to transmit the instructions in the cache through the network and adopt a retransmission mechanism to ensure the reliability of data transmission;
[0015] The user feedback module is used to receive and display the execution results returned by the remote server.
[0016] Furthermore, the input cache module uses a queue or array memory data structure to store the user's input instructions; these instructions are stored in the order of input and are ready to be transmitted to the remote server in batches when needed;
[0017] The execution instructions input by the local terminal include the logical instructions to be executed by the input device, including keyboard input, mouse movement, mouse click, etc.
[0018] Furthermore, the instruction confirmation module monitors the user's input behavior, including the detection of the instruction (such as the enter key, function key or specific key combination) confirmed by the user; when the user presses the confirmation execution key, the module triggers a series of operations, including integrating and serializing the instructions in the input buffer and preparing to transmit them to the remote server;
[0019] The core function of this module is to ensure that the instruction is taken out of the local cache and transmitted over the network only when the user confirms the execution of the operation. This design effectively avoids the delay accumulation problem caused by frequent network interactions. The instruction confirmation module can be implemented through a keyboard event listener or input monitoring thread to ensure a quick response at the moment of user operation.
[0020] Furthermore, the instruction sending module is responsible for transmitting these instructions to the remote server through the network after the instruction confirmation module completes the instruction integration;
[0021] The retransmission mechanism, when a network anomaly or transmission failure is detected, the instruction sending module will automatically resend the unsuccessful instruction until the server confirms receipt of the instruction; this mechanism can be implemented through the Transmission Control Protocol (TCP) or a custom reliable data transmission protocol.
[0022] Furthermore, the user feedback module,
[0023] After receiving and executing the instructions, the remote server will generate corresponding results and return them to the local terminal; the user feedback module is responsible for receiving these results and displaying them to the user in real time; through this module, the user can quickly understand the execution status of the remote server and take the next step based on the feedback results;
[0024] The user feedback module adopts an asynchronous processing mechanism to avoid interface freezes caused by network delays, and provides prompt information to users when the remote server fails to respond in time, such as "the command is being executed, please wait", etc. These prompt information can relieve users' anxiety and reduce the probability of misoperation caused by network delays.
[0025] Furthermore, the specific process of implementing this method is as follows:
[0026] S1. The user inputs instructions through the local terminal, and all input instructions are first stored in the input cache module;
[0027] S2, the input buffer module continues to receive user input until the user presses the instruction to confirm execution;
[0028] S3. When the user presses the Enter key or other confirmation key, the instruction confirmation module integrates the instructions in the cache into one or more complete instructions and prepares to send them to the remote server;
[0029] S4, the instruction sending module transmits these integrated instructions to the remote server through the network, and adopts a retransmission mechanism during the transmission process to ensure the reliability of the data;
[0030] S5. After receiving the instruction, the remote server performs corresponding operations and returns the results to the local terminal;
[0031] S6. The user feedback module displays the result returned by the server on the interface of the local terminal for the user to view and perform the next operation.
[0032] The present invention also claims a system for optimizing command input experience for remote operation, comprising:
[0033] The input buffer module is used to receive and temporarily store all commands input by the user. When the user inputs, regardless of the network conditions, all input characters, commands, or operation instructions will first be stored in the local buffer.
[0034] The instruction confirmation module is used to monitor and detect the confirmation execution instruction input by the user; after detecting the confirmation execution instruction, the instruction confirmation module triggers the integration of the instructions in the cache and prepares to send them to the remote server;
[0035] The instruction sending module is used to transmit the instructions in the cache through the network and adopt a retransmission mechanism to ensure the reliability of data transmission;
[0036] User feedback module, used to receive and display the execution results returned by the remote server;
[0037] The system specifically achieves command input experience optimization through the above-mentioned command input experience optimization method for remote operation.
[0038] The present invention also claims a device for optimizing command input experience for remote operation, comprising: at least one memory and at least one processor;
[0039] The at least one memory is used to store a machine-readable program;
[0040] The at least one processor is used to call the machine-readable program to implement the above method.
[0041] The present invention also claims protection for a computer-readable medium having computer instructions stored thereon, which implement the above method when executed by a processor.
[0042] Compared with the prior art, the method and system for optimizing the command input experience for remote operation of the present invention have the following beneficial effects:
[0043] The present invention caches input commands through a local terminal in a weak network environment, thereby avoiding the problem of poor input experience caused by network delay. When a user operates on a remote terminal, he or she can input commands smoothly without being affected by the network environment, thereby improving operation efficiency and user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a schematic diagram of a method for optimizing command input experience for remote operation provided by an embodiment of the present invention;
[0045] Figure 2 It is a logic diagram of executing instructions of a traditional remote terminal and remote desktop software provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0047] The embodiment of the present invention provides a method for optimizing the command input experience for remote operation.
[0048] Cache all commands entered by users in the local terminal;
[0049] Only after the user enters an instruction to confirm execution (such as the Enter key) will the instruction in the cache be sent to the remote server for execution; thereby reducing the problem of poor input caused by network delays.
[0050] After receiving the instruction, the remote server processes it and returns the result to the local terminal;
[0051] The local terminal receives and displays the execution result returned by the server.
[0052] Among them, the execution instructions input by the local terminal include logical instructions to be executed by input devices such as keyboard input, mouse movement, and mouse click. The local terminal includes an input cache module for storing all instructions input by the user. The input cache module uses a queue or array data structure to achieve efficient storage and reading. The instruction confirmation module monitors and detects the confirmation execution instructions input by the user; after detecting the confirmation execution instructions, the instruction confirmation module triggers the integration of the instructions in the cache and prepares to send them to the remote server. The instruction sending module transmits the instructions in the cache through the network, and adopts a retransmission mechanism to ensure the reliability of data transmission; the instruction sending module adopts an optimized transmission technology based on the TCP / IP protocol. Through the user feedback module, the execution results returned by the remote server are received and displayed; the user feedback module adopts an asynchronous processing mechanism to avoid interface freezes caused by network delays.
[0053] This method can solve the problem of poor input experience of remote terminals and remote desktops in weak network environments. By caching input commands locally, commands are sent to the remote server only after the user confirms the execution of the command, thereby reducing input jams and repeated input caused by network delays. This technical solution includes the following main modules and steps:
[0054] 1. Input cache module.
[0055] The input buffer module is the core component of the local terminal, which is used to receive and temporarily store all commands entered by the user. When the user inputs, regardless of the network conditions, all input characters, commands, or operation instructions will first be stored in the local buffer. The design purpose of this module is to avoid the delay or loss of input instructions before sending to the remote server due to network fluctuations or delays.
[0056] In terms of specific implementation, the input cache module uses memory data structures, such as queues or arrays, to save user input instructions. These instructions are stored in the order of input and are ready to be transferred to the remote server in batches when needed, so as to achieve efficient storage and reading.
[0057] 2. Instruction confirmation module.
[0058] The command confirmation module is responsible for monitoring the user's input behavior, especially the detection of the user's confirmed execution command (such as the Enter key, function key, or specific key combination). When the user presses the confirmation key, the module triggers a series of operations, including integrating and serializing the commands in the input buffer and preparing them for transmission to the remote server.
[0059] The core function of this module is to ensure that the instruction is taken out of the local cache and transmitted over the network only when the user confirms the execution of the operation. This design effectively avoids the delay accumulation problem caused by frequent network interactions. The instruction confirmation module can be implemented through a keyboard event listener or input monitoring thread to ensure a quick response at the moment of user operation.
[0060] 3. Command sending module.
[0061] After the instruction confirmation module completes the instruction integration, the instruction sending module is responsible for transmitting these instructions to the remote server through the network. The instruction sending module needs to consider the actual situation of the network and adopt optimized transmission protocols and technologies to minimize the risk of transmission delays and packet loss.
[0062] In a weak network environment, the instruction sending module may encounter problems such as packet loss or transmission timeout. To this end, this method designs a transmission scheme with a retransmission mechanism. When a network anomaly or transmission failure is detected, the instruction sending module automatically resends the unsuccessful instruction until the server confirms that the instruction has been received. This mechanism can be implemented through the Transmission Control Protocol (TCP) or a custom reliable data transmission protocol.
[0063] 4. User feedback module.
[0064] The user feedback module is the key to optimizing user experience. After receiving and executing instructions, the remote server will generate corresponding results and return them to the local terminal; the user feedback module is responsible for receiving these results and displaying them to the user in real time. Through this module, users can quickly understand the execution status of the remote server and take the next step based on the feedback results.
[0065] In order to further improve the user experience, the user feedback module of the present method can also provide prompt information to the user when the remote server fails to respond in time, such as "the command is being executed, please wait", etc. These prompt information can alleviate the user's anxiety and reduce the probability of misoperation caused by network delays.
[0066] Combination Figure 1 As shown, the specific process of implementing this method is as follows:
[0067] S1. The user inputs instructions through the local terminal, and all input instructions are first stored in the input cache module;
[0068] S2, the input buffer module continues to receive user input until the user presses the instruction to confirm execution;
[0069] S3. When the user presses the Enter key or other confirmation key, the instruction confirmation module integrates the instructions in the cache into one or more complete instructions and prepares to send them to the remote server;
[0070] S4, the instruction sending module transmits these integrated instructions to the remote server through the network, and adopts a retransmission mechanism during the transmission process to ensure the reliability of the data;
[0071] S5. After receiving the instruction, the remote server performs corresponding operations and returns the results to the local terminal;
[0072] S6. The user feedback module displays the result returned by the server on the interface of the local terminal for the user to view and perform the next operation.
[0073] In a weak network environment, when users input commands on a remote terminal or remote desktop, they often encounter input jams and repeated inputs, which adversely affects the user's operating efficiency and experience. Figure 2 As shown, the traditional remote terminal and remote desktop software execution instruction logic is as follows:
[0074] 1. The client monitors the input of the command in real time and transmits it to the server through the network in real time. The server caches the command;
[0075] 2. When the client inputs an execution signal, the execution signal is sent to the remote server. After receiving the execution signal, the remote server executes the previously cached instructions and returns the execution result.
[0076] This method can solve the problem of poor input experience of remote terminals and remote desktops in a weak network environment. It not only ensures the fluency of users in the input process, but also effectively improves the operating efficiency. It is particularly suitable for use in environments with poor network conditions. It has the advantages of simple implementation and significant effects, and can significantly improve the user experience of using remote terminals in a weak network environment.
[0077] An embodiment of the present invention further provides a system for optimizing command input experience for remote operation, and the system specifically realizes command input experience optimization through the command input experience optimization method for remote operation described in the above embodiment.
[0078] The system includes:
[0079] 1. Input Cache Module: The input cache module is the core component of the local terminal, which is used to receive and temporarily store all commands entered by the user. When the user inputs, regardless of the network conditions, all input characters, commands, or operation instructions will first be stored in the local buffer. The design purpose of this module is to avoid the delay or loss of input instructions before sending to the remote server due to network fluctuations or delays.
[0080] In terms of specific implementation, the input cache module uses memory data structures, such as queues or arrays, to save user input instructions. These instructions are stored in the order of input and are ready to be transferred to the remote server in batches when needed, so as to achieve efficient storage and reading.
[0081] 2. The instruction confirmation module is used to monitor and detect the confirmation execution instruction input by the user; after detecting the confirmation execution instruction, the instruction confirmation module triggers the integration of the instructions in the cache and prepares to send them to the remote server.
[0082] The command confirmation module monitors the user's input behavior, especially the detection of the user's confirmed execution command (such as the Enter key, function key or specific key combination). When the user presses the confirmation key, the module triggers a series of operations, including integrating and serializing the commands in the input buffer and preparing them for transmission to the remote server.
[0083] The core function of this module is to ensure that the instruction is taken out of the local cache and transmitted over the network only when the user confirms the execution of the operation. This design effectively avoids the delay accumulation problem caused by frequent network interactions. The instruction confirmation module can be implemented through a keyboard event listener or input monitoring thread to ensure a quick response at the moment of user operation.
[0084] 3. Instruction sending module is used to transmit instructions in the cache through the network and adopts a retransmission mechanism to ensure the reliability of data transmission. The instruction sending module adopts optimized transmission technology based on TCP / IP protocol.
[0085] After the instruction confirmation module completes the instruction integration, the instruction sending module is responsible for transmitting these instructions to the remote server through the network. The instruction sending module needs to consider the actual situation of the network and adopt optimized transmission protocols and technologies to minimize the risk of transmission delays and packet loss.
[0086] In a weak network environment, the instruction sending module may encounter problems such as packet loss or transmission timeout. To this end, this method designs a transmission scheme with a retransmission mechanism. When a network anomaly or transmission failure is detected, the instruction sending module automatically resends the unsuccessful instruction until the server confirms that the instruction has been received. This mechanism can be implemented through the Transmission Control Protocol (TCP) or a custom reliable data transmission protocol.
[0087] 4. User feedback module, used to receive and display the execution results returned by the remote server.
[0088] After receiving and executing the instructions, the remote server will generate the corresponding results and return them to the local terminal; the user feedback module is responsible for receiving these results and displaying them to the user in real time. Through this module, the user can quickly understand the execution status of the remote server and take the next step based on the feedback results.
[0089] The user feedback module can also provide prompt information to users when the remote server fails to respond in time, such as "the command is being executed, please wait", etc. These prompt information can relieve users' anxiety and reduce the probability of misoperation caused by network delays.
[0090] The specific process of implementing this system is as follows:
[0091] S1. The user inputs instructions through the local terminal, and all input instructions are first stored in the input cache module;
[0092] S2, the input buffer module continues to receive user input until the user presses the instruction to confirm execution;
[0093] S3. When the user presses the Enter key or other confirmation key, the instruction confirmation module integrates the instructions in the cache into one or more complete instructions and prepares to send them to the remote server;
[0094] S4, the instruction sending module transmits these integrated instructions to the remote server through the network, and adopts a retransmission mechanism during the transmission process to ensure the reliability of the data;
[0095] S5. After receiving the instruction, the remote server performs corresponding operations and returns the results to the local terminal;
[0096] S6. The user feedback module displays the result returned by the server on the interface of the local terminal for the user to view and perform the next operation.
[0097] An embodiment of the present invention further provides a device for optimizing command input experience for remote operation, comprising: at least one memory and at least one processor;
[0098] The at least one memory is used to store a machine-readable program;
[0099] The at least one processor is used to call the machine-readable program to implement the command input experience optimization method for remote operation described in the above embodiment.
[0100] An embodiment of the present invention further provides a computer-readable medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the method for optimizing the instruction input experience for remote operation described in the above embodiment is implemented. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code that implements the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0101] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0102] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0103] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0104] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0105] The present invention is shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the code review methods in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.
Claims
1. A method for optimizing command input experience for remote operation, characterized in that: Cache all commands entered by users in the local terminal; Only after the user enters the instruction to confirm execution, the instructions in the cache are sent to the remote server for execution; After receiving the instruction, the remote server processes it and returns the result to the local terminal; The local terminal receives and displays the execution result returned by the server.
2. A method for optimizing command input experience for remote operation according to claim 1, characterized in that: The implementation of this method includes: The input buffer module is used to receive and temporarily store all commands input by the user; when the user inputs, all input characters, commands, or operation instructions will first be stored in the local buffer; The instruction confirmation module is used to monitor and detect the confirmation execution instruction input by the user; after detecting the confirmation execution instruction, the instruction confirmation module triggers the integration of the instructions in the cache and prepares to send them to the remote server; The instruction sending module is used to transmit the instructions in the cache through the network and adopt a retransmission mechanism to ensure the reliability of data transmission; The user feedback module is used to receive and display the execution results returned by the remote server.
3. A method for optimizing command input experience for remote operation according to claim 2, characterized in that: The input cache module uses a queue or array memory data structure to store the user's input instructions; these input instructions are stored in the order of input and are ready to be transmitted to the remote server in batches when needed; The execution instructions input by the local terminal include the logical instructions to be executed by the input device, including keyboard input, mouse movement, and mouse click.
4. A method for optimizing command input experience for remote operation according to claim 2, characterized in that: The instruction confirmation module monitors the user's input behavior, including the detection of the instructions that the user confirms to execute; when the user presses the confirmation execution key, the module triggers a series of operations, including integrating and serializing the instructions in the input buffer and preparing to transmit them to the remote server; The instruction confirmation module is implemented through a keyboard event listener or an input monitoring thread.
5. The method for optimizing the command input experience for remote operation according to claim 2, characterized in that: The instruction sending module is responsible for transmitting these instructions to the remote server through the network after the instruction confirmation module completes the instruction integration; The retransmission mechanism, when a network anomaly or transmission failure is detected, the instruction sending module will automatically resend the unsuccessful instruction until the server confirms receipt of the instruction; This mechanism can be implemented through the Transmission Control Protocol or a custom reliable data transmission protocol.
6. A method for optimizing command input experience for remote operation according to claim 2, characterized in that: The user feedback module, After receiving and executing the instructions, the remote server will generate corresponding results and return them to the local terminal; the user feedback module is responsible for receiving these results and displaying them to the user in real time; The user feedback module adopts an asynchronous processing mechanism and provides prompt information to the user when the remote server fails to respond in time.
7. A method for optimizing command input experience for remote operation according to claim 2, characterized in that: The specific process of implementing this method is as follows: S1. The user inputs instructions through the local terminal, and all input instructions are first stored in the input cache module; S2, the input buffer module continues to receive user input until the user presses the instruction to confirm execution; S3. When the user presses the Enter key or other confirmation key, the instruction confirmation module integrates the instructions in the cache into one or more complete instructions and prepares to send them to the remote server; S4, the instruction sending module transmits these integrated instructions to the remote server through the network, and adopts a retransmission mechanism during the transmission process to ensure the reliability of the data; S5. After receiving the instruction, the remote server performs corresponding operations and returns the results to the local terminal; S6. The user feedback module displays the result returned by the server on the interface of the local terminal for the user to view and perform the next operation.
8. A command input experience optimization system for remote operation, characterized in that: include: The input buffer module is used to receive and temporarily store all commands input by the user; when the user inputs, all input characters, commands, or operation instructions will first be stored in the local buffer; An instruction confirmation module is used to monitor and detect the confirmation execution instruction input by the user; After the instruction confirmation module detects the confirmed execution instruction, it triggers the integration of the instructions in the cache and prepares to send them to the remote server; The instruction sending module is used to transmit the instructions in the cache through the network and adopt a retransmission mechanism to ensure the reliability of data transmission; User feedback module, used to receive and display the execution results returned by the remote server; The system specifically achieves command input experience optimization through the command input experience optimization method for remote operation described in any one of claims 1 to 7.
9. A device for optimizing command input experience for remote operation, characterized in that: include: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is used to call the machine-readable program to implement the method described in any one of claims 1 to 7.
10. A computer-readable medium, characterized in that The computer readable medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Telnet proxy forwarding mechanism
CN104065732A
Mechanism for handling user input loss that occurs during transmission from a client device to a remote server using ring buffer messages in conjunction with udp
US20150281328A1