CN107622025B - Data transmission method and equipment - Google Patents

Data transmission method and equipment Download PDF

Info

Publication number
CN107622025B
CN107622025B CN201710860216.9A CN201710860216A CN107622025B CN 107622025 B CN107622025 B CN 107622025B CN 201710860216 A CN201710860216 A CN 201710860216A CN 107622025 B CN107622025 B CN 107622025B
Authority
CN
China
Prior art keywords
data
target
preset
import
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710860216.9A
Other languages
Chinese (zh)
Other versions
CN107622025A (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 CN201710860216.9A priority Critical patent/CN107622025B/en
Publication of CN107622025A publication Critical patent/CN107622025A/en
Application granted granted Critical
Publication of CN107622025B publication Critical patent/CN107622025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and equipment for data transmission, relates to the field of electronic equipment application, and aims to save system control resources and improve data transmission efficiency. The data transmission method comprises the following steps: the method comprises the steps that a source device receives a data import indication of a user; the source equipment conducts import selection on original data to obtain target data; and the source equipment sends the target data to the target equipment so that the target equipment can classify the target data according to the attribute of the target data. The method and the device are mainly applied to the data import process among the electronic devices.

Description

Data transmission method and equipment
Technical Field
The present invention relates to the field of electronic device applications, and in particular, to a method and device for data transmission.
Background
With the development of computer technology, data transmission between various devices is becoming simplified. Data transmission of various devices includes data transmission between a mobile device and a fixed device and data transmission between a mobile device and a mobile device. The mobile device comprises a mobile phone, a camera and a tablet Personal Computer, and the fixed device comprises a Personal Computer (called Personal Computer for short) and a set-top box.
When data is transferred between a mobile device and a stationary device, for example, iPhone4 Smart Phone from apple Inc. and a PC. Since the iphone4 has limited storage space, processing power for data, and types of processing functions, it is often necessary to transfer the data in the iphone4 to a PC where the data is further stored and processed. When the iphone4 is connected with the PC, the PC automatically pops up a data transmission prompt for the user to select whether to perform data transmission. After the user selects and transmits the data to the PC, the data is further modified on the PC, for example, the direction of the photos is modified, the storage location of the data is changed, and the like. After modification, the transmitted data is stored and processed on the PC, for example, the photos are image processed and uploaded to the network. In addition, the data transmission process between the mobile devices, such as between the tablet computer and the camera, is the same as the data transmission process between the mobile device and the fixed device described above.
In the process of realizing the data transmission, the inventor finds that at least the following problems exist in the prior art: because the data transmission prompt is automatically popped up by the PC, the transmission prompt can pop up no matter whether a user has the requirement of transmitting data or whether the transmittable data exists, and the control resource of the PC is wasted. In addition, after the user transmits the data to the PC, the data needs to be modified manually, so that the overall time of data transmission is increased, and the data transmission efficiency is reduced.
Disclosure of Invention
The data transmission method and the data transmission equipment can solve the problems that a user cannot control data transmission and PC control resources are wasted due to the fact that a data transmission prompt is automatically popped up.
In a first aspect, the present invention provides a method for data transmission, where the data transmission involves a source device and a target device, and the method includes:
the method comprises the steps that a source device receives a data import indication of a user;
the source equipment conducts import selection on original data to obtain target data;
and the source equipment sends the target data to the target equipment so that the target equipment can classify the target data according to the attribute of the target data.
In a first possible implementation manner of the first aspect, the receiving a data import indication of a user specifically includes: and the source equipment receives the data import indication sent by the user through a first preset key.
In the first aspect or the first possible implementation manner of the first aspect, a second possible implementation manner of the first aspect is further provided, and in the second possible implementation manner of the first aspect, the selecting, by the source device, to import the original data specifically includes:
the source equipment determines original data with the same format as a preset file format as the target data according to the preset file format in a preset import configuration file;
or, the source device authenticates the target device according to a preset trusted device identifier in the preset import configuration file, and when the device identifier of the target device is the preset trusted device identifier, the source device determines the original data as the target data;
or, the source device adds attribute information to the target data according to the attribute information addition instruction in the preset import configuration file, and specifically, updates the attribute information through the internet to ensure the accuracy and the real-time performance of the attribute information.
In the first aspect or the first possible or second possible implementation manner of the first aspect, a third possible implementation manner of the first aspect is further provided, and in the third possible implementation manner of the first aspect, when the original data is an image file, the importing, by the source device, the original data is selected, which specifically includes:
the source equipment zooms the image file with the length and the width which do not accord with the preset length and width threshold value according to the preset length and width threshold value in the preset import configuration file;
or the source device compresses the image file with the file size not conforming to the preset file size threshold according to the preset file size threshold in the preset import configuration file;
or the source device adjusts the display direction of the image file with the display direction inconsistent with the preset picture direction according to the preset picture direction in the preset import configuration file.
In the first aspect or the first possible, the second possible, or the third possible implementation manner of the first aspect, a fourth possible implementation manner of the first aspect is further provided, and in the fourth possible implementation manner of the first aspect, the importing, by the source device, the raw data is selected, which specifically includes:
the source equipment determines the time for importing the target data according to a preset import time value in the preset import configuration file, and reminds a user to send a data import instruction according to the preset import time value;
or the source device judges whether the occupation state of the storage space in the source device reaches the preset storage space occupation threshold value according to the preset storage space occupation threshold value in the preset import configuration file, and reminds a user to send a data import instruction when the occupation state of the storage space in the source device reaches the preset storage space occupation threshold value;
or, the source device compares, according to the increment comparison indication in the preset import configuration file, whether the original data has been transmitted to the target device, specifically, whether the file names, the file modification times, and the file sizes of the original data and the data in the target device are the same, and if one or more than two combinations are different, it is determined that the original data has not been transmitted to the target device, and the original data is determined as the target data.
In a second aspect, the present invention further provides a method for data transmission, where the data transmission involves a source device and a target device, and the method includes:
the target equipment receives a data import instruction of a user;
informing the source equipment to send original data according to the data import indication;
the target equipment receives original data sent by the source equipment;
the target equipment conducts import selection on the original data to obtain target data;
and the target equipment classifies the target data according to the attribute of the target data.
In a first possible implementation manner of the second aspect, the receiving, by the target device, a data import instruction of a user specifically includes:
and the target equipment receives the data import indication sent by the user through a second preset key.
In the second aspect or the first possible implementation manner of the first aspect, a second possible implementation manner of the second aspect is further provided, and in the second possible implementation manner of the second aspect, the obtaining target data by the target device by importing and selecting raw data specifically includes:
the target equipment determines the time for importing the target data according to a preset import time value in the preset import configuration file, and reminds a user to send a data import instruction according to the preset import time value;
or, the target device judges whether the storage space occupation state in the source device reaches a preset storage space occupation threshold value according to the preset storage space occupation threshold value in the preset import configuration file, and when the storage space occupation state in the source device reaches the preset storage space occupation threshold value, the target device reminds a user to send a data import instruction;
or, the target device compares, according to the increment comparison indication in the preset import configuration file, whether the original data has been transmitted to the target device, specifically, whether the file names, the file modification times, and the file sizes of the original data and the data in the target device are the same, and if one or more than two combinations are different, it is determined that the original data has not been transmitted to the target device, the original data is determined to be the target data.
In the second aspect or the first possible implementation manner or the second possible implementation manner of the second aspect, a third possible implementation manner of the second aspect is further provided, and in the third possible implementation manner of the second aspect, the importing, by the target device, the raw data to obtain the target data specifically includes:
the target equipment determines original data with the same format as a preset file format as the target data according to the preset file format in a preset import configuration file;
or, the target device authenticates the target device according to a preset trusted device identifier in the preset import configuration file, and when the device identifier of the target device is the preset trusted device identifier, the original data is determined as the target data;
or, the target device adds attribute information to the target data according to the attribute information addition instruction in the preset import configuration file, and specifically, updates the attribute information through the internet to ensure the accuracy and the real-time performance of the attribute information.
In the second aspect or the first possible or the second possible or the three possible implementation manners of the second aspect, a fourth possible implementation manner of the second aspect is further provided, and in a fourth possible implementation manner of the second aspect, when the original data is an image file, the importing, by the target device, the original data is selected, which specifically includes:
the target device zooms the image file with the length and width which do not accord with the preset length and width threshold value according to the preset length and width threshold value in the preset import configuration file;
or the target device compresses the image file with the file size not conforming to the preset file size threshold according to the preset file size threshold in the preset import configuration file;
or the target device adjusts the display direction of the image file with the display direction inconsistent with the preset picture direction according to the preset picture direction in the preset import configuration file.
In the second aspect or the first possible or second possible or third possible or fourth possible implementation manner of the second aspect, a fifth possible implementation manner of the second aspect is further provided, and in the fifth possible implementation manner of the second aspect, the classifying, by the target device, the target data according to the attribute of the target data specifically includes:
the target equipment instructs the source equipment to delete the target data according to a preset deletion instruction in a preset processing configuration file;
or the target device names the target data according to a preset naming rule in the preset processing configuration file, wherein the naming rule comprises naming according to import time and naming according to an import sequence;
or, the target device classifies and stores the target data according to a preset classification rule in the preset processing configuration file, where the classification rule includes: classifying according to the data type of the target data, classifying according to the creation time of the target data, classifying according to the data content of the target data and classifying according to the equipment identification of the source equipment to which the target data belongs;
or the target device counts the import result of the target data according to a preset counting instruction in the preset processing configuration file.
In a third aspect, the present invention provides a device for data transmission, where the device is a source device, and the device includes:
a receiving unit, configured to receive a data import instruction of a user;
the import unit is used for carrying out import selection on the original data to obtain target data;
and the sending unit is used for sending the target data obtained by the importing unit to target equipment.
In a first possible implementation manner of the third aspect, the receiving unit is specifically configured to: and receiving the data import indication sent by the user through a first preset key.
In the third aspect or the first possible implementation manner of the third aspect, a second possible implementation manner of the third aspect is further provided, and in the second possible implementation manner of the third aspect, the importing unit specifically includes:
the time value importing subunit is used for determining the time for importing the target data according to a preset importing time value in a preset importing configuration file, and reminding a user to send a data importing instruction according to the preset importing time value;
the storage space importing subunit is configured to determine, according to a preset storage space occupation threshold in the preset importing configuration file, whether a storage space occupation state in the source device reaches the preset storage space occupation threshold, and when the storage space occupation state in the source device reaches the preset storage space occupation threshold, prompt a user to send a data importing instruction;
an increment import subunit, configured to compare, according to an increment comparison indication in the preset import configuration file, whether the original data has been transmitted to the target device, specifically, whether file names, file modification times, and file sizes of the original data and data in the target device are the same, and if one or at least two combinations are different, determine that the original data has not been transmitted to the target device, determine that the original data is the target data.
In the third aspect or the first possible implementation manner or the second possible implementation manner of the third aspect, a third possible implementation manner of the third aspect is further provided, and in a third possible implementation manner of the third aspect, the importing unit specifically includes:
the file format importing subunit is configured to determine, according to a preset file format in a preset importing configuration file, original data in the same format as the preset file format as the target data;
a trusted device importing subunit, configured to authenticate the target device according to a preset trusted device identifier in the preset importing configuration file, and determine the original data as the target data when the device identifier of the target device is the preset trusted device identifier;
and the information adding subunit is used for adding attribute information to the target data according to the attribute information adding instruction in the preset import configuration file, and specifically, updating the attribute information through the internet so as to ensure the accuracy and the real-time performance of the attribute information.
In the third aspect or the first possible or second possible or three possible implementation manners of the third aspect, a fourth possible implementation manner of the third aspect is further provided, and in a fourth possible implementation manner of the third aspect, the importing unit specifically includes:
a length and width threshold importing subunit, configured to, when the original data is an image file, scale, according to a preset length and width threshold in the preset importing configuration file, the image file whose length and width do not meet the preset length and width threshold;
a size threshold import subunit, configured to, when the original data is an image file, compress, according to a preset file size threshold in the preset import configuration file, an image file whose file size does not meet the preset file size threshold;
and the direction importing subunit is used for adjusting the display direction of the image file with the display direction inconsistent with the preset image direction according to the preset image direction in the preset importing configuration file when the original data is the image file.
In a fourth aspect, the present invention provides a device for data transmission, where the device is a target device, and the device includes:
a receiving unit, configured to receive a data import instruction of a user;
a sending unit, configured to notify a source device to send original data according to a data import instruction;
the receiving unit is further configured to receive original data sent by the source device;
the import unit is used for importing and selecting the original data received by the receiving unit to obtain target data;
and the processing unit is used for classifying the target data according to the attribute of the target data obtained by the importing unit.
In a first possible implementation manner of the fourth aspect, the receiving unit is further configured to receive the data import indication sent by the user through a second preset key.
In the fourth aspect or the first possible implementation manner of the fourth aspect, a second possible implementation manner of the fourth aspect is further provided, and in the second possible implementation manner of the fourth aspect, the importing unit specifically includes:
the time value importing subunit is configured to determine, according to a preset importing time value in the preset importing configuration file, time for importing the target data, and remind a user to send a data importing instruction according to the preset importing time value;
the storage space importing subunit is configured to determine, according to a preset storage space occupation threshold in the preset importing configuration file, whether a storage space occupation state in the source device reaches the preset storage space occupation threshold, and when the storage space occupation state in the source device reaches the preset storage space occupation threshold, prompt a user to send a data importing instruction;
an increment import subunit, configured to compare, according to an increment comparison indication in the preset import configuration file, whether the original data has been transmitted to the target device, specifically, whether file names, file modification times, and file sizes of the original data and data in the target device are the same, and if one or at least two combinations are different, determine that the original data has not been transmitted to the target device, determine that the original data is the target data.
In the fourth aspect or the first possible implementation manner or the second possible implementation manner of the fourth aspect, a third possible implementation manner of the fourth aspect is further provided, and in a third possible implementation manner of the fourth aspect, the importing unit specifically includes:
the file format importing subunit is configured to determine, according to a preset file format in a preset importing configuration file, original data in the same format as the preset file format as the target data;
a trusted device importing subunit, configured to authenticate the target device according to a preset trusted device identifier in the preset importing configuration file, and determine the original data as the target data when the device identifier of the target device is the preset trusted device identifier;
and the information adding subunit is used for adding attribute information to the target data according to the attribute information adding instruction in the preset import configuration file, and specifically, updating the attribute information through the internet so as to ensure the accuracy and the real-time performance of the attribute information.
In the fourth aspect or the first possible, second possible, or third possible implementation manner of the fourth aspect, a fourth possible implementation manner of the fourth aspect is further provided, and in a fourth possible implementation manner of the fourth aspect, the importing unit specifically includes:
a length and width threshold importing subunit, configured to, when the original data is an image file, scale, according to a preset length and width threshold in the preset importing configuration file, the image file whose length and width do not meet the preset length and width threshold;
a size threshold import subunit, configured to, when the original data is an image file, compress, according to a preset file size threshold in the preset import configuration file, an image file whose file size does not meet the preset file size threshold;
and the direction importing subunit is used for adjusting the display direction of the image file with the display direction inconsistent with the preset image direction according to the preset image direction in the preset importing configuration file when the original data is the image file.
In the fourth aspect, or the first possibility of the fourth aspect, or the second possibility of the fourth aspect, or the third possibility of the fourth aspect, or a fourth possible implementation manner of the fourth aspect, a fifth possible implementation manner of the fourth aspect is further provided, and in the fifth possible implementation manner of the fourth aspect, the processing unit specifically includes:
a deleting subunit, configured to instruct, according to a preset deleting instruction in a preset processing configuration file, the source device to delete the target data;
the naming subunit is used for naming the target data according to a preset naming rule in the preset processing configuration file, wherein the naming rule comprises naming according to import time and naming according to an import sequence;
a classification subunit, configured to perform classification storage on the target data according to a preset classification rule in the preset processing configuration file, where the classification rule includes: classifying according to the data type of the target data, classifying according to the creation time of the target data, classifying according to the data content of the target data and classifying according to the equipment identification of the source equipment to which the target data belongs;
and the counting subunit is used for counting the import result of the target data according to a preset counting instruction in the preset processing configuration file.
In a fifth aspect, the present invention provides a device for data transmission, where the device is a source device, and the device includes:
a receiver for receiving a data import indication of a user;
the processor is used for carrying out import selection on the original data to obtain target data;
a transmitter for transmitting the target data obtained by the processor to a target device.
In a first possible implementation manner of the fifth aspect, the receiver is specifically configured to: and receiving the data import indication sent by the user through a first preset key.
In the fifth aspect or the first possible implementation manner of the fifth aspect, a second possible implementation manner of the fifth aspect is further provided, and in the second possible implementation manner of the fifth aspect, the processor is further configured to determine, according to a preset import time value in the preset import configuration file, a time for importing the target data, and remind a user to send a data import instruction according to the preset import time value;
the processor is further configured to determine whether the storage space occupation state in the source device reaches a preset storage space occupation threshold according to the preset storage space occupation threshold in the preset import configuration file, and when the storage space occupation state in the source device reaches the preset storage space occupation threshold, prompt a user to send a data import instruction;
the processor is further configured to compare whether the original data has been transmitted to the target device according to the increment comparison indication in the preset import configuration file, specifically, compare whether file names, file modification times, and file sizes of the original data and data in the target device are the same, and if one or more than two combinations are different, determine that the original data has not been transmitted to the target device, determine that the original data is the target data.
In the fifth aspect or the first possible implementation manner or the second possible implementation manner of the fifth aspect, a third possible implementation manner of the fifth aspect is further provided, and in the third possible implementation manner of the fifth aspect, the processor is further configured to determine, according to a preset file format in a preset import configuration file, original data in the same format as the preset file format as the target data;
the processor is further configured to authenticate the target device according to a preset trusted device identifier in the preset import configuration file, and determine the original data as the target data when the device identifier of the target device is the preset trusted device identifier;
the processor further adds attribute information to the target data according to the attribute information adding instruction in the preset import configuration file, and specifically, updates the attribute information through the internet to ensure the accuracy and the real-time performance of the attribute information.
In a fourth possible implementation manner of the fifth aspect, when the original data is an image file, the processor is further configured to scale the image file with a length and a width that do not meet a preset length and width threshold according to the preset length and width threshold in the preset import configuration file;
the processor is further configured to, when the original data is an image file, compress the image file whose file size does not conform to the preset file size threshold according to a preset file size threshold in the preset import configuration file;
and the processor also adjusts the display direction of the image file with the display direction inconsistent with the preset image direction according to the preset image direction in the preset import configuration file when the original data is the image file.
In a sixth aspect, the present invention provides a device for data transmission, where the device is a target device, and the device includes:
a receiver for receiving a data import indication of a user;
a sender for informing the source device to send original data according to a data import indication;
the receiver is further used for receiving the original data sent by the source equipment;
the processor is used for carrying out import selection on the original data received by the receiver to obtain target data;
the processor is further used for classifying the target data according to the obtained attribute of the target data.
In a first possible implementation manner of the sixth aspect, the receiver is further configured to receive the data import indication sent by the user through a second preset key.
In the sixth aspect or the first possible implementation manner of the sixth aspect, a second possible implementation manner of the sixth aspect is further provided, and in the second possible implementation manner of the sixth aspect, the processor is further configured to determine, according to a preset import time value in the preset import configuration file, a time for importing the target data, and remind a user to send a data import instruction according to the preset import time value;
the processor is further configured to determine whether the storage space occupation state in the source device reaches a preset storage space occupation threshold according to the preset storage space occupation threshold in the preset import configuration file, and when the storage space occupation state in the source device reaches the preset storage space occupation threshold, prompt a user to send a data import instruction;
the processor is further configured to compare whether the original data has been transmitted to the target device according to the increment comparison indication in the preset import configuration file, specifically, compare whether file names, file modification times, and file sizes of the original data and data in the target device are the same, and if one or more than two combinations are different, determine that the original data has not been transmitted to the target device, determine that the original data is the target data.
In the sixth aspect or the first possible implementation manner or the second possible implementation manner of the sixth aspect, a third possible implementation manner of the sixth aspect is further provided, and in the third possible implementation manner of the sixth aspect: the processor is further used for determining original data with the same format as a preset file format as the target data according to the preset file format in a preset import configuration file;
the processor is further configured to authenticate the target device according to a preset trusted device identifier in the preset import configuration file, and determine the original data as the target data when the device identifier of the target device is the preset trusted device identifier;
the processor is further configured to add attribute information to the target data according to the attribute information addition instruction in the preset import configuration file, and specifically, update the attribute information through the internet to ensure accuracy and real-time performance of the attribute information.
In the sixth aspect or the first possible implementation manner, the second possible implementation manner or the third possible implementation manner of the sixth aspect, a fourth possible implementation manner of the sixth aspect is further provided, and in the fourth possible implementation manner of the sixth aspect, the processor is further configured to, when the original data is an image file, scale the image file with a length and a width that do not meet a preset length and width threshold according to a preset length and width threshold in the preset import configuration file;
the processor is further configured to, when the original data is an image file, compress the image file whose file size does not conform to the preset file size threshold according to a preset file size threshold in the preset import configuration file;
and the processor is further used for adjusting the display direction of the image file with the display direction inconsistent with the preset image direction according to the preset image direction in the preset import configuration file when the original data is the image file.
In a fifth possible implementation manner of the sixth aspect, or the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the sixth aspect, or the third possible implementation manner of the sixth aspect, the processor is further configured to instruct the source device to delete the target data according to a preset deletion indication in a preset processing profile;
the processor is further configured to name the target data according to a preset naming rule in the preset processing configuration file, where the naming rule includes naming according to import time and naming according to an import sequence;
the processor is further configured to perform classified storage on the target data according to a preset classification rule in the preset processing configuration file, where the classification rule includes: classifying according to the data type of the target data, classifying according to the creation time of the target data, classifying according to the data content of the target data and classifying according to the equipment identification of the source equipment to which the target data belongs;
the processor is further configured to count the import result of the target data according to a preset counting instruction in the preset processing configuration file.
By the provided data transmission method and device, the data import indication is used as a command for starting data transmission, and control resources for automatically popping up a transmission prompt can be saved. The modification of the original data is realized by importing and selecting the original data; the classification processing is carried out on the target data, and the transmitted target data can be further classified and processed; the user does not need to modify the transmitted target data. Because the time for modifying and processing the original data by the equipment is less than the time for manual processing, the overall time for data transmission is shortened, and the data transmission efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method of data transmission according to an embodiment of the present invention;
FIG. 2(a) is a schematic diagram of an embodiment of the present invention;
FIG. 2(b) is another schematic diagram of an embodiment of the present invention;
FIG. 3 is a flow chart of another method of data transmission in accordance with an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a source device in an embodiment of the present invention;
fig. 5 is another schematic structural diagram of a source device in the embodiment of the present invention;
FIG. 6 is a schematic diagram of a target device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another structure of a target device in an embodiment of the present invention;
fig. 8 is a schematic diagram of a further configuration of a source device in an embodiment of the invention;
fig. 9 is a schematic structural diagram of a target device in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
An embodiment of the present invention provides a method for data transmission, as shown in fig. 1, where the data transmission relates to a source device and a target device, and the method includes:
step 101, a source device receives a data import indication of a user.
And the source equipment receives the data import indication sent by the user through a first preset key.
The invention provides a data transmission method, and relates to a source device storing data and a target device for receiving the data. When a user needs to import data from a source device to a target device, as shown in fig. 2(a), data import may be initiated through a first preset key on the source device. At this time, the source device receives a data import indication sent by the user through the first preset key. The user can start data import through a first preset key on the source equipment. The first preset key can be an 'import' button in a software form, and data import can be started by clicking on a mouse or a touch screen; the first preset key may also be in a hardware form, for example, a key is added to the source device, and data import may be initiated by pressing or touching the key.
And 102, the source equipment conducts import selection on the original data to obtain target data.
And if the user starts data import through a first preset key on the source equipment, the source equipment receives a data import instruction and conducts import selection on the original data according to an import rule. The import rule comprises the definition of the type of the original data, the import time, the display mode of the original data, the credibility of the target device and the like. And after the original data are imported and selected, target data are formed. And the source equipment imports the imported and selected target data into the target equipment.
And 103, the source equipment sends the target data to target equipment.
And the source equipment sends the target data to the target equipment so that the target equipment can classify the target data according to the attribute of the target data obtained in the step 102. The attributes of the target data comprise the file format, the file name, the existing relationship with the corresponding original data and the like of the target data. And the target equipment carries out classification processing on the target data according to the classification processing rule.
For example, the target device may put the text type data, the multimedia type data, and the picture type data into different folders according to the file type in the attribute of the target device, so as to achieve the effect of classifying the target data. The target device can also delete the original data through the existing relationship between the attribute terminal of the target data and the corresponding original data so as to achieve the effect of processing the target data.
According to the data transmission method provided by the embodiment of the invention, the data import instruction sent by the user through the first preset key is used as the command for starting data transmission, so that the control resource for automatically popping up the transmission prompt is saved. The source device conducts import selection on the original data according to the import rule, and the original data can be modified according to user setting. The source equipment modifies, classifies and processes the original data, so that the overall time of data transmission can be shortened, and the data transmission efficiency is improved.
Example two
An embodiment of the present invention provides a method for data transmission, as shown in fig. 3, where the data transmission relates to a source device and a target device, and the method includes:
step 301, the target device receives a data import indication of a user.
And the target equipment receives the data import indication sent by the user through a second preset key.
The embodiment of the invention provides a data transmission method, and relates to source equipment storing data and target equipment for receiving the data. When the user needs to import data from the source device to the target device, as shown in fig. 2(b), the data import may also be started through a second preset key on the target device. At this time, the target device receives the data import indication sent by the user through the second preset key. And the user can start data import through a second preset key on the target equipment. The second preset key can be an 'import' button in a software form, and data import can be started by clicking on a mouse or a touch screen; the second preset key may also be in a hardware form, for example, a new key is added on the target device, and data import may be started by pressing or touching.
Step 302, the target device notifies the source device to send original data according to the data import indication.
And if the user starts data import through a second preset key on the target equipment or the user starts data import through a data import instruction sent by the first preset key from the source equipment. And after receiving the data import instruction, the target equipment informs the source equipment of sending the original data according to the data import instruction.
Step 303, the target device receives the original data sent by the source device;
after the target device sends a sending instruction of the original data to the source device, the source device sends the original data to the target device after receiving the sending instruction.
And 304, the target device conducts import selection on the original data to obtain target data.
And after receiving the original data sent by the source equipment, the target equipment conducts import selection on the original data.
And after the target equipment acquires the original data, importing and selecting the original data according to an importing rule. The import rule comprises the definition of the type of the original data, the import time, the display mode of the original data, the credibility of the target device and the like. And after the original data are imported and selected, target data are formed.
And 305, the target device classifies the target data according to the attribute of the target data.
The target device classifies the target data according to the attribute of the target data obtained in step 304. The attributes of the target data comprise the file format, the file name, the existing relationship with the corresponding original data and the like of the target data. And the target equipment carries out classification processing on the target data according to the classification processing rule.
For example, the target device may put the text type data, the multimedia type data, and the picture type data into different folders according to the file type in the attribute of the target device, so as to achieve the effect of classifying the target data. The target device can also delete the original data through the existing relationship between the attribute terminal of the target data and the corresponding original data so as to achieve the effect of processing the target data.
According to the data transmission method provided by the embodiment of the invention, the data import instruction sent by the user through the second preset key is used as the command for starting data transmission, so that the control resource for automatically popping up the transmission prompt is saved. The target device conducts import selection on the original data according to the import rule, and can modify the original data according to user setting. The target device classifies the target data according to the classification processing rule, and the target data can be classified and processed according to the attribute of the target data. The target equipment modifies, classifies and processes the original data, so that the overall time of data transmission can be shortened, and the data transmission efficiency is improved.
EXAMPLE III
An embodiment of the present invention further provides a data transmission method, where the import rule in step 102 in the first embodiment or in step 304 in the second embodiment may be recorded by a preset import configuration file, and the import options in the first embodiment and the second embodiment are further described below according to different configuration options in the preset import configuration file, specifically as follows:
1) and determining original data with the same format as the preset file format as the target data according to the preset file format in a preset import configuration file.
When the source device or the target device imports and selects raw data according to a preset import configuration file, if a preset file format is a Joint Photographic Experts Group (JPEG for short) format, the source device determines the raw data of the raw data with the file format of JPEG as the target data, or the target device acquires the raw data of the file format of JPEG from the source device. The preset file format enables a user to select data in a certain file format without manual work, and therefore data transmission efficiency is improved.
2) And determining the time for importing the target data according to a preset import time value in the preset import configuration file.
When the source device or the target device imports and selects original data according to a preset import configuration file, if a preset import time value in the preset import configuration file is 20:00, the source device or the target device prompts a user to send an import instruction at 20: 00. The user can set the preset import time value in the preset import configuration file according to the self requirement, and when the preset import time value is reached, the source device or the target device reminds the user to send an import instruction, so that the user experience is improved.
3) And judging whether the storage space occupation state in the source equipment reaches the preset storage space occupation threshold value or not according to the preset storage space occupation threshold value in the preset import configuration file, and starting the import of the target data or reminding a user to send an import instruction when the storage space occupation state in the source equipment reaches the preset storage space occupation threshold value, so that the user experience is improved.
When the source device or the target device imports and selects original data according to a preset import configuration file, if the storage space of the source device is 4GB, the preset storage space occupation threshold is 3.5 GB. When the storage space occupation amount of the source device is 3.6GB, the source device can prompt a user to send an import instruction by itself or through the target device or prompt the user to send the import instruction after the target device acquires the storage state of the source device. For example, when the occupied amount of the storage space in the camera exceeds the preset storage space occupation threshold, the user is reminded to send the import instruction, so that the problem that the user cannot take a picture due to insufficient storage space when taking a picture next time due to carelessness can be avoided.
4) And authenticating the target equipment according to a preset trusted equipment identifier in the preset import configuration file, and determining the original data as the target data when the equipment identifier of the target equipment is the preset trusted equipment identifier.
When the source device or the target device imports and selects the original data according to the preset import configuration file, in order to ensure the security of the original data on the source device, the trusted target device can be determined by authenticating the target device. When the source device sends target data to the target device or the target device obtains original data on the source device, if the device identifier of the target device is the same as the preset trusted device identifier, the target device is determined to be a trusted device. Otherwise, canceling the connection between the source device and the target device. The original data on the source equipment can be protected through presetting the trusted equipment identification, and the loss and the leakage of the original data are prevented.
5) And comparing whether the original data is transmitted to the target equipment or not according to the increment comparison indication in the preset import configuration file, specifically, comparing whether the file names, the file modification time and the file sizes of the original data and the data in the target equipment are the same or not, and if one or more than two combinations are different, determining that the original data is not transmitted to the target equipment, and determining the original data as the target data.
And the increment comparison indication is used for comparing the existing data and the original data in the control target equipment, and if the file names, the modification time and the file sizes of the existing data and the original data are all equal, the original data is determined as the target data. For the existing data with the same file name and different file sizes, incremental copy can be performed on the existing data, that is, only the part of the original file which is different from the existing file is copied, and the different part can be added to or deleted from the existing data. Incremental copying can reduce repeated copying of the existing data and save the time of data transmission.
6) And adding attribute information for the target data according to the attribute information addition instruction in the preset import configuration file, wherein the attribute information is updated through the Internet so as to ensure the accuracy and the real-time property of the attribute information.
When the source device or the target device imports and selects original data according to a preset import configuration file, if attribute information addition indication in the preset import configuration file indicates that attribute information addition is added, the source device or the target device adds Metadata (Metadata) to the target data. Metadata, as data describing file attribute information, can be used to describe information such as singers and lyrics of a Moving Picture Experts Group Audio Layer III (MP 3 for short) file. And connecting with the Internet in the importing process, and obtaining the latest data to correct and update the Metadata. This achieves that Metadata is the most up-to-date, most accurate data.
When the original data is an image file, the importing selection is performed on the original data, and step 102 further includes: the image file comprises pictures and frame pictures in the video.
7) And zooming the image file with the length and the width which do not accord with the preset length and width threshold value according to the preset length and width threshold value in the preset import configuration file.
When the source device or the target device imports and selects original data according to a preset import configuration file, if the preset length and width threshold is 12cm in length and 9cm in width, and the length of the image file is 24cm in length and 18cm in width, the source device or the target device scales the image file by one half to meet the preset length and width threshold.
In addition, the source device or the target device may also determine, as the target data, an image file whose original data meets a preset length-width threshold.
8) And compressing the image file with the file size not conforming to the preset file size threshold according to the preset file size threshold in the preset import configuration file. The preset file size threshold is a threshold of the size of the storage space occupied by the image file.
When the source device or the target device imports and selects original data according to a preset import configuration file, if a preset file size threshold is 1MB, compressing an image file with the file size of 1.5MB, and after the image file is compressed to 1MB, determining the image file as target data by the source device or the target device.
9) And adjusting the display direction of the image file with the display direction inconsistent with the preset picture direction according to the preset picture direction in the preset import configuration file.
When the source device or the target device imports and selects original data according to a preset import configuration file, if the preset picture direction is vertical, the source device or the target device adjusts the display direction of the horizontally displayed image file to enable the display direction of the image file to be vertical. In addition, in addition to the change of the horizontal display to the vertical display of the image, the display direction of the image can be determined according to the face direction in the image. If the face in the image is 'horizontal', the face is 'vertical' by adjusting the display direction.
In both the first and second embodiments of the present invention, the target device serves as an execution subject for performing classification processing on target data. The classification processing rules in step 304 of the second embodiment can be recorded in a preset processing configuration file, and the following further describes the classification processing in the first and second embodiments according to different indication information in the preset processing configuration file, specifically as follows:
a) and instructing the source equipment to delete the target data according to a preset deletion instruction in a preset processing configuration file.
If the user sends the import instruction through the first preset key, when the target data is already stored on the target device, the target data in the source device can be deleted according to the preset deletion instruction. Because the original data on the source device forms the target data after being imported and selected, after the target data of the source device is deleted, the original data corresponding to the target data is also deleted.
If the user sends the import instruction through the second preset key, after the target device obtains the original data sent by the source device, the target device may send a deletion instruction to the source device for deleting the original data on the source device.
b) Naming the target data according to a preset naming rule in the preset processing configuration file, wherein the naming rule comprises naming according to import time and naming according to an import sequence.
After the target data is stored on the target device, the target device renames the target data according to the import time and the import sequence. For example, the three image files are renamed to "1", "2", and "3", respectively, in the order of import. Because the name of the image file is always automatically generated in the camera, the name rule is complex and is difficult to identify, and the name of the image file can be more easily identified by renaming the image file according to the import sequence, thereby being convenient for a user to use.
c) Classifying and storing the target data according to a preset classification rule in the preset processing configuration file, wherein the classification rule comprises: the data type of the target data is classified, the creation time of the target data is classified, the data content of the target data is classified, and the equipment identification of the source equipment to which the target data belongs is classified.
The target device may classify the target data according to its data type, such as JPEG formatted files in the same folder and TXT formatted files in another folder.
The target device may classify the target data according to the creation time of the target data, for example, place the target data with the creation time of 2012, 10, month and 1 in the same folder, and place the target data with the creation time of 2012, 10, month and 2 in another folder.
The target device may place an image file of the image file that belongs to a face of a person of the person a in the same folder and an image file of the image file that belongs to a face of a person of the person b in another folder based on the data content of the target data, such as a face of a person in the image file.
The target device may establish a different folder for at least one source device according to the device identifier of the target data to store the target data or the original data of each source device.
d) And counting the import result of the target data according to a preset counting instruction in the preset processing configuration file.
For example, the target device counts information such as the total amount of data of target data imported by a certain source device and the time taken for importing, and displays the statistical result to the user. And the statistical result can be stored so as to analyze the whole import data of the target equipment and further obtain the comparison information of the import condition of each source equipment.
The following further describes an embodiment of the present invention through two application scenarios, where scenario one is an example of combining the first embodiment with the third embodiment, and scenario two is an example of combining the second embodiment with the third embodiment, as shown below:
scene one
The source device is an iphone4 smartphone from apple, inc, and the target device is a PC. The import rules in the preset import configuration file are as follows: the file formats are JPEG and MP3, the trusted device identifier is a first device, and the length and width threshold is 12cm long and 9cm wide. The classification processing rules in the preset processing configuration file are as follows: the preset deleting indication is deleting, the preset naming rule is naming according to the importing sequence, the preset classification rule is classifying according to the data type of the target data, and the preset statistical indication is counting the time used for importing.
When the user connects the iphone4 with the PC, the user clicks the "import" button, i.e. the first preset button, on the iphone 4. After the iphone4 receives the import instruction, the iphone4 obtains the device identifier of the PC, judges whether the device identifier of the PC is the preset trusted device identifier "first device", if so, the iphone4 scans the data stored in the iphone, determines the original data with the file formats of JPEG and MP3 as target data, adjusts the length and width of the file with the file format of a JPEG image file according to the preset length-width threshold value of 12cm and 9cm, and transmits the target data from the iphone4 to the PC. The PC sends a deletion instruction to the iphone4 after all target data are received according to the classification processing rule of the preset processing configuration file, the deletion instruction instructs to delete target data in the JPEG format and the MP3 format in the iphone4, the target data in each JPEG format is stored in the same folder, the target data in each MP3 format is stored in another folder, and the target data in each JPEG format and the target data in each MP3 format in the folders are renamed according to the import sequence. At this time, the PC counts the time taken for renaming the target data to be completed from the time when the user clicks the "import" button to the time when the user clicks the "import" button, and displays the time taken for renaming to the user.
Scene two
The source device is a USB flash drive (USB flash, abbreviated as USB disk), and the target device is a PC. The import rules in the preset import configuration file are as follows: the preset file format is JPEG and motion Picture Experts Group Audio Layer III (MP 3 for short), the preset credible device identification is 'first device' and 'second device', and the preset length and width threshold is 12cm in length and 9cm in width. The classification processing rules in the preset processing configuration file are as follows: the preset naming rule is named according to the import sequence, the preset classification rule is classified according to the data type of the target data, and the preset statistic indication is the time for statistic import.
After the user connects the USB flash disk with the PC, the user clicks an import button on the PC, namely a second preset key. After receiving the import instruction, the PC checks whether the equipment identification of the PC is consistent with the preset trusted equipment identification. If the device identifier of the PC is the "second device", the PC is obtained as the trusted device by comparing the preset trusted device identifiers "first device" and "second device" specified in the preset import configuration file. And the PC sends a sending instruction of the original data to the USB flash disk to acquire the original data in the USB flash disk. After the PC acquires the original data, the original data with the file formats of JPEG and MP3 in the original data are determined as target data, and the length and the width of the file with the file format of JPEG image file are adjusted according to the preset length and width threshold values of 12cm in length and 9cm in width. And the PC stores the target data in each JPEG format in the same folder and stores the target data in each MP3 format in another folder after all the target data are received according to the classification processing rule of the preset processing configuration file, and the target data in each JPEG format and the target data in each MP3 format in the folders are renamed according to the import sequence. At this time, the PC counts the time taken for renaming the target data to be completed from the time when the user clicks the "import" button to the time when the user clicks the "import" button, and displays the time taken for renaming to the user.
According to the data transmission method provided by the embodiment of the invention, the preset import configuration file provides a basis for import selection, and manual modification of original data is replaced. The preset processing configuration file provides a basis for classifying and processing the target data for the target equipment, and replaces manual classification and processing of the target data. Since the reading of the preset import profile and the preset processing profile by the source device or the target device is reproducible, repetitive operations by the user can be saved. The user can set the import process by modifying the preset import configuration file and the preset processing configuration file, so that the user experience is improved. The modification, classification and processing of the original data by the external source equipment or the target equipment can shorten the overall time of data transmission and improve the data transmission efficiency.
Example four
An embodiment of the present invention provides a device for data transmission, and as shown in fig. 4, the device is a source device, and the device includes:
a receiving unit 41, configured to receive a data import indication of a user.
The receiving unit 41 of the source device is specifically configured to: and receiving the data import indication sent by the user through a first preset key. The user can start data import through a first preset key on the source equipment. The first preset key can be an 'import' button in a software form, and data import can be started by clicking on a mouse or a touch screen; the first preset key may also be in a hardware form, for example, a key is added to the source device, and data import may be initiated by pressing or touching the key. The receiving unit 41 is configured to receive a data import instruction sent by a user through a first preset key, so as to start data import.
And the importing unit 42 is used for importing and selecting the original data to obtain the target data.
The importing unit 42 of the source device is specifically configured to: and carrying out import selection on the original data, and sending the obtained target data to the target equipment. If the user starts data import through a first preset key on the source device, after the receiving unit 41 receives a data import instruction, the importing unit 42 performs import selection on the original data according to an import rule. The import rule comprises the definition of the type of the original data, the import time, the display mode of the original data, the credibility of the target device and the like. The raw data is imported by the import unit 42 and selected to form target data. The transmitting unit 43 imports the import selected target data to the target device.
A sending unit 43, configured to send the target data obtained by the importing unit to a target device.
The source device sends the target data obtained by the importing unit to the target device through the sending unit 43, so that the target device can classify the target data.
Further, as shown in fig. 5, the importing unit 42 specifically includes:
the file format importing subunit 421 is configured to determine, according to a preset file format in a preset importing configuration file, original data in the same format as the preset file format as the target data. For example, when the file format import sub-unit 421 of the import unit 42 selects to import the raw data according to the preset import configuration file, if the preset file format is the JPEG format, the file format import sub-unit 421 determines the raw data with the file format of JPEG in the raw data as the target data, or the format import sub-unit acquires the raw data with the file format of JPEG from the source device.
A time value importing subunit 422, configured to determine, according to a preset importing time value in the preset importing configuration file, a time for importing the target data. If the preset import time value in the preset import configuration file is 20:00, the time value import sub-unit 422 prompts the user to send an import instruction at 20: 00.
A storage space importing subunit 423, configured to determine, according to a preset storage space occupation threshold in the preset importing configuration file, whether a storage space occupation state in the source device reaches the preset storage space occupation threshold, and start importing the target data when the storage space occupation state in the source device reaches the preset storage space occupation threshold. For example, the storage space of the source device is 4GB, and the preset storage space occupation threshold is 3.5 GB. When the storage space occupation amount of the source device is 3.6GB, the storage space importing subunit 423 may prompt itself or prompt the user to send an import instruction through the target device.
A trusted device importing subunit 424, configured to authenticate the target device according to a preset trusted device identifier in the preset import configuration file, and determine the original data as the target data when the device identifier of the target device is the preset trusted device identifier. To ensure the security of the original data on the source device, the target device may be authenticated by the trusted device import subunit 424 to determine a trusted target device. When the source device sends target data to the target device or the target device obtains original data on the source device, if the device identifier of the target device is the same as the preset trusted device identifier, the target device is determined to be a trusted device. Otherwise, canceling the connection between the source device and the target device.
An increment import subunit 425, configured to compare, according to an increment comparison indication in the preset import configuration file, whether the original data has been transmitted to the target device, specifically, whether file names, file modification times, and file sizes of the original data and data in the target device are the same, and if one or at least two combinations are different, determine that the original data has not been transmitted to the target device, determine that the original data is the target data. The increment comparison instruction is used for comparing the existing data with the original data in the control target device, and if the file names, the modification times and the file sizes of the existing data and the original data are all equal, the increment import subunit 425 determines the original data as the target data. For existing data with the same file name and different file sizes, the incremental import sub-unit 425 performs incremental copy on the existing data, that is, only a part of the original file that is different from the existing file is copied, where the different part may be part of the existing data or part of the existing data. Incremental copying can reduce repeated copying of the existing data and save the time of data transmission.
An information adding subunit 426, configured to add, according to an attribute information addition instruction in the preset import configuration file, attribute information to the target data, where the attribute information is updated through the internet, so as to ensure accuracy and real-time performance of the attribute information. If the attribute information addition instruction in the preset import configuration file indicates addition of attribute information, the information addition subunit 426 adds Metadata to the target data. Metadata, which is data describing file attribute information, may be used to describe information such as singers, lyrics, etc. of the MP3 file. The information adding subunit 426 connects to the internet during import and obtains the latest data to correct and update Metadata. This achieves that Metadata is the most up-to-date, most accurate data.
A length and width threshold importing subunit 427, configured to, when the original data is an image file, scale the image file whose length and width do not meet the preset length and width threshold according to the preset length and width threshold in the preset importing configuration file. If the preset length and width threshold is 12cm in length and 9cm in width, and the image file is 24cm in length and 18cm in width, the length and width threshold importing subunit 427 performs half scaling on the image file to satisfy the preset length and width threshold. In addition, the length and width threshold importing subunit 427 may also determine image files with preset length and width thresholds equal in the original data as the target data.
A size threshold import sub-unit 428, configured to, when the original data is an image file, compress an image file whose file size does not meet a preset file size threshold according to the preset file size threshold in the preset import configuration file. If the preset file size threshold is 1MB, the size threshold import sub-unit 428 compresses the image file with the file size of 1.5MB, and determines the image file as the target data after compressing to 1 MB.
A direction importing subunit 429, configured to, when the original data is an image file, adjust a display direction of the image file whose display direction is inconsistent with a preset picture direction in the preset importing configuration file according to the preset picture direction in the preset importing configuration file. If the predetermined picture direction is vertical, the direction importing sub-unit 429 adjusts the display direction of the horizontally displayed image file so that the display direction of the image file is vertical. Further, the direction importing subunit 429 may determine the display direction of the image according to the face direction in the image, in addition to changing the horizontal display to the vertical display of the image. The pass direction import subunit 429 can "erect" a face if the face is "horizontal" in the image.
According to the data transmission equipment provided by the embodiment of the invention, the preset import configuration file provides a basis for import selection, and manual modification of original data is replaced. The preset processing configuration file provides a basis for classifying and processing the target data for the target equipment, and replaces manual classification and processing of the target data. Since the reading of the preset import profile by the import unit 42 is reproducible, repetitive operations by the user can be saved. The user can set the import process by modifying the preset import configuration file, and the user experience is improved. In addition, the processing of the original data by each subunit in the import unit 42 can shorten the overall data transmission time and improve the data transmission efficiency.
EXAMPLE five
An embodiment of the present invention provides a device for data transmission, and as shown in fig. 6, the device is a target device, and the device includes:
a receiving unit 61, configured to receive a data import instruction of a user.
The receiving unit 61 of the target device is specifically configured to: and receiving the data import indication sent by the user through a second preset key. The user can start data import through a second preset key on the source equipment. The second preset key can be an 'import' button in a software form, and data import can be started by clicking on a mouse or a touch screen; the second preset key may also be in a hardware form, for example, a key is added to the source device, and data import may be started by pressing or touching the key. The receiving unit 61 is configured to receive a data import instruction sent by a user through a second preset key, so as to start data import.
A sending unit 64, configured to notify the source device to send original data according to the data import indication.
If the user starts data import by using a second preset key on the target device, after the receiving unit 61 receives the data import instruction, the sending unit 64 is configured to notify the source device to send the original data according to the data import instruction, and specifically, the data import instruction may be: and sending a sending instruction of the original data to the source device, and after receiving the sending instruction, the source device sends the original data to the receiving unit 61.
The receiving unit is further used for receiving the original data sent by the source device.
And an importing unit 62, configured to import and select the original data received by the receiving unit to obtain target data.
The importing unit 62 of the target device is specifically configured to: and performing import selection on the original data received by the receiving unit 61. After the receiving unit 61 receives the original data, the importing unit 62 performs import selection on the original data according to an import rule. The import rule comprises the definition of the type of the original data, the import time, the display mode of the original data, the credibility of the target device and the like. The raw data is imported by the import unit 62 for selection to form target data.
A processing unit 63, configured to perform classification processing on the target data according to the attribute of the target data obtained by the importing unit 62.
The processing unit 63 of the target device is specifically configured to: and classifying the target data according to the attribute of the target data obtained by the importing unit 62. For example, the processing unit 63 may put the text type data, the multimedia type data, and the picture type data into different folders according to the file type in the attribute of the target device, so as to achieve the effect of classifying the target data. The processing unit 63 may also delete the original data by the existence relationship between the attribute terminal of the target data and the corresponding original data, so as to achieve the effect of processing the target data.
Further, as shown in fig. 7, the introducing unit 62 specifically includes:
the file format importing subunit 621 is configured to determine, according to a preset file format in a preset importing configuration file, original data in the same format as the preset file format as the target data. For example, when the file format import sub-unit 621 of the import unit 62 selects to import the raw data according to the preset import configuration file, if the preset file format is the JPEG format, the file format import sub-unit 621 determines the raw data with the file format of JPEG in the raw data as the target data, or the format import sub-unit acquires the raw data with the file format of JPEG from the source device.
A time value importing subunit 622, configured to determine, according to a preset importing time value in the preset importing configuration file, a time for importing the target data. If the preset import time value in the preset import configuration file is 20:00, the time value import sub-unit 622 will prompt the user to send an import instruction at 20: 00.
A storage space importing subunit 623, configured to determine, according to a preset storage space occupation threshold in the preset importing configuration file, whether a storage space occupation state in the source device reaches the preset storage space occupation threshold, and start importing the target data when the storage space occupation state in the source device reaches the preset storage space occupation threshold. For example, the storage space of the source device is 4GB, and the preset storage space occupation threshold is 3.5 GB. When the storage space occupation amount of the source device is 3.6GB, the storage space importing subunit 623 may prompt itself or prompt the user to send an import instruction through the target device.
A trusted device importing subunit 624, configured to authenticate the target device according to a preset trusted device identifier in the preset import configuration file, and determine the original data as the target data when the device identifier of the target device is the preset trusted device identifier. To ensure the security of the original data on the source device, the target device may be authenticated by the trusted device import subunit 624 to determine a trusted target device. When the source device sends target data to the target device or the target device obtains original data on the source device, if the device identifier of the target device is the same as the preset trusted device identifier, the target device is determined to be a trusted device. Otherwise, canceling the connection between the source device and the target device.
An increment import subunit 625, configured to compare, according to an increment comparison indication in the preset import configuration file, whether the original data has been transmitted to the target device, specifically, whether file names, file modification times, and file sizes of the original data and data in the target device are the same, and if one or at least two combinations are different, determine that the original data has not been transmitted to the target device, determine that the original data is the target data. The increment comparison instruction is used to compare the existing data with the original data in the control target device, and if the file names, modification times, and file sizes of the existing data and the original data are all equal, the increment import subunit 625 determines the original data as the target data. For existing data with the same file name and different file sizes, the incremental import sub-unit 625 performs incremental copy on the existing data, that is, only a portion of the original file that is different from the existing file is copied, where the different portion may be a portion added to the existing data or a portion deleted from the existing data. Incremental copying can reduce repeated copying of the existing data and save the time of data transmission.
An information adding subunit 626, configured to add, according to an attribute information addition instruction in the preset import configuration file, attribute information to the target data, where the attribute information is updated through the internet, so as to ensure accuracy and real-time performance of the attribute information. If attribute information addition indication in the preset import configuration file indicates that attribute information addition is to be added, the information addition subunit 626 adds Metadata to the target data. Metadata, which is data describing file attribute information, may be used to describe information such as singers, lyrics, etc. of the MP3 file. The information adding subunit 626 connects to the internet during import and obtains the latest data to correct and update Metadata. This achieves that Metadata is the most up-to-date, most accurate data.
A length and width threshold importing subunit 627, configured to, when the original data is an image file, scale the image file whose length and width do not meet the preset length and width threshold according to the preset length and width threshold in the preset importing configuration file. If the preset length and width threshold is 12cm in length and 9cm in width, and the image file is 24cm in length and 18cm in width, the length and width threshold importing subunit 627 scales the image file by one half to meet the preset length and width threshold. In addition, the length and width threshold importing sub-unit 627 may also determine image files with preset length and width thresholds equal in the original data as the target data.
A size threshold import subunit 628, configured to, when the original data is an image file, compress, according to a preset file size threshold in the preset import configuration file, the image file whose file size does not meet the preset file size threshold. If the preset file size threshold is 1MB, the size threshold importing subunit 628 compresses the image file with the file size of 1.5MB, and after the image file is compressed to 1MB, determines the image file as the target data.
The direction importing sub-unit 629 is configured to, when the original data is an image file, adjust a display direction of the image file whose display direction is inconsistent with a preset image direction in the preset importing configuration file according to the preset image direction in the preset importing configuration file. If the preset picture direction is vertical, the direction importing sub-unit 629 adjusts the display direction of the horizontally displayed image file so that the display direction of the image file is vertical. Further, the direction importing sub-unit 629 may determine the display direction of the image according to the face direction in the image, in addition to changing the display of the image from landscape to portrait. The pass direction introduction subunit 629 may "erect" a face if the face is "horizontal" in the image.
Further, the processing unit 63 specifically includes:
a deleting subunit 631, configured to instruct the source device to delete the target data acquired by the importing unit 62 according to a preset deletion instruction in a preset processing configuration file. If the user sends the import instruction through the first preset key, when the target data already exists on the target device, the deleting subunit 631 may delete the target data in the source device according to the preset deletion instruction. If the user sends the import instruction through the second preset key, after the target device obtains the original data sent by the source device, the deletion subunit 631 may send a deletion instruction to the source device, so as to delete the original data on the source device.
A naming subunit 632, configured to name the target data obtained by the importing unit 62 according to a preset naming rule in the preset processing configuration file, where the naming rule includes naming according to an importing time and naming according to an importing order. After the target data is already present on the target device, the naming subunit 632 may rename the target data according to the import time or according to the import order. For example, the naming subunit 632 renames the three image files to "1", "2", and "3", respectively, in the order of import. Because the names of the image files are always automatically generated in the camera, the naming rules are complex and difficult to identify, and the name of the image files can be identified more easily by renaming the image files according to the import sequence through the naming sub-unit 632, so that the user can use the image files conveniently.
A classification subunit 633, configured to perform classification storage on the target data acquired by the importing unit 62 according to a preset classification rule in the preset processing configuration file, where the classification rule includes: the data type of the target data is classified, the creation time of the target data is classified, the data content of the target data is classified, and the equipment identification of the source equipment to which the target data belongs is classified. The classification subunit 633 may classify the target data according to the data type of the target data, for example, a JPEG format file is placed in the same folder, and a TXT format file is placed in another folder. The classification subunit 633 may also classify the target data according to the creation time of the target data, for example, place the target data whose creation time is 2012, 10, month and 1, in the same folder, and place the target data whose creation time is 2012, 10, month and 2, in another folder. The classification subunit 633 may also place, in accordance with the data content of the target data, for example, a face in an image file, an image file in the image file that belongs to a face of a very large person a in the same folder, and an image file in the image file that belongs to a face of a very large person b in another folder. In addition, the classification subunit 633 may create different folders for at least one source device according to the device identifier of the target data to store the target data or the raw data of each source device.
A statistics subunit 634, configured to perform statistics on the import result of the target data obtained by the import unit 62 according to a preset statistics indication in the preset processing configuration file. For example, the statistics subunit 634 performs statistics on the total data amount of the target data imported by a certain source device, the time used for import, and other information, and displays the statistical result to the user. The statistics subunit 634 may also store the statistics result so as to analyze the whole import data of the target device, and further obtain the comparison information of the import situations of each source device.
According to the data transmission equipment provided by the embodiment of the invention, the preset import configuration file provides a basis for import selection, and manual modification of original data is replaced. The preset processing configuration file provides the classification and processing basis for the target data for the target equipment, and replaces manual classification and processing of the target data. Since the reading of the preset import profile by the import unit 62 and the reading of the preset processing profile by the processing unit 63 are reproducible, repetitive operations by the user can be saved. The user can set the import process by modifying the preset import configuration file and the preset processing configuration file, so that the user experience is improved. In addition, the processing of the original data by each subunit in the importing unit 62 and the modification and classification of the target data by each subunit in the processing unit 63 can shorten the overall data transmission time and improve the data transmission efficiency.
EXAMPLE six
An embodiment of the present invention provides a device for data transmission, and as shown in fig. 8, the device is a source device, and the device includes:
a receiver 81, configured to receive a data import indication of a user.
The receiver 81 of the source device is specifically configured to: and receiving the data import indication sent by the user through a first preset key. The user can start data import through a first preset key on the source equipment. The first preset key can be an 'import' button in a software form, and data import can be started by clicking on a mouse or a touch screen; the first preset key may also be in a hardware form, for example, a key is added to the source device, and data import may be initiated by pressing or touching the key. The receiver 81 is configured to receive a data import instruction sent by a user through a first preset key, so as to start data import.
And the processor 82 is used for carrying out import selection on the original data to obtain target data.
The processor 82 of the source device is specifically configured to: and carrying out import selection on the original data, and sending the obtained target data to the target equipment. If the user starts data import through the first preset key on the source device, after the receiver 81 receives the data import instruction, the processor 82 performs import selection on the original data according to the import rule. The import rule comprises the definition of the type of the original data, the import time, the display mode of the original data, the credibility of the target device and the like. The raw data is imported and selected by the processor 82 to form target data. The transmitter 83 imports the import selected target data to the target device.
A transmitter 83 for transmitting the target data obtained by the processor 82 to a target device.
The source device sends the target data obtained by the importing unit to the target device through a sender 83, so that the target device can classify the target data.
Further, the processor 82 is further configured to determine, according to a preset file format in a preset import configuration file, original data in the same format as the preset file format as the target data. For example, when the processor 82 performs import selection on raw data according to a preset import configuration file, if the preset file format is the JPEG format, the processor 82 determines the raw data with the JPEG file format in the raw data as the target data, or the format import subunit acquires the raw data with the JPEG file format from the source device.
The processor 82 is further configured to determine a time for importing the target data according to a preset import time value in the preset import configuration file. If the preset import time value in the preset import configuration file is 20:00, the processor 82 prompts the user to send an import instruction at 20: 00.
The processor 82 is further configured to determine whether the storage space occupation state in the source device reaches a preset storage space occupation threshold according to the preset storage space occupation threshold in the preset import configuration file, and start importing the target data when the storage space occupation state in the source device reaches the preset storage space occupation threshold. For example, the storage space of the source device is 4GB, and the preset storage space occupation threshold is 3.5 GB. When the storage space occupation amount of the source device is 3.6GB, the storage space importing subunit 823 may prompt itself or prompt the user to send an import instruction through the target device.
The processor 82 is further configured to authenticate the target device according to a preset trusted device identifier in the preset import configuration file, and determine the original data as the target data when the device identifier of the target device is the preset trusted device identifier. To secure the raw data on the source device, the target device may be authenticated by the processor 82 to determine a trusted target device. When the source device sends target data to the target device or the target device obtains original data on the source device, if the device identifier of the target device is the same as the preset trusted device identifier, the target device is determined to be a trusted device. Otherwise, canceling the connection between the source device and the target device.
The processor 82 is further configured to compare, according to the increment comparison indication in the preset import configuration file, whether the original data has been transmitted to the target device, specifically, whether file names, file modification times, and file sizes of the original data and data in the target device are the same, and if one or at least two combinations are different, determine that the original data has not been transmitted to the target device, determine that the original data is the target data. The incremental comparison indication is used for comparing the existing data in the control target device with the original data, and if the file names, modification times and file sizes of the existing data in the target device and the original data are all equal, the processor 82 determines the original data as the target data. For existing data with the same file name and different file sizes, the processor 82 performs incremental copy on the existing data, that is, only the part of the original file that is different from the existing file is copied, and the different part may be part of the existing data, and may also be part of the existing data, which is added or deleted. Incremental copying can reduce repeated copying of the existing data and save the time of data transmission.
The processor 82 is further configured to add attribute information to the target data according to an attribute information addition instruction in the preset import configuration file, where the attribute information is updated through the internet to ensure accuracy and real-time performance of the attribute information. If attribute information addition indication in the preset import configuration file indicates that attribute information addition is added, the information adding subunit 826 adds Metadata to the target data. Metadata, which is data describing file attribute information, may be used to describe information such as singers, lyrics, etc. of the MP3 file. The processor 82 connects to the internet during import and obtains the latest data to correct and update Metadata. This achieves that Metadata is the most up-to-date, most accurate data.
The processor 82 is further configured to, when the original data is an image file, scale the image file with a length and a width that do not meet a preset length and width threshold according to the preset length and width threshold in the preset import configuration file. If the preset length-width threshold is 12cm in length and 9cm in width, and the image file is 24cm in length and 18cm in width, the processor 82 performs half scaling on the image file to satisfy the preset length-width threshold. In addition, the processor 82 may also determine image files with preset equal length and width thresholds in the original data as target data.
The processor 82 is further configured to, when the original data is an image file, compress the image file whose file size does not meet a preset file size threshold according to the preset file size threshold in the preset import configuration file. If the preset file size threshold is 1MB, the processor 82 compresses the image file with the file size of 1.5MB, and determines the image file as the target data after the image file is compressed to 1 MB.
The processor 82 is further configured to, when the original data is an image file, adjust a display direction of the image file whose display direction is inconsistent with a preset image direction in the preset import configuration file according to the preset image direction in the preset import configuration file. If the predetermined picture direction is vertical, the processor 82 adjusts the display direction of the horizontally displayed image file to make the display direction of the image file be vertical. Furthermore, in addition to changing the display of the image from landscape to portrait, the processor 82 may also determine the display orientation of the image based on the orientation of the face of the person in the image. The processor 82 may "erect" the face if the face is "horizontal" in the image.
According to the data transmission equipment provided by the embodiment of the invention, the preset import configuration file provides a basis for import selection, and manual modification of original data is replaced. The preset processing configuration file provides a basis for classifying and processing the target data for the target equipment, and replaces manual classification and processing of the target data. Since the reading of the preset import profile by the processor 82 is reproducible, repetitive operations by the user can be saved. The user can set the import process by modifying the preset import configuration file, and the user experience is improved. In addition, the processing of the raw data by each subunit in the processor 82 can shorten the overall data transmission time and improve the data transmission efficiency.
EXAMPLE seven
An embodiment of the present invention provides a device for data transmission, as shown in fig. 9, where the device is a target device, and the device includes:
a receiver 91, configured to receive a data import indication of a user.
The receiver 91 of the target device is specifically configured to: and receiving the data import indication sent by the user through a second preset key. The user can start data import through a second preset key on the source equipment. The second preset key can be an 'import' button in a software form, and data import can be started by clicking on a mouse or a touch screen; the second preset key may also be in a hardware form, for example, a key is added to the source device, and data import may be started by pressing or touching the key. The receiver 91 is configured to receive a data import instruction sent by a user through a second preset key, so as to start data import.
And a transmitter 93, configured to notify the source device to transmit the original data according to the data import indication.
If the user starts data import by using a second preset key on the target device, after the receiver 91 receives the data import instruction, the transmitter 93 notifies the source device to transmit the original data according to the data import instruction, which may specifically be: a transmission instruction of the original data is transmitted to the source device, and the source device transmits the original data to the receiver 91 after receiving the transmission instruction.
The receiver 91 is further configured to receive raw data sent by a source device.
And the processor 92 is configured to perform import selection on the original data received by the receiving unit to obtain target data.
The processor 92 of the target device is specifically configured to: the raw data received by the receiver 91 is selected for import. After the receiver 91 receives the raw data, the processor 92 performs import selection on the raw data according to the import rule. The import rule comprises the definition of the type of the original data, the import time, the display mode of the original data, the credibility of the target device and the like. The raw data is imported and selected by the processor 92 to form target data.
The processor 92 is further configured to perform classification processing on the target data according to the obtained attribute of the target data.
The processor 92 of the target device is specifically configured to: and classifying the target data according to the attribute of the target data obtained by the processor 92. For example, the processor 92 may put the text data, the multimedia data, and the picture data into different folders according to the file type in the attribute of the target device, so as to achieve the effect of classifying the target data. The processor 92 may also delete the original data by comparing the existence relationship between the attribute terminal of the target data and the corresponding original data, so as to achieve the effect of processing the target data.
Further, the processor 92 is further configured to determine, according to a preset file format in a preset import configuration file, original data in the same format as the preset file format as the target data. For example, when the pre-processor 92 of the processor 92 performs import selection on raw data according to a pre-set import configuration file, if the pre-set file format is JPEG format, the pre-processor 92 determines that the raw data with the file format of JPEG in the raw data is target data, or the format import subunit acquires the raw data with the file format of JPEG from the source device.
The processor 92 is further configured to determine a time for importing the target data according to a preset import time value in the preset import configuration file. If the preset import time value in the preset import configuration file is 20:00, the processor 92 prompts the user to send an import instruction at 20: 00.
The processor 92 is further configured to determine whether the storage space occupation state in the source device reaches a preset storage space occupation threshold according to the preset storage space occupation threshold in the preset import configuration file, and start importing the target data when the storage space occupation state in the source device reaches the preset storage space occupation threshold. For example, the storage space of the source device is 4GB, and the preset storage space occupation threshold is 3.5 GB. When the storage space occupation amount of the source device is 3.6GB, the processor 92 may prompt itself or prompt the user through the target device to send an import instruction.
The processor 92 is further configured to authenticate the target device according to a preset trusted device identifier in the preset import configuration file, and determine the original data as the target data when the device identifier of the target device is the preset trusted device identifier. To ensure the security of the raw data on the source device, the target device may be authenticated by the processor 92 to determine a trusted target device. When the source device sends target data to the target device or the target device obtains original data on the source device, if the device identifier of the target device is the same as the preset trusted device identifier, the target device is determined to be a trusted device. Otherwise, canceling the connection between the source device and the target device.
The processor 92 is further configured to compare, according to the increment comparison indication in the preset import configuration file, whether the original data has been transmitted to the target device, specifically, whether file names, file modification times, and file sizes of the original data and data in the target device are the same, and if one or at least two combinations are different, determine that the original data has not been transmitted to the target device, determine that the original data is the target data. The incremental comparison instruction is used to compare the existing data with the original data in the control target device, and if the file names, modification times, and file sizes of the existing data and the original data are all equal, the processor 92 determines the original data as the target data. For existing data with the same file name and different file sizes, the processor 92 performs incremental copy on the existing data, that is, only the part of the original file that is different from the existing file is copied, and the different part may be part addition or part deletion to the existing data. Incremental copying can reduce repeated copying of the existing data and save the time of data transmission.
The processor 92 is further configured to add attribute information to the target data according to an attribute information addition instruction in the preset import configuration file, where the attribute information is updated through the internet to ensure accuracy and real-time performance of the attribute information. If attribute information addition indication in the preset import configuration file indicates that attribute information addition is added, the preprocessor 92 adds Metadata to the target data. Metadata, which is data describing file attribute information, may be used to describe information such as singers, lyrics, etc. of the MP3 file. The processor 92 is connected to the internet during import and obtains the latest data to correct and update Metadata. This achieves that Metadata is the most up-to-date, most accurate data.
The processor 92 is further configured to, when the original data is an image file, scale the image file with a length and a width that do not meet a preset length and width threshold according to the preset length and width threshold in the preset import configuration file. If the preset length and width threshold is 12cm in length and 9cm in width, and the image file is 24cm in length and 18cm in width, the processor 92 scales the image file by one half to meet the preset length and width threshold. In addition, the processor 92 may also determine image files with the same preset length and width thresholds in the original data as the target data.
The processor 92 is further configured to, when the original data is an image file, compress the image file whose file size does not meet a preset file size threshold according to the preset file size threshold in the preset import configuration file. If the preset file size threshold is 1MB, the processor 92 compresses the image file with the file size of 1.5MB, and determines the image file as the target data after the image file is compressed to 1 MB.
The processor 92 is further configured to, when the original data is an image file, adjust a display direction of the image file whose display direction is inconsistent with a preset image direction in the preset import configuration file according to the preset image direction in the preset import configuration file. If the predetermined picture direction is vertical, the processor 92 adjusts the display direction of the horizontally displayed image file to make the display direction of the image file be vertical. In addition, the processor 92 may determine the display direction of the image according to the direction of the face of the person in the image, instead of displaying the image in the portrait direction instead of in the landscape direction. The face may be "stood up" by the processor 92 if the face is "laid down" in the image.
Further, the processor 92 may also perform classification processing on the target data, specifically:
the processor 92 is further configured to instruct the source device to delete the target data acquired by the processor 92 according to a preset deletion instruction in a preset processing configuration file. If the user sends the import instruction through the first preset key, when the target data already exists on the target device, the processor 92 may delete the target data in the source device according to the preset deletion instruction. If the user sends the import instruction through the second preset key, after the target device acquires the original data sent by the source device, the processor 92 may send a deletion instruction to the source device, so as to delete the original data on the source device.
The processor 92 is further configured to name the target data obtained by the processor 92 according to a preset naming rule in the preset processing configuration file, where the naming rule includes naming according to an import time and naming according to an import sequence. After the target data is already present on the target device, the processor 92 may rename the target data according to the import time or according to the import order. For example, the processor 92 renames the three image files to "1", "2", and "3", respectively, in the order of import. Because the names of the image files are always automatically generated in the camera, the naming rules are complex and difficult to identify, and the processor 92 renames the image files according to the import sequence, so that the names of the image files are easier to identify and are convenient for users to use.
The processor 92 is further configured to perform classified storage on the target data acquired by the processor 92 according to a preset classification rule in the preset processing configuration file, where the classification rule includes: the data type of the target data is classified, the creation time of the target data is classified, the data content of the target data is classified, and the equipment identification of the source equipment to which the target data belongs is classified. The preprocessor 92 may classify the target data according to its data type, such as JPEG formatted files in the same folder and TXT formatted files in another folder. The processor 92 may also classify the target data according to the creation time of the target data, for example, placing the target data with the creation time of 2012, 10, month and 1 in the same folder, and placing the target data with the creation time of 2012, 10, month and 2 in another folder. The processor 92 may also place image files of faces belonging to a very large number of people a in the image file in the same folder and image files of faces belonging to a very large number of people b in the image file in another folder based on the data content of the target data, such as faces in the image file. In addition, the processor 92 may create different folders for at least one source device according to the device identifier of the target device to store the target data or the raw data of each source device.
The processor 92 is further configured to count an import result of the target data obtained by the processor 92 according to a preset counting instruction in the preset processing configuration file. For example, the processor 92 counts the data amount of the target data imported by a certain source device, the time used for importing, and other information, and displays the statistical result to the user. The processor 92 may also store the statistical result, so as to analyze the whole import data of the target device, and further obtain the comparison information of the import situations of each source device.
According to the data transmission equipment provided by the embodiment of the invention, the preset import configuration file provides a basis for import selection, and manual modification of original data is replaced. The preset processing configuration file provides the classification and processing basis for the target data for the target equipment, and replaces manual classification and processing of the target data. Since the reading of the preset import profile by the processor 92 and the reading of the preset processing profile by the processor 92 are reproducible, repetitive operations by the user can be saved. The user can set the import process by modifying the preset import configuration file and the preset processing configuration file, so that the user experience is improved. In addition, the processing of the original data by each subunit in the processor 92 and the modification and classification of the target data by each subunit in the processor 92 can shorten the overall data transmission time and improve the data transmission efficiency.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the above division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the above-described system, device and unit, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A method of data transmission involving a source device and a target device, the method comprising:
the target equipment receives a data import instruction sent by a user through a second preset key;
the target equipment informs the source equipment of sending original data according to the data import indication;
the target equipment receives original data sent by the source equipment;
the target equipment conducts import selection on original data to obtain target data, and the target data are data in a preset file format;
and the target equipment automatically establishes a folder corresponding to the source equipment according to the equipment mark of the target data, wherein the folder is used for storing the target data.
2. The method of claim 1, wherein after the target device obtains the original data sent by the source device, the target device sends a deletion instruction to the source device, and the deletion instruction is used to delete the original data on the source device.
3. The method according to claim 1 or 2, wherein the target device performs import selection on the original data, and obtaining the target data specifically comprises: and determining original data with the same format as the preset file format as the target data according to the preset file format in a preset import configuration file.
4. The method of claim 1, wherein the predetermined file format is JPEG.
5. A portable electronic device, comprising:
one or more processors;
a memory;
a plurality of application programs; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-4.
6. A computer readable storage medium storing one or more programs, wherein the one or more programs are configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-4.
7. A data transmission system, characterized in that the system comprises a source device and a target device; wherein:
the source equipment and the target equipment establish connection;
the target equipment receives a data import instruction sent by a user through a second preset key, wherein the data import instruction is a command for instructing the source equipment to start data transmission;
the target equipment informs the source equipment of sending original data according to the data import indication;
the target equipment receives original data sent by the source equipment;
the target equipment conducts import selection on original data to obtain target data, and the target data are data in a preset file format;
and the target equipment automatically establishes a folder corresponding to the source equipment according to the equipment mark of the target data, wherein the folder is used for storing the target data.
8. The system of claim 7, wherein the predetermined file format is JPEG.
9. The system of claim 7, wherein after the target device obtains the original data sent by the source device, the target device sends a deletion instruction to the source device, and the deletion instruction is used to delete the original data on the source device.
CN201710860216.9A 2012-11-22 2012-11-22 Data transmission method and equipment Active CN107622025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710860216.9A CN107622025B (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
CN201710860216.9A CN107622025B (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
CN107622025A CN107622025A (en) 2018-01-23
CN107622025B true CN107622025B (en) 2021-03-23

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
CN201710860282.6A Active CN107622026B (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

Family Applications After (2)

Application Number Title Priority Date Filing Date
CN201710860282.6A Active CN107622026B (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)

Families Citing this family (14)

* 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
CN111414214A (en) * 2019-01-07 2020-07-14 珠海金山办公软件有限公司 Document compression method and device, electronic equipment and computer storage medium
CN111832259B (en) * 2019-04-12 2023-09-12 中国联合网络通信集团有限公司 JSON data generation method and device
CN112988804A (en) * 2019-12-12 2021-06-18 陕西西部资信股份有限公司 Data transmission method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN101421710A (en) * 2006-04-13 2009-04-29 音乐会技术公司 Central system providing previews of a user's media collection to a portable media player
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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4019160B2 (en) * 2000-08-21 2007-12-12 富士フイルム株式会社 Remote control system
US7418441B2 (en) * 2001-02-28 2008-08-26 International Business Machines Corporation Data loading from a remote data source record by record
US20050235015A1 (en) * 2004-03-31 2005-10-20 Microsoft Corporation User-configurable device storage synchronization manager
US9009265B2 (en) * 2005-09-28 2015-04-14 Photobucket Corporation System and method for automatic transfer of data from one device to another
CN101667383B (en) * 2008-09-03 2013-02-13 鸿富锦精密工业(深圳)有限公司 Picture display device, picture regulating device and picture regulating method
US8307136B2 (en) * 2009-08-03 2012-11-06 National Instruments Corporation Data movement system and method
CN102281121B (en) * 2010-06-13 2014-10-29 中兴通讯股份有限公司 Method, equipment and system for transmitting and verifying data file

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN101421710A (en) * 2006-04-13 2009-04-29 音乐会技术公司 Central system providing previews of a user's media collection to a portable media player
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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN107622025B (en) Data transmission method and equipment
US9031953B2 (en) Method and system to curate media collections
US20230065189A1 (en) File Processing Method and Mobile Terminal
WO2015043512A1 (en) Picture management method and device
EP2701083B1 (en) Method, apparatus and system for auto-synchronization of compressed content files
US20140376823A1 (en) Automated notification of images showing common content
CN106453572B (en) Method and system based on Cloud Server synchronous images
CN107729483B (en) Classification display method, classification display device, terminal and computer-readable storage medium
CN110073648B (en) Media content management apparatus
US10848558B2 (en) Method and apparatus for file management
US10817470B2 (en) Cloud file transmission method, terminal, and cloud server
US20170262538A1 (en) Method of and system for grouping object in a storage device
US9113135B2 (en) Image advocacy in portable computing devices
CN106933702A (en) A kind of method of intelligent terminal storage space management, device and intelligent terminal
Zuo et al. Bandwidth and energy efficient image sharing for situation awareness in disasters
KR102523006B1 (en) Method, apparatus and computer program for providing contents list
CN105320514A (en) Picture processing method and device
KR20140106180A (en) Method and apparatus for sharing electronic documents
US20220342898A1 (en) Apparatus, method and computer-readable medium for access
CN110007878B (en) Memory card processing method, memory card processing device and mobile terminal
CN110019358B (en) Data processing method, device and equipment and storage medium
CN113254401A (en) Method, system, equipment and storage medium for prompting file copying progress
US20140324921A1 (en) Electronic device, method, and storage medium
CN115048342A (en) File classification method and device
Harkes et al. A Contact Sheet Approach to Searching Untagged Images on Smartphones

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: 20190111

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