CN113392055B - File transmission method, file transmission device and storage medium - Google Patents

File transmission method, file transmission device and storage medium Download PDF

Info

Publication number
CN113392055B
CN113392055B CN202010175872.7A CN202010175872A CN113392055B CN 113392055 B CN113392055 B CN 113392055B CN 202010175872 A CN202010175872 A CN 202010175872A CN 113392055 B CN113392055 B CN 113392055B
Authority
CN
China
Prior art keywords
file transmission
terminal
file
thread
improving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010175872.7A
Other languages
Chinese (zh)
Other versions
CN113392055A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010175872.7A priority Critical patent/CN113392055B/en
Publication of CN113392055A publication Critical patent/CN113392055A/en
Application granted granted Critical
Publication of CN113392055B publication Critical patent/CN113392055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure relates to a file transmission method, a file transmission device and a storage medium, wherein the file transmission method is applied to a first terminal, the first terminal performs file transmission with a second terminal through a universal serial bus interface, and the file transmission method includes: based on the received file transmission task request information of the second terminal, asynchronously triggering the operation of improving the file transmission speed; and based on the operation and the file transmission task request information, carrying out file transmission with the second terminal. According to the embodiment of the disclosure, the speed of file transmission between the first terminal and the second terminal through the USB is effectively improved, and the efficiency of file transmission is improved.

Description

File transmission method, file transmission device and storage medium
Technical Field
The present disclosure relates to the field of data transmission, and in particular, to a file transmission method, a file transmission device, and a storage medium.
Background
With the rapid development of technology, mobile terminals are taking an increasingly important role in people's lives. Mobile terminals are also increasingly deployed, and people store resources required for work and life using the storage function of the mobile terminal.
A media transfer protocol (MTP, media Transfer Protocol) may be used to transfer media files. The terminal is connected with external equipment such as various desktops, notebook computers and the like in an MTP mode to transmit data, and files stored in the mobile terminal are managed conveniently.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a file transfer method, a file transfer apparatus, and a storage medium.
According to a first aspect of an embodiment of the present disclosure, there is provided a file transmission method applied to a first terminal, where the first terminal performs file transmission with a second terminal through a universal serial bus interface, the file transmission method including: based on the received file transmission task request information of the second terminal, asynchronously triggering the operation of improving the file transmission speed; and based on the operation and the file transmission task request information, carrying out file transmission with the second terminal.
In one embodiment, the operation of increasing the file transfer speed includes: and at least one of improving the working frequency of the central processor of the first terminal, improving the working frequency of the memory of the first terminal and executing the file transfer task on the big core of the central processor.
In one embodiment, the operation of asynchronously triggering the increase in file transfer speed includes: when receiving file transmission task request information, starting a file transmission thread and creating an asynchronous thread; an operation to increase the file transfer speed is invoked in an asynchronous thread.
In an embodiment, increasing the operating frequency of the memory of the first terminal includes: closing an automatic frequency reduction function of a storage space of the first terminal and/or improving the transmission bandwidth of a memory of the first terminal system.
In one embodiment, after the file transfer is completed, it is determined to cancel the operation of increasing the file transfer speed.
According to a second aspect of the embodiments of the present disclosure, there is provided a file transmission device applied to a first terminal, the first terminal performing file transmission with a second terminal through a universal serial bus interface, the file transmission device including: the triggering module is used for asynchronously triggering the operation of improving the file transmission speed based on the received file transmission task request information of the second terminal; and the transmission module is used for carrying out file transmission with the second terminal based on the operation and the file transmission task request information.
In one embodiment, the operation of increasing the file transfer speed includes: and at least one of improving the working frequency of the central processor of the first terminal, improving the working frequency of the memory of the first terminal and executing the file transfer task on the big core of the central processor.
In one embodiment, the triggering module asynchronously triggers the operation of increasing the file transfer speed in the following manner: when receiving file transmission task request information, starting a file transmission thread and creating an asynchronous thread; an operation to increase the file transfer speed is invoked in an asynchronous thread.
In an embodiment, the triggering module increases the operating frequency of the memory of the first terminal by: closing an automatic frequency reduction function of a storage space of the first terminal and/or improving the transmission bandwidth of a memory of the first terminal system.
In an embodiment, the file transfer device further includes: and the cancellation module is used for determining to cancel the operation of improving the file transmission speed after the file transmission is finished.
According to still another aspect of the embodiments of the present disclosure, there is provided a file transfer apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: the file transfer method of any one of the preceding claims is performed.
According to yet another aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, which when executed by a processor of a mobile terminal, enables the mobile terminal to perform the file transfer method of any one of the preceding claims.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: according to the embodiment of the disclosure, the first terminal asynchronously triggers the operation of improving the file transmission speed based on the received file transmission task request information of the second terminal, and performs file transmission with the second terminal based on the improved file transmission speed and the file transmission task request information, so that the speed of file transmission between the first terminal and the second terminal through USB is effectively improved, and the efficiency of file transmission is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a file transfer method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a file transfer method according to still another exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a file transfer method according to still another exemplary embodiment of the present disclosure.
Fig. 4 is a block diagram of a file transfer device according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram of a file transfer device according to yet another exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram of an apparatus according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Fig. 1 is a flowchart illustrating a file transfer method according to an exemplary embodiment, where the file transfer method is used in a first terminal, which may be a mobile phone, a tablet computer, an electronic reader, a personal digital assistant (personal digital assistant, PDA), a vehicle-mounted device, a wearable device, etc., and is connected to a second terminal, such as a Personal Computer (PC), an OTG device, or other intelligent home appliance, through a universal serial bus (Universal Serial Bus, USB) interface for performing a file-related operation. The file-related operations may be, for example, operations to list folders, download files, upload files, query file attributes, delete files, and the like.
For convenience of description, in the following description of the present disclosure, the first terminal is taken as a mobile terminal, and the second terminal is taken as a PC as an example. When the mobile terminal is connected with the PC through the USB interface, the media transmission protocol (Media Transfer Protocol, MTP) protocol is used for transmitting data with the computer so as to realize file transmission.
As shown in fig. 1, the file transfer method includes the following steps.
In step S101, an operation to increase the file transfer speed is asynchronously triggered based on the received file transfer job request information of the second terminal.
The user initiates file transfer task request information at the PC, for example, uploads or downloads a file to the mobile terminal, and communicates with the mobile terminal through USB. The MTP protocol specifies all information of the USB device, such as file reading mode, transmission mode, application program interface naming mode, etc., when the mobile terminal and the PC communicate through the USB based on MTP transmission. In file-related operations, only the contents specified in the MTP protocol need be invoked through the application program interface. When the terminal receives the file transmission task request information, the hardware triggers the interrupt, and the file transmission task is processed by the USB drive and the MTP drive of the kernel space of the mobile terminal. The MtpServer thread of the mobile terminal user space polls/dev/MTP nodes until readable, and reads the file transfer task Request content of the MTP Request.
The MtpServer thread inquires metadata of a file system from a system service MediaProvider through MtpDatabase, finds an actual file of the file system according to the metadata, reads the actual file, writes back the actual file into a USB layer and transmits the actual file to a kernel space MTP driver/dev/MTP of the mobile terminal. And the PC receives the corresponding file data and displays the file data to a user according to logic.
The mobile terminal triggers an operation of increasing a file transfer speed (boost) in order to increase the file transfer speed based on the received file transfer task request information. The boost operation is called in the file transmission MtpServer thread, the call between threads is time-consuming operation, the MTP transmission speed is reduced, and the improvement of the file transmission speed is not facilitated. And asynchronously triggering the operation of improving the file transmission speed, avoiding the influence of boost on the main thread of the MtpServer file transmission, and further improving the file transmission speed in the file transmission process.
In step S102, file transfer is performed with the second terminal based on the operation and the file transfer task request information.
And carrying out file transmission based on the operation of improving the file transmission speed and the file transmission task request information.
According to the embodiment of the disclosure, the first terminal asynchronously triggers the operation of improving the file transmission speed based on the received file transmission task request information of the second terminal, and the second terminal performs file transmission based on the improved file transmission speed and the file transmission task request information, so that the speed of the first terminal performing file transmission with the second terminal through USB is effectively improved, and the efficiency of file transmission is improved.
In one embodiment of the present disclosure, the operation of increasing the file transfer speed includes at least one of increasing an operating frequency of a central processor of the first terminal, increasing an operating frequency of a memory of the first terminal, and executing a file transfer task on a large core of the central processor.
During file transmission, a certain load is applied to the central processor of the first terminal, the memory of the first terminal and the system bus, so that the working frequency of the central processor of the first terminal can be increased, and the working frequency of the memory of the first terminal can be increased for the purpose of improving the file transmission speed.
When a Central Processing Unit (CPU) of the mobile terminal is multi-core, namely the CPU comprises a plurality of cores, the cores comprise a plurality of large cores and a plurality of small cores, the running performance of the large cores is high, and the running performance of the small cores is low. The file transfer task is executed on the big core of the central processing unit, so that the speed of the file transfer task can be increased.
Fig. 2 is a flowchart illustrating a file transfer method according to still another exemplary embodiment of the present disclosure. As shown in fig. 2, the operation of asynchronously triggering to increase the file transfer speed includes:
in step S201, upon receiving the file transfer task request information, a file transfer thread is started, and an asynchronous thread is created.
Based on MTP transmission between the mobile terminal and the PC, when receiving file transmission task request information, starting a file transmission thread MtpServer thread, and when the MtpServer thread is started to realize asynchronous triggering of boost, creating an asynchronous thread to realize boost in the asynchronous thread.
Asynchronous threads, for example, may be loop (Looper) threads, or other threads that may asynchronously trigger boost. The Looper thread is a cyclic thread, and once a new task exists, the execution is finished and the next task is waited. When the asynchronous thread is a Looper thread and the MtpServer thread receives a file transmission request, the MtpServer thread sends a request for starting a boost to the Looper thread except for executing a file transmission task, and the asynchronous triggering of the boost is realized in the Looper thread. The Looper thread alternately inquires that a file transmission task request exists in the message queue, and when a new file transmission task request exists, the file transmission task is executed, and the executed file transmission task continues to wait for the new file transmission task.
In step S202, an operation to increase the file transfer speed is invoked in the asynchronous thread.
When the file transmission MtpServer thread receives the file transmission task request, a boost request is sent to the asynchronous thread to asynchronously trigger the boost, namely, the operation of improving the file transmission speed is called in the asynchronous thread, so that the time loss of the boost to the file transmission MtpServer thread is reduced, and the effective improvement of the file transmission speed is ensured.
Taking an asynchronous thread as a Looper thread as an example, when the Looper thread receives a boost request sent by the MtpServer thread. In the Looper thread, the perfect is called to the PerfService thread by the Binder, and the PerfService thread is a service for actively regulating the system capacity in the user space of the mobile terminal, namely, the frequencies of devices of the mobile phone are increased by calling the PerfService thread in the Looper thread, so that the file transmission speed is improved.
In one embodiment, increasing the operating frequency of the memory of the first terminal includes: closing an automatic frequency reduction function of a storage space of the first terminal and/or improving the transmission bandwidth of a memory of the first terminal system.
The method comprises the steps that the working frequency of a memory of the mobile terminal is improved, the automatic frequency reducing function of an embedded multimedia memory (Embedded Multi Media Card, eMMC) or a universal flash memory (Universal Flash Storage, UFS) of a storage space of the mobile terminal is closed, the eMMC is a nonvolatile memory, data can be stored no matter in an electrified state or an outage state, the method is mainly used for storing the data in the mobile terminal, so that the frequency of a memory can not be reduced along with the progress of a transmission task in the process of file transmission of the mobile terminal through USB, the working frequency of the memory of the mobile terminal is ensured, and the file transmission speed is improved.
Increasing the operating frequency of the memory of the mobile terminal further includes increasing the bandwidth of a system memory, such as a Double Data Rate (DDR), to enable the system of the mobile terminal to achieve a higher Data transmission operating frequency.
Fig. 3 is a flowchart illustrating a file transfer method according to still another exemplary embodiment of the present disclosure. As shown in fig. 3, the file transfer method includes the following steps.
In step S301, an operation to increase the file transfer speed is asynchronously triggered based on the received file transfer job request information of the second terminal.
In step S302, file transfer is performed with the second terminal based on the operation and the file transfer task request information.
In step S303, after the completion of the file transfer, it is determined to perform an operation of canceling the increase in the file transfer speed.
When the mobile terminal is in the process of file transmission, the MtpServer thread receives file transmission task request information, the MtpServer thread is started, and a request for starting Boost is sent to an asynchronous thread, so that the Boost is triggered asynchronously. When the mobile terminal performs boost, the working frequency of devices such as a mobile terminal CPU and a memory is continuously improved, and when the time for file transmission is long, the mobile terminal device is high in frequency, so that the mobile phone is heated seriously, and bad user experience is brought. At the MtpServer thread polling/dev/mtp node, no new file transmission request is queried, and transmission is stopped, at this time, the MtpServer sends a request for canceling Boost to cancel Boost, so that the frequency during the mobile terminal is reduced to be the normal working frequency, and the influence of temperature rise on the service life of mobile terminal devices is avoided.
Based on one inventive concept, the present disclosure also provides a display device of a terminal interface theme.
Fig. 4 is a block diagram of a file transfer device according to an exemplary embodiment of the present disclosure. The file transmission device 400 is applied to a first terminal, and the first terminal is connected to a second terminal through a universal serial bus interface, as shown in fig. 4, the file transmission device 400 includes: a trigger module 410 and a transmission module 420.
And the triggering module 410 is configured to asynchronously trigger an operation of increasing the file transfer speed based on the received file transfer task request information of the second terminal.
And the transmission module 420 is configured to perform file transmission with the second terminal based on the operation and the file transmission task request information.
In one embodiment, the operation of increasing the file transfer speed includes: and at least one of improving the working frequency of the central processor of the first terminal, improving the working frequency of the memory of the first terminal and executing the file transfer task on the big core of the central processor.
In one embodiment, the triggering module 410 asynchronously triggers the operation of increasing the file transfer speed in the following manner: when receiving file transmission task request information, starting a file transmission thread and creating an asynchronous thread; an operation to increase the file transfer speed is invoked in an asynchronous thread.
In one embodiment, the triggering module 410 increases the operating frequency of the memory of the first terminal as follows: closing an automatic frequency reduction function of a storage space of the first terminal and/or improving the transmission bandwidth of a memory of the first terminal system.
Fig. 5 is a block diagram of a file transfer apparatus according to still another exemplary embodiment of the present disclosure, and as shown in fig. 5, the file transfer apparatus 400 further includes: cancellation module 430.
And the cancellation module 430 is configured to determine to cancel the operation of improving the file transfer speed after the file transfer is completed.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 6 is a block diagram illustrating an apparatus for file transfer according to an exemplary embodiment. For example, apparatus 600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the apparatus 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the device 600. Examples of such data include instructions for any application or method operating on the apparatus 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 606 provides power to the various components of the device 600. The power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 600.
The multimedia component 608 includes a screen between the device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 600 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor assembly 614 may detect the on/off state of the device 600, the relative positioning of the components, such as the display and keypad of the apparatus 600, the sensor assembly 614 may also detect a change in position of the apparatus 600 or one of the components of the apparatus 600, the presence or absence of user contact with the apparatus 600, the orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the apparatus 600 and other devices in a wired or wireless manner. The device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of apparatus 600 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. The file transmission method is characterized by being applied to a first terminal, wherein the first terminal performs file transmission with a second terminal through a universal serial bus interface, the first terminal and the second terminal are transmitted based on a media transmission protocol MTP, and the file transmission method comprises the following steps:
based on the received file transmission task request information of the second terminal, asynchronously triggering the operation of improving the file transmission speed;
based on the operation and the file transmission task request information, carrying out file transmission with the second terminal;
the operation of asynchronously triggering and improving the file transmission speed comprises the following steps:
the working frequency of a central processing unit of the first terminal is raised and/or the working frequency of a memory of the first terminal is raised;
when the central processor of the first terminal is multi-core, executing the file transmission task on a big core of the central processor;
based on the received file transmission task request information of the second terminal, asynchronously triggering the operation of improving the file transmission speed, including:
when the file transmission task request information is received, a file transmission thread MtpServer thread is started to improve the file transmission speed in an asynchronous thread.
2. The file transfer method according to claim 1, wherein it is determined to cancel an operation of increasing a file transfer speed after the file transfer is completed.
3. The file transfer method according to claim 1, wherein the operation of asynchronously triggering the increase in file transfer speed comprises:
when the file transmission task request information is received, starting a file transmission thread and creating an asynchronous thread;
and calling an operation for improving the file transmission speed in the asynchronous thread.
4. The file transfer method according to claim 1, wherein increasing the operating frequency of the memory of the first terminal includes:
closing the automatic frequency-reducing function of the storage space of the first terminal and/or improving the transmission bandwidth of the memory of the first terminal system.
5. A file transmission device, which is applied to a first terminal, wherein the first terminal performs file transmission with a second terminal through a universal serial bus interface, and the first terminal and the second terminal perform MTP transmission based on a media transmission protocol, the file transmission device comprises:
the triggering module is used for asynchronously triggering the operation of improving the file transmission speed based on the received file transmission task request information of the second terminal;
the transmission module is used for carrying out file transmission with the second terminal based on the operation and the file transmission task request information;
the operation of asynchronously triggering and improving the file transmission speed comprises the following steps:
the working frequency of a central processing unit of the first terminal is raised and/or the working frequency of a memory of the first terminal is raised;
when the central processor of the first terminal is multi-core, executing the file transmission task on a big core of the central processor;
based on the received file transmission task request information of the second terminal, asynchronously triggering the operation of improving the file transmission speed, including:
when the file transmission task request information is received, a file transmission thread MtpServer thread is started to improve the file transmission speed in an asynchronous thread.
6. The file transfer device of claim 5, wherein said device further comprises:
and the cancellation module is used for determining to cancel the operation of improving the file transmission speed after the file transmission is finished.
7. The file transfer device of claim 5, wherein the triggering module asynchronously triggers the operation of increasing the file transfer speed by:
when the file transmission task request information is received, starting a file transmission thread and creating an asynchronous thread;
and calling an operation for improving the file transmission speed in the asynchronous thread.
8. The file transmission device according to claim 5, wherein the triggering module increases the operating frequency of the memory of the first terminal by:
closing the automatic frequency-reducing function of the storage space of the first terminal and/or improving the transmission bandwidth of the memory of the first terminal system.
9. A document transfer apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: a file transfer method according to any one of claims 1 to 4.
10. A non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, causes the mobile terminal to perform the file transfer method of any of claims 1 to 4.
CN202010175872.7A 2020-03-13 2020-03-13 File transmission method, file transmission device and storage medium Active CN113392055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010175872.7A CN113392055B (en) 2020-03-13 2020-03-13 File transmission method, file transmission device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010175872.7A CN113392055B (en) 2020-03-13 2020-03-13 File transmission method, file transmission device and storage medium

Publications (2)

Publication Number Publication Date
CN113392055A CN113392055A (en) 2021-09-14
CN113392055B true CN113392055B (en) 2024-01-30

Family

ID=77615964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010175872.7A Active CN113392055B (en) 2020-03-13 2020-03-13 File transmission method, file transmission device and storage medium

Country Status (1)

Country Link
CN (1) CN113392055B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601484A (en) * 2003-09-23 2005-03-30 华为技术有限公司 Disk data backup system and method thereof
JP2010123042A (en) * 2008-11-21 2010-06-03 Japan Digital Laboratory Co Ltd File transfer method, file transfer system, terminal device, and file transfer program
CN101753616A (en) * 2009-12-17 2010-06-23 浙江大学 Lose-tolerable file transfer control method applicable to space communication system
CN102117254A (en) * 2011-01-17 2011-07-06 青岛海信日立空调系统有限公司 Embedded-system-based asynchronous data receiving method
CN102595380A (en) * 2012-01-06 2012-07-18 华为终端有限公司 Data service processing method, equipment and communication system
CN102625395A (en) * 2012-01-06 2012-08-01 华为终端有限公司 Boost function processing method, wireless network controller and terminal
CN104050111A (en) * 2013-03-15 2014-09-17 波音公司 Accessing different types of memory by respective commands with different timing requirements
CN104954049A (en) * 2014-03-31 2015-09-30 小米科技有限责任公司 Data file transmission method and device thereof
CN105897825A (en) * 2015-11-20 2016-08-24 乐视云计算有限公司 Asynchronous file transmitting method and system
CN107391423A (en) * 2017-07-26 2017-11-24 Tcl移动通信科技(宁波)有限公司 Method, storage medium and the mobile terminal of file are transmitted by OTG functions
CN107800978A (en) * 2017-10-26 2018-03-13 天津大学 The PWM pixel structures that asynchronous reset is synchronously read
WO2019149054A1 (en) * 2018-01-31 2019-08-08 国广融合(北京)传媒科技发展有限公司 Fusion transport system-based file transfer method
CN110149374A (en) * 2019-04-28 2019-08-20 深圳市恒扬数据股份有限公司 A kind of document transmission method, terminal device and computer readable storage medium
CN110188366A (en) * 2019-05-29 2019-08-30 北京字节跳动网络技术有限公司 A kind of information processing method, device and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601484A (en) * 2003-09-23 2005-03-30 华为技术有限公司 Disk data backup system and method thereof
JP2010123042A (en) * 2008-11-21 2010-06-03 Japan Digital Laboratory Co Ltd File transfer method, file transfer system, terminal device, and file transfer program
CN101753616A (en) * 2009-12-17 2010-06-23 浙江大学 Lose-tolerable file transfer control method applicable to space communication system
CN102117254A (en) * 2011-01-17 2011-07-06 青岛海信日立空调系统有限公司 Embedded-system-based asynchronous data receiving method
CN102595380A (en) * 2012-01-06 2012-07-18 华为终端有限公司 Data service processing method, equipment and communication system
CN102625395A (en) * 2012-01-06 2012-08-01 华为终端有限公司 Boost function processing method, wireless network controller and terminal
CN104050111A (en) * 2013-03-15 2014-09-17 波音公司 Accessing different types of memory by respective commands with different timing requirements
CN104954049A (en) * 2014-03-31 2015-09-30 小米科技有限责任公司 Data file transmission method and device thereof
CN105897825A (en) * 2015-11-20 2016-08-24 乐视云计算有限公司 Asynchronous file transmitting method and system
CN107391423A (en) * 2017-07-26 2017-11-24 Tcl移动通信科技(宁波)有限公司 Method, storage medium and the mobile terminal of file are transmitted by OTG functions
CN107800978A (en) * 2017-10-26 2018-03-13 天津大学 The PWM pixel structures that asynchronous reset is synchronously read
WO2019149054A1 (en) * 2018-01-31 2019-08-08 国广融合(北京)传媒科技发展有限公司 Fusion transport system-based file transfer method
CN110149374A (en) * 2019-04-28 2019-08-20 深圳市恒扬数据股份有限公司 A kind of document transmission method, terminal device and computer readable storage medium
CN110188366A (en) * 2019-05-29 2019-08-30 北京字节跳动网络技术有限公司 A kind of information processing method, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于NFC的P2P文件传输系统研究;岳佳欣;王忠;;重庆理工大学学报(自然科学)(12);全文 *

Also Published As

Publication number Publication date
CN113392055A (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN105955765B (en) Application preloading method and device
JP6189000B2 (en) Application installation package processing method, apparatus, program, and recording medium
WO2021063090A1 (en) Method for establishing application combination, and electronic device
CN109495871B (en) Bluetooth connection control method, electronic device and computer readable storage medium
US20220343056A1 (en) Method for loading image and electronic device
CN111966410B (en) Start-up processing method and device, electronic equipment and storage medium
CN113392055B (en) File transmission method, file transmission device and storage medium
CN108958824A (en) Starting method, apparatus, electronic equipment and the storage medium of application program
CN112307229A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN107483605B (en) File downloading method and device and storage medium
CN114339966B (en) Interface control method and device for data transmission, medium and electronic equipment
JP6441385B2 (en) Information input method, apparatus, program, and recording medium
CN109491655A (en) A kind of incoming event processing method and processing device
CN108092986B (en) Data transmission method and device of mobile terminal
CN109032583B (en) Data interaction method and device
CN108958943B (en) Memory release method and device
CN113360254A (en) Task scheduling method and system
CN110968523A (en) Memory defragmentation method and device
CN114077461A (en) Application program running method, device, equipment and storage medium
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN111625536B (en) Data access method and device
WO2023123787A1 (en) Image processing method, apparatus, electronic device, and storage medium
CN112422597B (en) Network content access method, device and storage medium
CN111241097B (en) Method for processing object, device for processing object and storage medium
CN107665125B (en) Method and device for executing operation instruction

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