[go: up one dir, main page]

CN105791347A - A data transmission method and device - Google Patents

A data transmission method and device Download PDF

Info

Publication number
CN105791347A
CN105791347A CN201410809229.XA CN201410809229A CN105791347A CN 105791347 A CN105791347 A CN 105791347A CN 201410809229 A CN201410809229 A CN 201410809229A CN 105791347 A CN105791347 A CN 105791347A
Authority
CN
China
Prior art keywords
electronic equipment
target data
memory space
electronic device
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.)
Pending
Application number
CN201410809229.XA
Other languages
Chinese (zh)
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 Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201410809229.XA priority Critical patent/CN105791347A/en
Publication of CN105791347A publication Critical patent/CN105791347A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a data transmission method and device. The method and the device are applied in a first electronic device. The first electronic device is in communication connection with a second electronic device. Storage spaces for storing copied or sheared data are preset in the first electronic device and the second electronic device. The first electronic device receives a copy instruction or a shear instruction of a user specific to target data. The target data is stored in the storage space of a local electronic device according to the copy instruction or the shear instruction. The target data stored in the storage space of the local electronic device is synchronized to the storage space in the second electronic device. Through application of the embodiment of the invention, the data copied or sheared on one electronic device can be pasted and applied in another electronic device.

Description

一种数据传输方法及装置A data transmission method and device

技术领域technical field

本发明涉及数据传输领域,特别涉及一种数据传输方法及装置。The invention relates to the field of data transmission, in particular to a data transmission method and device.

背景技术Background technique

目前,复制、剪切和粘贴操作已被广泛应用于文档编辑中,例如:在用户利用某文档编辑软件进行文档编辑时,可以将文档中的全部或部分内容进行复制或剪切,将复制或剪切的内容粘贴到该文档编辑软件打开的文档中或其他文档编辑软件打开的文档中。At present, copy, cut and paste operations have been widely used in document editing. For example, when a user uses a certain document editing software to edit a document, he can copy or cut all or part of the content in the document, and copy or The cut content is pasted into the document opened by the document editing software or into the document opened by other document editing software.

但是,上述复制或剪切的数据只能被应用于同一电子设备上的同一文档或不同文档中,而不能被应用于不同电子设备上的文档中。However, the above copied or cut data can only be applied to the same document or different documents on the same electronic device, but not to documents on different electronic devices.

发明内容Contents of the invention

本发明实施例的目的在于提供一种数据传输方法及装置,以使在一台电子设备上复制或剪切的数据可以在另一台电子设备上进行粘贴应用。The purpose of the embodiments of the present invention is to provide a data transmission method and device, so that data copied or cut on one electronic device can be pasted and applied on another electronic device.

为达到上述目的,本发明实施例公开了一种数据传输方法,应用于第一电子设备,所述第一电子设备与第二电子设备通信连接,所述第一电子设备和所述第二电子设备中预先设置有用于存储复制或剪切的数据的存储空间;所述方法包括:In order to achieve the above purpose, the embodiment of the present invention discloses a data transmission method, which is applied to a first electronic device, the first electronic device communicates with a second electronic device, and the first electronic device and the second electronic device A storage space for storing copied or cut data is preset in the device; the method includes:

接收用户针对目标数据的复制指令或剪切指令;Receive the user's copy instruction or cut instruction for the target data;

根据所述复制指令或所述剪切指令,将所述目标数据存储在本地电子设备的存储空间中;storing the target data in the storage space of the local electronic device according to the copy instruction or the cut instruction;

将存储在本地电子设备的存储空间中的目标数据同步到所述第二电子设备中的存储空间中。Synchronizing the target data stored in the storage space of the local electronic device to the storage space of the second electronic device.

较佳的,所述将存储在本地电子设备的存储空间中的目标数据同步到所述第二电子设备中的存储空间中,包括:Preferably, the synchronizing the target data stored in the storage space of the local electronic device to the storage space of the second electronic device includes:

将存储在本地电子设备的存储空间中的目标数据进行压缩编码,将编码后的目标数据发送给所述第二电子设备,以使所述第二电子设备在接收到编码后的目标数据后,对编码后的目标数据进行解码,将解码后的数据存储在所述第二电子设备的存储空间中。compressing and encoding the target data stored in the storage space of the local electronic device, and sending the encoded target data to the second electronic device, so that after the second electronic device receives the encoded target data, Decoding the encoded target data, and storing the decoded data in the storage space of the second electronic device.

较佳的,所述将存储在本地电子设备的存储空间中的目标数据进行压缩编码,包括:Preferably, said compressing and encoding the target data stored in the storage space of the local electronic device includes:

将存储在本地电子设备的存储空间中的目标数据以XML编码格式进行压缩编码。The target data stored in the storage space of the local electronic device is compressed and encoded in an XML encoding format.

较佳的,所述第一电子设备与服务器通信连接,所述服务器中预先设置有用于存储复制或剪切的数据的存储空间;所述方法还包括:Preferably, the first electronic device is communicatively connected to a server, and a storage space for storing copied or cut data is preset in the server; the method further includes:

将存储在本地电子设备的存储空间中的目标数据同步到所述服务器中的存储空间中,以使所述服务器将存储在所述服务器的存储空间中的目标数据同步到:与所述服务器通信连接的其他电子设备中的用于存储复制或剪切的数据的存储空间。synchronizing the target data stored in the storage space of the local electronic device to the storage space of the server, so that the server synchronizes the target data stored in the storage space of the server to: communicate with the server Storage space in other connected electronic devices for storing copied or cut data.

为达到上述目的,本发明实施例公开了一种数据传输装置,应用于第一电子设备,所述第一电子设备与第二电子设备通信连接,所述第一电子设备和所述第二电子设备中预先设置有用于存储复制或剪切的数据的存储空间;所述装置包括:指令接收模块、存储模块和第一同步模块,其中,In order to achieve the above purpose, the embodiment of the present invention discloses a data transmission device, which is applied to a first electronic device, the first electronic device communicates with a second electronic device, and the first electronic device and the second electronic device A storage space for storing copied or cut data is preset in the device; the device includes: an instruction receiving module, a storage module and a first synchronization module, wherein,

所述指令接收模块,用于接收用户针对目标数据的复制指令或剪切指令;The instruction receiving module is configured to receive a user's copy instruction or cut instruction for the target data;

所述存储模块,用于根据所述指令接收模块接收到的指令,将所述目标数据存储在本地电子设备的存储空间中;The storage module is configured to store the target data in the storage space of the local electronic device according to the instruction received by the instruction receiving module;

所述第一同步模块,用于将存储在本地电子设备的存储空间中的目标数据同步到所述第二电子设备中的存储空间中。The first synchronization module is configured to synchronize the target data stored in the storage space of the local electronic device to the storage space of the second electronic device.

较佳的,所述第一同步模块,具体用于:Preferably, the first synchronization module is specifically used for:

将存储在本地电子设备的存储空间中的目标数据进行压缩编码,将编码后的目标数据发送给所述第二电子设备,以使所述第二电子设备在接收到编码后的目标数据后,对编码后的目标数据进行解码,将解码后的数据存储在所述第二电子设备的存储空间中。compressing and encoding the target data stored in the storage space of the local electronic device, and sending the encoded target data to the second electronic device, so that after the second electronic device receives the encoded target data, Decoding the encoded target data, and storing the decoded data in the storage space of the second electronic device.

较佳的,所述将存储在本地电子设备的存储空间中的目标数据进行压缩编码,包括:Preferably, said compressing and encoding the target data stored in the storage space of the local electronic device includes:

将存储在本地电子设备的存储空间中的目标数据以XML编码格式进行压缩编码。The target data stored in the storage space of the local electronic device is compressed and encoded in an XML encoding format.

较佳的,所述第一电子设备与服务器通信连接,所述服务器中预先设置有用于存储复制或剪切的数据的存储空间;所述装置还包括:第二同步模块,其中,Preferably, the first electronic device is communicatively connected to a server, and a storage space for storing copied or cut data is preset in the server; the device further includes: a second synchronization module, wherein,

所述第二同步模块,用于将存储在本地电子设备的存储空间中的目标数据同步到所述服务器中的存储空间中,以使所述服务器将存储在所述服务器的存储空间中的目标数据同步到:与所述服务器通信连接的其他电子设备中的用于存储复制或剪切的数据的存储空间。The second synchronization module is configured to synchronize the target data stored in the storage space of the local electronic device to the storage space of the server, so that the server will store the target data stored in the storage space of the server The data is synchronized to: a storage space for storing copied or cut data in other electronic devices communicatively connected to the server.

由上述的技术方案可见,本发明实施例提供了一种数据传输方法及装置,应用于第一电子设备,第一电子设备与第二电子设备通信连接,第一电子设备中预先设置有用于存储复制或剪切的数据的存储空间;第一电子设备接收用户针对目标数据的复制指令或剪切指令;根据所述复制指令或所述剪切指令,将所述目标数据存储在所述存储空间中;将存储在所述存储空间中的目标数据同步到所述第二电子设备中用于存储复制或剪切的数据的存储空间中。在一台电子设备上复制或剪切的数据可以在另一台电子设备上进行粘贴应用。It can be seen from the above technical solutions that the embodiments of the present invention provide a data transmission method and device, which are applied to the first electronic device, the first electronic device is connected to the second electronic device in communication, and the first electronic device is pre-set for storing A storage space for copied or cut data; the first electronic device receives a user's copy instruction or cut instruction for the target data; according to the copy instruction or the cut instruction, store the target data in the storage space In; synchronizing the target data stored in the storage space to the storage space used to store copied or cut data in the second electronic device. Data copied or cut on one electronic device can be pasted and applied on another electronic device.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例提供的应用于第一电子设备的数据传输方法的第一种流程示意图;FIG. 1 is a first schematic flowchart of a data transmission method applied to a first electronic device provided by an embodiment of the present invention;

图2为本发明实施例提供的应用于第一电子设备的数据传输方法的第二种流程示意图;FIG. 2 is a second schematic flowchart of a data transmission method applied to a first electronic device provided by an embodiment of the present invention;

图3为本发明实施例提供的应用于第一电子设备的数据传输装置的第一种结构示意图;FIG. 3 is a first structural schematic diagram of a data transmission device applied to a first electronic device provided by an embodiment of the present invention;

图4为本发明实施例提供的应用于第一电子设备的数据传输装置的第二种结构示意图。FIG. 4 is a schematic diagram of a second structure of a data transmission device applied to a first electronic device provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

下面通过具体实施例,对本发明进行详细说明。The present invention will be described in detail below through specific examples.

图1为本发明实施例提供的应用于第一电子设备的数据传输方法的第一种流程示意图,第一电子设备与第二电子设备通信连接,第一电子设备和第二电子设备中预先设置有用于存储复制或剪切的数据的存储空间;应用于第一电子设备的数据传输方法可以包括:Fig. 1 is a schematic flow chart of the first data transmission method applied to the first electronic device provided by the embodiment of the present invention, the first electronic device communicates with the second electronic device, and the first electronic device and the second electronic device are preset There is a storage space for storing copied or cut data; the data transmission method applied to the first electronic device may include:

S101:接收用户针对目标数据的复制指令或剪切指令;S101: Receive a user's copy instruction or cut instruction for the target data;

S102:根据所述复制指令或所述剪切指令,将所述目标数据存储在本地电子设备的存储空间中;S102: According to the copy instruction or the cut instruction, store the target data in the storage space of the local electronic device;

S103:将存储在本地电子设备的存储空间中的目标数据同步到所述第二电子设备中的存储空间中。S103: Synchronize the target data stored in the storage space of the local electronic device to the storage space of the second electronic device.

示例性的,假设用户当前使用手机中的某款文字编辑软件打开一篇文档,该文档中包含5段文字内容;用户复制或剪切该文档中的第二段文字内容,则手机此时接收到针对该文档中第二段文字内容的复制指令或剪切指令,将该文档的第二段文字内容存储在手机中用于存储复制或剪切的数据的存储空间中,然后将存储在手机中的、用于存储复制或剪切的数据的存储空间中的数据同步到:与该手机通信连接的其他设备(例如电脑、其他手机)中的、用于存储复制或剪切的数据的存储空间中,此时,与该手机通信连接的其他设备中的、用于存储复制或剪切的数据的存储空间中存储有该手机复制或剪切的数据,其他设备可以调用存储在自身设备中用于存储复制或剪切的数据的存储空间中的数据进行粘贴应用,例如,其他设备将该数据粘贴到记事本中等等。As an example, assume that the user is currently using a text editing software on the mobile phone to open a document, and the document contains 5 paragraphs of text; the user copies or cuts the second paragraph of text in the document, and the mobile phone receives To the copy command or cut command for the second paragraph of text content in the document, store the second paragraph of text content in the mobile phone in the storage space used to store the copied or cut data, and then store it in the mobile phone The data in the storage space used to store copied or cut data in the mobile phone is synchronized to: the storage space used to store copied or cut data in other devices (such as computers and other mobile phones) connected to the mobile phone in communication At this time, the data copied or cut by the mobile phone is stored in the storage space of other devices connected to the mobile phone for storing copied or cut data, and other devices can call the data stored in their own devices. The data in the storage space used to store the copied or cut data is pasted, for example, other devices paste the data into Notepad and so on.

在实际应用中,为了节省带宽资源和数据传输时间,可以将存储在本地电子设备的存储空间中的目标数据进行压缩编码,将编码后的目标数据发送给与本地电子设备通信连接的其他设备,与本地电子设备通信连接的其他设备在接收到压缩编码后目标数据后,对编码后的目标数据进行解码,将解码后的数据存储在自身电子设备的用于存储复制或剪切的数据的存储空间中。In practical applications, in order to save bandwidth resources and data transmission time, the target data stored in the storage space of the local electronic device can be compressed and encoded, and the encoded target data can be sent to other devices connected to the local electronic device for communication. After receiving the compressed and encoded target data, other devices connected to the local electronic device will decode the encoded target data, and store the decoded data in the storage of the own electronic device for storing copied or cut data. in space.

在实际应用中,可以采用XML编码格式,将存储在本地电子设备的存储空间中的目标数据进行压缩编码。In practical applications, the target data stored in the storage space of the local electronic device may be compressed and encoded by using the XML encoding format.

需要说明的是,上述以在手机中复制或剪切数据,在其他电子设备中粘贴所复制或剪切的数据,仅为一具体实例,并不构成对本发明的限定。It should be noted that the above method of copying or cutting data in the mobile phone and pasting the copied or cut data in other electronic devices is only a specific example and does not constitute a limitation of the present invention.

应用本发明图1所示实施例,在一台电子设备上复制或剪切的数据可以在另一台电子设备上进行粘贴应用。By applying the embodiment shown in FIG. 1 of the present invention, the data copied or cut on one electronic device can be pasted and applied on another electronic device.

图2为本发明实施例提供的应用于第一电子设备的数据传输方法的第二种流程示意图,本发明图2所示实施例在图1所示实施例的基础上,增加S104:将存储在本地电子设备的存储空间中的目标数据进行压缩编码,将编码后的目标数据发送给所述第二电子设备。Fig. 2 is a schematic flowchart of the second data transmission method applied to the first electronic device provided by the embodiment of the present invention. The embodiment shown in Fig. 2 of the present invention is based on the embodiment shown in Fig. 1, adding S104: storing The target data in the storage space of the local electronic device is compressed and encoded, and the encoded target data is sent to the second electronic device.

示例性的,假设手机A与手机B通信连接、手机A和服务器通信连接、手机C和服务器通信连接,手机A在将复制或剪切的数据同步到手机B的存储空间中的同时,将复制或剪切的数据同步到服务器中的存储空间中,服务器将存储在本地存储空间中的数据同步到手机C中的用于存储复制或剪切的数据的存储空间中,此时手机C虽然未与手机A通信连接,但手机C可以从服务器中获得手机A复制或剪切的数据,将复制或剪切的数据在手机C中进行粘贴应用。Exemplarily, assuming that mobile phone A communicates with mobile phone B, mobile phone A communicates with the server, and mobile phone C communicates with the server, while mobile phone A synchronizes the copied or cut data to the storage space of mobile phone B, it will copy or cut data is synchronized to the storage space in the server, and the server synchronizes the data stored in the local storage space to the storage space used to store the copied or cut data in mobile phone C. At this time, although mobile phone C is not Communication connection with mobile phone A, but mobile phone C can obtain the data copied or cut by mobile phone A from the server, and paste the copied or cut data in mobile phone C for application.

应用本发明图2所示实施例,在有其他设备未与第一电子设备通信连接的情况下,第一电子设备可以将复制或剪切的数据上传到服务器中进行存储,其他电子设备在和服务器通信连接的情况下,也可以从服务器中获得第一电子设备复制或剪切的数据,将复制或剪切的数据在设备中进行粘贴应用。Applying the embodiment shown in FIG. 2 of the present invention, in the case that other devices are not connected to the first electronic device, the first electronic device can upload the copied or cut data to the server for storage, and other electronic devices can communicate with the first electronic device. In the case of a communication connection with the server, the data copied or cut by the first electronic device may also be obtained from the server, and the copied or cut data may be pasted and applied in the device.

与上述的方法实施例相对应,本发明实施例还提供了应用于第一电子设备的数据传输装置。Corresponding to the foregoing method embodiments, the embodiments of the present invention further provide a data transmission apparatus applied to the first electronic device.

图3为本发明实施例提供的应用于第一电子设备的数据传输装置的第一种结构示意图,第一电子设备与第二电子设备通信连接,第一电子设备和第二电子设备中预先设置有用于存储复制或剪切的数据的存储空间;应用于第一电子设备的数据传输装置可以包括:指令接收模块201、存储模块202和第一同步模块203,其中,Fig. 3 is a schematic diagram of the first structure of the data transmission device applied to the first electronic device provided by the embodiment of the present invention, the first electronic device is connected to the second electronic device in communication, and the first electronic device and the second electronic device are preset There is a storage space for storing copied or cut data; the data transmission device applied to the first electronic device may include: an instruction receiving module 201, a storage module 202 and a first synchronization module 203, wherein,

指令接收模块201,用于接收用户针对目标数据的复制指令或剪切指令;An instruction receiving module 201, configured to receive a user's copy instruction or cut instruction for the target data;

存储模块202,用于根据所述指令接收模块201接收到的指令,将所述目标数据存储在本地电子设备的存储空间中;The storage module 202 is configured to store the target data in the storage space of the local electronic device according to the instruction received by the instruction receiving module 201;

第一同步模块203,用于将存储在本地电子设备的存储空间中的目标数据同步到所述第二电子设备中的存储空间中。The first synchronization module 203 is configured to synchronize the target data stored in the storage space of the local electronic device to the storage space of the second electronic device.

在实际应用中,本发明实施例的第一同步模块,具体可以用于:In practical applications, the first synchronization module in the embodiment of the present invention can specifically be used for:

将存储在本地电子设备的存储空间中的目标数据进行压缩编码,将编码后的目标数据发送给所述第二电子设备,以使所述第二电子设备在接收到编码后的目标数据后,对编码后的目标数据进行解码,将解码后的数据存储在所述第二电子设备的存储空间中。compressing and encoding the target data stored in the storage space of the local electronic device, and sending the encoded target data to the second electronic device, so that after the second electronic device receives the encoded target data, Decoding the encoded target data, and storing the decoded data in the storage space of the second electronic device.

在实际应用中,可以采用XML编码格式,将存储在本地电子设备的存储空间中的目标数据进行压缩编码。In practical applications, the target data stored in the storage space of the local electronic device may be compressed and encoded by using the XML encoding format.

应用本发明图3所示实施例,在一台电子设备上复制或剪切的数据可以在另一台电子设备上进行粘贴应用。By applying the embodiment shown in FIG. 3 of the present invention, the data copied or cut on one electronic device can be pasted and applied on another electronic device.

图4为本发明实施例提供的应用于第一电子设备的数据传输装置的第二种结构示意图,第一电子设备与服务器通信连接,服务器中预先设置有用于存储复制或剪切的数据的存储空间;本发明图4所示实施例在图3所示实施例的基础上,增加第二同步模块204,其中,Fig. 4 is a schematic diagram of the second structure of the data transmission device applied to the first electronic device provided by the embodiment of the present invention. The first electronic device is connected to the server in communication, and the server is preset with a storage device for storing copied or cut data. Space; the embodiment shown in FIG. 4 of the present invention is based on the embodiment shown in FIG. 3 , adding a second synchronization module 204, wherein,

第二同步模块204,用于将存储在本地电子设备的存储空间中的目标数据同步到所述服务器中的存储空间中,以使所述服务器将存储在所述服务器的存储空间中的目标数据同步到:与所述服务器通信连接的其他电子设备中的用于存储复制或剪切的数据的存储空间。The second synchronization module 204 is configured to synchronize the target data stored in the storage space of the local electronic device to the storage space of the server, so that the server will store the target data in the storage space of the server Synchronize to: the storage space used to store copied or cut data in other electronic devices that are communicatively connected to the server.

应用本发明图4所示实施例,在有其他设备未与第一电子设备通信连接的情况下,第一电子设备可以将复制或剪切的数据上传到服务器中进行存储,其他电子设备在和服务器通信连接的情况下,也可以从服务器中获得第一电子设备复制或剪切的数据,将复制或剪切的数据在设备中进行粘贴应用。Applying the embodiment shown in FIG. 4 of the present invention, in the case that other devices are not connected to the first electronic device, the first electronic device can upload the copied or cut data to the server for storage, and the other electronic devices can communicate with the first electronic device. In the case of a communication connection with the server, the data copied or cut by the first electronic device may also be obtained from the server, and the copied or cut data may be pasted and applied in the device.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. any such actual relationship or order exists between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment.

本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the implementation of the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, referred to herein as Storage media, such as: ROM/RAM, disk, CD, etc.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (8)

1. a data transmission method, it is applied to the first electronic equipment, it is characterized in that, described first electronic equipment and the communication connection of the second electronic equipment, described first electronic equipment and be previously provided with the memory space for storage replication or the data of shearing in described second electronic equipment;Described method includes:
Receive user and for the duplicate instructions of target data or shear instruction;
According to described duplicate instructions or described shearing instruction, described target data is stored in the memory space of local electronic equipment;
The target data that will be stored in the memory space of local electronic equipment is synchronized in the memory space in described second electronic equipment.
2. method according to claim 1, it is characterised in that described in the target data that will be stored in the memory space of local electronic equipment be synchronized in the memory space in described second electronic equipment, including:
The target data that will be stored in the memory space of local electronic equipment is compressed coding, target data after coding is sent to described second electronic equipment, so that after the target data that described second electronic equipment is after receiving coding, target data after coding is decoded, decoded data is stored in the memory space of described second electronic equipment.
3. method according to claim 2, it is characterised in that described in the target data that will be stored in the memory space of local electronic equipment be compressed coding, including:
The target data that will be stored in the memory space of local electronic equipment is compressed coding with XML coded format.
4. the method according to claims 1 to 3 any one, it is characterised in that described first electronic equipment is connected with server communication, is previously provided with the memory space for storage replication or the data of shearing in described server;Described method also includes:
The target data that will be stored in the memory space of local electronic equipment is synchronized in the memory space in described server, so that the target data that described server will be stored in the memory space of described server is synchronized to: the memory space for storage replication or the data of shearing in other electronic equipments being connected with described server communication.
5. a data transmission device, it is applied to the first electronic equipment, it is characterized in that, described first electronic equipment and the communication connection of the second electronic equipment, described first electronic equipment and be previously provided with the memory space for storage replication or the data of shearing in described second electronic equipment;Described device includes: command reception module, memory module and the first synchronization module, wherein,
Described command reception module, for the duplicate instructions of target data or shears instruction for receiving user;
Described memory module, for the instruction received according to described command reception module, is stored in described target data in the memory space of local electronic equipment;
Described first synchronization module, the target data being used for will be stored in the memory space of local electronic equipment is synchronized in the memory space in described second electronic equipment.
6. device according to claim 5, it is characterised in that described first synchronization module, specifically for:
The target data that will be stored in the memory space of local electronic equipment is compressed coding, target data after coding is sent to described second electronic equipment, so that after the target data that described second electronic equipment is after receiving coding, target data after coding is decoded, decoded data is stored in the memory space of described second electronic equipment.
7. device according to claim 6, it is characterised in that described in the target data that will be stored in the memory space of local electronic equipment be compressed coding, including:
The target data that will be stored in the memory space of local electronic equipment is compressed coding with XML coded format.
8. the device according to right 5 to 7 any one, it is characterised in that described first electronic equipment is connected with server communication, is previously provided with the memory space for storage replication or the data of shearing in described server;Described device also includes: the second synchronization module, wherein,
Described second synchronization module, it is synchronized in the memory space in described server for will be stored in the target data in the memory space of local electronic equipment, so that the target data that described server will be stored in the memory space of described server is synchronized to: the memory space for storage replication or the data of shearing in other electronic equipments being connected with described server communication.
CN201410809229.XA 2014-12-19 2014-12-19 A data transmission method and device Pending CN105791347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410809229.XA CN105791347A (en) 2014-12-19 2014-12-19 A data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410809229.XA CN105791347A (en) 2014-12-19 2014-12-19 A data transmission method and device

Publications (1)

Publication Number Publication Date
CN105791347A true CN105791347A (en) 2016-07-20

Family

ID=56385600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410809229.XA Pending CN105791347A (en) 2014-12-19 2014-12-19 A data transmission method and device

Country Status (1)

Country Link
CN (1) CN105791347A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020138653A1 (en) * 2001-03-21 2002-09-26 International Business Machines Corporation Workstation system, computer, data transfer method, data editing method, computer program generation method, computer program and storage medium
US20080141136A1 (en) * 2006-12-12 2008-06-12 Microsoft Corporation Clipping Synchronization and Sharing
US20100138502A1 (en) * 2008-12-03 2010-06-03 International Business Machines Corporation Clipboard object sharing for instant messaging
CN101771718A (en) * 2008-12-29 2010-07-07 深圳市维信联合科技有限公司 Clipboard synchronous method and system
CN102821140A (en) * 2012-07-17 2012-12-12 北京小米科技有限责任公司 Information sharing method and information sharing terminal
CN102882963A (en) * 2012-09-25 2013-01-16 腾讯科技(深圳)有限公司 Data transmitting method, related terminals and system
CN103036933A (en) * 2011-09-29 2013-04-10 蔡政伟 System and method for cloud scrapbook
US20140025727A1 (en) * 2012-07-18 2014-01-23 Sentence Co., Ltd Synchronization server for clipboard and synchronization system for clipboard having the same
CN103761154A (en) * 2014-01-27 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Cross-platform shear plate synchronizing method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020138653A1 (en) * 2001-03-21 2002-09-26 International Business Machines Corporation Workstation system, computer, data transfer method, data editing method, computer program generation method, computer program and storage medium
US20080141136A1 (en) * 2006-12-12 2008-06-12 Microsoft Corporation Clipping Synchronization and Sharing
US20100138502A1 (en) * 2008-12-03 2010-06-03 International Business Machines Corporation Clipboard object sharing for instant messaging
CN101771718A (en) * 2008-12-29 2010-07-07 深圳市维信联合科技有限公司 Clipboard synchronous method and system
CN103036933A (en) * 2011-09-29 2013-04-10 蔡政伟 System and method for cloud scrapbook
CN102821140A (en) * 2012-07-17 2012-12-12 北京小米科技有限责任公司 Information sharing method and information sharing terminal
US20140025727A1 (en) * 2012-07-18 2014-01-23 Sentence Co., Ltd Synchronization server for clipboard and synchronization system for clipboard having the same
CN102882963A (en) * 2012-09-25 2013-01-16 腾讯科技(深圳)有限公司 Data transmitting method, related terminals and system
CN103761154A (en) * 2014-01-27 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Cross-platform shear plate synchronizing method and system

Similar Documents

Publication Publication Date Title
CN103677673B (en) The method and system that a kind of document classification batch uploads
CN101996165B (en) Copy processing method, device and equipment for web page information on smart terminal
US10565168B2 (en) Independent synchronization with state transformation
CN104750739A (en) Method and device for document sharing between user groups
CN102708192B (en) A kind of method and system of document sharing, equipment
CN103281192B (en) Method, device and system for retrieving data
WO2020098818A3 (en) Taking snapshots of blockchain data
CN102043832A (en) Method for realizing cross-domain request callback on webpage
CN104216787A (en) Method, device and system for synchronizing clipboards between terminal equipment
KR20150032152A (en) Method and apparatus for performing edit operations between electronic devices
KR20150043335A (en) Message synchronization with extended properties
CN106878428A (en) Method and device for file upload
EP2738712B1 (en) Embedded multimedia card partitioned storage space adjustment method and terminal
CN103179153B (en) Mobile terminal and mobile terminal data backup method based on cloud server
CN104298933A (en) Configuration information safety processing method and system
CN104301438A (en) File uploading method
CN105791347A (en) A data transmission method and device
CN103036933A (en) System and method for cloud scrapbook
CN108848180A (en) A kind of metadata synchronization method, device, equipment and readable storage medium storing program for executing
CN103138871A (en) Server data processing system and method of application program of mobile communication system
CN104869548A (en) Method and device for remotely modifying short messages
CN103139227B (en) A kind of application data transmission system and method being applied to mobile terminal
CN102710673A (en) Method and device for downloading data by terminal
CN103391318B (en) Data processing method, client, server end and equipment
CN105072592A (en) Method and device for remotely modifying short message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant after: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant after: Beijing Kingsoft office software Limited by Share Ltd

Applicant after: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

Address before: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant before: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant before: Beijing Kingsoft WPS Office Co., Ltd.

Applicant before: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication

Application publication date: 20160720

RJ01 Rejection of invention patent application after publication