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

Document transmission method, device and terminal device Download PDF

Info

Publication number
CN109298956A
CN109298956A CN201811173512.2A CN201811173512A CN109298956A CN 109298956 A CN109298956 A CN 109298956A CN 201811173512 A CN201811173512 A CN 201811173512A CN 109298956 A CN109298956 A CN 109298956A
Authority
CN
China
Prior art keywords
operating system
system version
duplication
operational set
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
CN201811173512.2A
Other languages
Chinese (zh)
Other versions
CN109298956B (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 CN201811173512.2A priority Critical patent/CN109298956B/en
Publication of CN109298956A publication Critical patent/CN109298956A/en
Application granted granted Critical
Publication of CN109298956B publication Critical patent/CN109298956B/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]

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, which comprises after establishing connection with the end PC, obtain the operating system version information at the end PC;If the operating system version information at the end PC is the first indicated release information, 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
Currently, user usually passes through PC (personal computer, PC) for mobile device (such as mobile phone, USB flash disk Deng) data of storage from a file replicate or clip to another file of the mobile device.The end PC by file (or File) operation under alternative document folder mobile or that be copied to mobile device is known as media transport protocol (Media Transfer Protocol, MTP) it transmits, which refers to the data interaction for the media device and the end PC that Microsoft announces An agreement, bottom depend on universal serial bus (Universal Serial Bus, USB) agreement.
Existing MTP transmission method is typically all the primary process of google, executes primary duplication or shearing manipulation needs It is frequently interacted between mobile device and the end PC.And it is also possible to lead due to the software version that the end PC is installed during executing operation Cause 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 a kind of document transmission method, to solve executing again in the prior art The problem of operation failure caused by system operation 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:
After establishing connection with the end PC, the operating system version information at the end PC is obtained;
If the operating system version information at the end PC is the first indicated release information, the first operational set is sent to described The end PC, first operational set include the duplication object and cutting objects that MTP protocol is supported, first operational set is used for Indicate 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.
The second aspect of the embodiment of the present application provides a kind of document transmission method, comprising:
After the end PC and mobile device establish connection, the first operational set that the mobile device is sent is received, described the One operational set includes the duplication object and cutting objects that MTP protocol is supported, the operating system version information at the end PC is the One indicated release 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:
Operating system version information acquiring unit, for after establishing connection with the end PC, obtaining the operation system at the end PC System version information;
First operational set transmission unit, if the operating system version information for the end PC is the first indicated release letter Breath sends the first operational set to the end PC, and first operational set includes the duplication object and shearing that MTP protocol is supported Object, first operational set are 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, and the file transfer means are applied to PC End, comprising:
First operational set receiving unit, for receiving the mobile device after connection is established at the end PC and mobile device The first operational set sent, first operational set include the duplication object and cutting objects that MTP protocol is supported, the PC The operating system version information at end 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 executing once-through operation just with the interaction of the end PC, also, the operating system version for the content and the end PC for including due to the operational set This is information-related, thereby it is ensured that the operating system version of duplication object and cutting objects and the end PC that operational set includes Matching reduces loss of data to improve the operation success rate of duplication operation and shearing manipulation.
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 the flow diagram for the first document transmission method that the embodiment of the present application one provides;
Fig. 2 is the flow diagram for second of document transmission method that the embodiment of the present application one provides;
Fig. 3 is the flow diagram for the third document transmission method that the embodiment of the present application two provides;
Fig. 4 is a kind of structural schematic diagram for file transfer means that the embodiment of the present application three provides;
Fig. 5 is the structural schematic diagram for another file transfer means that the embodiment of the present application four provides;
Fig. 6 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 the flow diagram of the first document transmission method of the offer of the embodiment of the present application one, the present embodiment Main slave mobile device side is described, and mobile device here includes mobile phone, USB flash disk etc., and details are as follows:
Step S11 obtains the operating system version information at the end PC after establishing connection with the end PC;
In the present embodiment, mobile device establishes connection by USB line and the end PC, after a connection setup, obtains the behaviour at the end PC Make system version information, operating system version information here includes the operating system version number of the end PC installation, operating system Title etc..Certainly, if multiple operating systems are installed at the end PC, obtain currently with the operating system version number of mobile device communication, OS name etc..
Step S12 sends the first operation set if the operating system version information at the end PC is the first indicated release information It is bonded to the end PC, first operational set includes the duplication object and cutting objects that MTP protocol is supported, first operation 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 and operate Or shearing manipulation.
Wherein, the first indicated release information includes at least one operating system version information.When the first indicated release information When including multiple operating system version informations, if in the operating system version information at the end PC and multiple operating system version informations Any one is identical, then determines that the operating system version information at the end PC is the first indicated release information.Preferably, this is first specified Version information is 10 version of windows, or is 10 or more version of windows.
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, after establishing connection with the end PC, the operating system version information at the end PC is obtained, if institute The operating system version information for stating the end PC is the first indicated release information, sends the first operational set to the end PC, described the One operational set includes the duplication object and cutting objects that MTP protocol is supported, first operational set is used to indicate the PC The duplication object or cutting objects that end is supported according to the MTP protocol execute corresponding duplication operation or shearing manipulation.Due to After connecting with the end PC, therefore the operational set to the end PC transmission including duplication object and cutting objects avoids executing primary behaviour Make just with the interaction of the end PC, also, since the content that the operational set includes is related with the operating system version information at the end PC, because This, can guarantee that duplication object that operational set includes and cutting objects are matched with the operating system version at the end PC, to improve The operation success rate of duplication operation and shearing manipulation, reduces loss of data.
Optionally, there are many modes of the operating system version information at the mobile device acquisition end PC, for example, being existed by user The operating system version information that mobile device inputs the end PC obtains, alternatively, being sent by the request end PC.It is sent out when by the request end PC When sending acquisition, the step S11 includes:
A1 requests the operating system version information at the end PC by usb protocol;
A2 receives the operating system version information that the end PC is sent.
In above-mentioned A1 and A2, when mobile device establishes connection by USB line and the end PC, which is assisted by USB Currently operation corresponding with the operating system of mobile device communication is by the operating system version information at the view request end PC, the end PC System version information is sent to mobile device.
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.
Fig. 2 shows the flow diagrams for second of document transmission method that the embodiment of the present application one provides, in Fig. 2, The document transmission method further include:
Step S13 sends the second operation set if the operating system version information at the end PC is the second indicated release information It is bonded to the end PC, second operational set includes the duplication object and primary cutting objects of Android primary, described primary Duplication object, primary cutting objects it is different from the duplication object, cutting objects that the MTP protocol is supported, it is described second behaviour Make set indicate the end PC according to the primary duplication object and primary cutting objects execute corresponding duplication operate 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.
Optionally, since the operating system version information at the end PC of acquisition may malfunction, at this point, duplication operation or shearing Operation may be unsuccessful, and therefore, in order to improve the success rate of duplication operation or shearing manipulation, the document transmission method is also Include:
The feedback information including operation failure that the end PC is sent is received, user is prompted to input the operating system version letter at the end PC Breath, using the operating system version information at the end PC of user's input as the operating system version information at the end PC obtained.
In the step, if the end PC executes duplication operation or shearing manipulation failure, transmission includes the feedback letter of operation failure For breath to mobile device, mobile device prompts the operating system version information at user's input end PC, will after user inputs relevant information Operating system version information of the relevant information of user's input as the end PC obtained.Since operating system version information is User's input, therefore can guarantee the accuracy of the operating system version information at the end PC that mobile device obtains.
Embodiment two:
Fig. 3 shows the flow diagram of the third document transmission method of the offer of the embodiment of the present application two, the present embodiment It is mainly described from the end side PC, details are as follows:
Step S31 receives the first operation set that the mobile device is sent after connection is established at the end PC and mobile device It closes, first operational set includes the duplication object and cutting objects that MTP protocol is supported, the operating system version at the end PC Information is the first indicated release information;
Here operating system version information includes operating system version number, the OS name etc. of the end PC installation.
Wherein, the first indicated release information includes at least one operating system version information.Preferably, the first specified version This information is 10 version of windows, or is 10 or more version of windows.
Step S32, 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, duplication object or cut that the end PC is supported according to duplicate instructions or shearing instruction and the MTP protocol It cuts object and the file (or file) of mobile device is replicated or clipped to corresponding position.
Optionally, if mobile device sends the operating system that operating system version information obtains the end PC by the request end PC Version information, then before receiving the first operational set that mobile device is sent, comprising:
B1, the request that mobile device is sent by usb protocol is received;
B2, operating system version information is sent to the mobile device.
In above-mentioned B1 and B2, when mobile device establishes connection by USB line and the end PC, which is set current with movement The corresponding operating system version information of operating system of standby communication is sent to mobile device.
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.
Optionally, the document transmission method further include:
If the operating system version information of C1, the end PC are the second indicated release information, the mobile device hair is received The second operational set sent, second operational set includes the duplication object and primary cutting objects of Android primary, described Primary duplication object, primary cutting objects are different from the duplication object, cutting objects that the MTP protocol is supported;
If C2, the PC termination receive duplicate instructions or shearing instruction, according to the duplicate instructions or shearing instruction and The duplication object and primary cutting objects of the Android primary 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.
Optionally, operation or shearing manipulation failure are replicated if executing, transmission includes that the feedback information of operation failure extremely moves Dynamic equipment.
Specifically, after mobile device receives the feedback information, it will be prompted to the operating system version letter that user inputs the end PC Breath.
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, the structure that Fig. 4 shows a kind of file transfer means of the offer of the embodiment of the present application three is shown It is intended to, this document transmitting device is applied to mobile device, and for ease of description, only the parts related to this embodiment are shown:
This document transmitting device 4 includes: operating system version information acquiring unit 41 and the first operational set transmission unit 42.Wherein:
Operating system version information acquiring unit 41, for after establishing connection with the end PC, obtaining the operation at the end PC System version information;
Here operating system version information includes operating system version number, the OS name etc. of the end PC installation. Certainly, if multiple operating systems are installed at the end PC, obtain currently with the operating system version number of mobile device communication, operating system Title etc..
First operational set transmission unit 42, if the operating system version information for the end PC is the first indicated release Information sends the first operational set to the end PC, and first operational set includes the duplication object and cut that MTP protocol is supported Cut object, first operational set is used to indicate the duplication object or shearing pair that the end PC is supported according to the MTP protocol As executing corresponding duplication operation or shearing manipulation.
Wherein, the first indicated release information includes at least one operating system version information.
Preferably, which is 10 version of windows, or is 10 or more version of windows.
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 avoid executing once-through operation just with the interaction of the end PC, also, the content for including due to the operational set with The operating system version information at the end PC is related, thereby it is ensured that duplication object and cutting objects and PC that operational set includes The operating system version at end matches, to improve the operation success rate of duplication operation and shearing manipulation, reduces loss of data.
Optionally, the file transfer means 4 further include:
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.
Optionally, the operating system version information acquiring unit 41 includes:
Operating system version information module, for requesting the operating system version information at the end PC by usb protocol;
Operating system version information receiving module, the operating system version information sent for receiving the end PC.
Optionally, the file transfer means 4 further include:
Priority indication transmission unit, if the operating system for the end PC includes customized duplication object and shearing pair As sending priority setting instruction to the end PC, the priority setting indicates to be used to indicate the end PC for different scenes setting not With priority: duplication operation between the file (or file) for executing mobile device or when shearing manipulation, setting first Operational set include MTP protocol support duplication object and cutting objects priority be higher than the end PC operating system include oneself The priority of the duplication object and cutting objects of definition;Duplication operation between the file (or file) for executing the end PC itself Or when shearing manipulation, 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 priority of customized duplication object and cutting objects that the operating system at the end PC includes.
Optionally, the file transfer means 4 further include:
Feedback information receiving unit prompts user defeated for receiving the feedback information including operation failure of the end PC transmission The operating system version information for entering the end PC, using the operating system version information at the end PC of user's input as the end PC obtained Operating system version information.
Example IV:
Corresponding with embodiment two, Fig. 5 shows the structure of another file transfer means of the offer of the embodiment of the present application four Schematic diagram, this document transmitting device are applied to the end PC, and for ease of description, only the parts related to this embodiment are shown:
Another file transfer means 5 include: the first operational set receiving unit 51 and operation execution unit 52.
First operational set receiving unit 51, for receiving the movement and setting after connection is established at the end PC and mobile device The first operational set that preparation is sent, first operational set includes the duplication object and cutting objects that MTP protocol is supported, described The operating system version information at the end PC is the first indicated release information;
Here operating system version information includes operating system version number, the OS name etc. of the end PC installation.
Wherein, the first indicated release information includes at least one operating system version information.Preferably, the first specified version This information is 10 version of windows, or is 10 or more version of windows.
Operation execution unit 52 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.
Optionally, if mobile device sends the operating system that operating system version information obtains the end PC by the request end PC Version information, then before receiving the first operational set that mobile device is sent, the first operational set receiving unit 51 includes:
Request receiving module, the request sent for receiving mobile device by usb protocol;
Operating system version information sending module, for operating system version information to be sent to the mobile device.
Optionally, if the operating system at the end PC includes customized duplication object and cutting objects, which is passed Defeated device 5 includes:
Priority setting instruction receiving unit, for receiving the priority setting instruction of mobile device transmission, the priority It instruction is set is used to indicate the end PC and different priority is set for different scenes: in file (or the text for executing mobile device 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 higher than customized duplication object and cutting objects that the operating system at the end PC includes of object;It is holding When duplication operation between the file (or file) at the end row PC itself or shearing manipulation, the first operational set of setting includes MTP The priority of duplication object and cutting objects that agreement is supported is lower than the customized duplication object that the operating system at the end PC includes With the priority of cutting objects.By the way that different priority is arranged for different scenes, it can guarantee the duplication behaviour of corresponding scene Make the successful execution with shearing manipulation.
Optionally, which includes:
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 the mobile device is sent, and second operational set includes the duplication object of Android primary The duplication pair supported with primary cutting objects, primary duplication object, primary cutting objects and the MTP protocol As, cutting objects are different;
Operation execution unit, if duplicate instructions or shearing instruction are received for PC termination, according to the duplicate instructions Or the duplication object and primary cutting objects of shearing instruction and the Android primary execute corresponding duplication operation or shearing 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.
Optionally, which includes:
Feedback information transmission unit, if sending includes operation failure for executing duplication operation or shearing manipulation failure Feedback information to mobile device.
Embodiment five:
Fig. 6 is the schematic diagram for the terminal device that one embodiment of the application provides.As shown in fig. 6, the terminal of the embodiment is set Standby 6 include: processor 60, memory 61 and are stored in the meter that can be run in the memory 61 and on the processor 60 Calculation machine program 62.The processor 60 is realized when executing the computer program 62 in above-mentioned each document transmission method embodiment The step of, such as step S11 to S12 shown in FIG. 1 or step S31 to S32 shown in Fig. 3.Alternatively, the processor 60 The function of each module/unit in above-mentioned each Installation practice, such as module shown in Fig. 4 are realized when executing the computer program 62 41 to 42 function, alternatively, the function of such as module 51 to 52 shown in Fig. 5.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are executed by the processor 60, 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 62 in the terminal device 6 is described.For example, the computer program 62 can be divided It is cut into operating system version information acquiring unit and the first operational set transmission unit, each unit concrete function is as follows:
Operating system version information acquiring unit, for after establishing connection with the end PC, obtaining the operation system at the end PC System version information;
First operational set transmission unit, if the operating system version information for the end PC is the first indicated release letter Breath sends the first operational set to the end PC, and first operational set includes the duplication object and shearing that MTP protocol is supported Object, first operational set are 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, for example, the computer program 62 can be divided into the first operational set receiving unit and operation executes Unit, each unit concrete function are as follows:
First operational set receiving unit, for receiving the mobile device after connection is established at the end PC and mobile device The first operational set sent, first operational set include the duplication object and cutting objects that MTP protocol is supported, the PC The operating system version information at end 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 6 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 60, memory 61.It will be understood by those skilled in the art that Fig. 6 The only example of terminal device 6 does not constitute the restriction to terminal device 6, 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 60 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 61 can be the internal storage unit of the terminal device 6, such as the hard disk or interior of terminal device 6 It deposits.The memory 61 is also possible to the External memory equipment of the terminal device 6, such as be equipped on the terminal device 6 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 61 can also both include the storage inside list of the terminal device 6 Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the terminal device Other programs and data.The memory 61 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
After establishing connection with the end PC, the operating system version information at the end PC is obtained;
If the operating system version information at the end PC is the first indicated release information, the first operational set is sent to the 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.
2. document transmission method as described in claim 1, which is characterized in that the document transmission method further include:
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 described in claim 1, which is characterized in that the operating system version for obtaining the end PC Information, comprising:
The operating system version information at the end PC is requested by usb protocol;
Receive the operating system version information that the end PC is sent.
4. document transmission method as claimed in claim 2, which is characterized in that the document transmission method further include:
The feedback information including operation failure that the end PC is sent is received, user is prompted to input the operating system version information at the end PC, Using the operating system version information at the end PC of user's input as the operating system version information at the end PC obtained.
5. a kind of document transmission method characterized by comprising
After connection is established at the end PC and mobile device, the first operational set that the mobile device is sent, first behaviour are received Making set includes the duplication object and cutting objects that MTP protocol is supported, the operating system version information at the end PC refers to for first Determine version 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.
6. document transmission method as claimed in claim 5, which is characterized in that the document transmission method further include:
If the operating system version information at the end PC is the second indicated release information, the 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;
If the PC termination receives duplicate instructions or shearing instruction, according to the duplicate instructions or shearing instruction and the Android Primary duplication object and primary cutting objects 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
Operating system version information acquiring unit, for after establishing connection with the end PC, obtaining the operating system version at the end PC This information;
First operational set transmission unit, if the operating system version information for the end PC is the first indicated release information, The first operational set is sent to the end PC, first operational set includes the duplication object that MTP protocol is supported and shearing pair As first operational set is used to indicate the duplication object that the end PC is supported according to the MTP protocol or cutting objects are held The corresponding duplication operation of row or shearing manipulation.
8. a kind of file transfer means, the file transfer means are applied to the end PC characterized by comprising
First operational set receiving unit is sent for after connection is established at the end PC and mobile device, receiving the mobile device 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;
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 Claims 1-4 when executing the computer program The step of any one the method, or realize such as the step of any one of claim 5 or 6 the method.
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 Claims 1-4 of realization the method, or realization Such as the step of the method for any one of claim 5 or 6.
CN201811173512.2A 2018-10-09 2018-10-09 File transmission method and device and terminal equipment Active CN109298956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811173512.2A CN109298956B (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
CN201811173512.2A CN109298956B (en) 2018-10-09 2018-10-09 File transmission method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109298956A true CN109298956A (en) 2019-02-01
CN109298956B CN109298956B (en) 2020-07-28

Family

ID=65161931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811173512.2A Active CN109298956B (en) 2018-10-09 2018-10-09 File transmission method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109298956B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052029A (en) * 2020-08-20 2020-12-08 厦门亿联网络技术股份有限公司 Configuration method and system of USB device management software and computer device
CN114172897A (en) * 2021-12-09 2022-03-11 西安邮电大学 PC (personal computer) end and Android end file transmission method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912867A (en) * 2005-08-08 2007-02-14 扬智科技股份有限公司 Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device
CN101589592A (en) * 2006-02-27 2009-11-25 微软公司 Multi-protocol removable storage device
CN108268330A (en) * 2018-01-16 2018-07-10 深圳市天珑移动技术有限公司 Document transmission method, mobile terminal and computer readable storage medium
CN108536626A (en) * 2018-03-28 2018-09-14 深圳市四季宏胜科技有限公司 Channel bridging method, bridging device, computer equipment and computer program product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912867A (en) * 2005-08-08 2007-02-14 扬智科技股份有限公司 Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device
CN101589592A (en) * 2006-02-27 2009-11-25 微软公司 Multi-protocol removable storage device
CN108268330A (en) * 2018-01-16 2018-07-10 深圳市天珑移动技术有限公司 Document transmission method, mobile terminal and computer readable storage medium
CN108536626A (en) * 2018-03-28 2018-09-14 深圳市四季宏胜科技有限公司 Channel bridging method, bridging device, computer equipment and computer program product

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052029A (en) * 2020-08-20 2020-12-08 厦门亿联网络技术股份有限公司 Configuration method and system of USB device management software and computer device
CN112052029B (en) * 2020-08-20 2022-08-12 厦门亿联网络技术股份有限公司 Configuration method and system of USB device management software and computer device
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
CN109298956B (en) 2020-07-28

Similar Documents

Publication Publication Date Title
EP3534320A1 (en) Block chain-based multi-chain management method and system, electronic device, and storage medium
CN108846753B (en) Method and apparatus for processing data
US20120016999A1 (en) Context for Sharing Data Objects
US20160140554A1 (en) Method and system for conducting resource transfer using a social networking application
CN110233742A (en) A kind of group's method for building up, system, terminal and server
CN113407086B (en) Object dragging method, device and storage medium
US20170277526A1 (en) Software categorization method and electronic device
CN110059273A (en) A kind of method showing Rich Media on mobile terminals and mobile terminal
JP7393468B2 (en) Data synchronization methods, devices, electronic devices, storage media and computer programs
CN109298956A (en) Document transmission method, device and terminal device
US20140325375A1 (en) Method, device, and system for network communication
US20170195262A1 (en) Method of organizing dialog with the use of fillable forms
CN109445779A (en) The rendering method and terminal device of multiple-language user interface
CN113778270A (en) Method and device for dragging icon
CN113760561A (en) Data processing method and device
CN110019040A (en) A kind of file processing method, mobile terminal and storage medium
CN112052152A (en) Simulation test method and device
CN113420275B (en) Data connection processing method, related device and computer program product
CN106408793B (en) A kind of Service Component sharing method and system suitable for ATM business
CN113760487B (en) Service processing method and device
CN105721278A (en) Question-answer mechanism based on instant communication
CN113590243A (en) Energy enterprise project creation method and device, computer equipment and medium
CN109561146A (en) Document down loading method, device, terminal device
CN107454160B (en) Information processing method, mobile terminal and computer readable storage medium
CN113741862A (en) Communication system and method for mobile terminal expansion development

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