CN103200237B - A kind of method and apparatus keeping remote desktop synchronization - Google Patents
A kind of method and apparatus keeping remote desktop synchronization Download PDFInfo
- Publication number
- CN103200237B CN103200237B CN201310075713.XA CN201310075713A CN103200237B CN 103200237 B CN103200237 B CN 103200237B CN 201310075713 A CN201310075713 A CN 201310075713A CN 103200237 B CN103200237 B CN 103200237B
- Authority
- CN
- China
- Prior art keywords
- new data
- client
- image frame
- spatial cache
- described client
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method and apparatus keeping remote desktop synchronization, wherein, method includes: acquisition first more new data; When with between client transmit unavailable and that client is corresponding spatial cache be sky time, previous image frame is stored to spatial cache corresponding to client; When not being empty with the spatial cache that transmission is available and client is corresponding between client, picture frame generation second more new data according to storage in the spatial cache that current image frame and client are corresponding, by second more new data transmission to client, and empty the spatial cache that client is corresponding. This method according to the picture frame of the last display of storage in the current image frame of the remote desktop spatial cache corresponding with client generate second more new data be sent to client so that client keeps Tong Bu with the desktop of server end.
Description
Technical field
The present invention relates to the communications field, more particularly, to a kind of method and apparatus keeping remote desktop synchronization.
Background technology
RFB (RemoteFrameBuffer, remote image frame cushions) agreement is the simple protocol of a remote access graphic user interface. Owing to RFB agreement is operated in picture frame cushion, therefore it is applicable to all of window system and application program. The plotting mode that RFB agreement adopts is built upon on following basis: rectangular pixels data block is plotted to by the position of coordinate setting, and namely RFB agreement can realize being transmitted the data changed between two picture frames.
As it is shown in figure 1, the remote terminal (generally comprising display, keyboard and mouse) that user uses is called RFB client, the terminal (such as window system or application program) that picture frame buffering changes is caused to be called RFB server end. RFB agreement is a real thin-client agreement, primary concern is that the demand as far as possible reduced client during RFB Protocol Design.
But, existing RFB server section adopts single-threaded mechanism, overall performance can be produced impact when there being slow network user to access.
Summary of the invention
In view of this, the purpose of the embodiment of the present invention is to propose a kind of method and apparatus keeping remote desktop synchronization so that overall performance will not be produced impact when accessing slow network user.
In order to achieve the above object, the embodiment of the present invention proposes a kind of method keeping remote desktop synchronization, comprises the following steps:
Obtain the first more new data, described first more new data be the difference between the current image frame of remote desktop and previous image frame;
When be sky with the spatial cache that transmission is unavailable and described client is corresponding between described client, previous image frame is stored to spatial cache corresponding to described client;
When the spatial cache corresponding with the available and described client of the transmission between described client is not empty, picture frame generation second more new data according to storage in the spatial cache that current image frame and described client are corresponding, by second more new data transmission to described client, and empty the spatial cache that described client is corresponding.
In this method embodiment, spatial cache corresponding to client be for when have more new data and the transmission of client unavailable time, the previous image frame of current image frame is carried out buffer memory, so that the image frame synchronization that in spatial cache corresponding to client, the picture frame of storage and client finally show.When available with the transmission of client, in the spatial cache that current image frame according to remote desktop is corresponding with client the picture frame of storage generate second more new data be sent to client, client is made to update the current image frame of data acquisition remote desktop according to the picture frame and second of its finally display, so that client can keep Tong Bu with the desktop of server end.
Preferred as technique scheme, obtains first more after new data, and described method also includes:
When the spatial cache corresponding with the available and described client of the transmission between client be empty, by the first more new data transmission extremely described client. This programme user transmit available and before do not omit more new data time up-to-date more new data is sent to client, it is simple to user quickly obtains the current image frame with remote desktop synchronization.
Preferred as technique scheme, the step obtaining the first more new data includes: send the request obtaining the first more new data; Reception first more new data. It is thereby achieved that obtain the first more new data from acquisition server.
Preferred as technique scheme, described send the request obtaining the first more new data and includes: send the request obtaining the first more new data according to prefixed time interval. Achieve and automatically obtain renewal.
Preferred as technique scheme, obtains first more after new data, and described method also includes: obtain current image frame buffer memory according to the previous image frame of the described first more new data and buffer memory in advance. According to first more new data and previous image frame obtain current image frame, without transmitting whole picture frame, save resource.
The embodiment of the present invention also proposes a kind of device keeping remote desktop synchronization, including:
Acquisition module, is used for obtaining the first more new data, described first more new data be the difference between the current image frame of remote desktop and previous image frame;
First processing module, for when be sky with the spatial cache that transmission is unavailable and described client is corresponding between described client, stores previous image frame to spatial cache corresponding to described client;
Second processing module, for when the spatial cache corresponding with the available and described client of the transmission between described client is not empty, picture frame generation second more new data according to storage in the spatial cache that current image frame and described client are corresponding, by second more new data transmission to described client, and empty the spatial cache that described client is corresponding.
Preferred as technique scheme, described device also includes:
3rd processing module, is used for obtaining first more after new data, when the spatial cache corresponding with the available and described client of the transmission between client be empty, by the first more new data transmission extremely described client.
Preferred as technique scheme, described 3rd processing module includes:
Transmitting element, for sending the request of acquisition first more new data;
Receive unit, be used for receiving the first more new data.
Preferred as technique scheme, described transmitting element obtains the request of the first more new data according to prefixed time interval for sending.
Preferred as technique scheme, described device also includes:
Generate present image frame module, be used for obtaining first more after new data, obtain current image frame buffer memory according to the previous image frame of the described first more new data and buffer memory in advance.
The further feature of the embodiment of the present invention and advantage will be set forth in the following description, and, partly become apparent from description, or understand by implementing the embodiment of the present invention.The purpose of the embodiment of the present invention and other advantages can be realized by structure specifically noted in the description write, claims and accompanying drawing and be obtained.
Below by drawings and Examples, the technical scheme of the embodiment of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is for providing being further appreciated by the embodiment of the present invention, and constitutes a part for description, is not intended that the restriction to the embodiment of the present invention. In the accompanying drawings:
Fig. 1 is the remote desktop system using RFB agreement;
Fig. 2 is the main method flow chart of the maintenance remote desktop synchronization in the embodiment of the present invention;
Fig. 3 is the method detailed flow chart of the maintenance remote desktop synchronization in the embodiment of the present invention;
Fig. 4 is the primary structure schematic diagram of the device of the maintenance remote desktop synchronization in the embodiment of the present invention;
Fig. 5 is the concrete structure schematic diagram of the device of the maintenance remote desktop synchronization in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, preferred embodiment is illustrated, it will be appreciated that preferred embodiment described herein is merely to illustrate and explains the embodiment of the present invention, is not intended to limit the present invention embodiment.
It is illustrated in figure 2 in the embodiment of the present invention to keep the main method flow process of remote desktop synchronization, comprises the following steps:
Step S201: obtain the first more new data, described first more new data be the difference between the current image frame of remote desktop and previous image frame.
First more new data be the part changed between current image frame and previous image frame, and this part is compressed coding.
Step S202: when be sky with the spatial cache that transmission is unavailable and described client is corresponding between described client, stores previous image frame to spatial cache corresponding to described client;
Step S203: when the spatial cache corresponding with the available and described client of the transmission between described client is not empty, picture frame generation second more new data according to storage in the spatial cache that current image frame and described client are corresponding, by second more new data transmission to described client, and empty the spatial cache that described client is corresponding.
When after acquisition first more new data, when the spatial cache corresponding with the available and described client of the transmission between described client is not empty, being not successfully received more new data before client is described, in the spatial cache of its correspondence, namely storage be image is the last received image frame of client.
In this method embodiment, spatial cache corresponding to client be for when have more new data and the transmission of client unavailable time, the previous image frame of current image frame is carried out buffer memory, so that the image frame synchronization that in spatial cache corresponding to client, the picture frame of storage and client finally show. When available with the transmission of client, in the spatial cache that current image frame according to remote desktop is corresponding with client the picture frame of storage generate second more new data be sent to client, client is made to update the current image frame of data acquisition remote desktop according to the picture frame and second of its finally display, so that client can keep Tong Bu with the desktop of server end.
Realize process is discussed in detail below by exemplary embodiments.
The method being illustrated in figure 3 in the embodiment of the present invention to keep remote desktop synchronization, before the process per se, first carries out step in advance: set up spatial cache and transmission serviceable indicia respectively for each client.
Step S301: send the request of acquisition first more new data.
In this step, the request of acquisition first more new data is sent to desktop acquisition server. Desktop acquisition server gathers the current image frame (n-th picture frame) of desktop, and that is difference between the N-1 picture frame is encoded thus obtaining the first more new data by n-th picture frame and previous picture frame.
Preferably, it is possible to send the request of acquisition first more new data according to prefixed time interval.
Step S302: reception first more new data.
Step S303: obtain the n-th picture frame (i.e. current image frame) Tong Bu with acquisition server buffer memory n-th picture frame according to the N-1 picture frame of the first more new data and buffer memory in advance.
After this step, the picture frame of buffer memory includes n-th picture frame and the N-1 picture frame.
Step S304: by read the transmission serviceable indicia of client judge with the transmission of client whether can with and judge whether spatial cache corresponding to this client is sky; When being empty with the spatial cache that transmission can use and this client is corresponding of client, perform step S305; When not being empty with the spatial cache that transmission can use and this client is corresponding of client, perform step S306; When with client transmit unavailable and that this client is corresponding spatial cache be empty time, execution step S308; When with client transmit unavailable and that this client is corresponding spatial cache be sky time, then terminate.
Step S305: by first more new data transmission terminate to after this client.
According to first, more new data and the last picture frame shown generate the current image frame N Tong Bu with desktop acquisition server to client.
Step S306: according to the picture frame M of storage in the spatial cache that the n-th picture frame of buffer memory and this client are corresponding generation second more new data.
The picture frame that picture frame M is the image frame synchronization finally shown with client of storage in the spatial cache that this client is corresponding.
Step S307: by second more new data transmission to this client, and empty and terminate after the spatial cache that described client is corresponding.
Client generates the current image frame N Tong Bu with desktop acquisition server according to the picture frame of the second more new data and last display, namely achieves Tong Bu with remote desktop maintenance.
Step S308: the N-1 picture frame of buffer memory is stored and terminates to spatial cache corresponding to this client.
In this step, N-1 picture frame is the picture frame that client finally shows, therefore, in the spatial cache that client is corresponding, storage is the picture frame that finally shows of this client.
In the present embodiment, such as, when remote desktop has updated to N+5 frame, desktop acquisition server collect first more new data be the difference between N+5 frame and N+4 frame, and client is unavailable due to transmission before, when being finally shown that N-1 frame, can not directly use this first more new data obtain N+5 frame, therefore, need to calculate the more new data between N+5 frame and N-1 frame, by this more this client of new data transmission, so, client just can obtain N+5 frame on the basis of N-1 frame and show. In the present embodiment, it is necessary to the picture frame that buffer memory is Tong Bu with desktop, and obtain the picture frame that finally shows of client therefore.
Correspondingly, the embodiment of the present invention also proposes a kind of device keeping remote desktop synchronization, as shown in Figure 4, and including:
Acquisition module 401, is used for obtaining the first more new data, described first more new data be the difference between the current image frame of remote desktop and previous image frame;
First processing module 402, for when be sky with the spatial cache that transmission is unavailable and described client is corresponding between described client, stores previous image frame to spatial cache corresponding to described client;
Second processing module 403, for when the spatial cache corresponding with the available and described client of the transmission between described client is not empty, picture frame generation second more new data according to storage in the spatial cache that current image frame and described client are corresponding, by second more new data transmission to described client, and empty the spatial cache that described client is corresponding.
Preferably, as it is shown in figure 5, described device also includes:
3rd processing module 404, is used for obtaining first more after new data, when the spatial cache corresponding with the available and described client of the transmission between client be empty, by the first more new data transmission extremely described client.
Preferably, the 3rd processing module 402 includes:
Transmitting element, for sending the request of acquisition first more new data;
Receive unit, be used for receiving the first more new data.
Preferably, transmitting element for sending the request of acquisition first more new data according to prefixed time interval.
Preferably, as it is shown in figure 5, described device also includes:
Generate present image frame module 405, be used for obtaining first more after new data, obtain current image frame buffer memory according to the previous image frame of the described first more new data and buffer memory in advance.
Those skilled in the art are it should be appreciated that the embodiment of the present invention can be provided as method, system or computer program. Therefore, the embodiment of the present invention can adopt the form of the realization of complete hardware, the realization of complete software or the realization in conjunction with software and hardware aspect. And, the embodiment of the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory and optical memory etc.) wherein including computer usable program code.
Flow chart and/or block diagram that the embodiment of the present invention is reference method, equipment (system) and computer program describe. It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame. These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable device, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable device provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, the embodiment of the present invention can be carried out various change and the modification spirit and scope without deviating from the embodiment of the present invention by those skilled in the art. So, if these amendments of the embodiment of the present invention and modification belong within the scope of claim and equivalent technologies thereof, then the embodiment of the present invention is also intended to comprise these change and modification.
Claims (8)
1. the method keeping remote desktop synchronization, it is characterised in that comprise the following steps:
Obtain the first more new data, described first more new data be the difference between the current image frame of remote desktop and previous image frame;
Previous image frame according to the described first more new data and buffer memory in advance obtains current image frame buffer memory;
When be sky with the spatial cache that transmission is unavailable and described client is corresponding between client, previous image frame is stored to spatial cache corresponding to described client;
When the spatial cache corresponding with the available and described client of the transmission between client is not empty, picture frame generation second more new data according to storage in the spatial cache that current image frame and described client are corresponding, by second more new data transmission to described client, and empty the spatial cache that described client is corresponding; Described client is made to update the current image frame of data acquisition remote desktop according to the picture frame and second that described client finally shows.
2. method according to claim 1, it is characterised in that after acquisition first more new data, described method also includes:
When the spatial cache corresponding with the available and described client of the transmission between client be empty, by the first more new data transmission extremely described client.
3. method according to claim 1, it is characterised in that the step of acquisition first more new data includes:
Send the request of acquisition first more new data;
Reception first more new data.
4. method according to claim 3, it is characterised in that the request of described transmission acquisition first more new data includes: send the request of acquisition first more new data according to prefixed time interval.
5. the device keeping remote desktop synchronization, it is characterised in that including:
Acquisition module, is used for obtaining the first more new data, described first more new data be the difference between the current image frame of remote desktop and previous image frame;
Generate present image frame module, be used for obtaining first more after new data, obtain current image frame buffer memory according to the previous image frame of the described first more new data and buffer memory in advance;
First processing module, for when be sky with the spatial cache that transmission is unavailable and described client is corresponding between client, stores previous image frame to spatial cache corresponding to described client;
Second processing module, for when the spatial cache corresponding with the available and described client of the transmission between client is not empty, picture frame generation second more new data according to storage in the spatial cache that current image frame and described client are corresponding, by second more new data transmission to described client, and emptying the spatial cache that described client is corresponding so that described client updates the current image frame of data acquisition remote desktop according to the picture frame and second that described client finally shows.
6. device according to claim 5, it is characterised in that described device also includes:
3rd processing module, is used for obtaining first more after new data, when the spatial cache corresponding with the available and described client of the transmission between client be empty, by the first more new data transmission extremely described client.
7. device according to claim 6, it is characterised in that described 3rd processing module includes:
Transmitting element, for sending the request of acquisition first more new data;
Receive unit, be used for receiving the first more new data.
8. device according to claim 7, it is characterised in that described transmitting element for sending the request of acquisition first more new data according to prefixed time interval.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310075713.XA CN103200237B (en) | 2013-03-11 | 2013-03-11 | A kind of method and apparatus keeping remote desktop synchronization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310075713.XA CN103200237B (en) | 2013-03-11 | 2013-03-11 | A kind of method and apparatus keeping remote desktop synchronization |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103200237A CN103200237A (en) | 2013-07-10 |
CN103200237B true CN103200237B (en) | 2016-06-08 |
Family
ID=48722592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310075713.XA Expired - Fee Related CN103200237B (en) | 2013-03-11 | 2013-03-11 | A kind of method and apparatus keeping remote desktop synchronization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103200237B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105516229B (en) * | 2014-10-15 | 2020-02-28 | 中兴通讯股份有限公司 | Method and device for updating virtual desktop |
CN108183941A (en) * | 2017-12-20 | 2018-06-19 | 深圳安泰创新科技股份有限公司 | Terminal medical imaging remote synchronization method, apparatus and computer readable storage medium |
CN108310766B (en) * | 2018-02-06 | 2021-12-21 | 网易(杭州)网络有限公司 | Data processing method and device, storage medium, processor and terminal |
CN108509172B (en) * | 2018-04-13 | 2024-05-24 | 北京神州数码云科信息技术有限公司 | Synchronous display data transmission method, device, system and computer storage medium |
CN117591225B (en) * | 2023-12-05 | 2024-06-11 | 太极计算机股份有限公司 | Optimization method and system for rolling dragging window in cloud desktop |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541555A (en) * | 2011-12-27 | 2012-07-04 | 福建升腾资讯有限公司 | Method for remotely smoothly playing desktop video in API (application programming interface) interception mode |
CN102566910A (en) * | 2011-12-14 | 2012-07-11 | 广州杰赛科技股份有限公司 | Virtual desktop system and method for refreshing on-screen display of virtual desktop client |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8364865B2 (en) * | 2010-09-28 | 2013-01-29 | Microsoft Corporation | Data simulation using host data storage chain |
-
2013
- 2013-03-11 CN CN201310075713.XA patent/CN103200237B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102566910A (en) * | 2011-12-14 | 2012-07-11 | 广州杰赛科技股份有限公司 | Virtual desktop system and method for refreshing on-screen display of virtual desktop client |
CN102541555A (en) * | 2011-12-27 | 2012-07-04 | 福建升腾资讯有限公司 | Method for remotely smoothly playing desktop video in API (application programming interface) interception mode |
Also Published As
Publication number | Publication date |
---|---|
CN103200237A (en) | 2013-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106713485B (en) | Cloud computing mobile terminal | |
CN103200237B (en) | A kind of method and apparatus keeping remote desktop synchronization | |
CN102413150B (en) | Server and virtual desktop control method and virtual desktop control system | |
WO2021082584A1 (en) | Message exchange method and apparatus, readable medium, and electronic device | |
JP4116006B2 (en) | Screen transfer device, screen transfer system, screen transfer method, and program | |
US20130050271A1 (en) | Mobile terminal, image display device mounted on vehicle and data processing method using the same | |
US20160021405A1 (en) | Distribution control system, distribution control method, and computer-readable storage medium | |
CN103916423A (en) | Data synchronization method and device | |
CN101290228A (en) | Map data processing method, system and mobile terminal based on mobile terminal | |
EP2974317B1 (en) | Computer system, distribution control system, distribution control method, and computer-readable storage medium | |
EP3343337A1 (en) | Method and device for controlling screen between terminals, and storage medium | |
US20160037193A1 (en) | Distribution control system and distribution system | |
EP2790383A2 (en) | Distribution control system, distribution system, distribution control method, and computer-readable storage medium | |
EP2972903A1 (en) | Distribution control system, distribution control method, and computer-readable storage medium | |
CN103402089A (en) | Virtual desktop image compressing method based on macro block technology | |
CN103327051A (en) | Long-distance desktop management system and method | |
CN102436350A (en) | Remote application window display method, server and user terminal | |
CN102917246A (en) | Application data supplying method, device and system based on virtual machine | |
CN110083341A (en) | A kind of front end development platform, front end development approach and page display method | |
CN103297300A (en) | Interaction system and method of mobile intelligent terminal and server-side | |
CN111190675A (en) | Three-dimensional image transmission method and equipment based on Roc processor | |
CN104079368B (en) | A kind of the test data transmission method and server of application software | |
CN102497386B (en) | Control system for mobile platform of quantum microscopic CT (computed tomography) instrument in cloud computing environment | |
CN109413180A (en) | A kind of collecting method, system and equipment and storage medium | |
CN104468505A (en) | Safety audit log playing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Method and device for maintaining remote desktop synchronization Effective date of registration: 20161214 Granted publication date: 20160608 Pledgee: Beijing Guohua financing Company limited by guarantee Pledgor: TVMining (Beijing) Media Technology Co., Ltd. Registration number: 2016990001100 |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160608 Termination date: 20210311 |