CN110022189B - Data transmission method, device, terminal and storage medium - Google Patents

Data transmission method, device, terminal and storage medium Download PDF

Info

Publication number
CN110022189B
CN110022189B CN201910261208.1A CN201910261208A CN110022189B CN 110022189 B CN110022189 B CN 110022189B CN 201910261208 A CN201910261208 A CN 201910261208A CN 110022189 B CN110022189 B CN 110022189B
Authority
CN
China
Prior art keywords
memory capacity
terminal
capacity information
data
data transmission
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
CN201910261208.1A
Other languages
Chinese (zh)
Other versions
CN110022189A (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.)
Shanghai Chuangfei Zongheng Technology Group Co ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910261208.1A priority Critical patent/CN110022189B/en
Publication of CN110022189A publication Critical patent/CN110022189A/en
Application granted granted Critical
Publication of CN110022189B publication Critical patent/CN110022189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a data transmission method, a data transmission device, a terminal and a storage medium. The method comprises the following steps: in the process that the first terminal transmits data to the second terminal, the first terminal receives feedback data sent by the second terminal for multiple times, analyzes the feedback data to obtain multiple pieces of memory capacity information of the second terminal, judges whether the multiple pieces of memory capacity information of the second terminal meet preset conditions or not, and if yes, interrupts data transmission and generates prompt information. In the data transmission process of the first terminal and the second terminal, the residual memory capacity information of the second terminal is obtained through feedback data sent by the second terminal for multiple times, when the memory capacity information of the second terminal meets preset conditions, the first terminal can interrupt data transmission in time and send prompt information, data retransmission caused by accidental interruption of memory problems in the transmission process is avoided, and the data transmission efficiency of WIFI direct connection is improved.

Description

Data transmission method, device, terminal and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, an apparatus, a terminal, and a storage medium.
Background
With the development of scientific technology, more and more terminals have a WiFi function, the terminals can wirelessly surf the internet through the WiFi function, the transmission speed of the WiFi is very high, the requirements of personal and social informatization can be met, the WiFi can not be limited by wiring conditions, the power of transmitted signals is low by 100mW and is lower than that of the transmitted signals of a mobile phone, and therefore the WiFi is available in many places at present. Due to universality and convenience of WIFI, at present, a WIFI direct connection technology is often used by a mobile terminal for data transmission between the mobile terminals, but when the transmission fails due to insufficient memory of the mobile terminal in the process of transmitting a large-capacity file, the mobile terminal of the other party cannot know the failure.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device, a terminal and a storage medium. And the transmission efficiency of WIFI direct connection is improved.
In order to solve the above technical problems, the present application proposes the following technical solutions:
in a first aspect, an embodiment of the present application provides a data transmission method, including:
in the process of transmitting data to a second terminal by a first terminal, the first terminal receives feedback data sent by the second terminal for many times;
analyzing the feedback data to obtain a plurality of memory capacity information of the second terminal;
judging whether the plurality of memory capacity information of the second terminal meet preset conditions or not;
if yes, interrupting data transmission and generating prompt information.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, including: the device comprises a receiving module, an analysis module, a judgment module and a prompt module;
the receiving module is used for receiving feedback data sent by the second terminal for many times by the first terminal in the process of transmitting data to the second terminal by the first terminal;
the analysis module is configured to analyze the multiple feedback data to obtain multiple pieces of memory capacity information of the second terminal;
the judging module is used for judging whether the plurality of memory capacity information of the second terminal meet preset conditions or not;
and the prompt module is used for interrupting data transmission and generating prompt information.
In a third aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the data transmission method when executing the program.
In a fourth aspect, the present application provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the data transmission method.
In the method and the device for processing the data transmission, in the process that the first terminal transmits the data to the second terminal, the first terminal receives the feedback data which are sent by the second terminal for many times, analyzes the feedback data to obtain the memory capacity information of the second terminal, judges whether the memory capacity information of the second terminal meets the preset condition, and if yes, interrupts the data transmission and generates the prompt information. In the data transmission process of the first terminal and the second terminal, the residual memory capacity information of the second terminal is obtained through feedback data sent by the second terminal for multiple times, when the memory capacity information of the second terminal meets a preset condition, the first terminal can interrupt data transmission in time and send prompt information, data retransmission caused by accidental interruption of memory problems in the transmission process is avoided, and the data transmission efficiency of WIFI direct connection is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene schematic diagram of a data transmission method according to an embodiment of the present application.
Fig. 2 is a first flowchart of a data transmission method according to an embodiment of the present application.
Fig. 3 is a second flowchart of a data transmission method according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a first structure of a data transmission device according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a second structure of a data transmission device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application are clearly and completely described with reference to the drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The embodiment of the application provides a data transmission method, a data transmission device, a terminal and a storage medium. The following are detailed below.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of a data transmission method according to an embodiment of the present application.
In fig. 1, a first terminal and a second terminal are directly connected through WiFi for data transmission, where the first terminal may send files such as audio, video, and photos to the second terminal, and the second terminal may send feedback data including its own memory capacity information to the first terminal while receiving the files.
It should be noted that, during the transmission process of the first terminal and the second terminal, the dual-transmission may transmit data to the other side or receive data transmitted by the other side. The first terminal and the second terminal can obtain the memory capacity information of the opposite side through the feedback data sent by the opposite side, so that data transmission failure caused by insufficient memory capacity of the opposite side is prevented, and the efficiency of WiFi direct connection data transmission is improved.
In the embodiment of the present application, a data transmission method is described in detail by taking an example in which a first terminal receives feedback data sent by a second terminal.
Referring to fig. 2, fig. 2 is a first flowchart of a data transmission method according to an embodiment of the present disclosure.
In step S110, feedback data transmitted by the second terminal a plurality of times is received.
In the data transmission process, the first terminal may receive feedback data sent by the second terminal, where the feedback data sent by the second terminal includes memory capacity information of the second terminal, and the second terminal may send the feedback data to the first terminal at regular time, for example, once every two seconds.
Optionally, the second terminal may also send the feedback data according to the data transmission progress, the second terminal serves as a receiving terminal, the first terminal serves as a sending terminal, and the second terminal sends the feedback data according to the data transmission progress in the data transmission process, for example, when the transmission progress reaches 50%, the second terminal starts to send the feedback data to the first terminal for multiple times.
In the data transmission process, the first terminal may be a receiving terminal or a transmitting terminal. The second terminal may be a receiving terminal or a transmitting terminal. The examples given in this embodiment should not be construed as limiting the invention.
In step S120, the plurality of feedback data are analyzed to obtain a plurality of memory capacity information of the second terminal.
After the first terminal receives the plurality of feedback data sent by the second terminal, the plurality of data are analyzed to obtain a plurality of memory information of the second terminal. The feedback data includes the memory capacity information of the second terminal sent by the second terminal to the first terminal, and the feedback data may also include file information such as audio, video, and pictures sent by the second terminal to the first terminal.
The memory capacity information of the second terminal obtained by the first terminal analyzing the multiple feedback data may be the memory capacity information of the second terminal at different times, for example, the memory information of the first feedback data received at point 10 and point 50, the memory information of the second feedback data received at point 10 and point 52, and the memory information of the feedback data received at other times, and so on.
Preferably, the memory capacity information of the second terminal obtained by the first terminal analyzing the multiple feedback data may be the memory capacity information of the second terminal every fixed time period, for example, every two seconds, the second terminal sends the feedback data to the first terminal, and the first terminal analyzes the feedback data to obtain the memory capacity information of the second terminal every fixed time interval.
In step S130, it is determined whether the plurality of memory capacity information of the second terminal satisfy a preset condition.
After the plurality of memory capacity information of the second terminal is acquired, the memory capacity information needs to be judged, so that the fact that the remaining memory capacity of the second terminal is sufficient is determined, and data transmission between the first terminal and the second terminal is guaranteed to be completed. And if the plurality of memory capacity information of the second terminal is judged not to meet the preset condition, continuously receiving the feedback data of the second terminal, repeating the steps, and if the memory capacity information of the second terminal is judged to meet the preset condition, entering the step S140.
Optionally, it may be determined whether the memory capacity information of the second terminal is greater than a preset value, and if the memory capacity information is greater than the preset value, it indicates that the remaining memory capacity of the second terminal is sufficient, so as to meet the data transmission requirement.
The first terminal can also judge whether the memory capacity information of the second terminal meets the preset condition or not according to the memory capacity information of the second terminal and the current data transmission speed. For example, the data transmission speed is 1MB/S, the current remaining memory capacity of the second terminal is 1G, how long the second terminal can still perform data transmission is calculated according to the transmission speed 1MB/S and the current remaining memory capacity 1G of the second terminal, and if the data transmitted by the first terminal is just enough to store the data in the remaining memory capacity of the second terminal, the remaining transmission time is already calculated, and if the data to be transmitted is added into the first terminal, the data to be transmitted is transmitted at the speed of 1MB/S, and extra time is consumed. If the sum of the originally predicted data transmission time and the added time is greater than the time calculated by the data transmission speed and the remaining memory capacity of the second terminal, it is indicated that the normal completion of the data transmission of the first terminal and the second terminal cannot be guaranteed.
Preferably, in this embodiment of the application, the preset condition may be calculated by setting a first threshold and a second threshold and acquiring memory capacity information received three times in succession. The memory capacity information received three times in succession may be first memory capacity information, second memory capacity information, and third memory capacity information in order, by determining whether the first memory capacity information, the second memory capacity information, and the third memory capacity information are smaller than a first threshold. If so, judging whether the difference between the first memory capacity information and the second memory capacity information and the difference between the second memory capacity information and the third memory capacity information are smaller than a second threshold value, and if so, indicating that the residual memory capacity is insufficient in the data transmission process of the second terminal, so that the smooth completion of the data transmission cannot be ensured.
In step S140, data transmission is interrupted and prompt information is generated.
Under the condition that the plurality of memory capacity information of the second terminal are judged not to meet the preset conditions, data transmission between the first terminal and the second terminal is interrupted at the moment, and data transmission failure caused by insufficient memory capacity of the second terminal is prevented.
At this time, a prompt message can be generated to prompt the suspension of data transmission, so as to prevent data transmission failure. The prompt message may be generated by the first terminal, may be displayed in the first terminal, or may be sent to the second terminal through the first terminal to prompt a user of the second terminal.
To sum up, in the process that the first terminal transmits data to the second terminal, the first terminal receives feedback data sent by the second terminal for many times, analyzes the multiple feedback data to obtain multiple pieces of memory capacity information of the second terminal, and determines whether the multiple pieces of memory capacity information of the second terminal meet preset conditions, if so, the data transmission is interrupted and prompt information is generated. In the data transmission process of the first terminal and the second terminal, the residual memory capacity information of the second terminal is obtained through feedback data sent by the second terminal for multiple times, when the memory capacity information of the second terminal meets preset conditions, the first terminal can interrupt data transmission in time and send prompt information, data retransmission caused by accidental interruption of memory problems in the transmission process is avoided, and the transmission efficiency of WIFI direct connection is improved.
Referring to fig. 3, fig. 3 is a second flow chart of a data transmission method according to an embodiment of the present application.
In step S201, feedback data transmitted by the second terminal a plurality of times is received. This step is the same as step S110, and is not described herein again.
In step S202, the feedback data is parsed to obtain identification data.
After receiving the feedback data, analyzing the feedback data, wherein each frame of feedback data comprises a frame head, identification data and a frame tail, and the identification data records data of the memory capacity information. In the process of analyzing the feedback data, the identification data may be obtained first, and then the memory capacity information may be obtained from the identification data.
In step S203, the header data, the separator data, and the trailer data in the identification data are acquired.
The identification data includes header data, partition data, and trailer data, and data in the partition data and the trailer data is data in which memory capacity information is recorded, and the identification data is acquired first, and then the memory capacity information is acquired from the identification data.
For example, one frame of DATA may be divided into a frame header, a DATA packet, and a frame trailer, where the DATA packet is identification DATA described in this embodiment, and the identification DATA is packet header DATA, DATA, FLAG1 DATA, DATA1 DATA, and trailer DATA, where the DATA may be understood as DATA that needs to be transmitted during WiFi direct DATA transmission between terminals, such as audio, video, files, and the like, the FLAG1 DATA may be used as separation DATA, and the DATA1 DATA is DATA that describes memory capacity information of a second terminal. After the first terminal receives the feedback data sent by the second terminal, the memory capacity information of the second terminal is obtained through analysis of the feedback data.
In step S204, first memory capacity information, second memory capacity information, and third memory capacity information are obtained from the plurality of memory capacity information.
After the plurality of feedback data are analyzed, a plurality of memory capacity information of the second terminal are obtained, and the memory capacity information received three times in succession is obtained, which may be first memory capacity information, second memory capacity information, and third memory capacity information, where the first memory capacity information, the second memory capacity information, and the third memory capacity information are the second terminal memory capacity information obtained in sequence.
It should be noted that, the first terminal analyzes the multiple feedback data of the second terminal, where the feedback data sent by the second terminal may be continuously sent within a fixed time interval or may be continuously sent at irregular time, and therefore, the obtained first memory capacity information, second memory capacity information, and third memory capacity information may be the same or different in the obtaining time interval.
In step S205, it is determined whether the first memory capacity information, the second memory capacity information, and the third memory capacity information are lower than a first threshold.
A first threshold may be set, and if the first memory capacity information, the second memory capacity information, and the third memory capacity information of the second terminal are all smaller than the first threshold, it indicates that the remaining memory capacity of the second terminal is insufficient and cannot meet the requirement for completing data transmission, and then the process proceeds to step S206 for further processing.
If the first memory capacity information, the second memory capacity information and the third memory capacity information are not less than the first threshold, it indicates that the remaining memory capacity of the second terminal is sufficient, and data transmission can be continued, and at this time, feedback data of the second terminal is continuously received, so that the memory shortage caused by the second terminal performing other tasks is prevented.
In step S206, it is determined whether the difference between the first memory capacity information and the second memory capacity information, and the difference between the second memory capacity information and the third memory capacity information are smaller than a second threshold.
A second threshold may be set, and when the difference between the first memory capacity information and the second memory capacity information and the difference between the second memory capacity information and the third memory capacity information are smaller than the second threshold, it indicates that the remaining memory capacity of the second terminal is insufficient, and the requirement for completing data transmission cannot be met.
If the difference between the first memory capacity information and the second memory capacity information and the difference between the second memory capacity information and the third memory capacity information are not less than the second threshold, it indicates that the remaining memory capacity of the second terminal is sufficient, and data transmission can be continued.
In step S207, the data transmission of the first terminal and the second terminal is interrupted and the prompt message is generated at the first terminal.
The first terminal obtains a plurality of memory capacity information of the second terminal from a plurality of feedback data sent by the second terminal, and judges that the remaining memory capacity of the second terminal is insufficient according to the plurality of memory capacity information.
At this time, the first terminal generates a prompt message to prompt the user that the memory capacity of the second terminal is insufficient and the transmission needs to be stopped, and the first terminal can also send the prompt message to the second terminal, so that the user of the second terminal can see the prompt message.
To sum up, in the embodiment of the present application, the first terminal obtains the identification data by receiving the feedback data sent by the second terminal for multiple times, and analyzes the feedback data, obtains the memory capacity information of the second terminal from the identification data, and then obtains three consecutive times of memory capacity information, that is, one memory capacity information, the second memory capacity information, and the third memory capacity information, from the multiple memory capacity information. And then judging whether the first memory capacity information, the second memory capacity information and the third memory capacity information are lower than a first threshold value, if so, judging whether the difference between the first memory capacity information and the second memory capacity information and the difference between the second memory capacity information and the third memory capacity information are smaller than a second threshold value, if so, interrupting the data transmission of the first terminal and the second terminal and generating prompt information at the first terminal.
In this embodiment, through obtaining the memory capacity information of the second terminal many times, prevent that the second terminal from when the memory capacity is not enough, avoid in the transmission process because the unexpected interrupt of the problem of memory not enough leads to data retransmission, improved WIFI lug connection's data transmission efficiency.
Referring to fig. 4, fig. 4 is a first structural diagram of a data transmission device 400 according to an embodiment of the present disclosure. Wherein the data transmission device includes: a receiving module 410, a parsing module 420, a determining module 430, and a prompting module 440.
The receiving module 410 is configured to, in a process that a first terminal transmits data to a second terminal, receive, by the first terminal, feedback data that is sent by the second terminal multiple times.
The first terminal receives, through the receiving module 410, feedback data sent by the second terminal for multiple times, where the feedback data sent by the second terminal includes memory capacity information of the second terminal, and the second terminal can send the feedback data to the first terminal at regular time, for example, once every two seconds.
Optionally, the second terminal may also send feedback data according to the data transmission progress, the second terminal serves as a receiving terminal, the first terminal serves as a sending terminal, and the second terminal sends the feedback data according to the data transmission progress in the data transmission process, for example, when the transmission progress reaches 50%, the second terminal sends the feedback data to the first terminal for multiple times.
In the data transmission process, the first terminal may be a receiving terminal or a transmitting terminal. The second terminal may be a receiving terminal or a transmitting terminal. The examples given in this embodiment should not be construed as limiting the invention.
An analyzing module 420, configured to analyze the multiple feedback data to obtain multiple pieces of memory capacity information of the second terminal.
Referring to fig. 5, fig. 5 is a second structural diagram of a data transmission device according to an embodiment of the present application. Wherein, the parsing module 420 further includes: a parsing submodule 421 and a memory capacity submodule 422.
The parsing module 421 is configured to parse the feedback data to obtain identification data.
After receiving the feedback data, the parsing module 420 parses the feedback data, where each frame of the feedback data includes a frame header, an identification data, and a frame tail, and the identification data includes data of memory capacity information. In the process of analyzing the feedback data, the identification data may be obtained first, and then the memory capacity information may be obtained from the identification data.
And the memory capacity sub-module 422 is configured to obtain memory capacity information of the second terminal according to the identification data.
The identification data includes header data, partition data, and trailer data, and the data in the partition data and the trailer data is data in which memory capacity information is recorded, and the memory capacity information sub-module 422 first obtains the identification data and then obtains the memory capacity information from the identification data.
For example, the identification DATA is divided into header DATA, DATA, FLAG1 DATA, DATA1 DATA, and trailer DATA, where the DATA may be understood as DATA that needs to be transmitted during WiFi direct DATA transmission between terminals, such as audio, video, files, etc., the FLAG1 DATA may be used as separation DATA, and the DATA1 DATA is DATA that describes the memory capacity information of the second terminal.
The determining module 430 is configured to determine whether the plurality of memory capacity information of the second terminal meet a preset condition.
Wherein the determining module 430 further comprises: an acquisition submodule 431, a first judgment submodule 432, and a second judgment submodule 433. Please refer to fig. 5.
The obtaining sub-module 431 is configured to obtain first memory capacity information, second memory capacity information, and third memory capacity information from the plurality of memory capacity information, where the first memory capacity information, the second memory capacity information, and the third memory capacity information are memory capacity information of the second terminal analyzed three times in succession.
After the plurality of feedback data are analyzed, a plurality of memory capacity information of the second terminal are obtained, and the obtaining sub-module 431 obtains the memory capacity information received three times in succession, which may be first memory capacity information, second memory capacity information, and third memory capacity information, where the first memory capacity information, the second memory capacity information, and the third memory capacity information are the second terminal memory capacity information obtained in sequence.
The first determining submodule 432 is configured to determine whether the first memory capacity information, the second memory capacity information, and the third memory capacity information are lower than a first threshold.
A first threshold may be set, and if the first memory capacity information, the second memory capacity information, and the third memory capacity information of the second terminal are all smaller than the first threshold, it indicates that the remaining memory capacity of the second terminal is insufficient, and the requirement for completing data transmission cannot be met.
If the first memory capacity information, the second memory capacity information and the third memory capacity information are not less than the first threshold, it indicates that the remaining memory capacity of the second terminal is sufficient, and data transmission can be continued, and at this time, feedback data of the second terminal is continuously received, so that the memory shortage caused by the second terminal performing other tasks is prevented.
The second determining submodule 433 is configured to determine whether a difference between the first memory capacity information and the second memory capacity information, and a difference between the second memory capacity information and the third memory capacity information are smaller than a second threshold after determining whether the first memory capacity information, the second memory capacity information, and the third memory capacity information are smaller than the first threshold.
A second threshold may be set, and when the difference between the first memory capacity information and the second memory capacity information and the difference between the second memory capacity information and the third memory capacity information are smaller than the second threshold, it indicates that the remaining memory capacity of the second terminal is insufficient, and the requirement for completing data transmission cannot be met.
If the difference between the first memory capacity information and the second memory capacity information and the difference between the second memory capacity information and the third memory capacity information are not less than the second threshold, it indicates that the remaining memory capacity of the second terminal is sufficient, and data transmission can be continued.
And the prompt module 440 is used for interrupting data transmission and generating prompt information.
And under the condition that the plurality of memory capacity information of the second terminal are judged not to meet the preset conditions, the data transmission between the first interruption and the second terminal is interrupted at the moment, and the data transmission failure caused by insufficient memory capacity of the second terminal is prevented.
At this time, a prompt message can be generated to prompt the suspension of data transmission, so as to prevent data transmission failure. The prompt message may be generated by the first terminal, may be displayed in the first terminal, or may be sent to the second terminal through the first terminal to prompt a user of the second terminal.
To sum up, in this embodiment of the application, a first terminal obtains memory capacity information of the second terminal by receiving feedback data sent by a second terminal for multiple times, and then obtains consecutive three times of memory capacity information from multiple pieces of memory capacity information, that is, one piece of memory capacity information, two pieces of memory capacity information, and three pieces of memory capacity information, and then determines whether the first memory capacity information, the second memory capacity information, and the third memory capacity information are lower than a first threshold, and if so, determines whether a difference between the first memory capacity information and the second memory capacity information, and a difference between the second memory capacity information and the third memory capacity information are lower than a second threshold, and if so, interrupts data transmission between the first terminal and the second terminal and generates prompt information at the first terminal.
Correspondingly, the embodiment of the present application further provides a terminal, as shown in fig. 6, the terminal may include a display unit 501, an input unit 502, a memory 503, a central processing unit 504, a power supply 505, a WiFi module, a radio frequency circuit, and other components. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the display unit 501 may be used to display information input by or provided to a user and various graphic user interfaces of a terminal, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 501 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the central processor 504 to determine the type of touch event, and the central processor 504 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 6 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The input unit 502 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 502 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the central processing unit 504, and can receive and execute commands sent by the central processing unit 504. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 502 may include other input devices in addition to a touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The memory 503 may be used to store software programs and modules, and the processor 504 executes various functional applications and data processing by operating the software programs and modules stored in the memory 503. The memory 504 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 503 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. Accordingly, the memory 503 may also include a memory controller to provide the processor 504 and the input unit 502 access to the memory 503.
The terminal also includes a power supply 505 (e.g., a battery) for powering the various components, which may preferably be logically connected to the central processor 504 via a power management system, such that the functions of managing charging, discharging, and power consumption are performed via the power management system. The power supply 505 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
WiFi belongs to short-range wireless transmission technology, and the terminal can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 506, which provides wireless broadband internet access for the user. Meanwhile, files can be transmitted between the terminals through WiFi.
RF circuit 507 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to one or more processors 504 for processing; in addition, data relating to uplink is transmitted to the base station. Typically, the RF circuitry 507 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 507 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 Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the central processing unit 504 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 503 according to the following instructions, and the central processing unit 504 runs the application programs stored in the memory 503, thereby implementing various functions:
in the process of transmitting data to a second terminal by a first terminal, the first terminal receives feedback data sent by the second terminal for many times;
analyzing the feedback data to obtain a plurality of memory capacity information of the second terminal;
judging whether the plurality of memory capacity information of the second terminal meet preset conditions or not;
if yes, interrupting data transmission and generating prompt information.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the data transmission methods provided in the present application. For example, the instructions may perform the steps of:
in the process of transmitting data to a second terminal by a first terminal, the first terminal receives feedback data sent by the second terminal for many times;
analyzing the feedback data to obtain a plurality of memory capacity information of the second terminal;
judging whether the plurality of memory capacity information of the second terminal meet preset conditions or not;
if yes, interrupting data transmission and generating prompt information.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any data transmission method provided in the embodiments of the present application, beneficial effects that can be achieved by any data transmission method provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The foregoing describes in detail a data transmission method, an apparatus, a terminal and a storage medium provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principles and embodiments of the present application, and the description of the foregoing embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (7)

1. A method of data transmission, the method comprising:
in the process of transmitting data to a second terminal by a first terminal, the first terminal receives feedback data sent by the second terminal for many times;
analyzing the feedback data to obtain a plurality of memory capacity information of the second terminal;
judging whether the plurality of memory capacity information of the second terminal meet preset conditions or not;
if yes, interrupting data transmission and generating prompt information;
the judging whether the plurality of memory capacity information of the second terminal meet the preset conditions includes:
acquiring first memory capacity information, second memory capacity information and third memory capacity information from the plurality of memory capacity information, wherein the first memory capacity information, the second memory capacity information and the third memory capacity information are the memory capacity information of the second terminal analyzed for three times continuously;
judging whether the first memory capacity information, the second memory capacity information and the third memory capacity information are lower than a first threshold value or not;
simultaneously judging whether the difference between the first memory capacity information and the second memory capacity information and the difference between the second memory capacity information and the third memory capacity information are smaller than a second threshold value or not;
and if so, determining that the plurality of memory capacity information of the second terminal meet preset conditions.
2. The data transmission method according to claim 1, wherein the parsing the plurality of feedback data to obtain a plurality of memory capacity information of the second terminal includes:
analyzing the feedback data to obtain identification data;
and acquiring the memory capacity information of the second terminal according to the identification data.
3. The data transmission method according to claim 2, wherein the obtaining memory capacity information of the second terminal according to the identification data includes:
and acquiring header data, separation data and packet tail data in the identification data, wherein the data between the separation data and the packet tail data records the memory capacity information of the second terminal.
4. A data transmission apparatus, characterized in that the apparatus comprises: the device comprises a receiving module, an analysis module, a judgment module and a prompt module;
the receiving module is used for receiving feedback data sent by the second terminal for many times by the first terminal in the process of transmitting data to the second terminal by the first terminal;
the analysis module is configured to analyze the multiple feedback data to obtain multiple pieces of memory capacity information of the second terminal;
the judging module is used for judging whether the plurality of memory capacity information of the second terminal meet preset conditions or not;
the prompt module is used for interrupting data transmission and generating prompt information;
the obtaining submodule is used for obtaining first memory capacity information, second memory capacity information and third memory capacity information from the plurality of memory capacity information, wherein the first memory capacity information, the second memory capacity information and the third memory capacity information are the memory capacity information of the second terminal analyzed for three times continuously;
the first judgment submodule is used for judging whether the first memory capacity information, the second memory capacity information and the third memory capacity information are lower than a first threshold value or not;
and the second judging submodule is used for judging whether the difference between the first memory capacity information and the second memory capacity information and the difference between the second memory capacity information and the third memory capacity information are smaller than a second threshold value or not after judging whether the first memory capacity information, the second memory capacity information and the third memory capacity information are smaller than the first threshold value or not, and if yes, determining that the plurality of memory capacity information of the second terminal meet preset conditions.
5. The apparatus of claim 4, wherein the parsing module comprises:
the analysis submodule is used for analyzing the feedback data to obtain identification data;
and the memory capacity submodule is used for acquiring the memory capacity information of the second terminal according to the identification data.
6. A terminal, comprising:
a memory storing executable program code, a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the steps in the data transmission method according to any one of claims 1 to 3.
7. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the data transmission method according to any one of claims 1 to 3.
CN201910261208.1A 2019-04-02 2019-04-02 Data transmission method, device, terminal and storage medium Active CN110022189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910261208.1A CN110022189B (en) 2019-04-02 2019-04-02 Data transmission method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910261208.1A CN110022189B (en) 2019-04-02 2019-04-02 Data transmission method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110022189A CN110022189A (en) 2019-07-16
CN110022189B true CN110022189B (en) 2021-09-28

Family

ID=67190404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910261208.1A Active CN110022189B (en) 2019-04-02 2019-04-02 Data transmission method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110022189B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364870A (en) * 2021-06-07 2021-09-07 上海天好信息技术股份有限公司 Low-memory handheld terminal data transmission system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110072023A (en) * 2009-12-22 2011-06-29 삼성전자주식회사 Method and apparatus for communicating data between processors in mobile terminal
CN102412875B (en) * 2011-12-26 2017-05-10 中兴通讯股份有限公司 File sending and receiving method and device as well as file transmission method and system
CN106713432B (en) * 2016-12-13 2019-11-05 深信服科技股份有限公司 Data cache method and network agent equipment
CN107404340A (en) * 2017-08-29 2017-11-28 广东欧珀移动通信有限公司 Transmission method, device, terminal and the storage medium of Bluetooth audio frequency data

Also Published As

Publication number Publication date
CN110022189A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN104518953B (en) Method for deleting message, instant communication terminal and system
US10474507B2 (en) Terminal application process management method and apparatus
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
CN107104763B (en) Method and device for setting timeout retransmission duration
CN110912574B (en) SIM card detection method, device, storage medium and terminal
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
WO2014166307A1 (en) Method for determining performance of process of application and computer system
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN111273955A (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN112749074A (en) Test case recommendation method and device
US9928134B2 (en) Method and apparatus for repairing dynamic link library file
CN110022189B (en) Data transmission method, device, terminal and storage medium
CN106817370B (en) Method and device for transmitting network data
CN106708575B (en) Mobile terminal and method and device for loading and running application thereof
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN113852450A (en) Message push feedback method and device, electronic equipment and storage medium
CN112261634A (en) Bluetooth transmission control method, device, terminal equipment and storage medium
CN113065083A (en) Page processing method and device, electronic equipment and storage medium
CN109561481B (en) Data sending method, terminal and storage medium
CN111144845A (en) Mobile terminal conference reminding method and device
CN110958641B (en) WIFI data receiving and transmitting control method and device for mobile terminal
CN111966271B (en) Screen panorama screenshot method and device, terminal equipment and storage medium
CN111405649B (en) Information transmission method and device and mobile terminal
CN105278967B (en) System updating method, device and system of mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230728

Address after: 201800 Room 1518, Floor 15, Building 1, No. 655, Yinxiang Road, Jiading District, Shanghai

Patentee after: Shanghai Chuangfei Zongheng Technology Group Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right