CN112672203B - File transfer control method, mobile terminal and computer readable storage medium - Google Patents

File transfer control method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN112672203B
CN112672203B CN202011482867.7A CN202011482867A CN112672203B CN 112672203 B CN112672203 B CN 112672203B CN 202011482867 A CN202011482867 A CN 202011482867A CN 112672203 B CN112672203 B CN 112672203B
Authority
CN
China
Prior art keywords
screen
determining
transmission
file
mobile terminal
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
CN202011482867.7A
Other languages
Chinese (zh)
Other versions
CN112672203A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202011482867.7A priority Critical patent/CN112672203B/en
Publication of CN112672203A publication Critical patent/CN112672203A/en
Application granted granted Critical
Publication of CN112672203B publication Critical patent/CN112672203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a file transmission control method, which comprises the following steps: acquiring a screen-throwing video stream, and sending the screen-throwing video stream to the display equipment through the screen-throwing connecting channel so that the display equipment can display the content corresponding to the screen-throwing video stream; receiving a file transmission instruction, and determining a target file sent to the display equipment; determining transmission parameters of a screen-throwing connection channel; and determining a sending time for controlling the target file to be sent to the display device in response to the transmission parameter. By the mode, the problem of screen throwing and blocking caused by sending larger files can be avoided to the greatest extent, and user experience is improved better.

Description

File transfer control method, mobile terminal and computer readable storage medium
Technical Field
The present disclosure relates to the field of network communications technologies, and in particular, to a file transmission control method, a mobile terminal, and a computer readable storage medium.
Background
As the functions of mobile terminals continue to be powerful, and the capabilities of collaboration between electronic devices continue to increase. In more and more cases, the content in the interface of the mobile terminal needs to be displayed through other display devices, so as to achieve the purpose that multiple people watch the content in the interface of the mobile terminal at the same time or that a user of the mobile terminal can watch the content in the interface of the mobile terminal through a large screen.
In the prior art, after the screen is cast between the mobile terminal and the display device, the transmission of the related files of the mobile terminal can be realized, so that the important information of some mobile terminals is stored and backed up through the display device, and the effect of data security is achieved. Because the mobile terminal file has larger data volume like video files or a large number of pictures, the mobile terminal file occupies a large bandwidth, so that the mobile terminal file is blocked and delayed when being put on a screen, and the user experience is affected.
Disclosure of Invention
The main purpose of the application is to provide a file transmission control method, a mobile terminal and a computer readable storage medium, which aim to solve the problem of screen throwing and blocking caused by sending larger files to the greatest extent, and better improve user experience.
In order to achieve the above object, the present application provides a file transmission control method, applied to a mobile terminal, for establishing a screen-projection connection channel with a display device, the method comprising: acquiring a screen-throwing video stream, and sending the screen-throwing video stream to the display equipment through the screen-throwing connecting channel so that the display equipment can display the content corresponding to the screen-throwing video stream; receiving a file transmission instruction, and determining a target file sent to the display equipment; determining transmission parameters of a screen-throwing connection channel; and determining a sending time for controlling the target file to be sent to the display device in response to the transmission parameter.
Optionally, the step of determining the transmission parameter of the screen-throwing connection channel includes:
determining the data volume type of the screen-throwing video stream, wherein the data volume type is determined according to the size of the data volume;
determining channel communication quality of a screen projection connection channel between the mobile terminal and the display device;
and determining the transmission parameters according to the data volume type and the channel communication quality.
Optionally, the step of determining the data volume type of the video-on-screen stream includes:
acquiring a type of an application program which is currently running, wherein the type of the application program comprises at least one of the following: game classes, video classes, social classes, and text editing classes;
and determining the data volume type of the screen-throwing video stream according to the application program type.
Optionally, the step of determining the channel communication quality of the screen-projection connection channel between the mobile terminal and the display device includes:
counting the transmission time of a preset number of screen-throwing video streams transmitted to the display equipment;
and determining the channel communication quality according to the sending time.
Optionally, the step of determining the transmission parameter according to the data volume type and the channel communication quality includes:
Determining a quantity identifier corresponding to the data quantity type, wherein the quantity identifier comprises a first identifier and a second identifier, the first identifier indicates that the corresponding data type is smaller in data quantity, and the second identifier indicates that the corresponding data type is larger in data quantity;
determining a quality identifier corresponding to the channel communication quality, wherein the quality identifier comprises a third identifier and a fourth identifier, the third identifier indicates that the corresponding channel communication quality is better, and the fourth identifier indicates that the corresponding channel communication quality is worse;
and determining the combination of the number identifier of the current data volume type and the instruction identifier of the current channel communication quality as the transmission parameter.
Optionally, the step of receiving the file transfer instruction is receiving a backup instruction, where the backup instruction is used to trigger the mobile terminal to send the backup file to the display device.
Optionally, the step of determining the transmission opportunity for controlling the transmission of the target file to the display device includes at least one of:
controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and
And controlling the target file to be delayed to be sent to the display equipment after receiving the file transmission instruction.
Optionally, the step of determining, in response to the transmission parameter, a transmission opportunity to control transmission of the target file to the display device includes at least one of:
determining that the transmission parameters meet preset parameter conditions, and controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and
and determining that the transmission parameters do not meet preset parameter conditions, and controlling the target file to be sent to the display equipment in a delayed manner after receiving the file transmission instruction.
The application also provides a mobile terminal, which comprises: a touch screen; a processor;
and the memory is connected with the processor and contains control instructions, and when the processor reads the control instructions, the mobile terminal is controlled to realize the file transmission control method.
The present application also provides a computer-readable storage medium having one or more programs executed by one or more processors to implement the above-described file transfer control method.
According to the file transmission control method, the mobile terminal and the computer readable storage medium, after the mobile terminal and the display device are connected in a screen throwing manner, the mobile terminal sends the picture content in the current display interface to the display device through the screen throwing connection, in the screen throwing process, if a file transmission instruction for sending file data in the mobile terminal to the display device is detected, at the moment, a target file corresponding to the file transmission instruction is not immediately sent to the display device through the screen throwing connection, but the sending time for sending the target file to the display device is determined according to the transmission parameter of the determined screen throwing connection channel, and in this way, the problem of screen throwing and blocking caused by sending a large file can be avoided to the greatest extent, and user experience is better improved.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
FIG. 1 is a schematic diagram of an alternative hardware architecture of a mobile terminal implementing various embodiments of the present application;
FIG. 2 is a schematic diagram of a communication network system of the mobile terminal shown in FIG. 1;
FIG. 3 is a flowchart of a file transfer control method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Persona l Di gita l Ass i stant, PDA), portable media players (Portab l e Med ia P l ayer, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Rad i o Frequency ) unit 101, wi Fi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, power supply 111, and the like. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, GSM (G l oba l System of Mobi l e communicat ion, global system for mobile communications), GPRS (Genera l Packet Rad io Service ), CDMA2000 (Code Di vi s i on Mu l t i p l e Access, CDMA 2000), WCDMA (Wi deband Code Di vi s i on Mu l t i p l e Access ), TD-SCDMA (T ime Di vi s i on-Synchronous Code Di vi s i on Mu l t i p l e Access, time division synchronous code division multiple access), FDD-LTE (Frequency Di vi s i on Dup l exi ng-Long Term Evo l ut i on, frequency division duplex long term evolution), and TDD-LTE (T ime Di vi s i on Dup l exi ng-Long Term Evo l ut i on, time division duplex long term evolution), among others.
Wi F i belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the Wi Fi module 102, so that wireless broadband internet access is provided for the user. Although fig. 1 shows Wi Fi module 102, it is to be understood that it does not belong to the necessary constitution of the mobile terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the Wi Fi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graph i cs Process i ng Un it, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or Wi Fi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint keys, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liqui d Crysta l Di sp l ay, LCD), an Organic Light-emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evo l ved UMTS Terrestr ia l Rad io Access Network ) 202, an epc (Evo l ved Packet Core, evolved packet core) 203, and a I P service 204 of an operator, which are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected to other enodebs 2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access to the EPC203 by the UE 201.
EPC203 may include MME (Mob i l ity Management Ent ity ) 2031, hss (Home Subscr iber Server, home subscriber server) 2032, other MMEs 2033, SGW (Servi ng Gate Way ) 2034, pgw (PDN Gate Way, packet data network gateway) 2035 and PCRF (Po l icy and Chargi ng Ru l es Funct ion, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide I P address assignment and other functions for UE201, PCRF2036 being a policy and charging control policy decision point for traffic data flows and I P bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
I P services 204 may include the internet, intranets, ims (I P Mu lt imed ia Subsystem ) or other I P services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present invention are provided.
Fig. 3 is a flowchart of an embodiment of a file transfer control method provided in the present application. Once triggered by a user, the process in this embodiment automatically operates through the mobile terminal, where each step may be performed sequentially as shown in the flowchart, or may be performed simultaneously according to a plurality of steps in actual situations, which is not limited herein. The file transmission control method provided by the application comprises the following steps:
step S310, acquiring a screen-throwing video stream, and sending the screen-throwing video stream to the display equipment through the screen-throwing connection channel so that the display equipment can display the content corresponding to the screen-throwing video stream;
step S320, receiving a file transmission instruction, and determining a target file sent to the display device;
Step S330, determining transmission parameters of a screen-throwing connection channel;
step S340, in response to the transmission parameter, determining a transmission timing for controlling the transmission of the target file to the display device.
Through the embodiment, the problem of screen throwing and blocking caused by sending larger files can be avoided to the greatest extent, and the user experience is improved better.
The above steps will be specifically described with reference to specific embodiments.
In step S310, a cast video stream is acquired.
Specifically, a screen-throwing connecting channel is established between the mobile terminal and the display equipment, and the mobile terminal and the display equipment realize the screen-throwing effect through the screen-throwing connecting channel. After the mobile terminal and the display device establish screen projection, the mobile terminal can display the content in the display interface of the mobile terminal in the display device. In this embodiment, the display device may be a device with a display screen having communication capability, for example, a notebook computer. The mobile terminal acquires the display content of the current interface in real time and packages the display content into a data packet to form a screen-throwing video stream, and the screen-throwing video stream is sent to the display device through the screen-throwing connection channel so that the display device can display the content corresponding to the screen-throwing video stream. It should be noted that, in the process of sending the screen-projection video stream to the display device through the screen-projection connection channel, a certain bandwidth of the connection channel needs to be occupied, so that the bandwidth provided for transmitting the screen-projection video stream determines the screen-projection effect on the display device, for example, if the bandwidth is insufficient, the screen-projection screen is blocked.
In step S320, a file transfer instruction is received, and a target file sent to the display device is determined.
In particular, the file transfer instruction is to transfer file data other than user interface content for presenting the mobile terminal on the display device. In this embodiment, step S320 may be to receive a backup instruction, where the backup instruction is used to trigger the mobile terminal to send the backup file to the display device. Specifically, when the mobile terminal performs screen projection with the display device, a user operates the mobile terminal to perform data backup to the display device, and when the mobile terminal receives a backup instruction, the data to be backed up is prepared as a target file. When the file transmission instruction is received, the backup operation is not performed immediately after the target file is prepared, and the specific timing for sending the target file to the display device is determined according to the transmission parameters determined in the subsequent steps.
In step S330, transmission parameters of the screen-drop connection channel are determined.
Specifically, in an alternative embodiment, the transmission parameters of the screen-throwing connection channel may be determined by calculating the transmission parameters once at preset time intervals, and then storing the current latest transmission parameters. When the subsequent steps need to be executed, the current latest transmission parameters are directly used. In an alternative embodiment, step S330 may trigger the step of determining the transmission parameters after the screen-on connection channel is established. In an alternative embodiment, step S330 may trigger execution when a file transfer instruction is received.
In an alternative embodiment, step S330 may include the steps of:
in step S3301, a data volume type of the video stream is determined, where the data volume type is a type determined according to a size of the data volume.
Step S3302, determining channel communication quality of a screen-projection connection channel between the mobile terminal and the display device.
And step S3303, determining the transmission parameter according to the data volume type and the channel communication quality.
By the implementation mode, whether the current transmission channel has enough broadband to support file transmission can be accurately determined, and the screen throwing effect is not affected.
Specifically, in step S3301, during the screen-casting process, the data amounts of different screen-casting video streams are different, which results in that the bandwidths required for the different screen-casting video streams may be different, or the tolerance of the user to the screen-casting effect may be different. The data size type represents the size of the data size of the current screen-drop view stream. In the present embodiment, step S3301 may include the steps of:
step S33011, acquiring a currently running application type, where the application type includes at least one of the following: game classes, video classes, social classes, and text editing classes;
And step S33012, determining the data volume type of the screen-throwing video stream according to the application program type.
Wherein, the data volume of the video stream of the screen-throwing generated by the mobile terminal running different application programs is different. For example, the method can be used for entering a calendar, weather and other small applications, and larger data are not needed for screen projection. In this embodiment, the application type includes at least one of the following: game classes, video classes, social classes, and text editing classes. In implementation, the data volume types corresponding to different application programs may be preset, for example, the data volume represented by the data liner type corresponding to the game application program is large, and the data volume represented by the data liner type corresponding to the text editing program is small. The mobile terminal detects the application package name of the currently opened application program, determines the type of the application program through the application package name, and can determine that the data volume required by screen projection is smaller when judging that the application program is opened like a calendar, weather and the like, thereby determining the corresponding data volume type.
According to the embodiment, when the application program of which the opening instruction is received currently or the running application program is detected, the data size of the screen projection video stream in the screen projection process can be predicted, and further the data size can be rapidly used as a judging basis for whether to send the target file or not, so that the calculation efficiency is improved.
In step S3302, the screen-projection connection channel may be a bluetooth connection channel between the mobile terminal and the display device, or a wireless connection channel, or a combination of the bluetooth connection channel and the wireless connection channel. The connection channel has the problem of data transmission rate in the connection process, namely, the faster the data transmission rate is, the better the channel quality is represented, and the slower the data transmission rate is, the worse the channel quality is represented. It should be noted that the basis for evaluating the quality of the channel may be various, and is not particularly limited. In the present embodiment, step S3302 may include the following steps:
step S33021, counting the transmission time of a preset number of screen-throwing video streams transmitted to the display equipment;
and step S33022, determining the channel communication quality according to the sending time.
Specifically, the present invention relates to a method for manufacturing a semiconductor device. The channel communication quality is divided into good quality and poor quality. When the method is implemented, the data of the frame sent by the socket of the display equipment is statistically monitored, and the statistics is carried out once every 1 ten thousand frames, so that the network speed is very slow when the judgment time is longer, and the channel communication quality is better when the judgment time required for throwing the 1 ten thousand frames is shorter.
By the embodiment, the network quality can be determined in real time, and the accuracy and the instantaneity of the judged channel communication quality are improved, so that the sending time of the target file meeting the current situation can be made.
In step S3303, transmission parameters are determined comprehensively according to the data size type and the channel connection quality, so as to determine the timing of transmitting the target file. In the present embodiment, step S3303 may include the steps of:
step S33031, determining a number identifier corresponding to the data volume type, where the number identifier includes a first identifier and a second identifier, the first identifier indicates that the corresponding data type is smaller in data volume, and the second identifier indicates that the corresponding data type is larger in data volume;
step S33032, determining a quality identifier corresponding to the channel communication quality, wherein the quality identifier comprises a third identifier and a fourth identifier, the third identifier indicates that the corresponding channel communication quality is better, and the fourth identifier indicates that the corresponding channel communication quality is worse;
step S33033, determining a combination of the number identifier of the current data volume type and the instruction identifier of the current channel communication quality as the transmission parameter.
Specifically, marks corresponding to different data volume types and quality marks corresponding to different channel communication qualities are preset, and when the method provided by the application operates, the combination of the number marks and the quality marks is determined to serve as a current transmission parameter. For example, after the mobile terminal and the computer screen are established, the mobile terminal detects the name of an application package opened by the current user, and when judging that the application is opened like a calendar, weather and the like, the mobile terminal can judge that the data volume required by the screen is smaller, and then determine that the quantity mark is a mark A; the method comprises the steps of carrying out statistics monitoring on screen-end socket sending frame data of a screen, counting once every 1 ten thousand frames, determining that the quality mark is a mark B1 when judging that the time required for the screen-throwing of 1 ten thousand frames is short and the network speed is good, and further determining that the transmission parameters are A and B1, that is, the occupied bandwidth of a current screen-throwing connecting channel is small and the network transmission speed is high, so that the method is suitable for sending target files. If the transmission parameters are other combinations, the transmission target file is not suitable.
In step S340, a transmission timing to control transmission of the target file to the display device is determined in response to the transmission parameter.
Specifically, the transmission opportunity refers to when the target file is transmitted to the display device. And determining the time for sending the target file to the display device according to the conditions of different transmission parameters. In this embodiment, determining a transmission timing to control transmission of the target file to the display device includes at least one of: controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and controlling the target file to be delayed to be sent to the display equipment after receiving the file transmission instruction. In this embodiment, step S340 may include the steps of:
step S3401, determining that the transmission parameters meet preset parameter conditions, and controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and
step S3402, determining that the transmission parameters do not meet the preset parameter conditions, and controlling to delay sending the target file to the display device after receiving the file transmission instruction.
Specifically, the preset parameter condition is the identification combination, and the sending time corresponding to different combinations is preset. In this embodiment, when the transmission parameter is a combination of a data identifier representing a smaller data size type and a quality identifier representing a channel communication quality good correspondence, the transmission parameter meets a preset parameter condition.
According to the embodiment, after the screen connection is established between the mobile terminal and the display device, the mobile terminal sends the picture content in the current display interface to the display device through the screen connection, in the screen connection process, if a file transmission instruction for sending file data in the mobile terminal to the display device is detected, at the moment, a target file corresponding to the file transmission instruction is not immediately sent to the display device through the screen connection, but the sending time for sending the target file to the display device is determined according to the transmission parameter of the screen connection channel, and in this way, the screen connection problem caused by sending a larger file can be avoided to the greatest extent, and the user experience is better improved.
Fig. 4 is a schematic structural diagram of a mobile terminal 100 according to an embodiment of the present application, where the mobile terminal 100 includes: a touch panel 1071; a processor 110; a memory 109 connected to the processor 110, wherein the memory 109 contains control instructions, and when the processor 110 reads the control instructions, the mobile terminal 100 is controlled to implement the following steps:
acquiring a screen-throwing video stream, and sending the screen-throwing video stream to the display equipment through the screen-throwing connecting channel so that the display equipment can display the content corresponding to the screen-throwing video stream; receiving a file transmission instruction, and determining a target file sent to the display equipment; determining transmission parameters of a screen-throwing connection channel; and determining a sending time for controlling the target file to be sent to the display device in response to the transmission parameter.
Optionally, the step of determining the transmission parameter of the screen-throwing connection channel includes:
determining the data volume type of the screen-throwing video stream, wherein the data volume type is determined according to the size of the data volume;
determining channel communication quality of a screen projection connection channel between the mobile terminal and the display device;
and determining the transmission parameters according to the data volume type and the channel communication quality.
Optionally, the step of determining the data volume type of the video-on-screen stream includes:
acquiring a type of an application program which is currently running, wherein the type of the application program comprises at least one of the following: game classes, video classes, social classes, and text editing classes;
and determining the data volume type of the screen-throwing video stream according to the application program type.
Optionally, the step of determining the channel communication quality of the screen-projection connection channel between the mobile terminal and the display device includes:
counting the transmission time of a preset number of screen-throwing video streams transmitted to the display equipment;
and determining the channel communication quality according to the sending time.
Optionally, the step of determining the transmission parameter according to the data volume type and the channel communication quality includes:
Determining a quantity identifier corresponding to the data quantity type, wherein the quantity identifier comprises a first identifier and a second identifier, the first identifier indicates that the corresponding data type is smaller in data quantity, and the second identifier indicates that the corresponding data type is larger in data quantity;
determining a quality identifier corresponding to the channel communication quality, wherein the quality identifier comprises a third identifier and a fourth identifier, the third identifier indicates that the corresponding channel communication quality is better, and the fourth identifier indicates that the corresponding channel communication quality is worse;
and determining the combination of the number identifier of the current data volume type and the instruction identifier of the current channel communication quality as the transmission parameter.
Optionally, the step of receiving the file transfer instruction is receiving a backup instruction, where the backup instruction is used to trigger the mobile terminal to send the backup file to the display device.
Optionally, the step of determining the transmission opportunity for controlling the transmission of the target file to the display device includes at least one of:
controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and
And controlling the target file to be delayed to be sent to the display equipment after receiving the file transmission instruction.
Optionally, the step of determining, in response to the transmission parameter, a transmission opportunity to control transmission of the target file to the display device includes at least one of:
determining that the transmission parameters meet preset parameter conditions, and controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and
and determining that the transmission parameters do not meet preset parameter conditions, and controlling the target file to be sent to the display equipment in a delayed manner after receiving the file transmission instruction.
Through the mobile terminal, after the screen connection is established between the mobile terminal and the display device, the mobile terminal sends the picture content in the current display interface to the display device through the screen connection, in the screen-throwing process, if a file transmission instruction for sending file data in the mobile terminal to the display device is detected, the target file corresponding to the file transmission instruction is not immediately sent to the display device through the screen connection at this time, but the sending time for sending the target file to the display device is determined according to the transmission parameter of the screen-throwing connection channel, and in this way, the screen-throwing and blocking problem caused by sending a larger file can be avoided to the greatest extent, and the user experience is better improved.
The embodiments also provide a computer-readable storage medium having one or more programs executed by one or more processors to implement the steps of:
acquiring a screen-throwing video stream, and sending the screen-throwing video stream to the display equipment through the screen-throwing connecting channel so that the display equipment can display the content corresponding to the screen-throwing video stream; receiving a file transmission instruction, and determining a target file sent to the display equipment; determining transmission parameters of a screen-throwing connection channel; and determining a sending time for controlling the target file to be sent to the display device in response to the transmission parameter.
Optionally, the step of determining the transmission parameter of the screen-throwing connection channel includes:
determining the data volume type of the screen-throwing video stream, wherein the data volume type is determined according to the size of the data volume;
determining channel communication quality of a screen projection connection channel between the mobile terminal and the display device;
and determining the transmission parameters according to the data volume type and the channel communication quality.
Optionally, the step of determining the data volume type of the video-on-screen stream includes:
Acquiring a type of an application program which is currently running, wherein the type of the application program comprises at least one of the following: game classes, video classes, social classes, and text editing classes;
and determining the data volume type of the screen-throwing video stream according to the application program type.
Optionally, the step of determining the channel communication quality of the screen-projection connection channel between the mobile terminal and the display device includes:
counting the transmission time of a preset number of screen-throwing video streams transmitted to the display equipment;
and determining the channel communication quality according to the sending time.
Optionally, the step of determining the transmission parameter according to the data volume type and the channel communication quality includes:
determining a quantity identifier corresponding to the data quantity type, wherein the quantity identifier comprises a first identifier and a second identifier, the first identifier indicates that the corresponding data type is smaller in data quantity, and the second identifier indicates that the corresponding data type is larger in data quantity;
determining a quality identifier corresponding to the channel communication quality, wherein the quality identifier comprises a third identifier and a fourth identifier, the third identifier indicates that the corresponding channel communication quality is better, and the fourth identifier indicates that the corresponding channel communication quality is worse;
And determining the combination of the number identifier of the current data volume type and the instruction identifier of the current channel communication quality as the transmission parameter.
Optionally, the step of receiving the file transfer instruction is receiving a backup instruction, where the backup instruction is used to trigger the mobile terminal to send the backup file to the display device.
Optionally, the step of determining the transmission opportunity for controlling the transmission of the target file to the display device includes at least one of:
controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and
and controlling the target file to be delayed to be sent to the display equipment after receiving the file transmission instruction.
Optionally, the step of determining, in response to the transmission parameter, a transmission opportunity to control transmission of the target file to the display device includes at least one of:
determining that the transmission parameters meet preset parameter conditions, and controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and
and determining that the transmission parameters do not meet preset parameter conditions, and controlling the target file to be sent to the display equipment in a delayed manner after receiving the file transmission instruction.
Through the computer readable storage medium, after the mobile terminal and the display device are connected in a screen-throwing manner, the mobile terminal sends the picture content in the current display interface to the display device through the screen-throwing connection, and in the screen-throwing process, if a file transmission instruction for sending file data in the mobile terminal to the display device is detected, the target file corresponding to the file transmission instruction is not immediately sent to the display device through the screen-throwing connection at this time, but the sending time for sending the target file to the display device is determined according to the transmission parameter of the screen-throwing connection channel, so that the problem of screen-throwing blocking caused by sending a larger file can be avoided to the greatest extent, and the user experience is better improved.
Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium here stores one or more programs. Wherein the computer readable storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid state disk; the memory may also comprise a combination of the above types of memories.
The corresponding technical features in the above embodiments can be used mutually without causing contradiction between schemes or incapacitation.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the protection of the claims, which fall within the protection of the present application.

Claims (8)

1. The file transmission control method is characterized by being applied to a mobile terminal and establishing a screen-projection connection channel with display equipment, and comprises the following steps:
acquiring a screen-throwing video stream, and sending the screen-throwing video stream to the display equipment through the screen-throwing connecting channel so that the display equipment can display the content corresponding to the screen-throwing video stream;
receiving a file transmission instruction, and determining a target file sent to the display equipment;
determining transmission parameters of the screen-throwing connection channel, wherein the step of determining the transmission parameters of the screen-throwing connection channel comprises the following steps:
determining the data volume type of the screen-throwing video stream, wherein the data volume type is determined according to the size of the data volume;
Determining channel communication quality of a screen projection connection channel between the mobile terminal and the display device;
determining the transmission parameters according to the data volume type and the channel communication quality;
and determining, in response to the transmission parameter, a transmission timing for controlling to transmit the target file to the display device through the screen-projection connection channel, where the step of determining controls the transmission timing for transmitting the target file to the display device includes at least one of:
controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and
and controlling the target file to be delayed to be sent to the display equipment after receiving the file transmission instruction.
2. The method of claim 1, wherein the step of determining the data volume type of the video-on-screen stream comprises:
acquiring a type of an application program which is currently running, wherein the type of the application program comprises at least one of the following: game classes, video classes, social classes, and text editing classes;
and determining the data volume type of the screen-throwing video stream according to the application program type.
3. The method of claim 1, wherein the step of determining a channel communication quality of a screen-cast connection channel between the mobile terminal and the display device comprises:
Counting the transmission time of a preset number of screen-throwing video streams transmitted to the display equipment;
and determining the channel communication quality according to the sending time.
4. The method of claim 1, wherein said step of determining said transmission parameter based on said data volume type and said channel communication quality comprises:
determining a quantity identifier corresponding to the data quantity type, wherein the quantity identifier comprises a first identifier and a second identifier, the first identifier indicates that the corresponding data quantity type is smaller in data quantity, and the second identifier indicates that the corresponding data quantity type is larger in data quantity;
determining a quality identifier corresponding to the channel communication quality, wherein the quality identifier comprises a third identifier and a fourth identifier, the third identifier indicates that the corresponding channel communication quality is better, and the fourth identifier indicates that the corresponding channel communication quality is worse;
and determining the combination of the quantity identifier of the current data quantity type and the quality identifier of the current channel communication quality as the transmission parameter.
5. The method of claim 1, wherein the step of receiving a file transfer instruction is receiving a backup instruction, wherein the backup instruction is used to trigger a mobile terminal to send a backup file to the display device, wherein the backup file is the target file.
6. The method of claim 1, wherein the step of determining a transmission opportunity to control transmission of the target file to the display device in response to the transmission parameter comprises at least one of:
determining that the transmission parameters meet preset parameter conditions, and controlling the target file to be immediately sent to the display equipment after receiving the file transmission instruction; and
and determining that the transmission parameters do not meet preset parameter conditions, and controlling the target file to be sent to the display equipment in a delayed manner after receiving the file transmission instruction.
7. A mobile terminal, the mobile terminal comprising:
a touch screen;
a processor;
and the memory is connected with the processor and contains control instructions, and when the processor reads the control instructions, the mobile terminal is controlled to realize the file transmission control method of any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has one or more programs that are executed by one or more processors to implement the file transfer control method of any one of claims 1 to 6.
CN202011482867.7A 2020-12-16 2020-12-16 File transfer control method, mobile terminal and computer readable storage medium Active CN112672203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011482867.7A CN112672203B (en) 2020-12-16 2020-12-16 File transfer control method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011482867.7A CN112672203B (en) 2020-12-16 2020-12-16 File transfer control method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112672203A CN112672203A (en) 2021-04-16
CN112672203B true CN112672203B (en) 2023-05-23

Family

ID=75405278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011482867.7A Active CN112672203B (en) 2020-12-16 2020-12-16 File transfer control method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112672203B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923508A (en) * 2021-09-29 2022-01-11 联想(北京)有限公司 Screen projection method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184759A1 (en) * 2014-06-04 2015-12-10 中国科学院声学研究所 Apparatus and method for state detection and fault tolerance of service network port
CN106534956A (en) * 2015-09-11 2017-03-22 中兴通讯股份有限公司 Video data transmission method, device and system for screen projection
CN108810594A (en) * 2018-05-04 2018-11-13 新华三技术有限公司 Remote screen projection method, device and system
CN109996097A (en) * 2019-03-12 2019-07-09 广州虎牙信息科技有限公司 A kind of throwing screen method, system and storage device
CN110537165A (en) * 2017-10-26 2019-12-03 华为技术有限公司 A kind of display methods and device
CN108476456B (en) * 2016-12-28 2020-12-04 华为技术有限公司 Data sending method, data receiving method, sending end and receiving end

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4466127B2 (en) * 2003-03-24 2010-05-26 セイコーエプソン株式会社 Image display device
CN111628847B (en) * 2020-05-06 2022-04-08 上海幻电信息科技有限公司 Data transmission method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184759A1 (en) * 2014-06-04 2015-12-10 中国科学院声学研究所 Apparatus and method for state detection and fault tolerance of service network port
CN106534956A (en) * 2015-09-11 2017-03-22 中兴通讯股份有限公司 Video data transmission method, device and system for screen projection
CN108476456B (en) * 2016-12-28 2020-12-04 华为技术有限公司 Data sending method, data receiving method, sending end and receiving end
CN110537165A (en) * 2017-10-26 2019-12-03 华为技术有限公司 A kind of display methods and device
CN108810594A (en) * 2018-05-04 2018-11-13 新华三技术有限公司 Remote screen projection method, device and system
CN109996097A (en) * 2019-03-12 2019-07-09 广州虎牙信息科技有限公司 A kind of throwing screen method, system and storage device

Also Published As

Publication number Publication date
CN112672203A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN110175062B (en) Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium
CN109663353B (en) Game operation method, mobile terminal and computer readable storage medium
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN110784898B (en) Network switching method, mobile terminal and computer readable storage medium
CN108512625B (en) Anti-interference method for camera, mobile terminal and storage medium
CN109982402B (en) Terminal voice calling method, mobile terminal and computer readable storage medium
CN109890022B (en) Data transmission control method, mobile terminal and computer readable storage medium
CN113032065B (en) Screen refresh control method, mobile terminal and computer readable storage medium
CN112689191B (en) Screen projection control method, terminal and computer readable storage medium
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN108958936B (en) Application program switching method, mobile terminal and computer readable storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN107862217B (en) Position information acquisition method, mobile terminal and computer storage medium
CN112433690B (en) Data processing method, terminal and computer readable storage medium
CN110113779B (en) eSIM card testing method, system and medium
CN110096375B (en) Method and device for sharing data by application programs and computer readable storage medium
CN114258005B (en) Method for registering from 4G to 5G, mobile terminal and readable storage medium
CN114630366B (en) Control method, communication device, and storage medium
CN109545120B (en) Screen light sensor adjusting method, mobile terminal and computer readable storage medium
CN112492340B (en) Live broadcast audio acquisition method, mobile terminal and computer readable storage medium
CN109217909B (en) Antenna switching method, mobile terminal and computer storage medium
CN112954755B (en) Optimized network switching method and device and computer readable storage medium
CN112770279B (en) Network sharing method, mobile terminal and computer readable storage medium
CN108579081B (en) Event processing method, device and computer storage medium based on game
CN111970738B (en) Network switching control method, device and computer readable storage medium

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