Data transfer method and system
First Claim
Patent Images
1. A data transfer method for a terminal coupled to a server by one or more networks, comprising:
- detecting a screen-click event or a key-press event from a user of the terminal to transfer data;
when the screen-click event or the key-press event is detected, triggering the terminal to detect a connection type of a current network between the terminal and the server by using an API (Application Programming Interface) provided by a web browser on the terminal;
when the terminal detects that the connection type of the current network is a wireless fidelity (WiFi) connection, performing data transfer between the terminal and the server; and
when the terminal detects that the connection type of the current network is a non-WiFi connection,prompting the user of the terminal whether to continue the data transfer;
when the terminal determines that the user makes a selection to continue the data transfer, continuing performing the data transfer, wherein the data includes image data, and continuing performing the data transfer includes;
detecting one or more network switching event during the data transfer;
in response to each of the one or more detected network switching event, triggering the terminal to detect the connection type of the current network;
determining that both a high-definition image and a standard-definition image corresponding to the image data are available;
automatically downloading the high-definition image from the server without prompting the user if it is detected that the connection type of the current network is a WiFi connection; and
automatically downloading the standard-definition image from the server after prompting the user if it is detected that the connection type of the current network is a non-WiFi connection;
when the terminal determines that the user does not choose any prompted option related to whether to continue the data transfer, suspending the data transfer between the terminal and the server;
after suspending the data transfer between the terminal and the server, continuing detecting the current network connection type; and
when the terminal detects that the connection type of the current network is the WiFi connection, uploading data of an unfinished upload task to the server, or downloading data of an unfinished download task from the server, wherein the unfinished upload task or the unfinished download task is a previously suspended task in response to the detected network switching event of the switch from the WiFi connection to the non-WiFi connection,wherein the method further comprises;
setting a preconfigured period based on a particular application; and
triggering the detection of the current network connection type periodically based on the preconfigured period.
1 Assignment
0 Petitions
Accused Products
Abstract
A data transfer method is provided for a terminal coupled to a server by one or more networks. The method includes detecting a connection type of a current network between the terminal and the server and performing data transfer between the terminal and the server when it is detected that the connection type of the current network is a wireless fidelity (WiFi) connection. Further, the method includes suspending data transfer between the terminal and the server when it is detected that the connection type of the current network is a non-WiFi connection.
-
Citations
6 Claims
-
1. A data transfer method for a terminal coupled to a server by one or more networks, comprising:
-
detecting a screen-click event or a key-press event from a user of the terminal to transfer data; when the screen-click event or the key-press event is detected, triggering the terminal to detect a connection type of a current network between the terminal and the server by using an API (Application Programming Interface) provided by a web browser on the terminal; when the terminal detects that the connection type of the current network is a wireless fidelity (WiFi) connection, performing data transfer between the terminal and the server; and when the terminal detects that the connection type of the current network is a non-WiFi connection, prompting the user of the terminal whether to continue the data transfer; when the terminal determines that the user makes a selection to continue the data transfer, continuing performing the data transfer, wherein the data includes image data, and continuing performing the data transfer includes; detecting one or more network switching event during the data transfer; in response to each of the one or more detected network switching event, triggering the terminal to detect the connection type of the current network; determining that both a high-definition image and a standard-definition image corresponding to the image data are available; automatically downloading the high-definition image from the server without prompting the user if it is detected that the connection type of the current network is a WiFi connection; and automatically downloading the standard-definition image from the server after prompting the user if it is detected that the connection type of the current network is a non-WiFi connection; when the terminal determines that the user does not choose any prompted option related to whether to continue the data transfer, suspending the data transfer between the terminal and the server; after suspending the data transfer between the terminal and the server, continuing detecting the current network connection type; and when the terminal detects that the connection type of the current network is the WiFi connection, uploading data of an unfinished upload task to the server, or downloading data of an unfinished download task from the server, wherein the unfinished upload task or the unfinished download task is a previously suspended task in response to the detected network switching event of the switch from the WiFi connection to the non-WiFi connection, wherein the method further comprises; setting a preconfigured period based on a particular application; and triggering the detection of the current network connection type periodically based on the preconfigured period. - View Dependent Claims (2)
-
-
3. A data transfer system coupled to a server by one or more networks, comprising at least one processor, a memory, and a plurality of program modules stored in the memory and to be executed by the at least one processor, the plurality of program modules comprising:
-
a first detection module configured to detect a connection type of a current network between a terminal and the server by using an API (Application Programming Interface) provided by a web browser on the terminal; a second detection module configured to detect a screen-click event or a key-press event from a user of the data transfer system to transfer data, wherein, when the second detection module detects the screen-click event or the key-press event, the second detection module triggers the first detection module to detect the connection type of the current network; a transfer module configured to; when the first detection module detects that the connection type of the current network is a wireless fidelity (WiFi) connection, perform data transfer between the data transfer system and the server; and when the first detection module detects that the connection type of the current network is a non-WiFi connection, suspend data transfer between the data transfer system and the server; a prompting module configured to, when the first detection module detects that the connection type of the current network is a non-WiFi connection, prompt the user whether to perform the data transfer; wherein the transfer module is further configured to; when the prompting module determines that the user makes a selection to continue to perform the data transfer, continue to perform the data transfer, wherein the data includes image data; the second detection module is configured to detect one or more network switching event during the data transfer performed by the transfer module; and
in response to each of the one or more detected network switching event, trigger the first detection module to detect the connection type of the current network;the transfer module is further configured to;
determine that both a high-definition image and a standard-definition image corresponding to the image data are available;automatically download the high-definition image from the server without prompting the user if it is detected that the connection type of the current network is a WiFi connection; and automatically download the standard-definition image from the server after prompting the user if it is detected that the connection type of the current network is a non-WiFi connection; and when the prompting module determines that the user does not choose any prompted option related to whether to continue the data transfer, suspend the data transfer; after the transfer module suspends the data transfer, the first detection module is further configured to continue detecting the current network connection type; and when the first detection module detects that the connection type of the current network is the WiFi connection, the transfer module is further configured to upload data of an unfinished upload task to the server, or download data of an unfinished download task from the server, wherein the unfinished upload task or the unfinished download task is a previously suspended task in response to the detected network switching event of the switch from the WiFi connection to the non-WiFi connection, wherein the first detection module is further configured to; set a preconfigured period based on a particular application; and trigger the detection of the current network connection type periodically based on the preconfigured period. - View Dependent Claims (4)
-
-
5. A mobile terminal coupled to a server by one or more networks, comprising:
-
a communication interface for accessing the one or more networks; a memory module; and a processor coupled to the memory module and the communication interface for implementing a data transfer process, the processor being configured to; detect a screen-click event or a key-press event from a user of the mobile terminal to transfer data; when the screen-click event or the key-press event is detected, trigger the processor to detect a connection type of a current network between the mobile terminal and the server by using an API (Application Programming Interface) provided by a web browser on the mobile terminal; when the processor detects that the connection type of the current network is a wireless fidelity (WiFi) connection, perform data transfer between the mobile terminal and the server; and when the processor detects that the connection type of the current network is a non-WiFi connection, prompt the user of the mobile terminal whether to continue to perform the data transfer; when the processor determines that the user makes a selection to continue to perform the data transfer, perform the data transfer, wherein the data includes image data, and performing the data transfer includes; detecting one or more network switching event during the data transfer; in response to each of the one or more detected network switching event, triggering the terminal to detect the connection type of the current network; determining that both a high-definition image and a standard-definition image corresponding to the image data are available; automatically downloading the high-definition image from the server without prompting the user if it is detected that the connection type of the current network is a WiFi connection; and automatically downloading the standard-definition image from the server after prompting the user if it is detected that the connection type of the current network is a non-WiFi connection; and when the processor determines that the user does not choose any prompted option related to whether to continue the data transfer, suspend the data transfer between the mobile terminal and the server; after the processor suspends the data transfer, continue detecting the current network connection type; and when the processor detects that the connection type of the current network is the WiFi connection, upload data of an unfinished upload task to the server, or download data of an unfinished download task from the server, wherein the unfinished upload task or the unfinished download task is a previously suspended task in response to the detected network switching event of the switch from the WiFi connection to the non-WiFi connection, wherein the processor is further configured to; set a preconfigured period based on a particular application; and trigger the detection of the current network connection type periodically based on the preconfigured period. - View Dependent Claims (6)
-
Specification