CN103530342B - Method and device for sharing data - Google Patents

Method and device for sharing data Download PDF

Info

Publication number
CN103530342B
CN103530342B CN201310464578.8A CN201310464578A CN103530342B CN 103530342 B CN103530342 B CN 103530342B CN 201310464578 A CN201310464578 A CN 201310464578A CN 103530342 B CN103530342 B CN 103530342B
Authority
CN
China
Prior art keywords
electronic equipment
data
clipbook
change message
delta data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310464578.8A
Other languages
Chinese (zh)
Other versions
CN103530342A (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.)
Beijing Cheetah Mobile Technology Co Ltd
Original Assignee
Shell Internet Beijing Security Technology 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 Shell Internet Beijing Security Technology Co Ltd filed Critical Shell Internet Beijing Security Technology Co Ltd
Priority to CN201310464578.8A priority Critical patent/CN103530342B/en
Publication of CN103530342A publication Critical patent/CN103530342A/en
Application granted granted Critical
Publication of CN103530342B publication Critical patent/CN103530342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and device for sharing data. The method for sharing the data is applicable to a first electronic device which is connected with at least one second electronic device through a network. The method comprises the steps that whether the data on clipboards are changed or not is monitored; when the data on the clipboards are changed, the change data on the clipboards are obtained; whether the change data have a first identification or not is judged, wherein the first identification is the identification possessed by the change data received through the network on the clipboard of the second electronic device; when the fact that the change data do not have the first identification is judged out, a change message corresponding to the change data is generated; the change message is sent to the second electronic device so that the second electronic device can share the change message to the change data on the clipboard of the first electronic device after receiving the change message. Thus, in the scheme, different electronic devices can share the data on the clipboards, and therefore the convenience of data sharing between different electronic devices is improved.

Description

Data sharing method and device
Technical field
The present invention relates to data processing field, particularly to a kind of data sharing method and device.
Background technology
With the development that science and technology is at full speed, various electronic equipments constantly enrich and facilitate popular life.Due to profit With electronic equipment processing information, there is the advantages such as convenient and swift, save resources so that electronic equipment becomes life or the work of people An indispensable part in work.
Wherein, generally data sharing is realized by shared file mode, u disk copy mode etc. between distinct electronic apparatuses, But due to needing user to carry out loaded down with trivial details operation, lead to its convenience relatively low.For example: when by shared file mode, need Set up shared file, and each electronic equipment is set to be able to access that shared file;And when by u disk copy mode, need Want user by the data transfer to be shared in an electronic equipment in u disk, and the data transfer in u disk to another electronics is set In standby.
Therefore, the convenience how improving the data sharing between distinct electronic apparatuses is a problem demanding prompt solution.
Content of the invention
Based on the problems referred to above, the embodiment of the invention discloses a kind of data sharing method and device, to improve different electronics The convenience of the data sharing between equipment.Technical scheme is as follows:
In a first aspect, embodiments providing a kind of data sharing method it is adaptable to the first electronic equipment, described One electronic equipment is connected by network with least one second electronic equipment, and methods described includes:
Whether the data on monitoring clipbook changes;
When the data on described clipbook changes, obtain the delta data on described clipbook;
Judge whether described delta data is provided with the first mark;Wherein, described first it is designated and is received by network The clipbook of described second electronic equipment on the mark that has of delta data;
When judging that described delta data is not provided with the first mark, generate the corresponding change of described delta data and disappear Breath;
Send described change message to described second electronic equipment so that described second electronic equipment receive described After change message, the delta data on the clipbook of described first electronic equipment can be shared to.
Preferably, by way of intercepting the operation to clipbook, whether the data monitored on described clipbook becomes Change.
Preferably, by way of Access Clipboard, whether the data monitored on described clipbook changes.
Preferably, generate the corresponding change message of described delta data, comprising:
For described delta data setting first mark;
Generate the change message carrying the delta data being provided with described first mark.
Preferably, described change message carries the communication identifier of described first electronic equipment.
Preferably, described data sharing method, also includes:
Receive the download request that described second electronic equipment sends;Wherein, described download request sets for described second electronics For when being not carried out duplication/shearing manipulation and executing paste operation, sent out to described first electronic equipment by described communication identifier The request sent;
According to described download request, the delta data on described clipbook is fed back to described second electronic equipment.
Preferably, scanned by described first electronic equipment and parse shown at least one second electronic equipment described The mode of the graphical identification code for network connection set up corresponding network connection;Or, by described at least one second The mode that electronic equipment scanned and parsed the shown graphical identification code for network connection in described first electronic equipment is built Found corresponding network connection.
Second aspect, the embodiment of the present invention additionally provides a kind of data sharing method it is adaptable to the second electronic equipment, described Second electronic equipment is connected by network with the first electronic equipment, and methods described includes:
Receive the change message being sent when data on monitoring clipbook for described first electronic equipment changes;
According to described change message, the delta data on the clipbook of described first electronic equipment is shared to described second Electronic equipment.
Preferably, described change message carries the change on the clipbook of described first electronic equipment being provided with the first mark Change data;
Accordingly, according to described change message, the delta data on the clipbook of described first electronic equipment is shared to Described second electronic equipment, comprising:
Delta data on the clipbook of received described first electronic equipment being provided with the first mark is pasted To on the clipbook of itself;Wherein, described first mark is removed when corresponding delta data is performed paste operation.
Preferably, described change message carries the communication identifier of described first electronic equipment;
Accordingly, according to described change message, the delta data on the clipbook of described first electronic equipment is shared to Described second electronic equipment, comprising:
Preserve the communication identifier of described first electronic equipment;
When being not carried out duplication/shearing manipulation and execute paste operation, by described communication identifier to described first electronics Equipment sends download request;
Receive the delta data on the clipbook of described first electronic equipment of described first electronic equipment feedback, and paste To respective regions.
The third aspect, embodiments provides a kind of data sharing device it is adaptable to the first electronic equipment, and described One electronic equipment is connected by network with least one second electronic equipment, and described data sharing device includes:
Monitoring modular, for monitoring whether the data on clipbook changes;
Delta data obtains module, for when the data on described clipbook changes, obtaining on described clipbook Delta data;
Judge module, for judging whether described delta data is provided with the first mark;Wherein, described first be designated logical Cross the mark that the delta data on the clipbook of described second electronic equipment that network receives has;Change message generates mould Block, for when described judge module judges that described delta data is not provided with the first mark, generating described delta data pair The change message answered;
Change message sending module, for sending described change message to described second electronic equipment, so that described the Two electronic equipments, after receiving described change message, can share to the change number on the clipbook of described first electronic equipment According to.
Preferably, described monitoring modular, comprising: the first monitoring means, for the side by intercepting the operation to clipbook Formula, whether the data monitored on described clipbook changes.
Preferably, described monitoring modular, comprising: the second monitoring means, for, by way of Access Clipboard, monitoring institute State whether the data on clipbook changes.
Preferably, described change message generation module, comprising:
Mark arranging unit, for identifying for described delta data setting first;
Change message signal generating unit, for generating the change message carrying the delta data being provided with described first mark.
Preferably, the change message that described change message generation module is generated carries the communication of described first electronic equipment Mark.
Preferably, described data sharing device, also includes:
Download request receiver module, for receiving the download request that described second electronic equipment sends;Wherein, described download Ask for described second electronic equipment when being not carried out duplication/shearing manipulation and executing paste operation, by described communication identifier The request sending to described first electronic equipment;
Delta data feedback module, for according to described download request, the delta data on described clipbook being fed back to Described second electronic equipment.
Fourth aspect, the embodiment of the present invention additionally provides a kind of data sharing device it is adaptable to the second electronic equipment, described Second electronic equipment is connected by network with the first electronic equipment, and described device includes:
Change message receiver module, becomes monitoring the data on clipbook for receiving described first electronic equipment The change message being sent during change;
Change message processing module, for according to described change message, by the clipbook of described first electronic equipment Delta data shares to described second electronic equipment.
Preferably, described change message receiver module receives the clipbook that change message carries described first electronic equipment On delta data;
Described change message processing module, comprising:
Change message processing unit, for cutting received described first electronic equipment being provided with the first mark Delta data on pasting board pastes on the clipbook of itself;Wherein, described first mark is held in corresponding delta data It is removed during row paste operation.
Preferably, described change message receiver module receives the communication mark that change message carries described first electronic equipment Know;
Described change message processing module, comprising:
Communication identifier recording unit, for preserving the communication identifier of described first electronic equipment;
Download request transmitting element, for when being not carried out duplication/shearing manipulation and execute paste operation, by described logical Beacon is known to described first electronic equipment transmission download request;
Delta data receiving unit, for receiving cliping and pasting of described first electronic equipment that described first electronic equipment feeds back Delta data on plate, and paste respective regions.
In the embodiment of the present invention, whether the data on the first electronic equipment monitoring clipbook changes;When this clipbook On data when changing, obtain the delta data on this clipbook;When judging that this delta data is not provided with the first mark During knowledge, generate the corresponding change message of this delta data;To the second electronic equipment being connected by network with the first electronic equipment Send this change message, so that the second electronic equipment is after receiving change message, the first electronic equipment can be shared to Delta data on clipbook.It can be seen that, in this programme, different electronic equipments can share the data on clipbook, thus carrying The convenience of the data sharing between high distinct electronic apparatuses.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
A kind of the first flow chart of data sharing method that Fig. 1 is provided by the embodiment of the present invention;
A kind of second flow chart of data sharing method that Fig. 2 is provided by the embodiment of the present invention;
A kind of the third flow chart of data sharing method that Fig. 3 is provided by the embodiment of the present invention;
A kind of 4th kind of flow chart of data sharing method that Fig. 4 is provided by the embodiment of the present invention;
A kind of the first structural representation of data sharing device that Fig. 5 is provided by the embodiment of the present invention;
A kind of second structural representation of data sharing device that Fig. 6 is provided by the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
In order to improve the convenience of the data sharing between distinct electronic apparatuses, embodiments provide a kind of data Sharing method and device.
A kind of the data sharing method first below embodiment of the present invention being provided is introduced.
Clear in order to describe, first below from the angle of the first electronic equipment as shared data originating end, to this A kind of data sharing method that bright embodiment is provided is introduced.
It should be noted that the data sharing method that the embodiment of the present invention is provided is applied to the first electronic equipment, this One electronic equipment is connected by network with least one second electronic equipment, and this first electronic equipment and the second electronic equipment can To install identical operating system or different operating system, this is all reasonable.In actual applications, this first electronic equipment and Second electronic equipment can be all: mobile phone, pc etc..
Wherein, " second " of " first " of " the first electronic equipment " and " the second electronic equipment " is just to from the upper area of name It is allocated as the electronic equipment for shared data originating end and the electronic equipment as shared data receiving terminal, there is no any restriction Meaning.
As shown in figure 1, a kind of data sharing method, may include that
S101, whether the data on the first electronic equipment monitoring clipbook changes;
Wherein, whether the data that the first electronic equipment can be monitored on its clipbook changes, and then is monitoring to cut When data on pasting board changes, carry out follow-up data sharing.
It will be appreciated by persons skilled in the art that can be by way of intercepting the operation to clipbook, monitoring is cliped and pasted Whether the data on plate changes;And for cannot intercept clipbook operation in the case of, for example, there is ios operating system The electronic equipment of (ios operating system is the handheld equipment operating system developed by Apple), can pass through Access Clipboard Mode, monitor whether the data on this clipbook changes, that is, constantly access according to certain time interval and clip and paste Plate, thus whether the data monitored on clipbook changes.
S102, when the data on this clipbook changes, obtains the delta data on this clipbook;
When monitoring that the data on clipbook changes, it is possible to obtain the delta data on this clipbook, Jin Erjin The follow-up process of row.
Wherein, this delta data may include that the various form that can be applied to clipbook such as text, picture, file.
S103, judges whether this delta data is provided with the first mark, if it is, terminating this handling process;Otherwise, hold Row step s104;
Wherein, whether data on monitoring clipbook for first electronic equipment changes and obtains on this clipbook After delta data, need to judge whether this delta data is provided with the first mark, and in the case of being not provided with the first mark, Continue follow-up data sharing process, thus improving the effectiveness of data sharing.
Wherein, this first delta data being designated on the clipbook of the second electronic equipment being received by network is had Some marks.Wherein, this first mark can be set according to practical application scene, therefore not to repeat here, and, this first Mark is as just the identification information of delta data, thus distinguishing the change on the clipbook being brought by user's Self-operating Data, has no effect on the actual content of this delta data.
It should be noted that the first electronic equipment both can be as shared data originating end it is also possible to as data sharing Receiving terminal, therefore, the data on clipbook is changed it may be possible to be set by the second electronics received by network due to pasting Caused by delta data on standby clipbook it is also possible to because user itself carries out data behaviour to this first electronic equipment Caused by making.Wherein, in order to avoid there arises a problem that the first electronic equipment, received delta data is resend To this second electronic equipment, and this second electronic equipment is sent to the first electronics after receiving this delta data again and sets Standby, finally will result in data sharing process by that analogy and endless loop occurs, therefore, in order to improve the effectiveness of data sharing, altogether Enjoy data originating end and the first mark is set to the delta data that shared data receiving terminal sends, and shared data receiving terminal will be connect The delta data being provided with the first mark receiving pastes on the clipbook of itself, and is held in received delta data This first mark is removed during row paste operation;And, when shared data receiving terminal is by received first mark that is provided with After delta data pastes on the clipbook of itself, can monitor that the data on the clipbook of itself changes, now, obtain Obtain the delta data on this clipbook: the received delta data being provided with the first mark, and then judge this change number According to being provided with the first mark, thus shared flow process need not be opened, terminate this flow process.
S104, generates the corresponding change message of this delta data;
It should be noted that for data volume small change data, generally can carry in change message, therefore, Generate the corresponding change message of this delta data and may include that arranging first for this delta data identifies, generation carries and is provided with The change message of the delta data of this first mark;And for the larger delta data of data volume, due to transmission cost relatively Height, change message can only carry the communication identifier of this first electronic equipment, by number on the clipbook of the first electronic equipment Give the second electronic equipment according to the condition notification changing, to download when the second electronic equipment needs delta data.
It is understood that under normal circumstances, data volume small change data can be text or picture, and data volume Larger delta data can be file, certainly it is not limited to this.
And, data-quantity threshold in actual applications, can be pre-set, now, the change of this data volume will be not higher than Data regards as the less data of data volume, and the delta data that will be above this data volume regards as the larger data of data volume; Wherein, this data-quantity threshold can be carried with system or user's sets itself, and this is all rational;And, distinct electronic apparatuses Data-quantity threshold can be identical or different, the data-quantity threshold of same electronic equipment under different application scene can identical or Difference, the occurrence here of data-quantity threshold does not limit.
S105, sends this change message to the second electronic equipment, so that the second electronic equipment disappears receiving this change After breath, the delta data on the clipbook of this first electronic equipment can be shared to.
Wherein, after generating change message, this change message can be sent to this second electronic equipment, so that second Electronic equipment, after receiving this change message, can share to the delta data on the clipbook of this first electronic equipment.
It will be appreciated by persons skilled in the art that for the first electronic equipment belonging to same LAN and the second electronics For equipment, this change message directly can be sent to the second electronic equipment by this first electronic equipment;And for different locals For first electronic equipment of net and the second electronic equipment, the first electronic equipment can be realized by way of server- aided And second communication between electronic equipment, this is all rational.
In the embodiment of the present invention, whether the data on the first electronic equipment monitoring clipbook changes;When this clipbook On data when changing, obtain the delta data on this clipbook;When judging that this delta data is not provided with the first mark During knowledge, generate the corresponding change message of this delta data;To the second electronic equipment being connected by network with the first electronic equipment Send this change message, so that the second electronic equipment is after receiving change message, the first electronic equipment can be shared to Delta data on clipbook.It can be seen that, in this programme, different electronic equipments can share the data on clipbook, thus carrying The convenience of the data sharing between high distinct electronic apparatuses.
Further, when change message carries the communication identifier of the first electronic equipment, when the second electronic equipment needs During downloading data, download request can be sent to this first electronic equipment, and for the angle of shared data originating end, this number Can also include according to sharing method: receive the download request that the second electronic equipment sends;According to this download request, by this clipbook On delta data feed back to this second electronic equipment.
It should be noted that this first electronic equipment and each second electronic equipment can be by socket mode or indigo plants Tooth mode is realized network and is connected, and is certainly not limited thereto.And, set up the side of the network connection of first terminal and second terminal Formula can be the manual set-up mode of user.Further, in order to simplify the step setting up network connection, can by this first Electronic equipment scans and parses the shown graphical identification code for network connection in this at least one second electronic equipment Mode sets up corresponding network connection;Or, by this, at least one second electronic equipment scans and parses this first electronics and sets In standby, the mode of the shown graphical identification code for network connection sets up corresponding network connection.Wherein it is possible to according to tool The application scenarios of body, this graphical identification code is arranged on the first electronic equipment or at least one the second electronic equipment, and this is all to close Reason;And, this graphical identification code can be Quick Response Code, three-dimension code etc., and skill can be generated using existing graphical identification code Art, generates the graphical identification code for network connection, therefore not to repeat here in the second electronic equipment.
Further, in order to guarantee data security, the first electronic equipment and at least one second electronic equipment carry out net Before network connects, can mutually carry out authentication, to ensure the first electronic equipment and this at least one second electronic equipment is The equipment that both sides can trust.Wherein, specific identification authentication mode can adopt prior art, will not be described here.
Wherein, realize shared data between different electronic equipments, can be using different connected modes.Illustrate:
For mobile phone and pc:
Can be attached in the way of using scanogram identification code between mobile phone and pc, wherein, pc is upper can be shown One graphical identification code, this graphical identification code can comprise ip and the port information of pc, and can learn this after mobile phone photograph The ip of pc and port information, and then be connected on the port of agreement;
For pc and pc:
The manually ip address of input pc and port numbers, and then it is connected to the pc specifying;Or, by udp multicast side Formula, can search out the pc within LAN;
For mobile phone with mobile phone: can be attached by way of two-dimensional code scanning;
And, multiple electronic equipments define a network circle, if new electronic equipment requires connect to this network Circle, is first connected with an electronic equipment therein, can learn also which other electronic equipment from this electronic equipment, then It is attached;And between different electronic equipments, keep tcp length to connect, two-way communication can be carried out at any time.
Below from the angle of the second electronic equipment as shared data receiving terminal, that the embodiment of the present invention is provided Plant data sharing method to be introduced.
It should be noted that the data sharing method that the embodiment of the present invention is provided is applied to the second electronic equipment, this Two electronic equipments are connected by network with the first electronic equipment, and this second electronic equipment and the first electronic equipment can install phase Same operating system or different operating system, this is all rational.In actual applications, this first electronic equipment and the second electricity Sub- equipment can be all: mobile phone, pc etc..
Wherein, " second " of " first " of " the first electronic equipment " and " the second electronic equipment " is just to from the upper area of name It is allocated as the electronic equipment for shared data originating end and the electronic equipment as shared data receiving terminal, there is no any restriction Meaning.
As shown in Fig. 2 a kind of data sharing method, may include that
S201, the second electronic equipment receives this first electronic equipment data on monitoring clipbook and changes when institute The change message sending;
Wherein, when the data on the first electronic equipment monitoring to clipbook changes, obtain the change on this clipbook Change data, and judging to generate after this delta data is not provided with the first mark change message corresponding with this delta data, to Second electronic equipment sends this change message;And this second electronic equipment then can receive this change message, and then to this change Message is processed accordingly.
Wherein, this change message can carry this delta data, or, this change message can also carry this first electronics The communication identifier of equipment.
It should be noted that for data volume small change data, generally can carry in change message;And for For the larger delta data of data volume, because transmission cost is higher, change message can only carry this first electronic equipment Communication identifier, the condition notification that data on the clipbook of the first electronic equipment is changed gives the second electronic equipment, with Download when the second electronic equipment needs delta data.
It is understood that under normal circumstances, data volume small change data can be text or picture, and data volume Larger delta data can be file, certainly it is not limited to this.
And, data-quantity threshold in actual applications, can be pre-set, now, the change of this data volume will be not higher than Data regards as the less data of data volume, and the delta data that will be above this data volume regards as the larger data of data volume; Wherein, this data-quantity threshold can be carried with system or user's sets itself, and this is all rational;And, distinct electronic apparatuses Data-quantity threshold can be identical or different, the data-quantity threshold of same electronic equipment under different application scene can identical or Difference, the occurrence here of data-quantity threshold does not limit.
S202, according to this change message, by the delta data on the clipbook of this first electronic equipment share to this second Electronic equipment.
It is understood that when this change message carries the delta data on the clipbook of this first electronic equipment, According to this change message, the delta data on the clipbook of this first electronic equipment is shared to this second electronic equipment, permissible Including: the delta data on the clipbook of received this first electronic equipment being provided with the first mark is pasted itself Clipbook on;Wherein, this first mark is removed when corresponding delta data is performed paste operation.
It should be noted that the second electronic equipment both can be as shared data originating end it is also possible to as data sharing Receiving terminal, therefore, the data on clipbook is changed it may be possible to be set by the first electronics received by network due to pasting Caused by delta data on standby clipbook it is also possible to because user itself carries out data behaviour to this second electronic equipment Caused by making.Therefore, the change on the clipbook receiving the first electronic equipment being provided with the first mark by network After data, paste on the clipbook of itself, now, the second electronic equipment can monitor that the data on itself clipbook becomes Change, now, obtain the delta data on clipbook, and judge that this delta data is provided with the first mark, show that this causes and cut Delta data on pasting board receives from network, now need not continue executing with shared flow process, terminates this handling process and is Can.
And when this change message carries the communication identifier of this first electronic equipment, according to this change message, by this Delta data on the clipbook of one electronic equipment shares to this second electronic equipment, may include that
Preserve the communication identifier of this first electronic equipment;
When being not carried out duplication/shearing manipulation and execute paste operation, by this communication identifier to this first electronic equipment Send download request;
Receive the delta data on the clipbook of this first electronic equipment of this first electronic equipment feedback, and paste phase Answer region.
In the embodiment of the present invention, the second electronic equipment receives this first electronic equipment data on monitoring clipbook and sends out The change message being sent during changing, according to this change message, by the delta data on the clipbook of this first electronic equipment Share to this second electronic equipment.It can be seen that, in this programme, different electronic equipments can share the data on clipbook, thus Improve the convenience of the data sharing between distinct electronic apparatuses.
Below using mobile phone a as shared data originating end, using mobile phone b as shared data receiving terminal as a example, to the present invention The data sharing method that embodiment is provided is introduced.
Wherein, clear in order to describe, first below from the angle of the mobile phone a as shared data originating end, to the present invention A kind of data sharing method that embodiment is provided is introduced.
It should be noted that the data sharing method that the embodiment of the present invention is provided is applied to mobile phone a, this mobile phone a and handss Machine b passes through network and is connected, and this mobile phone a and this mobile phone b can install identical operating system or different operating system, and this is all It is rational.And, this mobile phone a can be by way of intercepting the operation to clipbook, and whether the data on monitoring clipbook Change.
As shown in figure 3, a kind of data sharing method, may include that
, by way of intercepting the operation to clipbook, whether the data on monitoring clipbook becomes for s301, mobile phone a Change;
S302, when the data on this clipbook changes, obtain on this clipbook as the first of delta data Text;
Wherein, user carries out replicating the data manipulation of the first text to mobile phone a itself, leads to the data on clipbook to occur Change, now, mobile phone a can monitor that the data on this clipbook changes, and then obtains the delta data on this clipbook For the first text.
S303, judges that this first text is not provided with the first mark;
Because user carries out replicating the data manipulation of the first text to mobile phone a itself, the data on clipbook is led to occur Change, and it is not the delta data that another electronic equipment receiving is sent, therefore, this first text is not provided with first Mark.
S304, judges that the data volume of this first text is less than predetermined threshold value;
S305, for this first text setting first mark;
S306, generates the change message carrying the first text being provided with this first mark;
Wherein, due to judge this first text data volume be less than predetermined threshold value, therefore, it can generation carry this first The change message of text, wherein, the change message that generation carries this first text may include that as this first text setting first Mark, generates the change message carrying the first text being provided with this first mark.
S307, sends this change message to mobile phone b, so that mobile phone b is after receiving this change message, can share to The first text on the clipbook of this mobile phone a.
It can be seen that, in this programme, mobile phone a and mobile phone b can share the data on clipbook, thus improve different electronics setting The convenience of the data sharing between standby.
Below from the angle of the mobile phone b as shared data receiving terminal, a kind of data that the embodiment of the present invention is provided Sharing method is introduced.
It should be noted that the data sharing method that the embodiment of the present invention is provided is applied to mobile phone b, this mobile phone b and handss Machine a passes through network and is connected, and this mobile phone b and this mobile phone a can install identical operating system or different operating system, and this is all It is rational.
As shown in figure 4, a kind of data sharing method, may include that
S401, mobile phone b receive the change being sent when data on monitoring clipbook for this mobile phone a changes and disappear Breath, wherein, carries the first text being provided with the first mark in this change message;
Wherein, when the data that mobile phone a monitors on clipbook changes, obtain the conduct change number on this clipbook According to the first text, and after judging that this first text is not provided with the first mark, judge the data volume of this first text Less than predetermined threshold value, and then generate the change message carrying this first text being provided with the first mark, send this change to mobile phone b Change message;And this mobile phone b then can receive this change message, and then this change message is processed accordingly.
S402, the delta data on the clipbook of the received mobile phone a being provided with the first mark is pasted itself Clipbook on.
Wherein, mobile phone b receives the change message being sent when data on monitoring clipbook for this mobile phone a changes Afterwards, the delta data on the clipbook of the received mobile phone a being provided with the first mark is pasted on the clipbook of itself, It is achieved thereby that the first text as delta data on the clipbook of mobile phone a is shared in this mobile phone b.Need explanation It is that this first mark is removed when corresponding delta data is performed paste operation.
It can be seen that, in this programme, mobile phone a and mobile phone b can share the data on clipbook, thus improve different electronics setting The convenience of the data sharing between standby.
Corresponding to the data sharing method corresponding to shared data originating end, embodiments provide a kind of data altogether Enjoy device it is adaptable to the first electronic equipment, described first electronic equipment is connected by network with least one second electronic equipment, As shown in figure 5, described data sharing device may include that
Monitoring modular 510, for monitoring whether the data on clipbook changes;
Delta data obtains module 520, for when the data on described clipbook changes, obtaining described clipbook On delta data;
Judge module 530, for judging whether described delta data is provided with the first mark;Wherein, described first mark The mark having by the delta data on the clipbook of described second electronic equipment being received by network;
When described judge module, change message generation module 540, for judging that described delta data is not provided with first During mark, generate the corresponding change message of described delta data;
Change message sending module 550, for sending described change message to described second electronic equipment, so that described Second electronic equipment, after receiving described change message, can share to the change on the clipbook of described first electronic equipment Data.
In the embodiment of the present invention, whether the data on the first electronic equipment monitoring clipbook changes;When this clipbook On data when changing, obtain the delta data on this clipbook;When judging that this delta data is not provided with the first mark During knowledge, generate the corresponding change message of this delta data;To the second electronic equipment being connected by network with the first electronic equipment Send this change message, so that the second electronic equipment is after receiving change message, the first electronic equipment can be shared to Delta data on clipbook.It can be seen that, in this programme, different electronic equipments can share the data on clipbook, thus carrying The convenience of the data sharing between high distinct electronic apparatuses.
Wherein, described monitoring modular 510, may include that the first monitoring means, for by intercepting the operation to clipbook Mode, monitoring clipbook on data whether change.
Wherein, described monitoring modular 510, may include that the second monitoring means, for by way of Access Clipboard, Monitor whether the data on described clipbook changes.
Wherein, described change message generation module 540, comprising:
Mark arranging unit, for identifying for described delta data setting first;
Change message signal generating unit, for generating the change message carrying the delta data being provided with described first mark.
Wherein, the change message that described change message generation module 540 is generated carries the logical of described first electronic equipment Beacon is known.
Further, shown data sharing device can also include:
Download request receiver module, for receiving the download request that described second electronic equipment sends;Wherein, described download Ask for described second electronic equipment when being not carried out duplication/shearing manipulation and executing paste operation, by described communication identifier The request sending to described first electronic equipment;
Delta data feedback module, for according to described download request, the delta data on described clipbook being fed back to Described second electronic equipment.
Corresponding to the data sharing method corresponding to shared data receiving terminal, the embodiment of the present invention additionally provides a kind of data It is adaptable to the second electronic equipment, described second electronic equipment is connected by network sharing means with the first electronic equipment, such as Fig. 6 Shown, described data sharing device may include that
Change message receiver module 610, sends out monitoring the data on clipbook for receiving described first electronic equipment The change message being sent during changing;
Change message processing module 620, for according to described change message, by the clipbook of described first electronic equipment Delta data share to described second electronic equipment.
In the embodiment of the present invention, the second electronic equipment receives this first electronic equipment data on monitoring clipbook and sends out The change message being sent during changing, according to this change message, by the delta data on the clipbook of this first electronic equipment Share to this second electronic equipment.It can be seen that, in this programme, different electronic equipments can share the data on clipbook, thus Improve the convenience of the data sharing between distinct electronic apparatuses.
Wherein, described change message receiver module 610 receives change message and carries cliping and pasting of described first electronic equipment Delta data on plate;
Described change message processing module 620, may include that
Change message processing unit, for cutting received described first electronic equipment being provided with the first mark Delta data on pasting board pastes on the clipbook of itself;Wherein, described first mark is held in corresponding delta data It is removed during row paste operation.
Wherein, described change message receiver module 610 receives the communication that change message carries described first electronic equipment Mark;
Described change message processing module 620, may include that
Communication identifier recording unit, for preserving the communication identifier of described first electronic equipment;
Download request transmitting element, for when being not carried out duplication/shearing manipulation and execute paste operation, by described logical Beacon is known to described first electronic equipment transmission download request;
Delta data receiving unit, for receiving cliping and pasting of described first electronic equipment that described first electronic equipment feeds back Delta data on plate, and paste respective regions.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related Part illustrates referring to the part of embodiment of the method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to Comprising of nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded that Also there is other identical element including in the process of described key element, method, article or equipment.
One of ordinary skill in the art will appreciate that realizing all or part of step in said method embodiment is can Completed with the hardware instructing correlation by program, described program can be stored in computer read/write memory medium, The storage medium obtaining designated herein, such as: rom/ram, magnetic disc, CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All Any modification, equivalent substitution and improvement made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention Interior.

Claims (11)

1. a kind of data sharing method is it is characterised in that be applied to the first electronic equipment, described first electronic equipment and at least Individual second electronic equipment passes through network and is connected, and methods described includes:
Whether the data on monitoring clipbook changes;
When the data on described clipbook changes, obtain the delta data on described clipbook;
Judge whether described delta data is provided with the first mark;Wherein, described first it is designated the institute receiving by network State the mark that the delta data on the clipbook of the second electronic equipment has;When judging that described delta data is not provided with During one mark, generate the corresponding change message of described delta data;Wherein, described change message carries described first electronic equipment Communication identifier;
Send described change message to described second electronic equipment, so that described second electronic equipment is receiving described change After message, the delta data on the clipbook of described first electronic equipment can be shared to;
Receive the download request that described second electronic equipment sends;Wherein, described download request exists for described second electronic equipment When being not carried out duplication/shearing manipulation and executing paste operation, sent to described first electronic equipment by described communication identifier Request;
According to described download request, the delta data on described clipbook is fed back to described second electronic equipment.
2. method according to claim 1 is it is characterised in that by way of intercepting the operation to clipbook, monitor institute State whether the data on clipbook changes.
3. method according to claim 1 is it is characterised in that by way of Access Clipboard, monitor described clipbook On data whether change.
4. the method according to claim 1-3 any one is it is characterised in that generate the corresponding change of described delta data Message, comprising:
For described delta data setting first mark;
Generate the change message carrying the delta data being provided with described first mark.
5. the method according to claim 1-3 any one is it is characterised in that scanned simultaneously by described first electronic equipment In parsing at least one second electronic equipment described, the mode of the shown graphical identification code for network connection is set up accordingly Network connection;Or, scan and parse in described first electronic equipment by least one second electronic equipment described and shown The mode of the graphical identification code for network connection shown sets up corresponding network connection.
6. a kind of data sharing method is it is characterised in that be applied to the second electronic equipment, described second electronic equipment and the first electricity Sub- equipment passes through network and is connected, and methods described includes:
Receive the change message being sent when data on monitoring clipbook for described first electronic equipment changes;Described Change message carries the communication identifier of described first electronic equipment;
According to described change message, the delta data on the clipbook of described first electronic equipment is shared to described second electronics Equipment, comprising: preserve the communication identifier of described first electronic equipment;When being not carried out duplication/shearing manipulation and execute paste operation When, download request is sent to described first electronic equipment by described communication identifier;Receive described first electronic equipment feedback Delta data on the clipbook of described first electronic equipment, and paste respective regions.
7. a kind of data sharing device is it is characterised in that be applied to the first electronic equipment, described first electronic equipment and at least Individual second electronic equipment passes through network and is connected, and described data sharing device includes:
Monitoring modular, for monitoring whether the data on clipbook changes;
Delta data obtains module, for when the data on described clipbook changes, obtaining the change on described clipbook Change data;
Judge module, for judging whether described delta data is provided with the first mark;Wherein, described first it is designated by net The mark that the delta data on the clipbook of described second electronic equipment that network receives has;Change message generation module, For when described judge module judges that described delta data is not provided with the first mark, generating described delta data corresponding Change message;Wherein, the change message that described change message generation module is generated carries the communication of described first electronic equipment Mark;
Change message sending module, for sending described change message to described second electronic equipment, so that described second electricity Sub- equipment, after receiving described change message, can share to the delta data on the clipbook of described first electronic equipment;
Download request receiver module, for receiving the download request that described second electronic equipment sends;Wherein, described download request For described second electronic equipment when being not carried out duplication/shearing manipulation and executing paste operation, by described communication identifier to institute State the request that the first electronic equipment sends;
Delta data feedback module, for according to described download request, the delta data on described clipbook being fed back to described Second electronic equipment.
8. device according to claim 7 is it is characterised in that described monitoring modular, comprising: the first monitoring means, is used for By way of intercepting the operation to clipbook, whether the data monitored on described clipbook changes.
9. device according to claim 7 is it is characterised in that described monitoring modular, comprising: the second monitoring means, is used for By way of Access Clipboard, whether the data monitored on described clipbook changes.
10. the device according to claim 7-9 any one, it is characterised in that described change message generation module, wraps Include:
Mark arranging unit, for identifying for described delta data setting first;
Change message signal generating unit, for generating the change message carrying the delta data being provided with described first mark.
A kind of 11. data sharing devices it is characterised in that being applied to the second electronic equipment, described second electronic equipment and first Electronic equipment passes through network and is connected, and described device includes:
Change message receiver module, for receiving described first electronic equipment when monitoring that the data on clipbook changes The change message being sent;Wherein, described change message receiver module receives change message and carries described first electronic equipment Communication identifier;
Change message processing module, for according to described change message, by the change on the clipbook of described first electronic equipment Data sharing is to described second electronic equipment;
Wherein, described change message processing module, comprising:
Communication identifier recording unit, for preserving the communication identifier of described first electronic equipment;
Download request transmitting element, for when being not carried out duplication/shearing manipulation and execute paste operation, by described communication mark Know and send download request to described first electronic equipment;
Delta data receiving unit, for receiving the clipbook of described first electronic equipment of described first electronic equipment feedback Delta data, and paste respective regions.
CN201310464578.8A 2013-10-08 2013-10-08 Method and device for sharing data Active CN103530342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310464578.8A CN103530342B (en) 2013-10-08 2013-10-08 Method and device for sharing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310464578.8A CN103530342B (en) 2013-10-08 2013-10-08 Method and device for sharing data

Publications (2)

Publication Number Publication Date
CN103530342A CN103530342A (en) 2014-01-22
CN103530342B true CN103530342B (en) 2017-01-18

Family

ID=49932351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310464578.8A Active CN103530342B (en) 2013-10-08 2013-10-08 Method and device for sharing data

Country Status (1)

Country Link
CN (1) CN103530342B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302123A (en) * 2016-08-17 2017-01-04 广州视睿电子科技有限公司 Data extraction and pasting processing method, device and system
CN111511045B (en) * 2020-04-10 2023-06-02 玳能科技(杭州)有限公司 Interaction method and device for mobile terminal and computer, electronic equipment and storage medium
CN115550497B (en) * 2022-01-05 2023-06-27 荣耀终端有限公司 Message collaboration method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100070982A1 (en) * 2005-09-09 2010-03-18 Pitts William M Distributed File System Consistency Mechanism Extension For Accelerating Communications Between Distributed Applications
CN101127623A (en) * 2007-09-27 2008-02-20 腾讯科技(深圳)有限公司 Data processing method, device and system
US20120096368A1 (en) * 2010-10-14 2012-04-19 Microsoft Corporation Cloud-based virtual clipboard
CN102394926A (en) * 2011-10-31 2012-03-28 中科创达软件科技(北京)有限公司 Method for transferring files to terminals
CN103118077A (en) * 2013-01-15 2013-05-22 百度在线网络技术(北京)有限公司 Cross equipment content transmission method, system and client-side

Also Published As

Publication number Publication date
CN103530342A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN102868916B (en) A kind ofly share the method for information, terminal and system to digital TV terminal
CN102891890B (en) Exchange method between a kind of terminal and relevant device, system
CN104462033B (en) The method and apparatus of edit operation is realized in equipment room
CN105553943B (en) Transmission method, screen transmission method and device for screen transmission software and data transmission system
CN102378175A (en) Wireless local area network (WLAN) authentication method and mobile terminal
DE202020005855U1 (en) Audio output system and end device
CN103392328A (en) Communication terminal work remote control server and method and communication terminal
EP2560337A1 (en) Method and system for realizing wireless usb flash disk
CN104080086A (en) Wireless connection establishment method and wireless connection establishment device
CN104661191A (en) Local area network communication method, system and terminal, and information sharing device
CN104601703A (en) File transmission method and device based on one-way safety isolation gap
CN103530342B (en) Method and device for sharing data
CN105933384A (en) File sharing method, terminal and file sharing system
CN108777812A (en) A kind of record screen live broadcasting method, device, electronic equipment and storage medium
CN110324193A (en) A kind of terminal upgrade management method and device
CN104159259A (en) A wireless communication method and a wireless communication apparatus
CN105812413B (en) Communication method and device
CN102868713B (en) A kind of method, apparatus and wireless terminal for handling file
CN103684913B (en) Method of testing, physical equipment, terminal and the system of protocol stack
CN106912043A (en) A kind of Wi Fi equipment, distribution method and system
CN203482192U (en) Wireless communication apparatus
JP2008131654A (en) Method and apparatus for performing integrity protection in wireless communications system
CN102983992B (en) Realize the method for communication between many boards in ATCA device, system
CN106301529A (en) A kind of short message transmission method, server, terminal and communication system
CN108076089A (en) A kind of long-range control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 100041 Beijing, Shijingshan District Xing Xing street, building 30, No. 3, building 2, A-0071

Patentee after: Beijing cheetah Mobile Technology Co., Ltd.

Address before: 100041 Beijing city Shijingshan District Badachu high tech Park West Wells Road No. 3 Building No. 3 1100A

Patentee before: BEIKE INTERNET (BEIJING) SECURITY TECHNOLOGY CO., LTD.

CP03 Change of name, title or address