WO2017124906A1 - 数据同步方法、装置及系统 - Google Patents

数据同步方法、装置及系统 Download PDF

Info

Publication number
WO2017124906A1
WO2017124906A1 PCT/CN2016/113313 CN2016113313W WO2017124906A1 WO 2017124906 A1 WO2017124906 A1 WO 2017124906A1 CN 2016113313 W CN2016113313 W CN 2016113313W WO 2017124906 A1 WO2017124906 A1 WO 2017124906A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
synchronization
attribute
discrete
complete
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.)
Ceased
Application number
PCT/CN2016/113313
Other languages
English (en)
French (fr)
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
Publication of WO2017124906A1 publication Critical patent/WO2017124906A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data synchronization method, apparatus, and system.
  • the synchronous mode usually adopted is to collect user-operated data on the transmitting end, and encapsulate the data into transmittable data, which is sent to the receiving end through the network, and the receiving end receives the data. After the transmitted data, it is parsed into the operation data of the receiving end, and synchronized according to the operation data.
  • the above synchronization method uses the same method for transmitting data generated by different operations of the user, so that the accuracy of data synchronization and the efficiency of data synchronization cannot be balanced.
  • the embodiment of the invention provides a data synchronization method, device and system, which can improve the efficiency of data synchronization while ensuring accurate data synchronization.
  • An aspect of the embodiments of the present invention provides a data synchronization method, including:
  • the trajectory data of the continuous operation is acquired in real time, and the trajectory data is sent as synchronization data to the receiving terminal for synchronous continuous operation;
  • the attribute data of the first operation object of the discrete operation is acquired, and the attribute data is sent as synchronization data to the receiving terminal for synchronous discrete operation.
  • the data synchronization method further includes:
  • the attribute data of the first operation object of the discrete operation is obtained, and the attribute data is sent to the receiving terminal as the synchronization data for the synchronous discrete operation, which specifically includes:
  • the second operation object is an operation object on the receiving terminal that has the same identification code as the first operation object.
  • the data synchronization method further includes:
  • the complete attribute data of the first operation object is acquired, and the complete attribute data of the first operation object is sent to the Receiving, by the receiving terminal, the receiving terminal to correct the synchronous discrete operation of the second operation object according to the complete attribute data.
  • Another aspect of the embodiments of the present invention provides a data synchronization method, including:
  • the synchronization data is trajectory data, performing a synchronous continuous operation according to the trajectory data; wherein the trajectory data is a user that is acquired in real time when the transmitting terminal detects that the operation of the user on the screen is a continuous operation. Trajectory data for continuous operation;
  • the synchronization data is identified as the attribute data, performing a synchronous discrete operation according to the attribute data; wherein the attribute data is a user discretization obtained when the transmitting terminal detects that the operation of the user on the screen is a discrete operation.
  • the attribute data of the first operation object of the operation is a user discretization obtained when the transmitting terminal detects that the operation of the user on the screen is a discrete operation.
  • the data synchronization method further includes:
  • the attribute data includes an identifier of the first operation object
  • the synchronous discrete operation is performed according to the attribute data, and specifically includes:
  • the synchronization data is identified as attribute data, acquiring a second operation object according to the identification code of the first operation object in the attribute data, and identifying a data amount of the attribute data; wherein
  • the second operation object is an operation object having the same identification code as the first operation object on the transmitting terminal;
  • the complete attribute data is used as the attribute data of the second operation object, and the second operation object is synchronously and discretely operated according to the attribute data;
  • the complete attribute data is obtained by the sending terminal when detecting that the granularity of the discrete operation of the user is greater than a preset value;
  • attribute data is identified as attribute variable data
  • modifying the second operation pair according to the attribute variable data Attribute data of the image and performing synchronous discrete operation on the second operation object according to the modified attribute data.
  • the data synchronization method further includes:
  • an aspect of the embodiments of the present invention provides a data synchronization apparatus, including:
  • a detection module for detecting a user's operation on the screen
  • a first data sending module configured to acquire the trajectory data of the continuous operation in real time when detecting that the operation of the user is a continuous operation, and send the trajectory data as synchronous data to the receiving terminal for synchronous continuous operation;
  • a second data sending module configured to: when detecting that the operation of the user is a discrete operation, acquire attribute data of the first operation object of the discrete operation, and send the attribute data as synchronization data to the receiving terminal to perform a synchronous discrete operation.
  • the data synchronization device further includes:
  • a first correction module configured to acquire complete trajectory data of the continuous operation when the end of the continuous operation is detected, and send the complete trajectory data to the receiving terminal, so that the receiving terminal is complete according to the The trajectory data corrects the continuous operation of the synchronization.
  • the second data sending module specifically includes:
  • a detecting unit configured to detect a granularity of the discrete operation when detecting that the user's operation is a discrete operation
  • a first synchronization data acquiring unit configured to acquire, as the synchronization data, complete attribute data of the first operation object of the discrete operation when detecting that the granularity is greater than a preset value
  • a second synchronization data acquiring unit configured to acquire attribute change data of the first operation object of the discrete operation as the synchronization data
  • a synchronization data sending unit configured to send the synchronization data to the receiving terminal, so that the receiving terminal performs a synchronous discrete operation on the second operation object according to the synchronization data; wherein the synchronization data includes the first operation An identifier of the object; the second operation object is an operation object on the receiving terminal having the same identification code as the first operation object.
  • the data synchronization device further includes:
  • a second correction module configured to acquire complete attribute data of the first operation object, and acquire the complete attribute data of the first operation object, when the number of times the attribute change data of the first operation object is detected reaches a preset number of times Sending complete attribute data to the receiving terminal, so that the receiving terminal performs synchronous discrete operation on the second operating object according to the complete attribute data Make corrections.
  • Another aspect of the embodiments of the present invention provides a data synchronization apparatus, including:
  • a data receiving module configured to receive synchronization data sent by the sending terminal in real time, and identify a data type of the synchronous data
  • a continuous operation synchronization module configured to perform a synchronous continuous operation according to the trajectory data when the synchronization data is identified as trajectory data; wherein the trajectory data is that the transmitting terminal detects that the user's operation on the screen is Trajectory data of continuous operation of the user acquired in real time during continuous operation;
  • a discrete operation synchronization module configured to perform a synchronous discrete operation according to the attribute data when the synchronization data is identified as attribute data; wherein the attribute data is that the sending terminal detects that the user's operation on the screen is The attribute data of the first operation object of the user discrete operation acquired during the discrete operation.
  • the data synchronization device further includes:
  • a continuous operation correction module configured to receive complete trajectory data of the continuous operation of the user sent by the transmitting terminal, and correct the continuous operation of the synchronization according to the complete trajectory data; wherein the complete trajectory data of the continuous operation of the user is The transmitting terminal transmits when it detects the end of the continuous operation of the user on the screen.
  • the attribute data includes an identifier of the first operation object
  • the discrete operation synchronization module specifically includes:
  • a recognition unit configured to acquire a second operation object according to an identification code of the first operation object in the attribute data, and identify a data quantity of the attribute data when the synchronization data is attribute data
  • the second operation object is an operation object having the same identification code as the first operation object on the transmitting terminal
  • a first discrete operation unit configured to: when the attribute data is complete attribute data, use the complete attribute data as attribute data of the second operation object, and perform the second operation according to the attribute data
  • the object performs a synchronous discrete operation; wherein the complete attribute data is acquired by the transmitting terminal when detecting that the granularity of the user discrete operation is greater than a preset value;
  • a second discrete operation unit configured to modify attribute data of the second operation object according to the attribute variable data when the attribute data is identified as attribute variable data, and to the second according to the modified attribute data
  • the operation object performs a synchronous discrete operation.
  • the data synchronization device further includes:
  • a discrete operation correction module configured to receive complete attribute data of the first operation object sent by the sending terminal, and correct a discrete operation of the second operation object according to the complete attribute data of the first operation object;
  • the complete attribute data of the first operation object is sent by the sending terminal when detecting that the number of times the attribute change data of the first operation object is acquired reaches a preset number of times.
  • an embodiment of the present invention further provides a data synchronization system, including a sending terminal and a receiving terminal.
  • the transmitting terminal is the data synchronization device described in the foregoing embodiment, and is not described in detail herein.
  • the receiving terminal is the data synchronization device described in the above other embodiment, and will not be described in detail herein.
  • the data synchronization method, device and system provided by the embodiments of the present invention can detect the operation of the user on the screen, and synchronize different types of operations in different ways, so as to improve data synchronization while ensuring accurate data synchronization. effectiveness.
  • the granularity of the discrete operation of the user is detected, and the complete attribute data is transmitted for the discrete operation with large granularity to synchronize, and the attribute variable data of the discrete operation with small granularity is synchronized to further improve the accurate synchronization of the data.
  • FIG. 1 is a schematic flow chart of a first embodiment of a data synchronization method provided by the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a data synchronization method provided by the present invention.
  • FIG. 3 is a schematic structural diagram of a first embodiment of a data synchronization apparatus provided by the present invention.
  • FIG. 4 is a schematic structural diagram of a second embodiment of a data synchronization apparatus according to the present invention.
  • FIG. 5 is a schematic structural diagram of an embodiment of a data synchronization system provided by the present invention.
  • a schematic flowchart of a first embodiment of a data synchronization method provided by the present invention includes:
  • data synchronization can be performed by connecting a plurality of interactive terminals, wherein the interactive terminal can be an interactive electronic whiteboard.
  • the user selects one of the multiple terminals to operate as the transmitting terminal to transmit the data of the user operation, and the remaining terminals that are not operated by the user serve as the receiving terminal for receiving the data operated by the user and on the respective screens. Synchronize user actions.
  • the data synchronization method of this embodiment is implemented by a transmitting terminal.
  • the user operates on the screen of the transmitting terminal, and the transmitting terminal detects the type of operation operated by the user.
  • the data of the continuous operation of the user is extracted, wherein the continuous operation is divided into an operation start, an operation in progress, and an operation end.
  • the data of the start point is recorded; during the operation, the data at each time is recorded; at the end of the operation, the data of the end point is recorded, thereby constituting the trajectory data of the continuous operation.
  • the trajectory data includes an element identification code and point coordinates involved in the continuous operation.
  • the user draws a handwriting on the transmitting terminal, and the transmitting terminal acquires the data of the handwriting in real time during the user operation, and the delay of the receiving terminal is very small, so that the continuous operation displayed by the receiving terminal and the continuous operation of the user are simultaneously performed.
  • the operation object of the user discrete operation that is, the first operation object
  • the attribute data of the first operation object after the discrete operation is acquired.
  • the attribute data includes an identifier and an attribute of the first operation object.
  • the attribute data is serialized to form a data stream that can be transmitted in the network, and the data stream is sent to the receiving terminal, and the receiving terminal can parse the data stream to synchronously display the user's data.
  • the user modifies the color of a certain handwriting at the transmitting terminal, and the transmitting terminal sends the attribute data of the handwriting to the receiving terminal, and the receiving terminal modifies the color of the corresponding handwriting according to the attribute data, and synchronously displays the discrete operation of the user. .
  • the data synchronization method further includes:
  • the transmitting terminal sends the complete trajectory data of the continuous operation to the receiving terminal for complete synchronization, for example, the user draws a handwriting at the transmitting terminal, and at the end of the drawing, the transmitting terminal All coordinate data of the handwriting is sent to the receiving terminal for a complete synchronization to ensure that all data of the handwriting can be completely restored even if the data is lost in the middle.
  • a synchronous data for synchronous discrete operation which specifically includes:
  • the second operation object is an operation object on the receiving terminal that has the same identification code as the first operation object.
  • the granularity of the discrete operation needs to be detected. If the granularity is large, the complete attribute data of the first operational object needs to be transmitted, and the granularity is small. It is only necessary to transfer the attribute change data of the first operation object.
  • the granularity is determined based on whether the discrete operation affects all the attributes of the operation object. For example, if the discrete operation is to add a new picture, the discrete operation needs to add all the attribute data of the picture, that is, if any of the data receiving terminals cannot synchronize the picture, the granularity of the discrete operation is large. Discrete operation is to modify the color of a rectangle.
  • the discrete operation only modifies the color attribute of the rectangle. Only the transmission color property receiving terminal can synchronize the modified rectangle on the basis of the existing rectangle, and the discrete operation particle Small. After detecting the granularity of the discrete operation and obtaining the corresponding synchronization data, the synchronization data is serialized into a data stream that can be transmitted in the network, so that the receiving terminal receives the data stream for synchronous display operation. Different data volumes are transmitted for different discrete operations, so that synchronous transmission achieves a good balance in data volume, real-time performance and accuracy, that is, it has the advantages of accuracy, real-time and reduced data volume.
  • the data synchronization method further includes:
  • the complete attribute data of the first operation object is acquired, and the complete attribute data of the first operation object is sent to the Receiving, by the receiving terminal, the receiving terminal to correct the synchronous discrete operation of the second operation object according to the complete attribute data.
  • n can be dynamically adjusted according to business and network conditions. For example, if the user discrete operation is to increase the thickness of a handwriting by 0.5, the transmitting terminal only needs to send the thickness increment as the attribute change amount of the handwriting to the receiving terminal. If the user's weight of the handwriting is modified 50 times, each time increases by 0.5. Then, the complete attribute data of the handwriting needs to be sent to the receiving terminal for complete synchronization, thereby avoiding the problem of loss of precision caused by multiple differential modification.
  • a schematic flowchart of a second embodiment of a data synchronization method provided by the present invention includes:
  • S21 Receive synchronous data sent by the sending terminal in real time, and identify a data type of the synchronous data.
  • the synchronization data is identified as the attribute data, performing a synchronous discrete operation according to the attribute data.
  • the attribute data is acquired by the sending terminal when detecting that the operation of the user on the screen is a discrete operation.
  • the data synchronization method of this embodiment is implemented by the receiving terminal. After receiving the synchronization data sent by the transmitting terminal, the receiving terminal parses the synchronization data, acquires the data type of the synchronization data, and uses different deserializers to deserialize the data for different types of synchronization data.
  • the deserialized trajectory data is converted into trajectory data operable by the receiving terminal in real time, for example, the received point coordinates are converted according to the resolution of the receiving terminal.
  • the receiving terminal performs an analog operation according to the mark in the trajectory data, wherein if the mark is started, the start operation is performed, if the mark is in progress, the ongoing operation is performed, and if the mark is finished, the end operation is performed, thereby implementing the user Real-time synchronization of continuous operations.
  • the received synchronization data is identified as attribute data
  • the deserialized attribute data is converted into attribute data operable by the receiving terminal. For example, after receiving the path of an image, the image file needs to be downloaded at the receiving terminal. After that, the path of the picture is directed to the path in the receiving terminal where the picture is stored.
  • the receiving terminal performs a discrete operation on the corresponding operation object according to the attribute data.
  • the data synchronization method further includes:
  • the transmitting terminal sends the complete trajectory data of the continuous operation to the receiving terminal, and the receiving terminal corrects the continuous operation of the synchronization according to the complete trajectory data, thereby avoiding data due to real-time synchronization.
  • Data distortion caused by loss the transmitting terminal sends the complete trajectory data of the continuous operation to the receiving terminal, and the receiving terminal corrects the continuous operation of the synchronization according to the complete trajectory data, thereby avoiding data due to real-time synchronization. Data distortion caused by loss.
  • the attribute data includes an identifier of the first operation object
  • the synchronous discrete operation is performed according to the attribute data, and specifically includes:
  • the synchronization data is identified as attribute data, acquiring a second operation object according to the identification code of the first operation object in the attribute data, and identifying a data amount of the attribute data; wherein
  • the second operation object is an operation object having the same identification code as the first operation object on the transmitting terminal;
  • the complete attribute data is used as the attribute data of the second operation object, and the second operation object is synchronously and discretely operated according to the attribute data;
  • the complete attribute data is obtained by the sending terminal when detecting that the granularity of the discrete operation of the user is greater than a preset value;
  • the attribute data of the second operation object is modified according to the attribute variable data, and the second operation object is synchronously discretely operated according to the modified attribute data.
  • the receiving terminal recognizes that the synchronization data is the attribute data, it needs to identify the data amount. If it is the complete attribute data, all the attribute data of the second operation object needs to be modified to make the complete attribute. The data covers all the attribute data of the second operation object; if it is the attribute variable data, only the data corresponding to the attribute change stream data needs to be modified. After the attribute data of the second operation object is modified, the synchronous display of the discrete operation of the user can be realized according to the modified attribute data.
  • the data synchronization method further includes:
  • the receiving terminal After receiving the n-th synchronization operation on the second operation object according to the attribute variable data, the receiving terminal receives the complete attribute data sent by the sending terminal, so as to perform a complete synchronization operation on the second operation object according to the complete attribute data. To avoid the loss of precision caused by data loss in the middle of multiple transmissions.
  • the data synchronization method provided by the embodiment of the invention can detect the operation of the user on the screen, and synchronize different types of operations in different manners, so as to improve the efficiency of data synchronization while ensuring accurate data synchronization. Moreover, the granularity of the discrete operation of the user is detected, and the complete attribute data is transmitted for the discrete operation with large granularity to synchronize, and the attribute variable data of the discrete operation with small granularity is synchronized to further improve the accurate synchronization of the data. The efficiency of data synchronization; after the end of the operation, supplemental transmission of complete data to avoid synchronization distortion caused by data loss.
  • the present invention further provides a data synchronization apparatus capable of implementing all the processes of the data synchronization method in the above embodiments.
  • FIG. 3 is a schematic structural diagram of a first embodiment of a data synchronization apparatus provided by the present invention, including:
  • the detecting module 31 is configured to detect an operation of the user on the screen
  • the first data sending module 32 is configured to acquire the trajectory data of the continuous operation in real time when detecting that the operation of the user is a continuous operation, and send the trajectory data as synchronous data to the receiving terminal for synchronous continuous operation;
  • the second data sending module 33 is configured to acquire attribute data of the first operation object of the discrete operation when detecting that the operation of the user is a discrete operation, and send the attribute data as synchronization data to the receiving terminal to perform a synchronous discrete operation.
  • the data synchronization device further includes:
  • a first correction module configured to acquire complete trajectory data of the continuous operation when the end of the continuous operation is detected, and send the complete trajectory data to the receiving terminal, so that the receiving terminal is complete according to the The trajectory data corrects the continuous operation of the synchronization.
  • the second data sending module specifically includes:
  • a detecting unit configured to detect a granularity of the discrete operation when detecting that the user's operation is a discrete operation
  • a first synchronization data acquiring unit configured to acquire, as the synchronization data, complete attribute data of the first operation object of the discrete operation when detecting that the granularity is greater than a preset value
  • a second synchronization data acquiring unit configured to acquire attribute change data of the first operation object of the discrete operation as the synchronization data
  • a synchronization data sending unit configured to send the synchronization data to the receiving terminal, so that the receiving terminal performs a synchronous discrete operation on the second operation object according to the synchronization data; wherein the synchronization data includes the first operation An identifier of the object; the second operation object is an operation object on the receiving terminal having the same identification code as the first operation object.
  • the data synchronization device further includes:
  • a second correction module configured to acquire complete attribute data of the first operation object, and acquire the complete attribute data of the first operation object, when the number of times the attribute change data of the first operation object is detected reaches a preset number of times
  • the complete attribute data is sent to the receiving terminal, so that the receiving terminal corrects the synchronous discrete operation of the second operating object according to the complete attribute data.
  • FIG. 4 is a schematic structural diagram of a second embodiment of a data synchronization apparatus provided by the present invention, including:
  • the data receiving module 41 is configured to receive synchronization data sent by the sending terminal in real time, and identify a data type of the synchronous data;
  • the continuous operation synchronization module 42 is configured to perform a synchronous continuous operation according to the trajectory data when the synchronization data is identified as trajectory data; wherein the trajectory data is an operation of the transmitting terminal detecting the user on the screen Trajectory data of continuous operation of the user acquired in real time for continuous operation; and,
  • the discrete operation synchronization module 43 is configured to perform a synchronous discrete operation according to the attribute data when the synchronization data is identified as attribute data; wherein the attribute data is that the sending terminal detects the user's operation on the screen The attribute data of the first operation object of the user discrete operation acquired for the discrete operation.
  • the data synchronization device further includes:
  • a continuous operation correction module configured to receive complete trajectory data of the continuous operation of the user sent by the transmitting terminal, and correct the continuous operation of the synchronization according to the complete trajectory data; wherein the complete trajectory data of the continuous operation of the user is The transmitting terminal transmits when it detects the end of the continuous operation of the user on the screen.
  • the attribute data includes an identifier of the first operation object
  • the discrete operation synchronization module specifically includes:
  • a recognition unit configured to acquire a second operation object according to an identification code of the first operation object in the attribute data, and identify a data quantity of the attribute data when the synchronization data is attribute data
  • the second operation object is an operation object having the same identification code as the first operation object on the transmitting terminal
  • a first discrete operation unit configured to: when the attribute data is complete attribute data, use the complete attribute data as attribute data of the second operation object, and perform the second operation according to the attribute data
  • the object performs a synchronous discrete operation; wherein the complete attribute data is acquired by the transmitting terminal when detecting that the granularity of the user discrete operation is greater than a preset value;
  • a second discrete operation unit configured to modify attribute data of the second operation object according to the attribute variable data when the attribute data is identified as attribute variable data, and to the second according to the modified attribute data
  • the operation object performs a synchronous discrete operation.
  • the data synchronization device further includes:
  • a discrete operation correction module configured to receive complete attribute data of the first operation object sent by the sending terminal, and correct a discrete operation of the second operation object according to the complete attribute data of the first operation object;
  • the complete attribute data of the first operation object is sent by the sending terminal when detecting that the number of times the attribute change data of the first operation object is acquired reaches a preset number of times.
  • FIG. 5 it is a schematic structural diagram of an embodiment of a data synchronization system provided by the present invention, including a transmitting terminal 51 and a receiving terminal 52.
  • the transmitting terminal 51 is the data synchronization device described in the foregoing first embodiment, and will not be described in detail herein.
  • the receiving terminal 52 is the data synchronization device described in the foregoing second embodiment, and will not be described in detail herein.
  • the data synchronization device and system provided by the embodiments of the present invention can detect the operation of the user on the screen, and synchronize different types of operations in different manners, so as to improve the efficiency of data synchronization while ensuring accurate data synchronization. Moreover, the granularity of the discrete operation of the user is detected, and the complete attribute data is transmitted for the discrete operation with large granularity to synchronize, and the attribute variable data of the discrete operation with small granularity is synchronized to further improve the accurate synchronization of the data.
  • the efficiency of data synchronization after the end of the operation, supplemental transmission of complete data to avoid synchronization distortion caused by data loss.

Landscapes

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

Abstract

本发明公开了一种数据同步方法,包括:对用户在屏幕上的操作进行检测(S11);若检测到用户的操作为连续操作,则实时获取所述连续操作的轨迹数据,并将所述轨迹数据作为同步数据发送给接收终端进行同步连续操作(S12);若检测到用户的操作为离散操作,则获取离散操作的第一操作对象的属性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作(S13)。相应的,本发明还公开了一种数据同步装置及系统。采用本发明实施例,能够在保证数据准确同步的同时,提高数据同步的效率。

Description

数据同步方法、装置及系统 技术领域
本发明涉及通信技术领域,尤其涉及一种数据同步方法、装置及系统。
背景技术
在目前交互式白板或类似结构的远程同步中,通常采用的同步方式为在发送端收集用户操作的数据,并将这些数据封装为可传输的数据,通过网络发送给接收端,接收端在接收到传输的数据后,将其解析为接收端的操作数据,并根据该操作数据进行同步。但是,上述同步方法对用户不同的操作所产生的数据均采用相同方法进行传输,使其不能兼顾数据同步的准确性和数据同步效率。
发明内容
本发明实施例提出一种数据同步方法、装置及系统,能够在保证数据准确同步的同时,提高数据同步的效率。
本发明实施例的一方面提供一种数据同步方法,包括:
对用户在屏幕上的操作进行检测;
若检测到用户的操作为连续操作,则实时获取所述连续操作的轨迹数据,并将所述轨迹数据作为同步数据发送给接收终端进行同步连续操作;
若检测到用户的操作为离散操作,则获取离散操作的第一操作对象的属性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作。
进一步地,所述数据同步方法还包括:
在检测到所述连续操作结束时,获取所述连续操作的完整轨迹数据,并将所述完整轨迹数据发送给所述接收终端,使所述接收终端根据所述完整轨迹数据对同步的连续操作进行修正。
进一步地,所述若检测到用户的操作为离散操作,则获取离散操作的第一操作对象的属性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作,具体包括:
若检测到用户的操作为离散操作,则检测所述离散操作的颗粒度;
若检测到所述颗粒度大于预设值,则获取离散操作的第一操作对象的完整属性数据作为同步数据;
若检测到所述颗粒度小于预设值,则获取离散操作的第一操作对象的属性变化数据作为同步数据;
向所述接收终端发送所述同步数据,使所述接收终端根据所述同步数据对第二操作对象进行同步离散操作;其中,所述同步数据包括所述第一操作对象的识别码;所述第二操作对象为所述接收终端上与所述第一操作对象具有相同识别码的操作对象。
进一步地,所述数据同步方法还包括:
在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时,获取所述第一操作对象的完整属性数据,并将所述第一操作对象的完整属性数据发送给所述接收终端,使所述接收终端根据所述完整属性数据对所述第二操作对象的同步离散操作进行修正。
本发明实施例的另一方面提供一种数据同步方法,包括:
实时接收发送终端发送的同步数据,并对所述同步数据的数据类型进行识别;
若识别出所述同步数据为轨迹数据,则根据所述轨迹数据进行同步连续操作;其中,所述轨迹数据是所述发送终端在检测到用户在屏幕上的操作为连续操作时实时获取的用户连续操作的轨迹数据;
若识别出所述同步数据为属性数据,则根据所述属性数据进行同步离散操作;其中,所述属性数据是所述发送终端在检测到用户在屏幕上的操作为离散操作时获取的用户离散操作的第一操作对象的属性数据。
进一步地,所述数据同步方法还包括:
接收所述发送终端发送的用户连续操作的完整轨迹数据,并根据所述完整轨迹数据对同步的连续操作进行修正;其中,所述用户连续操作的完整轨迹数据是所述发送终端在检测到用户在屏幕上的连续操作结束时发送的。
进一步地,所述属性数据包括所述第一操作对象的识别码;
所述若识别出所述同步数据为属性数据,则根据所述属性数据进行同步离散操作,具体包括:
若识别出所述同步数据为属性数据,则根据所述属性数据中的所述第一操作对象的识别码获取第二操作对象,并对所述属性数据的数据量进行识别;其中,所述第二操作对象是与所述发送终端上的所述第一操作对象具有相同识别码的操作对象;
若识别出所述属性数据为完整属性数据,则将所述完整属性数据作为所述第二操作对象的属性数据,并根据所述属性数据对所述第二操作对象进行同步离散操作;其中,所述完整属性数据是所述发送终端在检测到用户离散操作的颗粒度大于预设值时获取的;
若识别出所述属性数据为属性变量数据,则根据所述属性变量数据修改所述第二操作对 象的属性数据,并根据修改后的属性数据对所述第二操作对象进行同步离散操作。
进一步地,所述数据同步方法还包括:
接收所述发送终端发送的所述第一操作对象的完整属性数据,并根据所述第一操作对象的完整属性数据对所述第二操作对象的离散操作进行修正;其中,所述第一操作对象的完整属性数据是所述发送终端在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时发送的。
相应地,本发明实施例的一方面提供一种数据同步装置,包括:
检测模块,用于对用户在屏幕上的操作进行检测;
第一数据发送模块,用于在检测到用户的操作为连续操作时,实时获取所述连续操作的轨迹数据,并将所述轨迹数据作为同步数据发送给接收终端进行同步连续操作;以及,
第二数据发送模块,用于在检测到用户的操作为离散操作时,获取离散操作的第一操作对象的属性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作。
进一步地,所述数据同步装置还包括:
第一修正模块,用于在检测到所述连续操作结束时,获取所述连续操作的完整轨迹数据,并将所述完整轨迹数据发送给所述接收终端,使所述接收终端根据所述完整轨迹数据对同步的连续操作进行修正。
进一步地,所述第二数据发送模块具体包括:
检测单元,用于在检测到用户的操作为离散操作时,检测所述离散操作的颗粒度;
第一同步数据获取单元,用于在检测到所述颗粒度大于预设值时,获取离散操作的第一操作对象的完整属性数据作为同步数据;
第二同步数据获取单元,用于获取离散操作的第一操作对象的属性变化数据作为同步数据;以及,
同步数据发送单元,用于向所述接收终端发送所述同步数据,使所述接收终端根据所述同步数据对第二操作对象进行同步离散操作;其中,所述同步数据包括所述第一操作对象的识别码;所述第二操作对象为所述接收终端上与所述第一操作对象具有相同识别码的操作对象。
进一步地,所述数据同步装置还包括:
第二修正模块,用于在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时,获取所述第一操作对象的完整属性数据,并将所述第一操作对象的完整属性数据发送给所述接收终端,使所述接收终端根据所述完整属性数据对所述第二操作对象的同步离散操 作进行修正。
本发明实施例的另一方面提供一种数据同步装置,包括:
数据接收模块,用于实时接收发送终端发送的同步数据,并对所述同步数据的数据类型进行识别;
连续操作同步模块,用于在识别出所述同步数据为轨迹数据时,根据所述轨迹数据进行同步连续操作;其中,所述轨迹数据是所述发送终端在检测到用户在屏幕上的操作为连续操作时实时获取的用户连续操作的轨迹数据;以及,
离散操作同步模块,用于在识别出所述同步数据为属性数据时,根据所述属性数据进行同步离散操作;其中,所述属性数据是所述发送终端在检测到用户在屏幕上的操作为离散操作时获取的用户离散操作的第一操作对象的属性数据。
进一步地,所述数据同步装置还包括:
连续操作修正模块,用于接收所述发送终端发送的用户连续操作的完整轨迹数据,并根据所述完整轨迹数据对同步的连续操作进行修正;其中,所述用户连续操作的完整轨迹数据是所述发送终端在检测到用户在屏幕上的连续操作结束时发送的。
进一步地,所述属性数据包括第一操作对象的识别码;
所述离散操作同步模块具体包括:
识别单元,用于在识别出所述同步数据为属性数据时,根据所述属性数据中的所述第一操作对象的识别码获取第二操作对象,并对所述属性数据的数据量进行识别;其中,所述第二操作对象是与所述发送终端上的所述第一操作对象具有相同识别码的操作对象;
第一离散操作单元,用于在识别出所述属性数据为完整属性数据时,将所述完整属性数据作为所述第二操作对象的属性数据,并根据所述属性数据对所述第二操作对象进行同步离散操作;其中,所述完整属性数据是所述发送终端在检测到用户离散操作的颗粒度大于预设值时获取的;以及,
第二离散操作单元,用于在识别出所述属性数据为属性变量数据时,根据所述属性变量数据修改所述第二操作对象的属性数据,并根据修改后的属性数据对所述第二操作对象进行同步离散操作。
进一步地,所述数据同步装置还包括:
离散操作修正模块,用于接收所述发送终端发送的所述第一操作对象的完整属性数据,并根据所述第一操作对象的完整属性数据对所述第二操作对象的离散操作进行修正;其中,所述第一操作对象的完整属性数据是所述发送终端在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时发送的。
相应的,本发明实施例还提供一种数据同步系统,包括发送终端和接收终端。
所述发送终端为上述一方面实施例所述的数据同步装置,在此不再详细描述。
所述接收终端为上述另一方面实施例所述的数据同步装置,在此不再详细描述。
实施本发明实施例,具有如下有益效果:
本发明实施例提供的数据同步方法、装置及系统,能够对用户在屏幕上的操作进行检测,对不同类型的操作采用不同的方式进行同步,以便在保证数据准确同步的同时,提高数据同步的效率。
而且,对用户离散操作的颗粒度进行检测,对于颗粒度大的离散操作传输完整属性数据进行同步,对于颗粒度小的离散操作传输属性变量数据进行同步,进一步在保证数据准确同步的同时,提高数据同步的效率;在操作结束后,补充传输完整数据,避免数据丢失导致的同步失真问题。
附图说明
图1是本发明提供的数据同步方法的第一个实施例的流程示意图;
图2是本发明提供的数据同步方法的第二个实施例的流程示意图;
图3是本发明提供的数据同步装置的第一个实施例的结构示意图;
图4是本发明提供的数据同步装置的第二个实施例的结构示意图;
图5是本发明提供的数据同步系统的一个实施例的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,本发明提供的数据同步方法的第一个实施例的流程示意图,包括:
S11、对用户在屏幕上的操作进行检测;
S12、若检测到用户的操作为连续操作,则实时获取所述连续操作的轨迹数据,并将所述轨迹数据作为同步数据发送给接收终端进行同步连续操作;
S13、若检测到用户的操作为离散操作,则获取离散操作的第一操作对象的属性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作。
需要说明的是,将多个交互式终端连接起来即可进行数据同步,其中,交互式终端可以为交互式电子白板。用户选择多个终端中的一个终端进行操作,使其作为发送终端来发送用户操作的数据,则其余未被用户操作的终端即作为接收终端,用于接收用户操作的数据,并在各自屏幕上同步显示用户操作。
本实施例的数据同步方法由发送终端实现。用户在发送终端的屏幕上进行操作,发送终端对用户操作的操作类型进行检测。操作类型分为两种:一种是连续操作,如画一条笔迹或移动一张图片;另一种是离散操作,如增加一个矩形或删除一个页面。
若检测到用户操作为连续操作,则提取用户连续操作的数据,其中,连续操作分为操作开始、操作进行中和操作结束。操作开始时,记录开始点的数据;操作进行中,记录各个时刻的数据;操作结束时,记录结束点的数据,从而构成连续操作的轨迹数据。其中,轨迹数据包括连续操作涉及到的元素识别码和点坐标。在实时获取轨迹数据后,对获取的轨迹数据进行序列化,形成可在网络中传输的数据流,并将该数据流发送给接收终端,接收终端即可对该数据流进行解析,实时同步显示出用户的连续操作。例如,用户在发送终端绘制一条笔迹,发送终端在用户操作过程中,实时获取笔迹的数据进行传输,而接收终端的时延非常小,使接收终端显示的连续操作与用户的连续操作同时进行。
若检测到用户操作为离散操作,则识别出用户离散操作的操作对象,即第一操作对象,并获取离散操作后该第一操作对象的属性数据。其中,属性数据包括第一操作对象的识别码和属性。在获取属性数据后,对该属性数据序列化,从而形成可在网络中传输的数据流,并将该数据流发送给接收终端,接收终端即可对该数据流进行解析,同步显示出用户的离散操作。例如,用户在发送终端对某条笔迹的颜色进行修改,发送终端将该笔迹的属性数据发送给接收终端,接收终端根据该属性数据对相应的笔迹的颜色进行修改,同步显示出用户的离散操作。
进一步地,所述数据同步方法还包括:
在检测到所述连续操作结束时,获取所述连续操作的完整轨迹数据,并将所述完整轨迹数据发送给所述接收终端,使所述接收终端根据所述完整轨迹数据对同步的连续操作进行修正。
需要说明的是,在用户连续操作结束时,发送终端会将该连续操作的完整轨迹数据发送给接收终端进行完整的同步,例如,用户在发送终端绘制了一条笔迹,在绘制结束时,发送终端将该笔迹的所有坐标数据发送给接收终端进行一次完整的同步,以确保即使中途数据丢失,也能完整还原该笔迹的所有数据。
进一步地,所述若检测到用户的操作为离散操作,则获取离散操作的第一操作对象的属 性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作,具体包括:
若检测到用户的操作为离散操作,则检测所述离散操作的颗粒度;
若检测到所述颗粒度大于预设值,则获取离散操作的第一操作对象的完整属性数据作为同步数据;
若检测到所述颗粒度小于预设值,则获取离散操作的第一操作对象的属性变化数据作为同步数据;
向所述接收终端发送所述同步数据,使所述接收终端根据所述同步数据对第二操作对象进行同步离散操作;其中,所述同步数据包括所述第一操作对象的识别码;所述第二操作对象为所述接收终端上与所述第一操作对象具有相同识别码的操作对象。
需要说明的是,在检测出用户的操作为离散操作后,还需对该离散操作的颗粒度进行检测,颗粒度大,则需要传输第一操作对象的完整属性数据,而颗粒度小,则仅需传输第一操作对象的属性变化数据。其中,颗粒度是根据该离散操作是否会影响到操作对象的全部属性为依据来进行判断。例如,离散操作为新增一个图片,则该离散操作需新增该图片的所有属性数据,即缺少任何一个数据接收终端都无法同步出该图片,则该离散操作的颗粒度大。离散操作为修改一个矩形的颜色,该离散操作只是对矩形的颜色属性进行修改,仅需传输颜色属性接收终端即可在已有的矩形基础上同步出修改后的矩形,则该离散操作的颗粒度小。在检测出离散操作的颗粒度,获取其相应的同步数据后,将同步数据序列化为可在网络中传输的数据流,使接收终端接收该数据流进行同步显示操作。对不同的离散操作传输不同的数据量,使同步传输在数据量、实时性和准确性上取得较好的平衡,即具有准确性优点,又具有实时性和减少数据量的优点。
进一步地,所述数据同步方法还包括:
在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时,获取所述第一操作对象的完整属性数据,并将所述第一操作对象的完整属性数据发送给所述接收终端,使所述接收终端根据所述完整属性数据对所述第二操作对象的同步离散操作进行修正。
需要说明的是,为保证数据的完整传输,每传输第一操作对象的属性变化数据n次时,完整同步一次第一操作对象的属性数据,以确保即使中途数据丢失,也能完整还原该笔迹的所有数据。其中,n值可根据业务和网络状况动态调整。例如,用户离散操作为使一条笔迹的粗细增加0.5,发送终端仅需将粗细增量作为该笔迹的属性变化量发送给接收终端,若对用户该笔迹的粗细修改了50次,每次增加0.5,则需将该笔迹的完整属性数据发送给接收终端进行完整同步,从而避免因多次差量修改而导致的精度丢失问题。
参见图2,本发明提供的数据同步方法的第二个实施例的流程示意图,包括:
S21、实时接收发送终端发送的同步数据,并对所述同步数据的数据类型进行识别;
S22、若识别出所述同步数据为轨迹数据,则根据所述轨迹数据进行同步连续操作;其中,所述轨迹数据是所述发送终端在检测到用户在屏幕上的操作为连续操作时实时获取的用户连续操作的轨迹数据;
S23、若识别出所述同步数据为属性数据,则根据所述属性数据进行同步离散操作;其中,所述属性数据是所述发送终端在检测到用户在屏幕上的操作为离散操作时获取的用户离散操作的第一操作对象的属性数据。
需要说明的是,本实施例的数据同步方法由接收终端实现。接收终端在接收到发送终端发送的同步数据后,对该同步数据进行解析,获取同步数据的数据类型,对于不同类型的同步数据采用不同的反序列化器来反序列化数据。
若识别出接收到的同步数据为轨迹数据,则将反序列化后的轨迹数据实时转换为接收终端可操作的轨迹数据,例如,根据接收终端的分辨率对接收到的点坐标进行转换。接收终端根据轨迹数据中的标记执行模拟操作,其中,若标记为开始,则执行开始操作,若标记为进行中,则执行进行中操作,若标记为结束,则执行结束操作,从而实现对用户连续操作的实时同步。若识别出接收到的同步数据为属性数据,则将反序列化后的属性数据转换为接收终端可操作的属性数据,例如,在接收到一个图片的路径后,需在接收终端下载该图片文件后,将该图片的路径指向接收终端中存储该图片的路径。接收终端根据该属性数据对相应的操作对象进行离散操作。
进一步地,所述数据同步方法还包括:
接收所述发送终端发送的用户连续操作的完整轨迹数据,并根据所述完整轨迹数据对同步的连续操作进行修正;其中,所述用户连续操作的完整轨迹数据是所述发送终端在检测到用户在屏幕上的连续操作结束时发送的。
需要说明的是,在用户连续操作结束时,发送终端会将该连续操作的完整轨迹数据发送给接收终端,接收终端根据该完整轨迹数据对其同步的连续操作进行修正,避免因实时同步时数据丢失而造成的数据失真。
进一步地,所述属性数据包括所述第一操作对象的识别码;
所述若识别出所述同步数据为属性数据,则根据所述属性数据进行同步离散操作,具体包括:
若识别出所述同步数据为属性数据,则根据所述属性数据中的所述第一操作对象的识别码获取第二操作对象,并对所述属性数据的数据量进行识别;其中,所述第二操作对象是与所述发送终端上的所述第一操作对象具有相同识别码的操作对象;
若识别出所述属性数据为完整属性数据,则将所述完整属性数据作为所述第二操作对象的属性数据,并根据所述属性数据对所述第二操作对象进行同步离散操作;其中,所述完整属性数据是所述发送终端在检测到用户离散操作的颗粒度大于预设值时获取的;
若识别出所述属性数据为属性变量数据,则根据所述属性变量数据修改所述第二操作对象的属性数据,并根据修改后的属性数据对所述第二操作对象进行同步离散操作。
需要说明的是,接收终端在识别出同步数据为属性数据后,还需对其数据量进行识别,若为完整属性数据,则需对第二操作对象的所有属性数据进行修改,使该完整属性数据覆盖第二操作对象的所有属性数据;若为属性变量数据,则仅需对该属性变流数据所对应的数据进行修改。第二操作对象的属性数据修改后,根据修改后的属性数据即可实现对用户离散操作的同步显示。
进一步地,所述数据同步方法还包括:
接收所述发送终端发送的所述第一操作对象的完整属性数据,并根据所述第一操作对象的完整属性数据对所述第二操作对象的离散操作进行修正;其中,所述第一操作对象的完整属性数据是所述发送终端在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时发送的。
需要说明的是,接收终端根据属性变量数据对第二操作对象进行n次同步操作后,接收发送终端发送的完整属性数据,以根据该完整属性数据对第二操作对象进行一次完整的同步操作,以避免多次传输中途数据丢失而导致的精度丢失问题。
本发明实施例提供的数据同步方法,能够对用户在屏幕上的操作进行检测,对不同类型的操作采用不同的方式进行同步,以便在保证数据准确同步的同时,提高数据同步的效率。而且,对用户离散操作的颗粒度进行检测,对于颗粒度大的离散操作传输完整属性数据进行同步,对于颗粒度小的离散操作传输属性变量数据进行同步,进一步在保证数据准确同步的同时,提高数据同步的效率;在操作结束后,补充传输完整数据,避免数据丢失导致的同步失真问题。
相应的,本发明还提供一种数据同步装置,能够实现上述实施例中的数据同步方法的所有流程。
参见图3,是本发明提供的数据同步装置的第一个实施例的结构示意图,包括:
检测模块31,用于对用户在屏幕上的操作进行检测;
第一数据发送模块32,用于在检测到用户的操作为连续操作时,实时获取所述连续操作的轨迹数据,并将所述轨迹数据作为同步数据发送给接收终端进行同步连续操作;以及,
第二数据发送模块33,用于在检测到用户的操作为离散操作时,获取离散操作的第一操作对象的属性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作。
进一步地,所述数据同步装置还包括:
第一修正模块,用于在检测到所述连续操作结束时,获取所述连续操作的完整轨迹数据,并将所述完整轨迹数据发送给所述接收终端,使所述接收终端根据所述完整轨迹数据对同步的连续操作进行修正。
进一步地,所述第二数据发送模块具体包括:
检测单元,用于在检测到用户的操作为离散操作时,检测所述离散操作的颗粒度;
第一同步数据获取单元,用于在检测到所述颗粒度大于预设值时,获取离散操作的第一操作对象的完整属性数据作为同步数据;
第二同步数据获取单元,用于获取离散操作的第一操作对象的属性变化数据作为同步数据;以及,
同步数据发送单元,用于向所述接收终端发送所述同步数据,使所述接收终端根据所述同步数据对第二操作对象进行同步离散操作;其中,所述同步数据包括所述第一操作对象的识别码;所述第二操作对象为所述接收终端上与所述第一操作对象具有相同识别码的操作对象。
进一步地,所述数据同步装置还包括:
第二修正模块,用于在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时,获取所述第一操作对象的完整属性数据,并将所述第一操作对象的完整属性数据发送给所述接收终端,使所述接收终端根据所述完整属性数据对所述第二操作对象的同步离散操作进行修正。
参见图4,是本发明提供的数据同步装置的第二个实施例的结构示意图,包括:
数据接收模块41,用于实时接收发送终端发送的同步数据,并对所述同步数据的数据类型进行识别;
连续操作同步模块42,用于在识别出所述同步数据为轨迹数据时,根据所述轨迹数据进行同步连续操作;其中,所述轨迹数据是所述发送终端在检测到用户在屏幕上的操作为连续操作时实时获取的用户连续操作的轨迹数据;以及,
离散操作同步模块43,用于在识别出所述同步数据为属性数据时,根据所述属性数据进行同步离散操作;其中,所述属性数据是所述发送终端在检测到用户在屏幕上的操作为离散操作时获取的用户离散操作的第一操作对象的属性数据。
进一步地,所述数据同步装置还包括:
连续操作修正模块,用于接收所述发送终端发送的用户连续操作的完整轨迹数据,并根据所述完整轨迹数据对同步的连续操作进行修正;其中,所述用户连续操作的完整轨迹数据是所述发送终端在检测到用户在屏幕上的连续操作结束时发送的。
进一步地,所述属性数据包括第一操作对象的识别码;
所述离散操作同步模块具体包括:
识别单元,用于在识别出所述同步数据为属性数据时,根据所述属性数据中的所述第一操作对象的识别码获取第二操作对象,并对所述属性数据的数据量进行识别;其中,所述第二操作对象是与所述发送终端上的所述第一操作对象具有相同识别码的操作对象;
第一离散操作单元,用于在识别出所述属性数据为完整属性数据时,将所述完整属性数据作为所述第二操作对象的属性数据,并根据所述属性数据对所述第二操作对象进行同步离散操作;其中,所述完整属性数据是所述发送终端在检测到用户离散操作的颗粒度大于预设值时获取的;以及,
第二离散操作单元,用于在识别出所述属性数据为属性变量数据时,根据所述属性变量数据修改所述第二操作对象的属性数据,并根据修改后的属性数据对所述第二操作对象进行同步离散操作。
进一步地,所述数据同步装置还包括:
离散操作修正模块,用于接收所述发送终端发送的所述第一操作对象的完整属性数据,并根据所述第一操作对象的完整属性数据对所述第二操作对象的离散操作进行修正;其中,所述第一操作对象的完整属性数据是所述发送终端在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时发送的。
参见图5,是本发明提供的数据同步系统的一个实施例的结构示意图,包括发送终端51和接收终端52。
所述发送终端51为上述第一实施例所述的数据同步装置,在此不再详细描述。
所述接收终端52为上述第二实施例所述的数据同步装置,在此不再详细描述。
本发明实施例提供的数据同步装置及系统,能够对用户在屏幕上的操作进行检测,对不同类型的操作采用不同的方式进行同步,以便在保证数据准确同步的同时,提高数据同步的效率。而且,对用户离散操作的颗粒度进行检测,对于颗粒度大的离散操作传输完整属性数据进行同步,对于颗粒度小的离散操作传输属性变量数据进行同步,进一步在保证数据准确同步的同时,提高数据同步的效率;在操作结束后,补充传输完整数据,避免数据丢失导致的同步失真问题。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说, 在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。

Claims (17)

  1. 一种数据同步方法,其特征在于,包括:
    对用户在屏幕上的操作进行检测;
    若检测到用户的操作为连续操作,则实时获取所述连续操作的轨迹数据,并将所述轨迹数据作为同步数据发送给接收终端进行同步连续操作;
    若检测到用户的操作为离散操作,则获取离散操作的第一操作对象的属性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作。
  2. 如权利要求1所述的数据同步方法,其特征在于,所述数据同步方法还包括:
    在检测到所述连续操作结束时,获取所述连续操作的完整轨迹数据,并将所述完整轨迹数据发送给所述接收终端,使所述接收终端根据所述完整轨迹数据对同步的连续操作进行修正。
  3. 如权利要求1或2所述的数据同步方法,其特征在于,所述若检测到用户的操作为离散操作,则获取离散操作的第一操作对象的属性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作,具体包括:
    若检测到用户的操作为离散操作,则检测所述离散操作的颗粒度;
    若检测到所述颗粒度大于预设值,则获取离散操作的第一操作对象的完整属性数据作为同步数据;
    若检测到所述颗粒度小于预设值,则获取离散操作的第一操作对象的属性变化数据作为同步数据;
    向所述接收终端发送所述同步数据,使所述接收终端根据所述同步数据对第二操作对象进行同步离散操作;其中,所述同步数据包括所述第一操作对象的识别码;所述第二操作对象为所述接收终端上与所述第一操作对象具有相同识别码的操作对象。
  4. 如权利要求3所述的数据同步方法,其特征在于,所述数据同步方法还包括:
    在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时,获取所述第一操作对象的完整属性数据,并将所述第一操作对象的完整属性数据发送给所述接收终端,使所述接收终端根据所述完整属性数据对所述第二操作对象的同步离散操作进行修正。
  5. 一种数据同步方法,其特征在于,包括:
    实时接收发送终端发送的同步数据,并对所述同步数据的数据类型进行识别;
    若识别出所述同步数据为轨迹数据,则根据所述轨迹数据进行同步连续操作;其中,所述轨迹数据是所述发送终端在检测到用户在屏幕上的操作为连续操作时实时获取的用户连续操作的轨迹数据;
    若识别出所述同步数据为属性数据,则根据所述属性数据进行同步离散操作;其中,所述属性数据是所述发送终端在检测到用户在屏幕上的操作为离散操作时获取的用户离散操作的第一操作对象的属性数据。
  6. 如权利要求5所述的数据同步方法,其特征在于,所述数据同步方法还包括:
    接收所述发送终端发送的用户连续操作的完整轨迹数据,并根据所述完整轨迹数据对同步的连续操作进行修正;其中,所述用户连续操作的完整轨迹数据是所述发送终端在检测到用户在屏幕上的连续操作结束时发送的。
  7. 如权利要求5或6所述的数据同步方法,其特征在于,所述属性数据包括所述第一操作对象的识别码;
    所述若识别出所述同步数据为属性数据,则根据所述属性数据进行同步离散操作,具体包括:
    若识别出所述同步数据为属性数据,则根据所述属性数据中的所述第一操作对象的识别码获取第二操作对象,并对所述属性数据的数据量进行识别;其中,所述第二操作对象是与所述发送终端上的所述第一操作对象具有相同识别码的操作对象;
    若识别出所述属性数据为完整属性数据,则将所述完整属性数据作为所述第二操作对象的属性数据,并根据所述属性数据对所述第二操作对象进行同步离散操作;其中,所述完整属性数据是所述发送终端在检测到用户离散操作的颗粒度大于预设值时获取的;
    若识别出所述属性数据为属性变量数据,则根据所述属性变量数据修改所述第二操作对象的属性数据,并根据修改后的属性数据对所述第二操作对象进行同步离散操作。
  8. 如权利要求7所述的数据同步方法,其特征在于,所述数据同步方法还包括:
    接收所述发送终端发送的所述第一操作对象的完整属性数据,并根据所述第一操作对象的完整属性数据对所述第二操作对象的离散操作进行修正;其中,所述第一操作对象的完整属性数据是所述发送终端在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时发送的。
  9. 一种数据同步装置,其特征在于,包括:
    检测模块,用于对用户在屏幕上的操作进行检测;
    第一数据发送模块,用于在检测到用户的操作为连续操作时,实时获取所述连续操作的轨迹数据,并将所述轨迹数据作为同步数据发送给接收终端进行同步连续操作;以及,
    第二数据发送模块,用于在检测到用户的操作为离散操作时,获取离散操作的第一操作对象的属性数据,并将所述属性数据作为同步数据发送给接收终端进行同步离散操作。
  10. 如权利要求9所述的数据同步装置,其特征在于,所述数据同步装置还包括:
    第一修正模块,用于在检测到所述连续操作结束时,获取所述连续操作的完整轨迹数据,并将所述完整轨迹数据发送给所述接收终端,使所述接收终端根据所述完整轨迹数据对同步的连续操作进行修正。
  11. 如权利要求9或10所述的数据同步装置,其特征在于,所述第二数据发送模块具体包括:
    检测单元,用于在检测到用户的操作为离散操作时,检测所述离散操作的颗粒度;
    第一同步数据获取单元,用于在检测到所述颗粒度大于预设值时,获取离散操作的第一操作对象的完整属性数据作为同步数据;
    第二同步数据获取单元,用于获取离散操作的第一操作对象的属性变化数据作为同步数据;以及,
    同步数据发送单元,用于向所述接收终端发送所述同步数据,使所述接收终端根据所述同步数据对第二操作对象进行同步离散操作;其中,所述同步数据包括所述第一操作对象的识别码;所述第二操作对象为所述接收终端上与所述第一操作对象具有相同识别码的操作对象。
  12. 如权利要求11所述的数据同步装置,其特征在于,所述数据同步装置还包括:
    第二修正模块,用于在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时,获取所述第一操作对象的完整属性数据,并将所述第一操作对象的完整属性数据发送给所述接收终端,使所述接收终端根据所述完整属性数据对所述第二操作对象的同步离散操作进行修正。
  13. 一种数据同步装置,其特征在于,包括:
    数据接收模块,用于实时接收发送终端发送的同步数据,并对所述同步数据的数据类型进行识别;
    连续操作同步模块,用于在识别出所述同步数据为轨迹数据时,根据所述轨迹数据进行同步连续操作;其中,所述轨迹数据是所述发送终端在检测到用户在屏幕上的操作为连续操作时实时获取的用户连续操作的轨迹数据;以及,
    离散操作同步模块,用于在识别出所述同步数据为属性数据时,根据所述属性数据进行同步离散操作;其中,所述属性数据是所述发送终端在检测到用户在屏幕上的操作为离散操作时获取的用户离散操作的第一操作对象的属性数据。
  14. 如权利要求13所述的数据同步装置,其特征在于,所述数据同步装置还包括:
    连续操作修正模块,用于接收所述发送终端发送的用户连续操作的完整轨迹数据,并根据所述完整轨迹数据对同步的连续操作进行修正;其中,所述用户连续操作的完整轨迹数据是所述发送终端在检测到用户在屏幕上的连续操作结束时发送的。
  15. 如权利要求13或14所述的数据同步装置,其特征在于,所述属性数据包括第一操作对象的识别码;
    所述离散操作同步模块具体包括:
    识别单元,用于在识别出所述同步数据为属性数据时,根据所述属性数据中的所述第一操作对象的识别码获取第二操作对象,并对所述属性数据的数据量进行识别;其中,所述第二操作对象是与所述发送终端上的所述第一操作对象具有相同识别码的操作对象;
    第一离散操作单元,用于在识别出所述属性数据为完整属性数据时,将所述完整属性数据作为所述第二操作对象的属性数据,并根据所述属性数据对所述第二操作对象进行同步离散操作;其中,所述完整属性数据是所述发送终端在检测到用户离散操作的颗粒度大于预设值时获取的;以及,
    第二离散操作单元,用于在识别出所述属性数据为属性变量数据时,根据所述属性变量数据修改所述第二操作对象的属性数据,并根据修改后的属性数据对所述第二操作对象进行同步离散操作。
  16. 如权利要求15所述的数据同步装置,其特征在于,所述数据同步装置还包括:
    离散操作修正模块,用于接收所述发送终端发送的所述第一操作对象的完整属性数据,并根据所述第一操作对象的完整属性数据对所述第二操作对象的离散操作进行修正;其中, 所述第一操作对象的完整属性数据是所述发送终端在检测到所述第一操作对象的属性变化数据的获取次数达到预设次数时发送的。
  17. 一种数据同步系统,其特征在于,包括发送终端和接收终端;
    所述发送终端为如权利要求9至12任一项所述的数据同步装置;
    所述接收终端为如权利要求13至16任一项所述的数据同步装置。
PCT/CN2016/113313 2016-01-21 2016-12-30 数据同步方法、装置及系统 Ceased WO2017124906A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610041970.5 2016-01-21
CN201610041970.5A CN105554157B (zh) 2016-01-21 2016-01-21 数据同步方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2017124906A1 true WO2017124906A1 (zh) 2017-07-27

Family

ID=55833089

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113313 Ceased WO2017124906A1 (zh) 2016-01-21 2016-12-30 数据同步方法、装置及系统

Country Status (2)

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

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554157B (zh) * 2016-01-21 2019-06-14 广州视睿电子科技有限公司 数据同步方法、装置及系统
CN106534188B (zh) * 2016-12-14 2019-08-06 上海溢米教育科技有限公司 课堂操作轨迹同步方法及系统
CN106991176A (zh) * 2017-04-06 2017-07-28 广州视源电子科技股份有限公司 文件管理方法、装置、设备以及存储介质
CN107195210B (zh) * 2017-07-03 2020-07-10 北京大生在线科技有限公司 二维与三维结合的远程教学系统及控制方法
CN108377229B (zh) * 2018-01-23 2021-08-17 广州视源电子科技股份有限公司 数据处理方法、发送终端、服务器及接收终端
CN109150992A (zh) * 2018-07-27 2019-01-04 深圳Tcl数字技术有限公司 基于Android的同步绘图方法、装置、可读存储介质及系统
CN109284158A (zh) * 2018-08-14 2019-01-29 北京大米科技有限公司 远程拖动操作内容同步系统、方法、设备及存储介质
CN114125524A (zh) * 2021-11-05 2022-03-01 武汉闻道复兴智能科技有限责任公司 一种面向多人网络协同操作的同步方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063092A (zh) * 2014-06-16 2014-09-24 青岛歌尔声学科技有限公司 一种触摸屏控制方法及装置
CN104158900A (zh) * 2014-08-25 2014-11-19 焦点科技股份有限公司 一种iPad控制课件同步的方法与系统
US20150319236A1 (en) * 2014-05-02 2015-11-05 Claude Lano Cox Auto-storing and synchronizing device content from an information handling system
CN105554157A (zh) * 2016-01-21 2016-05-04 广州视睿电子科技有限公司 数据同步方法、装置及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6040522B2 (ja) * 2011-11-15 2016-12-07 セイコーエプソン株式会社 印刷装置、印刷方法およびそのプログラム
JP6029305B2 (ja) * 2012-03-29 2016-11-24 キヤノン株式会社 画像処理装置およびその制御方法
CN103970471B (zh) * 2013-02-06 2018-01-23 联想(北京)有限公司 一种信息发送方法、设备和终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150319236A1 (en) * 2014-05-02 2015-11-05 Claude Lano Cox Auto-storing and synchronizing device content from an information handling system
CN104063092A (zh) * 2014-06-16 2014-09-24 青岛歌尔声学科技有限公司 一种触摸屏控制方法及装置
CN104158900A (zh) * 2014-08-25 2014-11-19 焦点科技股份有限公司 一种iPad控制课件同步的方法与系统
CN105554157A (zh) * 2016-01-21 2016-05-04 广州视睿电子科技有限公司 数据同步方法、装置及系统

Also Published As

Publication number Publication date
CN105554157A (zh) 2016-05-04
CN105554157B (zh) 2019-06-14

Similar Documents

Publication Publication Date Title
WO2017124906A1 (zh) 数据同步方法、装置及系统
US10742955B2 (en) Correlation of video stream frame timestamps based on a system clock
US9288438B2 (en) Communication control system and control device
CN102761495B (zh) 一种基于手写原笔迹的即时通信方法、通信终端和系统
EP3447631B1 (en) Writing trajectory synchronization method and system for multiple clients
CN104883583B (zh) 一种获取在线视频截图的方法及装置
CN103974026B (zh) 视讯信息呈现方法、装置及系统
MY202362A (en) Offline-service multi.user interaction based on augmented reality
CN106648391B (zh) 笔迹同步的方法、装置及系统
CN106325789B (zh) 一种信息处理的方法、终端及系统
CN106886948A (zh) 社交用户分类方法及客户端
WO2017143896A1 (zh) 线路信息互动方法、电子设备和计算机存储介质
EP3156895A1 (en) Image processing apparatus and image processing system
CN107135237A (zh) 一种呈现目标增强信息的实现方法和装置
CN106354462A (zh) 一种文档在多个设备中同步显示的方法、设备及系统
CN217085729U (zh) 投屏器和图像识别系统
WO2017080191A1 (zh) 基于多屏互动的图片处理方法及系统
WO2016004765A1 (zh) 用于进行多点视频通讯的方法、设备及系统
CN110794966B (zh) Ar显示系统及方法
CN102222096B (zh) 一种用于提供多媒体资源访问服务的方法与设备
CN102404354A (zh) 一种基于网络设备实现更新设备间数据同步的方法与设备
CN108566480A (zh) 可穿戴设备的控制方法、装置及系统
CN104636055A (zh) 一种联系人动态信息的显示方法及装置
CN112423268A (zh) 无人机的遥控装置、数据发送方法、存储介质和电子设备
US10459533B2 (en) Information processing method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16886165

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16886165

Country of ref document: EP

Kind code of ref document: A1