CN110225106B - Data transmission method, device and storage medium - Google Patents

Data transmission method, device and storage medium Download PDF

Info

Publication number
CN110225106B
CN110225106B CN201910479587.1A CN201910479587A CN110225106B CN 110225106 B CN110225106 B CN 110225106B CN 201910479587 A CN201910479587 A CN 201910479587A CN 110225106 B CN110225106 B CN 110225106B
Authority
CN
China
Prior art keywords
data
transmitted
preset
data transmission
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
CN201910479587.1A
Other languages
Chinese (zh)
Other versions
CN110225106A (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.)
Huizhou TCL Mobile Communication 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 CN201910479587.1A priority Critical patent/CN110225106B/en
Publication of CN110225106A publication Critical patent/CN110225106A/en
Application granted granted Critical
Publication of CN110225106B publication Critical patent/CN110225106B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Abstract

The application relates to a data transmission method, a device and a storage medium, wherein the data transmission method is applied to a mobile terminal and comprises the following steps: when the preset application is in an open state, detecting whether the mobile terminal is connected with a data network; if yes, detecting whether data to be transmitted exist or not; when the data to be transmitted exist, downloading the data from a preset server or transmitting the data to be transmitted to the preset server; and when the data to be transmitted does not exist, acquiring a preset character string and transmitting the preset character string to a preset server. Through the mode, the preset application and the preset server can carry out continuous data transmission, so that the phenomenon that the electric signal on the data transmission line is changed violently due to accidental data transmission of the preset application is avoided, interference on network data transmission is avoided, retransmission of network data is prevented, and the efficiency of data transmission is improved.

Description

Data transmission method, device 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, and a storage medium.
Background
At present, a large amount of data is uploaded or downloaded every day by a mobile terminal, for example, data such as photos and address lists in the mobile terminal are uploaded to a cloud disk for backup, and for example, a video is downloaded from a network by the mobile terminal for watching. Among these procedures, it is most concerned how the mobile terminal accesses the internet for data transmission, and it is most commonly used in the art to access the internet through WIFI (Wireless-Fidelity).
However, when using WIFI, even if the mobile terminal does not upload or download, some application programs in the mobile terminal need to be continuously updated synchronously with the server, that is, the mobile terminal may perform continuous data transmission, in this process, when a user uses some applications (for example, a camera) of the mobile terminal, because the time when the application performs data transmission through WIFI is accidental, the electrical signal on the corresponding data transmission line may be changed drastically when the application starts or stops performing data transmission, and thus WIFI data transmission may be interfered, which causes WIFI data retransmission, and affects the efficiency of data transmission.
Disclosure of Invention
An object of the present application is to provide a data transmission method, an apparatus and a storage medium, so as to avoid abrupt change of an electrical signal on a data transmission line due to accidental data transmission performed by a preset application, and further avoid interference on network data transmission, so as to prevent retransmission of network data and improve data transmission efficiency.
In order to solve the above problems, the present application adopts a technical solution that: a data transmission method is provided, and the method is applied to a mobile terminal and comprises the following steps: when the preset application is in an open state, detecting whether the mobile terminal is connected with a data network; if yes, detecting whether the data to be transmitted exist or not; when the data to be transmitted exist, downloading the data from a preset server or transmitting the data to be transmitted to the preset server; and when the data to be transmitted does not exist, acquiring a preset character string and transmitting the preset character string to a preset server.
The step of detecting whether the data to be transmitted exists specifically includes: monitoring whether a preset application generates a data transmission instruction or not, wherein the data transmission instruction carries a data address; and if the preset application generates a data transmission instruction, taking the data stored in the data address as the data to be transmitted.
After the step of monitoring whether the preset application generates the data transmission instruction, the method further comprises the following steps: if the preset application does not generate the data transmission instruction, detecting whether an interrupted data transmission task exists in the preset application; and if so, taking the data which is not transmitted in the data transmission task as the data to be transmitted.
The data transmission instruction also carries a local storage address, and the step of downloading the data to be transmitted from the preset server specifically comprises the following steps: acquiring data to be transmitted from a preset server according to the data address; and storing the data to be transmitted to the local storage address.
Wherein, the data transmission instruction still carries cloud dish memory address, to predetermine the step of server upload treating transmission data, specifically include: acquiring data to be transmitted stored in the data address; and uploading the data to be transmitted to a preset server so that the preset server receives the data to be transmitted and transmits the data to be transmitted to the cloud disk corresponding to the storage address of the cloud disk.
In order to solve the above problem, another technical solution adopted by the present application is: there is provided a data transmission apparatus applied to a mobile terminal, including: the first detection module is used for detecting whether the mobile terminal is connected with a data network or not when the preset application is in an open state; the second detection module is used for detecting whether the data to be transmitted exists or not when the mobile terminal is connected with the data network; the first transmission module is used for downloading the data to be transmitted from the preset server or transmitting the data to be transmitted to the preset server when the data to be transmitted exists; and the second transmission module is used for acquiring the preset character string and transmitting the preset character string to the preset server when the data to be transmitted does not exist.
Wherein, the second detection module specifically includes: the monitoring unit is used for monitoring whether a preset application generates a data transmission instruction or not when the mobile terminal is connected with a data network, wherein the data transmission instruction carries a data address; and the first determining unit is used for taking the data stored in the data address as the data to be transmitted when the preset application generates a data transmission instruction.
Wherein, the second detection module still includes: the device comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting whether an interrupted data transmission task exists in a preset application when the preset application does not generate a data transmission instruction; and the second determining unit is used for taking the data which is not transmitted in the data transmission task as the data to be transmitted when the interrupted data transmission task exists in the preset application.
Wherein, the data transmission instruction still carries local memory address, and first transmission module specifically includes: the acquisition unit is used for acquiring data to be transmitted from a preset server according to the data address; and the storage unit is used for storing the data to be transmitted to the local storage address.
In order to solve the above problem, another technical solution adopted by the present application is: there is provided a computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the data transfer method of any of the above.
The beneficial effect of this application is: different from the prior art, the data transmission method provided by the application detects whether the mobile terminal is connected with a data network or not when the preset application is in an open state, then detects whether the data to be transmitted exists or not if the mobile terminal is connected with the data network, downloads or transmits the data to be transmitted from the preset server to the preset server when the data to be transmitted exists, and acquires the preset character string to transmit the data to the preset server when the data to be transmitted does not exist, so that the preset application and the preset server can continuously transmit the data, further, the phenomenon that the electric signal on the data transmission line is violently changed due to accidental data transmission of the preset application is avoided, the interference on the network data transmission is avoided, the retransmission of the network data is prevented, and the data transmission efficiency 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 schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is another schematic flow chart of a data transmission method according to an embodiment of the present application;
fig. 3 is another schematic flow chart of a data transmission method according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of S13 in FIG. 1;
FIG. 5 is another schematic flow chart of S13 of FIG. 1;
fig. 6 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 8 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solution and technical effects of the present application clearer and clearer, the present application will be further described in detail below, and it should be understood that the specific implementation examples described herein are only for explaining the present application and are not used to limit the present application.
At present, in a networking state, when a user uses some applications (e.g., an album application) of a mobile terminal, due to the fact that the time of the application performing data transmission through a network is accidental, an electrical signal on a corresponding data transmission line may be changed drastically when the application starts or stops performing data transmission, and then the network data transmission may be interfered, so that network data retransmission may be caused, and the efficiency of data transmission may be affected. In order to solve the above technical problem, a technical solution adopted in the present application is to provide a data transmission method, so that the application and the network server can perform continuous data transmission, thereby avoiding that the application performs accidental data transmission to cause a drastic change of an electrical signal on a data transmission line, so as to avoid interference on network data transmission, prevent retransmission of network data, and improve data transmission efficiency.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data transmission method provided in an embodiment of the present application, which is applied to a mobile terminal, and a specific flow of the data transmission method may be as follows:
s11: and when the preset application is in the open state, detecting whether the mobile terminal is connected with the data network, if so, executing S12, and if not, executing S11 again.
According to the frequency of data exchange between the application program and the network server, the installed application programs in the mobile terminal can be divided into two types, one is continuous network data transceiving application, and the other is accidental network data transceiving application. Specifically, during the time that the mobile terminal is connected to the data network, the continuous network data transceiving application may perform continuous data exchange with the network server, for example, some applications may need to continuously synchronize the update status with the network server even if no data is uploaded or downloaded. Unlike the continuous network data transceiving application, the occasional network data transceiving application generally exchanges data with the network server only when a data upload instruction or a data download instruction is generated in response to a user operation, and stops data interaction with the network server after the upload or download of data required by the user is completed.
In this embodiment, the preset application is an accidental network data transceiving application installed in the mobile terminal, for example, the preset application may be an album application, an online classroom, or the like. Moreover, the preset application is configured with a background network server, which is referred to as a preset server in the embodiment of the present application.
The preset application can be downloaded and installed in an application store by a mobile terminal user. The data network can be a 3G, 4G and other mobile data networks, and can also be a WIFI, LIFI and other wireless networks.
S12: and detecting whether the data to be transmitted exists, if so, executing S13, and otherwise, executing S14.
The data to be transmitted can be data stored in a preset folder of the mobile terminal in a preset application mode, and can also be data stored in a cloud disk in a preset server.
In a specific embodiment, as shown in fig. 2, S12 may specifically include:
s121: monitoring whether the preset application generates a data transmission instruction, wherein the data transmission instruction carries a data address, if so, executing S122, and if not, executing S14.
Specifically, a mobile terminal user can preview and select data to be transmitted to generate a data transmission request on an operation interface of a preset application, and then the preset application can generate a corresponding data transmission instruction according to the data transmission request of the user.
The data transmission instruction carries a data address of data which is specified by a user and needs to be transmitted, when the data transmission instruction is a data uploading instruction, the data address corresponds to a local storage address of the data which is specified by the user and needs to be transmitted in the mobile terminal, and when the data transmission instruction is a data downloading instruction, the data address corresponds to a cloud disk storage address of the data which is specified by the user and needs to be transmitted in a preset server.
S122: the data stored in the data address is treated as data to be transmitted, and S13 is executed.
The data which is designated by the user and needs to be transmitted is the data to be transmitted.
In an alternative embodiment, as shown in fig. 3, after S121 is executed, if the predetermined application generates the data transmission instruction, S122 is executed, and if the predetermined application does not generate the data transmission instruction, S123 is executed.
S123: whether the interrupted data transmission task exists in the preset application is detected, if yes, the step S124 is executed, and if not, the step S14 is executed.
When the preset application performs a data transmission task, for example, uploading or downloading data, if the data network connection of the mobile terminal is disconnected, or a signal abnormality occurs in the connected data network, or the preset application is forcibly closed, the data transmission task may be interrupted.
In this embodiment, the interrupted data transmission task may be a data transmission task in which the preset application was interrupted due to the preset application being closed in the last use process, or a data transmission task in which the preset application is interrupted due to the data network connection of the mobile terminal being disconnected or a signal abnormality occurring in the use process.
S124: the data not transmitted in the data transmission task is regarded as the data to be transmitted, and S13 is executed.
In one embodiment, when the data transmission task is interrupted, the mobile terminal may save the breakpoint of the data transmission. Specifically, the mobile terminal may perform blocking on data to be transmitted in the data transmission task, and perform data transmission by using the data block as a unit, so that the breakpoint of the data transmission may specifically correspond to the identification information of the data block being transmitted when the data transmission task is disconnected.
Furthermore, if the mobile terminal detects that the interrupted data transmission task exists in the preset application, the identification information of the breakpoint latched when the data transmission task is interrupted can be read, and the data which is not transmitted in the interrupted data transmission task is taken as the data to be transmitted, so that the data which is not transmitted can be continuously transmitted from the breakpoint of the data transmission task in the subsequent data transmission process.
S13: and downloading the data to be transmitted from the preset server or transmitting the data to be transmitted to the preset server.
Data transmission between the preset application and the preset server can be divided into two types according to the difference of the initiator: the first method is data downloading initiated by a preset application, and a data downloading instruction is generated in the corresponding preset application; the second method is data downloading initiated by a preset server, and a data uploading instruction is generated corresponding to a preset application.
In a specific embodiment, the data transmission instruction generated by the preset application is a data downloading instruction, and the data transmission instruction carries a data address and a local storage address, where as shown in fig. 4, S13 may specifically include:
s131: and acquiring the data to be transmitted from a preset server according to the data address.
For example, after a preset application generates a data downloading instruction, data stored in a data address carried by the data downloading instruction is used as data to be transmitted, and a data downloading request is sent to a preset server, so that the preset server receives the data downloading request and downloads the data to be transmitted from a cloud disk corresponding to the data address according to the data downloading request, and then the preset server transmits the data to be transmitted to the mobile terminal. And finally, the mobile terminal acquires the data to be transmitted from the preset server.
S132: and storing the data to be transmitted to the local storage address.
After the mobile terminal obtains the data to be transmitted from the preset server, the data to be transmitted can be stored in the local storage address, so that the data downloading task is completed.
In another specific embodiment, the data transmission instruction generated by the preset application is a data upload instruction, and the data transmission instruction carries a data address and a cloud disk storage address, where as shown in fig. 5, S13 may specifically include:
s133: and acquiring the data to be transmitted stored in the data address.
And after the preset application generates a data uploading instruction, taking data stored in a data address carried by the data uploading instruction as data to be transmitted, and acquiring the data to be transmitted in the mobile terminal.
S134: and uploading the data to be transmitted to a preset server so that the preset server receives the data to be transmitted and transmits the data to be transmitted to the cloud disk corresponding to the storage address of the cloud disk.
For example, after obtaining locally stored data to be transmitted, the mobile terminal uploads the data to be transmitted to a preset server, so that the preset server receives the data to be transmitted and further transmits the data to be transmitted to a cloud disk corresponding to the cloud disk storage address.
S14: and acquiring a preset character string and transmitting the preset character string to a preset server.
When there is no to-be-transmitted data of the preset application, that is, the preset application does not generate a data transmission instruction, or the preset application does not generate a data transmission instruction and there is no interrupted data transmission task in the preset application, the mobile terminal may obtain the preset character string and transmit the preset character string to the preset server, so that data transmission can be performed between the preset application and the preset server all the time, and further, an electrical signal of the data transmission line is prevented from being changed violently when the preset application starts to transmit data or finishes transmitting data, thereby avoiding interference on network transmission.
The preset character string may be pre-stored in a preset folder of the mobile terminal, and the preset character string may be preset null data, for example, 101010101010. That is, when there is no to-be-transmitted data applied in advance or the to-be-transmitted data applied in advance is completely transmitted, the mobile terminal may obtain the preset character string from the preset storage address, so as to repeatedly obtain and repeatedly transmit the preset character string to the preset server when there is no to-be-transmitted data.
Different from the prior art, the data transmission method provided in this embodiment detects whether the mobile terminal is connected to the data network when the preset application is in an open state, then detects whether data to be transmitted exists if the mobile terminal is connected to the data network, and downloads or transmits the data to be transmitted from the preset server to the preset server when the data to be transmitted exists, and acquires the preset character string to transmit to the preset server when the data to be transmitted does not exist, so that the preset application and the preset server can perform continuous data transmission, thereby preventing the electric signal on the data transmission line from being changed violently due to accidental data transmission performed by the preset application, avoiding interference on network data transmission, preventing retransmission of network data, and improving data transmission efficiency.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. As shown in fig. 6, the data transmission apparatus 600 is applied to a mobile terminal, and includes: a first detection module 601, a second detection module 602, a first transmission module 603, and a second transmission module 604, wherein:
(1) first detection module 601
The first detecting module 601 is configured to detect whether the mobile terminal is connected to the data network when the preset application is in an open state. In this embodiment, the preset application is an accidental network data transceiving application installed in the mobile terminal, for example, the preset application may be an album application, an online classroom, or the like. Moreover, the preset application is configured with a background network server, which is referred to as a preset server in the embodiment of the present application.
The preset application can be downloaded and installed in an application store by a mobile terminal user. The data network can be a 3G, 4G and other mobile data networks, and can also be a WIFI, LIFI and other wireless networks.
(2) Second detection module 602
The second detecting module 602 is configured to detect whether there is data to be transmitted when the mobile terminal is connected to the data network. The data to be transmitted can be data stored in a preset folder of the mobile terminal in a preset application mode, and can also be data stored in a cloud disk in a preset server.
In a specific embodiment, the second detection module 602 may specifically include:
(A) monitoring unit
The monitoring unit is used for monitoring whether the preset application generates a data transmission instruction when the mobile terminal is connected with a data network, and the data transmission instruction carries a data address. Specifically, a mobile terminal user can preview and select data to be transmitted to generate a data transmission request on an operation interface of a preset application, and then the preset application can generate a corresponding data transmission instruction according to the data transmission request of the user.
The data transmission instruction carries a data address of data which is specified by a user and needs to be transmitted, when the data transmission instruction is a data uploading instruction, the data address corresponds to a local storage address of the data which is specified by the user and needs to be transmitted in the mobile terminal, and when the data transmission instruction is a data downloading instruction, the data address corresponds to a cloud disk storage address of the data which is specified by the user and needs to be transmitted in a preset server.
(B) First determining unit
The first determining unit is used for taking the data stored in the data address as the data to be transmitted when the preset application generates a data transmission instruction. The data which is designated by the user and needs to be transmitted is the data to be transmitted.
In another specific embodiment, the second detection module 602 may further include:
(C) detection unit
The detection unit is used for detecting whether an interrupted data transmission task exists in the preset application when the preset application does not generate a data transmission instruction. In this embodiment, the interrupted data transmission task may be a data transmission task in which the preset application is interrupted due to the preset application being closed in the last use process, or a data transmission task in which the preset application is interrupted due to the data network connection of the mobile terminal being disconnected or a signal abnormality occurring in the present use process.
(D) Second determining unit
The second determining unit is used for taking the data which is not transmitted in the data transmission task as the data to be transmitted when the interrupted data transmission task exists in the preset application. In one embodiment, when the data transmission task is interrupted, the mobile terminal may save the breakpoint of the data transmission. Specifically, the data to be transmitted in the data transmission task may be partitioned, and the data transmission may be performed by using the data block as a unit, so that the breakpoint of the data transmission may specifically correspond to the identification information of the data block being transmitted when the data transmission task is disconnected.
Further, if the detection unit detects that there is an interrupted data transmission task in the preset application, the second determination unit may read the identification information of the breakpoint latched when the data transmission task is interrupted, and use the data that is not transmitted in the interrupted data transmission task as the data to be transmitted, so that the data that is not transmitted can be continuously transmitted from the breakpoint of the data transmission task in the subsequent data transmission process.
(3) First transmission module 603
The first transmission module 603 is configured to download or transmit data to be transmitted from or to a preset server when the data to be transmitted exists.
In a specific embodiment, the data transmission instruction generated by the preset application is a data download instruction, and the data transmission instruction carries a data address and a local storage address, where the first transmission module 603 may specifically include:
(a) acquisition unit
The acquisition unit is used for acquiring the data to be transmitted from the preset server according to the data address.
For example, after a preset application generates a data downloading instruction, a first determining unit takes data stored in a data address carried by the data downloading instruction as data to be transmitted, then an obtaining unit sends a data downloading request to a preset server, so that the preset server receives the data downloading request and downloads the data to be transmitted from a cloud disk corresponding to the data address according to the data downloading request, then the preset server transmits the data to be transmitted to a mobile terminal, and finally, the obtaining unit obtains the data to be transmitted from the preset server.
(b) Memory cell
The storage unit is used for storing the data to be transmitted to the local storage address.
Specifically, after the obtaining unit obtains the data to be transmitted from the preset server, the storage unit may store the data to be transmitted to the local storage address, so as to complete the data downloading task.
In an alternative embodiment, the data transmission instruction generated by the preset application is a data uploading instruction, and the data transmission instruction carries a data address and a cloud disk storage address, where the first transmission module 603 may specifically include:
(h) acquisition unit
The acquisition unit is used for acquiring the data to be transmitted stored in the data address.
For example, after the preset application generates the data uploading instruction, the first determining unit takes the data stored in the data address carried by the data uploading instruction as the data to be transmitted, and then the obtaining unit may obtain the data to be transmitted in the mobile terminal.
(i) Upload unit
The uploading unit is used for uploading the data to be transmitted to a preset server so that the preset server receives the data to be transmitted and transmits the data to be transmitted to the cloud disk corresponding to the storage address of the cloud disk.
For example, after the obtaining unit obtains the locally stored data to be transmitted, the uploading unit may upload the data to be transmitted to a preset server, so that the preset server receives the data to be transmitted and further transmits the data to be transmitted to the cloud disk corresponding to the cloud disk storage address.
(4) Second transmission module 604
The second transmission module 604 is configured to obtain a preset character string and transmit the preset character string to a preset server when there is no data to be transmitted.
When there is no to-be-transmitted data of the preset application, that is, the preset application does not generate a data transmission instruction, or the preset application does not generate a data transmission instruction and there is no interrupted data transmission task in the preset application, the second transmission module 604 may obtain the preset character string and transmit the preset character string to the preset server, so that data transmission can be performed between the preset application and the preset server all the time, and further, an electrical signal of the data transmission line is prevented from being changed drastically when the preset application starts to transmit data or ends to transmit data, thereby avoiding interference with network transmission.
The preset character string may be pre-stored in a preset folder of the mobile terminal, and the preset character string may be preset null data, for example, 101010101010. That is, when there is no to-be-transmitted data applied in advance or the to-be-transmitted data applied in advance is completely transmitted, the second transmission module 604 may obtain the preset character string from the preset storage address, so as to repeatedly obtain and repeatedly transmit the preset character string to the preset server when there is no to-be-transmitted data.
Different from the prior art, the data transmission device provided in this embodiment detects whether the mobile terminal is connected to the data network when the predetermined application is in an open state, and then detects whether there is data to be transmitted if the mobile terminal is connected to the data network, and downloads or transmits the data to be transmitted from the predetermined server to the predetermined server when there is data to be transmitted, and obtains the predetermined string to transmit to the predetermined server when there is no data to be transmitted, so that the predetermined application and the predetermined server can perform continuous data transmission, thereby preventing the occurrence of severe change of an electrical signal on the data transmission line due to accidental data transmission performed by the predetermined application, avoiding interference on network data transmission, preventing retransmission of network data, and improving data transmission efficiency.
Referring to fig. 7, an embodiment of the present application further provides a mobile terminal, where the mobile terminal may be a smart phone, a tablet computer, or the like. As shown in fig. 7, the mobile terminal 400 includes a processor 401, a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the mobile terminal 400, 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 loading an application program stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the mobile terminal.
In this embodiment, the processor 401 in the mobile terminal 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions:
when the preset application is in an open state, detecting whether the mobile terminal is connected with a data network;
if yes, detecting whether data to be transmitted exist or not;
when the data to be transmitted exist, downloading the data from a preset server or transmitting the data to be transmitted to the preset server;
and when the data to be transmitted does not exist, acquiring a preset character string and transmitting the preset character string to a preset server.
Fig. 8 is a block diagram showing a specific structure of a mobile terminal provided in an embodiment of the present application, where the mobile terminal 300 may be used to implement the data transmission method provided in the foregoing embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the data transmission method and the data transmission device in the above embodiments, and the processor 380 executes various functional applications and data processing, i.e. functions of data transmission, by running the software programs and modules stored in the memory 320. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 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, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 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 processor 380, and can receive and execute commands sent by the processor 380. Additionally, the touch sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 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 display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in fig. 8 touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 300.
The mobile terminal 300, which may assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 370 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 8 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380, which is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The mobile terminal 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when the preset application is in an open state, detecting whether the mobile terminal is connected with a data network;
if yes, detecting whether the data to be transmitted exist or not;
when the data to be transmitted exist, downloading the data from a preset server or transmitting the data to be transmitted to the preset server;
and when the data to be transmitted does not exist, acquiring a preset character string and transmitting the preset character string to a preset server.
In specific implementation, the above modules and units may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities, and specific implementations of the above modules and units may refer to the foregoing method embodiments, and are not described herein again.
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.
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 above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A data transmission method is applied to a mobile terminal, and the method comprises the following steps:
when a preset application is in an open state, detecting whether the mobile terminal is connected with a data network or not, wherein the preset application is an accidental network data transceiving application installed in the mobile terminal, the accidental network data transceiving application can exchange data with a network server only when a data uploading instruction or a data downloading instruction is generated in response to user operation, and the data interaction with the network server can be stopped after the uploading or downloading of data required by a user is finished;
if yes, detecting whether data to be transmitted exist or not;
when the data to be transmitted exist, downloading the data from a preset server or uploading the data to be transmitted to the preset server;
and when the data to be transmitted does not exist, acquiring a preset character string and transmitting the preset character string to the preset server so as to enable the preset application and the preset server to continuously transmit data.
2. The data transmission method according to claim 1, wherein the step of detecting whether there is data to be transmitted specifically includes:
monitoring whether the preset application generates a data transmission instruction or not, wherein the data transmission instruction carries a data address;
and if the preset application generates the data transmission instruction, taking the data stored in the data address as the data to be transmitted.
3. The data transmission method according to claim 2, wherein after the step of monitoring whether the preset application generates the data transmission instruction, the method further comprises:
if the preset application does not generate the data transmission instruction, detecting whether an interrupted data transmission task exists in the preset application;
and if so, taking the data which is not transmitted in the data transmission task as the data to be transmitted.
4. The data transmission method according to claim 2, wherein the data transmission instruction further carries a local storage address, and the step of downloading the data to be transmitted from a preset server specifically includes:
acquiring the data to be transmitted from a preset server according to the data address;
and storing the data to be transmitted to the local storage address.
5. The data transmission method according to claim 2, wherein the data transmission instruction further carries a cloud disk storage address, and the step of uploading the data to be transmitted to the preset server specifically includes:
acquiring the data to be transmitted stored in the data address;
and uploading the data to be transmitted to a preset server so that the preset server receives the data to be transmitted and transmits the data to be transmitted to the cloud disk corresponding to the cloud disk storage address.
6. A data transmission apparatus, applied to a mobile terminal, comprising:
the mobile terminal comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether the mobile terminal is connected with a data network or not when a preset application is in an open state, the preset application is an accidental network data transceiving application installed in the mobile terminal, the accidental network data transceiving application can exchange data with a network server only when a data uploading instruction or a data downloading instruction is generated in response to user operation, and the data interaction with the network server can be stopped after the uploading or downloading of data required by a user is finished;
the second detection module is used for detecting whether the data to be transmitted exists or not when the mobile terminal is connected with the data network;
the first transmission module is used for downloading the data to be transmitted from a preset server or uploading the data to be transmitted to the preset server when the data to be transmitted exists;
and the second transmission module is used for acquiring a preset character string and transmitting the preset character string to the preset server when the data to be transmitted does not exist, so that the preset application and the preset server can continuously transmit data.
7. The data transmission device according to claim 6, wherein the second detection module specifically includes:
the monitoring unit is used for monitoring whether the preset application generates a data transmission instruction or not when the mobile terminal is connected with the data network, and the data transmission instruction carries a data address;
and the first determining unit is used for taking the data stored in the data address as the data to be transmitted when the preset application generates the data transmission instruction.
8. The data transmission apparatus of claim 7, wherein the second detection module further comprises:
the detection unit is used for detecting whether an interrupted data transmission task exists in the preset application when the preset application does not generate the data transmission instruction;
and the second determining unit is used for taking the data which is not transmitted in the data transmission task as the data to be transmitted when the interrupted data transmission task exists in the preset application.
9. The data transmission device according to claim 7, wherein the data transmission instruction further carries a local storage address, and the first transmission module specifically includes:
the acquisition unit is used for acquiring the data to be transmitted from a preset server according to the data address;
and the storage unit is used for storing the data to be transmitted to the local storage address.
10. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the data transfer method of any of claims 1 to 5.
CN201910479587.1A 2019-06-04 2019-06-04 Data transmission method, device and storage medium Active CN110225106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910479587.1A CN110225106B (en) 2019-06-04 2019-06-04 Data transmission method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910479587.1A CN110225106B (en) 2019-06-04 2019-06-04 Data transmission method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110225106A CN110225106A (en) 2019-09-10
CN110225106B true CN110225106B (en) 2022-06-10

Family

ID=67819533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910479587.1A Active CN110225106B (en) 2019-06-04 2019-06-04 Data transmission method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110225106B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572797A (en) * 2020-04-29 2021-10-29 阿里巴巴集团控股有限公司 Data processing method, device and system and electronic equipment
CN111988059B (en) * 2020-08-07 2022-07-08 捷开通讯(深圳)有限公司 Wireless data transmission method, device, storage medium and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769603A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Method, system and apparatus for data transmission
CN105893129A (en) * 2016-03-30 2016-08-24 北京小米移动软件有限公司 Processing method and device for application programs in terminal
CN108040330A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 WiFi directional transmission methods, mobile terminal and readable storage medium storing program for executing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8874761B2 (en) * 2013-01-25 2014-10-28 Seven Networks, Inc. Signaling optimization in a wireless network for traffic utilizing proprietary and non-proprietary protocols

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769603A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Method, system and apparatus for data transmission
CN105893129A (en) * 2016-03-30 2016-08-24 北京小米移动软件有限公司 Processing method and device for application programs in terminal
CN108040330A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 WiFi directional transmission methods, mobile terminal and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110225106A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
US11308893B2 (en) Method for controlling brightness in mobile terminal display, mobile terminal and storage device
CN112424725A (en) Application program control method and electronic equipment
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN107967153B (en) Application program management method and mobile terminal
CN110830127B (en) Radio frequency parameter processing method and device, mobile terminal and storage medium
CN110225106B (en) Data transmission method, device and storage medium
CN113141575B (en) Method, device and equipment for updating tracking area list and storage medium
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN109327866B (en) Flow control method, flow control device, mobile terminal and storage medium
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN110365842B (en) Terminal control method and terminal equipment
CN110048824B (en) Communication module control method, control device, and computer-readable storage medium
CN113590272A (en) Virtual machine deployment method, device, electronic device and storage medium
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
US11259222B2 (en) Mobile terminal and method and system for switching and controlling call link of mobile terminal
CN108307531B (en) Call control method, device, user terminal and computer readable storage medium
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN109995441B (en) Communication information processing method, device and storage medium
CN111104186A (en) Bluetooth configuration file loading method and device, storage medium and terminal equipment
CN108111553B (en) Method and device for providing service
CN112367703B (en) Frequency band registration method and device of identification card, storage medium and mobile terminal
CN106033358B (en) Batch installation method and device of application programs
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment

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