CN109271266A - Document transmission method, device and terminal device - Google Patents

Document transmission method, device and terminal device Download PDF

Info

Publication number
CN109271266A
CN109271266A CN201811180803.4A CN201811180803A CN109271266A CN 109271266 A CN109271266 A CN 109271266A CN 201811180803 A CN201811180803 A CN 201811180803A CN 109271266 A CN109271266 A CN 109271266A
Authority
CN
China
Prior art keywords
operational set
operating system
duplication
system version
version information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811180803.4A
Other languages
Chinese (zh)
Other versions
CN109271266B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811180803.4A priority Critical patent/CN109271266B/en
Publication of CN109271266A publication Critical patent/CN109271266A/en
Application granted granted Critical
Publication of CN109271266B publication Critical patent/CN109271266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is suitable for field of communication technology, provides document transmission method, device and terminal device, comprising: monitors and whether with the end PC establishes connection;If establishing connection with the end PC, the first operational set is sent to the end PC, first operational set includes the duplication object and cutting objects that MTP protocol is supported, first operational set is used to indicate the duplication object that the end PC is supported according to the MTP protocol or cutting objects execute corresponding duplication operation or shearing manipulation.It can be improved the operation success rate of duplication operation and shearing manipulation by the above method.

Description

Document transmission method, device and terminal device
Technical field
The application belongs to field of communication technology more particularly to document transmission method, device, terminal device and computer-readable Storage medium.
Background technique
Current mobile device has biggish memory, and user can store more data by mobile device, but by It is still subject to certain restrictions in the operation of the finite volume of mobile device itself, therefore mobile device, and also inconvenient.For example, When user need replicate or shear mobile device file (or file) when, usually with PC (personal Computer, PC) connection is established, then the duplication or shearing of file (or file) are realized by the operation at the end PC.
Existing document transmission method is typically all the duplication and shearing for using the primary process of *** to realize file, but by Operating system in the end PC is constantly updated, therefore may when executing duplication operation or shearing manipulation using the primary process of *** Lead to operation failure or loss of data.
Therefore, it is desirable to provide the new method of one kind is to solve the above technical problems.
Summary of the invention
In view of this, the embodiment of the present application provides document transmission method, to solve executing duplication behaviour in the prior art The problem of operation failure caused by work or shearing manipulation or loss of data.
The first aspect of the embodiment of the present application provides a kind of document transmission method, comprising:
It monitors and whether with the end PC establishes connection;
If establishing connection with the end PC, the first operational set is sent to the end PC, first operational set includes MTP association The duplication object and cutting objects supported are discussed, first operational set is used to indicate the end PC according to the MTP protocol branch The duplication object or cutting objects held execute corresponding duplication operation or shearing manipulation.
The second aspect of the embodiment of the present application provides a kind of document transmission method, comprising:
It monitors and whether with mobile device establishes connection;
If establishing connection with mobile device, the first operational set that the mobile device is sent, first operation are received Set includes the duplication object and cutting objects that MTP protocol is supported, the operating system version information at the end PC is first specified Version information;
If PC termination receives duplicate instructions or shearing instruction, according to the duplicate instructions or shearing instruction and described The duplication object or cutting objects that MTP protocol is supported execute corresponding duplication operation or shearing manipulation.
The third aspect of the embodiment of the present application provides a kind of file transfer means, and the file transfer means are applied to move Dynamic equipment, comprising:
Monitoring unit is connected, whether with the end PC establishes connection for monitoring;
First operational set transmission unit, if sending the first operational set to the end PC for establishing connection with the end PC, First operational set includes the duplication object and cutting objects that MTP protocol is supported, first operational set is used to indicate The duplication object or cutting objects that the end PC is supported according to the MTP protocol execute corresponding duplication operation or shearing manipulation.
The fourth aspect of the embodiment of the present application provides a kind of file transfer means, comprising:
It is connect monitoring unit with mobile device, whether with mobile device establishes connection for monitoring;
First operational set receiving unit, if receiving what the mobile device was sent for establishing connection with mobile device First operational set, first operational set include the duplication object and cutting objects that MTP protocol is supported, the behaviour at the end PC Making system version information is the first indicated release information;
Operation execution unit, if duplicate instructions or shearing instruction are received for PC termination, according to the duplicate instructions Or the duplication object or cutting objects of shearing instruction and MTP protocol support execute corresponding duplication operation or shearing behaviour Make.
5th aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program The step of realizing method as described in relation to the first aspect, or realize such as the step of second aspect the method.
6th aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the step of method as described in relation to the first aspect is realized when the computer program is executed by processor Suddenly, it or realizes such as the step of second aspect the method.
Existing beneficial effect is the embodiment of the present application compared with prior art:
It include the operational set for replicating object and cutting objects due to being sent to the end PC after being connect with the end PC, therefore, It avoids execution once-through operation just primary with the interaction of the end PC, reduces interaction times, also, the first operation set due to being sent to the end PC The duplication object and cutting objects that conjunction includes be MTP protocol support, be not Android primary duplication object and primary shearing Object, therefore, the end PC that can be adapted to fit different operating system version execute corresponding duplication operation and shearing manipulation, from And the operation success rate of duplication operation and shearing manipulation is improved, reduce loss of data.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow chart for document transmission method that the embodiment of the present application one provides;
Fig. 2 is the flow diagram for another document transmission method that the embodiment of the present application two provides;
Fig. 3 is a kind of structure chart for file transfer means that the embodiment of the present application three provides;
Fig. 4 is the structure chart for another file transfer means that the embodiment of the present application four provides;
Fig. 5 is the schematic diagram for the terminal device that the embodiment of the present application five provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other Portable device.It is to be further understood that in certain embodiments, above equipment is not portable communication device, but is had The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the mobile terminal including display and touch sensitive surface is described.However, should manage Solution, mobile terminal may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects Jaws equipment.
Mobile terminal supports various application programs, such as one of the following or multiple: drawing application program, demonstration application Program, word-processing application, website creation application program, disk imprinting application program, spreadsheet applications, game are answered With program, telephony application, videoconference application, email application, instant messaging applications, forging Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer With program, digital music player application and/or video frequency player application program.
At least one of such as touch sensitive surface can be used in the various application programs that can be executed on mobile terminals Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example, Touch sensitive surface) it can support the various application programs with user interface intuitive and transparent for a user.
In addition, term " first ", " second ", " third " etc. are only used for distinguishing description, and cannot in the description of the present application It is interpreted as indication or suggestion relative importance.
Embodiment one:
Fig. 1 shows a kind of flow chart of document transmission method of the offer of the embodiment of the present application one, and the present embodiment is from movement Equipment side is described, and details are as follows:
Step S11 is monitored and whether with the end PC is established connection;
In the step, monitor whether mobile device (such as mobile phone, USB flash disk) by USB line and the end PC establishes connection.
Step S12 sends the first operational set to the end PC, first operational set if establishing connection with the end PC Including duplication object and cutting objects that MTP protocol is supported, first operational set is used to indicate the end PC according to The duplication object or cutting objects that MTP protocol is supported execute corresponding duplication operation or shearing manipulation.
After connection is established at mobile device and the end PC, media transport protocol (Media Transfer will be passed through Protocol, MTP) realize the mobile device file duplication or shearing.The media that the MTP refers to that Microsoft announces are set A standby agreement with the data interaction at the end PC, bottom depend on universal serial bus (Universal Serial Bus, USB) Agreement.
In the step, MTP protocol specification input parameter and output parameter, mobile device are re-defined in MTP protocol specification The duplication object (CopyObject) and cutting objects (MoveObject) of support, in this way, the end PC can be according to MTP protocol specification Input parameter, output parameter and the duplication of definition object and cutting objects execute corresponding duplication and operate and shearing manipulation. Wherein, input parameter here includes following information: data type, source address, and output parameter includes following information: destination address And storage location.
In the embodiment of the present application, connection is established with the end PC if listening to, the first operational set of transmission is described to the end PC First operational set includes the duplication object and cutting objects that MTP protocol is supported, first operational set is used to indicate described The duplication object or cutting objects that the end PC is supported according to the MTP protocol execute corresponding duplication operation or shearing manipulation.Due to After connecting with the end PC, sending to the end PC includes the operational set for replicating object and cutting objects, therefore, avoids executing primary Operation is just primary with the interaction of the end PC, reduction interaction times, also, the duplication for including due to the first operational set for being sent to the end PC Object and cutting objects are that MTP protocol is supported, are not the duplication object and primary cutting objects of Android primary, therefore, The end PC that different operating system version can be adapted to fit executes corresponding duplication operation and shearing manipulation, to improve duplication behaviour Make the operation success rate with shearing manipulation, reduces loss of data.
Optionally, in order to further increase duplication operation and shearing manipulation operation success rate, the document transmission method Further include:
A1, the feedback information including operation failure that the end PC is sent is received;
A2, the operating system version information for obtaining the end PC;Here operating system version information includes the end PC peace Operating system version number, OS name of dress etc..Certainly, if multiple operating systems are installed at the end PC, obtain currently with shifting Operating system version number, the OS name etc. of dynamic equipment communication.Optionally, mobile device obtains the operating system version at the end PC There are many modes of this information, for example, obtained by user in the operating system version information that mobile device inputs the end PC, or Person is sent by the request end PC.When sending acquisition by the request end PC, the step A2 includes: A21, is asked by usb protocol Seek the operating system version information at the end PC;A22 receives the operating system version information that the end PC is sent.Specifically, work as movement When equipment establishes connection by USB line and the end PC, which requests the operating system version at the end PC to be believed by usb protocol Breath, which is sent to mobile device for currently operating system version information corresponding with the operating system of mobile device communication.
If the operating system version information of A3, the end PC are the second indicated release information, the second operational set is sent extremely The end PC, second operational set include the duplication object and primary cutting objects of Android primary, and described primary answers Object processed, primary cutting objects are different from the duplication object, cutting objects that the MTP protocol is supported, second operation set It closes and indicates that the end PC executes corresponding duplication operation or shearing according to the primary duplication object and primary cutting objects Operation.
Wherein, the second indicated release information includes at least one operating system version information.
Preferably, which is 7 version of windows, either for 7 or less version of windows or For the corresponding operating system version of other non-first indicated release information.Preferably, which is windows 10 versions, or be 10 or more version of windows.
Optionally, in order to obtain accurate operating system version information, if the operating system version at the end PC is believed Breath is the first indicated release information, and user is prompted to input the operating system version information at the end PC,
Judge whether operating system version information and the first indicated release information at the end PC of user's input are identical, if The operating system version information at the end PC of user's input is different from the first indicated release information, by the end PC of user's input Operating system version information of the operating system version information as the end PC obtained, and the second operational set is sent to described The end PC sends the first behaviour if the operating system version information at the end PC of user's input is identical as the first indicated release information Make collection and is bonded to the end PC.
In the present embodiment, when the operation that the operating system version information and user that mobile device is obtained from the end PC automatically input When system version information difference, the operating system version information with user's input is according to the second operational set of transmission.
Optionally, duplication operation or shearing manipulation may still be again led to later to the end PC due to sending the first operational set Failure is executed, therefore, after transmission first operational set to the end PC, comprising:
Statistics sends the number of the first operational set to the end PC;
Accordingly, if the operating system version information at the end PC of user input and the first indicated release information phase Together, the first operational set is sent to the end PC specifically:
If the operating system version information at the end PC of user's input is identical as the first indicated release information, judge to count The number at the first operational set of transmission to the end PC whether be less than or equal to predetermined times, if being less than or equal to preset time Number sends the first operational set to the end PC.
In the present embodiment, the number for only sending the first operational set to the end PC is less than or equal to predetermined times just again by the One operational set is sent to the end PC.Certainly, it if the number for sending the first operational set to the end PC is greater than predetermined times, prompts to use Family search operation executes the reason of failure, for example searches mobile device itself and whether there is problem.
Optionally, after the step A1, comprising:
Judge whether the corresponding type of the feedback information is specified type;Wherein, specified type include but is not limited to Under it is any: copy routing problem, USB interface problem, antivirus software problem etc..
Accordingly, the step A2 specifically:
If the corresponding type of the feedback information is not specified type, the operating system version information at the end PC is obtained.
In the present embodiment, the problem of generally referring to type due to operation failure, is caused, is excluding feedback information Corresponding type is not just to consider whether it is that the operating system version at the end PC leads to operation failure after specified type, can be improved solution The certainly speed of operation failure.
Optionally, if the operating system at the end PC includes customized duplication object and cutting objects, mobile device is sent Priority setting instruction to the end PC, the priority setting instruction be used to indicate the end PC be arranged for different scenes it is different preferential Grade: the first operational set is arranged in duplication operation between the file (or file) for executing mobile device or when shearing manipulation The priority of the duplication object and cutting objects supported including MTP protocol is customized multiple higher than what the operating system at the end PC included The priority of object and cutting objects processed;Duplication operation or shearing behaviour between the file (or file) for executing the end PC itself When making, the first operational set of setting includes that the priority of duplication object and cutting objects that MTP protocol is supported is lower than the behaviour at the end PC The priority of customized the duplication object and cutting objects that include as system.It is different preferential by being arranged for different scenes Grade can guarantee the successful execution of the duplication operation and shearing manipulation of corresponding scene.
Embodiment two:
Fig. 2 shows the flow diagram for another document transmission method that the embodiment of the present application two provides, the present embodiment It is mainly described from the end side PC, details are as follows:
Step S21 is monitored and whether with mobile device is established connection;
Step S22 receives the first operational set that the mobile device is sent if establishing connection with mobile device, described First operational set includes the duplication object and cutting objects that MTP protocol is supported, the operating system version information at the end PC is First indicated release information;
In the step, MTP protocol specification input parameter and output parameter, mobile device are re-defined in MTP protocol specification The duplication object (CopyObject) and cutting objects (MoveObject) of support, in this way, the end PC can be according to MTP protocol specification Input parameter, output parameter and the duplication of definition object and cutting objects execute corresponding duplication and operate and shearing manipulation. Wherein, input parameter here includes following information: data type, source address, and output parameter includes following information: destination address And storage location.
Step S23, if PC termination receives duplicate instructions or shearing instruction, according to the duplicate instructions or shearing instruction And the duplication object or cutting objects of the MTP protocol support execute corresponding duplication operation or shearing manipulation.
In the step, if the end PC receives duplicate instructions, the end the PC MTP that the first operational set includes based on the received The duplication object that agreement is supported executes corresponding duplication operation, rather than is executed according to the duplication object of Android primary corresponding multiple System operation, therefore its end PC that can be adapted to fit different operating system version executes corresponding duplication operation and shearing manipulation, To improve the operation success rate of duplication operation and shearing manipulation, loss of data is reduced.
Optionally, in order to guarantee that mobile device timely learning current operation is success or failure, then the file transmission Method further include:
If duplication operation or shearing manipulation failure, send the feedback information including operation failure to mobile device;
If the operating system version information at the end PC is the second indicated release information, mobile device is sent second is received Operational set, second operational set include the duplication object and primary cutting objects of Android primary, and described primary answers Object processed, primary cutting objects are different from the duplication object, cutting objects that the MTP protocol is supported, second operation set It closes and indicates that the end PC executes corresponding duplication operation or shearing according to the primary duplication object and primary cutting objects Operation;
Wherein, the second indicated release information includes at least one operating system version information.
Preferably, which is 7 version of windows, either for 7 or less version of windows or For the corresponding operating system version of other non-first indicated release information.Preferably, which is windows 10 versions, or be 10 or more version of windows.
Optionally, the document transmission method further include:
If the operating system version information at the end PC is the first indicated release information, and the behaviour with the end PC of user's input Make system version information difference, then receives the second operational set of mobile device transmission;If the operating system version at the end PC Information is the first indicated release information, and identical as the operating system version information at the end PC of user's input, receives the movement The first operational set that equipment is sent.
Optionally, if the operating system at the end PC includes customized duplication object and cutting objects, which, which receives, is moved Instruction is arranged in the priority that dynamic equipment is sent, and it is different for different scenes setting that priority setting instruction is used to indicate the end PC Priority: duplication operation between the file (or file) for executing mobile device or when shearing manipulation, the first behaviour of setting Make the priority that set includes duplication object and cutting objects that MTP protocol is supported to make by oneself higher than what the operating system at the end PC included The priority of the duplication object and cutting objects of justice;Execute the end PC itself file (or file) between duplication operation or When shearing manipulation, the first operational set of setting includes the priority of duplication object and cutting objects that MTP protocol is supported lower than PC The priority of customized duplication object and cutting objects that the operating system at end includes.By different for different scenes setting Priority, can guarantee the successful execution of the duplication operation and shearing manipulation of corresponding scene.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Embodiment three:
Corresponding with embodiment one, Fig. 3 shows the embodiment of the present application and provides a kind of structure chart of file transfer means, should File transfer means are applied to mobile device, and for ease of description, only the parts related to this embodiment are shown:
This document transmitting device 3 includes: connection monitoring unit 31 and the first operational set transmission unit 32, in which:
Monitoring unit 31 is connected, whether with the end PC establishes connection for monitoring;
First operational set transmission unit 32, if sending the first operational set to the PC for establishing connection with the end PC End, first operational set include the duplication object and cutting objects that MTP protocol is supported, first operational set is for referring to Show the duplication object or cutting objects execute corresponding duplication operation or shearing is grasped that the end PC is supported according to the MTP protocol Make.
Wherein, MTP protocol specification input parameter and output parameter, mobile device re-defines supports in MTP protocol specification Duplication object (CopyObject) and cutting objects (MoveObject), in this way, the end PC can be according to the defeated of MTP protocol specification Enter parameter, output parameter and the duplication of definition object and cutting objects execute corresponding duplication operation and shearing manipulation.Wherein, Here input parameter includes following information: data type, source address, and output parameter includes following information: destination address and being deposited Storage space is set.
It include duplication object and cutting objects due to being sent to the end PC after being connect with the end PC in the embodiment of the present application Operational set, therefore, it is just primary with the interaction of the end PC to avoid executing once-through operation, reduces interaction times, also, due to being sent to The duplication object and cutting objects that first operational set at the end PC includes are that MTP protocol is supported, are not the duplications of Android primary Object and primary cutting objects, therefore, the end PC that can be adapted to fit different operating system version execute corresponding duplication Operation and shearing manipulation reduce loss of data to improve the operation success rate of duplication operation and shearing manipulation.
Optionally, in order to further increase duplication operation and shearing manipulation operation success rate, the file transfer means 3 Further include:
Feedback information receiving unit, for receiving the feedback information including operation failure of the end PC transmission;
Operating system version information acquiring unit, for obtaining the operating system version information at the end PC;Here behaviour It include operating system version number, the OS name etc. of the end PC installation as system version information.Optionally, operating system version This information acquisition unit includes: operating system version information request module, for requesting the operating system at the end PC by usb protocol Version information;Operating system version information module, the operating system version information sent for receiving the end PC.
Second operational set transmission unit, if the operating system version information for the end PC is the second indicated release letter Breath, sends the second operational set to the end PC, and second operational set includes the duplication object of Android primary and primary Cutting objects, the primary duplication object, the duplication object of primary cutting objects and MTP protocol support, shearing pair As difference, second operational set indicates that the end PC is executed according to the primary duplication object and primary cutting objects Corresponding duplication operation or shearing manipulation.
Wherein, the second indicated release information includes at least one operating system version information.
Preferably, which is 7 version of windows, either for 7 or less version of windows or For the corresponding operating system version of other non-first indicated release information.Preferably, which is windows 10 versions, or be 10 or more version of windows.
Optionally, in order to obtaining accurate operating system version information, the file transfer means further include:
Operating system version information prompts input unit, if the operating system version information for the end PC is the first finger Determine version information, user is prompted to input the operating system version information at the end PC;
Operating system version information comparing unit, for judging operating system version information and the institute at the end PC of user's input State whether the first indicated release information is identical, if the operating system version information and the described first specified version at the end PC of user's input This information is different, using the operating system version information at the end PC of user's input as the operating system version at the end PC obtained Information, and send the second operational set to the end PC, if the operating system version information at the end PC of user's input and described the One indicated release information is identical, sends the first operational set to the end PC.
Optionally, duplication operation or shearing manipulation may still be again led to later to the end PC due to sending the first operational set Failure is executed, therefore, the file transfer means further include: number statistic unit, in the first operational set of the transmission After to the end PC, statistics sends the number of the first operational set to the end PC;
Accordingly, the operating system version information comparing unit is specifically used for:
If the operating system version information at the end PC of user's input is identical as the first indicated release information, judge to count The number at the first operational set of transmission to the end PC whether be less than or equal to predetermined times, if being less than or equal to preset time Number sends the first operational set to the end PC.
Optionally, the file transfer means further include:
The type judging unit of feedback information, for judging whether the corresponding type of the feedback information is specified type; Wherein, specified type includes but is not limited to any of the following: copy routing problem, USB interface problem, antivirus software problem etc..
Accordingly, the operating system version information acquiring unit is specifically used for: if the corresponding type of the feedback information It is not specified type, obtains the operating system version information at the end PC.
Optionally, the file transfer means further include:
Priority setting instruction transmission unit, if the operating system for the end PC includes customized duplication object and shearing Object, then mobile device sends priority setting instruction to the end PC, and the priority setting instruction is used to indicate the end PC for not The different priority with scene setting: duplication operation or shearing manipulation between the file (or file) for executing mobile device When, the first operational set of setting includes that the priority of duplication object and cutting objects that MTP protocol is supported is higher than the operation at the end PC The priority of customized duplication object and cutting objects that system includes;Execute the end PC itself file (or file) it Between duplication operation or when shearing manipulation, the first operational set of setting includes the duplication object and cutting objects that MTP protocol is supported Priority lower than the end PC operating system customized the duplication object and cutting objects that include priority.
Example IV:
Corresponding with embodiment two, Fig. 4 shows the structure of another file transfer means of the offer of the embodiment of the present application four Schematic diagram, another file transfer means are applied to the end PC and illustrate only portion related to the present embodiment for ease of description Point.
The another kind file transfer means 4 include: that monitoring unit 41, the first operational set reception list are connect with mobile device First 42, operation execution unit 43.Wherein:
It connect monitoring unit 41 with mobile device, whether with mobile device establishes connection for monitoring;
First operational set receiving unit 42, if receiving the mobile device for establishing connection with mobile device and sending The first operational set, first operational set include MTP protocol support duplication object and cutting objects, the end PC Operating system version information is the first indicated release information;
Wherein, MTP protocol specification input parameter and output parameter, mobile device re-defines supports in MTP protocol specification Duplication object (CopyObject) and cutting objects (MoveObject), in this way, the end PC can be according to the defeated of MTP protocol specification Enter parameter, output parameter and the duplication of definition object and cutting objects execute corresponding duplication operation and shearing manipulation.Wherein, Here input parameter includes following information: data type, source address, and output parameter includes following information: destination address and being deposited Storage space is set.
Operation execution unit 43 refers to if receiving duplicate instructions or shearing instruction for PC termination according to the duplication It enables or the duplication object or cutting objects of shearing instruction and MTP protocol support executes corresponding duplication operation or shearing behaviour Make.
In the embodiment of the present application, since the end PC is answered according to what duplicate instructions or shearing instruction and the MTP protocol were supported Object or cutting objects processed execute corresponding duplication operation or shearing manipulation, rather than are executed according to the duplication object of Android primary Corresponding duplication operation, therefore its end PC that can be adapted to fit different operating system version executes corresponding duplication operation and cuts Operation is cut, to improve the operation success rate of duplication operation and shearing manipulation, reduces loss of data.
Optionally, in order to guarantee that mobile device timely learning current operation is success or failure, then described another literary Part transmitting device 4 further include:
Feedback information transmission unit, if sending includes the anti-of operation failure for replicating operation or shearing manipulation failure Feedforward information is to mobile device;
Second operational set receiving unit, if the operating system version information for the end PC is the second indicated release letter Breath receives the second operational set that mobile device is sent, and second operational set includes the duplication object and original of Android primary Raw cutting objects, duplication object that the primary duplication object, primary cutting objects are supported with the MTP protocol are cut Object difference is cut, second operational set indicates the end PC according to primary the duplication object and primary cutting objects Execute corresponding duplication operation or shearing manipulation;
Wherein, the second indicated release information includes at least one operating system version information.
Preferably, which is 7 version of windows, either for 7 or less version of windows or For the corresponding operating system version of other non-first indicated release information.Preferably, which is windows 10 versions, or be 10 or more version of windows.
Optionally, another file transfer means 4 further include:
Operating system version information comparing unit, if the operating system version information for the end PC is the first specified version This information, and it is different from the operating system version information at the end PC of user's input, then receive the second operation of mobile device transmission Set;If the operating system version information at the end PC is the first indicated release information, and the operation with the end PC of user's input System version information is identical, receives the first operational set that the mobile device is sent.
Optionally, another file transfer means 4 further include:
Priority setting instruction receiving unit, if the operating system for the end PC includes customized duplication object and shearing Instruction is arranged in object, the then priority that the end PC receives that mobile device is sent, and priority setting instruction is used to indicate the end PC Different priority is arranged for different scenes: the duplication between the file (or file) for executing mobile device is operated or is cut When cutting operation, the first operational set of setting includes that the priority of duplication object and cutting objects that MTP protocol is supported is higher than the end PC Operating system customized the duplication object and cutting objects that include priority;Execute the end PC itself file (or text Part folder) between duplication operation or when shearing manipulation, the first operational set of setting includes the duplication object and cut that MTP protocol is supported Cut priority of the priority lower than customized duplication object and cutting objects that the operating system at the end PC includes of object.Pass through Different priority is set for different scenes, can guarantee the successful execution of the duplication operation and shearing manipulation of corresponding scene.
Embodiment five:
Fig. 5 is the schematic diagram for the terminal device that the embodiment of the present application five provides.As shown in figure 5, the terminal of the embodiment is set Standby 5 include: processor 50, memory 51 and are stored in the meter that can be run in the memory 51 and on the processor 50 Calculation machine program 52.The processor 50 is realized when executing the computer program 52 in above-mentioned each document transmission method embodiment The step of, such as step S11 to S12 shown in FIG. 1, alternatively, step S21 to S23 as shown in Figure 2.Alternatively, the processor The function of each module/unit in above-mentioned each Installation practice, such as list shown in Fig. 3 are realized when the 50 execution computer program 52 The function of member 31 to 32, alternatively, such as unit 41 to 43 shown in Fig. 4.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the application.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 52 in the terminal device 5 is described.For example, the computer program 52 can be divided It is cut into connection monitoring unit and the first operational set transmission unit, each unit concrete function is as follows:
Monitoring unit is connected, whether with the end PC establishes connection for monitoring;
First operational set transmission unit, if sending the first operational set to the end PC for establishing connection with the end PC, First operational set includes the duplication object and cutting objects that MTP protocol is supported, first operational set is used to indicate The duplication object or cutting objects that the end PC is supported according to the MTP protocol execute corresponding duplication operation or shearing manipulation.
Alternatively, the computer program 52, which can be divided into, connect monitoring unit, the first operational set with mobile device Receiving unit, operation execution unit, each unit concrete function are as follows:
It is connect monitoring unit with mobile device, whether with mobile device establishes connection for monitoring;
First operational set receiving unit, if receiving what the mobile device was sent for establishing connection with mobile device First operational set, first operational set include the duplication object and cutting objects that MTP protocol is supported, the behaviour at the end PC Making system version information is the first indicated release information;
Operation execution unit, if duplicate instructions or shearing instruction are received for PC termination, according to the duplicate instructions Or the duplication object or cutting objects of shearing instruction and MTP protocol support execute corresponding duplication operation or shearing behaviour Make.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5 It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5 Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of document transmission method characterized by comprising
It monitors and whether with the end PC establishes connection;
If establishing connection with the end PC, the first operational set is sent to the end PC, first operational set includes MTP protocol branch The duplication object and cutting objects held, first operational set are used to indicate what the end PC was supported according to the MTP protocol It replicates object or cutting objects executes corresponding duplication operation or shearing manipulation.
2. document transmission method as described in claim 1, which is characterized in that the document transmission method further include:
Receive the feedback information including operation failure that the end PC is sent;
Obtain the operating system version information at the end PC;
If the operating system version information at the end PC is the second indicated release information, the second operational set is sent to the PC End, second operational set include the duplication object and primary cutting objects of Android primary, the primary duplication object, Primary cutting objects are different from duplication object, cutting objects that the MTP protocol is supported, and second operational set indicates institute It states the end PC and corresponding duplication operation or shearing manipulation is executed according to the primary duplication object and primary cutting objects.
3. document transmission method as claimed in claim 2, which is characterized in that if the operating system version information at the end PC is First indicated release information prompts user to input the operating system version information at the end PC,
Judge whether operating system version information and the first indicated release information at the end PC of user's input are identical, if user The operating system version information at the end PC of input is different from the first indicated release information, by the operation at the end PC of user's input Operating system version information of the system version information as the end PC obtained, and the second operational set is sent to the PC End sends the first operation if the operating system version information at the end PC of user's input is identical as the first indicated release information Collection is bonded to the end PC.
4. document transmission method as claimed in claim 3, which is characterized in that in the first operational set of the transmission to the PC After end, comprising:
Statistics sends the number of the first operational set to the end PC;
Accordingly, if the operating system version information at the end PC of user input is identical as the first indicated release information, The first operational set is sent to the end PC specifically:
If the operating system version information at the end PC of user's input is identical as the first indicated release information, the hair of statistics is judged Whether the number for sending the first operational set to the end PC is less than or equal to predetermined times, if being less than or equal to predetermined times, hair Send the first operational set to the end PC.
5. document transmission method as claimed in claim 2, which is characterized in that lost what the reception end PC was sent including operation After the feedback information lost, comprising:
Judge whether the corresponding type of the feedback information is specified type;
Accordingly, the operating system version information for obtaining the end PC specifically:
If the corresponding type of the feedback information is not specified type, the operating system version information at the end PC is obtained.
6. a kind of document transmission method characterized by comprising
It monitors and whether with mobile device establishes connection;
If establishing connection with mobile device, the first operational set that the mobile device is sent, first operational set are received Including duplication object and cutting objects that MTP protocol is supported, the operating system version information at the end PC is the first indicated release Information;
If the PC termination receives duplicate instructions or shearing instruction, according to the duplicate instructions or shearing instruction and the MTP The duplication object or cutting objects that agreement is supported execute corresponding duplication operation or shearing manipulation.
7. a kind of file transfer means, the file transfer means are applied to mobile device characterized by comprising
Monitoring unit is connected, whether with the end PC establishes connection for monitoring;
First operational set transmission unit, if the first operational set of transmission is described to the end PC for establishing connection with the end PC First operational set includes the duplication object and cutting objects that MTP protocol is supported, first operational set is used to indicate described The duplication object or cutting objects that the end PC is supported according to the MTP protocol execute corresponding duplication operation or shearing manipulation.
8. a kind of file transfer means characterized by comprising
It is connect monitoring unit with mobile device, whether with mobile device establishes connection for monitoring;
First operational set receiving unit, if receiving the mobile device is sent first for establishing connection with mobile device Operational set, first operational set include the duplication object and cutting objects that MTP protocol is supported, the operation system at the end PC System version information is the first indicated release information;
Operation execution unit according to the duplicate instructions or is cut if receiving duplicate instructions or shearing instruction for PC termination The duplication object or cutting objects for cutting instruction and MTP protocol support execute corresponding duplication operation or shearing manipulation.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program The step of any one the method, or the step of realizing method as claimed in claim 6.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In, when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method, or realization The step of method as claimed in claim 6.
CN201811180803.4A 2018-10-09 2018-10-09 File transmission method and device and terminal equipment Active CN109271266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811180803.4A CN109271266B (en) 2018-10-09 2018-10-09 File transmission method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811180803.4A CN109271266B (en) 2018-10-09 2018-10-09 File transmission method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109271266A true CN109271266A (en) 2019-01-25
CN109271266B CN109271266B (en) 2020-07-28

Family

ID=65196427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811180803.4A Active CN109271266B (en) 2018-10-09 2018-10-09 File transmission method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109271266B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445651A (en) * 2019-09-05 2021-03-05 腾讯科技(深圳)有限公司 File copying method, device, equipment and medium
CN114172897A (en) * 2021-12-09 2022-03-11 西安邮电大学 PC (personal computer) end and Android end file transmission method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101589592A (en) * 2006-02-27 2009-11-25 微软公司 Multi-protocol removable storage device
US20130159220A1 (en) * 2011-12-15 2013-06-20 Microsoft Corporation Prediction of user response actions to received data
CN105205100A (en) * 2015-08-24 2015-12-30 青岛海信移动通信技术股份有限公司 Data synchronization method based on MTP between terminals and terminals
CN105975353A (en) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 Electronic device and method for copying data from the other directly connected electronic device
CN107247735A (en) * 2017-05-08 2017-10-13 北京小米移动软件有限公司 Document transmission method and device
CN107391425A (en) * 2017-08-30 2017-11-24 四川长虹电器股份有限公司 A kind of Android device
CN107562372A (en) * 2017-08-01 2018-01-09 广东欧珀移动通信有限公司 A kind of electronic equipment and its data managing method, computer-readable recording medium
CN107872482A (en) * 2016-09-27 2018-04-03 中兴通讯股份有限公司 The method and device of transmitting file on a kind of mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101589592A (en) * 2006-02-27 2009-11-25 微软公司 Multi-protocol removable storage device
US20130159220A1 (en) * 2011-12-15 2013-06-20 Microsoft Corporation Prediction of user response actions to received data
CN105205100A (en) * 2015-08-24 2015-12-30 青岛海信移动通信技术股份有限公司 Data synchronization method based on MTP between terminals and terminals
CN105975353A (en) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 Electronic device and method for copying data from the other directly connected electronic device
CN107872482A (en) * 2016-09-27 2018-04-03 中兴通讯股份有限公司 The method and device of transmitting file on a kind of mobile terminal
CN107247735A (en) * 2017-05-08 2017-10-13 北京小米移动软件有限公司 Document transmission method and device
CN107562372A (en) * 2017-08-01 2018-01-09 广东欧珀移动通信有限公司 A kind of electronic equipment and its data managing method, computer-readable recording medium
CN107391425A (en) * 2017-08-30 2017-11-24 四川长虹电器股份有限公司 A kind of Android device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445651A (en) * 2019-09-05 2021-03-05 腾讯科技(深圳)有限公司 File copying method, device, equipment and medium
CN112445651B (en) * 2019-09-05 2024-01-30 腾讯科技(深圳)有限公司 File copying method, device, equipment and medium
CN114172897A (en) * 2021-12-09 2022-03-11 西安邮电大学 PC (personal computer) end and Android end file transmission method and system
CN114172897B (en) * 2021-12-09 2023-08-25 西安邮电大学 Method and system for transmitting files of PC (personal computer) end and Android end

Also Published As

Publication number Publication date
CN109271266B (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN109639465A (en) Warning information storage method and device based on cloud platform
CN102223363A (en) System and method for generating persistent sessions in a graphical interface for managing communication sessions
CN110225104A (en) Data capture method, device and terminal device
CN107193598A (en) Application starting method, mobile terminal and computer readable storage medium
CN106534281A (en) Data request responding method, apparatus and system
CN110381130A (en) The long connection method of keep-alive, device, communication terminal and storage medium
CN112860342A (en) Method, device, equipment, system and storage medium for microservice configuration
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN110244963A (en) Data-updating method, device and terminal device
CN107368255B (en) Unlocking method, mobile terminal and computer readable storage medium
CN109271266A (en) Document transmission method, device and terminal device
JP2022091904A (en) Mini program page skin changeover method, device, and electronic apparatus
EP3699731B1 (en) Method and device for calling input method, and server and terminal
CN109671199A (en) A kind of antisubmarine back method, device, system and terminal device
CN108920704A (en) File access pattern method, file restoring device and mobile terminal
CN109298956A (en) Document transmission method, device and terminal device
CN109445779A (en) The rendering method and terminal device of multiple-language user interface
CN107332988A (en) Information processing method, mobile terminal and computer-readable recording medium
CN109213662A (en) A kind of user's touch-control behavioral data collection method and terminal
CN110019040A (en) A kind of file processing method, mobile terminal and storage medium
CN104951325B (en) A kind of information display method and electronic equipment
CN109104481A (en) file integrity detection method, file integrity detection device and terminal device
WO2022194077A1 (en) Application program icon management method and apparatus, and electronic device
CN115795203A (en) Menu page construction method and device, electronic equipment and storage medium
US20140145992A1 (en) Information Input Method and Touchscreen Terminal

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
GR01 Patent grant
GR01 Patent grant