CN106506624B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN106506624B
CN106506624B CN201610949323.4A CN201610949323A CN106506624B CN 106506624 B CN106506624 B CN 106506624B CN 201610949323 A CN201610949323 A CN 201610949323A CN 106506624 B CN106506624 B CN 106506624B
Authority
CN
China
Prior art keywords
terminal
instruction
information
data transmission
marked
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
CN201610949323.4A
Other languages
Chinese (zh)
Other versions
CN106506624A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610949323.4A priority Critical patent/CN106506624B/en
Publication of CN106506624A publication Critical patent/CN106506624A/en
Priority to PCT/CN2017/095695 priority patent/WO2018076874A1/en
Application granted granted Critical
Publication of CN106506624B publication Critical patent/CN106506624B/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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

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

Abstract

The invention discloses a method and a device for data transmission, wherein the method comprises the following steps: when a first instruction for indicating data transmission is received, acquiring operation information of a terminal; judging whether the operation information of the terminal contains information marked in advance; if the operation information of the terminal is judged to contain the information marked in advance, the terminal is triggered to generate a cancellation instruction, and the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction; and controlling the terminal to cancel the data transmission operation corresponding to the first instruction according to the cancel instruction. Compared with the prior art, the method and the device can detect whether the specific running information of the terminal contains the information marked in advance before the terminal transmits the data, and cancel the data transmission under the condition that the specific running information contains the information marked in advance, namely the method and the device enable the data transmission time of the terminal to be controllable. Therefore, the invention can improve the flexibility of data transmission of the terminal.

Description

Data transmission method and device
Technical Field
The present invention belongs to the field of communication technologies, and in particular, to a method and an apparatus for data transmission.
Background
Due to the popularization of intelligent terminals, one user may have multiple terminals at the same time, and the data stored by the user on different terminals is different. In order to enable a user to conveniently use data stored on different terminals, the terminals can synchronously store the data generated in the using process to the cloud end, and download the data stored in the cloud end to the terminal equipment when necessary.
However, in the actual application process, when the terminal uploads or downloads data to or from the cloud, the flexibility of data transmission is often poor. For example, when the currently connected network is an unstable network, if the terminal and the cloud perform data transmission, data transmission failure is easily caused. In this case, the terminal generally performs data transmission again at regular time intervals and times. However, since the specific operation environment of the terminal is not considered in this data retransmission method, the flexibility is poor.
Disclosure of Invention
The invention aims to provide a data transmission method and a data transmission device, and aims to improve the flexibility of data transmission of a terminal.
In order to solve the technical problems, the invention provides the following technical scheme:
a method of data transmission, comprising:
when a first instruction for indicating data transmission is received, acquiring operation information of a terminal;
judging whether the operation information of the terminal contains information marked in advance;
if the operation information of the terminal is judged to contain the information marked in advance, the terminal is triggered to generate a cancellation instruction, and the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction;
and controlling the terminal to cancel the data transmission operation corresponding to the first instruction according to the cancellation instruction.
In order to solve the technical problems, the invention also provides the following technical scheme:
an apparatus for data transmission, comprising:
the terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the operation information of the terminal when receiving a first instruction for indicating data transmission;
the judging unit is used for judging whether the operation information of the terminal contains information marked in advance;
the generating unit is used for triggering the terminal to generate a cancellation instruction if the operation information of the terminal is judged to contain the information marked in advance, wherein the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction;
and the control unit is used for controlling the terminal to cancel the data transmission operation corresponding to the first instruction according to the cancellation instruction.
Compared with the prior art, the method and the device for data transmission provided by the invention have the advantages that when the first instruction for indicating the terminal to transmit data is received, the terminal firstly obtains the operation information of the terminal and judges whether the operation information of the terminal contains the information marked in advance. If the operation information of the terminal is judged to contain the information marked in advance, the terminal can be triggered to generate a cancellation instruction, and the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction. And after the cancel instruction is generated, the terminal cancels the data transmission operation corresponding to the first instruction according to the cancel instruction. Compared with the prior art that data transmission is carried out again according to fixed time intervals and times, the method and the device can detect whether the specific operation information of the terminal contains the information marked in advance or not before the terminal carries out data transmission, and cancel the data transmission under the condition that the specific operation information of the terminal contains the information marked in advance, namely the method and the device enable the data transmission opportunity of the terminal to be controllable. Therefore, the invention can improve the flexibility of data transmission of the terminal.
Drawings
The technical solution and the advantages of the present invention will be apparent from the following detailed description of the embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a data transmission method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating a data transmission method according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a data transmission apparatus according to a third embodiment of the present invention.
Fig. 4 is another schematic structural diagram of a data transmission apparatus according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
As will be described in detail below.
First embodiment
A method of data transmission, comprising: when a first instruction for indicating data transmission is received, acquiring operation information of a terminal; judging whether the operation information of the terminal contains information marked in advance; if the operation information of the terminal is judged to contain the information marked in advance, the terminal is triggered to generate a cancellation instruction, and the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction; and controlling the terminal to cancel the data transmission operation corresponding to the first instruction according to the cancel instruction.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data transmission method according to a first embodiment of the present invention, where the specific flow may include:
in step S101, when a first instruction for instructing data transmission is received, operation information of the terminal is acquired.
It can be understood that the execution subject of the embodiment of the present invention may be a terminal device such as a smart phone and a tablet computer.
For example, a user has multiple terminals, and in order to enable the user to conveniently use data stored in different terminals, the user may back up data generated in the use process of the terminals to the cloud server, and download the data backed up to the cloud server to each terminal when necessary. When the terminal performs data transmission with the cloud server, data transmission between the terminal and the cloud server may fail due to various reasons. In this case, the terminal may perform data transmission again at fixed time intervals and times. However, this data retransmission scheme has poor flexibility.
In order to solve the above problem, in step S101 of the embodiment of the present invention, when the terminal receives an instruction for instructing to perform data transmission, that is, a first instruction, the terminal may first acquire its operation information. It should be noted that the operation information may be a name and a type of a network to which the terminal is connected, such as a name of a wireless local area network to which the terminal is connected or an Identification Number (ID Number) of a base station corresponding to the mobile data network, and information such as the Number of applications opened by the terminal, applications being operated by the terminal, and the like.
In step S102, it is determined whether or not the operation information of the terminal includes information marked in advance.
For example, after the operation information of the terminal is acquired, the terminal may determine whether the operation information includes the information marked in advance.
The information marked in advance may be information recorded and marked by the terminal when the terminal fails to perform data transmission with the cloud server. For example, when data transmission between the terminal and the cloud server fails, the terminal may be triggered to acquire the reason of the data transmission failure. For example, the reason why the data transmission acquired by the terminal fails is that the network is unstable.
Then, the terminal determines the terminal operation information corresponding to the reason of the data transmission failure. For example, according to the reason that the network is unstable, the terminal needs to determine and record the current network connection information, such as a network name or an identification number. For example, the terminal determines that the network to which it is currently connected is an a-wlan, and records this information.
Secondly, the terminal counts the number of times recorded by the terminal due to the reason that the data transmission between the terminal and the cloud server fails due to the problem that the network is unstable. When the number of times that the first wireless lan is recorded exceeds a preset number of times, it can be considered that the terminal is likely to fail when performing data transmission in this network environment. That is, it is considered that since the network of the first wireless lan is unstable, when the network to which the terminal is connected is the first wireless lan, data transmission between the terminal and the cloud server is not suitable. Then, the terminal may tag the network name information of the first wireless lan, that is, the network name information of the first wireless lan becomes the information pre-tagged by the terminal.
For another example, if the terminal records that data transmission between the terminal and the cloud server fails when the terminal is connected to the mobile data network through a certain base station of the mobile operator, the terminal may mark the acquired identification number information of the base station to be pre-marked information.
If the terminal determines that the operation information does not include the pre-marked information, the terminal may perform data transmission according to the first instruction, in step S105.
If the terminal determines that the operation information includes the information marked in advance, the process may proceed to step S103.
In step S103, if it is determined that the operation information of the terminal includes the information marked in advance, the terminal is triggered to generate a cancel instruction, where the cancel instruction is used to instruct the terminal to cancel the data transmission operation corresponding to the first instruction.
In step S104, according to the cancel instruction, the terminal is controlled to cancel the data transmission operation corresponding to the first instruction.
For example, steps S103 and S104 may specifically include:
the terminal judges that the operation information contains the information marked in advance, for example, the terminal judges that the name of the network connected with the terminal is an A wireless local area network. In this case, the terminal may be triggered to generate a cancel instruction, where the cancel instruction is used to instruct the terminal to cancel the data transmission operation corresponding to the first instruction. And then, the terminal cancels the data transmission operation corresponding to the first instruction according to the cancellation instruction. That is, when the terminal determines that the currently connected network is the first wlan, the terminal may be controlled to cancel the data transmission operation corresponding to the first instruction.
It can be understood that, when the terminal needs to perform data transmission, whether the specific operation information of the terminal includes the information marked in advance is judged, and when the specific operation information of the terminal includes the information marked in advance, the terminal is controlled to cancel the data transmission, so that the time for the terminal to perform the data transmission can be controlled, and the flexibility for the terminal to perform the data transmission is improved.
In addition, when the operation information of the terminal contains the information marked in advance, the data transmission between the terminal and the cloud server is not suitable at the moment, and the probability of data transmission failure between the terminal and the cloud server can be reduced by canceling the data transmission at the moment.
As can be seen from the above, in the data transmission method provided in this embodiment, when the first instruction for instructing the terminal to perform data transmission is received, the terminal first obtains the operation information of the terminal, and determines whether the operation information of the terminal includes the information marked in advance. If the operation information of the terminal is judged to contain the information marked in advance, the terminal can be triggered to generate a cancellation instruction, and the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction. And after the cancel instruction is generated, the terminal cancels the data transmission operation corresponding to the first instruction according to the cancel instruction. Compared with the prior art that data transmission is carried out again according to fixed time intervals and times, the method and the device can detect whether the specific operation information of the terminal contains the information marked in advance or not before the terminal carries out data transmission, and cancel the data transmission under the condition that the specific operation information of the terminal contains the information marked in advance, namely the method and the device enable the data transmission opportunity of the terminal to be controllable. Therefore, the invention can improve the flexibility of data transmission of the terminal.
Second embodiment
The method of data transmission is explained in further detail below with respect to the method described in the first embodiment.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data transmission method according to a second embodiment of the present invention, where the specific flow includes:
in step S201, when a first instruction for instructing data transmission is received, the terminal acquires operation information.
For example, the terminal may be a mobile phone. When a first instruction for instructing data transmission between the mobile phone and the cloud server is received, the mobile phone can be triggered to acquire the running information of the mobile phone. The operation information may be a name and a type of a network to which the mobile phone is connected, such as a name of a wireless local area network to which the mobile phone is connected or an identification number of a base station corresponding to a mobile data network, and information such as the number of applications started by the mobile phone, applications being operated by the mobile phone, and the like.
In step S202, the terminal determines whether or not the operation information includes information marked in advance.
For example, after acquiring the running information of the mobile phone, the mobile phone may detect whether the running information includes information marked in advance.
The information marked in advance may be information recorded and marked by the mobile phone when the mobile phone fails to perform data transmission with the cloud server. For example, when data transmission between the mobile phone and the cloud server fails, the mobile phone may be triggered to acquire the reason of the data transmission failure. For example, the reason why the data transmission acquired by the mobile phone fails is that the network is unstable.
Then, the mobile phone determines the operation information corresponding to the reason of the data transmission failure. For example, according to the reason that the network is unstable, the mobile phone needs to determine and record the current network connection information, such as the network name or the identification number. For example, the handset determines that the network to which it is currently connected is an a-wlan, and records this information.
Secondly, the mobile phone counts the number of times recorded by the mobile phone due to the reason that the data transmission between the mobile phone and the cloud server fails because of the problem that the network of the mobile phone is unstable. When the recorded times of the first wireless local area network exceed the preset times, the mobile phone is considered to be easy to fail when performing data transmission in the network environment. That is, it is considered that since the network of the first wireless lan is unstable, when the network to which the mobile phone is connected is the first wireless lan, data transmission between the mobile phone and the cloud server is not suitable.
Then, the mobile phone may mark the acquired network name information of the first wireless lan, that is, the network name information of the first wireless lan becomes information marked in advance by the mobile phone. That is, if the mobile phone repeatedly records that data transmission between the mobile phone and the cloud server fails due to instability of the first wireless lan when the mobile phone is connected to the first wireless lan, the mobile phone may determine the acquired network name information of the first wireless lan as the pre-marked information.
For another example, if the mobile phone records that data transmission between the mobile phone and the cloud server fails when the mobile phone is connected to the mobile data network through a certain base station of the mobile operator, the mobile phone may mark the acquired identification number information of the base station, so that the information becomes pre-marked information. For another example, if the mobile phone records that when the mobile phone runs a certain application, the data of the mobile phone is frequently called by the application, so that data transmission fails due to local data operation conflict. In this case, the mobile phone may mark the name information of the application to be pre-marked information. That is, the mobile phone may set the recorded operation information that is not suitable for data transmission as the pre-marked information.
In a possible embodiment, if the mobile phone detects that the operation information does not include the pre-marked information, the mobile phone may perform data transmission according to the first instruction, i.e., step S207. If the mobile phone detects that the operation information includes the information marked in advance, the process proceeds to step S203.
In step S203, if it is determined that the running information includes the pre-marked information, the terminal generates a cancel instruction, where the cancel instruction is used to instruct the terminal to cancel the data transmission operation corresponding to the first instruction.
In step S204, the terminal cancels the data transmission operation corresponding to the first instruction according to the cancellation instruction.
For example, steps S203 and S204 may specifically include:
the mobile phone detects that the operation information of the mobile phone contains the information marked in advance, and the operation information of the mobile phone does not adapt to data transmission between the mobile phone and the cloud server when the operation information of the mobile phone contains the information marked in advance. Therefore, in this case, the mobile phone may be triggered to generate a cancel instruction, where the cancel instruction is used to instruct the mobile phone to cancel the data transmission operation corresponding to the first instruction. And then, the mobile phone can cancel the data transmission operation corresponding to the first instruction according to the cancellation instruction.
For example, the mobile phone detects that its current network connection information is information of the pre-marked a-wlan. In this case, since the network of the first wireless lan is unstable and is not suitable for data transmission, the mobile phone may cancel the data transmission operation corresponding to the first instruction at this time.
In step S205, the terminal generates a prompt message for prompting the user to adjust the operation information of the terminal so that the operation information of the terminal does not include the information marked in advance.
In step S206, if it is detected that the user adjusts the operation information of the terminal based on the prompt information and the adjusted operation information of the terminal does not include the pre-marked information, the terminal performs data transmission according to the first command.
For example, steps S205 and S206 may specifically include:
after the mobile phone cancels the data transmission operation corresponding to the first instruction according to the generated cancellation instruction, a prompt message can be generated, and the prompt message can be used for reminding a user to adjust the operation information of the mobile phone, so that the operation information of the mobile phone does not contain the pre-marked information. For example, if the pre-marked information included in the operation information of the mobile phone is network information of the first wireless lan, the prompt information generated by the mobile phone may prompt the user to switch the mobile phone to another network, such as to a mobile data network.
Then, the mobile phone can detect whether the user adjusts the operation information of the mobile phone based on the generated prompt information. If the mobile phone detects that the user adjusts the operation information of the mobile phone and the adjusted operation information does not contain the information marked in advance, the mobile phone can perform corresponding data transmission according to the first instruction. Of course, the data transmission of the mobile phone is performed under the condition of connecting to the network. For example, the mobile phone detects that the user switches the network to which the mobile phone is connected from the pre-marked a-wlan to the mobile data network of the mobile operator, and the information of the mobile data network is not pre-marked by the mobile phone, in this case, the mobile phone may perform corresponding data transmission according to the first instruction.
If the mobile phone detects that the user does not adjust the operation information of the mobile phone, or the adjusted operation information of the mobile phone still contains the information marked in advance, the mobile phone still does not perform the data transmission operation corresponding to the first instruction.
In another possible implementation, after step S204, the terminal may further perform the following steps:
saving the first instruction to a preset file;
and if the operation information of the terminal is detected not to contain the pre-marked information, triggering the terminal to call the first instruction in a preset file, and carrying out data transmission according to the first instruction.
For example, after the data transmission operation corresponding to the first instruction is cancelled according to the cancellation instruction, the mobile phone may store the first instruction in a preset file. Then, the mobile phone can detect whether the running information still contains the information marked in advance in real time or according to a preset time interval, and when the mobile phone detects that the running information does not contain the information marked in advance, the mobile phone is triggered to call the first instruction stored in the preset file. Finally, the mobile phone can perform corresponding data transmission according to the first instruction. That is, the mobile phone may store the first instruction in a preset file, and then call the first instruction from the preset file when the operation information of the mobile phone does not include the pre-marked information, and perform corresponding data transmission according to the first instruction.
In a possible implementation manner, after the terminal calls the first instruction in a preset file and performs data transmission according to the first instruction, the following steps may be further performed:
and if the data transmission operation corresponding to the first instruction is detected to be finished, deleting the first instruction from a preset file.
For example, if the mobile phone detects that the mobile phone successfully performs data transmission with the cloud server according to the first instruction, the mobile phone may delete the first instruction from the preset file at this time. It can be understood that, by deleting the first instruction from the preset file after detecting that the data transmission operation corresponding to the first instruction is successfully executed, the storage space in the preset file can be saved.
In a possible implementation manner, the following steps may be further included before step S201:
and when a second instruction for indicating the modification of the pre-marked information is received, modifying the pre-marked information according to the second instruction.
For example, when the mobile phone receives a second instruction for instructing to modify the pre-marked information, the mobile phone may be triggered to modify the pre-marked information according to the second instruction. For example, when the mobile phone records that the mobile phone is connected to the second wireless local area network for many times, the data transmission between the mobile phone and the cloud server fails because the network connection of the second wireless local area network is unstable. Therefore, the mobile phone marks the acquired network information of the second wireless local area network, that is, the information of the second wireless local area network becomes the information marked in advance by the mobile phone. If the user upgrades the second wireless local area network after the first wireless local area network is established, so that the network connection of the second wireless local area network becomes stable, the user can input an instruction on the mobile phone, and the instruction is used for instructing the mobile phone to cancel the marking of the network information of the second wireless local area network. After the mobile phone receives the instruction, the marking of the network information of the second wireless local area network is cancelled according to the instruction, so that the network name information of the second wireless local area network is not the information marked in advance any more.
In one possible embodiment, after a certain message is marked to be a pre-marked message, the mobile phone may save the pre-marked message to a predetermined file, such as a table. Based on this, when the mobile phone needs to modify the pre-marked information, the modification operation can be directly performed in the preset form file. For example, if a piece of pre-marked information is added to the mobile phone, the mobile phone may add the added pre-marked information to a preset form file. Or, if the mobile phone needs to delete some pre-marked information, the mobile phone may directly delete the pre-marked information that needs to be deleted from the preset form file, and so on.
It will be appreciated that the flexibility of the terminal in terms of data transmission may be further enhanced by allowing the terminal to modify the pre-marked information.
As can be seen from the above, in the data transmission method provided in this embodiment, when the first instruction for instructing the terminal to perform data transmission is received, the terminal first obtains the operation information of the terminal, and determines whether the operation information of the terminal includes the information marked in advance. If the operation information of the terminal is judged to contain the information marked in advance, the terminal can be triggered to generate a cancellation instruction, and the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction. And after the cancel instruction is generated, the terminal cancels the data transmission operation corresponding to the first instruction according to the cancel instruction. Compared with the prior art that data transmission is carried out again according to fixed time intervals and times, the method and the device can detect whether the specific operation information of the terminal contains the information marked in advance or not before the terminal carries out data transmission, and cancel the data transmission under the condition that the specific operation information of the terminal contains the information marked in advance, namely the method and the device enable the data transmission opportunity of the terminal to be controllable. Therefore, the invention can improve the flexibility of data transmission of the terminal.
Third embodiment
In order to better implement the data transmission method provided by the embodiment of the present invention, an embodiment of the present invention further provides a device based on the data transmission method. The terms are the same as those in the above-mentioned data transmission method, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data transmission apparatus according to a third embodiment of the present invention. The apparatus 300 for data transmission may include: an acquisition unit 301, a judgment unit 302, a generation unit 303, and a control unit 304.
An obtaining unit 301, configured to obtain operation information of the terminal when receiving a first instruction for instructing to perform data transmission.
For example, when a first instruction for instructing to perform data transmission between the terminal and the cloud server is received, the terminal may be triggered to acquire its own operation information. The operation information may be a name and a type of a network to which the terminal is connected, such as a name of a wireless local area network to which the terminal is connected or an identification number of a base station corresponding to a mobile data network, and information such as the number of applications started by the terminal, applications being operated by the terminal, and the like.
A determining unit 302, configured to determine whether the operation information of the terminal includes information marked in advance.
For example, after the acquisition unit 301 acquires the operation information of the terminal, the trigger determination unit 302 may determine whether the operation information of the terminal includes the information marked in advance. The information marked in advance may be operation information recorded by the terminal and not suitable for data transmission, and the like. For example, if the terminal records that data transmission between the terminal and the cloud server fails when the terminal is connected to the mobile data network through a certain base station of a mobile operator, the terminal may mark the acquired identification number information of the base station to be pre-marked information. For another example, if the terminal records that when the terminal runs a certain application, the application may frequently call the terminal data, so that data transmission fails due to a local data operation conflict. In this case, the terminal may mark the name information of the application as pre-marked information.
If the determining unit 302 determines that the operation information of the terminal does not include the pre-marked information, the terminal may perform a corresponding data transmission operation according to the first instruction.
A generating unit 303, configured to trigger the terminal to generate a cancel instruction if it is determined that the operation information of the terminal includes the information marked in advance, where the cancel instruction is used to instruct the terminal to cancel the data transmission operation corresponding to the first instruction.
A control unit 304, configured to control the terminal to cancel the data transmission operation corresponding to the first instruction according to the cancellation instruction.
For example, the generating unit 303 and the controlling unit 304 may specifically be configured to:
if the determining unit 302 determines that the operation information of the terminal includes the pre-marked information, the terminal is not suitable for data transmission when the operation information of the terminal includes the pre-marked information. Therefore, at this time, the generating unit 303 may be triggered to generate a cancel instruction, where the cancel instruction is used to instruct the terminal to cancel the data transmission operation corresponding to the first instruction.
After the generating unit 303 generates the cancel instruction, the control unit 304 of the terminal may be triggered to control the terminal to cancel the data storage operation corresponding to the first instruction according to the cancel instruction.
It can be understood that, when the terminal needs to perform data transmission, whether the specific operation information of the terminal includes the information marked in advance is judged, and when the specific operation information of the terminal includes the information marked in advance, the terminal is controlled to cancel the data transmission, so that the time for the terminal to perform the data transmission can be controlled, and the flexibility for the terminal to perform the data transmission is improved.
Referring to fig. 4, fig. 4 is another schematic structural diagram of a data transmission device according to a third embodiment of the present invention. The apparatus 300 for data transmission may further include: a modification unit 305, an adjustment unit 306, a transmission unit 307, and a deletion unit 308.
A modifying unit 305, configured to, when receiving a second instruction for instructing to modify the pre-marked information, modify the pre-marked information according to the second instruction.
For example, the terminal may store the pre-marked information in a preset form file after marking the acquired information to obtain the pre-marked information. Based on this, the terminal can modify the information marked in advance in the preset form file. For example, when the terminal receives information input by the user to instruct the terminal to cancel a certain pre-marked piece of information, the modification unit 305 of the terminal may directly delete the piece of pre-marked information that needs to be cancelled in the preset form file. Alternatively, after the terminal adds a piece of pre-marked information, the modifying unit 305 of the terminal may add the added piece of pre-marked information into the preset form file, and so on.
It will be appreciated that the flexibility of the terminal in terms of data transmission may be further enhanced by allowing the terminal to modify the pre-marked information.
An adjusting unit 306, configured to generate a prompt message, where the prompt message is used to remind a user to adjust operation information of a terminal, so that the operation information of the terminal does not include pre-marked information; and if the fact that the operation information of the terminal is adjusted by the user is detected based on the prompt information and the adjusted operation information of the terminal does not contain the information marked in advance, controlling the terminal to transmit data according to the first instruction.
For example, after the control unit 304 controls the terminal to cancel the data transmission operation corresponding to the first instruction according to the cancel instruction generated by the generation unit 303, the adjustment unit 306 of the terminal may be triggered to generate a prompt message, where the prompt message may be used to prompt the user to adjust the operation information of the terminal, so that the operation information of the terminal does not include the information marked in advance. For example, if the pre-marked information included in the operation information of the terminal is the network name of the first wireless lan, the prompt information generated by the adjusting unit 306 may prompt the user to switch the terminal to another network, such as to a mobile data network.
Thereafter, the adjusting unit 306 of the terminal may detect whether the user has adjusted the operation information of the terminal based on the generated prompt information. If the terminal detects that the user adjusts the operation information of the terminal and the adjusted operation information does not contain the information marked in advance, the terminal can perform corresponding data transmission according to the first instruction. Of course, the data transmission by the terminal is performed while being connected to the network. If the terminal detects that the user does not adjust the operation information of the terminal, or the adjusted operation information of the terminal still contains the information marked in advance, the terminal still does not perform the data transmission operation corresponding to the first instruction.
A transmission unit 307, configured to save the first instruction to a preset file; and if the operation information of the terminal is detected not to contain the pre-marked information, triggering the terminal to call the first instruction in a preset file, and carrying out data transmission according to the first instruction.
In another possible embodiment, after the control unit 304 controls the terminal to cancel the data transmission operation corresponding to the first instruction according to the cancel instruction generated by the generation unit 303, the transmission unit 307 of the terminal may be further triggered to store the first instruction into the preset file. Then, the terminal can detect whether the operation information of the terminal contains the information marked in advance in real time or according to a preset time interval, and when the terminal detects that the operation information of the terminal does not contain the information marked in advance, the terminal is triggered to call the first instruction stored in the preset file. Finally, the terminal can perform corresponding data transmission according to the first instruction. Before detecting that the operation information of the terminal does not include the pre-marked information (that is, the operation information of the terminal includes the pre-marked information), the terminal may not perform the data transmission operation corresponding to the first instruction.
The deleting unit 308 is configured to delete the first instruction from a preset file if it is detected that the data transmission operation corresponding to the first instruction is completed.
For example, after the transmission unit 307 successfully performs data transmission with the cloud server according to the first instruction, the deletion unit 308 of the terminal may be triggered to delete the first instruction stored in the preset file. It can be understood that, by deleting the first instruction from the preset file after detecting that the data transmission operation corresponding to the first instruction is successfully executed, the storage space in the preset file can be saved.
As can be seen from the above, in the data transmission apparatus provided in this embodiment, when receiving the first instruction for instructing the terminal to perform data transmission, the terminal first obtains the operation information of the terminal, and determines whether the operation information of the terminal includes the information marked in advance. If the operation information of the terminal is judged to contain the information marked in advance, the terminal can be triggered to generate a cancellation instruction, and the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction. And after the cancel instruction is generated, the terminal cancels the data transmission operation corresponding to the first instruction according to the cancel instruction. Compared with the prior art that data transmission is carried out again according to fixed time intervals and times, the method and the device can detect whether the specific operation information of the terminal contains the information marked in advance or not before the terminal carries out data transmission, and cancel the data transmission under the condition that the specific operation information of the terminal contains the information marked in advance, namely the method and the device enable the data transmission opportunity of the terminal to be controllable. Therefore, the invention can improve the flexibility of data transmission of the terminal.
Fourth embodiment
For a better understanding of the present invention, the present invention also provides a mobile terminal.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention. The mobile terminal 400 described in the present embodiment includes: at least one input device 410; at least one output device 420; at least one processor 430 and memory 440. The processor 430 may be a Central Processing Unit (CPU). The input device 410, the output device 420, the processor 430, and the memory 440 are connected by a bus 450.
The input device 410 may be a physical key.
The output device 420 may be a display screen.
The memory 440 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 440 is used for storing a set of program codes, and the input device 410, the output device 420 and the processor 430 are used for calling the program codes stored in the memory 440 to execute the following operations:
when a first instruction for indicating data transmission is received, acquiring the operation information of the mobile terminal;
judging whether the running information of the mobile terminal contains information marked in advance;
if the operation information of the mobile terminal is judged to contain the pre-marked information, the mobile terminal is triggered to generate a cancellation instruction, and the cancellation instruction is used for indicating the mobile terminal to cancel the data transmission operation corresponding to the first instruction;
and controlling the mobile terminal to cancel the data transmission operation corresponding to the first instruction according to the cancellation instruction.
The input device 410, the output device 420, and the processor 430 may further invoke the program code stored in the memory 440 and perform the following operations before performing the step of receiving the first instruction for instructing data transmission:
and when a second instruction for indicating the modification of the pre-marked information is received, modifying the pre-marked information according to the second instruction.
After the step of controlling the mobile terminal to cancel the data transmission operation corresponding to the first instruction is executed, the input device 410, the output device 420, and the processor 430 may further call the program code stored in the memory 440, and perform the following operations:
generating prompt information, wherein the prompt information is used for reminding a user of adjusting the operation information of the mobile terminal so that the operation information of the mobile terminal does not contain pre-marked information;
and if the fact that the user adjusts the operation information of the mobile terminal is detected based on the prompt information and the adjusted operation information of the mobile terminal does not contain the information marked in advance, controlling the mobile terminal to perform data transmission according to the first instruction.
In another possible implementation manner, after the step of controlling the mobile terminal to cancel the data transmission operation corresponding to the first instruction is performed, the input device 410, the output device 420, and the processor 430 may further call the program code stored in the memory 440, and perform the following operations:
saving the first instruction to a preset file;
and if the operation information of the mobile terminal is detected not to contain the pre-marked information, triggering the mobile terminal to call the first instruction in a preset file, and carrying out data transmission according to the first instruction.
After the step of data transmission according to the first instruction is performed, the input device 410, the output device 420 and the processor 430 may also call the program code stored in the memory 440, and perform the following operations:
and if the data transmission operation corresponding to the first instruction is detected to be finished, deleting the first instruction from a preset file.
In a specific implementation, the input device 410, the output device 420, and the processor 430 described in this embodiment of the present invention may execute the implementation described in the method for data transmission provided in the first embodiment and the second embodiment of the present invention, or may execute the implementation described in the apparatus for data transmission provided in the third embodiment of the present invention, which is not described herein again.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiment of the present invention, the data transmission apparatus and the data transmission method in the above embodiment belong to the same concept, and any method provided in the data transmission method embodiment may be operated on the data transmission apparatus, and a specific implementation process thereof is described in the data transmission method embodiment, and is not described herein again.
It should be noted that, for the method for data transmission according to the present invention, it can be understood by a person skilled in the art that all or part of the process of the method for data transmission according to the embodiment of the present invention can be implemented by controlling related hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of a terminal, and executed by at least one processor in the terminal, and during the execution, the process of the embodiment of the method for data transmission can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the data transmission apparatus according to the embodiment of the present invention, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The method, the apparatus and the mobile terminal for data transmission provided by the embodiment of the present invention are described in detail above, a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, 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 invention.

Claims (11)

1. A method of data transmission, the method comprising:
when a first instruction for indicating data transmission is received, acquiring operation information of a terminal, wherein the operation information comprises a network name and a base station identification number connected with the terminal, the number of applications started by the terminal and the applications running at the terminal;
judging whether the operation information of the terminal contains pre-marked information, wherein the pre-marked information is a current network name or a base station identification number recorded and marked by the terminal when the terminal fails to transmit data with a cloud server for multiple times;
if the operation information of the terminal is judged to contain the information marked in advance, the terminal is triggered to generate a cancellation instruction, and the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction;
and controlling the terminal to cancel the data transmission operation corresponding to the first instruction according to the cancellation instruction.
2. The method of claim 1, further comprising, prior to the step of receiving the first instruction indicating to perform the data transmission:
and when a second instruction for indicating the modification of the pre-marked information is received, modifying the pre-marked information according to the second instruction.
3. The method according to claim 2, wherein after the step of controlling the terminal to cancel the data transmission operation corresponding to the first instruction, the method further comprises:
generating prompt information, wherein the prompt information is used for reminding a user of adjusting the operation information of the terminal so that the operation information of the terminal does not contain pre-marked information;
and if the fact that the operation information of the terminal is adjusted by the user is detected based on the prompt information and the adjusted operation information of the terminal does not contain the information marked in advance, controlling the terminal to transmit data according to the first instruction.
4. The method according to claim 2, wherein after the step of controlling the terminal to cancel the data transmission operation corresponding to the first instruction, the method further comprises:
saving the first instruction to a preset file;
and if the operation information of the terminal is detected not to contain the pre-marked information, triggering the terminal to call the first instruction in a preset file, and carrying out data transmission according to the first instruction.
5. The method of claim 4, further comprising, after the step of transmitting data according to the first instruction:
and if the data transmission operation corresponding to the first instruction is detected to be finished, deleting the first instruction from a preset file.
6. An apparatus for data transmission, the apparatus comprising:
the terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring operation information of the terminal when receiving a first instruction for indicating data transmission, and the operation information comprises a network name and a base station identification number connected with the terminal, the number of applications started by the terminal and the applications running at the terminal;
the judging unit is used for judging whether the operation information of the terminal contains pre-marked information, wherein the pre-marked information is a current network name or a base station identification number recorded and marked by the terminal when the terminal fails to transmit data with the cloud server for multiple times;
the generating unit is used for triggering the terminal to generate a cancellation instruction if the operation information of the terminal is judged to contain the information marked in advance, wherein the cancellation instruction is used for indicating the terminal to cancel the data transmission operation corresponding to the first instruction;
and the control unit is used for controlling the terminal to cancel the data transmission operation corresponding to the first instruction according to the cancellation instruction.
7. The apparatus for data transmission according to claim 6, wherein the apparatus further comprises:
and the modifying unit is used for modifying the pre-marked information according to a second instruction when the second instruction for indicating the modification of the pre-marked information is received.
8. The apparatus for data transmission according to claim 7, wherein the apparatus further comprises: the adjusting unit is used for generating prompt information, and the prompt information is used for reminding a user to adjust the operation information of the terminal so that the operation information of the terminal does not contain the information marked in advance;
and if the fact that the operation information of the terminal is adjusted by the user is detected based on the prompt information and the adjusted operation information of the terminal does not contain the information marked in advance, controlling the terminal to transmit data according to the first instruction.
9. The apparatus for data transmission according to claim 7, wherein the apparatus further comprises: the transmission unit is used for saving the first instruction to a preset file;
and if the operation information of the terminal is detected not to contain the pre-marked information, triggering the terminal to call the first instruction in a preset file, and carrying out data transmission according to the first instruction.
10. The apparatus for data transmission according to claim 9, wherein the apparatus further comprises:
and the deleting unit is used for deleting the first instruction from a preset file if the data transmission operation corresponding to the first instruction is detected to be executed completely.
11. A computer-readable storage medium storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 1 to 5.
CN201610949323.4A 2016-10-25 2016-10-25 Data transmission method and device Active CN106506624B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610949323.4A CN106506624B (en) 2016-10-25 2016-10-25 Data transmission method and device
PCT/CN2017/095695 WO2018076874A1 (en) 2016-10-25 2017-08-02 Data transmission method, apparatus, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610949323.4A CN106506624B (en) 2016-10-25 2016-10-25 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN106506624A CN106506624A (en) 2017-03-15
CN106506624B true CN106506624B (en) 2020-02-11

Family

ID=58323073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610949323.4A Active CN106506624B (en) 2016-10-25 2016-10-25 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN106506624B (en)
WO (1) WO2018076874A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506624B (en) * 2016-10-25 2020-02-11 Oppo广东移动通信有限公司 Data transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869565A (en) * 2015-05-28 2015-08-26 魅族科技(中国)有限公司 Communication information access method and terminal
CN104883294A (en) * 2015-05-28 2015-09-02 魅族科技(中国)有限公司 Data transmission control method and device
CN105554819A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Data transmission method and device and mobile terminal
CN105992188A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Application updating method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7797273B2 (en) * 2006-03-27 2010-09-14 Emoze Ltd. System and a method for reliable symmetric data synchronization
CN104699502B (en) * 2015-02-12 2019-02-01 Oppo广东移动通信有限公司 A kind of method and terminal that application is recommended
CN105554131A (en) * 2015-12-18 2016-05-04 魅族科技(中国)有限公司 Data processing method and mobile terminal
CN106027486A (en) * 2016-04-28 2016-10-12 深圳市金立通信设备有限公司 Multimedia content transmission method and terminal
CN106453907A (en) * 2016-10-19 2017-02-22 广东欧珀移动通信有限公司 Control method and device for terminal application
CN106506624B (en) * 2016-10-25 2020-02-11 Oppo广东移动通信有限公司 Data transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105992188A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Application updating method and device
CN104869565A (en) * 2015-05-28 2015-08-26 魅族科技(中国)有限公司 Communication information access method and terminal
CN104883294A (en) * 2015-05-28 2015-09-02 魅族科技(中国)有限公司 Data transmission control method and device
CN105554819A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Data transmission method and device and mobile terminal

Also Published As

Publication number Publication date
CN106506624A (en) 2017-03-15
WO2018076874A1 (en) 2018-05-03

Similar Documents

Publication Publication Date Title
RU2613028C2 (en) Method and device for file backup
EP3116266B1 (en) Method and apparatus for network entry when roaming
US10587741B2 (en) Communication event processing method and apparatus
CN109450949B (en) Method for unbinding numbers of multiple applications, mobile terminal and readable storage medium
CN107743305B (en) Method and device for loading configuration information and computer equipment
CN110572508B (en) Address book synchronization method and device, storage medium and electronic equipment
CN108495349B (en) Switching method of operator network and mobile terminal
CN106502826A (en) Data backup and transmission method and mobile terminal
CN106445743A (en) Data backup transmission method and mobile terminal
CN106105168B (en) Call forwarding method, terminal and portable electronic equipment
CN114727275A (en) Method and related device for processing active command
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN109413256B (en) Contact person information processing method and device, storage medium and electronic equipment
CN106506624B (en) Data transmission method and device
CN110944318B (en) Lock card setting method and device, storage medium and terminal
CN109348425B (en) Positioning information updating method, device, equipment and storage medium
CN110225106B (en) Data transmission method, device and storage medium
CN104378506A (en) Data operation method, data operation device and terminal
CN112423288B (en) Dialing analysis method, device, computer equipment and storage medium
CN108737670B (en) Method and apparatus for controlling incoming call forwarding at a communication terminal
CN112291722A (en) Call waiting state setting method, device, terminal and storage medium
CN112256197B (en) Management method, device and equipment for storage information and storage medium
CN114384825B (en) Control method and device of power supply equipment, electronic equipment and medium
CN109062593B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN106465219B (en) Method and device for registering network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant