CN105554157A - Data synchronizing method, device and system - Google Patents

Data synchronizing method, device and system Download PDF

Info

Publication number
CN105554157A
CN105554157A CN201610041970.5A CN201610041970A CN105554157A CN 105554157 A CN105554157 A CN 105554157A CN 201610041970 A CN201610041970 A CN 201610041970A CN 105554157 A CN105554157 A CN 105554157A
Authority
CN
China
Prior art keywords
data
operand
attribute data
synchronization
attribute
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.)
Granted
Application number
CN201610041970.5A
Other languages
Chinese (zh)
Other versions
CN105554157B (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.)
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics Co 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 Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Priority to CN201610041970.5A priority Critical patent/CN105554157B/en
Publication of CN105554157A publication Critical patent/CN105554157A/en
Priority to PCT/CN2016/113313 priority patent/WO2017124906A1/en
Application granted granted Critical
Publication of CN105554157B publication Critical patent/CN105554157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a data synchronizing method, comprising: detecting the operation of a user on a screen; if the operation of the user is detected as continuous operation, obtaining the tracking data of the continuous operation in real time, sending the tracking data to a receiving terminal as synchronizing data so as to carry out synchronized continuous operation; if the operation of the user is detected as disperse operation, obtaining attribute data of the first operation object of the disperse operation, sending the attribute data to the receiving terminal as synchronizing data so as to carry out synchronized disperse operation. Correspondingly, the invention also discloses a data synchronizing device and system. In adoption of the embodiment of the invention, the data are synchronized accurately and the data synchronizing efficiency is improved.

Description

Method of data synchronization, Apparatus and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method of data synchronization, Apparatus and system.
Background technology
In the remote synchronization of current interactive whiteboard or similar structures, the method of synchronization of usual employing is the data of collecting user operation at transmitting terminal, and be the data that can transmit by these data encapsulation, receiving terminal is sent to by network, receiving terminal is after receiving the data of transmission, resolved to the operating data of receiving terminal, and carried out synchronously according to this operating data.But the data that the operation different to user of above-mentioned synchronous method produces all adopt same procedure to transmit, and make its accuracy can not taking into account data syn-chronization and data synchronization efficiency.
Summary of the invention
The embodiment of the present invention proposes a kind of method of data synchronization, Apparatus and system, while guarantee data accurate synchronization, can improve the efficiency of data syn-chronization.
The one side of the embodiment of the present invention provides a kind of method of data synchronization, comprising:
The operation of user on screen is detected;
If detect, user's is operating as continued operation, then the track data of continued operation described in Real-time Obtaining, and sends to receiving terminal to carry out synchronous continued operation as synchrodata described track data;
If detect, user's is operating as discrete operations, then obtain the attribute data of the first operand of discrete operations, and sends to receiving terminal to carry out synchronization discrete operation as synchrodata described attribute data.
Further, described method of data synchronization also comprises:
At the end of described continued operation being detected, obtain the complete trajectory data of described continued operation, and described complete trajectory data are sent to described receiving terminal, described receiving terminal is revised synchronous continued operation according to described complete trajectory data.
Further, if the described user of detecting be operating as discrete operations, then obtain the attribute data of the first operand of discrete operations, and send to receiving terminal to carry out synchronization discrete operation as synchrodata described attribute data, specifically comprise:
If detect, user's is operating as discrete operations, then detect the granularity of described discrete operations;
If detect, described granularity is greater than preset value, then obtain the complete attribute data of the first operand of discrete operations as synchrodata;
If detect, described granularity is less than preset value, then obtain the attribute change data of the first operand of discrete operations as synchrodata;
Send described synchrodata to described receiving terminal, make described receiving terminal carry out synchronization discrete operation according to described synchrodata to second operand; Wherein, described synchrodata comprises the identification code of described first operand; Described second operand is that described receiving terminal has the operand of same identification code with described first operand.
Further, described method of data synchronization also comprises:
When the acquisition number of times of the attribute change data described first operand being detected reaches preset times, obtain the complete attribute data of described first operand, and the complete attribute data of described first operand is sent to described receiving terminal, described receiving terminal is revised according to the synchronization discrete operation of described complete attribute data to described second operand.
The another aspect of the embodiment of the present invention provides a kind of method of data synchronization, comprising:
The synchrodata that real-time reception transmitting terminal sends, and the data type of described synchrodata is identified;
If identifying described synchrodata is track data, then carry out synchronous continued operation according to described track data; Wherein, described track data be described transmitting terminal detect user on screen be operating as continued operation time Real-time Obtaining the track data of user's continued operation;
If identifying described synchrodata is attribute data, then carry out synchronization discrete operation according to described attribute data; Wherein, described attribute data be described transmitting terminal detect user on screen be operating as discrete operations time the attribute data of the first operand of user's discrete operations that obtains.
Further, described method of data synchronization also comprises:
Receive the complete trajectory data of user's continued operation that described transmitting terminal sends, and according to described complete trajectory data, synchronous continued operation is revised; Wherein, the complete trajectory data of described user's continued operation are that described transmitting terminal sends at the end of the continued operation of user on screen being detected.
Further, described attribute data comprises the identification code of described first operand;
If identifying described synchrodata described is attribute data, then carry out synchronization discrete operation according to described attribute data, specifically comprise:
If identifying described synchrodata is attribute data, then obtains second operand according to the identification code of described first operand in described attribute data, and the data volume of described attribute data is identified; Wherein, described second operand is the operand with described first operand in described transmitting terminal with same identification code;
If identifying described attribute data is complete attribute data, then using the attribute data of described complete attribute data as described second operand, and according to described attribute data, synchronization discrete operation is carried out to described second operand; Wherein, described complete attribute data is described transmitting terminal detecting that the granularity of user's discrete operations obtains when being greater than preset value;
If identify described attribute data for attribute variable's data, then the attribute data of second operand according to described attribute variable's data modification, and according to amended attribute data, synchronization discrete operation is carried out to described second operand.
Further, described method of data synchronization also comprises:
Receive the complete attribute data of described first operand that described transmitting terminal sends, and revise according to the discrete operations of complete attribute data to described second operand of described first operand; Wherein, the complete attribute data of described first operand is that described transmitting terminal sends when the acquisition number of times of the attribute change data described first operand being detected reaches preset times.
Correspondingly, the one side of the embodiment of the present invention provides a kind of data synchronization unit, comprising:
Detection module, for detecting the operation of user on screen;
First data transmission blocks, for detect user be operating as continued operation time, the track data of continued operation described in Real-time Obtaining, and send to receiving terminal to carry out synchronous continued operation as synchrodata described track data; And,
Second data transmission blocks, for detect user be operating as discrete operations time, obtain the attribute data of the first operand of discrete operations, and send to receiving terminal to carry out synchronization discrete operation as synchrodata described attribute data.
Further, described data synchronization unit also comprises:
First correcting module, for at the end of described continued operation being detected, obtain the complete trajectory data of described continued operation, and described complete trajectory data are sent to described receiving terminal, described receiving terminal is revised synchronous continued operation according to described complete trajectory data.
Further, described second data transmission blocks specifically comprises:
Detecting unit, for detect user be operating as discrete operations time, detect the granularity of described discrete operations;
First synchrodata acquiring unit, for when detecting that described granularity is greater than preset value, obtains the complete attribute data of the first operand of discrete operations as synchrodata;
Second synchrodata acquiring unit, for obtaining the attribute change data of the first operand of discrete operations as synchrodata; And,
Synchrodata transmitting element, for sending described synchrodata to described receiving terminal, makes described receiving terminal carry out synchronization discrete operation according to described synchrodata to second operand; Wherein, described synchrodata comprises the identification code of described first operand; Described second operand is that described receiving terminal has the operand of same identification code with described first operand.
Further, described data synchronization unit also comprises:
Second correcting module, for when the acquisition number of times of the attribute change data described first operand being detected reaches preset times, obtain the complete attribute data of described first operand, and the complete attribute data of described first operand is sent to described receiving terminal, described receiving terminal is revised according to the synchronization discrete operation of described complete attribute data to described second operand.
The another aspect of the embodiment of the present invention provides a kind of data synchronization unit, comprising:
Data reception module, for the synchrodata that real-time reception transmitting terminal sends, and identifies the data type of described synchrodata;
Continued operation synchronization module, for when identifying described synchrodata and being track data, carries out synchronous continued operation according to described track data; Wherein, described track data be described transmitting terminal detect user on screen be operating as continued operation time Real-time Obtaining the track data of user's continued operation; And,
Discrete operations synchronization module, for when identifying described synchrodata and being attribute data, carries out synchronization discrete operation according to described attribute data; Wherein, described attribute data be described transmitting terminal detect user on screen be operating as discrete operations time the attribute data of the first operand of user's discrete operations that obtains.
Further, described data synchronization unit also comprises:
Continued operation correcting module, for receiving the complete trajectory data of user's continued operation that described transmitting terminal sends, and revises synchronous continued operation according to described complete trajectory data; Wherein, the complete trajectory data of described user's continued operation are that described transmitting terminal sends at the end of the continued operation of user on screen being detected.
Further, described attribute data comprises the identification code of the first operand;
Described discrete operations synchronization module specifically comprises:
Recognition unit, for when identifying described synchrodata and being attribute data, the identification code according to described first operand in described attribute data obtains second operand, and identifies the data volume of described attribute data; Wherein, described second operand is the operand with described first operand in described transmitting terminal with same identification code;
First discrete operations unit, for when identifying described attribute data and being complete attribute data, using the attribute data of described complete attribute data as described second operand, and according to described attribute data, synchronization discrete operation is carried out to described second operand; Wherein, described complete attribute data is described transmitting terminal detecting that the granularity of user's discrete operations obtains when being greater than preset value; And,
Second discrete operations unit, for when identifying described attribute data for attribute variable's data, the attribute data of second operand according to described attribute variable's data modification, and according to amended attribute data, synchronization discrete operation is carried out to described second operand.
Further, described data synchronization unit also comprises:
Discrete operations correcting module, for receiving the complete attribute data of described first operand that described transmitting terminal sends, and revises according to the discrete operations of complete attribute data to described second operand of described first operand; Wherein, the complete attribute data of described first operand is that described transmitting terminal sends when the acquisition number of times of the attribute change data described first operand being detected reaches preset times.
Accordingly, the embodiment of the present invention also provides a kind of data synchronous system, comprises transmitting terminal and receiving terminal.
Described transmitting terminal is the data synchronization unit described in the embodiment of one side face, is not described in detail at this.
Described receiving terminal is the data synchronization unit described in above-mentioned another aspect embodiment, is not described in detail at this.
Implement the embodiment of the present invention, there is following beneficial effect:
The method of data synchronization that the embodiment of the present invention provides, Apparatus and system, can detect the operation of user on screen, dissimilar operation is carried out synchronously in different ways, while guarantee data accurate synchronization, to improve the efficiency of data syn-chronization.
And, the granularity of user's discrete operations is detected, transmitting complete attribute data for the discrete operations that granularity is large carries out synchronously, carry out synchronously for the discrete operations transmission property variable data that granularity is little, further while guarantee data accurate synchronization, improve the efficiency of data syn-chronization; After operation terminates, supplement and transfer entire data, the synchronous distortion problem avoiding loss of data to cause.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of first embodiment of method of data synchronization provided by the invention;
Fig. 2 is the schematic flow sheet of second embodiment of method of data synchronization provided by the invention;
Fig. 3 is the structural representation of first embodiment of data synchronization unit provided by the invention;
Fig. 4 is the structural representation of second embodiment of data synchronization unit provided by the invention;
Fig. 5 is the structural representation of an embodiment of data synchronous system provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, the schematic flow sheet of first embodiment of method of data synchronization provided by the invention, comprising:
S11, the operation of user on screen to be detected;
If S12 detects that user's is operating as continued operation, then the track data of continued operation described in Real-time Obtaining, and receiving terminal is sent to carry out synchronous continued operation as synchrodata described track data;
If S13 detects that user's is operating as discrete operations, then obtain the attribute data of the first operand of discrete operations, and send to receiving terminal to carry out synchronization discrete operation as synchrodata described attribute data.
It should be noted that, coupled together multiple interactive terminal and can carry out data syn-chronization, wherein, interactive terminal can be interactive electric whiteboard.User selects in multiple terminal terminal to operate, make it as transmitting terminal to send the data of user operation, then all the other terminals be not user-operably are namely as receiving terminal, for receiving the data of user operation, and simultaneous display user operation on respective screen.
The method of data synchronization of the present embodiment is realized by transmitting terminal.User is at the enterprising line operate of the screen of transmitting terminal, and the action type of transmitting terminal to user operation detects.Action type is divided into two kinds: one is continued operation, as drawn a person's handwriting or a mobile pictures; Another kind is discrete operations, as increased a rectangle or deleting a page.
If detect, user operation is continued operation, then extract the data of user's continued operation, and wherein, continued operation is divided into operation to start, operation is carried out neutralization operation and terminated.When operation starts, the data of record starting point; Operation records the data in each moment in carrying out; At the end of operation, the data of record end point, thus the track data forming continued operation.Wherein, track data comprises the element identification codes and point coordinates that continued operation relates to.After Real-time Obtaining track data, serializing is carried out to the track data obtained, forms the data flow that can transmit in a network, and by this data flow to receiving terminal, receiving terminal can be resolved this data flow, and real-time synchronization demonstrates the continued operation of user.Such as, user draws a person's handwriting in transmitting terminal, and transmitting terminal is in user operation process, and the data of Real-time Obtaining person's handwriting are transmitted, and the time delay of receiving terminal is very little, and the continued operation that receiving terminal is shown and the continued operation of user are carried out simultaneously.
If detect, user operation is discrete operations, then identify the operand of user's discrete operations, i.e. the first operand, and the attribute data of this first operand after obtaining discrete operations.Wherein, attribute data comprises identification code and the attribute of the first operand.After acquisition attribute data, to this attribute data serializing, thus form the data flow that can transmit in a network, and by this data flow to receiving terminal, receiving terminal can be resolved to this data flow, and simultaneous display goes out the discrete operations of user.Such as, user modifies in the color of transmitting terminal to certain person's handwriting, the attribute data of this person's handwriting is sent to receiving terminal by transmitting terminal, and receiving terminal is modified according to the color of this attribute data to corresponding person's handwriting, and simultaneous display goes out the discrete operations of user.
Further, described method of data synchronization also comprises:
At the end of described continued operation being detected, obtain the complete trajectory data of described continued operation, and described complete trajectory data are sent to described receiving terminal, described receiving terminal is revised synchronous continued operation according to described complete trajectory data.
It should be noted that, at the end of user's continued operation, it is complete synchronous that the complete trajectory data of this continued operation can send to receiving terminal to carry out by transmitting terminal, such as, user depicts a person's handwriting in transmitting terminal, and at the end of drafting, it is complete synchronous that all coordinate datas of this person's handwriting send to receiving terminal to carry out once by transmitting terminal, even if to guarantee midway loss of data, also can all data of this person's handwriting of full backup.
Further, if the described user of detecting be operating as discrete operations, then obtain the attribute data of the first operand of discrete operations, and send to receiving terminal to carry out synchronization discrete operation as synchrodata described attribute data, specifically comprise:
If detect, user's is operating as discrete operations, then detect the granularity of described discrete operations;
If detect, described granularity is greater than preset value, then obtain the complete attribute data of the first operand of discrete operations as synchrodata;
If detect, described granularity is less than preset value, then obtain the attribute change data of the first operand of discrete operations as synchrodata;
Send described synchrodata to described receiving terminal, make described receiving terminal carry out synchronization discrete operation according to described synchrodata to second operand; Wherein, described synchrodata comprises the identification code of described first operand; Described second operand is that described receiving terminal has the operand of same identification code with described first operand.
It should be noted that, detect user be operating as discrete operations after, also need to detect the granularity of this discrete operations, granularity is large, then need the complete attribute data of transmission first operand, and granularity is little, then only need the attribute change data of transmission first operand.Wherein, granularity is whole attributes that whether can have influence on operand according to this discrete operations for according to judging.Such as, discrete operations is a newly-increased picture, then this discrete operations need increase all properties data of this picture newly, and namely lacking any one data receiving terminal all cannot with walking out of this picture, then the granularity of this discrete operations is large.Discrete operations is the color of an amendment rectangle, and this discrete operations is just modified to the color attribute of rectangle, and only need transmission color attribute receiving terminal can walk out of amended rectangle together on existing rectangular foundation, then the granularity of this discrete operations is little.Detecting the granularity of discrete operations, after obtaining its corresponding synchrodata, synchrodata sequence is being turned to the data flow that can transmit in a network, making receiving terminal receive this data flow and carry out simultaneous display operation.Different data volumes is transmitted to different discrete operations, makes synchronous transmission obtain good balance in data volume, real-time and accuracy, namely there is accuracy benefits, there is again the advantage of real-time and minimizing data volume.
Further, described method of data synchronization also comprises:
When the acquisition number of times of the attribute change data described first operand being detected reaches preset times, obtain the complete attribute data of described first operand, and the complete attribute data of described first operand is sent to described receiving terminal, described receiving terminal is revised according to the synchronization discrete operation of described complete attribute data to described second operand.
It should be noted that, for ensureing the complete transmission of data, when often transmitting attribute change data n time of the first operand, the attribute data of complete synchronization first operand, even if to guarantee midway loss of data, also can all data of this person's handwriting of full backup.Wherein, n value can according to business and network condition dynamic conditioning.Such as, user's discrete operations is make the thickness of a person's handwriting increase by 0.5, transmitting terminal only needs thickness increment to send to receiving terminal as the attribute change amount of this person's handwriting, if have modified 50 times to the thickness of this person's handwriting of user, each increase by 0.5, then need the complete attribute data of this person's handwriting to send to receiving terminal to carry out complete synchronization, thus avoid the precision caused because of the amendment of repeatedly residual quantity to lose problem.
See Fig. 2, the schematic flow sheet of second embodiment of method of data synchronization provided by the invention, comprising:
The synchrodata that S21, real-time reception transmitting terminal send, and the data type of described synchrodata is identified;
If it is track data that S22 identifies described synchrodata, then carry out synchronous continued operation according to described track data; Wherein, described track data be described transmitting terminal detect user on screen be operating as continued operation time Real-time Obtaining the track data of user's continued operation;
If it is attribute data that S23 identifies described synchrodata, then carry out synchronization discrete operation according to described attribute data; Wherein, described attribute data be described transmitting terminal detect user on screen be operating as discrete operations time the attribute data of the first operand of user's discrete operations that obtains.
It should be noted that, the method for data synchronization of the present embodiment is realized by receiving terminal.Receiving terminal, after the synchrodata receiving transmitting terminal transmission, is resolved this synchrodata, obtains the data type of synchrodata, adopts different unserializing devices to carry out unserializing data for dissimilar synchrodata.
The synchrodata received if identify is track data, then the track data after unserializing is converted to the exercisable track data of receiving terminal in real time, and such as, the resolution according to receiving terminal is changed the point coordinates received.Receiving terminal performs simulated operation, wherein, if be labeled as beginning according to the mark in track data, then perform and start operation, in carrying out if be labeled as, then perform and carry out middle operation, if be labeled as end, then perform end operation, thus realize the real-time synchronization to user's continued operation.The synchrodata received if identify is attribute data, then the attribute data after unserializing is converted to the exercisable attribute data of receiving terminal, such as, behind the path receiving a picture, after this picture file downloaded by receiving terminal, need will store the path of this picture in the path point receiving terminal of this picture.Receiving terminal carries out discrete operations according to this attribute data to corresponding operand.
Further, described method of data synchronization also comprises:
Receive the complete trajectory data of user's continued operation that described transmitting terminal sends, and according to described complete trajectory data, synchronous continued operation is revised; Wherein, the complete trajectory data of described user's continued operation are that described transmitting terminal sends at the end of the continued operation of user on screen being detected.
It should be noted that, at the end of user's continued operation, the complete trajectory data of this continued operation can be sent to receiving terminal by transmitting terminal, the receiving terminal continued operation synchronous to it according to these complete trajectory data is revised, and avoids the data distortion caused because of loss of data during real-time synchronization.
Further, described attribute data comprises the identification code of described first operand;
If identifying described synchrodata described is attribute data, then carry out synchronization discrete operation according to described attribute data, specifically comprise:
If identifying described synchrodata is attribute data, then obtains second operand according to the identification code of described first operand in described attribute data, and the data volume of described attribute data is identified; Wherein, described second operand is the operand with described first operand in described transmitting terminal with same identification code;
If identifying described attribute data is complete attribute data, then using the attribute data of described complete attribute data as described second operand, and according to described attribute data, synchronization discrete operation is carried out to described second operand; Wherein, described complete attribute data is described transmitting terminal detecting that the granularity of user's discrete operations obtains when being greater than preset value;
If identify described attribute data for attribute variable's data, then the attribute data of second operand according to described attribute variable's data modification, and according to amended attribute data, synchronization discrete operation is carried out to described second operand.
It should be noted that, receiving terminal, identifying after synchrodata is attribute data, also needs to identify its data volume, if complete attribute data, then need to modify to all properties data of second operand, make this complete attribute data cover all properties data of second operand; If attribute variable's data, then only need to modify to the data corresponding to these attribute unsteady flow data.After the attribute data amendment of second operand, the simultaneous display to user's discrete operations can be realized according to amended attribute data.
Further, described method of data synchronization also comprises:
Receive the complete attribute data of described first operand that described transmitting terminal sends, and revise according to the discrete operations of complete attribute data to described second operand of described first operand; Wherein, the complete attribute data of described first operand is that described transmitting terminal sends when the acquisition number of times of the attribute change data described first operand being detected reaches preset times.
It should be noted that, after receiving terminal carries out the subsynchronous operation of n according to attribute variable's data to second operand, receive the complete attribute data that transmitting terminal sends, to carry out once complete simultaneous operation according to this complete attribute data to second operand, the precision caused to avoid repeatedly transmitting midway loss of data loses problem.
The method of data synchronization that the embodiment of the present invention provides, can detect the operation of user on screen, carries out in different ways synchronously dissimilar operation, while guarantee data accurate synchronization, to improve the efficiency of data syn-chronization.And, the granularity of user's discrete operations is detected, transmitting complete attribute data for the discrete operations that granularity is large carries out synchronously, carry out synchronously for the discrete operations transmission property variable data that granularity is little, further while guarantee data accurate synchronization, improve the efficiency of data syn-chronization; After operation terminates, supplement and transfer entire data, the synchronous distortion problem avoiding loss of data to cause.
Accordingly, the present invention also provides a kind of data synchronization unit, can realize all flow processs of the method for data synchronization in above-described embodiment.
See Fig. 3, be the structural representation of first embodiment of data synchronization unit provided by the invention, comprise:
Detection module 31, for detecting the operation of user on screen;
First data transmission blocks 32, for detect user be operating as continued operation time, the track data of continued operation described in Real-time Obtaining, and send to receiving terminal to carry out synchronous continued operation as synchrodata described track data; And,
Second data transmission blocks 33, for detect user be operating as discrete operations time, obtain the attribute data of the first operand of discrete operations, and send to receiving terminal to carry out synchronization discrete operation as synchrodata described attribute data.
Further, described data synchronization unit also comprises:
First correcting module, for at the end of described continued operation being detected, obtain the complete trajectory data of described continued operation, and described complete trajectory data are sent to described receiving terminal, described receiving terminal is revised synchronous continued operation according to described complete trajectory data.
Further, described second data transmission blocks specifically comprises:
Detecting unit, for detect user be operating as discrete operations time, detect the granularity of described discrete operations;
First synchrodata acquiring unit, for when detecting that described granularity is greater than preset value, obtains the complete attribute data of the first operand of discrete operations as synchrodata;
Second synchrodata acquiring unit, for obtaining the attribute change data of the first operand of discrete operations as synchrodata; And,
Synchrodata transmitting element, for sending described synchrodata to described receiving terminal, makes described receiving terminal carry out synchronization discrete operation according to described synchrodata to second operand; Wherein, described synchrodata comprises the identification code of described first operand; Described second operand is that described receiving terminal has the operand of same identification code with described first operand.
Further, described data synchronization unit also comprises:
Second correcting module, for when the acquisition number of times of the attribute change data described first operand being detected reaches preset times, obtain the complete attribute data of described first operand, and the complete attribute data of described first operand is sent to described receiving terminal, described receiving terminal is revised according to the synchronization discrete operation of described complete attribute data to described second operand.
See Fig. 4, be the structural representation of second embodiment of data synchronization unit provided by the invention, comprise:
Data reception module 41, for the synchrodata that real-time reception transmitting terminal sends, and identifies the data type of described synchrodata;
Continued operation synchronization module 42, for when identifying described synchrodata and being track data, carries out synchronous continued operation according to described track data; Wherein, described track data be described transmitting terminal detect user on screen be operating as continued operation time Real-time Obtaining the track data of user's continued operation; And,
Discrete operations synchronization module 43, for when identifying described synchrodata and being attribute data, carries out synchronization discrete operation according to described attribute data; Wherein, described attribute data be described transmitting terminal detect user on screen be operating as discrete operations time the attribute data of the first operand of user's discrete operations that obtains.
Further, described data synchronization unit also comprises:
Continued operation correcting module, for receiving the complete trajectory data of user's continued operation that described transmitting terminal sends, and revises synchronous continued operation according to described complete trajectory data; Wherein, the complete trajectory data of described user's continued operation are that described transmitting terminal sends at the end of the continued operation of user on screen being detected.
Further, described attribute data comprises the identification code of the first operand;
Described discrete operations synchronization module specifically comprises:
Recognition unit, for when identifying described synchrodata and being attribute data, the identification code according to described first operand in described attribute data obtains second operand, and identifies the data volume of described attribute data; Wherein, described second operand is the operand with described first operand in described transmitting terminal with same identification code;
First discrete operations unit, for when identifying described attribute data and being complete attribute data, using the attribute data of described complete attribute data as described second operand, and according to described attribute data, synchronization discrete operation is carried out to described second operand; Wherein, described complete attribute data is described transmitting terminal detecting that the granularity of user's discrete operations obtains when being greater than preset value; And,
Second discrete operations unit, for when identifying described attribute data for attribute variable's data, the attribute data of second operand according to described attribute variable's data modification, and according to amended attribute data, synchronization discrete operation is carried out to described second operand.
Further, described data synchronization unit also comprises:
Discrete operations correcting module, for receiving the complete attribute data of described first operand that described transmitting terminal sends, and revises according to the discrete operations of complete attribute data to described second operand of described first operand; Wherein, the complete attribute data of described first operand is that described transmitting terminal sends when the acquisition number of times of the attribute change data described first operand being detected reaches preset times.
See Fig. 5, be the structural representation of an embodiment of data synchronous system provided by the invention, comprise transmitting terminal 51 and receiving terminal 52.
Described transmitting terminal 51 is the data synchronization unit described in above-mentioned first embodiment, is not described in detail at this.
Described receiving terminal 52 is the data synchronization unit described in above-mentioned second embodiment, is not described in detail at this.
The data synchronization unit that the embodiment of the present invention provides and system, can detect the operation of user on screen, carries out in different ways synchronously dissimilar operation, while guarantee data accurate synchronization, to improve the efficiency of data syn-chronization.And, the granularity of user's discrete operations is detected, transmitting complete attribute data for the discrete operations that granularity is large carries out synchronously, carry out synchronously for the discrete operations transmission property variable data that granularity is little, further while guarantee data accurate synchronization, improve the efficiency of data syn-chronization; After operation terminates, supplement and transfer entire data, the synchronous distortion problem avoiding loss of data to cause.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.

Claims (17)

1. a method of data synchronization, is characterized in that, comprising:
The operation of user on screen is detected;
If detect, user's is operating as continued operation, then the track data of continued operation described in Real-time Obtaining, and sends to receiving terminal to carry out synchronous continued operation as synchrodata described track data;
If detect, user's is operating as discrete operations, then obtain the attribute data of the first operand of discrete operations, and sends to receiving terminal to carry out synchronization discrete operation as synchrodata described attribute data.
2. method of data synchronization as claimed in claim 1, it is characterized in that, described method of data synchronization also comprises:
At the end of described continued operation being detected, obtain the complete trajectory data of described continued operation, and described complete trajectory data are sent to described receiving terminal, described receiving terminal is revised synchronous continued operation according to described complete trajectory data.
3. method of data synchronization as claimed in claim 1 or 2, it is characterized in that, if the described user of detecting is operating as discrete operations, then obtain the attribute data of the first operand of discrete operations, and send to receiving terminal to carry out synchronization discrete operation as synchrodata described attribute data, specifically comprise:
If detect, user's is operating as discrete operations, then detect the granularity of described discrete operations;
If detect, described granularity is greater than preset value, then obtain the complete attribute data of the first operand of discrete operations as synchrodata;
If detect, described granularity is less than preset value, then obtain the attribute change data of the first operand of discrete operations as synchrodata;
Send described synchrodata to described receiving terminal, make described receiving terminal carry out synchronization discrete operation according to described synchrodata to second operand; Wherein, described synchrodata comprises the identification code of described first operand; Described second operand is that described receiving terminal has the operand of same identification code with described first operand.
4. method of data synchronization as claimed in claim 3, it is characterized in that, described method of data synchronization also comprises:
When the acquisition number of times of the attribute change data described first operand being detected reaches preset times, obtain the complete attribute data of described first operand, and the complete attribute data of described first operand is sent to described receiving terminal, described receiving terminal is revised according to the synchronization discrete operation of described complete attribute data to described second operand.
5. a method of data synchronization, is characterized in that, comprising:
The synchrodata that real-time reception transmitting terminal sends, and the data type of described synchrodata is identified;
If identifying described synchrodata is track data, then carry out synchronous continued operation according to described track data; Wherein, described track data be described transmitting terminal detect user on screen be operating as continued operation time Real-time Obtaining the track data of user's continued operation;
If identifying described synchrodata is attribute data, then carry out synchronization discrete operation according to described attribute data; Wherein, described attribute data be described transmitting terminal detect user on screen be operating as discrete operations time the attribute data of the first operand of user's discrete operations that obtains.
6. method of data synchronization as claimed in claim 5, it is characterized in that, described method of data synchronization also comprises:
Receive the complete trajectory data of user's continued operation that described transmitting terminal sends, and according to described complete trajectory data, synchronous continued operation is revised; Wherein, the complete trajectory data of described user's continued operation are that described transmitting terminal sends at the end of the continued operation of user on screen being detected.
7. the method for data synchronization as described in claim 5 or 6, is characterized in that, described attribute data comprises the identification code of described first operand;
If identifying described synchrodata described is attribute data, then carry out synchronization discrete operation according to described attribute data, specifically comprise:
If identifying described synchrodata is attribute data, then obtains second operand according to the identification code of described first operand in described attribute data, and the data volume of described attribute data is identified; Wherein, described second operand is the operand with described first operand in described transmitting terminal with same identification code;
If identifying described attribute data is complete attribute data, then using the attribute data of described complete attribute data as described second operand, and according to described attribute data, synchronization discrete operation is carried out to described second operand; Wherein, described complete attribute data is described transmitting terminal detecting that the granularity of user's discrete operations obtains when being greater than preset value;
If identify described attribute data for attribute variable's data, then the attribute data of second operand according to described attribute variable's data modification, and according to amended attribute data, synchronization discrete operation is carried out to described second operand.
8. method of data synchronization as claimed in claim 7, it is characterized in that, described method of data synchronization also comprises:
Receive the complete attribute data of described first operand that described transmitting terminal sends, and revise according to the discrete operations of complete attribute data to described second operand of described first operand; Wherein, the complete attribute data of described first operand is that described transmitting terminal sends when the acquisition number of times of the attribute change data described first operand being detected reaches preset times.
9. a data synchronization unit, is characterized in that, comprising:
Detection module, for detecting the operation of user on screen;
First data transmission blocks, for detect user be operating as continued operation time, the track data of continued operation described in Real-time Obtaining, and send to receiving terminal to carry out synchronous continued operation as synchrodata described track data; And,
Second data transmission blocks, for detect user be operating as discrete operations time, obtain the attribute data of the first operand of discrete operations, and send to receiving terminal to carry out synchronization discrete operation as synchrodata described attribute data.
10. data synchronization unit as claimed in claim 9, it is characterized in that, described data synchronization unit also comprises:
First correcting module, for at the end of described continued operation being detected, obtain the complete trajectory data of described continued operation, and described complete trajectory data are sent to described receiving terminal, described receiving terminal is revised synchronous continued operation according to described complete trajectory data.
11. data synchronization units as described in claim 9 or 10, it is characterized in that, described second data transmission blocks specifically comprises:
Detecting unit, for detect user be operating as discrete operations time, detect the granularity of described discrete operations;
First synchrodata acquiring unit, for when detecting that described granularity is greater than preset value, obtains the complete attribute data of the first operand of discrete operations as synchrodata;
Second synchrodata acquiring unit, for obtaining the attribute change data of the first operand of discrete operations as synchrodata; And,
Synchrodata transmitting element, for sending described synchrodata to described receiving terminal, makes described receiving terminal carry out synchronization discrete operation according to described synchrodata to second operand; Wherein, described synchrodata comprises the identification code of described first operand; Described second operand is that described receiving terminal has the operand of same identification code with described first operand.
12. data synchronization units as claimed in claim 11, it is characterized in that, described data synchronization unit also comprises:
Second correcting module, for when the acquisition number of times of the attribute change data described first operand being detected reaches preset times, obtain the complete attribute data of described first operand, and the complete attribute data of described first operand is sent to described receiving terminal, described receiving terminal is revised according to the synchronization discrete operation of described complete attribute data to described second operand.
13. 1 kinds of data synchronization units, is characterized in that, comprising:
Data reception module, for the synchrodata that real-time reception transmitting terminal sends, and identifies the data type of described synchrodata;
Continued operation synchronization module, for when identifying described synchrodata and being track data, carries out synchronous continued operation according to described track data; Wherein, described track data be described transmitting terminal detect user on screen be operating as continued operation time Real-time Obtaining the track data of user's continued operation; And,
Discrete operations synchronization module, for when identifying described synchrodata and being attribute data, carries out synchronization discrete operation according to described attribute data; Wherein, described attribute data be described transmitting terminal detect user on screen be operating as discrete operations time the attribute data of the first operand of user's discrete operations that obtains.
14. data synchronization units as claimed in claim 13, it is characterized in that, described data synchronization unit also comprises:
Continued operation correcting module, for receiving the complete trajectory data of user's continued operation that described transmitting terminal sends, and revises synchronous continued operation according to described complete trajectory data; Wherein, the complete trajectory data of described user's continued operation are that described transmitting terminal sends at the end of the continued operation of user on screen being detected.
15. data synchronization units as described in claim 13 or 14, it is characterized in that, described attribute data comprises the identification code of the first operand;
Described discrete operations synchronization module specifically comprises:
Recognition unit, for when identifying described synchrodata and being attribute data, the identification code according to described first operand in described attribute data obtains second operand, and identifies the data volume of described attribute data; Wherein, described second operand is the operand with described first operand in described transmitting terminal with same identification code;
First discrete operations unit, for when identifying described attribute data and being complete attribute data, using the attribute data of described complete attribute data as described second operand, and according to described attribute data, synchronization discrete operation is carried out to described second operand; Wherein, described complete attribute data is described transmitting terminal detecting that the granularity of user's discrete operations obtains when being greater than preset value; And,
Second discrete operations unit, for when identifying described attribute data for attribute variable's data, the attribute data of second operand according to described attribute variable's data modification, and according to amended attribute data, synchronization discrete operation is carried out to described second operand.
16. data synchronization units as claimed in claim 15, it is characterized in that, described data synchronization unit also comprises:
Discrete operations correcting module, for receiving the complete attribute data of described first operand that described transmitting terminal sends, and revises according to the discrete operations of complete attribute data to described second operand of described first operand; Wherein, the complete attribute data of described first operand is that described transmitting terminal sends when the acquisition number of times of the attribute change data described first operand being detected reaches preset times.
17. 1 kinds of data synchronous systems, is characterized in that, comprise transmitting terminal and receiving terminal;
Described transmitting terminal is the data synchronization unit as described in any one of claim 9 to 12;
Described receiving terminal is the data synchronization unit as described in any one of claim 13 to 16.
CN201610041970.5A 2016-01-21 2016-01-21 Method of data synchronization, apparatus and system Active CN105554157B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610041970.5A CN105554157B (en) 2016-01-21 2016-01-21 Method of data synchronization, apparatus and system
PCT/CN2016/113313 WO2017124906A1 (en) 2016-01-21 2016-12-30 Data synchronization method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610041970.5A CN105554157B (en) 2016-01-21 2016-01-21 Method of data synchronization, apparatus and system

Publications (2)

Publication Number Publication Date
CN105554157A true CN105554157A (en) 2016-05-04
CN105554157B CN105554157B (en) 2019-06-14

Family

ID=55833089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610041970.5A Active CN105554157B (en) 2016-01-21 2016-01-21 Method of data synchronization, apparatus and system

Country Status (2)

Country Link
CN (1) CN105554157B (en)
WO (1) WO2017124906A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534188A (en) * 2016-12-14 2017-03-22 上海溢米教育科技有限公司 Classroom operation track synchronization method and system
WO2017124906A1 (en) * 2016-01-21 2017-07-27 广州视睿电子科技有限公司 Data synchronization method, apparatus and system
CN106991176A (en) * 2017-04-06 2017-07-28 广州视源电子科技股份有限公司 File management method, device, equipment and storage medium
CN107195210A (en) * 2017-07-03 2017-09-22 北京大生在线科技有限公司 Two dimension and the three-dimensional teleeducation system combined and control method
CN108377229A (en) * 2018-01-23 2018-08-07 广州视源电子科技股份有限公司 Data processing method sends terminal, server and receives terminal
CN109150992A (en) * 2018-07-27 2019-01-04 深圳Tcl数字技术有限公司 Synchronization drawing practice, device, readable storage medium storing program for executing and system based on Android
CN109284158A (en) * 2018-08-14 2019-01-29 北京大米科技有限公司 Long-range drag operation contents synchronization system, method, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130120769A1 (en) * 2011-11-15 2013-05-16 Seiko Epson Corporation Printing device, printing method and program thereof
CN103369195A (en) * 2012-03-29 2013-10-23 佳能株式会社 Image processing apparatus and imaging processing method
CN103970471A (en) * 2013-02-06 2014-08-06 联想(北京)有限公司 Information transmitting method, equipment and terminal
CN104063092A (en) * 2014-06-16 2014-09-24 青岛歌尔声学科技有限公司 Method and device for controlling touch screen
CN104158900A (en) * 2014-08-25 2014-11-19 焦点科技股份有限公司 Method and system for synchronizing courseware through iPad controlling
US20150319236A1 (en) * 2014-05-02 2015-11-05 Claude Lano Cox Auto-storing and synchronizing device content from an information handling system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554157B (en) * 2016-01-21 2019-06-14 广州视睿电子科技有限公司 Method of data synchronization, apparatus and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130120769A1 (en) * 2011-11-15 2013-05-16 Seiko Epson Corporation Printing device, printing method and program thereof
CN103369195A (en) * 2012-03-29 2013-10-23 佳能株式会社 Image processing apparatus and imaging processing method
CN103970471A (en) * 2013-02-06 2014-08-06 联想(北京)有限公司 Information transmitting method, equipment and terminal
US20150319236A1 (en) * 2014-05-02 2015-11-05 Claude Lano Cox Auto-storing and synchronizing device content from an information handling system
CN104063092A (en) * 2014-06-16 2014-09-24 青岛歌尔声学科技有限公司 Method and device for controlling touch screen
CN104158900A (en) * 2014-08-25 2014-11-19 焦点科技股份有限公司 Method and system for synchronizing courseware through iPad controlling

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017124906A1 (en) * 2016-01-21 2017-07-27 广州视睿电子科技有限公司 Data synchronization method, apparatus and system
CN106534188A (en) * 2016-12-14 2017-03-22 上海溢米教育科技有限公司 Classroom operation track synchronization method and system
CN106534188B (en) * 2016-12-14 2019-08-06 上海溢米教育科技有限公司 Classroom operation trace synchronous method and system
CN106991176A (en) * 2017-04-06 2017-07-28 广州视源电子科技股份有限公司 File management method, device, equipment and storage medium
CN107195210A (en) * 2017-07-03 2017-09-22 北京大生在线科技有限公司 Two dimension and the three-dimensional teleeducation system combined and control method
CN108377229A (en) * 2018-01-23 2018-08-07 广州视源电子科技股份有限公司 Data processing method sends terminal, server and receives terminal
CN108377229B (en) * 2018-01-23 2021-08-17 广州视源电子科技股份有限公司 Data processing method, sending terminal, server and receiving terminal
CN109150992A (en) * 2018-07-27 2019-01-04 深圳Tcl数字技术有限公司 Synchronization drawing practice, device, readable storage medium storing program for executing and system based on Android
CN109284158A (en) * 2018-08-14 2019-01-29 北京大米科技有限公司 Long-range drag operation contents synchronization system, method, equipment and storage medium

Also Published As

Publication number Publication date
CN105554157B (en) 2019-06-14
WO2017124906A1 (en) 2017-07-27

Similar Documents

Publication Publication Date Title
CN105554157A (en) Data synchronizing method, device and system
EP3447631B1 (en) Writing trajectory synchronization method and system for multiple clients
PH12018502093A1 (en) Information display method, device and system
CN103942705A (en) Advertisement classified match pushing method and system based on human face recognition
CN103916978B (en) It is a kind of to establish the method being wirelessly connected and electronic equipment
CN102238361B (en) Terminal and display method thereof
CN110852332B (en) Training sample generation method and device, storage medium and electronic equipment
CN103139608B (en) The detection method of remote media play signal time delay and detection system
CN105094638A (en) Image screen sharing method of mobile terminal and smart home device and mobile terminal
CN106776826A (en) A kind of update method, the apparatus and system of wrist-watch background picture
CN104853023A (en) Distribution method and system for electronic business card
EP4224338A1 (en) Data labeling method, apparatus, and system, device, and storage medium
CN101216746B (en) Touch screen device and its position finding method
CN104320447B (en) A kind of middle-size and small-size cloud storage method of data synchronization and computer-readable medium, system
CN206147770U (en) Classroom management equipment of registering based on two -dimensional code and fingerprint identification
CN104580300B (en) The method and system of figure and outdoor scene identification based on cloud operation
CN103955488A (en) Method of sharing lines of electronic map, sharing end and receiving end
CN104915428A (en) Smart wristband device and information inquiry and forwarding method and device thereof
CN105488489A (en) Short video message transmitting method, electronic device and system
CN106656725B (en) Intelligent terminal, server and information updating system
CN112650596B (en) Cross-process sharing method, device and equipment for target data and storage medium
CN207319439U (en) Finger touch modules, remote controler and display device
CN217085729U (en) Screen projector and image recognition system
CN105450264A (en) Data transmission method and device
CN104298355A (en) Quick input system and method of mobile terminal 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
GR01 Patent grant
GR01 Patent grant