CN107622026A - The method and apparatus of data transfer - Google Patents

The method and apparatus of data transfer Download PDF

Info

Publication number
CN107622026A
CN107622026A CN201710860282.6A CN201710860282A CN107622026A CN 107622026 A CN107622026 A CN 107622026A CN 201710860282 A CN201710860282 A CN 201710860282A CN 107622026 A CN107622026 A CN 107622026A
Authority
CN
China
Prior art keywords
data
default
target
importing
source device
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
CN201710860282.6A
Other languages
Chinese (zh)
Other versions
CN107622026B (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201710860282.6A priority Critical patent/CN107622026B/en
Publication of CN107622026A publication Critical patent/CN107622026A/en
Application granted granted Critical
Publication of CN107622026B publication Critical patent/CN107622026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Facsimiles In General (AREA)

Abstract

The invention discloses a kind of method and apparatus of data transfer, it is related to electronic apparatus application field, to realize that saving system controls resource, improves data transmission efficiency and invent.The method of the data transfer includes:The data that source device receives user import instruction;The source device carries out importing selection to initial data, obtains target data;The source device sends the target data to the target device, so that the target device carries out classification processing according to the attribute of the target data to the target data.Present invention is mainly applied in the data importing process of electric room.

Description

The method and apparatus of data transfer
Technical field
The present invention relates to electronic apparatus application field, more particularly to a kind of method and apparatus of data transfer.
Background technology
With the development of computer technology, the data transfer of various equipment rooms simplifies increasingly.The data transfer of various equipment Including the data transfer between the data transfer between mobile device and fixed equipment and mobile device and mobile device.Wherein, move Dynamic equipment includes mobile phone, camera and tablet personal computer, and fixed equipment includes PC, and (English full name is Personal Computer, abbreviation PC) and set top box.
When carrying out data transmission between mobile device and fixed equipment, for example, the iphone4 smart mobile phones of Apple Inc. Data transfer between PC.Due to iphone4 memory spaces in itself, to the disposal ability of data and the species of processing function It is limited, therefore usually require the data transfer in iphone4 to PC, on PC data are done with further storage and processing.When After iphone4 is connected with PC, the prompting of PC automatic springs data transfer, whether carry out data transmission for selection by the user.User couple Data are selected and transmitted to PC, and on PC data are made with further modification, such as are changed photo direction, changed data Storage location etc..After modification, on PC will transmit data is stored and is handled, such as photo is carried out will after image procossing It uploads to network.In addition, the data transfer between mobile device, such as the data transfer mistake between tablet personal computer and camera Journey, the data transmission procedure between above-mentioned mobile device and fixed equipment are identical.
During stating data transfer in realization, inventor has found that at least there are the following problems in the prior art:Due to Data transfer prompting is PC automatic springs, therefore no matter whether user has the demand of transmission data or with the presence or absence of can transmit Data, transmission prompting can eject, waste PC control resource.In addition, user after PC is sent data to, it is necessary to logarithm According to modifying manually, and then increase the overall time of data transfer, reduce data transmission efficiency.
The content of the invention
A kind of method and apparatus of data transfer is provided, can solve the problem that because automatic spring data transfer prompting cause user without Method control data is transmitted, and wastes the problem of PC controls resource.
In a first aspect, the invention provides a kind of method of data transfer, the data transfer is related to source device and target Equipment, methods described include:
The data that source device receives user import instruction;
The source device carries out importing selection to initial data, obtains target data;
The source device sends the target data to the target device, so that the target device is according to the mesh The attribute of mark data carries out classification processing to the target data.
In the first possible implementation of the first aspect, the data for receiving user import instruction, tool Body includes:The source device receives the data that the user is sent by the first programmable button and imports instruction.
In the possible implementation of the first of the first aspect or the first aspect, described first is additionally provided Second of possible implementation of aspect, in second of possible implementation of the first aspect, the source device Importing selection is carried out to initial data, specifically included:
Default file form of the source device in default importing configuration files, will be with the default file form lattice Formula identical initial data is defined as the target data;
Or default credible equipment mark of the source device in the default importing configuration files, to the mesh Marking device is authenticated, when the device identification of the target device identifies for the default credible equipment, by the original number According to being defined as the target data;
Or attribute information addition instruction of the source device in the default importing configuration files, it is the mesh Data addition attribute information is marked, specifically, being updated by internet to the attribute information, to ensure the standard of attribute information True property and real-time.
In the first of the first aspect or the first aspect possibility or second of possible implementation, also carry The third possible implementation of the first aspect is supplied, in the third possible implementation of the first aspect In, when the initial data is image file, the source device carries out importing selection to initial data, specifically includes:
Length and width are not met described pre- by default length and width threshold value of the source device in the default importing configuration files If the image file of length and width threshold value zooms in and out;
Or default file size threshold value of the source device in the default importing configuration files, it is big to file The small image file for not meeting the default file size threshold value is compressed;
Or default picture direction of the source device in the default importing configuration files, to display direction with The inconsistent image file in the default picture direction carries out display direction adjustment.
In the first of the first aspect or the first aspect possibility, second of possible or the third possible realization In mode, the 4th kind of possible implementation of the first aspect is additionally provided, in the 4th kind of possibility of the first aspect Implementation in, the source device carries out importing selection to initial data, specifically includes:
Default importing moment value of the source device in the default importing configuration files, it is determined that importing the target The time of data, remind user to send data according to default importing moment value and import instruction;
Or default memory space of the source device in the default importing configuration files takes threshold value, judges Whether the memory space seizure condition in the source device, which reaches the default memory space, takes threshold value, when reaching, reminds User sends data and imports instruction;
Or incremental raio of the source device in the default importing configuration files compares described original to instruction Whether data have been transmitted into the target device, specifically, the filename of the data in contrast initial data and target device, Whether filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that described original When data are still not transferred in the target device, the initial data is defined as the target data.
Second aspect, present invention also offers a kind of method of data transfer, the data transfer is related to source device and mesh Marking device, methods described include:
The data that target device receives user import instruction;
Importing instruction according to data notifies the source device to send initial data;
The target device receives the initial data that the source device is sent;
The target device carries out importing selection to initial data, obtains target data;
The target device carries out classification processing according to the attribute of the target data to the target data.
In the first possible implementation of the second aspect, the data that the target device receives user import Instruction, is specifically included:
The target device receives the data that the user is sent by the second programmable button and imports instruction.
In the possible implementation of the first of the second aspect or the first aspect, described second is additionally provided Second of possible implementation of aspect, in second of possible implementation of the second aspect, the target is set It is standby that importing selection is carried out to initial data, target data is obtained, is specifically included:
Default importing moment value of the target device in the default importing configuration files, it is determined that importing the mesh The time of data is marked, reminds user to send data according to default importing moment value and imports instruction;
Or default memory space of the target device in the default importing configuration files takes threshold value, sentences Whether the memory space seizure condition in the disconnected source device, which reaches the default memory space, takes threshold value, when reaching, carries The user that wakes up sends data and imports instruction;
Or incremental raio of the target device in the default importing configuration files compares the original to instruction Whether beginning data have been transmitted into the target device, specifically, the file of contrast initial data and the data in target device Whether name, filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that described When initial data is still not transferred in the target device, the initial data is defined as the target data.
In the first of the second aspect or the second aspect possibility or second of possible implementation, also carry The third possible implementation of the second aspect is supplied, in the third possible implementation of the second aspect In, the target device carries out importing selection to initial data, obtains target data, specifically includes:
Default file form of the target device in default importing configuration files, will be with the default file form Form identical initial data is defined as the target data;
Or default credible equipment mark of the target device in the default importing configuration files, to described Target device is authenticated, will be described original when the device identification of the target device identifies for the default credible equipment Data are defined as the target data;
Or attribute information addition instruction of the target device in the default importing configuration files, it is described Target data adds attribute information, specifically, being updated by internet to the attribute information, to ensure attribute information Accuracy and real-time.
The first of the second aspect or the second aspect may or second may or it is described three kinds it is possible In implementation, the 4th kind of possible implementation of the second aspect is additionally provided, at the 4th kind of the second aspect In possible implementation, when the initial data is image file, the target device carries out importing choosing to initial data Select, specifically include:
Default length and width threshold value of the target device in the default importing configuration files, length and width are not met described The image file of default length and width threshold value zooms in and out;
Or default file size threshold value of the target device in the default importing configuration files, to file The image file that size does not meet the default file size threshold value is compressed;
Or default picture direction of the target device in the default importing configuration files, to display direction Display direction adjustment is carried out with the inconsistent image file in the default picture direction.
The first of the second aspect or the second aspect may or second may the third may or the In four kinds of possible implementations, the 5th kind of possible implementation of the second aspect is additionally provided, in the second party In the 5th kind of possible implementation in face, the target device enters according to the attribute of the target data to the target data Row classification is handled, and is specifically included:
Default deletion of the target device in default processing configuration file indicates, indicates that the source device deletes institute State target data;
Or default naming rule of the target device in the default processing configuration file, to the target Data are named, and the naming rule includes naming by the name of importing time and by importing order;
Or default classifying rules of the target device in the default processing configuration file, to the target Data carry out classification storage, and the classifying rules includes:By the data type classifications of the target data, by the target data Creation time classification, as the data content classification of the target data and setting for source device as belonging to the target data Standby mark classification;
Or default statistics of the target device in the default processing configuration file indicates, to the target The importing result of data is counted.
The third aspect, the invention provides a kind of equipment of data transfer, the equipment is source device, the equipment bag Include:
Receiving unit, the data for receiving user import instruction;
Import unit, for carrying out importing selection to initial data, obtain target data;
Transmitting element, the target data for the import unit to be obtained are sent to target device.
In the first possible implementation of the third aspect, the receiving unit is specifically used for:Described in reception The data that user is sent by the first programmable button import instruction.
In the possible implementation of the first of the third aspect or the third aspect, the described 3rd is additionally provided Second of possible implementation of aspect, it is described to import list in second of possible implementation of the third aspect Member specifically includes:
Moment value imports subelement, for the default importing moment value in default importing configuration files, it is determined that importing The time of the target data, remind user to send data according to default importing moment value and import instruction;
Memory space imports subelement, and threshold is taken for the default memory space in the default importing configuration files Value, judges whether the memory space seizure condition in the source device reaches the default memory space and take threshold value, works as arrival When, remind user to send data and import instruction;
Increment imports subelement, for the incremental raio in the default importing configuration files to indicating, described in comparison Whether initial data has been transmitted into the target device, specifically, the text of contrast initial data and the data in target device Whether part name, filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that institute When stating initial data and being still not transferred in the target device, the initial data is defined as the target data.
In the first of the third aspect or the third aspect possibility or second of possible implementation, also carry The third possible implementation of the third aspect is supplied, in the third possible implementation of the third aspect In, the import unit specifically includes:
File format imports subelement, for the default file form in default importing configuration files, will with it is described Default file format identical initial data is defined as the target data;
Credible equipment imports subelement, is identified for the default credible equipment in the default importing configuration files, The target device is authenticated, when the device identification of the target device identifies for the default credible equipment, by institute State initial data and be defined as the target data;
Information adds subelement, instruction is added for the attribute information in the default importing configuration files, for institute Target data addition attribute information is stated, specifically, being updated by internet to the attribute information, to ensure attribute information Accuracy and real-time.
In the first of the third aspect or the third aspect possibility or second of possibility or three kinds of possible realizations In mode, the 4th kind of possible implementation of the third aspect is additionally provided, in the 4th kind of possibility of the third aspect Implementation in, the import unit specifically includes:
Length and width threshold value imports subelement, for when the initial data is image file, being matched somebody with somebody according to the default importing The default length and width threshold value in file is put, the image file that length and width are not met with the default length and width threshold value zooms in and out;
Size threshold value imports subelement, for when the initial data is image file, being matched somebody with somebody according to the default importing The default file size threshold value in file is put, the image file that the default file size threshold value is not met to file size is carried out Compression;
Direction imports subelement, for when the initial data is image file, text to be configured according to default import Default picture direction in part, the image file inconsistent to display direction and the default picture direction carry out display direction tune It is whole.
Fourth aspect, the invention provides a kind of equipment of data transfer, the equipment is target device, and its feature exists In the equipment includes:
Receiving unit, the data for receiving user import instruction;
Transmitting element, initial data is sent for importing instruction notice source device according to data;
The receiving unit is further used for receiving the initial data that the source device is sent;
Import unit, the initial data for being received to the receiving unit carry out importing selection, obtain target data;
Processing unit, the attribute of the target data for being obtained according to the import unit enter to the target data Row classification is handled.
In the first possible implementation of the fourth aspect, the receiving unit is further used for described in reception The data that user is sent by the second programmable button import instruction.
In the possible implementation of the first of the fourth aspect or the fourth aspect, the described 4th is additionally provided Second of possible implementation of aspect, it is described to import list in second of possible implementation of the fourth aspect Member, specifically include:
Moment value imports subelement, for the default importing moment value in the default importing configuration files, it is determined that The time of the target data is imported, reminds user to send data according to default importing moment value and imports instruction;
Memory space imports subelement, and threshold is taken for the default memory space in the default importing configuration files Value, judges whether the memory space seizure condition in the source device reaches the default memory space and take threshold value, works as arrival When, remind user to send data and import instruction;
Increment imports subelement, for the incremental raio in the default importing configuration files to indicating, described in comparison Whether initial data has been transmitted into the target device, specifically, the text of contrast initial data and the data in target device Whether part name, filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that institute When stating initial data and being still not transferred in the target device, the initial data is defined as the target data.
In the first of the fourth aspect or the fourth aspect possibility or second of possible implementation, also carry The third possible implementation of the fourth aspect is supplied, in the third possible implementation of the fourth aspect In, the import unit specifically includes:
File format imports subelement, for the default file form in default importing configuration files, will with it is described Default file format identical initial data is defined as the target data;
Credible equipment imports subelement, is identified for the default credible equipment in the default importing configuration files, The target device is authenticated, when the device identification of the target device identifies for the default credible equipment, by institute State initial data and be defined as the target data;
Information adds subelement, instruction is added for the attribute information in the default importing configuration files, for institute Target data addition attribute information is stated, specifically, being updated by internet to the attribute information, to ensure attribute information Accuracy and real-time.
In the first of the fourth aspect or the fourth aspect possibility, second of possible or the third possible realization In mode, the 4th kind of possible implementation of the fourth aspect is additionally provided, in the 4th kind of possibility of the fourth aspect Implementation in, the import unit specifically includes:
Length and width threshold value imports subelement, for when the initial data is image file, being matched somebody with somebody according to the default importing The default length and width threshold value in file is put, the image file that length and width are not met with the default length and width threshold value zooms in and out;
Size threshold value imports subelement, for when the initial data is image file, being matched somebody with somebody according to the default importing The default file size threshold value in file is put, the image file that the default file size threshold value is not met to file size is carried out Compression;
Direction imports subelement, for when the initial data is image file, text to be configured according to default import Default picture direction in part, the image file inconsistent to display direction and the default picture direction carry out display direction tune It is whole.
The first of the fourth aspect or the fourth aspect may or second of the fourth aspect may or The fourth aspect the third may or the 4th kind of possible implementation of the fourth aspect in, additionally provide described the 5th kind of possible implementation of four aspects, in the 5th kind of possible implementation of the fourth aspect, the processing Unit specifically includes:
Subelement is deleted, for the default deletion instruction in default processing configuration file, indicates that the source device is deleted Except the target data;
Subelement is named, for the default naming rule in the default processing configuration file, to the number of targets According to being named, the naming rule includes naming by the name of importing time and by importing order;
Classification subelement, for the default classifying rules in the default processing configuration file, to the number of targets According to classification storage is carried out, the classifying rules includes:By the data type classifications of the target data, by the target data Creation time is classified, as the data content classification of the target data and the equipment of the source device as belonging to the target data Mark classification;
Subelement is counted, is indicated for the default statistics in the default processing configuration file, to the number of targets According to importing result counted.
5th aspect, the invention provides a kind of equipment of data transfer, it is characterised in that and the equipment is source device, The equipment includes:
Receiver, the data for receiving user import instruction;
Processor, for carrying out importing selection to initial data, obtain target data;
Transmitter, the target data for the processor to be obtained are sent to target device.
In the first possible implementation of the described 5th aspect, receiver is specifically used for:The user is received to lead to The data for crossing the transmission of the first programmable button import instruction.
In the first possible implementation of the described 5th aspect or the 5th aspect, the described 5th is additionally provided Second of possible implementation of aspect, in second of possible implementation of the described 5th aspect, the processor Be further used for the default importing moment value in the default importing configuration files, it is determined that import the target data when Between, remind user to send data according to default importing moment value and import instruction;
The default memory space that the processor is further used in the default importing configuration files takes threshold value, Judge whether the memory space seizure condition in the source device reaches the default memory space and take threshold value, when reaching, Remind user to send data and import instruction;
The processor is further used for incremental raio in the default importing configuration files to instruction, described in comparison Whether initial data has been transmitted into the target device, specifically, the text of contrast initial data and the data in target device Whether part name, filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that institute When stating initial data and being still not transferred in the target device, the initial data is defined as the target data.
In the first possible or second of possible implementation of the described 5th aspect or the 5th aspect, also carry The third possible implementation of the 5th aspect is supplied, in the third possible implementation of the described 5th aspect In, the processor is further used for the default file form in default importing configuration files, will be with the default file Format identical initial data is defined as the target data;
The processor is further used for the default credible equipment mark in the default importing configuration files, to institute State target device to be authenticated, when the device identification of the target device identifies for the default credible equipment, by the original Beginning data are defined as the target data;
The processor adds instruction always according to the attribute information in the default importing configuration files, is the number of targets According to addition attribute information, specifically, being updated by internet to the attribute information, to ensure the accuracy of attribute information And real-time.
The first possible or second of possible or three kinds of possible realization in terms of the described 5th aspect or the described 5th In mode, the 4th kind of possible implementation of the 5th aspect is additionally provided, in the 4th kind of possibility of the described 5th aspect Implementation in, the processor is further used for when the initial data is image file, according to the default importing Default length and width threshold value in configuration file, the image file that length and width are not met with the default length and width threshold value zoom in and out;
The processor is further used for when the initial data is image file, and text is configured according to default import Default file size threshold value in part, the image file that the default file size threshold value is not met to file size are pressed Contracting;
The processor is pre- in the default importing configuration files also when the initial data is image file If picture direction, the image file inconsistent to display direction and the default picture direction carries out display direction adjustment.
6th aspect, the invention provides a kind of equipment of data transfer, the equipment is target device, and its feature exists In the equipment includes:
Receiver, the data for receiving user import instruction;
Transmitter, the source device is notified to send initial data for importing instruction according to data;
The receiver is further used for receiving the initial data that the source device is sent;
Processor, for carrying out importing selection to the initial data that the receiver receives, obtain target data;
The processor is further used for dividing the target data according to the attribute of the target data of acquisition Class processing.
In the first possible implementation of the described 6th aspect, the receiver is further used for receiving the use The data that family is sent by the second programmable button import instruction.
In the first possible implementation of the described 6th aspect or the 6th aspect, the described 6th is additionally provided Second of possible implementation of aspect, in second of possible implementation of the described 6th aspect, the processor Be further used for the default importing moment value in the default importing configuration files, it is determined that import the target data when Between, remind user to send data according to default importing moment value and import instruction;
The default memory space that the processor is further used in the default importing configuration files takes threshold value, Judge whether the memory space seizure condition in the source device reaches the default memory space and take threshold value, when reaching, Remind user to send data and import instruction;
The processor is further used for incremental raio in the default importing configuration files to instruction, described in comparison Whether initial data has been transmitted into the target device, specifically, the text of contrast initial data and the data in target device Whether part name, filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that institute When stating initial data and being still not transferred in the target device, the initial data is defined as the target data.
In the first possible or second of possible implementation of the described 6th aspect or the 6th aspect, also carry The third possible implementation of the 6th aspect is supplied, in the third possible implementation of the described 6th aspect In:The processor is further used for the default file form in default importing configuration files, will be with the default file Format identical initial data is defined as the target data;
The processor is further used for the default credible equipment mark in the default importing configuration files, to institute State target device to be authenticated, when the device identification of the target device identifies for the default credible equipment, by the original Beginning data are defined as the target data;
The processor is further used for the attribute information addition instruction in the default importing configuration files, for institute Target data addition attribute information is stated, specifically, being updated by internet to the attribute information, to ensure attribute information Accuracy and real-time.
The first possible, second of possible or the third possible realization in terms of the described 6th aspect or the described 6th In mode, the 4th kind of possible implementation of the 6th aspect is additionally provided, in the 4th kind of possibility of the described 6th aspect Implementation in, the processor is further used for when the initial data is image file, according to the default importing Default length and width threshold value in configuration file, the image file that length and width are not met with the default length and width threshold value zoom in and out;
The processor is further used for when the initial data is image file, and text is configured according to default import Default file size threshold value in part, the image file that the default file size threshold value is not met to file size are pressed Contracting;
The processor is further used for when the initial data is image file, and text is configured according to default import Default picture direction in part, the image file inconsistent to display direction and the default picture direction carry out display direction tune It is whole.
The described 6th aspect or it is described 6th aspect the first may or it is described 6th aspect second may or 6th aspect the third may or the 4th kind of possible implementation of the 6th aspect in, additionally provide described the 5th kind of possible implementation of six aspects, in the 5th kind of possible implementation of the described 6th aspect, the processing Device is further used for the default deletion instruction in default processing configuration file, indicates that the source device deletes the number of targets According to;
The processor is further used for the default naming rule in the default processing configuration file, to the mesh Mark data are named, and the naming rule includes naming by the name of importing time and by importing order;
The processor is further used for the default classifying rules in the default processing configuration file, to the mesh Mark data and carry out classification storage, the classifying rules includes:By the data type classifications of the target data, by the number of targets According to creation time classification, the data content classification as the target data and source device as belonging to the target data Device identification is classified;
The default statistics that the processor is further used in the default processing configuration file indicates, to the mesh The importing result of mark data is counted.
By the method and apparatus of the data transfer of offer, order of the instruction as log-on data transmission is imported using data, The control resource for automatic spring transmission prompting can be saved.By carrying out importing selection to initial data, realize to original The modification of data;Classification processing is carried out to target data, further classification and processing can be done to the target data transmitted;Use Family to the target data after transmission without modifying.Because the time used in modification and processing of the equipment to initial data is less than people The time of work processing, therefore the shortening of overall time of data transfer, data transmission efficiency improve.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the flow chart of the method for a data transfer in the embodiment of the present invention;
Fig. 2 (a) is the schematic diagram of the embodiment of the present invention;
Fig. 2 (b) is another schematic diagram of the embodiment of the present invention;
Fig. 3 is the flow chart of the method for another data transfer in the embodiment of the present invention;
Fig. 4 is a structural representation of source device in the embodiment of the present invention;
Fig. 5 is another structural representation of source device in the embodiment of the present invention;
Fig. 6 is a structural representation of target device in the embodiment of the present invention;
Fig. 7 is another structural representation of target device in the embodiment of the present invention;
Fig. 8 is another structural representation of source device in the embodiment of the present invention;
Fig. 9 is another structural representation of target device in 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 carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Embodiment one
The embodiments of the invention provide a kind of method of data transfer, as shown in figure 1, the data transfer is related to source device And target device, methods described include:
The data that step 101, source device receive user import instruction.
The source device receives the data that the user is sent by the first programmable button and imports instruction.
The method of data transfer provided by the invention, it is related to the source device for being stored with data and the mesh for receiving data Marking device., can be by source device as shown in Fig. 2 (a) when user needs data being directed into target device from source device First programmable button log-on data imports.Now, source device receives the data that user is sent by the first programmable button and imported and refers to Show.User can be imported by the first programmable button on source device, log-on data.First programmable button can be software form The Import button, by being clicked on mouse or touch-screen, can log-on data import;First programmable button is alternatively hardware Form, increases a button newly such as on source device, and used pressing or touch can log-on data importings.
Step 102, the source device carry out importing selection to initial data, obtain target data.
If user is imported by the first programmable button log-on data on source device, source device receives data and imports instruction Afterwards, importing selection is carried out to initial data according to importing rule.When the importing rule includes the type of initial data, imported Between, the restriction of the rule such as the trusted degree of the display mode of initial data, target device.Initial data through import select after, Form target data.The target data imported after selecting is directed into target device by source device.
Step 103, the source device send the target data to target device.
The source device sends the target data to the target device, so that the target device is according to step The attribute of the target data obtained in 102 carries out classification processing to the target data.The attribute of the target data, bag Include the file format of target data, file name, with the presence relation of corresponding initial data etc..Target device is handled according to classification Rule, classification processing is carried out to target data.
For example, target device can be according to the file type in the attribute of target device, by text class data, multimedia class number According to this and picture category data is respectively put into different files, to reach the effect classified to target data.Target device Presence relation that can also be by the attribute terminal to target data with corresponding initial data, is deleted initial data, with up to To the effect handled target data.
The method of data transfer provided in an embodiment of the present invention, imported with the data that user is sent by the first programmable button The order as log-on data transmission is indicated, and then saves the control resource for automatic spring transmission prompting.Source device according to Import rule and importing selection is carried out to initial data, initial data can be set according to user and modified.Source device is to original Modification, classification and the processing of data, the overall time of data transfer can be shortened, improve data transmission efficiency.
Embodiment two
The embodiments of the invention provide a kind of method of data transfer, as shown in figure 3, the data transfer is related to source device And target device, methods described include:
The data that step 301, target device receive user import instruction.
The target device receives the data that the user is sent by the second programmable button and imports instruction.
The method of data transfer provided in an embodiment of the present invention, it is related to the source device that is stored with data and for receiving number According to target device.When user needs data being directed into target device from source device, as shown in Fig. 2 (b), it can also pass through mesh The second programmable button log-on data on marking device imports.Now, target device receives user and sent by the second programmable button The data import instruction.User can be imported by the second programmable button on target device, log-on data.Described second is pre- , can log-on data importing by being clicked on mouse or touch-screen if button can be the Import button of software form;Described second Programmable button is alternatively example, in hardware, such as on the target device increase newly a button, it is used pressing or touch can log-on data lead Enter.
Step 302, the target device import instruction according to the data and notify the source device to send initial data.
If user is imported by the second programmable button log-on data on target device or user passes through the first programmable button The data sent from source device import instruction log-on data and imported.After target device receives data importing instruction, according to data Importing instruction notifies the source device to send initial data.
Step 303, the target device receive the initial data that the source device is sent;
After target device sends the transmission instruction of initial data to source device, after source device is connected to transmission instruction, to mesh Marking device sends initial data.
Step 304, the target device carry out importing selection to initial data, obtain target data.
After the target device receives the initial data that the source device is sent, the initial data is imported Selection.
After target device obtains initial data, importing selection is carried out to initial data according to rule is imported.It is described to import rule Then include the type of initial data, import the rule such as time, the display mode of initial data, trusted degree of target device Limit.Initial data forms target data after importing and selecting.
Step 305, the target device carry out classification processing according to the attribute of the target data to the target data.
The target device divides the target data according to the attribute of the target data obtained in step 304 Class processing.The attribute of the target data, including the file format of target data, file name, deposit with corresponding initial data In relation etc..Target device carries out classification processing according to classification processing rule to target data.
For example, target device can be according to the file type in the attribute of target device, by text class data, multimedia class number According to this and picture category data is respectively put into different files, to reach the effect classified to target data.Target device Presence relation that can also be by the attribute terminal to target data with corresponding initial data, is deleted initial data, with up to To the effect handled target data.
The method of data transfer provided in an embodiment of the present invention, imported with the data that user is sent by the second programmable button The order as log-on data transmission is indicated, and then saves the control resource for automatic spring transmission prompting.Target device root Importing selection is carried out to initial data according to rule is imported, initial data can be set according to user and modified.Target device according to According to classification processing rule, classification processing to target data can according to the attribute of target data, target data is carried out classification and Processing.Modification, classification and processing of the target device to initial data, the overall time of data transfer can be shortened, improve data and pass Defeated efficiency.
Embodiment three
The embodiment of the present invention also provides a kind of method of data transfer, step 102 or embodiment two in above-described embodiment one Importing rule described in middle step 304 can be recorded by default importing configuration files, and configuration text is imported below with respect to default Different config options is described further to the importing selection in embodiment one and embodiment two respectively in part, specific as follows:
1) the default file form in default importing configuration files, will be with the default file format identical Initial data is defined as the target data.
Source device or target device to initial data according to default importing configuration files when import selection, if default File format is that (English full name is Joint Photographic Experts Group, referred to as JPEG JPEG) form, then source device by file format in initial data be JPEG initial data be defined as target data, or target Equipment obtains the initial data that file format is JPEG from source device.Default file form make user without artificial selection certain The data of file format, and then improve data transmission efficiency.
2) the default importing moment value in the default importing configuration files, it is determined that import the target data when Between.
Source device or target device to initial data according to default importing configuration files when import selection, if default Default importing moment value in importing configuration files is 20:00, source device or target device will be in 20:00 prompting user, which sends, to be led Enter instruction.User can set according to their needs, work as arrival to presetting the default importing moment value in importing configuration files During default importing moment value, source device or target device remind user to send importing instruction, raising Consumer's Experience.
3) the default memory space in the default importing configuration files takes threshold value, judges in the source device Whether memory space seizure condition, which reaches the default memory space, takes threshold value, when reached, starts and imports the number of targets According to or remind user send import instruction, improve Consumer's Experience.
Source device or target device to initial data according to default importing configuration files when import selection, if source is set Standby memory space is 4GB, and it is 3.5GB to preset memory space and take threshold value.When the memory space occupancy of source device is 3.6GB When, source device can prompt user's transmission importing instruction or target device to store shape in acquisition source device voluntarily or by target device Remind user to send after state and import instruction.For example, the memory space occupancy volume in camera, which exceedes default memory space, takes threshold During value, instruction is imported by reminding user to send, user can be avoided because next time caused by careless omission is when taking pictures, because no enough Memory space leads to not take pictures.
4) the default credible equipment mark in the default importing configuration files, reflects to the target device Power, when the device identification of the target device identifies for the default credible equipment, the initial data is defined as described Target data.
Source device or target device to initial data according to default importing configuration files when import selection, in order to protect The security of the initial data on source device is demonstrate,proved, can be by being authenticated to target device, to determine target device trusty. When source device sends the initial data on target data or target device acquisition source device to target device, if target device Device identification is identical with default credible equipment mark, it is determined that target device is trusted device.Otherwise, source device and mesh are cancelled The connection of marking device.The safety of the initial data on source device can be protected by presetting credible equipment mark, prevents initial data Loss and leakage.
5) incremental raio in the default importing configuration files compares whether the initial data has been transmitted to instruction To in the target device, specifically, the filename of contrast initial data and the data in target device, filemodetime, Whether file size is identical, if by one or at least two combination of the above differ, it is determined that the initial data is not yet transmitted During into the target device, the initial data is defined as the target data.
The incremental raio is used to available data in control targe equipment and initial data be compared to instruction, if existing Data are all equal with the filename, modification time and file size of initial data, then the initial data are defined as into institute State target data.It is identical for filename, the different available data of file size, increment copy can be carried out to available data, i.e., The part that only copy original document has differences with existing file, the part of difference can be that the part of available data is added To delete the part of available data.Increment copy can reduce the repetition copy to available data, save the time of data transfer.
6) the attribute information addition instruction in the default importing configuration files, attribute is added for the target data Information, the attribute information are updated by internet, to ensure the accuracy of attribute information and real-time.
Source device or target device to initial data according to default importing configuration files when import selection, if default Attribute information addition instruction in importing configuration files, instruction addition attribute information addition, then source device or target device are mesh Mark data addition Metadata (metadata).Data of the Metadata as description file attribute information, available for description dynamic Image expert's compression standard audio aspect 3 (Moving Picture Experts Group Audio Layer III, referred to as MP3) the information such as the singer of file, lyrics.It is connected in importing process with internet, and obtains newest data to Metadata It is corrected and updates.So can reach Metadata is newest, most accurate data.
When the initial data is image file, described that importing selection is carried out to initial data, the step 102 is also wrapped Include:Wherein, image file includes the frame picture in picture and video.
7) the default length and width threshold value in the default importing configuration files, length and width are not met with the default length and width threshold The image file of value zooms in and out.
Source device or target device to initial data according to default importing configuration files when import selection, if default Length and width threshold value is long 12cm, wide 9cm, and long 24cm, the wide 18cm of image file, then source device or target device enter image file The scaling of row half, to meet default length and width threshold value.
In addition, the image file for meeting default length and width threshold value can also be defined as by source device or target device by initial data Target data.
8) the default file size threshold value in the default importing configuration files, file size is not met described pre- If the image file of file size threshold value is compressed.Wherein, default file size threshold value is that image file takes memory space The threshold value of size.
Source device or target device to initial data according to default importing configuration files when import selection, if default File size threshold value is 1MB, then to file size be 1.5MB image file be compressed, after being compressed to 1MB, source device or The image file is defined as target data by target device.
9) the default picture direction in the default importing configuration files, to display direction and the default picture side Display direction adjustment is carried out to inconsistent image file.
Source device or target device to initial data according to default importing configuration files when import selection, if default Picture direction is vertical, and the display direction of the image file of level display is adjusted by source device or target device, makes figure As the display direction of file is vertically displayed.In addition, except being changed to longitudinal display by being shown displayed across to image, can also be according to image In face direction determine the display direction of image.If face being adjusted by display direction for " laying across ", makes face in image " setting ".
In embodiments of the invention one and embodiment two, target device is held as carrying out classification processing to target data Row main body.Classification processing rule described in the step 304 of above-described embodiment two can be remembered by default processing configuration file Carry, embodiment one and the classification processing in embodiment two are done below with respect to configured information different in default processing configuration file Further illustrate, it is specific as follows:
A) the default deletion instruction in default processing configuration file, indicates that the source device deletes the number of targets According to.
If user is sent by the first programmable button and imports instruction, can when target data is present on target device Indicate to delete the target data in source device according to default delete.Because the initial data on source device is through importing selection After form target data, therefore after the target data of source device is deleted, initial data is also deleted corresponding to target data.
If user is sent by the second programmable button imports instruction, the initial data of source device transmission is obtained in target device Afterwards, target device can send to source device and delete instruction, for deleting the initial data on source device.
B) the default naming rule in the default processing configuration file, is named, institute to the target data Stating naming rule includes naming by the name of importing time and by importing order.
After target data is present on target device, target device according to can to target data by import the time carry out weight Name, also renaming can be carried out according to importing order.For example, three image files are ordered again respectively according to the sequencing of importing Entitled " 1 ", " 2 ", " 3 ".Because the name of image file often automatically generates in camera, its naming rule complexity is not easy to distinguish Know, by the way that image file is carried out into renaming according to importing order, may be such that the title of image file is easier to recognize, it is convenient to use Family uses.
C) the default classifying rules in the default processing configuration file, carries out classification to the target data and deposits Storage, the classifying rules include:By the data type classifications of the target data, the creation time point by the target data Class, data content classification and the device identification of the source device as belonging to target data classification as the target data.
Target device can be classified target data according to the data type of target data, such as the file of jpeg format Identical file folder is positioned over, the file of TXT forms is positioned over another file.
Target device can be classified target data according to the creation time of target data, such as be by creation time The target data on October 1st, 2012 is positioned over identical file folder, and creation time is put for the target data on October 2nd, 2012 It is placed in another file.
Target device can be according to the data content of target data, such as the face in image file will belong in image file Identical file folder is positioned in the image file for the face for having very much personage's first, the face that has very much personage's second will be belonged in image file Image file be positioned over another file.
Target device can indicate according to the equipment of target data, establish different files at least one source device to deposit Put the target data or initial data of each source device.
D) the default statistics in the default processing configuration file indicates that the importing result to the target data is entered Row statistics.
For example, the information such as time is entered used in the data total amount for the target data that target device imports to certain source device, importing Row statistics, and by statistical result showed to user.Also statistical result can be preserved, entered integrally to import data to target device Row analysis, and then show that each source device imports the comparative information of situation.
The embodiment of the present invention is described further below by two application scenarios, its Scene one be embodiment one with The citing that embodiment three is combined, scene two is the citing that embodiment two is combined with embodiment three, as follows:
Scene one
Source device be Apple Inc. iphone4 smart mobile phones, target device PC.Leading in default importing configuration files It is as follows to enter rule:Default file form is JPEG and MP3, and default credible equipment is identified as " the first equipment ", presets length and width threshold value For long 12cm, wide 9cm.Classification processing rule in default processing configuration file is as follows:Default deletion is designated as deleting, and presets life Name rule is to be named by importing order, presets data type classifications of the classifying rules for according to target data, and default statistics is designated as Time used in statistics importing.
After iphone4 is connected by user with PC, user clicks on the Import button on iphone4, i.e., first default presses Key.After iphone4 receives importing instruction, iphone4 obtains PC equipment sign, and whether the device identification for judging PC is default Credible equipment identifies " the first equipment ", and judged result is when being, iphone4 is scanned to the data of its memory storage, by file Form is that JPEG and MP3 initial data is defined as target data, and by length of the file format for jpeg image file and wide root It is that after long 12cm, wide 9cm are adjusted, target data is transmitted to PC from iphone4 according to default length and width threshold value.PC is according to default The classification processing rule of configuration file is handled, after all target data has been received, is sent to iphone4 and deletes instruction, instruction The target data of the jpeg format and MP3 format in iphone4 is deleted, and the target data of each jpeg format is stored in same File, the target data of each MP3 format is stored in another file, the target data of each jpeg format in file and The target data of each MP3 format carries out renaming according to importing order.Now, PC is to clicking on " importing " button from user to PC i.e. Completion counts to the time used in target data renaming, and by time showing used to user.
Scene two
Source device is USB flash drive (USB flash disk, abbreviation USB flash disk), target device PC.Default importing is matched somebody with somebody The importing rule put in file is as follows:Default file form is JPEG and dynamic image expert's compression standard audio aspect 3 (Moving Picture Experts Group Audio Layer III, abbreviation MP3), default credible equipment are identified as " One equipment ", " the second equipment ", it is long 12cm, wide 9cm to preset length and width threshold value.Classification processing rule in default processing configuration file It is then as follows:Default naming rule is to be named by importing order, presets data type classifications of the classifying rules for according to target data, in advance If statistics is designated as the time used in statistics importing.
After USB flash disk is connected by user with PC, user clicks on the Import button on PC, i.e. the second programmable button.PC is received To after importing instruction, the device identification and default credible equipment of checking PC itself identify whether unanimously.If now, PC equipment mark Know for " the second equipment ", by comparing defined default credible equipment mark " the first equipment " in default importing configuration files, " the Two equipment ", it is trusted device to draw PC.The transmission that PC sends initial data to USB flash disk instructs, to obtain the original number in USB flash disk According to.After PC obtains initial data, the initial data that file format in initial data is JPEG and MP3 is defined as target data, It is long 12cm, width that length and width basis that file format is jpeg image file are preset into length and width threshold value according to default length and width threshold value 9cm is adjusted.PC handles rule according to the classification of default processing configuration file, will be each after all target data has been received The target data of jpeg format is stored in identical file folder, and the target data of each MP3 format is stored in into another file, file The target data of each jpeg format in folder and the target data of each MP3 format carry out renaming according to importing order.Now, PC Complete to count the time used in target data renaming to PC to clicking on " importing " button from user, and by the time used It is shown to user.
The method of data transfer provided in an embodiment of the present invention, default importing configuration files for importing selection provide according to According to the replacement manually modification to initial data.Default processing configuration file be target device provide classification to target data with The foundation of processing, substitute the manually classification and processing to target data.Because source device or target device import configuration to default The reading of file and default processing configuration file reproduce, therefore can save the repetitive operation of user.User can pass through modification Default importing configuration files and default processing configuration file, are configured to importing process, improve Consumer's Experience.In addition source device Or modification, classification and processing of the target device to initial data, the overall time of data transfer can be shortened, improve data transfer effect Rate.
Example IV
The embodiments of the invention provide a kind of equipment of data transfer, as shown in figure 4, the equipment is source device, it is described Equipment includes:
Receiving unit 41, the data for receiving user import instruction.
The receiving unit 41 of the source device is specifically used for:Receive what the user was sent by the first programmable button The data import instruction.User can be imported by the first programmable button on source device, log-on data.Described first default presses Key can be the Import button of software form, can log-on data importing by being clicked on mouse or touch-screen;Described first is default Button is alternatively example, in hardware, increases a button newly such as on source device, and used pressing or touch can log-on data importings.Receive Unit 41 is used to receive the data importing instruction that user is sent by the first programmable button, is imported with log-on data.
Import unit 42, for carrying out importing selection to initial data, obtain target data.
The import unit 42 of the source device is specifically used for:Importing selection is carried out to the initial data, and will be obtained The target data obtained is sent to the target device.If user is led by the first programmable button log-on data on source device Enter, after receiving unit 41 receives data importing instruction, import unit 42 carries out importing choosing according to rule is imported to initial data Select.It is described import rule include initial data type, import the time, the display mode of initial data, target device it is credible Appoint the restriction of the rule such as degree.Initial data forms target data after import unit 42 imports selection.Transmitting element 43 will be led Enter the target data after selection and be directed into target device.
Transmitting element 43, the target data for the import unit to be obtained are sent to target device.
The target data that the source device is obtained the import unit by transmitting element 43, which is sent to target, to be set It is standby, so that the target device carries out classification processing to the target data.
Further, as shown in figure 5, the import unit 42 specifically includes:
File format imports subelement 421, will be with institute for the default file form in default importing configuration files State default file format identical initial data and be defined as the target data.For example, the file format of import unit 42 Subelement 421 is imported when import selection to initial data according to default importing configuration files, if default file form is Jpeg format, then file format import subelement 421 by file format in initial data be JPEG initial data be defined as mesh Data are marked, or form imports subelement and the initial data that file format is JPEG is obtained from source device.
Moment value imports subelement 422, for the default importing moment value in the default importing configuration files, really Surely the time of the target data is imported.If the default importing moment value in default importing configuration files is 20:00, moment value is led Entering subelement 422 will be in 20:00 prompting user, which sends, imports instruction.
Memory space imports subelement 423, is accounted for for the default memory space in the default importing configuration files With threshold value, judge whether the memory space seizure condition in the source device reaches the default memory space and take threshold value, when When reaching, start and import the target data.For example, the memory space of source device is 4GB, default memory space takes threshold value and is 3.5GB.When the memory space occupancy of source device is 3.6GB, memory space imports subelement 423 and voluntarily can prompt or pass through Target device prompting user, which sends, imports instruction.
Credible equipment imports subelement 424, for the default credible equipment mark in the default importing configuration files Know, the target device is authenticated, will when the device identification of the target device identifies for the default credible equipment The initial data is defined as the target data., can be by credible in order to ensure the security of the initial data on source device Equipment imports subelement 424 and target device is authenticated, to determine target device trusty.When source device is to target device When sending the initial data on target data or target device acquisition source device, if the device identification of target device is credible with presetting Device identification is identical, it is determined that target device is trusted device.Otherwise, the connection of source device and target device is cancelled.
Increment imports subelement 425, for the incremental raio in the default importing configuration files to instruction, compares institute State whether initial data has been transmitted into the target device, specifically, contrast initial data and the data in target device Whether filename, filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that When the initial data is still not transferred in the target device, the initial data is defined as the target data.It is described Incremental raio is used to available data in control targe equipment and initial data be compared to instruction, if available data and original number According to filename, modification time and file size it is all equal, then increment import subelement 425 initial data is determined For the target data.Identical for filename, the different available data of file size, increment imports subelement 425 to existing Data carry out increment copy, i.e., the part that only copy original document has differences with existing file, the part of difference can be to existing There is the part addition of data or the part of available data is deleted.The repetition that increment copy can be reduced to available data is copied Shellfish, save the time of data transfer.
Information adds subelement 426, adds instruction for the attribute information in the default importing configuration files, is The target data adds attribute information, and the attribute information is updated by internet, with ensure the accuracy of attribute information and Real-time.If attribute information addition is added in the attribute information addition instruction in default importing configuration files, instruction, then information is added Subelement 426 is that target data adds Metadata.Data of the Metadata as description file attribute information, available for describing The information such as the singer of mp3 file, the lyrics.Information addition subelement 426 is connected with internet in importing process, and is obtained newest Data Metadata is corrected and updated.So can reach Metadata is newest, most accurate data.
Length and width threshold value imports subelement 427, for when the initial data is image file, according to the default importing Default length and width threshold value in configuration file, the image file that length and width are not met with the default length and width threshold value zoom in and out.It is if pre- If length and width threshold value is long 12cm, wide 9cm, long 24cm, the wide 18cm of image file, then length and width threshold value imports subelement 427 and will schemed As the scaling of file progress half, to meet default length and width threshold value.It can also be incited somebody to action in addition, length and width threshold value imports subelement 427 The equal image file of length and width threshold value is preset in initial data and is defined as target data.
Size threshold value imports subelement 428, for when the initial data is image file, according to the default importing Default file size threshold value in configuration file, the image file that the default file size threshold value is not met to file size enter Row compression.If default file size threshold value is 1MB, size threshold value imports image of the subelement 428 to file size for 1.5MB File is compressed, and after being compressed to 1MB, the image file is defined as into target data.
Direction imports subelement 429, for when the initial data is image file, being configured according to default import Default picture direction in file, the image file inconsistent to display direction and the default picture direction carry out display direction Adjustment.If default picture direction is vertical, direction imports subelement 429 and enters the display direction of the image file of level display Row adjustment, the display direction for making image file are vertically displayed.In addition, except being changed to longitudinal display by being shown displayed across to image, Direction imports subelement 429 can also determine the display direction of image according to the face direction in image.If face is " horizontal in image " by direction import subelement 429 can make face " setting ".
The equipment of data transfer provided in an embodiment of the present invention, default importing configuration files for importing selection provide according to According to the replacement manually modification to initial data.Default processing configuration file be target device provide classification to target data with The foundation of processing, substitute the manually classification and processing to target data.Because import unit 42 is to presetting importing configuration files Read and reproduce, therefore the repetitive operation of user can be saved.User can be by changing default importing configuration files to importing Journey is configured, and improves Consumer's Experience.In addition processing of each subelement in import unit 42 to initial data, can shorten data The overall time of transmission, improve data transmission efficiency.
Embodiment five
The embodiments of the invention provide a kind of equipment of data transfer, as shown in fig. 6, the equipment is target device, institute Stating equipment includes:
Receiving unit 61, the data for receiving user import instruction.
The receiving unit 61 of the target device is specifically used for:The user is received to send by the second programmable button The data import instruction.User can be imported by the second programmable button on source device, log-on data.Described second is default Button can be the Import button of software form, can log-on data importing by being clicked on mouse or touch-screen;Described second is pre- If button is alternatively example, in hardware, a button is increased newly such as on source device, used pressing or touch can log-on data importings.Connect Receive unit 61 to be used to receive the data importing instruction that user is sent by the second programmable button, imported with log-on data.
Transmitting element 64, the source device is notified to send initial data for importing instruction according to the data.
If user is imported by the second programmable button log-on data on target device, receiving unit 61 receives data After importing instruction, transmitting element 64, which is used to importing instruction according to data, notifies the source device to send initial data, specifically can be with: The transmission that initial data is sent to source device is instructed, and after source device is connected to transmission instruction, original number is sent to receiving unit 61 According to.
The receiving unit is further used for receiving the initial data that source device is sent.
Import unit 62, the initial data for being received to the receiving unit carry out importing selection, obtain number of targets According to.
The import unit 62 of the target device is specifically used for:The initial data received to receiving unit 61 Carry out importing selection.After receiving unit 61 receives initial data, import unit 62 is carried out according to rule is imported to initial data Import selection.The rule that imports includes the type of initial data, imports time, the display mode of initial data, target device The rule such as trusted degree restriction.Initial data forms target data after import unit 62 imports selection.
Processing unit 63, for the attribute of the target data that is obtained according to the import unit 62 to the number of targets According to carrying out classification processing.
The processing unit 63 of the target device is specifically used for:The target obtained according to the import unit 62 The attribute of data carries out classification processing to the target data.For example, processing unit 63 can be in the attribute according to target device File type, text class data, multimedia class data and picture category data are respectively put into different files, to reach pair The effect that target data is classified.Processing unit 63 can also pass through the attribute terminal to target data and corresponding initial data Relation be present, initial data is deleted, to reach the effect handled target data.
Further, as shown in fig. 7, the import unit 62 specifically includes:
File format imports subelement 621, will be with institute for the default file form in default importing configuration files State default file format identical initial data and be defined as the target data.For example, the file format of import unit 62 Subelement 621 is imported when import selection to initial data according to default importing configuration files, if default file form is Jpeg format, then file format import subelement 621 by file format in initial data be JPEG initial data be defined as mesh Data are marked, or form imports subelement and the initial data that file format is JPEG is obtained from source device.
Moment value imports subelement 622, for the default importing moment value in the default importing configuration files, really Surely the time of the target data is imported.If the default importing moment value in default importing configuration files is 20:00, moment value is led Entering subelement 622 will be in 20:00 prompting user, which sends, imports instruction.
Memory space imports subelement 623, is accounted for for the default memory space in the default importing configuration files With threshold value, judge whether the memory space seizure condition in the source device reaches the default memory space and take threshold value, when When reaching, start and import the target data.For example, the memory space of source device is 4GB, default memory space takes threshold value and is 3.5GB.When the memory space occupancy of source device is 3.6GB, memory space imports subelement 623 and voluntarily can prompt or pass through Target device prompting user, which sends, imports instruction.
Credible equipment imports subelement 624, for the default credible equipment mark in the default importing configuration files Know, the target device is authenticated, will when the device identification of the target device identifies for the default credible equipment The initial data is defined as the target data., can be by credible in order to ensure the security of the initial data on source device Equipment imports subelement 624 and target device is authenticated, to determine target device trusty.When source device is to target device When sending the initial data on target data or target device acquisition source device, if the device identification of target device is credible with presetting Device identification is identical, it is determined that target device is trusted device.Otherwise, the connection of source device and target device is cancelled.
Increment imports subelement 625, for the incremental raio in the default importing configuration files to instruction, compares institute State whether initial data has been transmitted into the target device, specifically, contrast initial data and the data in target device Whether filename, filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that When the initial data is still not transferred in the target device, the initial data is defined as the target data.It is described Incremental raio is used to available data in control targe equipment and initial data be compared to instruction, if available data and original number According to filename, modification time and file size it is all equal, then increment import subelement 625 initial data is determined For the target data.Identical for filename, the different available data of file size, increment imports subelement 625 to existing Data carry out increment copy, i.e., the part that only copy original document has differences with existing file, the part of difference can be to existing There is the part addition of data or the part of available data is deleted.The repetition that increment copy can be reduced to available data is copied Shellfish, save the time of data transfer.
Information adds subelement 626, adds instruction for the attribute information in the default importing configuration files, is The target data adds attribute information, and the attribute information is updated by internet, with ensure the accuracy of attribute information and Real-time.If attribute information addition is added in the attribute information addition instruction in default importing configuration files, instruction, then information is added Subelement 626 is that target data adds Metadata.Data of the Metadata as description file attribute information, available for describing The information such as the singer of mp3 file, the lyrics.Information addition subelement 626 is connected with internet in importing process, and is obtained newest Data Metadata is corrected and updated.So can reach Metadata is newest, most accurate data.
Length and width threshold value imports subelement 627, for when the initial data is image file, according to the default importing Default length and width threshold value in configuration file, the image file that length and width are not met with the default length and width threshold value zoom in and out.It is if pre- If length and width threshold value is long 12cm, wide 9cm, long 24cm, the wide 18cm of image file, then length and width threshold value imports subelement 627 and will schemed As the scaling of file progress half, to meet default length and width threshold value.It can also be incited somebody to action in addition, length and width threshold value imports subelement 627 The equal image file of length and width threshold value is preset in initial data and is defined as target data.
Size threshold value imports subelement 628, for when the initial data is image file, according to the default importing Default file size threshold value in configuration file, the image file that the default file size threshold value is not met to file size enter Row compression.If default file size threshold value is 1MB, size threshold value imports image of the subelement 628 to file size for 1.5MB File is compressed, and after being compressed to 1MB, the image file is defined as into target data.
Direction imports subelement 629, for when the initial data is image file, being configured according to default import Default picture direction in file, the image file inconsistent to display direction and the default picture direction carry out display direction Adjustment.If default picture direction is vertical, direction imports subelement 629 and enters the display direction of the image file of level display Row adjustment, the display direction for making image file are vertically displayed.In addition, except being changed to longitudinal display by being shown displayed across to image, Direction imports subelement 629 can also determine the display direction of image according to the face direction in image.If face is " horizontal in image " by direction import subelement 629 can make face " setting ".
Further, the processing unit 63 specifically includes:
Subelement 631 is deleted, for the default deletion instruction in default processing configuration file, indicates the source device Delete the target data that the import unit 62 obtains.If user is sent by the first programmable button and imports instruction, work as mesh When mark data are present on target device, instruction can be deleted to the number of targets in source device according to default by deleting subelement 631 According to being deleted.If user is sent by the second programmable button imports instruction, the original of source device transmission is obtained in target device After data, deletion instruction can will be sent to source device by deleting subelement 631, for deleting the initial data on source device.
Subelement 632 is named, for the default naming rule in the default processing configuration file, to the importing The target data that unit 62 obtains is named, and the naming rule is included by the name of importing time and by importing order Name.After target data is present on target device, name subelement 632 is carried out according to that can press the importing time to target data Renaming, also renaming can be carried out according to importing order.For example, name subelement 632 by three image files according to importing Sequencing difference RNTO " 1 ", " 2 ", " 3 ".Because the name of image file often automatically generates in camera, it is ordered The regular complexity of name is not easy to recognize, and by naming subelement 632 that image file is carried out into renaming according to importing order, may be such that figure As the title easily identification of file, it is user-friendly.
Classification subelement 633, for the default classifying rules in the default processing configuration file, to the importing The target data that unit 62 obtains carries out classification storage, and the classifying rules includes:By the data class of the target data Type is classified, classified and by the mesh by the creation time classification of the target data, by the data content of the target data Mark the device identification classification of the source device belonging to data.Classifying subelement 633 can be according to the data type of target data by target Data are classified, such as the file of jpeg format is positioned over identical file folder, and the file of TXT forms is positioned over into another file Folder.Classification subelement 633 can also be classified target data according to the creation time of target data, such as be by creation time The target data on October 1st, 2012 is positioned over identical file folder, and creation time is put for the target data on October 2nd, 2012 It is placed in another file.Classifying subelement 633 can also be according to the data content of target data, such as the face in image file, The image file for belonging to the face for having very much personage's first in image file is positioned over identical file folder, will be belonged to very in image file The image file for having the face of personage's second is positioned over another file.In addition, classification subelement 633 can setting according to target data Standby sign, different files is established at least one source device to deposit the target data of each source device or initial data.
Subelement 634 is counted, is indicated for the default statistics in the default processing configuration file, to the importing The importing result for the target data that unit 62 obtains is counted.For example, what statistics subelement 634 imported to certain source device The data total amount of target data, import used in the information such as time counted, and by statistical result showed to user.Statistics is single Member 634 can also preserve statistical result, be analyzed integrally to import data to target device, and then draw each source device The comparative information of importing situation.
The equipment of data transfer provided in an embodiment of the present invention, default importing configuration files for importing selection provide according to According to the replacement manually modification to initial data.Default processing configuration file be target device provide classification to target data with Processing according to, substitute the manually classification and processing to target data.Due to reading of the import unit 62 to default importing configuration files Take and processing unit 63 reproduce to the default reading for handling configuration file, therefore the repetitive operation of user can be saved.With Family can be configured by changing default importing configuration files and default processing configuration file, improve user's body to importing process Test.In addition each subelement in processing and processing unit 63 of each subelement in import unit 62 to initial data is to target Modification, the classification of data, can shorten the overall time of data transfer, improve data transmission efficiency.
Embodiment six
The embodiments of the invention provide a kind of equipment of data transfer, as shown in figure 8, the equipment is source device, it is described Equipment includes:
Receiver 81, the data for receiving user import instruction.
The receiver 81 of the source device is specifically used for:Receive the institute that the user is sent by the first programmable button State data and import instruction.User can be imported by the first programmable button on source device, log-on data.First programmable button Can be the Import button of software form, can log-on data importing by being clicked on mouse or touch-screen;Described first default presses Key is alternatively example, in hardware, increases a button newly such as on source device, and used pressing or touch can log-on data importings.Receiver 81 are used to receive the data importing instruction that user is sent by the first programmable button, are imported with log-on data.
Processor 82, for carrying out importing selection to initial data, obtain target data.
The processor 82 of the source device is specifically used for:Importing selection is carried out to the initial data, and will be obtained The target data be sent to the target device.If user is led by the first programmable button log-on data on source device Enter, after receiver 81 receives data importing instruction, processor 82 carries out importing selection according to rule is imported to initial data.Institute State and import type of the rule including initial data, import time, the display mode of initial data, the trusted degree of target device Deng the restriction of rule.Initial data forms target data after processor 82 imports selection.After transmitter 83 will import selection Target data is directed into target device.
Transmitter 83, the target data for the processor 82 to be obtained are sent to target device.
The target data that the source device is obtained the import unit by transmitter 83 is sent to target device, So that the target device carries out classification processing to the target data.
Further, the processor 82 is further used for the default file form in default importing configuration files, The target data will be defined as with the default file format identical initial data.For example, processor 82 is in basis When default importing configuration files import selection to initial data, if default file form is jpeg format, processor 82 The initial data that file format in initial data is JPEG is defined as target data, or form imports subelement from source device It is middle to obtain the initial data that file format is JPEG.
The processor 82 is further used for the default importing moment value in the default importing configuration files, it is determined that Import the time of the target data.If the default importing moment value in default importing configuration files is 20:00, processor 82 will In 20:00 prompting user, which sends, imports instruction.
The default memory space that the processor 82 is further used in the default importing configuration files takes threshold Value, judges whether the memory space seizure condition in the source device reaches the default memory space and take threshold value, when reaching When, start and import the target data.For example, the memory space of source device is 4GB, default memory space takes threshold value and is 3.5GB.When the memory space occupancy of source device is 3.6GB, memory space imports subelement 823 and voluntarily can prompt or pass through Target device prompting user, which sends, imports instruction.
The processor 82 is further used for the default credible equipment mark in the default importing configuration files, right The target device is authenticated, when the device identification of the target device identifies for the default credible equipment, by described in Initial data is defined as the target data.In order to ensure the security of the initial data on source device, processor 82 can be passed through Target device is authenticated, to determine target device trusty.When source device sends target data or mesh to target device When marking device obtains the initial data on source device, if the device identification of target device is identical with default credible equipment mark, It is trusted device to determine target device.Otherwise, the connection of source device and target device is cancelled.
The processor 82 is further used for incremental raio in the default importing configuration files to instruction, compares institute State whether initial data has been transmitted into the target device, specifically, contrast initial data and the data in target device Whether filename, filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that When the initial data is still not transferred in the target device, the initial data is defined as the target data.It is described Incremental raio is used to available data in control targe equipment and initial data be compared to instruction, if existing in target device Data are all equal with the filename, modification time and file size of initial data, then processor 82 is by the initial data It is defined as the target data.Identical for filename, the different available data of file size, processor 82 enters to available data Row increment copies, i.e., the part that only copy original document has differences with existing file, and the part of difference can be to available data Part addition or the part of available data is deleted.Increment copy can reduce the repetition copy to available data, save The time of data transfer.
The processor 82 is further used for the attribute information addition instruction in the default importing configuration files, is The target data adds attribute information, and the attribute information is updated by internet, with ensure the accuracy of attribute information and Real-time.If attribute information addition is added in the attribute information addition instruction in default importing configuration files, instruction, then information is added Subelement 826 is that target data adds Metadata.Data of the Metadata as description file attribute information, available for describing The information such as the singer of mp3 file, the lyrics.Processor 82 is connected with internet in importing process, and obtains newest data pair Metadata is corrected and updated.So can reach Metadata is newest, most accurate data.
The processor 82 is further used for when the initial data is image file, is configured according to default import Default length and width threshold value in file, the image file that length and width are not met with the default length and width threshold value zoom in and out.If default length Wide threshold value is long 12cm, wide 9cm, long 24cm, the wide 18cm of image file, then image file is carried out half by processor 82 Scaling, to meet default length and width threshold value.In addition, processor 82 also can will preset the equal image of length and width threshold value in initial data File is defined as target data.
The processor 82 is further used for when the initial data is image file, is configured according to default import Default file size threshold value in file, the image file that the default file size threshold value is not met to file size are pressed Contracting.If default file size threshold value is 1MB, processor 82 is compressed to the image file that file size is 1.5MB, is compressed To after 1MB, the image file is defined as target data.
The processor 82 is further used for when the initial data is image file, is configured according to default import Default picture direction in file, the image file inconsistent to display direction and the default picture direction carry out display direction Adjustment.If default picture direction is vertical, the display direction of the image file of level display is adjusted by processor 82, is made The display direction of image file is vertically displayed.In addition, except being changed to longitudinal display by being shown displayed across to image, processor 82 is also The display direction of image can be determined according to the face direction in image.If in image face for " laying across " can by processor 82 Make face " setting ".
The equipment of data transfer provided in an embodiment of the present invention, default importing configuration files for importing selection provide according to According to the replacement manually modification to initial data.Default processing configuration file be target device provide classification to target data with The foundation of processing, substitute the manually classification and processing to target data.Due to reading of the processor 82 to default importing configuration files Take repetitive operation reproducible, therefore that user can be saved.User can be by changing default importing configuration files to importing process It is configured, improves Consumer's Experience.In addition processing of each subelement in processor 82 to initial data, can shorten data transfer The overall time, improve data transmission efficiency.
Embodiment seven
The embodiments of the invention provide a kind of equipment of data transfer, as shown in figure 9, the equipment is target device, institute Stating equipment includes:
Receiver 91, the data for receiving user import instruction.
The receiver 91 of the target device is specifically used for:Receive what the user was sent by the second programmable button The data import instruction.User can be imported by the second programmable button on source device, log-on data.Described second default presses Key can be the Import button of software form, can log-on data importing by being clicked on mouse or touch-screen;Described second is default Button is alternatively example, in hardware, increases a button newly such as on source device, and used pressing or touch can log-on data importings.Receive Device 91 is used to receive the data importing instruction that user is sent by the second programmable button, is imported with log-on data.
Transmitter 93, initial data is sent for importing instruction notice source device according to the data.
If user is imported by the second programmable button log-on data on target device, receiver 91 receives data and led After entering instruction, transmitter 93 imports instruction according to data and notifies the source device to send initial data, specifically can be with:To source device The transmission instruction of initial data is sent, after source device is connected to transmission instruction, initial data is sent to receiver 91.
The receiver 91 is further used for receiving the initial data that source device is sent.
Processor 92, the initial data for being received to the receiving unit carry out importing selection, obtain target data.
The processor 92 of the target device is specifically used for:The initial data received to receiver 91 is carried out Import selection.After receiver 91 receives initial data, processor 92 carries out importing selection according to rule is imported to initial data. The rule that imports includes the type of initial data, imports time, the display mode of initial data, the trusted journey of target device The restriction of the rule such as degree.Initial data forms target data after processor 92 imports selection.
Processor 92, it is further used for classifying to the target data according to the attribute of the target data of acquisition Processing.
The processor 92 of the target device is specifically used for:The target data obtained according to the processor 92 Attribute classification processing is carried out to the target data.For example, processor 92 can be according to the files classes in the attribute of target device Type, text class data, multimedia class data and picture category data are respectively put into different files, to reach to number of targets According to the effect classified.Processor 92 can also be closed by the attribute terminal to target data with the presence of corresponding initial data System, deletes initial data, to reach the effect handled target data.
Further, the processor 92 is further used for the default file form in default importing configuration files, The target data will be defined as with the default file format identical initial data.For example, processor 92 is described Processor 92 is crossed when import selection to initial data according to default importing configuration files, if default file form is JPEG Form, then it is described cross processor 92 by file format in initial data be JPEG initial data be defined as target data, or Form imports subelement and the initial data that file format is JPEG is obtained from source device.
The processor 92 is further used for the default importing moment value in the default importing configuration files, it is determined that Import the time of the target data.If the default importing moment value in default importing configuration files is 20:00, described cross is handled Device 92 will be in 20:00 prompting user, which sends, imports instruction.
The default memory space that the processor 92 is further used in the default importing configuration files takes threshold Value, judges whether the memory space seizure condition in the source device reaches the default memory space and take threshold value, when reaching When, start and import the target data.For example, the memory space of source device is 4GB, default memory space takes threshold value and is 3.5GB.When the memory space occupancy of source device is 3.6GB, the processor 92 of crossing can voluntarily be prompted or set by target Standby prompting user, which sends, imports instruction.
The processor 92 is further used for the default credible equipment mark in the default importing configuration files, right The target device is authenticated, when the device identification of the target device identifies for the default credible equipment, by described in Initial data is defined as the target data.In order to ensure the security of the initial data on source device, described cross can be led to and handled Device 92 authenticates to target device, to determine target device trusty.When source device sends target data to target device Or target device is when obtaining the initial data on source device, if the device identification of target device and default credible equipment mark phase Together, it is determined that target device is trusted device.Otherwise, the connection of source device and target device is cancelled.
The processor 92 is further used for incremental raio in the default importing configuration files to instruction, compares institute State whether initial data has been transmitted into the target device, specifically, contrast initial data and the data in target device Whether filename, filemodetime, file size are identical, if by one or at least two combination of the above differ, it is determined that When the initial data is still not transferred in the target device, the initial data is defined as the target data.It is described Incremental raio is used to available data in control targe equipment and initial data be compared to instruction, if available data and original number According to filename, modification time and file size it is all equal, then it is described cross processor 92 initial data is defined as The target data.Identical for filename, the different available data of file size, the processor 92 of crossing enters to available data Row increment copies, i.e., the part that only copy original document has differences with existing file, and the part of difference can be to available data Part addition or the part of available data is deleted.Increment copy can reduce the repetition copy to available data, save The time of data transfer.
The processor 92 is further used for the attribute information addition instruction in the default importing configuration files, is The target data adds attribute information, and the attribute information is updated by internet, with ensure the accuracy of attribute information and Real-time.If the attribute information addition instruction in default importing configuration files, instruction addition attribute information addition, then it is described cross at It is that target data adds Metadata to manage device 92.Data of the Metadata as description file attribute information, available for describing MP3 The information such as the singer of file, the lyrics.Processor 92 is crossed described in importing process to be connected with internet, and obtains newest data Metadata is corrected and updated.So can reach Metadata is newest, most accurate data.
The processor 92 is further used for when the initial data is image file, is configured according to default import Default length and width threshold value in file, the image file that length and width are not met with the default length and width threshold value zoom in and out.If default length Wide threshold value is long 12cm, wide 9cm, and long 24cm, the wide 18cm of image file, then the processor 92 of crossing is by image file progress two / mono- scaling, to meet default length and width threshold value.In addition, the processor 92 of crossing also can will preset length and width threshold in initial data It is worth equal image file and is defined as target data.
The processor 92 is further used for when the initial data is image file, is configured according to default import Default file size threshold value in file, the image file that the default file size threshold value is not met to file size are pressed Contracting.If default file size threshold value is 1MB, the processor 92 of crossing is pressed the image file that file size is 1.5MB Contracting, after being compressed to 1MB, is defined as target data by the image file.
The processor 92 is further used for when the initial data is image file, is configured according to default import Default picture direction in file, the image file inconsistent to display direction and the default picture direction carry out display direction Adjustment.If default picture direction is vertical, the display direction progress for crossing processor 92 by the image file of level display Adjustment, the display direction for making image file are vertically displayed.In addition, except being changed to longitudinal display, institute by being shown displayed across to image The display direction of image can also be determined according to the face direction in image by stating processor 92.If face is " laying across " in image Face " setting " can be made by the processor 92 of crossing.
Further, the processor 92 can also carry out classification processing to target data, specifically:
The processor 92 is further used for the default deletion instruction in default processing configuration file, indicates the source Equipment deletes the target data that the processor 92 obtains.If user is sent by the first programmable button and imports instruction, when When target data is present on target device, the processor 92 of crossing can delete instruction to the target in source device according to default Data are deleted.If user is sent by the second programmable button imports instruction, the original of source device transmission is obtained in target device After beginning data, the processor 92 of crossing can will send deletion instruction to source device, for deleting the initial data on source device.
The processor 92 is further used for the default naming rule in the default processing configuration file, to described The target data that processor 92 obtains is named, and the naming rule is including by the name of importing time and suitable by importing Sequence is named.After target data is present on target device, it is described cross processor 92 according to can to target data by import the time Renaming is carried out, also renaming can be carried out according to importing order.For example, described cross processor 92 by three image files according to leading The sequencing entered distinguishes RNTO " 1 ", " 2 ", " 3 ".Because the name of image file often automatically generates in camera, Its naming rule complexity is not easy to recognize, and image file is carried out into renaming according to importing order by the processor 92 of crossing, can So that the title of image file is easier to recognize, it is user-friendly.
The processor 92 is further used for the default classifying rules in the default processing configuration file, to described The target data that processor 92 obtains carries out classification storage, and the classifying rules includes:By the data of the target data Classification of type, by the target data creation time classification, by the target data data content classification and by described The device identification classification of source device belonging to target data.The processor 92 of crossing can be according to the data type of target data by mesh Mark data are classified, such as the file of jpeg format is positioned over identical file folder, and the file of TXT forms is positioned over into another text Part presss from both sides.The processor 92 of crossing can also be classified target data according to the creation time of target data, such as when will create Between on October 1st, 2012 target data be positioned over identical file folder, by creation time be on October 2nd, 2012 number of targets According to being positioned over another file.The processor 92 of crossing can also be according to the data content of target data, such as in image file Face, the image file that the face for having very much personage's first is belonged in image file is positioned over identical file folder, by image file The image file for belonging to the face for having very much personage's second is positioned over another file.In addition, the processor 92 excessively can be according to target The equipment sign of data, different files is established at least one source device to deposit the target data of each source device or original Data.
The default statistics that the processor 92 is further used in the default processing configuration file indicates, to described The importing result for the target data that processor 92 obtains is counted.For example, the processor 92 of crossing is led to certain source device The data total amount of the target data entered, import used in the information such as time counted, and by statistical result showed to user.It is described Can also statistical result be preserved by crossing processor 92, be analyzed integrally to import data to target device, and then draw each Source device imports the comparative information of situation.
The equipment of data transfer provided in an embodiment of the present invention, default importing configuration files for importing selection provide according to According to the replacement manually modification to initial data.Default processing configuration file be target device provide classification to target data with Processing according to, substitute the manually classification and processing to target data.Due to reading of the processor 92 to default importing configuration files And reading of the processor 92 to default processing configuration file reproduce, therefore the repetitive operation of user can be saved.User can By changing default importing configuration files and default processing configuration file, importing process is configured, improves Consumer's Experience.This Each subelement in processing and processor 92 of each subelement to initial data in outer processor 92 is repaiied to target data Change, classify, the overall time of data transfer can be shortened, improve data transmission efficiency.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application Block is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete all or part of work(described above Energy.The specific work process of the system of foregoing description, equipment and unit, it may be referred to corresponding in preceding method embodiment Journey, it will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the module or The division of unit, only a kind of division of logic function, can there are other dividing mode, such as multiple units when actually realizing Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, equipment or unit INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. it is various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of method of data transfer, the data transfer are related to source device and target device, it is characterised in that methods described Including:
The data that source device receives user import instruction;
The source device carries out importing selection to initial data, obtains target data;
The source device sends the target data to the target device, so that the target device is according to the number of targets According to attribute classification processing is carried out to the target data.
2. according to the method for claim 1, it is characterised in that the data for receiving user import instruction, specifically include:
The source device receives the data that the user is sent by the first programmable button and imports instruction.
3. the method stated according to claim 2, it is characterised in that the source device carries out importing selection to initial data, specifically Including:
Default file form of the source device in default importing configuration files, will be with the default file format phase Same initial data is defined as the target data;
Or default credible equipment mark of the source device in the default importing configuration files, the target is set It is standby to be authenticated, it is when the device identification of the target device identifies for the default credible equipment, the initial data is true It is set to the target data;
Or attribute information addition instruction of the source device in the default importing configuration files, it is the number of targets According to addition attribute information, specifically, being updated by internet to the attribute information, to ensure the accuracy of attribute information And real-time.
4. the method stated according to claim 2, it is characterised in that when the initial data is image file, the source device Importing selection is carried out to initial data, specifically included:
Length and width are not met the default length by default length and width threshold value of the source device in the default importing configuration files The image file of wide threshold value zooms in and out;
Or default file size threshold value of the source device in the default importing configuration files, to file size not The image file for meeting the default file size threshold value is compressed;
Or default picture direction of the source device in the default importing configuration files, to display direction with it is described The inconsistent image file in default picture direction carries out display direction adjustment.
5. the method stated according to claim 2, it is characterised in that the source device carries out importing selection to initial data, specifically Including:
Default importing moment value of the source device in default importing configuration files, it is determined that import the target data when Between, remind user to send data according to default importing moment value and import instruction;
Or default memory space of the source device in the default importing configuration files takes threshold value, described in judgement Whether the memory space seizure condition in source device, which reaches the default memory space, takes threshold value, when reaching, reminds user Send data and import instruction;
Or incremental raio of the source device in the default importing configuration files compares the initial data to instruction Whether transmit into the target device, specifically, filename, the file of contrast initial data and the data in target device Whether modification time, file size are identical, if by one or at least two combination of the above differ, it is determined that the initial data Still it is not transferred in the target device, the initial data is defined as the target data.
6. a kind of method of data transfer, the data transfer are related to source device and target device, it is characterised in that methods described Including:
The data that target device receives user import instruction;
The target device imports instruction according to the data and notifies the source device to send initial data;
The target device receives the initial data that the source device is sent;
The target device carries out importing selection to initial data, obtains target data;
The target device carries out classification processing according to the attribute of the target data to the target data.
7. according to the method for claim 6, it is characterised in that the data that the target device receives user import instruction, Specifically include:
The target device receives the data that the user is sent by the second programmable button and imports instruction.
8. according to the method for claim 7, it is characterised in that the target device carries out importing selection to initial data, Target data is obtained, is specifically included:
Default importing moment value of the target device in default importing configuration files, it is determined that importing the target data Time, remind user to send data according to default importing moment value and import instruction;
Or default memory space of the target device in the default importing configuration files takes threshold value, judges institute State whether the memory space seizure condition in source device reaches the default memory space occupancy threshold value, when reaching, remind and use Family sends data and imports instruction;
Or incremental raio of the target device in the default importing configuration files compares the original number to instruction According to whether having transmitted into the target device, specifically, filename, the text of contrast initial data and the data in target device Whether part modification time, file size are identical, if by one or at least two combination of the above differ, it is determined that the original number According to being still not transferred in the target device, the initial data is defined as the target data.
9. according to the method for claim 7, it is characterised in that the target device carries out importing selection to initial data, Target data is obtained, is specifically included:
Default file form of the target device in default importing configuration files, will be with the default file format Identical initial data is defined as the target data;
Or default credible equipment mark of the target device in the default importing configuration files, to the target Equipment is authenticated, when the device identification of the target device identifies for the default credible equipment, by the initial data It is defined as the target data;
Or attribute information addition instruction of the target device in the default importing configuration files, it is the target Data add attribute information, specifically, being updated by internet to the attribute information, to ensure the accurate of attribute information Property and real-time.
10. according to the method for claim 7, it is characterised in that when the initial data is image file, the target Equipment carries out importing selection to initial data, specifically includes:
Default length and width threshold value of the target device in the default importing configuration files, length and width are not met described default The image file of length and width threshold value zooms in and out;
Or default file size threshold value of the target device in the default importing configuration files, to file size The image file for not meeting the default file size threshold value is compressed;
Or default picture direction of the target device in the default importing configuration files, to display direction and institute State the inconsistent image file in default picture direction and carry out display direction adjustment.
CN201710860282.6A 2012-11-22 2012-11-22 Data transmission method and equipment Active CN107622026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710860282.6A CN107622026B (en) 2012-11-22 2012-11-22 Data transmission method and equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210478468.2A CN103838683B (en) 2012-11-22 2012-11-22 The method and apparatus of data transfer
CN201710860282.6A CN107622026B (en) 2012-11-22 2012-11-22 Data transmission method and equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210478468.2A Division CN103838683B (en) 2012-11-22 2012-11-22 The method and apparatus of data transfer

Publications (2)

Publication Number Publication Date
CN107622026A true CN107622026A (en) 2018-01-23
CN107622026B CN107622026B (en) 2021-12-03

Family

ID=50802204

Family Applications (3)

Application Number Title Priority Date Filing Date
CN201710860216.9A Active CN107622025B (en) 2012-11-22 2012-11-22 Data transmission method and equipment
CN201210478468.2A Active CN103838683B (en) 2012-11-22 2012-11-22 The method and apparatus of data transfer
CN201710860282.6A Active CN107622026B (en) 2012-11-22 2012-11-22 Data transmission method and equipment

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN201710860216.9A Active CN107622025B (en) 2012-11-22 2012-11-22 Data transmission method and equipment
CN201210478468.2A Active CN103838683B (en) 2012-11-22 2012-11-22 The method and apparatus of data transfer

Country Status (1)

Country Link
CN (3) CN107622025B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414214A (en) * 2019-01-07 2020-07-14 珠海金山办公软件有限公司 Document compression method and device, electronic equipment and computer storage medium
CN111832259A (en) * 2019-04-12 2020-10-27 中国联合网络通信集团有限公司 JSON data generation method and device

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166671A (en) * 2014-06-17 2014-11-26 京东方科技集团股份有限公司 File management method and file management device
CN104699765B (en) * 2015-02-12 2018-09-04 广东欧珀移动通信有限公司 A kind of date storage method and mobile terminal
CN106034067A (en) * 2015-03-19 2016-10-19 阿里巴巴集团控股有限公司 Picture display method, apparatus and system of instant messaging client
CN106157337B (en) * 2015-04-09 2020-10-13 腾讯科技(深圳)有限公司 Picture analysis method and analysis system
CN106534157B (en) * 2016-11-30 2019-08-23 Oppo广东移动通信有限公司 A kind of data transmission method, device and terminal
CN107181670B (en) * 2017-05-18 2020-06-02 北京小米移动软件有限公司 Picture processing method and device and storage medium
CN107643880B (en) * 2017-09-27 2021-06-29 郑州云海信息技术有限公司 File data migration method and device based on distributed file system
CN107729483B (en) * 2017-10-17 2021-05-11 Oppo广东移动通信有限公司 Classification display method, classification display device, terminal and computer-readable storage medium
CN108228107A (en) * 2018-01-02 2018-06-29 联想(北京)有限公司 A kind of data transmission method, data transmission device and electronic equipment
CN108683721B (en) * 2018-05-07 2021-10-08 广州物道水务科技有限公司 Parameter adjusting method, device and equipment
CN109002263B (en) * 2018-07-20 2021-03-19 腾讯科技(深圳)有限公司 Method and device for adjusting storage capacity
CN112988804A (en) * 2019-12-12 2021-06-18 陕西西部资信股份有限公司 Data transmission method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020021903A1 (en) * 2000-08-21 2002-02-21 Daisuke Ito Electronic camera and remote-control operation system for external apparatus
JP2004070470A (en) * 2002-08-02 2004-03-04 Megafusion Corp Information distribution system
US20050235015A1 (en) * 2004-03-31 2005-10-20 Microsoft Corporation User-configurable device storage synchronization manager
CN1922882A (en) * 2004-02-27 2007-02-28 诺基亚公司 Transferring data between devices
CN101120330A (en) * 2005-01-18 2008-02-06 莫维泰克尼克公司 Stand-alone personal portable device for transmitting and receiving a computer file between two mobile physical people
US20090037515A1 (en) * 2005-09-28 2009-02-05 Ontela, Inc. System and method for automatic transfer of data from one device to another
CN101421710A (en) * 2006-04-13 2009-04-29 音乐会技术公司 Central system providing previews of a user's media collection to a portable media player
CN101667383A (en) * 2008-09-03 2010-03-10 鸿富锦精密工业(深圳)有限公司 Picture display device, picture regulating device and picture regulating method
US20110029709A1 (en) * 2009-08-03 2011-02-03 Feiereisel Neil S Data Movement System and Method
CN102223610A (en) * 2011-06-15 2011-10-19 Tcl集团股份有限公司 Method for realizing data exchange among mobile devices and mobile device
CN102332008A (en) * 2011-08-31 2012-01-25 北京邦诺存储科技有限公司 Standard file access protocol-based file management method and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7418441B2 (en) * 2001-02-28 2008-08-26 International Business Machines Corporation Data loading from a remote data source record by record
CN102281121B (en) * 2010-06-13 2014-10-29 中兴通讯股份有限公司 Method, equipment and system for transmitting and verifying data file

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020021903A1 (en) * 2000-08-21 2002-02-21 Daisuke Ito Electronic camera and remote-control operation system for external apparatus
JP2004070470A (en) * 2002-08-02 2004-03-04 Megafusion Corp Information distribution system
CN1922882A (en) * 2004-02-27 2007-02-28 诺基亚公司 Transferring data between devices
US20050235015A1 (en) * 2004-03-31 2005-10-20 Microsoft Corporation User-configurable device storage synchronization manager
CN101120330A (en) * 2005-01-18 2008-02-06 莫维泰克尼克公司 Stand-alone personal portable device for transmitting and receiving a computer file between two mobile physical people
US20090037515A1 (en) * 2005-09-28 2009-02-05 Ontela, Inc. System and method for automatic transfer of data from one device to another
CN101421710A (en) * 2006-04-13 2009-04-29 音乐会技术公司 Central system providing previews of a user's media collection to a portable media player
CN101667383A (en) * 2008-09-03 2010-03-10 鸿富锦精密工业(深圳)有限公司 Picture display device, picture regulating device and picture regulating method
US20110029709A1 (en) * 2009-08-03 2011-02-03 Feiereisel Neil S Data Movement System and Method
CN102223610A (en) * 2011-06-15 2011-10-19 Tcl集团股份有限公司 Method for realizing data exchange among mobile devices and mobile device
CN102332008A (en) * 2011-08-31 2012-01-25 北京邦诺存储科技有限公司 Standard file access protocol-based file management method and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414214A (en) * 2019-01-07 2020-07-14 珠海金山办公软件有限公司 Document compression method and device, electronic equipment and computer storage medium
CN111832259A (en) * 2019-04-12 2020-10-27 中国联合网络通信集团有限公司 JSON data generation method and device
CN111832259B (en) * 2019-04-12 2023-09-12 中国联合网络通信集团有限公司 JSON data generation method and device

Also Published As

Publication number Publication date
CN103838683B (en) 2017-10-31
CN107622025A (en) 2018-01-23
CN107622026B (en) 2021-12-03
CN107622025B (en) 2021-03-23
CN103838683A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
CN103838683B (en) The method and apparatus of data transfer
US9462054B2 (en) Systems and methods for providing a user with a set of interactivity features locally on a user device
CN101465962B (en) Display control apparatus, display control method
CN103970779B (en) Method, device and equipment for classifying documents
CN107844530B (en) Data processing method and device, server and computer readable storage medium
EA024302B1 (en) Method and apparatus for wireless digital content management
CN106991130A (en) A kind of document handling method, device and intelligent terminal
CN101165689A (en) File management apparatus and method for controlling file management apparatus,
CN107729483B (en) Classification display method, classification display device, terminal and computer-readable storage medium
US9524333B2 (en) Network system, membership-based social network service system, image display method, and storage medium storing program
CN104166694A (en) Image classifying and storing method and electronic device
CN106777179A (en) A kind of online method for previewing of document and system
CN107765945A (en) A kind of file management method, device, terminal and computer-readable recording medium
CN103457836A (en) Method and client terminal for achieving instant messaging folder
CN107678640A (en) A kind of long screenshotss method, apparatus, mobile terminal and computer-readable recording medium
CN101378433A (en) Apparatus and method for displaying picture
CN110929058B (en) Trademark picture retrieval method and device, storage medium and electronic device
KR101647371B1 (en) STL file including text information and, STL file searching and management system therefor
CN106933702A (en) A kind of method of intelligent terminal storage space management, device and intelligent terminal
CN105528443B (en) Application management method and device and electronic equipment
CN102346721B (en) Method for uploading micro-blog photos by connecting camera with iPad
CN105320514A (en) Picture processing method and device
CN110809125B (en) Video and audio recorder management method, data processing method and equipment
Manthey et al. A support framework for automated video and multimedia workflows for production and archive
CN104978422A (en) Knowledge point based video teaching resource editing method and apparatus

Legal Events

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

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Applicant after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Applicant before: HUAWEI DEVICE Co.,Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20181220

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Applicant before: Huawei terminal (Shenzhen) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant