CN103530342A - Method and device for sharing data - Google Patents

Method and device for sharing data Download PDF

Info

Publication number
CN103530342A
CN103530342A CN201310464578.8A CN201310464578A CN103530342A CN 103530342 A CN103530342 A CN 103530342A CN 201310464578 A CN201310464578 A CN 201310464578A CN 103530342 A CN103530342 A CN 103530342A
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.)
Granted
Application number
CN201310464578.8A
Other languages
Chinese (zh)
Other versions
CN103530342B (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

Images

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 a kind of data sharing method and device.
Background technology
Along with science and technology development at full speed, various electronic equipments constantly enrich and have facilitated popular life.Owing to utilizing electronic equipment process information to there is the advantages such as convenient and swift, saving resource, make electronic equipment become an indispensable part in people's life or work.
Wherein, between distinct electronic apparatuses, conventionally by shared file mode, USB flash disk copy mode etc., realize data sharing, but owing to needing user to carry out loaded down with trivial details operation, cause its convenience lower.For example: when by shared file mode, need to set up shared file, and each electronic equipment is set can access shared file; And when when the USB flash disk copy mode, need user in an electronic equipment, to treat that shared data transmission is in USB flash disk, and by the data transmission in USB flash disk to another electronic equipment.
Therefore the convenience that, how to improve the data sharing between distinct electronic apparatuses is a problem demanding prompt solution.
Summary 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 the convenience of the data sharing between distinct electronic apparatuses.Technical scheme is as follows:
First aspect, the embodiment of the present invention provides a kind of data sharing method, is applicable to the first electronic equipment, and described the first electronic equipment is connected by network with at least one second electronic equipment, and described method comprises:
Whether the data on monitoring clipbook change;
When the data on described clipbook change, obtain the delta data on described clipbook;
Judge whether described delta data is provided with the first sign; Wherein, described first be designated the sign that the delta data on the clipbook of described the second electronic equipment receiving by network has;
When judging described delta data and be not provided with the first sign, generate the change message that described delta data is corresponding;
Described the second electronic equipment to described the second electronic equipment, sends described change message, so that after receiving described change message, can share to the delta data on the clipbook of described the first electronic equipment.
Preferably, the mode by interception to the operation of clipbook, whether the data of monitoring on described clipbook change.
Preferably, by the mode of Access Clipboard, whether the data of monitoring on described clipbook change.
Preferably, generate the change message that described delta data is corresponding, comprising:
For described delta data arranges the first sign;
The change message of the delta data that is provided with described the first sign is carried in generation.
Preferably, described change message is carried the communication identifier of described the first electronic equipment.
Preferably, described data sharing method, also comprises:
Receive the download request that described the second electronic equipment sends; Wherein, described download request is for described the second electronic equipment is when carrying out copy/shearing manipulation and carry out paste operation, the request sending to described the first electronic equipment by described communication identifier;
According to described download request, the delta data on described clipbook is fed back to described the second electronic equipment.
Preferably, the mode that scans and resolve the figure identification code connecting for network shown in described at least one second electronic equipment by described the first electronic equipment is set up corresponding network and is connected; Or, by described at least one second electronic equipment, scan and resolve in described the first electronic equipment the mode of the shown figure identification code connecting for network and set up corresponding network and connect.
Second aspect, the embodiment of the present invention also provides a kind of data sharing method, is applicable to the second electronic equipment, and described the second electronic equipment is connected by network with the first electronic equipment, and described method comprises:
Receive the change message sending when the data of described the first electronic equipment on monitoring clipbook change;
According to described change message, the delta data on the clipbook of described the first electronic equipment is shared to described the second electronic equipment.
Preferably, described change message is carried the delta data on the clipbook of described the first electronic equipment that is provided with the first sign;
Accordingly, according to described change message, the delta data on the clipbook of described the first electronic equipment is shared to described the second electronic equipment, comprising:
Delta data on the clipbook of received described the first electronic equipment that is provided with the first sign is pasted on the clipbook of self; Wherein, described first be identified at when corresponding delta data is performed paste operation and be removed.
Preferably, described change message is carried the communication identifier of described the first electronic equipment;
Accordingly, according to described change message, the delta data on the clipbook of described the first electronic equipment is shared to described the second electronic equipment, comprising:
Preserve the communication identifier of described the first electronic equipment;
While carrying out paste operation when not carrying out copy/shearing manipulation, by described communication identifier, to described the first electronic equipment, send download request;
Receive the delta data on the clipbook of described the first electronic equipment of described the first electronic equipment feedback, and paste respective regions.
The third aspect, the embodiment of the present invention provides a kind of data sharing device, is applicable to the first electronic equipment, and described the first electronic equipment is connected by network with at least one second electronic equipment, and described data sharing device comprises:
Whether monitoring modular, change for the data of monitoring on clipbook;
Delta data obtains module, while changing for the data on described clipbook, obtains the delta data on described clipbook;
Judge module, for judging whether described delta data is provided with the first sign; Wherein, described first be designated the sign that the delta data on the clipbook of described the second electronic equipment receiving by network has; Change message generation module, while not being provided with the first sign for judging described delta data when described judge module, generates the change message that described delta data is corresponding;
Change message sending module, for sending described change message to described the second electronic equipment, so that described the second electronic equipment after receiving described change message, can share to the delta data on the clipbook of described the first electronic equipment.
Preferably, described monitoring modular, comprising: the first monitoring means, for the mode to the operation of clipbook by interception, whether the data of monitoring on described clipbook change.
Preferably, described monitoring modular, comprising: the second monitoring means, for by the mode of Access Clipboard, whether the data of monitoring on described clipbook change.
Preferably, described change message generation module, comprising:
Sign setting unit, is used to described delta data that the first sign is set;
Change message generation unit, for generating the change message of carrying the delta data that is provided with described the first sign.
Preferably, the change message that described change message generation module generates is carried the communication identifier of described the first electronic equipment.
Preferably, described data sharing device, also comprises:
Download request receiver module, the download request sending for receiving described the second electronic equipment; Wherein, described download request is for described the second electronic equipment is when carrying out copy/shearing manipulation and carry out paste operation, the request sending to described the first electronic equipment by described communication identifier;
Delta data feedback module, for according to described download request, feeds back to described the second electronic equipment by the delta data on described clipbook.
Fourth aspect, the embodiment of the present invention also provides a kind of data sharing device, is applicable to the second electronic equipment, and described the second electronic equipment is connected by network with the first electronic equipment, and described device comprises:
Change message receiver module, for receiving the change message sending when the data of described the first electronic equipment on monitoring clipbook change;
Change message processing module, for according to described change message, shares to described the second electronic equipment by the delta data on the clipbook of described the first electronic equipment.
Preferably, described change message receiver module receives change message and carries the delta data on the clipbook of described the first electronic equipment;
Described change message processing module, comprising:
Change message processing unit, for pasting the delta data on the clipbook of received described the first electronic equipment that is provided with the first sign the clipbook of self; Wherein, described first be identified at when corresponding delta data is performed paste operation and be removed.
Preferably, described change message receiver module receives the communication identifier that change message is carried described the first electronic equipment;
Described change message processing module, comprising:
Communication identifier record cell, for preserving the communication identifier of described the first electronic equipment;
Download request transmitting element, while carrying out paste operation for do not copy when carrying out/shearing manipulation, sends download request by described communication identifier to described the first electronic equipment;
Delta data receiving element, for receiving the delta data on the clipbook of described the first electronic equipment of described the first electronic equipment feedback, and pastes respective regions.
In the embodiment of the present invention, whether the data on the first electronic equipment monitoring clipbook change; When the data on this clipbook change, obtain the delta data on this clipbook; When judging this delta data and be not provided with the first sign, generate the change message that this delta data is corresponding; The second electronic equipment to the second electronic equipment being connected by network with the first electronic equipment, sends this change message, so that after receiving change message, can share to the delta data on the clipbook of the first electronic equipment.Visible, in this programme, different electronic equipments can be shared the data on clipbook, thereby has improved the convenience of the data sharing between distinct electronic apparatuses.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The first process flow diagram of a kind of data sharing method that Fig. 1 provides for the embodiment of the present invention;
The second process flow diagram of a kind of data sharing method that Fig. 2 provides for the embodiment of the present invention;
The third process flow diagram of a kind of data sharing method that Fig. 3 provides for the embodiment of the present invention;
The 4th kind of process flow diagram of a kind of data sharing method that Fig. 4 provides for the embodiment of the present invention;
The first structural representation of a kind of data sharing device that Fig. 5 provides for the embodiment of the present invention;
The second structural representation of a kind of data sharing device that Fig. 6 provides for the embodiment of the present invention.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In order to improve the convenience of the data sharing between distinct electronic apparatuses, the embodiment of the present invention provides a kind of data sharing method and device.
First a kind of data sharing method embodiment of the present invention being provided is below introduced.
In order to be described clearly, first from the angle as sharing the first electronic equipment of data originating end, a kind of data sharing method that the embodiment of the present invention is provided is introduced below.
It should be noted that, the data sharing method that the embodiment of the present invention provides is applicable to the first electronic equipment, this first electronic equipment is connected by network with at least one second electronic equipment, and this first electronic equipment and the second electronic equipment can be installed identical operating system or different operating system, this is all reasonable.In actual applications, this first electronic equipment and the 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 distinguishing as sharing the electronic equipment of data originating end and as the electronic equipment of sharing data receiver, not having any limiting meaning from naming.
As shown in Figure 1, a kind of data sharing method, can comprise:
S101, whether the data on the first electronic equipment monitoring clipbook change;
Wherein, whether the data that the first electronic equipment can be monitored on its clipbook change, and then the data on monitoring clipbook are when change, and carry out follow-up data sharing.
It will be appreciated by persons skilled in the art that can be by tackling the mode to the operation of clipbook, and whether the data on monitoring clipbook change; And for the situation that cannot tackle the operation of clipbook, for example, the electronic equipment with IOS operating system (handheld equipment operating system of IOS operating system Shi You Apple exploitation), can be by the mode of Access Clipboard, whether the data of monitoring on this clipbook change, namely according to the continuous Access Clipboard of certain time interval, thereby whether the data on monitoring clipbook change.
S102, when the data on this clipbook change, obtains the delta data on this clipbook;
When the data on monitoring clipbook change, can obtain the delta data on this clipbook, and then carry out follow-up processing.
Wherein, this delta data can comprise: the various forms that can be applicable to clipbook such as text, picture, file.
S103, judges whether this delta data is provided with the first sign, if so, finishes this treatment scheme; Otherwise, execution step S104;
Wherein, whether the first electronic equipment changes and obtains after the delta data on this clipbook in the data that monitor on clipbook, need to judge whether this delta data is provided with the first sign, and in the situation that not being provided with the first sign, continue follow-up data sharing process, thereby improve the validity of data sharing.
Wherein, this first is designated the sign that the delta data on the clipbook of the second electronic equipment receiving by network has.Wherein, this first sign can be set according to practical application scene, therefore not to repeat here, and, this first sign is as just the identification information of delta data, thereby distinguish the delta data on the clipbook bringing due to user's Self-operating, do not affect the actual content of this delta data.
It should be noted that, the first electronic equipment both can be used as shares data originating end, also can be used as data sharing receiving end, therefore, data on clipbook change, may be to cause by the delta data on the clipbook of the second received electronic equipment of network owing to pasting, may be also to cause because user self carries out data manipulation to this first electronic equipment.Wherein, for fear of occurring following problem: the first electronic equipment resends received delta data to this second electronic equipment, and this second electronic equipment sends to again the first electronic equipment after receiving this delta data, cause the most at last by that analogy data sharing process to occur endless loop, therefore, in order to improve the validity of data sharing, share data originating end, to the delta data of sharing data receiver transmission, the first sign is set, and share data receiver, the received delta data that is provided with the first sign is pasted on the clipbook of self, and when received delta data is performed paste operation, remove this first sign, and, after on the clipbook of sharing data receiver the received delta data that is provided with the first sign is pasted self, the data that can monitor on self clipbook change, now, obtain the delta data on this clipbook: the received delta data that is provided with the first sign, and then judge this delta data and be provided with the first sign, thereby without opening, share flow process, finish this flow process.
S104, generates the change message that this delta data is corresponding;
It should be noted that, for the less delta data of data volume, conventionally can be carried in change message, therefore, generating the change message that this delta data is corresponding can comprise: for this delta data arranges the first sign, generate the change message of carrying the delta data that is provided with this first sign; And for data volume compared with for large delta data, because transmission cost is higher, change message can only be carried the communication identifier of this first electronic equipment, to give the second electronic equipment by the condition notification that on the clipbook of the first electronic equipment, data change, to download when the second electronic equipment needs delta data.
Be understandable that, generally, the delta data that data volume is less can be text or picture, and the larger delta data of data volume can be file, certainly, is not limited to this.
And, in actual applications, can set in advance data volume threshold value, now, will higher than the delta data of this data volume, not regard as the data that data volume is less, and will higher than the delta data of this data volume, regard as the data that data volume is larger; Wherein, this data volume threshold value can system carries or user sets voluntarily, and this is all rational; And the data volume threshold value of distinct electronic apparatuses can be identical or different, the data volume threshold value of same electronic equipment can be identical or different under different application scene, and the occurrence of data volume threshold value does not limit at this.
S105, sends this change message to the second electronic equipment, so that the second electronic equipment after receiving this change message, can share to the delta data on the clipbook of this first electronic equipment.
Wherein, after generating change message, can send this change message to this second electronic equipment, thereby make the 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 this first electronic equipment can directly send to the second electronic equipment by this change message for belonging to first electronic equipment and the second electronic equipment of same LAN (Local Area Network); And for first electronic equipment and the second electronic equipment of LAN, can realize the communication between the first electronic equipment and the second electronic equipment by the mode of server-aided, this is all rational.
In the embodiment of the present invention, whether the data on the first electronic equipment monitoring clipbook change; When the data on this clipbook change, obtain the delta data on this clipbook; When judging this delta data and be not provided with the first sign, generate the change message that this delta data is corresponding; The second electronic equipment to the second electronic equipment being connected by network with the first electronic equipment, sends this change message, so that after receiving change message, can share to the delta data on the clipbook of the first electronic equipment.Visible, in this programme, different electronic equipments can be shared the data on clipbook, thereby has improved the convenience of the data sharing between distinct electronic apparatuses.
Further, when change message is carried the communication identifier of the first electronic equipment, when the second electronic equipment needs downloading data, can send download request to this first electronic equipment, and from sharing the angle of data originating end, this data sharing method can also comprise: receive the download request that the second electronic equipment sends; According to this download request, the delta data on this clipbook is fed back to this second electronic equipment.
It should be noted that, this first electronic equipment can be realized network by Socket mode or bluetooth approach with each second electronic equipment and be connected, and is certainly not limited to this.And setting up the mode that the network of first terminal and the second terminal is connected can be the manual set-up mode of user.Further, in order to simplify, set up the step that network connects, the mode that can scan and resolve the figure identification code for network connection shown in this at least one second electronic equipment by this first electronic equipment is set up corresponding network and is connected; Or at least one second electronic equipment scans and resolves in this first electronic equipment the mode of the shown figure identification code connecting for network and sets up corresponding network and connect by this.Wherein, can this figure identification code be arranged on to the first electronic equipment or at least one the second electronic equipment according to concrete application scenarios, this is all rational; And this figure identification code can be Quick Response Code, three-dimensional code etc., and can utilize existing figure identification code generation technique, generates the figure identification code connecting for network in the second electronic equipment, therefore not to repeat here.
Further, in order to guarantee data security, the first electronic equipment and at least one second electronic equipment can carry out authentication before carrying out network connection mutually, take the equipment that the first electronic equipment and this at least one second electronic equipment can be trusted as both sides that guarantees.Wherein, concrete identification authentication mode can adopt prior art, does not repeat them here.
Wherein, between different electronic equipments, realize and share data, can adopt different connected modes.Illustrate:
For mobile phone and PC:
Between mobile phone and PC, can use the mode of scan image identification code to be connected, wherein, PC is upper can show a figure identification code, this figure identification code can comprise IP and the port information of PC, and can learn IP and the port information of this PC after mobile phone photograph, and then be connected on the port of agreement;
For PC and PC:
By IP address and the port numbers of manual input PC, and then be connected to the PC of appointment; Or, by UDP multicast mode, can search out the PC within LAN (Local Area Network);
For mobile phone for mobile phone: the mode that can scan by Quick Response Code is connected;
And a plurality of electronic equipments have formed a network circle, if new electronic equipment need to be connected to this network circle, be first connected with an electronic equipment wherein, from this electronic equipment which can be learnt in addition other electronic equipment, then connect; And between different electronic equipments, keep the long connection of TCP, can carry out at any time two-way communication.
From the angle as sharing the second electronic equipment of data receiver, a kind of data sharing method that the embodiment of the present invention is provided is introduced below.
It should be noted that, the data sharing method that the embodiment of the present invention provides is applicable to the second electronic equipment, this second electronic equipment is connected by network with the first electronic equipment, and this second electronic equipment and the first electronic equipment can be installed identical operating system or different operating system, this is all rational.In actual applications, this first electronic equipment and the 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 distinguishing as sharing the electronic equipment of data originating end and as the electronic equipment of sharing data receiver, not having any limiting meaning from naming.
As shown in Figure 2, a kind of data sharing method, can comprise:
S201, the second electronic equipment receives the change message sending when the data of this first electronic equipment on monitoring clipbook change;
Wherein, when the first electronic equipment monitoring changes to the data on clipbook, obtain the delta data on this clipbook, and the first sign is not set generates afterwards the change message corresponding with this delta data judging this delta data, to the second electronic equipment, send this change message; This second electronic equipment can receive this change message, and then this change message is processed accordingly.
Wherein, this change message can be carried this delta data, or this change message also can be carried the communication identifier of this first electronic equipment.
It should be noted that, for the less delta data of data volume, conventionally can be carried in change message; And for data volume compared with for large delta data, because transmission cost is higher, change message can only be carried the communication identifier of this first electronic equipment, to give the second electronic equipment by the condition notification that on the clipbook of the first electronic equipment, data change, to download when the second electronic equipment needs delta data.
Be understandable that, generally, the delta data that data volume is less can be text or picture, and the larger delta data of data volume can be file, certainly, is not limited to this.
And, in actual applications, can set in advance data volume threshold value, now, will higher than the delta data of this data volume, not regard as the data that data volume is less, and will higher than the delta data of this data volume, regard as the data that data volume is larger; Wherein, this data volume threshold value can system carries or user sets voluntarily, and this is all rational; And the data volume threshold value of distinct electronic apparatuses can be identical or different, the data volume threshold value of same electronic equipment can be identical or different under different application scene, and the occurrence of data volume threshold value does not limit at this.
S202, according to this change message, shares to this second electronic equipment by the delta data on the clipbook of this first electronic equipment.
Be understandable that, when this change message carries the delta data on the clipbook of this first electronic equipment, according to this change message, delta data on the clipbook of this first electronic equipment is shared to this second electronic equipment, can comprise: the delta data on the clipbook of received this first electronic equipment that is provided with the first sign is pasted on the clipbook of self; Wherein, this first is identified at when corresponding delta data is performed paste operation and is removed.
It should be noted that, the second electronic equipment both can be used as shares data originating end, also can be used as data sharing receiving end, therefore, data on clipbook change, may be to cause by the delta data on the clipbook of the first received electronic equipment of network owing to pasting, may be also to cause because user self carries out data manipulation to this second electronic equipment.Therefore, after delta data on the clipbook that receives the first electronic equipment that is provided with the first sign by network, paste on the clipbook of self, now, the data that the second electronic equipment can monitor on self clipbook change, now, obtain the delta data on clipbook, and judge this delta data and be provided with the first sign, show that this causes that the delta data on clipbook receives from network, now without continuing to carry out, share flow process, finish this treatment scheme.
And when this change message carries the communication identifier 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, can comprise:
Preserve the communication identifier of this first electronic equipment;
While carrying out paste operation when not carrying out copy/shearing manipulation, 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 respective regions.
In the embodiment of the present invention, the second electronic equipment receives the change message sending when the data of this first electronic equipment on monitoring clipbook change, according to this change message, the delta data on the clipbook of this first electronic equipment is shared to this second electronic equipment.Visible, in this programme, different electronic equipments can be shared the data on clipbook, thereby has improved the convenience of the data sharing between distinct electronic apparatuses.
Mobile phone A using below as shared data originating end, and the mobile phone B of take is example as shared data receiver, and the data sharing method that the embodiment of the present invention is provided is introduced.
Wherein, in order to be described clearly, first from the angle as sharing the mobile phone A of data originating end, a kind of data sharing method that the embodiment of the present invention is provided is introduced below.
It should be noted that, the data sharing method that the embodiment of the present invention provides is applicable to mobile phone A, and this mobile phone A is connected by network with mobile phone B, and this mobile phone A and this mobile phone B can install identical operating system or different operating system, and this is all rational.And this mobile phone A can be by tackling the mode to the operation of clipbook, whether the data on monitoring clipbook change.
As shown in Figure 3, a kind of data sharing method, can comprise:
S301, mobile phone A is the mode to the operation of clipbook by interception, and whether the data on monitoring clipbook change;
S302, when the data on this clipbook change, obtains the first text as delta data on this clipbook;
Wherein, user copies the data manipulation of the first text to mobile phone A self, causes the data on clipbook to change, and now, the data that mobile phone A can monitor on this clipbook change, and then the delta data obtaining on this clipbook is the first text.
S303, judges this first text and is not provided with the first sign;
Because user copies the data manipulation of the first text to mobile phone A self, cause the data on clipbook to change, and be not the delta data that another electronic equipment of receiving sends, therefore, this first text is not provided with the first sign.
S304, judges the data volume of this first text lower than predetermined threshold value;
S305, for this first text arranges the first sign;
S306, generates the change message of carrying the first text that is provided with this first sign;
Wherein, because the data volume of judging this first text is lower than predetermined threshold value, therefore, can generate the change message of carrying this first text, wherein, the change message that this first text is carried in generation can comprise: for this first text arranges the first sign, generate the change message of carrying the first text that is provided with this first sign.
S307, sends this change message to mobile phone B, so that mobile phone B after receiving this change message, can share to the first text on the clipbook of this mobile phone A.
Visible, in this programme, mobile phone A and mobile phone B can be shared the data on clipbook, thereby have improved the convenience of the data sharing between distinct electronic apparatuses.
From the angle as sharing the mobile phone B of data receiver, a kind of data sharing method that the embodiment of the present invention is provided is introduced below.
It should be noted that, the data sharing method that the embodiment of the present invention provides is applicable to mobile phone B, and this mobile phone B is connected by network with mobile phone A, and this mobile phone B and this mobile phone A can install identical operating system or different operating system, and this is all rational.
As shown in Figure 4, a kind of data sharing method, can comprise:
S401, mobile phone B receives the change message sending when the data of this mobile phone A on monitoring clipbook change, and wherein, carries the first text that is provided with the first sign in this change message;
Wherein, when mobile phone A monitors data on clipbook and changes, obtain the first text as delta data on this clipbook, and be not provided with after the first sign judging this first text, judge the data volume of this first text lower than predetermined threshold value, and then generate the change message of carrying this first text that is provided with the first sign, to mobile phone B, send this change message; This mobile phone B can receive this change message, and then this change message is processed accordingly.
S402, pastes the delta data on the clipbook of the received mobile phone A that is provided with the first sign on the clipbook of self.
Wherein, mobile phone B receives after the change message sending when the data of this mobile phone A on monitoring clipbook change, delta data on the clipbook of the received mobile phone A that is provided with the first sign is pasted on the clipbook of self, thereby realized, the first text as delta data on the clipbook of mobile phone A is shared in this mobile phone B.It should be noted that, this first is identified at when corresponding delta data is performed paste operation and is removed.
Visible, in this programme, mobile phone A and mobile phone B can be shared the data on clipbook, thereby have improved the convenience of the data sharing between distinct electronic apparatuses.
Corresponding to the corresponding data sharing method of shared data originating end, the embodiment of the present invention provides a kind of data sharing device, be applicable to the first electronic equipment, described the first electronic equipment is connected by network with at least one second electronic equipment, as shown in Figure 5, described data sharing device can comprise:
Whether monitoring modular 510, change for the data of monitoring on clipbook;
Delta data obtains module 520, while changing for the data on described clipbook, obtains the delta data on described clipbook;
Judge module 530, for judging whether described delta data is provided with the first sign; Wherein, described first be designated the sign that the delta data on the clipbook of described the second electronic equipment receiving by network has;
Change message generation module 540, while not being provided with the first sign for judging described delta data when described judge module, generates the change message that described delta data is corresponding;
Change message sending module 550, for sending described change message to described the second electronic equipment, so that described the second electronic equipment after receiving described change message, can share to the delta data on the clipbook of described the first electronic equipment.
In the embodiment of the present invention, whether the data on the first electronic equipment monitoring clipbook change; When the data on this clipbook change, obtain the delta data on this clipbook; When judging this delta data and be not provided with the first sign, generate the change message that this delta data is corresponding; The second electronic equipment to the second electronic equipment being connected by network with the first electronic equipment, sends this change message, so that after receiving change message, can share to the delta data on the clipbook of the first electronic equipment.Visible, in this programme, different electronic equipments can be shared the data on clipbook, thereby has improved the convenience of the data sharing between distinct electronic apparatuses.
Wherein, described monitoring modular 510, can comprise: the first monitoring means, for the mode to the operation of clipbook by interception, whether the data on monitoring clipbook change.
Wherein, described monitoring modular 510, can comprise: the second monitoring means, for by the mode of Access Clipboard, whether the data of monitoring on described clipbook change.
Wherein, described change message generation module 540, comprising:
Sign setting unit, is used to described delta data that the first sign is set;
Change message generation unit, for generating the change message of carrying the delta data that is provided with described the first sign.
Wherein, the change message that described change message generation module 540 generates is carried the communication identifier of described the first electronic equipment.
Further, data sharing device shown in can also comprise:
Download request receiver module, the download request sending for receiving described the second electronic equipment; Wherein, described download request is for described the second electronic equipment is when carrying out copy/shearing manipulation and carry out paste operation, the request sending to described the first electronic equipment by described communication identifier;
Delta data feedback module, for according to described download request, feeds back to described the second electronic equipment by the delta data on described clipbook.
Corresponding to the corresponding data sharing method of shared data receiver, the embodiment of the present invention also provides a kind of data sharing device, is applicable to the second electronic equipment, and described the second electronic equipment is connected by network with the first electronic equipment, as shown in Figure 6, described data sharing device can comprise:
Change message receiver module 610, for receiving the change message sending when the data of described the first electronic equipment on monitoring clipbook change;
Change message processing module 620, for according to described change message, shares to described the second electronic equipment by the delta data on the clipbook of described the first electronic equipment.
In the embodiment of the present invention, the second electronic equipment receives the change message sending when the data of this first electronic equipment on monitoring clipbook change, according to this change message, the delta data on the clipbook of this first electronic equipment is shared to this second electronic equipment.Visible, in this programme, different electronic equipments can be shared the data on clipbook, thereby has improved the convenience of the data sharing between distinct electronic apparatuses.
Wherein, described change message receiver module 610 receives change message and carries the delta data on the clipbook of described the first electronic equipment;
Described change message processing module 620, can comprise:
Change message processing unit, for pasting the delta data on the clipbook of received described the first electronic equipment that is provided with the first sign the clipbook of self; Wherein, described first be identified at when corresponding delta data is performed paste operation and be removed.
Wherein, described change message receiver module 610 receives the communication identifier that change message is carried described the first electronic equipment;
Described change message processing module 620, can comprise:
Communication identifier record cell, for preserving the communication identifier of described the first electronic equipment;
Download request transmitting element, while carrying out paste operation for do not copy when carrying out/shearing manipulation, sends download request by described communication identifier to described the first electronic equipment;
Delta data receiving element, for receiving the delta data on the clipbook of described the first electronic equipment of described the first electronic equipment feedback, and pastes respective regions.
For device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment is to come the hardware that instruction is relevant to complete by program, described program can be stored in computer read/write memory medium, here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (19)

1. a data sharing method, is characterized in that, is applicable to the first electronic equipment, and described the first electronic equipment is connected by network with at least one second electronic equipment, and described method comprises:
Whether the data on monitoring clipbook change;
When the data on described clipbook change, obtain the delta data on described clipbook;
Judge whether described delta data is provided with the first sign; Wherein, described first be designated the sign that the delta data on the clipbook of described the second electronic equipment receiving by network has; When judging described delta data and be not provided with the first sign, generate the change message that described delta data is corresponding;
Described the second electronic equipment to described the second electronic equipment, sends described change message, so that after receiving described change message, can share to the delta data on the clipbook of described the first electronic equipment.
2. method according to claim 1, is characterized in that, the mode by interception to the operation of clipbook, and whether the data of monitoring on described clipbook change.
3. method according to claim 1, is characterized in that, by the mode of Access Clipboard, whether the data of monitoring on described clipbook change.
4. according to the method described in claim 1-3 any one, it is characterized in that, generate the change message that described delta data is corresponding, comprising:
For described delta data arranges the first sign;
The change message of the delta data that is provided with described the first sign is carried in generation.
5. according to the method described in claim 1-3 any one, it is characterized in that, described change message is carried the communication identifier of described the first electronic equipment.
6. method according to claim 5, is characterized in that, also comprises:
Receive the download request that described the second electronic equipment sends; Wherein, described download request is for described the second electronic equipment is when carrying out copy/shearing manipulation and carry out paste operation, the request sending to described the first electronic equipment by described communication identifier;
According to described download request, the delta data on described clipbook is fed back to described the second electronic equipment.
7. according to the method described in claim 1-3 any one, it is characterized in that, the mode that scans and resolve the figure identification code connecting for network shown in described at least one second electronic equipment by described the first electronic equipment is set up corresponding network and is connected; Or, by described at least one second electronic equipment, scan and resolve in described the first electronic equipment the mode of the shown figure identification code connecting for network and set up corresponding network and connect.
8. a data sharing method, is characterized in that, is applicable to the second electronic equipment, and described the second electronic equipment is connected by network with the first electronic equipment, and described method comprises:
Receive the change message sending when the data of described the first electronic equipment on monitoring clipbook change;
According to described change message, the delta data on the clipbook of described the first electronic equipment is shared to described the second electronic equipment.
9. method according to claim 8, is characterized in that, described change message is carried the delta data on the clipbook of described the first electronic equipment that is provided with the first sign;
Accordingly, according to described change message, the delta data on the clipbook of described the first electronic equipment is shared to described the second electronic equipment, comprising:
Delta data on the clipbook of received described the first electronic equipment that is provided with the first sign is pasted on the clipbook of self; Wherein, described first be identified at when corresponding delta data is performed paste operation and be removed.
10. method according to claim 8, is characterized in that, described change message is carried the communication identifier of described the first electronic equipment;
Accordingly, according to described change message, the delta data on the clipbook of described the first electronic equipment is shared to described the second electronic equipment, comprising:
Preserve the communication identifier of described the first electronic equipment;
While carrying out paste operation when not carrying out copy/shearing manipulation, by described communication identifier, to described the first electronic equipment, send download request;
Receive the delta data on the clipbook of described the first electronic equipment of described the first electronic equipment feedback, and paste respective regions.
11. 1 kinds of data sharing devices, is characterized in that, are applicable to the first electronic equipment, and described the first electronic equipment is connected by network with at least one second electronic equipment, and described data sharing device comprises:
Whether monitoring modular, change for the data of monitoring on clipbook;
Delta data obtains module, while changing for the data on described clipbook, obtains the delta data on described clipbook;
Judge module, for judging whether described delta data is provided with the first sign; Wherein, described first be designated the sign that the delta data on the clipbook of described the second electronic equipment receiving by network has; Change message generation module, while not being provided with the first sign for judging described delta data when described judge module, generates the change message that described delta data is corresponding;
Change message sending module, for sending described change message to described the second electronic equipment, so that described the second electronic equipment after receiving described change message, can share to the delta data on the clipbook of described the first electronic equipment.
12. devices according to claim 11, is characterized in that, described monitoring modular, comprising: the first monitoring means, for the mode to the operation of clipbook by interception, whether the data of monitoring on described clipbook change.
13. devices according to claim 11, is characterized in that, described monitoring modular, comprising: the second monitoring means, for by the mode of Access Clipboard, whether the data of monitoring on described clipbook change.
14. according to the device described in claim 11-13 any one, it is characterized in that, described change message generation module, comprising:
Sign setting unit, is used to described delta data that the first sign is set;
Change message generation unit, for generating the change message of carrying the delta data that is provided with described the first sign.
15. according to the device described in claim 11-13 any one, it is characterized in that, the change message that described change message generation module generates is carried the communication identifier of described the first electronic equipment.
16. devices according to claim 15, is characterized in that, also comprise:
Download request receiver module, the download request sending for receiving described the second electronic equipment; Wherein, described download request is for described the second electronic equipment is when carrying out copy/shearing manipulation and carry out paste operation, the request sending to described the first electronic equipment by described communication identifier;
Delta data feedback module, for according to described download request, feeds back to described the second electronic equipment by the delta data on described clipbook.
17. 1 kinds of data sharing devices, is characterized in that, are applicable to the second electronic equipment, and described the second electronic equipment is connected by network with the first electronic equipment, and described device comprises:
Change message receiver module, for receiving the change message sending when the data of described the first electronic equipment on monitoring clipbook change;
Change message processing module, for according to described change message, shares to described the second electronic equipment by the delta data on the clipbook of described the first electronic equipment.
18. devices according to claim 17, is characterized in that, described change message receiver module receives change message and carries the delta data on the clipbook of described the first electronic equipment that is provided with the first sign;
Described change message processing module, comprising:
Change message processing unit, for pasting the delta data on the clipbook of received described the first electronic equipment that is provided with the first sign the clipbook of self; Wherein, described first be identified at when corresponding delta data is performed paste operation and be removed.
19. devices according to claim 17, is characterized in that, described change message receiver module receives the communication identifier that change message is carried described the first electronic equipment;
Described change message processing module, comprising:
Communication identifier record cell, for preserving the communication identifier of described the first electronic equipment;
Download request transmitting element, while carrying out paste operation for do not copy when carrying out/shearing manipulation, sends download request by described communication identifier to described the first electronic equipment;
Delta data receiving element, for receiving the delta data on the clipbook of described the first electronic equipment of described the first electronic equipment feedback, and pastes 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 true CN103530342A (en) 2014-01-22
CN103530342B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018032699A1 (en) * 2016-08-17 2018-02-22 广州视睿电子科技有限公司 Methods and apparatuses for data extraction and pasting, and system thereof
CN111511045A (en) * 2020-04-10 2020-08-07 玳能科技(杭州)有限公司 Interaction method and device of mobile terminal and computer, electronic equipment and storage medium
CN115550497A (en) * 2022-01-05 2022-12-30 荣耀终端有限公司 Message cooperation method and device

Citations (5)

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

Patent Citations (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
CN102521018A (en) * 2010-10-14 2012-06-27 微软公司 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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018032699A1 (en) * 2016-08-17 2018-02-22 广州视睿电子科技有限公司 Methods and apparatuses for data extraction and pasting, and system thereof
CN111511045A (en) * 2020-04-10 2020-08-07 玳能科技(杭州)有限公司 Interaction method and device of mobile terminal and computer, electronic equipment and storage medium
CN111511045B (en) * 2020-04-10 2023-06-02 玳能科技(杭州)有限公司 Interaction method and device for mobile terminal and computer, electronic equipment and storage medium
CN115550497A (en) * 2022-01-05 2022-12-30 荣耀终端有限公司 Message cooperation method and device

Also Published As

Publication number Publication date
CN103530342B (en) 2017-01-18

Similar Documents

Publication Publication Date Title
US11611863B2 (en) Method and apparatus for low energy discovery
CN102685210B (en) Wireless routing equipment, mobile terminal, management system and method
CN102891890B (en) Exchange method between a kind of terminal and relevant device, system
CN110121902B (en) Communication establishment method and terminal
CN103220822B (en) Data transmission method, device and mobile terminal
CN113395687B (en) Reconnection method, reconnection device, electronic equipment and storage medium
CN104735607A (en) Data transmission method, mobile terminal and system
CN114697879B (en) Bluetooth pairing method, electronic device, chip and storage medium
CN104159259A (en) A wireless communication method and a wireless communication apparatus
CN108280020B (en) Monitoring method and device of computer equipment, terminal and computer storage medium
CN104348697A (en) Video communication information processing method, device and system
CN102724334A (en) Notification and acquisition method, device and system for address information change in digital living network alliance (DLNA)
CN110324193A (en) A kind of terminal upgrade management method and device
CN103873592A (en) Data transmission method and system
CN106850554B (en) Method and device for dual-system directional connection
CN105978606B (en) Bluetooth equipment remote communication method, bluetooth equipment and client
CN103530342A (en) Method and device for sharing data
CN103561063A (en) Method and terminal for logging onto set top box
CN103561088A (en) Remote control method and device based on account number log-in
CN110022323A (en) A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
CN104202432B (en) Remote web management system and management method
CN106657076B (en) TCP service implementation method and device for network name space
CN103795856A (en) Information processing method and electronic device
CN105451367A (en) Wireless network connection method, device and system
KR101669267B1 (en) A method and a system for establishing a communication channel between a predetermined number of selected devices and a device and a server arranged for use in the system

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