CN110865890B - Event processing method and device based on remote connection and storage medium - Google Patents

Event processing method and device based on remote connection and storage medium Download PDF

Info

Publication number
CN110865890B
CN110865890B CN201810987935.1A CN201810987935A CN110865890B CN 110865890 B CN110865890 B CN 110865890B CN 201810987935 A CN201810987935 A CN 201810987935A CN 110865890 B CN110865890 B CN 110865890B
Authority
CN
China
Prior art keywords
local operation
event corresponding
event
function information
remote connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810987935.1A
Other languages
Chinese (zh)
Other versions
CN110865890A (en
Inventor
南雄超
王洪虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Loongson Technology Corp Ltd
Original Assignee
Loongson Technology Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Loongson Technology Corp Ltd filed Critical Loongson Technology Corp Ltd
Priority to CN201810987935.1A priority Critical patent/CN110865890B/en
Publication of CN110865890A publication Critical patent/CN110865890A/en
Application granted granted Critical
Publication of CN110865890B publication Critical patent/CN110865890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Abstract

The invention provides an event processing method, an event processing device and a storage medium based on remote connection, wherein the event processing method, the event processing device and the storage medium comprise the following steps: determining an event corresponding to a local operation; repeatedly executing events corresponding to local operations within a preset time period; if the event corresponding to the local operation causes a remote connection problem, judging whether the event corresponding to the local operation comprises non-essential function information; if the event corresponding to the local operation comprises the non-essential function information, shielding the non-essential function information in the event corresponding to the local operation; and if the event corresponding to the local operation does not comprise the unnecessary function information, segmenting the event corresponding to the local operation. Therefore, the event processing efficiency can be improved while the reliability of remote connection is ensured.

Description

Event processing method and device based on remote connection and storage medium
Technical Field
The embodiment of the invention relates to the technical field of remote, in particular to an event processing method and device based on remote connection and a storage medium.
Background
Remote connection refers to the situation that the local device is remotely connected to the remote device, and based on the situation, the user can remotely control the remote device on the local device. For example: the user may install software, run programs, etc. for the remote device via the remote connection.
The use frequency of the remote connection is very high at present, and the reliability of the remote connection is very important based on the use frequency. In general, reliability problems in remote connection are affected by local events in the local device, and the local events may be events related to a keyboard (keyboard events for short), events related to a mouse (mouse events for short), and the like. In order to solve the remote connection problem, the prior art adopts a mode of repeatedly executing local events to quickly reproduce the remote connection problem, such as the screen flash back problem, and locates the local event causing the remote connection problem. After the local event causing the remote connection problem is located, the programmer checks the codes corresponding to the local event one by one and modifies the corresponding codes to realize normal remote connection, however, the manual processing mode has the problem of low efficiency.
Disclosure of Invention
The embodiment of the invention provides an event processing method and device based on remote connection and a storage medium. Therefore, the event processing efficiency can be improved while the reliability of remote connection is ensured.
In a first aspect, an embodiment of the present invention provides an event processing method based on remote connection, including: determining an event corresponding to a local operation; repeatedly executing the event corresponding to the local operation within a preset time period; if the event corresponding to the local operation causes a remote connection problem, judging whether the event corresponding to the local operation comprises non-essential function information; if the event corresponding to the local operation comprises non-essential function information, shielding the non-essential function information included in the event corresponding to the local operation; and if the event corresponding to the local operation does not comprise the unnecessary function information, segmenting the event corresponding to the local operation.
The embodiment of the invention has the beneficial effects that: on one hand, when a remote connection problem occurs, each event is repeatedly executed to ensure that the problem can be reproduced, namely, the event causing the remote connection problem is determined from a plurality of events, so that the aim of accurately positioning the event causing the remote connection problem from the plurality of events is fulfilled, and the subsequent processing of the event is facilitated; on the other hand, according to the determined unnecessary function information contained in the event, the unnecessary function information is shielded, so that the remote equipment does not need to execute the operation corresponding to the unnecessary function information, the probability of the problem of remote connection is reduced, and the reliability of the remote connection is improved; on the other hand, when the event does not contain the unnecessary function, the event needs to be segmented to reduce the continuity of the event, so that the remote device executes the event with lower continuity, the probability of the problem of remote connection can be reduced, and the reliability of the remote connection is improved.
Optionally, the remote connection problem caused by the event corresponding to the local operation includes screen flash back or remote connection jamming; correspondingly, the method for determining that the remote connection problem is caused by the event corresponding to the local operation comprises the following steps: if the remote connection quitting operation is not acquired and the indicating information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, determining that the event corresponding to the local operation causes screen flash quitting; and if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked. Therefore, whether the remote connection problem is caused by the event corresponding to the local operation can be effectively determined.
Optionally, the masking of unnecessary function information included in the event corresponding to the local operation includes: determining an identifier corresponding to the non-essential function information; and shielding the unnecessary function information according to the identification. Therefore, unnecessary function information included in the event corresponding to the local operation can be effectively shielded, and the remote device does not need to execute the operation corresponding to the unnecessary function information, so that the probability of problems occurring in remote connection is reduced, and the reliability of the remote connection is improved.
Optionally, the shielding unnecessary function information included in the event corresponding to the local operation includes: and shielding the event corresponding to the local operation, and recovering the necessary function information included in the event corresponding to the local operation. Therefore, unnecessary function information included in the event corresponding to the local operation can be effectively shielded, and the remote device does not need to execute the operation corresponding to the unnecessary function information, so that the probability of problems occurring in remote connection is reduced, and the reliability of the remote connection is improved.
Optionally, the recovering the necessary function information included in the event corresponding to the local operation includes: determining an identifier corresponding to the necessary function information; and recovering the necessary function information according to the identification.
Optionally, segmenting an event corresponding to the local operation includes: and inserting an invalid event into the event corresponding to the local operation. Therefore, the continuity of the events can be reduced, the remote equipment executes the events with lower continuity, the probability of problems of remote connection can be reduced, and the reliability of the remote connection is improved.
In a second aspect, an embodiment of the present invention provides an event processing apparatus based on remote connection, including:
and the determining module is used for determining the event corresponding to the local operation.
And the execution module is used for repeatedly executing the event corresponding to the local operation within a preset time period.
And the judging module is used for judging whether the event corresponding to the local operation comprises unnecessary function information or not if the event corresponding to the local operation causes a remote connection problem.
And the shielding module is used for shielding the unnecessary function information included in the event corresponding to the local operation if the event corresponding to the local operation includes the unnecessary function information.
And the segmentation module is used for segmenting the event corresponding to the local operation if the event corresponding to the local operation does not comprise the unnecessary function information.
Optionally, the remote connection problem caused by the event corresponding to the local operation includes screen flash back or remote connection jamming; the determining module is specifically configured to: if the remote connection quitting operation is not acquired and the indication information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, determining that the event corresponding to the local operation causes screen flash quitting; and if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked.
Optionally, the shielding module comprises: the determining submodule is used for determining the identification corresponding to the non-essential function information; and the first shielding submodule is used for shielding the non-essential function information according to the identification.
Optionally, the shielding module comprises: the second shielding submodule is used for shielding the event corresponding to the local operation: and the recovery submodule is used for recovering the necessary function information included in the event corresponding to the local operation.
Optionally, the recovery submodule is specifically configured to: determining an identifier corresponding to the necessary function information; and recovering the necessary function information according to the identification.
Optionally, the segmentation module is specifically configured to: and inserting an invalid event into the event corresponding to the local operation.
In a fourth aspect, an embodiment of the present invention provides an event processing apparatus based on remote connection, including: a processor and a memory.
The memory is to store executable instructions of the processor to cause the processor to: determining an event corresponding to a local operation; repeatedly executing the event corresponding to the local operation within a preset time period; if the event corresponding to the local operation causes a remote connection problem, judging whether the event corresponding to the local operation comprises non-essential function information; if the event corresponding to the local operation comprises non-essential function information, shielding the non-essential function information included in the event corresponding to the local operation; and if the event corresponding to the local operation does not comprise the unnecessary function information, segmenting the event corresponding to the local operation.
Optionally, the remote connection problem caused by the event corresponding to the local operation includes screen flash back or remote connection jamming; the processor is specifically configured to: if the remote connection quitting operation is not acquired and the indication information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, determining that the event corresponding to the local operation causes screen flash quitting; and if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked.
Optionally, the processor is specifically configured to: determining an identifier corresponding to the non-essential function information; and shielding the non-essential function information according to the identification.
Optionally, the processor is specifically configured to: and shielding the event corresponding to the local operation, and recovering the necessary function information included in the event corresponding to the local operation.
Optionally, the processor is specifically configured to: determining an identifier corresponding to the necessary function information; and recovering the necessary function information according to the identification.
Optionally, the processor is specifically configured to: and inserting an invalid event into the event corresponding to the local operation.
Optionally, the event corresponding to the local operation is a mouse moving event; wherein, the necessary function information included in the mouse movement event includes: dragging function information of a window of the mouse and/or selecting function information of an area of the mouse; the non-essential function information included in the mouse movement event includes: the mouse position transmits function information and/or attribute display function information.
Optionally, the event corresponding to the local operation is a mouse click event; wherein the mouse click event does not include non-essential function information.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, including: computer instructions for implementing the remote connection-based event processing method of the first aspect or alternatives of the first aspect.
In a fifth aspect, an embodiment of the present invention provides a computer program product, including: computer instructions for implementing the remote connection-based event processing method of the first aspect or alternatives of the first aspect.
The embodiment of the invention provides an event processing method and device based on remote connection and a storage medium. The method comprises the following steps: determining an event corresponding to a local operation; repeatedly executing the event corresponding to the local operation within a preset time period; if the event corresponding to the local operation causes a remote connection problem, judging whether the event corresponding to the local operation comprises non-essential function information; if the event corresponding to the local operation comprises non-essential function information, shielding the non-essential function information included in the event corresponding to the local operation; and if the event corresponding to the local operation does not comprise the unnecessary function information, segmenting the event corresponding to the local operation. The embodiment of the invention has the beneficial effects that: on one hand, when a remote connection problem occurs, each event is repeatedly executed to ensure that the problem can be reproduced, namely, the event causing the remote connection problem is determined from a plurality of events, so that the aim of accurately positioning the event causing the remote connection problem from the plurality of events is fulfilled, and the subsequent processing of the event is facilitated; on the other hand, according to the non-essential function information contained in the determined event, the non-essential function information is shielded, so that the remote equipment does not need to execute the event corresponding to the non-essential function information, the probability of the problem of the remote connection is reduced, and the reliability of the remote connection is improved; on the other hand, when the event does not contain the unnecessary function information, the event needs to be segmented to reduce the continuity of the event, so that the remote device executes the event with lower continuity, the probability of the problem of remote connection can be reduced, and the reliability of the remote connection is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention;
FIG. 2A is a diagram illustrating a relationship between a keyboard operation and events according to an embodiment of the present invention;
FIG. 2B is a diagram illustrating relationships between mouse operations and events according to an embodiment of the present invention;
fig. 3 is a flowchart of an event processing method based on remote connection according to an embodiment of the present invention;
fig. 4 is a flowchart of an event processing method based on remote connection according to another embodiment of the present invention;
FIG. 5 is a diagram illustrating non-essential function information for masking events according to an embodiment of the present invention;
FIG. 6 is a flowchart of an event processing method based on remote connection according to still another embodiment of the present invention;
FIG. 7 is a diagram of an event processing device 70 based on remote connection according to an embodiment of the present invention;
FIG. 7A is a diagram of an event processing device 70A based on remote connection according to an embodiment of the present invention;
FIG. 7B is a diagram of an event processing device 70B based on remote connection according to an embodiment of the present invention;
fig. 8 is a schematic diagram of an event processing apparatus 80 based on remote connection according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Before the technical scheme of the invention is introduced, the technical terms related to the invention are firstly explained below;
the necessary function information: information indicating a function that the local device must use when executing the software code and information that the function can be realized without other operations, such as window dragging function information of a mouse and area selection function information of the mouse.
Non-essential function information: the function that the local device will not use when executing the software code is represented, or there is information that other operations can implement the function, such as mouse position sending function information and attribute display function information, where the attribute may be a desktop attribute of the remote device.
The technical scheme of the invention is described in detail as follows:
fig. 1 is a schematic view of an application scenario provided by an embodiment of the present invention, as shown in fig. 1, a remote connection has been established between a local device 11 and a remote device 12, so that a user can implement an operation on the remote device 12 through an operation on the local device 11, such as installing software, running a program, and the like on the remote device 12. The remote connection corresponds to a data communication channel between the remote device 12 and the home device 11. The data in the data communication channel is derived from the local operation of the local terminal equipment. The local operation may be a keyboard operation or a mouse operation, and the like, which is not limited in this embodiment of the present invention. Wherein different operations correspond to different events, such as: fig. 2A is a schematic diagram illustrating a relationship between a keyboard operation and events according to an embodiment of the present invention, and fig. 2B is a schematic diagram illustrating a relationship between a mouse operation and events according to an embodiment of the present invention. As shown in fig. 2A, the events corresponding to the keyboard operations include: a normal key event (e.g., key a), a combination key event (e.g., key Ctrl + C), and a function key event (e.g., key F1). As shown in fig. 2B, the events corresponding to the mouse operation include: a mouse movement event, a mouse click event, a mouse wheel event, and the like.
The main idea of the embodiment of the invention is as follows: and a unified event processing method is used for different events so as to improve the reliability of remote connection.
Specifically, fig. 3 is a flowchart of an event processing method based on remote connection according to an embodiment of the present invention, where an execution main body of the method is all or part of a local device, such as a local device (computer) or a processor in the local device, and the embodiment of the present invention is not limited thereto. The following describes an event processing method by taking an execution main body as a home device as an example, and as shown in fig. 3, the method includes the following steps:
step S301: and the local terminal equipment determines an event corresponding to the local operation.
Alternatively, after the remote connection problem occurs, the home device may first locate an operation type causing the remote connection problem, such as a keyboard operation type or a mouse operation type. For example: when the local terminal equipment determines that the keyboard operation acquired by the local terminal equipment is more than the mouse operation in a certain period of time before the remote connection problem occurs, in this case, the operation type causing the remote connection problem in the local terminal equipment positioning is the keyboard operation type.
Further, after the local device determines the operation type causing the remote connection problem, the local device may determine the local operation according to the operation type, for example: and if the operation type is the keyboard operation type, the local terminal equipment determines that the local operation is the keyboard operation.
Optionally, the local device may store a correspondence between the local operation and at least one event in advance, for example: when the local operation is a keyboard operation, the corresponding events comprise: a normal key event (e.g., key a), a combination key event (e.g., key Ctrl + C), and a function key event (e.g., key F1). When the local operation is a mouse operation, the corresponding events comprise: a mouse movement event, a mouse click event, a mouse wheel event, and the like.
Based on this, the local device may determine that any event corresponding to the local operation is the event corresponding to the local operation described in step S301.
Step S302: and the local terminal equipment repeatedly executes the event corresponding to the local operation within a preset time period.
In the embodiment of the present invention, the preset time period may be half an hour, 1 hour, 2 hours, and the like, which is not limited in the embodiment of the present invention. The term "repeatedly executing" as used herein means that one event corresponding to a local operation is repeatedly executed individually for a continuous period of time. Such as continuously and repeatedly executing a mouse movement event within 1 hour. The purpose of the repeat execution is to reproduce the remote connection problem and to locate the event causing the remote connection problem. The remote connection problem may be screen flash back or slow response (stuck), etc.
Step S303: if the event corresponding to the local operation causes the remote connection problem, the home terminal equipment judges whether the event corresponding to the local operation comprises unnecessary function information.
In the embodiment of the invention, when a plurality of events corresponding to local operations exist or a plurality of events corresponding to local operations may cause a remote connection problem, each event is repeatedly executed to achieve the purposes of reproducing the problem and positioning the event, namely, the event which can cause the remote connection problem is determined as an event which needs to be processed, and the step of acquiring the unnecessary function information included in the event is executed.
Optionally, the remote connection problem caused by the event corresponding to the local operation includes screen flash back or remote connection jamming; if the remote connection quitting operation is not acquired and the indication information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, the local terminal determines that the event corresponding to the local operation causes screen flash quitting; wherein, the remote connection quitting operation may be a click operation of a quitting button displayed on the local terminal interface. Alternatively, the remote connection logout operation may be a pressing operation of the user for "Esc" on the local terminal keypad.
And if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked. The preset time may be set according to an actual situation, and may be, for example, 10 seconds, 20 seconds, and the like, which is not limited in this embodiment of the present invention.
Further, the above-mentioned necessary function information and unnecessary function information may be set according to actual situations.
As described above, the unnecessary function information refers to a function that is not used by the local device when executing the software code, or there are other operations that can implement the function, such as sending function information from a mouse position and displaying function information of an attribute, where the attribute may be a desktop attribute of the remote device. Conversely, the necessary function information refers to a function that the local device must use when executing the software code, and no other operation is available to implement the function, such as window dragging function information of the mouse and region selection function information of the mouse.
For example: the necessary function information included in the mouse movement event includes: dragging function information of a window of the mouse and/or selecting function information of an area of the mouse; the unnecessary function information included in the mouse movement event includes: the mouse position transmits function information and/or attribute display function information.
Another example is: the function information included in the mouse click event is all the necessary function information, and it does not include the unnecessary function information.
Optionally, each piece of function information included in each event corresponds to a corresponding identifier. For example: the identifier of the window dragging function information of the mouse corresponding to the mouse moving event is 0, the identifier of the area selection function information of the mouse is 1, the identifier of the mouse position sending function information is 01, and the identifier of the attribute display function information is 10. For example: the home terminal device stores a code corresponding to each event in advance, and the code may include: and code segments corresponding to the non-essential function information, wherein each code segment corresponds to an identifier, and the identifier is the identifier corresponding to the non-essential function information. Based on this, the local device can determine whether the event includes the unnecessary function information by whether the code corresponding to the event includes the identifier.
Step S304: and if the event corresponding to the local operation comprises the non-essential function information, the local terminal equipment shields the non-essential function information included in the event corresponding to the local operation.
The "masking unnecessary function information included in the event corresponding to the local operation" means that the local device does not send the unnecessary function information to the remote device. For example: the home device may not send the mouse position sending function information and the attribute display function information to the remote device.
It should be noted that, here, the local device masks not the entire event corresponding to the local operation, but only masks unnecessary function information included in the event corresponding to the local operation. The benefits of this are: if the whole event is shielded, the function problem of the event may be caused, for example, the window dragging function of the mouse and the area selection function of the mouse cannot be realized.
Step S305: and if the event corresponding to the local operation does not comprise the unnecessary function information, the local terminal equipment divides the event corresponding to the local operation.
Here, "dividing an event corresponding to a local operation" means dividing a code corresponding to the event, that is, dividing a continuous event into discontinuous events. For example: and the home terminal equipment divides the codes corresponding to the mouse click events. The benefits of this are: since this type of event does not include unnecessary functional information, this way of partitioning does not affect the functional information of this type of event.
Optionally, after the local device segments the event corresponding to the local operation, the local device sends the segmented event to the remote device, so as to implement remote operation on the remote device.
To sum up, the embodiment of the present invention provides an event processing method based on remote connection, which, on one hand, when a remote connection problem occurs, ensures that the problem can be reproduced by repeatedly executing each event, that is, determining an event causing the remote connection problem from a plurality of events, so as to achieve the purpose of accurately locating the event causing the remote connection problem from the plurality of events, and facilitate subsequent processing of the event; on the other hand, according to the non-essential function information contained in the determined event, the non-essential function information is shielded, so that the remote equipment does not need to execute the event corresponding to the non-essential function information, the probability of the problem of the remote connection is reduced, and the reliability of the remote connection is improved; on the other hand, when the event does not contain the unnecessary function information, the event needs to be segmented to reduce the continuity of the event, so that the remote device executes the event with lower continuity, the probability of the problem of remote connection can be reduced, and the reliability of the remote connection is improved.
The above step S304 is explained as follows:
one alternative is to: the local terminal equipment directly shields unnecessary function information included in the event corresponding to the local operation, such as: the local device may identify unnecessary function information included in the event, and when the identification is encountered during the execution of the code, the local device does not transmit the unnecessary function information to the remote device.
Alternatively, the step of shielding, by the home device, the unnecessary function information included in the event corresponding to the local operation includes: and shielding the event corresponding to the local operation, and recovering the necessary function information included in the event corresponding to the local operation. Specifically, fig. 4 is a flowchart of an event processing method based on remote connection according to another embodiment of the present invention, where an execution main body of the method is all or part of a local device, such as a local device (computer) or a processor in the local device, and the embodiment of the present invention is not limited thereto. The following describes an event processing method by taking an execution main body as a home device as an example, and as shown in fig. 4, the method includes the following steps:
step S401: and the local terminal equipment determines an event corresponding to the local operation.
Step S402: and the local terminal equipment repeatedly executes the event corresponding to the local operation within a preset time period.
Step S403: if the event corresponding to the local operation causes the remote connection problem, the home terminal equipment judges whether the event corresponding to the local operation comprises the non-essential function information.
Step S404: and if the event corresponding to the local operation comprises the non-essential function information, the local terminal equipment shields the event corresponding to the local operation and recovers the essential function information contained in the event corresponding to the local operation.
Step S405: and if the event corresponding to the local operation does not comprise the unnecessary function information, the local terminal equipment divides the event corresponding to the local operation.
The steps S401 to S403 and S405 are the same as the steps S301 to S303 and S305, respectively, and reference may be specifically made to the related descriptions of the steps S301 to S303 and S305, which are not described again in the embodiment of the present invention.
Description is made with respect to step S404: firstly, the local terminal equipment shields the whole event corresponding to the local operation, and then necessary function information included in the event corresponding to the local operation is recovered through condition judgment. For example: fig. 5 is a schematic diagram of unnecessary function information of a shielding event according to an embodiment of the present invention, and as shown in fig. 5, for a mouse movement event, first, a home device shields the entire mouse movement event, and what is actually required to be shielded is only the mouse position sending function information and the attribute display function information. Based on the condition, the home terminal equipment recovers the window dragging function information of the mouse and the area selection function information of the mouse through condition judgment.
Optionally, the local terminal may recover the necessary function information included in the event corresponding to the local operation in the following manner, and the local device may identify the necessary function information included in the event, and when encountering the identifier in the code execution process, the local device sends the necessary function information to the remote device.
In the embodiment of the invention, the local terminal equipment can directly shield the unnecessary function information included in the event. Or, the local device shields the unnecessary function information included in the event by shielding the event corresponding to the local operation and recovering the necessary function information included in the event corresponding to the local operation. On the one hand, the problem of function information of events can be avoided no matter which way is used, and then the reliability of remote connection is improved. On the other hand, according to the determined unnecessary function information contained in the event, the unnecessary function information is shielded, so that the remote equipment does not need to execute the operation corresponding to the unnecessary function information, the probability of the problem of the remote connection is reduced, and the reliability of the remote connection is improved.
Further, the following description is made with respect to the above step S305:
one alternative is to: the method for segmenting the event corresponding to the local operation by the home terminal equipment comprises the following steps: the local device inserts time information into an event corresponding to a local operation, where the multiple time information divides the entire event into multiple sub-events, for example: after the first sub-event is executed, the subsequent time information indicates that the second sub-event is executed after a preset time period, where the preset time period may be 10 seconds, 20 seconds, 30 seconds, or the like, which is not limited in this embodiment of the application.
It should be noted that, inserting time information into an event corresponding to a local operation by the local device may be inserting time information into a plurality of events corresponding to consecutive local operations. Alternatively, inserting the time information into the event corresponding to the local operation may be inserting the time information into an event corresponding to the local operation. Alternatively, inserting the time information into the event corresponding to the local operation may be inserting the time information into one event corresponding to the local operation, and inserting the time information into a plurality of events corresponding to the continuous local operations.
Another alternative is: and the local terminal equipment inserts an invalid event into the event corresponding to the local operation. Specifically, fig. 6 is a flowchart of an event processing method based on remote connection according to yet another embodiment of the present invention, where an execution main body of the method is all or part of a local device, such as a local device (computer) or a processor in the local device, and the present invention is not limited thereto. The following describes an event processing method by taking an execution main body as a home device as an example, and as shown in fig. 6, the method includes the following steps:
step S601: and the local terminal equipment determines an event corresponding to the local operation.
Step S602: and the local terminal equipment repeatedly executes the event corresponding to the local operation within a preset time period.
Step S603: if the event corresponding to the local operation causes the remote connection problem, the home terminal equipment judges whether the event corresponding to the local operation comprises the non-essential function information.
Step S604: and if the event corresponding to the local operation comprises the non-essential function information, the local terminal equipment shields the non-essential function information included in the event corresponding to the local operation.
Step S605: and if the event corresponding to the local operation does not comprise the unnecessary function information, the local terminal equipment inserts an invalid event into the event corresponding to the local operation.
The steps S601 to S604 are the same as the steps S301 to S304, and reference may be specifically made to the related descriptions of the steps S301 to S304, which will not be described again in the embodiment of the present invention.
Alternatively, by "invalidating an event" is meant that the event will not be validated at the remote device.
It should be noted that, the inserting of the invalid event into the event corresponding to the local operation by the home device may be inserting the invalid event into a plurality of events corresponding to the continuous local operations. Alternatively, inserting an invalidation event in an event corresponding to the local operation may be invalidating an event in an event corresponding to the local operation. Alternatively, inserting an invalid event into an event corresponding to a local operation may be inserting an invalid event into an event corresponding to a local operation, and inserting an invalid event into a plurality of events corresponding to consecutive local operations.
For example: neither the mouse click event nor the normal key event includes unnecessary function information, and the home device may insert an invalid keyboard event, such as an invalid key value event, into the consecutive mouse click events. And inserting an invalid mouse event, such as an invalid mouse position event, in the continuous common key event.
Alternatively, the insertion position of the invalid event is preset. For example, when the local operation is a mouse operation and an event corresponding to the local operation is a mouse dragging event, a mouse moving track caused by the mouse dragging event is divided according to position nodes to obtain a plurality of sub-events, and an invalid event is inserted after each sub-event.
In the embodiment of the present invention, the local device may segment an event that does not include unnecessary function information, where the segmentation may be based on time information or based on an invalid event. On the one hand, the problem of function information of an event can be avoided by any segmentation method, and the reliability of remote connection is improved while the reliability of the remote connection is solved. On the other hand, the technical scheme provided by the embodiment of the invention can reduce the continuity of the event, so that the remote equipment executes the event with lower continuity, the probability of the problem of the remote connection can be reduced, and the reliability of the remote connection is improved.
The technical solution of the present invention is further illustrated by the following examples:
example 1
The local terminal device searches the currently connected remote terminal device. If the remote connection quitting operation is not acquired and the indicating information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, the home terminal equipment determines that the event corresponding to the local operation causes screen flash quitting; and if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked. If there is a screen flash back or remote connection stuck problem, the home device may execute an event corresponding to a mouse operation or an event corresponding to a keyboard operation, so as to locate a specific event causing the screen flash back or remote connection stuck problem, for example: the local device repeatedly executes the mouse movement event, when the above problem is repeated, the local device can shield the whole mouse movement event (wherein, in the process of writing the code, the mouse movement event can be defined as a global variable), and then the local device judges whether each function information in the mouse movement event is unnecessary function information, if not, the local device sends the necessary function information to the remote device. As described above, the necessary function information and the unnecessary function information both correspond to corresponding identifiers, so the local device can determine which is the necessary function information according to the identifiers, for example: the local terminal device determines that the window dragging function information of the mouse and the region selection function information of the mouse are necessary function information according to the identification, and then the local terminal device sends the window dragging function information of the mouse and the region selection function information of the mouse to the remote terminal device (wherein in the code writing process, two variables can be respectively defined for the two necessary function information), namely, the necessary function information in the mouse moving event is recovered.
Example two
The local terminal device searches the currently connected remote terminal device. If the remote connection quitting operation is not acquired and the indicating information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, the home terminal equipment determines that the event corresponding to the local operation causes screen flash quitting; and if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked. If there is a screen flash back or remote connection stuck problem, the home device may execute an event corresponding to a mouse operation or an event corresponding to a keyboard operation, so as to locate a specific event causing the screen flash back or remote connection stuck problem, for example: the local terminal device repeatedly executes the mouse click event, and when the above problem is repeated, an invalid event may be inserted into the mouse click event, for example: the invalidation event may include: the abscissa of the mouse position is-1, or the ordinate is-1. After inserting the invalidation event, the home device sends a mouse click event to the remote device. For another example: the home terminal device repeatedly executes the common key event, and when the above problem is repeated, an invalid event may be inserted into the common key event, for example: the invalidation event may include: the key value of the key is-1. After inserting the invalid event, the local terminal equipment sends a common key event to the remote terminal equipment.
It should be noted that, in the embodiment of the present invention, event processing is performed only for a remote device with a remote connection problem, and the processing procedure does not affect the connection of other remote devices.
It should be noted that by implementing the solution of the present invention, the remote connection problem is significantly improved, and if the prior art method is used, the remote connection problem occurs about 10 times a day, whereas after the implementation of the present invention, the remote connection problem occurs about 2 times a day, thereby improving the reliability of the remote connection.
Fig. 7 is a schematic diagram of an event processing apparatus 70 based on remote connection according to an embodiment of the present invention, where the apparatus may be part or all of a local device. As shown in fig. 7, the apparatus 70 includes:
and the determining module 71 is configured to determine an event corresponding to the local operation.
And the execution module 72 is configured to repeatedly execute an event corresponding to the local operation within a preset time period.
The determining module 73 is configured to determine whether the event corresponding to the local operation includes unnecessary function information if the event corresponding to the local operation causes a remote connection problem.
And a shielding module 74, configured to shield the unnecessary function information included in the event corresponding to the local operation if the event corresponding to the local operation includes the unnecessary function information.
The segmenting module 75 is configured to segment the event corresponding to the local operation if the event corresponding to the local operation does not include the unnecessary function information.
Optionally, the remote connection problem caused by the event corresponding to the local operation includes screen flash back or remote connection jamming; the determining module 71 is specifically configured to: if the remote connection quitting operation is not acquired and the indication information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, determining that the event corresponding to the local operation causes screen flash quitting; and if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked.
Optionally, the segmentation module 75 is specifically configured to insert an invalid event into an event corresponding to the local operation.
Optionally, the event corresponding to the local operation is a mouse moving event; wherein, the necessary function information included in the mouse moving event comprises: dragging function information of a window of the mouse and/or selecting function information of an area of the mouse; the unnecessary function information included in the mouse movement event includes: the mouse position transmits function information and/or attribute display function information.
Optionally, the event corresponding to the local operation is a mouse click event; wherein the mouse click event does not include non-essential function information.
Fig. 7A is a schematic diagram of an event processing apparatus 70A based on remote connection according to an embodiment of the present invention, where the shielding module 74 includes:
the determining sub-module 741a is configured to determine an identifier corresponding to the non-essential function information.
A first masking submodule 742a for masking the non-essential function information according to the identification.
Alternatively, fig. 7B is a schematic diagram of an event processing apparatus 70B based on remote connection according to an embodiment of the present invention, where the shielding module 74 includes:
optionally, the shielding module 74 includes:
and the second shielding submodule 741b is configured to shield an event corresponding to the local operation.
And a recovery submodule 742b for recovering necessary function information included in the event corresponding to the local operation.
Optionally, the recovery submodule 742b is specifically configured to: determining an identifier corresponding to the necessary function information; and recovering the necessary function information according to the identification.
The event processing apparatus provided in the embodiment of the present invention can be used to execute the event processing method described above, and the content and effect thereof can refer to the method embodiment section, which is not described again in the embodiment of the present invention.
Fig. 8 is a schematic diagram of an event processing apparatus 80 based on remote connection according to an embodiment of the present invention, where the apparatus may be a local device. As shown in fig. 8, the apparatus 80 includes: a processor 81, a transceiver 82, and a memory 83. Wherein the transceiver 82 is used to communicate with remote devices or other devices. The memory 83 is for storing processor-executable instructions to cause the processor 81 to: determining an event corresponding to a local operation; repeatedly executing events corresponding to local operations within a preset time period; if the event corresponding to the local operation causes a remote connection problem, judging whether the event corresponding to the local operation comprises non-essential function information; if the event corresponding to the local operation comprises the non-essential function information, shielding the non-essential function information in the event corresponding to the local operation; and if the event corresponding to the local operation does not comprise the unnecessary function information, segmenting the event corresponding to the local operation.
Optionally, the remote connection problem caused by the event corresponding to the local operation includes screen flash back or remote connection jamming; the processor 81 is specifically configured to: if the remote connection quitting operation is not acquired and the indication information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, determining that the event corresponding to the local operation causes screen flash quitting; and if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked.
Optionally, the processor 81 is specifically configured to: determining an identifier corresponding to the non-essential function information; and shielding the non-essential function information according to the identification.
Optionally, the processor 81 is specifically configured to: and shielding the event corresponding to the local operation, and recovering the necessary function information included in the event corresponding to the local operation.
Optionally, the processor 81 is specifically configured to: determining an identifier corresponding to the necessary function information; and recovering the necessary function information according to the identification.
Optionally, the processor 81 is specifically configured to: and inserting an invalid event into an event corresponding to the local operation.
Optionally, the event corresponding to the local operation is a mouse moving event; wherein, the necessary function information included in the mouse moving event comprises: dragging function information of a window of the mouse and/or selecting function information of an area of the mouse; the unnecessary function information included in the mouse movement event includes: the mouse position transmits function information and/or attribute display function information.
Optionally, the event corresponding to the local operation is a mouse click event; wherein the mouse click event does not include non-essential function information.
The event processing apparatus provided in the embodiment of the present invention can be used to execute the event processing method described above, and the content and effect thereof can refer to the method embodiment section, which is not described again in the embodiment of the present invention.
The present application further provides a computer storage medium comprising: computer instructions for implementing the remote connection-based event processing method described above. The content and effect of the method can refer to the part of the embodiment of the method, and the embodiment of the invention is not repeated.
The present application further provides a computer program product comprising: computer instructions for implementing the remote connection-based event processing method described above. The content and effect of the method can refer to the part of the embodiment of the method, and the embodiment of the invention is not repeated.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a memory access system readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (14)

1. An event processing method based on remote connection is characterized by comprising the following steps:
determining an event corresponding to a local operation;
repeatedly executing the event corresponding to the local operation within a preset time period;
if the event corresponding to the local operation causes a remote connection problem, judging whether the event corresponding to the local operation comprises non-essential function information;
if the event corresponding to the local operation comprises non-essential function information, shielding the non-essential function information included in the event corresponding to the local operation;
and if the event corresponding to the local operation does not comprise the unnecessary function information, segmenting the event corresponding to the local operation.
2. The method of claim 1, wherein the remote connection problem caused by the event corresponding to the local operation comprises screen flash back or remote connection jamming;
the method for determining that the event corresponding to the local operation causes the remote connection problem comprises the following steps:
if the remote connection quitting operation is not acquired and the indication information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, determining that the event corresponding to the local operation causes screen flash quitting;
and if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked.
3. The method according to claim 1 or 2, wherein the shielding of the nonessential function information included in the event corresponding to the local operation comprises:
determining an identifier corresponding to the non-essential function information;
and shielding the non-essential function information according to the identification.
4. The method according to claim 1 or 2, wherein the shielding of the nonessential function information included in the event corresponding to the local operation comprises:
and shielding the event corresponding to the local operation, and recovering the necessary function information included in the event corresponding to the local operation.
5. The method according to claim 4, wherein the recovering the necessary function information included in the event corresponding to the local operation comprises:
determining an identifier corresponding to the necessary function information;
and recovering the necessary function information according to the identification.
6. The method according to claim 1 or 2, wherein the segmenting the event corresponding to the local operation comprises:
and inserting an invalid event into the event corresponding to the local operation.
7. An event processing apparatus based on remote connection, comprising:
the determining module is used for determining an event corresponding to the local operation;
the execution module is used for repeatedly executing the event corresponding to the local operation within a preset time period;
the judging module is used for judging whether the event corresponding to the local operation comprises non-essential function information or not if the event corresponding to the local operation causes a remote connection problem;
the shielding module is used for shielding the non-essential function information included in the event corresponding to the local operation if the event corresponding to the local operation includes the non-essential function information;
and the segmentation module is used for segmenting the event corresponding to the local operation if the event corresponding to the local operation does not comprise the unnecessary function information.
8. The apparatus of claim 7, wherein the remote connection problem caused by the event corresponding to the local operation comprises screen flash back or remote connection jamming;
the determining module is specifically configured to:
if the remote connection quitting operation is not acquired and the indication information for indicating the remote connection quitting is acquired according to the event corresponding to the local operation, determining that the event corresponding to the local operation causes screen flash quitting;
and if the response message is not acquired within the preset time after the local operation is executed, determining that the event corresponding to the local operation causes the remote connection to be blocked.
9. The apparatus of claim 7 or 8, wherein the shielding module comprises:
the determining submodule is used for determining the identification corresponding to the non-essential function information;
and the first shielding submodule is used for shielding the non-essential function information according to the identification.
10. The apparatus of claim 7 or 8, wherein the shielding module comprises:
the second shielding submodule is used for shielding the event corresponding to the local operation;
and the recovery submodule is used for recovering the necessary function information included in the event corresponding to the local operation.
11. The apparatus of claim 10, wherein the recovery submodule is specifically configured to:
determining an identifier corresponding to the necessary function information;
and recovering the necessary function information according to the identification.
12. The apparatus according to claim 7 or 8, wherein the segmentation module is specifically configured to:
and inserting an invalid event into the event corresponding to the local operation.
13. An event processing apparatus based on remote connection, comprising: a processor and a memory;
the memory is to store executable instructions of the processor to cause the processor to:
determining an event corresponding to a local operation;
repeatedly executing the event corresponding to the local operation within a preset time period;
if the event corresponding to the local operation causes a remote connection problem, judging whether the event corresponding to the local operation comprises non-essential function information;
if the event corresponding to the local operation comprises non-essential function information, shielding the non-essential function information included in the event corresponding to the local operation;
and if the event corresponding to the local operation does not comprise the unnecessary function information, segmenting the event corresponding to the local operation.
14. A computer storage medium, comprising: computer instructions for implementing a remote connection-based event processing method according to any of claims 1-6.
CN201810987935.1A 2018-08-28 2018-08-28 Event processing method and device based on remote connection and storage medium Active CN110865890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810987935.1A CN110865890B (en) 2018-08-28 2018-08-28 Event processing method and device based on remote connection and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810987935.1A CN110865890B (en) 2018-08-28 2018-08-28 Event processing method and device based on remote connection and storage medium

Publications (2)

Publication Number Publication Date
CN110865890A CN110865890A (en) 2020-03-06
CN110865890B true CN110865890B (en) 2022-04-26

Family

ID=69651696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810987935.1A Active CN110865890B (en) 2018-08-28 2018-08-28 Event processing method and device based on remote connection and storage medium

Country Status (1)

Country Link
CN (1) CN110865890B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6145088A (en) * 1996-06-18 2000-11-07 Ontrack Data International, Inc. Apparatus and method for remote data recovery
CN104348878A (en) * 2013-08-06 2015-02-11 好看科技(深圳)有限公司 Method, device and system for remotely controlling mobile terminal as well as mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE354824T1 (en) * 1998-09-22 2007-03-15 Avocent Huntsville Corp SYSTEM FOR REMOTE ACCESS TO PERSONAL COMPUTER
US8676926B2 (en) * 2009-04-15 2014-03-18 Wyse Technology L.L.C. System and method for handling remote drawing commands

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6145088A (en) * 1996-06-18 2000-11-07 Ontrack Data International, Inc. Apparatus and method for remote data recovery
CN104348878A (en) * 2013-08-06 2015-02-11 好看科技(深圳)有限公司 Method, device and system for remotely controlling mobile terminal as well as mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JAVA REMOTE CONTROL SYSTEM;Lining Xu;《http://www.theseus.fi/handle/10024/105726》;20161231;第1-32页 *
让远程桌面连接畅通无阻;周勇生;《网友世界》;20111130(第Z2期);第40-41页 *

Also Published As

Publication number Publication date
CN110865890A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
US20190332513A1 (en) Method and apparatus for dealing with abnormality of application program and storage medium
CN108829580B (en) Multi-version test data processing method, device, equipment and storage medium
US10088969B2 (en) Image-based automation systems and methods
CN104252284A (en) File display method and device
CN104391797A (en) GUI (graphical user interface) widget identification method and device
US10360090B2 (en) Determination method, determination apparatus, and recording medium
US9678632B2 (en) Data processing method and apparatus
CN109450869B (en) Service safety protection method based on user feedback
CN106095621A (en) The restoration methods of Launcher operation exception and system in a kind of Android system
CN108089737B (en) Multi-mouse control method and device for single computer
CN110865890B (en) Event processing method and device based on remote connection and storage medium
CN111158729A (en) System upgrading method, device, equipment and storage medium
CN113987393A (en) Web page operation recorder, system, device and method
CN103914288A (en) Control state judging method
CN105279042A (en) Redundant backup system and method for BSD system
US8732568B1 (en) Systems and methods for managing workflows
CN114679295B (en) Firewall security configuration method and device
WO2021254244A1 (en) Alarm mining model determination method and apparatus, device and storage medium
US10417017B2 (en) Determining candidate patches for a computer software
CN113238815B (en) Interface access control method, device, equipment and storage medium
CN114356290A (en) Data processing method and device and computer readable storage medium
US10860197B1 (en) Multi-source trace processing in computing systems
CN114356475A (en) Display processing method, device, equipment and storage medium
CN112988192A (en) Version updating method and device, electronic equipment and storage medium
US20140130123A1 (en) Method for operating invisible system services on android platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Applicant after: Loongson Zhongke Technology Co.,Ltd.

Address before: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Applicant before: LOONGSON TECHNOLOGY Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant