Mobile terminal USB transmission control method, device, terminal equipment and medium

By setting the USB transmission interface mode in the mobile terminal and adjusting it according to the central processor occupancy rate, the problem of background processes being killed due to tight memory in the mobile terminal is solved and the user experience is improved.

CN113051203BActive Publication Date: 2024-09-17HUIZHOU TCL MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110224568.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-01
Publication Date
2024-09-17
Estimated Expiration
2041-03-01

AI Technical Summary

Technical Problem

After long-term use of mobile terminals, the memory is tight, causing background processes to be killed, affecting system functions and causing poor user experience.

Method used

By setting the USB transmission interface of the mobile terminal to USB3.0 and USB2.0 modes, the central processor occupancy rate is monitored, and the interface mode is adjusted according to the occupancy rate to reduce memory usage.

Benefits of technology

Effectively reduce memory tension, prevent background processes from being killed, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113051203B
    Figure CN113051203B
Patent Text Reader

Abstract

The present invention discloses a method, device, terminal equipment and medium for controlling USB transmission of a mobile terminal. The method comprises: setting the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode; monitoring the CPU occupancy rate of the mobile terminal during USB transmission, and obtaining and identifying the interface mode of the current USB transmission of the mobile terminal; adjusting the interface mode of the USB transmission of the mobile terminal according to the CPU occupancy rate of the current mobile terminal and the interface mode of the current USB transmission of the mobile terminal. The present invention makes control to reasonably allocate when the mobile terminal transmits data through a USB connection, reduces the memory tension, avoids that when the memory is less, more background processes are killed by the mobile terminal system (such as step counting), causing problems in related functions, improves the user experience, and provides convenience for users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mobile terminals, and in particular to a method, a device, a terminal equipment and a storage medium for controlling USB transmission of a mobile terminal. Background Art

[0002] With the development of science and technology and the continuous improvement of people's living standards, the use of various mobile terminals is becoming more and more popular, and mobile terminals have become an indispensable communication tool in people's lives.

[0003] Mobile terminals are all equipped with USB interfaces, and some even have other functions superimposed on the USB interfaces, such as OTG. When the mobile terminal is connected to a USB host such as a computer via USB, the USB host will transmit data with the mobile terminal. Currently, there are many types of USB interfaces, such as USB3.0 / 2.0. When the mobile terminal uses USB3.0, the data transmission speed is very fast. These data are first put into the memory of the mobile terminal, because the mobile terminal also needs a large memory to match it. When the mobile terminal is used for a long time, it will always be installed with more programs. At the same time, users lack the habit of frequent restarts, so no matter how much memory there is, it will be occupied, which is sometimes inconvenient for users to use.

[0004] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention

[0005] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a mobile terminal USB transmission control method, device, terminal equipment and storage medium are provided, aiming to reasonably allocate the control when the mobile terminal transmits data through a USB connection, so as to reduce the memory tension, avoid that a large number of background processes are killed by the mobile terminal system when the memory is less (such as pedometer), causing problems in related functions, thereby improving the user experience and providing convenience for users.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:

[0007] A method for controlling USB transmission of a mobile terminal, comprising:

[0008] Setting the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode;

[0009] Monitor the CPU occupancy rate of the mobile terminal during USB transmission, and obtain and identify the interface mode of the current USB transmission of the mobile terminal;

[0010] According to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode, the mobile terminal USB transmission interface mode is adjusted.

[0011] The mobile terminal USB transmission control method, wherein the first interface mode is the USB 3.0 interface mode, and the second interface mode is the USB 2.0 mode.

[0012] The mobile terminal USB transmission control method, wherein the step of setting the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode comprises:

[0013] The USB transmission interface of the mobile terminal is pre-set to include two working modes, namely USB 3.0 interface mode and USB 2.0 interface mode; the transmission speed of the USB 3.0 interface mode is greater than the transmission speed of the USB 2.0 interface mode.

[0014] The mobile terminal USB transmission control method, wherein the steps of monitoring the CPU occupancy rate of the mobile terminal during the USB transmission process and obtaining and identifying the interface mode of the current mobile terminal USB transmission include:

[0015] Detect whether the mobile terminal is performing USB transmission;

[0016] When it is detected that the mobile terminal is performing USB transmission, the timer is started to monitor and obtain the CPU occupancy rate of the mobile terminal at fixed intervals;

[0017] Get and identify the current USB transmission interface mode of the mobile terminal.

[0018] The mobile terminal USB transmission control method, wherein the step of adjusting the mobile terminal USB transmission interface mode according to the current mobile terminal central processor occupancy rate and the current mobile terminal USB transmission interface mode comprises:

[0019] Determine whether the current mobile terminal central processing unit occupancy rate is higher than a preset threshold;

[0020] When the current mobile terminal CPU occupancy rate is higher than a preset threshold, it is further determined whether the current mobile terminal USB transmission interface mode is the first interface mode, and if so, the mobile terminal USB transmission interface mode is set to the second interface mode.

[0021] The mobile terminal USB transmission control method, wherein the step of adjusting the mobile terminal USB transmission interface mode according to the current mobile terminal central processor occupancy rate and the current mobile terminal USB transmission interface mode comprises:

[0022] Determining whether the acquired current mobile terminal central processing unit occupancy rate is lower than or equal to a preset threshold;

[0023] When the current mobile terminal CPU occupancy rate is lower than or equal to a preset threshold, it is further determined whether the current mobile terminal USB transmission interface mode is the second interface mode. If yes, the mobile terminal USB transmission interface mode is set to the first interface mode.

[0024] The mobile terminal USB transmission control method, wherein when the current mobile terminal central processor occupancy rate is lower than or equal to a preset threshold, further determining whether the current mobile terminal USB transmission interface mode is the second interface mode, and if yes, setting the mobile terminal USB transmission interface mode to the first interface mode also includes:

[0025] When the current mobile terminal CPU occupancy rate is lower than or equal to a preset threshold, the data stored in the second interface mode is output to the first interface mode for transmission, and the second interface mode data is cleared;

[0026] Set the USB transmission interface mode of the mobile terminal to the first interface mode.

[0027] A mobile terminal USB transmission control device, wherein the device comprises:

[0028] A setting module, used to set the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode;

[0029] The monitoring module is used to monitor the CPU occupancy rate of the mobile terminal during the USB transmission process and obtain and identify the interface mode of the current USB transmission of the mobile terminal;

[0030] The switching control module is used to adjust the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode.

[0031] A terminal device, wherein the terminal device comprises a memory, a processor and a mobile terminal USB transmission control program stored in the memory and executable on the processor, and when the processor executes the mobile terminal USB transmission control program, the steps of any one of the mobile terminal USB transmission control methods are implemented.

[0032] A computer-readable storage medium stores a mobile terminal USB transmission control program, and when the mobile terminal USB transmission control program is executed by a processor, the steps of any one of the mobile terminal USB transmission control methods are implemented.

[0033] Beneficial effect: Compared with the prior art, the present invention provides a method for controlling USB transmission of a mobile terminal, which sets the USB transmission interface of the mobile terminal as the first interface or the second interface; monitors the occupancy rate of the central processor of the mobile terminal, and obtains the interface of the current USB transmission of the mobile terminal; and adjusts the interface of the USB transmission of the mobile terminal according to the current occupancy rate of the central processor of the mobile terminal and the interface of the current USB transmission of the mobile terminal. When controlling the USB connection of the mobile terminal, data transmission is reasonably allocated, so that the memory tension is reduced, and it is avoided that when the memory is less, more background processes are killed by the mobile terminal system, causing problems in related functions, thereby improving the user experience and providing convenience for users. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flowchart of a specific implementation of a mobile terminal USB transmission control method provided by an embodiment of the present invention.

[0035] Figure 2 It is a principle block diagram of a mobile terminal USB transmission control device provided by an embodiment of the present invention.

[0036] Figure 3 It is a block diagram of the internal structure principle of the terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0038] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0039] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0040] With the development of science and technology and the continuous improvement of people's living standards, the use of various mobile terminals is becoming more and more popular, and mobile terminals have become an indispensable communication tool in people's lives.

[0041] Mobile terminals are all equipped with USB interfaces, and some even have other functions superimposed on the USB interfaces, such as OTG. When the mobile terminal is connected to a USB host such as a computer via USB, the USB host will transmit data with the mobile terminal. Currently, there are many types of USB interfaces, such as USB3.0 / 2.0. When the mobile terminal uses USB3.0, the data transmission speed is very fast. These data are first put into the memory of the mobile terminal, because the mobile terminal also needs a large memory to match it. When the mobile terminal is used for a long time, it will always be installed with more programs. At the same time, users lack the habit of frequent restarts, so no matter how much memory there is, it will be occupied, which is sometimes inconvenient for users to use.

[0042] The full name of USB in Chinese is Universal Serial Bus, which has been developed to USB3.2 version. What is the difference between USB2.0 and USB3.0?

[0043] 1) Different transmission rates;

[0044] Theoretical transfer rate of USB2.0: 480Mbps (60MB / s)

[0045] Theoretical transfer rate of USB 3.0: 5Gbps (500MB / s)

[0046] 2) From the perspective of the USB port pins, USB2.0 uses a 4-pin design, while USB3.0 uses a 9-pin design. In comparison, USB3.0 is more powerful.

[0047] 2) USB3.0: It is compatible with USB1.0, USB2.0, and USB3.0. The difference between USB3.0 interface mode and 2.0 interface mode: 1) Transmission speed: The maximum transmission bandwidth of USB2.0 is 480Mbps (60MB / s), while the maximum transmission bandwidth of USB3.0 is as high as 5.0Gbps (500MB / s). 2) Transmission mode: USB 3.0 uses a bidirectional data transmission mode instead of the half-duplex mode of USB2.0. Data only needs to flow in one direction, which simplifies the time consumption caused by waiting.

[0048] Mobile terminals are generally provided with a USB 3.0 interface. The present invention adopts a USB interface supporting USB 3.0: two working modes are set by software: USB 3.0 interface mode or 2.0 interface mode.

[0049] In order to solve the problems in the prior art, this embodiment provides a mobile terminal USB transmission control method. Through the method of this embodiment, the method sets the USB transmission interface of the mobile terminal as the first interface or the second interface; monitors the mobile terminal central processor occupancy rate, and obtains the current mobile terminal USB transmission interface; according to the current mobile terminal central processor occupancy rate and the current mobile terminal USB transmission interface, the mobile terminal USB transmission interface is adjusted. When controlling the mobile terminal USB connection, data transmission is reasonably allocated, so that the memory tension is reduced, and when the memory is less, more background processes are prevented from being killed by the mobile terminal system, causing problems in related functions, thereby improving the user experience.

[0050] Exemplary Methods

[0051] The mobile terminal USB transmission control method of this embodiment can be applied to terminal equipment. Figure 1 As shown in, the mobile terminal USB transmission control method includes the following steps:

[0052] Step S100, setting the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode;

[0053] In an embodiment of the present invention, the USB transmission interface of a mobile terminal such as a mobile phone is set to include a first interface mode and a second interface mode. In an embodiment of the present invention, the first interface mode is a USB 3.0 interface mode, and the second interface mode is a USB 2.0 mode. The present invention can be set to be compatible with USB 1.0 mode, USB 2.0 mode, and USB 3.0 mode based on the USB 3.0 interface of the mobile phone;

[0054] The USB transmission interface of the mobile terminal is pre-set to include two working modes, namely USB 3.0 interface mode and USB 2.0 interface mode; the transmission speed of the USB 3.0 interface mode is greater than the transmission speed of the USB 2.0 interface mode.

[0055] The USB interface of the mobile terminal in the embodiment of the present invention is a USB interface supporting USB 3.0: two working modes, USB 3.0 interface mode or 2.0 interface mode, can be set by software.

[0056] Step S200, monitoring the CPU occupancy rate of the mobile terminal during the USB transmission process, and obtaining and identifying the interface mode of the current USB transmission of the mobile terminal;

[0057] During the implementation of the present invention, the CPU occupancy rate of the mobile terminal during the USB transmission process is monitored, and the interface mode of the current USB transmission of the mobile terminal is obtained and identified.

[0058] Specifically, for example, it detects whether the mobile terminal is performing USB transmission; when it is detected that the mobile terminal is performing USB transmission, it controls the start of the timer to monitor and obtain the mobile terminal CPU occupancy rate at fixed intervals; and obtains and identifies the interface mode of the current mobile terminal USB transmission. This facilitates the conversion control of the interface mode according to the CPU occupancy rate to achieve a reasonable utilization rate.

[0059] Step S300: adjusting the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode.

[0060] In the implementation of the present invention, the USB transmission interface mode of the mobile terminal is adjusted according to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode.

[0061] Specifically, for example, it is determined whether the current mobile terminal central processing unit occupancy rate is higher than a preset threshold (eg, 80% point utilization rate), for example, the central processing unit occupancy rate reaches 80%;

[0062] When the current mobile terminal CPU occupancy rate is higher than a preset threshold value (e.g., 80% usage rate), it is further determined whether the current mobile terminal USB transmission interface mode is the first interface mode (i.e., USB3.0 interface mode). If it is, the mobile terminal USB transmission interface mode is set to the second interface mode (i.e., USB2.0 interface mode). Among them, the transmission speed of the USB3.0 interface mode is greater than the transmission speed of the USB2.0 interface mode, that is, in the embodiment of the present invention, when it is detected that the CPU occupancy rate reaches 80% and it is the USB2.0 interface mode of the first interface mode, it will be controlled to switch to the second interface mode (i.e., USB2.0 interface mode) with a lower speed to reduce the CPU occupancy rate, so that more CPUs will not be occupied.

[0063] In another case: determining whether the acquired current mobile terminal central processing unit occupancy rate is lower than or equal to a preset threshold value (occupancy rate is lower than or equal to 80%);

[0064] When the current mobile terminal CPU occupancy rate is lower than or equal to a preset threshold, it is further determined whether the current mobile terminal USB transmission interface mode is the second interface mode (i.e., USB2.0 interface mode), and if so, the mobile terminal USB transmission interface mode is set to the first interface mode (i.e., USB3.0 interface mode). In this way, the present invention can switch the first interface mode (i.e., USB3.0 interface mode) in time according to the CPU occupancy rate, thereby improving USB transmission efficiency and providing convenience for users.

[0065] Wherein, when the current mobile terminal central processor occupancy rate is lower than or equal to a preset threshold, further determining whether the current mobile terminal USB transmission interface mode is the second interface mode, and if yes, setting the mobile terminal USB transmission interface mode to the first interface mode also includes:

[0066] When the current mobile terminal CPU occupancy rate is lower than or equal to a preset threshold, the data stored in the second interface mode is output to the first interface mode for transmission, and the second interface mode data is cleared;

[0067] Set the USB transmission interface mode of the mobile terminal to the first interface mode.

[0068] As can be seen from the above, the present invention reasonably distributes data transmission when controlling the USB connection of the mobile terminal, thereby reducing memory tension, avoiding that more background processes are killed by the mobile terminal system when the memory is less, causing problems in related functions, and improving user experience.

[0069] The present invention is further described in detail below through a specific application example:

[0070] The mobile terminal USB transmission control method of this specific application embodiment includes the following steps

[0071] S10, setting the USB transmission interface mode of the mobile terminal to the first interface mode or the second interface mode;

[0072] Specifically, the first interface mode is the USB 3.0 interface mode, and the second interface mode is the USB 2.0 interface mode; that is, the USB data information output of the mobile terminal can be to the first interface mode or to the second interface mode; when the data information is selected to be output to the first interface mode, because it will be output to the USB 3.0 interface mode, it will occupy the central processing unit, and when the data information is selected to be output to the second interface mode, because it is only output to the USB 2.0 interface mode, it will not occupy more central processing units;

[0073] S20, monitoring the CPU occupancy rate of the mobile terminal and obtaining the current USB transmission interface mode of the mobile terminal;

[0074] Specifically, step S20 includes:

[0075] Start the timer to obtain the CPU occupancy rate of the mobile terminal at fixed intervals; for example, obtain the CPU occupancy rate of the mobile terminal at 1 second intervals;

[0076] At the same time, the interface mode of the current USB transmission of the mobile terminal is obtained, that is, it is known whether the interface mode of the current USB transmission of the mobile terminal is the first interface mode or the second interface mode.

[0077] S30, adjusting the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode.

[0078] Specifically, step S30 includes:

[0079] S31, when the current mobile terminal central processing unit occupancy rate is higher than a preset threshold, further determining whether the current mobile terminal USB transmission interface mode is the first interface mode, and if so, setting the mobile terminal USB transmission interface mode to the second interface mode;

[0080] That is to say, when the current mobile terminal CPU occupancy rate is higher than the preset threshold, and the current mobile terminal USB transmission interface mode is the first interface mode, in order to reduce the CPU occupancy rate, the data information is first output to the second interface mode;

[0081] For example, if the threshold is 80%, the current mobile terminal CPU occupancy rate is 90%, and the current mobile terminal USB transmission interface mode is the first interface mode, the data information is first output to the second interface mode;

[0082] S32, when the current mobile terminal central processing unit occupancy rate is lower than or equal to a preset threshold, further determining whether the current mobile terminal USB transmission interface mode is the second interface mode, and if so, setting the mobile terminal USB transmission interface mode to the first interface mode;

[0083] That is to say, when the current mobile terminal CPU occupancy rate is lower than or equal to the preset threshold, and the current mobile terminal USB transmission interface mode is the second interface mode, the CPU occupancy rate is not high at this time, and the data information can be output to the first interface mode, then the mobile terminal USB transmission interface mode is set to the first interface mode;

[0084] For example, if the threshold is 80%, the current mobile terminal CPU occupancy rate is 40%, and the current mobile terminal USB transmission interface mode is the second interface mode, the data information is output to the first interface mode;

[0085] Wherein, step S32 further includes:

[0086] F1, when the current mobile terminal central processing unit occupancy rate is lower than or equal to a preset threshold, the data stored in the second interface mode is output to the first interface mode, and the interface mode is cleared;

[0087] F2, set the USB transmission interface mode of the mobile terminal to the first interface mode;

[0088] For example, when a mobile terminal outputs data information, the CPU occupancy rate is high at the beginning and exceeds the threshold. At this time, the data is first output to USB2.0. When the CPU occupancy rate drops below or equal to the threshold, the data information previously saved in USB2.0 is first output to the USB3.0 interface mode, and the interface mode is cleared at the same time; then the interface mode of the mobile terminal USB transmission is set to the USB3.0 interface mode.

[0089] Exemplary Devices

[0090] like Figure 2 As shown in , an embodiment of the present invention provides a mobile terminal USB transmission control device, the device comprising:

[0091] A setting module 10, used to set the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode;

[0092] The monitoring module 20 is used to monitor the CPU occupancy rate of the mobile terminal during the USB transmission process, and obtain and identify the interface mode of the current USB transmission of the mobile terminal;

[0093] The switching control module 30 is used to adjust the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processor occupancy rate and the current mobile terminal USB transmission interface mode, as described above.

[0094] Based on the above embodiments, the present invention further provides a terminal device, whose principle block diagram can be shown as follows: Figure 3 As shown. The terminal device includes a processor, a memory, a network interface, a display screen, and a USB interface connected through a system bus. Among them, the processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a mobile terminal USB transmission control method is implemented. The display screen of the terminal device can be a liquid crystal display screen or an electronic ink display screen, and the USB interface of the terminal device is pre-set inside the terminal device to detect the operating temperature of the internal device.

[0095] Those skilled in the art will understand that Figure 3 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal device to which the scheme of the present invention is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0096] In one embodiment, a terminal device is provided, the terminal device comprising a memory, a processor, and a mobile terminal USB transmission control program stored in the memory and executable on the processor, and when the processor executes the mobile terminal USB transmission control program, the following operation instructions are implemented:

[0097] Setting the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode;

[0098] Monitor the CPU occupancy rate of the mobile terminal during USB transmission, and obtain and identify the interface mode of the current USB transmission of the mobile terminal;

[0099] According to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode, the mobile terminal USB transmission interface mode is adjusted.

[0100] Among them, the first interface mode is USB 3.0 interface mode, and the second interface mode is USB 2.0 mode.

[0101] The step of setting the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode comprises:

[0102] The USB transmission interface of the mobile terminal is pre-set to include two working modes, namely USB 3.0 interface mode and USB 2.0 interface mode; the transmission speed of the USB 3.0 interface mode is greater than the transmission speed of the USB 2.0 interface mode.

[0103] The steps of monitoring the CPU occupancy rate of the mobile terminal during the USB transmission and obtaining and identifying the interface mode of the current USB transmission of the mobile terminal include:

[0104] Detect whether the mobile terminal is performing USB transmission;

[0105] When it is detected that the mobile terminal is performing USB transmission, the timer is started to monitor and obtain the CPU occupancy rate of the mobile terminal at fixed intervals;

[0106] Get and identify the current USB transmission interface mode of the mobile terminal.

[0107] The step of adjusting the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processor occupancy rate and the current mobile terminal USB transmission interface mode comprises:

[0108] Determine whether the current mobile terminal central processing unit occupancy rate is higher than a preset threshold;

[0109] When the current mobile terminal CPU occupancy rate is higher than a preset threshold, it is further determined whether the current mobile terminal USB transmission interface mode is the first interface mode, and if so, the mobile terminal USB transmission interface mode is set to the second interface mode.

[0110] The step of adjusting the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processor occupancy rate and the current mobile terminal USB transmission interface mode comprises:

[0111] Determining whether the acquired current mobile terminal central processing unit occupancy rate is lower than or equal to a preset threshold;

[0112] When the current mobile terminal CPU occupancy rate is lower than or equal to a preset threshold, it is further determined whether the current mobile terminal USB transmission interface mode is the second interface mode. If yes, the mobile terminal USB transmission interface mode is set to the first interface mode.

[0113] Wherein, when the current mobile terminal central processor occupancy rate is lower than or equal to a preset threshold, further determining whether the current mobile terminal USB transmission interface mode is the second interface mode, and if yes, setting the mobile terminal USB transmission interface mode to the first interface mode also includes:

[0114] When the current mobile terminal CPU occupancy rate is lower than or equal to a preset threshold, the data stored in the second interface mode is output to the first interface mode for transmission, and the second interface mode data is cleared;

[0115] Set the USB transmission interface mode of the mobile terminal to the first interface mode.

[0116] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0117] In summary, the present invention discloses a method, device, terminal equipment and storage medium for controlling USB transmission of a mobile terminal, wherein the USB transmission interface of the mobile terminal is set to include a first interface mode and a second interface mode; the CPU occupancy rate of the mobile terminal during USB transmission is monitored, and the interface mode of the current USB transmission of the mobile terminal is obtained and identified; the interface mode of the USB transmission of the mobile terminal is adjusted according to the CPU occupancy rate of the current mobile terminal and the interface mode of the current USB transmission of the mobile terminal. The present invention makes control to be reasonably allocated when the mobile terminal transmits data through a USB connection, so that the memory tension is reduced, and it is avoided that when the memory is less, more background processes are killed by the mobile terminal system (such as step counting), causing problems in related functions, improving the user experience, and providing convenience for users.

[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A mobile terminal USB transmission control method, characterized in that: include: Setting the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode; Monitor the CPU occupancy rate of the mobile terminal during USB transmission, and obtain and identify the interface mode of the current USB transmission of the mobile terminal; According to the current mobile terminal central processor occupancy rate and the current mobile terminal USB transmission interface mode, the mobile terminal USB transmission interface mode is adjusted; The step of adjusting the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode comprises: Determining whether the acquired current mobile terminal central processing unit occupancy rate is lower than or equal to a preset threshold; When the current mobile terminal central processor occupancy rate is lower than or equal to a preset threshold, further determining whether the current mobile terminal USB transmission interface mode is the second interface mode, and if yes, setting the mobile terminal USB transmission interface mode to the first interface mode; When the current mobile terminal central processor occupancy rate is lower than or equal to a preset threshold, further determining whether the current mobile terminal USB transmission interface mode is the second interface mode, and if yes, setting the mobile terminal USB transmission interface mode to the first interface mode also includes: When the current mobile terminal CPU occupancy rate is lower than or equal to a preset threshold, the data stored in the second interface mode is output to the first interface mode for transmission, and the second interface mode data is cleared; Set the USB transmission interface mode of the mobile terminal to the first interface mode.

2. The mobile terminal USB transmission control method according to claim 1, characterized in that: The first interface mode is the USB 3.0 interface mode, and the second interface mode is the USB 2.0 mode.

3. The mobile terminal USB transmission control method according to claim 1, characterized in that: The step of setting the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode comprises: The USB transmission interface of the mobile terminal is pre-set to include two working modes, namely USB 3.0 interface mode and USB 2.0 interface mode; the transmission speed of the USB 3.0 interface mode is greater than the transmission speed of the USB 2.0 interface mode.

4. The mobile terminal USB transmission control method according to claim 1, characterized in that: The steps of monitoring the CPU occupancy rate of the mobile terminal during the USB transmission process and obtaining and identifying the interface mode of the current USB transmission of the mobile terminal include: Detect whether the mobile terminal is performing USB transmission; When it is detected that the mobile terminal is performing USB transmission, the timer is started to monitor and obtain the CPU occupancy rate of the mobile terminal at fixed intervals; Get and identify the current USB transmission interface mode of the mobile terminal.

5. The mobile terminal USB transmission control method according to claim 1, characterized in that: The step of adjusting the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode comprises: Determine whether the current mobile terminal central processing unit occupancy rate is higher than a preset threshold; When the current mobile terminal CPU occupancy rate is higher than a preset threshold, it is further determined whether the current mobile terminal USB transmission interface mode is the first interface mode, and if so, the mobile terminal USB transmission interface mode is set to the second interface mode.

6. A mobile terminal USB transmission control device, characterized in that: The device comprises: A setting module, used to set the USB transmission interface of the mobile terminal to include a first interface mode and a second interface mode; The monitoring module is used to monitor the CPU occupancy rate of the mobile terminal during the USB transmission process and obtain and identify the interface mode of the current USB transmission of the mobile terminal; The switching control module is used to adjust the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode; The step of adjusting the USB transmission interface mode of the mobile terminal according to the current mobile terminal central processing unit occupancy rate and the current mobile terminal USB transmission interface mode comprises: Determining whether the acquired current mobile terminal central processing unit occupancy rate is lower than or equal to a preset threshold; When the current mobile terminal central processor occupancy rate is lower than or equal to a preset threshold, further determining whether the current mobile terminal USB transmission interface mode is the second interface mode, and if yes, setting the mobile terminal USB transmission interface mode to the first interface mode; When the current mobile terminal central processor occupancy rate is lower than or equal to a preset threshold, further determining whether the current mobile terminal USB transmission interface mode is the second interface mode, and if yes, setting the mobile terminal USB transmission interface mode to the first interface mode also includes: When the current mobile terminal CPU occupancy rate is lower than or equal to a preset threshold, the data stored in the second interface mode is output to the first interface mode for transmission, and the second interface mode data is cleared; Set the USB transmission interface mode of the mobile terminal to the first interface mode.

7. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a mobile terminal USB transmission control program stored in the memory and executable on the processor. When the processor executes the mobile terminal USB transmission control program, the steps of the mobile terminal USB transmission control method as described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: A mobile terminal USB transmission control program is stored thereon, and when the mobile terminal USB transmission control program is executed by a processor, the steps of the mobile terminal USB transmission control method as described in any one of claims 1-5 are implemented.