CN110278228B - Data processing method and device for data processing - Google Patents

Data processing method and device for data processing Download PDF

Info

Publication number
CN110278228B
CN110278228B CN201810215675.6A CN201810215675A CN110278228B CN 110278228 B CN110278228 B CN 110278228B CN 201810215675 A CN201810215675 A CN 201810215675A CN 110278228 B CN110278228 B CN 110278228B
Authority
CN
China
Prior art keywords
terminal
resource
downloaded
identifier
identification information
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
CN201810215675.6A
Other languages
Chinese (zh)
Other versions
CN110278228A (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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201810215675.6A priority Critical patent/CN110278228B/en
Publication of CN110278228A publication Critical patent/CN110278228A/en
Application granted granted Critical
Publication of CN110278228B publication Critical patent/CN110278228B/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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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 embodiment of the invention provides a data processing method and device and a device for data processing, wherein the method specifically comprises the following steps: acquiring resource identification information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal; determining a download link corresponding to the resource to be downloaded according to the resource identification information; and downloading the resource to be downloaded according to the download link. The embodiment of the invention can save the network flow and the flow charge of the second terminal.

Description

Data processing method and device for data processing
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data processing method and apparatus, and an apparatus for data processing.
Background
With the development of communication technology, mobile terminals such as smart phones are increasingly intelligent, and the functions of the mobile terminals are increasingly diversified. The mobile terminal is used for making a call and receiving and sending a short message, and is also used for accessing the internet, for example, by accessing the internet, downloading resources such as pictures, music, videos and the like.
Currently, a mobile terminal can access the internet through a wireless network and download resources through the internet. Common wireless networks may include: a WiFi (wireless fidelity) network, a mobile network, etc.
However, for a mobile network such as GPRS (General Packet Radio Service), the access to the internet usually requires services provided by a mobile network operator, and the consumption method of the services is usually charged according to network traffic, usually at a higher cost, and for the operation of downloading resources, larger network traffic and higher traffic charges are caused.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a data processing method, a data processing apparatus, and an apparatus for data processing that overcome or at least partially solve the above problems, and the embodiments of the present invention can save network traffic and traffic charges of the second terminal.
In order to solve the above problem, an embodiment of the present invention discloses a data processing method, including:
acquiring resource identification information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal;
determining a download link corresponding to the resource to be downloaded according to the resource identification information;
and downloading the resource to be downloaded according to the download link.
On the other hand, the embodiment of the invention discloses a data processing method which is applied to a second terminal and comprises the following steps:
receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded;
and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
On the other hand, the embodiment of the invention discloses a data processing method which is applied to a server and comprises the following steps:
receiving resource identification information of a resource to be downloaded from a second terminal;
and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
On the other hand, the embodiment of the invention discloses a data processing device, which is applied to a first terminal, and the device comprises:
the resource identifier acquisition module is used for acquiring resource identifier information of the resource to be downloaded corresponding to the second terminal; wherein the second terminal is associated with the first terminal;
a download link determining module, configured to determine, according to the resource identification information, a download link corresponding to the resource to be downloaded; and
and the downloading module is used for downloading the resource to be downloaded according to the downloading link.
Optionally, the apparatus further comprises:
and the resource sending module is used for sending the resource to be downloaded to the second terminal if the network accessed by the second terminal meets the preset condition.
Optionally, the preset condition includes: and the second terminal is accessed to a local area network, or the second terminal and the first terminal are accessed to the same local area network.
Optionally, the resource identifier obtaining module includes:
the first acquisition submodule is used for receiving resource identification information of the resource to be downloaded corresponding to the second terminal from the second terminal; or
And the second obtaining submodule is used for obtaining the resource identification information of the resource to be downloaded corresponding to the second terminal from the server.
Optionally, the second obtaining sub-module includes:
and the periodic acquisition unit is used for periodically acquiring the resource identification information of the resource to be downloaded corresponding to the second terminal from the server after the first terminal is started.
Optionally, the association manner between the first terminal and the second terminal includes at least one of the following manners:
the method comprises a user account association mode, a verification code association mode, a two-dimensional code association mode and a user setting association mode.
Optionally, the apparatus further comprises:
a request sending module, configured to send an acquisition request to a server, where the acquisition request carries a first identifier of the first terminal;
the verification information receiving module is used for receiving verification information generated by the server according to the acquisition request, wherein the verification information and the first identifier have a corresponding relation;
and the verification information display module is used for displaying the verification information.
In another aspect, an embodiment of the present invention discloses a data processing apparatus, which is applied to a second terminal, and the apparatus includes:
the instruction receiving module is used for receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded; and
and the resource identifier sending module is used for sending the resource identifier information of the resource to be downloaded to the first terminal associated with the second terminal so as to enable the first terminal to download the resource to be downloaded.
Optionally, the apparatus further comprises:
and the resource receiving module is used for receiving the resource to be downloaded of the second terminal from the second terminal if the accessed network meets the preset condition.
Optionally, the association manner between the first terminal and the second terminal includes at least one of the following manners:
the method comprises a user account association mode, a verification code association mode, a two-dimension code association mode and a user setting association mode.
Optionally, the apparatus further comprises:
the verification information acquisition module is used for acquiring the verification information displayed on the first terminal;
and the sending module is used for sending the verification information and the second identifier of the second terminal to a server.
In another aspect, an embodiment of the present invention discloses a data processing apparatus, which is applied to a server, and the apparatus includes:
the resource identifier receiving module is used for receiving resource identifier information of the resource to be downloaded from the second terminal;
and the resource identifier sending module is used for sending the resource identifier information of the resource to be downloaded to the first terminal associated with the second terminal so as to enable the first terminal to download the resource to be downloaded.
Optionally, the apparatus further comprises:
a request receiving module, configured to receive an acquisition request sent by the first terminal and a first identifier of the first terminal;
the request processing module is used for generating verification information according to the acquisition request and recording the corresponding relation between the verification information and the first identifier;
the two-dimensional code sending module is used for sending the verification information to the first terminal;
a scanning result receiving module, configured to receive the verification information sent by the second terminal and a second identifier of the second terminal;
and the association establishing module is used for establishing the association between the first identifier and the second identifier according to the corresponding relation and the verification information.
In yet another aspect, an embodiment of the present invention discloses an apparatus for data processing, including 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, the one or more programs including operating instructions for:
acquiring resource identification information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal;
determining a downloading link corresponding to the resource to be downloaded according to the resource identification information;
and downloading the resource to be downloaded according to the download link.
In yet another aspect, an embodiment of the present invention discloses an apparatus for data processing, including 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 includes operation instructions for:
receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded;
and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
In yet another aspect, an embodiment of the present invention discloses an apparatus for data processing, including 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 includes operation instructions for:
receiving resource identification information of the resource to be downloaded from the second terminal;
and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
In yet another aspect, an embodiment of the present invention discloses a machine-readable medium having stored thereon downloaded instructions, which, when executed by one or more processors, cause an apparatus to perform the aforementioned data processing method.
The embodiment of the invention downloads the resource to be downloaded corresponding to the second terminal through the first terminal, and specifically, the first terminal can determine the download link corresponding to the resource to be downloaded according to the resource identification information of the resource to be downloaded corresponding to the second terminal and download the resource link according to the download link; the second terminal can make the first terminal download the resource to be downloaded by providing the resource identification information of the resource to be downloaded, so the network flow and the flow charge of the second terminal can be saved.
In addition, in the embodiment of the present invention, the resource identification information of the resource to be downloaded may be provided by the second terminal, and the download link corresponding to the resource to be downloaded is obtained and determined by the first terminal, so that the network advantages (for example, the advantages of unlimited traffic or sufficient charging) of the first terminal may be utilized, and thus the network traffic and the traffic cost of the first terminal may be saved.
Drawings
FIG. 1 is a schematic illustration of an environment in which a data processing method of the present invention is applied;
FIG. 2 is a flow chart of the steps of one embodiment of a data processing method of the present invention;
fig. 3 is a flowchart illustrating steps of a process for establishing an association between a first terminal and a second terminal according to an embodiment of the present invention;
FIG. 4 is a flow chart of the steps of a data processing method embodiment of the present invention;
FIG. 5 is a flow chart of the steps of a data processing method embodiment of the present invention;
FIG. 6 is a flow chart of the steps of a data processing method embodiment of the present invention;
FIG. 7 is a block diagram of an embodiment of a data processing apparatus of the present invention;
FIG. 8 is a block diagram of an embodiment of a data processing apparatus of the present invention;
FIG. 9 is a block diagram of an embodiment of a data processing apparatus of the present invention;
FIG. 10 is a block diagram illustrating an apparatus for data processing as a terminal in accordance with an example embodiment;
fig. 11 is a schematic diagram of a server in some embodiments of the invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
An embodiment of the present invention provides a data processing scheme, which may include: a first terminal acquires resource identification information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal; determining a download link corresponding to the resource to be downloaded according to the resource identification information; and downloading the resource to be downloaded according to the download link.
In the embodiment of the present invention, the first terminal and the second terminal may be different terminals, and the specific first terminal and the specific second terminal are not limited in the embodiment of the present invention.
The resource to be downloaded corresponding to the second terminal may refer to a resource that the second terminal needs to download. The resource identification information may be used to identify the resource to be downloaded, and the resource identification information may include, but is not limited to: resource name, resource type (such as video, picture, text, music, etc.), or resource source (such as the page where the resource is located, the application or website where the resource is located), etc. The resource name may be a detailed name, a short name, or another name of the resource.
The embodiment of the invention downloads the resource to be downloaded corresponding to the second terminal through the first terminal, and specifically, the first terminal can determine the download link corresponding to the resource to be downloaded according to the resource identification information of the resource to be downloaded corresponding to the second terminal and download the resource link according to the download link; the second terminal can make the first terminal download the resource to be downloaded by providing the resource identification information of the resource to be downloaded, so that the network flow and the flow charge of the second terminal can be saved.
In an embodiment of the present invention, the first terminal may be a fixed terminal or a mobile terminal in a lan environment, and the second terminal may be a mobile terminal. The mobile terminal may function as a companion to a user, and the mobile terminal needs to access the internet through a mobile network in a non-local area network environment, and the mobile network is usually charged according to traffic, and the traffic of the mobile network usually has a traffic quota. While fixed terminals or mobile terminals in a lan environment generally access the internet via broadband, which is typically not billed for traffic. Examples of mobile networks may include: GPRS (General Packet Radio Service ), HSPA (High speed uplink Packet Access), and the like.
In order to save the network traffic of the second terminal, the second terminal may provide the resource identification information of the resource to be downloaded when there is a download demand of the resource to be downloaded; and the first terminal can determine the download link corresponding to the resource to be downloaded according to the resource identification information of the resource to be downloaded, and download the resource link according to the download link. For example, the resource to be downloaded may be a video a, the second terminal may provide a video name of the video a, and the first terminal may obtain a download link of the video a from the target download website and download the video a according to the download link. The first terminal which does not charge according to the flow can download the video A, so that the mobile network flow required by the second terminal for downloading the video A can be saved.
The download website may refer to a website that provides resources, that is, a website having a resource download function. The target downloading website can be a downloading website designated by a user or a downloading website determined according to the flow information of the downloading website. Traffic (traffic) is an amount of access to a website, and is an index describing user information for accessing one website, information on a web page viewed by a user, and the like.
According to an embodiment, the process of determining a target download website according to the traffic information of the download website may include: and determining a target downloading website according to the number of users accessing one downloading website, for example, taking a plurality of downloading websites with the largest number of users as the target downloading website.
According to an embodiment, the process of determining a target download website according to the traffic information of the download website may include: and determining a target downloading website according to the matching degree between the historical resources downloaded by the user through the downloading website and the resources to be downloaded. For example, the type of the resource to be downloaded is a video, and the historical resource downloaded by the user through the downloading website a includes the video, so the downloading website a can be used as the target website.
Of course, the target download website can also be determined according to the number of users accessing one download website and the matching degree between the historical resources downloaded by the users through the download website and the resources to be downloaded. For example, if the historical resources downloaded by the user through the download website a, the download resource B, and the download resource C all include videos, one of the download website a, the download resource B, and the download resource C may be selected as a target download website according to the number of users accessing the download website.
In an optional embodiment of the present invention, the foregoing scheme may further include: and if the network accessed by the second terminal meets the preset conditions, sending the resource to be downloaded obtained by downloading to the second terminal.
According to an embodiment, the preset condition may include: the second terminal accesses a local area network, for example, the local area network may include: wired local area networks, wireless local area networks, etc., examples of wireless local area networks may include: a WIFI network, etc. Because the local area network can not charge according to the flow, the resource to be downloaded obtained by downloading is sent to the second terminal under the condition that the second terminal is accessed into the local area network, and the mobile network flow required by the second terminal for receiving the resource to be downloaded can be saved.
According to another embodiment, the preset conditions may include: the second terminal and the first terminal are accessed to the same local area network, that is, the second terminal and the first terminal are in the same local area network, and in this case, the transmission between the first terminal and the second terminal belongs to intranet transmission, so that the transmission speed of the resource to be downloaded obtained by downloading can be improved.
Of course, the above-mentioned manner of communicating between the first terminal and the second terminal through the local area network is only optional, and actually, the embodiment of the present invention does not limit the specific manner of communicating between the first terminal and the second terminal, for example, the manner of communicating between the first terminal and the second terminal may include, in addition to the local area network manner: bluetooth mode, infrared mode, and even USB (universal serial Bus) mode.
The data processing method provided in the embodiment of the present invention may be applied to the application environment shown in fig. 1, as shown in fig. 1, the first terminal 100, the server 200, and the second terminal 300 are located in a wired or wireless network, and through the wired or wireless network, the first terminal 100 performs data interaction with the server 200, or the second terminal 100 performs data interaction with the server 200, or the first terminal 100 performs data interaction with the second terminal 300.
The first terminal and the second terminal may be different terminals, for example, different terminals owned by one user, or different terminals owned by one user and their relatives or their friends, respectively. The first terminal and the second terminal may include, but are not limited to: a mobile terminal, or a fixed terminal. Specifically, the first terminal and the second terminal may include, but are not limited to: a smart phone, a tablet computer, an electronic book reader, an MP3 (moving Picture Experts Group Audio Layer III) player MP4 (moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car computers, desktop computers, set-top boxes, smart televisions, wearable devices, and the like.
In the embodiment of the present invention, the second terminal 300 has a downloading requirement of the resource to be downloaded, and can provide the resource identification information of the resource to be downloaded. The second terminal 300 may directly provide the resource identification information of the resource to be downloaded to the first terminal 100, or may provide the resource identification information of the resource to be downloaded to the first terminal 100 in a relay manner in the server 200.
The first terminal 100 may be configured to download the resource to be downloaded corresponding to the second terminal 300, and specifically, the first terminal may determine a download link corresponding to the resource to be downloaded according to the resource identification information of the resource to be downloaded corresponding to the second terminal 300, and download the resource link according to the download link.
The first terminal 100 is further configured to send the resource to be downloaded obtained by downloading to the second terminal when the network accessed by the second terminal meets a preset condition.
In the embodiment of the present invention, the first terminal 100 or the second terminal 300 may detect that a network accessed by the second terminal meets a preset condition.
Method embodiment
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a data processing method according to the present invention is shown, and applied to a first terminal, the method specifically includes the following steps:
step 201, acquiring resource identification information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal;
step 202, determining a download link corresponding to the resource to be downloaded according to the resource identification information;
and 203, downloading the resource to be downloaded according to the download link.
The embodiment of the invention downloads the resource to be downloaded corresponding to the second terminal through the first terminal. Wherein the first terminal and the second terminal may be associated; thus, the first terminal used for downloading the resource to be downloaded is determined according to the resource to be downloaded corresponding to the second terminal.
Optionally, the association manner between the first terminal and the second terminal may include at least one of the following manners: the method comprises a user account association mode, a verification code association mode, a two-dimension code association mode and a user setting association mode.
The user account association mode can associate the first terminal with the second terminal through the user account. For example, a first account is logged on the first terminal, and a second account is logged on the second terminal, wherein the first account and the second account may be the same or different.
The verification code association mode can be that the first terminal sends the verification code to the second terminal through the communication number of the second terminal, and the second terminal can trigger confirmation operation after receiving the verification code, so that the association between the first terminal and the second terminal can be established.
The user setting association manner may establish the first identification information of the first terminal and the second identification information of the second terminal according to user setting, for example, the user may input the first identification information and the second identification information to establish an association therebetween. The first identification information and the second identification information are respectively used for identifying the first terminal and the second terminal, and the first identification information and the second identification information may include: device information, account information, network address, and the like, and the device information may include: IMEI (international mobile Equipment Identity), motherboard information, CPU information, etc., and the network address may include: MAC (media Access Control) address, IP (internet protocol) address, and the like.
The two-dimensional code association method may use a two-dimensional code as a medium for associating the first terminal with the second terminal. Two-dimensional code (also called two-dimensional bar code) is a black and white alternate pattern distributed on a plane (two-dimensional direction) according to a certain rule by using a specific geometric figure, and is a key with information data.
In an embodiment of the present application, a first terminal may send an acquisition request to a server, where the acquisition request carries a first identifier of the first terminal; receiving verification information generated by a server according to the acquisition request, wherein the verification information has a corresponding relation with the first identifier; and displaying the verification information. The verification information may include, but is not limited to: two-dimensional code information, a verification code, and the like.
In an embodiment of the present application, the second terminal may obtain the verification information displayed on the first terminal; and sending the verification information and the second identification of the second terminal to a server.
In an embodiment of the present application, a server may receive an acquisition request sent by a first terminal and a first identifier of the first terminal; generating verification information according to the acquisition request, and recording the corresponding relation between the verification information and the first identifier; sending the verification information to the first terminal; receiving the verification information sent by the second terminal and a second identifier of the second terminal; and establishing the association between the first identifier and the second identifier according to the corresponding relation and the verification information.
Referring to fig. 3, a flowchart illustrating steps of a process of establishing an association between a first terminal and a second terminal according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 301, a first terminal sends an acquisition request to a server, wherein the acquisition request carries a first identifier of the first terminal;
step 302, the server generates verification information according to the acquisition request, and records the corresponding relation between the verification information and the first identifier;
in practical application, the server may generate the verification information according to a preset rule. Optionally, the verification information may be a character string corresponding to the two-dimensional code, and in this case, the first terminal may generate the two-dimensional code according to the verification information; or the verification information may be a picture corresponding to the two-dimensional code, and in this case, the first terminal may display the picture corresponding to the two-dimensional code.
The authentication information may correspond to first identification information of the first terminal, and the first identification information may include: the device information, the account information, the network address and other information may further include: the server generates a unique ID (Identity) for the first terminal, such as a GUID (globally unique identifier).
Step 303, the first terminal receives the verification information sent by the server;
wherein the verification information and the first identifier have a corresponding relationship;
step 304, the first terminal displays the verification information;
the display may enable the second terminal to obtain the verification information, for example, the second terminal may scan the two-dimensional code.
305, the second terminal acquires the verification information displayed on the first terminal;
for example, the second terminal scans the two-dimensional code displayed on the first terminal to obtain the corresponding verification information.
Step 306, the second terminal sends the verification information and a second identifier of the second terminal to a server;
step 307, the server establishes the association between the first identifier and the second identifier according to the corresponding relationship and the verification information.
The server may match the verification information sent by the second terminal with the verification information in the correspondence to obtain a target first identifier corresponding to the verification information sent by the second terminal, and thus may establish an association between the target first identifier and the second identifier.
Fig. 3 establishes the association between the first terminal and the second terminal through the two-dimensional code, which can facilitate the association between the first terminal and the second terminal for the user because the two-dimensional code has the advantages of good security and convenient scanning.
An example of establishing an association between a first terminal and a second terminal through a two-dimensional code is provided, where in the example, the first terminal is a computer, the second terminal is a mobile phone, the first terminal and the second terminal respectively run a first client and a second client, and the first client and the second client may be browsers, and a process of establishing an association between a first terminal and a second terminal through a two-dimensional code may include:
s1, a first client responds to a first operation of a user and sends an acquisition request to a server;
the first operation is to trigger sending of an acquisition request to the server. The embodiment of the present invention does not limit the specific triggering manner of the first operation, and optionally, the user may trigger the first operation by a control, a shortcut key, a right-click menu, and the like. For example, a "sync control" may be displayed on the browser so that the user triggers the first operation by clicking on the "sync control".
S2, the server generates verification information according to an acquisition request sent by the first client, and records a mapping relation between the verification information and a first identifier of the first client;
s3, the server sends the verification information to the first client;
s4, the first client displays the two-dimensional code corresponding to the verification information;
s5, the second client scans the two-dimensional code to obtain a corresponding scanning result, and sends the scanning result and a second identifier of the second client to the server;
and S6, the server establishes association between the first identifier of the first client and the second identifier of the second client according to the scanning result and the second identifier.
Assuming that the verification information corresponds to the first identifier ID _ a of the first client and the scanning result corresponds to the second identifier ID _ B of the second client, the scanning result and the verification information may be matched, and if the two are consistent, the association between ID _ a and ID _ B may be established.
In practical application, if the second terminal has a downloading requirement of the resource to be downloaded, the resource identification information of the resource to be downloaded can be provided. In step 201, the first terminal may obtain resource identification information of the resource to be downloaded corresponding to the second terminal from the second terminal or the server. Correspondingly, the obtaining manner adopted by the step 201 to obtain the resource identification information of the resource to be downloaded corresponding to the second terminal may include:
acquiring a mode 1, and receiving resource identification information of a resource to be downloaded corresponding to the second terminal; or
And the acquisition mode 2 is used for acquiring the resource identification information of the resource to be downloaded corresponding to the second terminal from the server.
For the acquisition mode 1, the resource identifier information may be transmitted by using a communication mode between the first terminal and the second terminal. For example, a first account logged on a first terminal may receive resource identification information sent by a second account on a second terminal.
For the acquisition mode 2, the second terminal may send the resource identification information to the server, and forward the resource identification information to the first terminal through the server.
For example, the user uses a browser on the second terminal to surf the internet, finds an interested resource X, and may trigger an instruction to send resource identification information corresponding to the resource X to the server, for example, a control or a menu of "download to the associated first terminal" by the user through the browser on the second terminal, and trigger an instruction, which may trigger a download instruction "let the first terminal download the resource X", and transmit the download instruction to the server. After receiving the downloading instruction, the server can find the first terminal associated with the second terminal according to the association between the first terminal and the second terminal, and send a downloading instruction for enabling the first terminal to download the resource X to the browser of the first terminal; after receiving the download instruction, the browser of the first terminal may execute the download instruction of the download resource X.
In an optional embodiment of the present invention, the process of obtaining, from the server, the resource identification information of the resource to be downloaded corresponding to the second terminal may include: and after the first terminal is started, periodically acquiring resource identification information of the resource to be downloaded corresponding to the second terminal from a server. Compared with the accompaniability of the mobile terminal, the fixed terminals such as the computer and the like are usually in a shutdown state for a long time, after the fixed terminals such as the computer are started, the embodiment of the invention can inquire a downloading instruction to the server end at intervals, and if the downloading instruction exists, the execution is carried out; in this way, fast execution of the downloaded instructions may be achieved.
In the embodiment of the invention, the resource identification information of the resource to be downloaded can be provided by the second terminal, the download link corresponding to the resource to be downloaded is obtained and determined by the first terminal, and the network advantages (such as the advantage that the flow is not limited or the charging is sufficient) of the first terminal can be utilized, so that the network flow and the flow charge of the first terminal can be saved.
Optionally, the step 202 of determining, according to the resource identification information, a download link corresponding to the resource to be downloaded may include: and acquiring a download link corresponding to the resource to be downloaded from a preset download website. Of course, the embodiment of the present invention does not limit the specific process of determining the download link corresponding to the resource to be downloaded, for example, in other embodiments of the present invention, a mapping relationship between the resource identification information and the download link may also be pre-established, and the download link corresponding to the resource to be downloaded may be determined according to the mapping relationship.
In step 203, the resource to be downloaded may be downloaded from the server corresponding to the download link according to the download link. Optionally, after the downloading is completed, the resource to be downloaded obtained by downloading may also be saved, for example, the resource to be downloaded obtained by downloading is saved in a local preset path.
In an optional embodiment of the present invention, the method of the embodiment of the present invention may further include: and if the network accessed by the second terminal meets the preset conditions, sending the resource to be downloaded to the second terminal.
According to an embodiment, the preset condition may include: the second terminal accesses a local area network, for example, the local area network may include: wired local area networks, wireless local area networks, etc., examples of wireless local area networks may include: a WIFI network, etc. Because the local area network can charge according to the flow, the resource to be downloaded obtained by downloading is sent to the second terminal under the condition that the second terminal is accessed to the local area network, and the mobile network flow required by the second terminal for receiving the resource to be downloaded can be saved.
According to another embodiment, the preset conditions may include: the second terminal and the first terminal are accessed to the same local area network, that is, the second terminal and the first terminal are in the same local area network, and in this case, the transmission between the first terminal and the second terminal belongs to intranet transmission, so that the transmission speed of the resource to be downloaded obtained by downloading can be improved.
In the embodiment of the invention, whether a network accessed by the second terminal meets the preset condition can be detected by the first terminal or the second terminal. If the first terminal detects that the network accessed by the second terminal meets the preset conditions, the resource to be downloaded can be sent to the second terminal. Or, if the second terminal determines that the accessed network meets the preset condition, the second terminal may send a resource transmission request to be downloaded to the first terminal, so that the first terminal sends the resource to be downloaded to the second terminal according to the resource transmission request to be downloaded.
According to an embodiment, the first terminal may obtain a second SSID (Service Set Identifier) of a router of a local area network to which the second terminal accesses, and the first terminal may obtain a first SSID of a router of a local area network to which the first terminal accesses, and may compare the first SSID with the second SSID, and if the first SSID and the second SSID are consistent, it is determined that the local area network to which the second terminal accesses is the same as the local area network to which the first terminal accesses, that is, the two local area networks are in the same local area network. It can be understood that the determination process of whether the local area network accessed by the second terminal is the same as the local area network accessed by the first terminal may be performed by the second terminal, and the specific execution subject of the determination process is not limited in the embodiment of the present invention.
To sum up, in the data processing method according to the embodiment of the present invention, the first terminal downloads the resource to be downloaded corresponding to the second terminal, and specifically, the first terminal may determine the download link corresponding to the resource to be downloaded according to the resource identification information of the resource to be downloaded corresponding to the second terminal, and download the resource link according to the download link; the second terminal can make the first terminal download the resource to be downloaded by providing the resource identification information of the resource to be downloaded, so the network flow and the flow charge of the second terminal can be saved.
In addition, in the embodiment of the present invention, the resource identification information of the resource to be downloaded may be provided by the second terminal, and the download link corresponding to the resource to be downloaded is obtained and determined by the first terminal, so that the network advantages (for example, the advantages of unlimited traffic or sufficient charging) of the first terminal may be utilized, and thus the network traffic and the traffic cost of the first terminal may be saved.
Referring to fig. 4, a flowchart illustrating steps of an embodiment of a data processing method according to the present invention is shown, and applied to a second terminal, the method specifically includes the following steps:
step 401, receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded;
step 402, sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal, so that the first terminal downloads the resource to be downloaded.
In practical application, if the second terminal has a downloading requirement of the resource to be downloaded, the resource identification information of the resource to be downloaded corresponding to the second terminal can be provided through the instruction. For example, the user uses a browser on the second terminal to surf the internet, finds an interested resource X, and may trigger an instruction to send resource identification information corresponding to the resource X to the first terminal or the server. For example, the user may "download to the associated first terminal" via the browser on the second terminal, trigger an instruction, which may trigger a download instruction "let the first terminal download resource X", and pass the download instruction to the first terminal or the server.
In step 402, the resource identifier information may be directly sent to the first terminal, and in this case, the second terminal may first determine the first terminal associated with the second terminal according to the association between the first terminal and the second terminal. Alternatively, the resource identification information may be sent to the server, so that the server forwards the resource identification information to the first terminal, in this case, the server may first determine the first terminal associated with the second terminal according to the association between the first terminal and the second terminal.
In an optional embodiment of the invention, the first terminal and the second terminal may be associated; the association between the first terminal and the second terminal may include at least one of the following ways: the method comprises a user account association mode, a verification code association mode, a two-dimensional code association mode and a user setting association mode.
In an optional embodiment of the present invention, the server may establish a terminal association table, where the terminal association table is used to record an association between the first terminal and the second terminal, and send the terminal association table to the terminal, so that the second terminal determines, according to the terminal association table, the first terminal associated with the second terminal.
In another alternative embodiment of the invention, step 402 may present all first terminals associated with the second terminal for selection by the user. For example, all the first terminals associated with the second terminal may be presented in response to a triggering operation of a user on a control or menu of a browser "download to the associated first terminal" on the second terminal, and a download instruction of "letting the target first terminal download the resource X" may be triggered in response to a selection operation of the target first terminal by the user, and the download instruction may be transmitted to the first terminal or the server.
Under the condition of adopting a two-dimensional code or verification code association mode, the method can further comprise the following steps: acquiring verification information displayed on the first terminal; and sending the verification information and the second identifier of the second terminal to a server. For example, scanning a two-dimensional code displayed on a first terminal to obtain a corresponding scanning result; and sending the scanning result and the second identifier to a server so that the server establishes the association between the first terminal and the second terminal according to the scanning result and the second identifier. Specifically, reference may be made to the method shown in fig. 3, which is not described herein again.
In an optional embodiment of the invention, the method may further comprise: and if the accessed network meets the preset conditions, receiving the resource to be downloaded, which is downloaded by the second terminal, from the second terminal.
According to an embodiment, the preset condition may include: and the second terminal accesses the local area network. According to another embodiment, the preset conditions may include: the second terminal and the first terminal are accessed to the same local area network, that is, the second terminal and the first terminal are in the same local area network, and in this case, the transmission between the first terminal and the second terminal belongs to intranet transmission, so that the transmission speed of the resource to be downloaded obtained by downloading can be increased.
To sum up, the data processing method according to the embodiment of the present invention sends the resource identifier information of the resource to be downloaded to the first terminal associated with the second terminal, so that the first terminal downloads the resource to be downloaded, which can save the network traffic and traffic cost of the second terminal.
Referring to fig. 5, a flowchart illustrating steps of an embodiment of a data processing method according to the present invention is shown, and applied to a server, the method specifically includes the following steps:
step 501, receiving resource identification information of a resource to be downloaded from a second terminal;
step 502, sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal, so that the first terminal downloads the resource to be downloaded.
In an embodiment of the present invention, a two-dimensional code association manner may be used to establish an association between a first terminal and a second terminal, and accordingly, the method may further include: receiving an acquisition request sent by the first terminal and a first identifier of the first terminal; generating verification information according to the acquisition request, and recording the corresponding relation between the verification information and the first identifier; sending the verification information to the first terminal; receiving the verification information sent by the second terminal and a second identifier of the second terminal; and establishing the association between the first identifier and the second identifier according to the corresponding relation and the verification information. The method shown in fig. 3 may be specifically referred to, and details are not described herein.
Referring to fig. 6, a flowchart illustrating steps of an embodiment of a data processing method according to the present invention is shown, which may specifically include the following steps:
601, the second terminal receives an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded;
step 602, the second terminal sends the resource identification information of the resource to be downloaded to the server;
step 603, the server sends the resource identification information of the resource to be downloaded to the first terminal associated with the second terminal;
step 604, the first terminal determines a download link corresponding to the resource to be downloaded according to the resource identification information, and downloads the resource to be downloaded according to the download link;
step 605, the first terminal determines whether the local area network accessed by the first terminal is the same as the local area network accessed by the second terminal, and if so, the first terminal sends the resource to be downloaded obtained by downloading to the second terminal.
It should be noted that, in step 605, the first terminal determines whether the local area network accessed by the first terminal is the same as the local area network accessed by the first terminal, which is only an optional embodiment; in fact, the second terminal may determine whether the local area network accessed by the second terminal is the same as the local area network accessed by the first terminal, and if so, may actively establish a connection with the first terminal, and receive the resource to be downloaded obtained by downloading through the established connection.
In an application example of the invention, a user adopts a two-dimensional code association mode when at home to establish association between a browser A on a computer A at home and a browser B on a mobile phone B; when a user plays outside, the user suddenly sees the advertisement to say that the movie 'spy in a disc 5' is good, but the expense of the mobile network is too high, the movie cannot be downloaded and watched through a mobile phone directly, but the user waits for downloading after going home and waits for a long time to finish downloading, so that the waiting time for watching is longer. By applying the embodiment of the invention, a user can find the resource corresponding to the movie 'spy in disk 5' through the browser B on the mobile phone B and click 'download to the associated computer'; in response to the click operation, browser B may upload a download instruction (for downloading the movie "spy 5" to the associated computer) to the server, which determines browser a associated with browser B and sends the download instruction to browser a. In this case, if the browser a is in the activated state, the resource corresponding to the download instruction may be downloaded: movie "spy in disc 5"; if the browser A is in an un-started state, the download instruction can be obtained from the server after the browser A is started, and the resource corresponding to the download instruction is downloaded. When the user is tired of playing, the user can go home to directly watch the downloaded movie 'spy in disc 5'. For example, if the mobile phone a detects that the mobile phone a and the computer B are in the same lan, the mobile phone a may automatically establish a connection with the computer B, and receive a downloaded movie "spy in disc 5" through the established connection.
It should be noted that, for simplicity of description, the method embodiments are described as a series of movement combinations, but those skilled in the art should understand that the present invention is not limited by the described movement sequence, because some steps can be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no moving act is required as an embodiment of the invention.
Device embodiment
Referring to fig. 7, a block diagram of a data processing apparatus according to an embodiment of the present invention is shown, and is applied to a first terminal, where the apparatus may specifically include:
a resource identifier obtaining module 701, configured to obtain resource identifier information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal;
a download link determining module 702, configured to determine, according to the resource identification information, a download link corresponding to the resource to be downloaded; and
a downloading module 703, configured to download the resource to be downloaded according to the downloading link.
Optionally, the apparatus may further include:
and the resource sending module is used for sending the resource to be downloaded to the second terminal if the network accessed by the second terminal meets the preset condition.
Optionally, the preset condition may include: and the second terminal is accessed to a local area network, or the second terminal and the first terminal are accessed to the same local area network.
Optionally, the resource identifier obtaining module may include:
the first acquisition submodule is used for receiving resource identification information of the resource to be downloaded corresponding to the second terminal; or
And the second obtaining submodule is used for obtaining the resource identification information of the resource to be downloaded corresponding to the second terminal from the server.
Optionally, the second obtaining sub-module may include:
and the periodic acquisition unit is used for periodically acquiring the resource identification information of the resource to be downloaded corresponding to the second terminal from the server after the first terminal is started.
Optionally, the association manner between the first terminal and the second terminal may include at least one of the following manners:
the method comprises a user account association mode, a verification code association mode, a two-dimension code association mode and a user setting association mode.
Optionally, the apparatus may further include:
a request sending module, configured to send an acquisition request to a server, where the acquisition request carries a first identifier of the first terminal;
the verification information receiving module is used for receiving verification information generated by the server according to the acquisition request, wherein the verification information and the first identifier have a corresponding relation;
and the verification information display module is used for displaying the verification information.
Referring to fig. 8, a block diagram of another data processing apparatus according to another embodiment of the present invention is shown, and is applied to a second terminal, where the apparatus may specifically include:
an instruction receiving module 801, configured to receive an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded; and
a resource identifier sending module 802, configured to send the resource identifier information of the resource to be downloaded to a first terminal associated with the second terminal, so that the first terminal downloads the resource to be downloaded.
Optionally, the apparatus may further include:
and the resource receiving module is used for receiving the resource to be downloaded, which is downloaded by the second terminal, from the second terminal if the accessed network meets the preset conditions.
Optionally, the association between the first terminal and the second terminal may include at least one of the following ways:
the method comprises a user account association mode, a verification code association mode, a two-dimensional code association mode and a user setting association mode.
Optionally, the apparatus may further include:
the verification information acquisition module is used for acquiring the verification information displayed on the first terminal;
and the sending module is used for sending the verification information and the second identifier of the second terminal to a server.
Referring to fig. 9, a block diagram of another data processing apparatus according to another embodiment of the present invention is shown, and the apparatus is applied to a server, and may specifically include:
a resource identifier receiving module 901, configured to receive resource identifier information of a resource to be downloaded from a second terminal;
a resource identifier sending module 902, configured to send the resource identifier information of the resource to be downloaded to the first terminal associated with the second terminal, so that the first terminal downloads the resource to be downloaded.
Optionally, the apparatus may further include:
a request receiving module, configured to receive an acquisition request sent by the first terminal and a first identifier of the first terminal;
the request processing module is used for generating verification information according to the acquisition request and recording the corresponding relation between the verification information and the first identifier;
the two-dimension code sending module is used for sending the verification information to the first terminal;
a scanning result receiving module, configured to receive the verification information sent by the second terminal and a second identifier of the second terminal;
and the association establishing module is used for establishing the association between the first identifier and the second identifier according to the corresponding relation and the verification information.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
An embodiment of the present invention also provides an apparatus for data processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors include operational instructions for performing the operations included in one or more of the methods of fig. 1-6.
Fig. 10 is a block diagram illustrating an apparatus for data processing as a terminal according to an example embodiment. For example, the terminal 1100 can be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, and the like.
Referring to fig. 10, terminal 1100 can include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, and communications component 1116.
The processing component 1102 generally controls overall operation of the terminal 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute the downloaded instructions to perform all or part of the steps of the method described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
Memory 1104 is configured to store various types of data to support operation at terminal 1100. Examples of such data include download instructions, contact data, phonebook data, messages, pictures, videos, etc. for any application or method operating on terminal 1100. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 1106 provide power to the various components of terminal 1100. Power components 1106 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 1100.
The multimedia components 1108 include a screen providing an output interface between the terminal 1100 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide motion action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 1100 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) that is configured to receive external audio signals when the terminal 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 1114 includes one or more sensors for providing various aspects of state evaluation for terminal 1100. For example, sensor assembly 1114 can detect an open/closed state of terminal 1100, a relative positioning of components such as a display and a keypad of terminal 1100, sensor assembly 1114 can also detect a change in position of terminal 1100 or a component of terminal 1100, the presence or absence of user contact with terminal 1100, an orientation or acceleration/deceleration of terminal 1100, and a change in temperature of terminal 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate communication between the terminal 1100 and other devices in a wired or wireless manner. The terminal 1100 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium including download instructions, such as memory 1104, that are executable by processor 1120 of terminal 1100 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 11 is a schematic diagram of a server in some embodiments of the invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a sequence of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941 such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
The download instructions in the storage medium, when executed by a processor of an apparatus (terminal or server), enable the apparatus to perform a data processing method comprising: acquiring resource identification information of a resource to be downloaded corresponding to a second terminal; determining a downloading link corresponding to the resource to be downloaded according to the resource identification information; and downloading the resource to be downloaded according to the download link.
The download instructions in the storage medium, when executed by a processor of an apparatus (terminal or server), enable the apparatus to perform a data processing method comprising: receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded; and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
The download instructions in the storage medium, when executed by a processor of an apparatus (terminal or server), enable the apparatus to perform a data processing method comprising: receiving resource identification information of a resource to be downloaded from a second terminal; and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
The embodiment of the invention discloses A1, a data processing method, which is applied to a first terminal, and the method comprises the following steps:
acquiring resource identification information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal;
determining a download link corresponding to the resource to be downloaded according to the resource identification information;
and downloading the resource to be downloaded according to the download link.
A2, the method of A1, further comprising:
and if the network accessed by the second terminal meets the preset conditions, sending the resource to be downloaded to the second terminal.
A3, according to the method of A2, the preset conditions include: and the second terminal is accessed to a local area network, or the second terminal is accessed to the same local area network as the first terminal.
A4, according to the method of A1, A2 or A3, the acquiring resource identification information of the resource to be downloaded corresponding to the second terminal includes:
receiving resource identification information of a resource to be downloaded corresponding to a second terminal; or
And acquiring resource identification information of the resource to be downloaded corresponding to the second terminal from the server.
A5, according to the method in A4, the obtaining resource identification information of the resource to be downloaded corresponding to the second terminal from the server includes:
and after the first terminal is started, periodically acquiring resource identification information of the resource to be downloaded corresponding to the second terminal from a server.
A6, according to the method of A1, A2 or A3, the association manner between the first terminal and the second terminal includes at least one of the following manners:
the method comprises a user account association mode, a verification code association mode, a two-dimension code association mode and a user setting association mode.
A7, the method of A1 or A2 or A3, further comprising:
sending an acquisition request to a server, wherein the acquisition request carries a first identifier of the first terminal;
receiving verification information generated by a server according to the acquisition request, wherein the verification information has a corresponding relation with the first identifier;
and displaying the verification information.
The embodiment of the invention discloses B8 and a data processing method, which is applied to a second terminal and comprises the following steps:
receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded;
and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
B9, the method according to B8, further comprising:
and if the accessed network meets the preset conditions, receiving the resource to be downloaded, which is downloaded by the second terminal.
B10, according to the method of B8 or B9, the association mode between the first terminal and the second terminal comprises at least one of the following modes:
the method comprises a user account association mode, a verification code association mode, a two-dimensional code association mode and a user setting association mode.
B11, the method of B8 or B9, further comprising:
acquiring verification information displayed on the first terminal;
and sending the verification information and the second identifier of the second terminal to a server.
The embodiment of the invention discloses a C12 and a data processing method, which are applied to a server, wherein the method comprises the following steps:
receiving resource identification information of the resource to be downloaded from the second terminal;
and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
C13, the method of C12, the method further comprising:
receiving an acquisition request sent by the first terminal and a first identifier of the first terminal;
generating verification information according to the acquisition request, and recording the corresponding relation between the verification information and the first identifier;
sending the verification information to the first terminal;
receiving the verification information sent by the second terminal and a second identifier of the second terminal;
and establishing association between the first identifier and the second identifier according to the corresponding relation and the verification information.
The embodiment of the invention discloses a D14 and a data processing device, which is applied to a first terminal, wherein the device comprises:
the resource identification acquisition module is used for acquiring resource identification information of the resource to be downloaded corresponding to the second terminal; wherein the second terminal is associated with the first terminal;
a download link determining module, configured to determine, according to the resource identification information, a download link corresponding to the resource to be downloaded; and
and the downloading module is used for downloading the resources to be downloaded according to the downloading link.
The embodiment of the invention discloses E15 and a data processing device, which is applied to a second terminal, wherein the device comprises:
the instruction receiving module is used for receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded; and
and the resource identifier sending module is used for sending the resource identifier information of the resource to be downloaded to the first terminal associated with the second terminal so as to enable the first terminal to download the resource to be downloaded.
The embodiment of the invention discloses F16 and a data processing device, which is applied to a server, wherein the device comprises:
the resource identifier receiving module is used for receiving resource identifier information of the resource to be downloaded from the second terminal;
and the resource identifier sending module is used for sending the resource identifier information of the resource to be downloaded to the first terminal associated with the second terminal so as to enable the first terminal to download the resource to be downloaded.
The embodiment of the invention discloses G17, a device for data processing, which comprises a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by the one or more processors and comprise operating instructions for:
acquiring resource identification information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal;
determining a download link corresponding to the resource to be downloaded according to the resource identification information;
and downloading the resource to be downloaded according to the download link.
The embodiment of the invention discloses a H18 machine readable medium, which stores download instructions, and when the download instructions are executed by one or more processors, the device executes the data processing method as A1 to A7.
The embodiment of the invention discloses I19, and a device for data processing, which comprises a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by one or more processors and comprise operation instructions for:
receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded;
and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
An embodiment of the invention discloses J20, a machine-readable medium having stored thereon downloaded instructions, which when executed by one or more processors, cause an apparatus to perform a data processing method as described in one or more of B8 to B11.
The embodiment of the invention discloses a K21, a device for data processing, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by the one or more processors and comprise operation instructions for:
receiving resource identification information of a resource to be downloaded from a second terminal;
and sending the resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded.
The embodiment of the invention discloses an L22 and a machine-readable medium, wherein the machine-readable medium is stored with downloading instructions, and when the downloading instructions are executed by one or more processors, the device is enabled to execute the data processing method of C12 or C13.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The data processing method, the data processing apparatus, and the machine-readable medium provided by the present invention are described in detail above, and specific examples are applied herein to explain the principles and embodiments of the present invention, and the descriptions of the above examples are only used to help understand the method and the core idea of the present invention; meanwhile, for a person 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 (30)

1. A data processing method, applied to a first terminal, the method comprising:
acquiring resource identification information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal; the first terminal is a fixed terminal, and the second terminal is a mobile terminal; after the first terminal is started, periodically acquiring resource identification information of a resource to be downloaded corresponding to the second terminal from a server; the fixed terminal is a desktop computer;
determining a downloading link corresponding to the resource to be downloaded according to the resource identification information;
downloading the resource to be downloaded according to the download link;
the method further comprises the following steps:
and if the network accessed by the second terminal meets the preset condition, sending the resource to be downloaded to the second terminal.
2. The method of claim 1, wherein the preset conditions comprise: and the second terminal is accessed to a local area network, or the second terminal is accessed to the same local area network as the first terminal.
3. The method according to claim 1 or 2, wherein the association between the first terminal and the second terminal comprises at least one of:
the method comprises a user account association mode, a verification code association mode, a two-dimension code association mode and a user setting association mode.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
sending an acquisition request to a server, wherein the acquisition request carries a first identifier of the first terminal;
receiving verification information generated by a server according to the acquisition request, wherein the verification information has a corresponding relation with the first identifier;
and displaying the verification information.
5. A data processing method, applied to a second terminal, the method comprising:
receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded;
sending resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded; the second terminal sends the resource identification information to the server so that the server forwards the resource identification information to the first terminal; the first terminal is a fixed terminal, and the second terminal is a mobile terminal; after the first terminal is started, periodically acquiring resource identification information of a resource to be downloaded corresponding to the second terminal from a server; the fixed terminal is a desktop computer;
the method further comprises the following steps:
and if the accessed network meets the preset conditions, receiving the resource to be downloaded, which is downloaded by the second terminal.
6. The method of claim 5,
the association mode between the first terminal and the second terminal comprises at least one of the following modes:
the method comprises a user account association mode, a verification code association mode, a two-dimensional code association mode and a user setting association mode.
7. The method of claim 5, further comprising:
acquiring verification information displayed on the first terminal;
and sending the verification information and the second identifier of the second terminal to a server.
8. A data processing method is applied to a server, and the method comprises the following steps:
receiving resource identification information of the resource to be downloaded from the second terminal;
sending resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded; the first terminal is a fixed terminal, and the second terminal is a mobile terminal; after the first terminal is started, periodically acquiring resource identification information of a resource to be downloaded corresponding to the second terminal from a server; the fixed terminal is a desktop computer; and the first terminal sends the resource to be downloaded to the second terminal under the condition that the network accessed by the second terminal meets the preset condition.
9. The method of claim 8, further comprising:
receiving an acquisition request sent by the first terminal and a first identifier of the first terminal;
generating verification information according to the acquisition request, and recording the corresponding relation between the verification information and the first identifier;
sending the verification information to the first terminal;
receiving the verification information sent by the second terminal and a second identifier of the second terminal;
and establishing association between the first identifier and the second identifier according to the corresponding relation and the verification information.
10. A data processing apparatus, applied to a first terminal, the apparatus comprising:
the resource identifier acquisition module is used for acquiring resource identifier information of the resource to be downloaded corresponding to the second terminal; wherein the second terminal is associated with the first terminal; the first terminal is a fixed terminal, and the second terminal is a mobile terminal; after the first terminal is started, resource identification information of the resource to be downloaded corresponding to the second terminal is periodically acquired from a server; the fixed terminal is a desktop computer;
a download link determining module, configured to determine, according to the resource identification information, a download link corresponding to the resource to be downloaded; and
the downloading module is used for downloading the resource to be downloaded according to the downloading link;
the device further comprises:
and the resource sending module is used for sending the resource to be downloaded to the second terminal if the network accessed by the second terminal meets the preset condition.
11. The apparatus of claim 10, wherein the preset conditions comprise: and the second terminal is accessed to a local area network, or the second terminal and the first terminal are accessed to the same local area network.
12. The apparatus according to claim 10 or 11, wherein the association between the first terminal and the second terminal comprises at least one of:
the method comprises a user account association mode, a verification code association mode, a two-dimension code association mode and a user setting association mode.
13. The apparatus of claim 10 or 11, further comprising:
a request sending module, configured to send an acquisition request to a server, where the acquisition request carries a first identifier of the first terminal;
the verification information receiving module is used for receiving verification information generated by the server according to the acquisition request, wherein the verification information and the first identifier have a corresponding relation;
and the verification information display module is used for displaying the verification information.
14. A data processing apparatus, applied to a second terminal, the apparatus comprising:
the instruction receiving module is used for receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded; and
a resource identifier sending module, configured to send resource identifier information of the resource to be downloaded to a first terminal associated with the second terminal, so that the first terminal downloads the resource to be downloaded; the second terminal sends the resource identification information to the server so that the server forwards the resource identification information to the first terminal; the first terminal is a fixed terminal, and the second terminal is a mobile terminal; after the first terminal is started, resource identification information of the resource to be downloaded corresponding to the second terminal is periodically acquired from a server; the fixed terminal is a desktop computer;
the device further comprises:
and the resource receiving module is used for receiving the resource to be downloaded of the second terminal from the second terminal if the accessed network meets the preset condition.
15. The apparatus of claim 14, wherein the association between the first terminal and the second terminal comprises at least one of:
the method comprises a user account association mode, a verification code association mode, a two-dimensional code association mode and a user setting association mode.
16. The apparatus of claim 14, further comprising:
the verification information acquisition module is used for acquiring the verification information displayed on the first terminal;
and the sending module is used for sending the verification information and the second identifier of the second terminal to a server.
17. A data processing apparatus, applied to a server, the apparatus comprising:
the resource identifier receiving module is used for receiving resource identifier information of the resource to be downloaded from the second terminal;
a resource identifier sending module, configured to send resource identifier information of the resource to be downloaded to a first terminal associated with the second terminal, so that the first terminal downloads the resource to be downloaded; the first terminal is a fixed terminal, and the second terminal is a mobile terminal; after the first terminal is started, periodically acquiring resource identification information of a resource to be downloaded corresponding to the second terminal from a server, and sending the resource to be downloaded to the second terminal under the condition that a network accessed by the second terminal meets preset conditions; the fixed terminal is a desktop computer.
18. The apparatus of claim 17, further comprising:
a request receiving module, configured to receive an acquisition request sent by the first terminal and a first identifier of the first terminal;
the request processing module is used for generating verification information according to the acquisition request and recording the corresponding relation between the verification information and the first identifier;
the two-dimension code sending module is used for sending the verification information to the first terminal;
a scanning result receiving module, configured to receive the verification information sent by the second terminal and a second identifier of the second terminal;
and the association establishing module is used for establishing the association between the first identifier and the second identifier according to the corresponding relation and the verification information.
19. An apparatus for data processing, applied to a first terminal, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs configured to be executed by one or more processors include operating instructions for:
acquiring resource identification information of a resource to be downloaded corresponding to a second terminal; wherein the second terminal is associated with the first terminal; the first terminal is a fixed terminal, and the second terminal is a mobile terminal; after the first terminal is started, periodically acquiring resource identification information of a resource to be downloaded corresponding to the second terminal from a server; the fixed terminal is a desktop computer;
determining a downloading link corresponding to the resource to be downloaded according to the resource identification information;
downloading the resource to be downloaded according to the download link;
and if the network accessed by the second terminal meets the preset conditions, sending the resource to be downloaded to the second terminal.
20. The apparatus of claim 19, wherein the preset conditions comprise: and the second terminal is accessed to a local area network, or the second terminal is accessed to the same local area network as the first terminal.
21. The apparatus of claim 19 or 20, wherein the association between the first terminal and the second terminal comprises at least one of:
the method comprises a user account association mode, a verification code association mode, a two-dimensional code association mode and a user setting association mode.
22. The apparatus of claim 19 or 20, wherein the apparatus is also configured to execute the one or more programs by one or more processors includes operational instructions for:
sending an acquisition request to a server, wherein the acquisition request carries a first identifier of the first terminal;
receiving verification information generated by a server according to the acquisition request, wherein the verification information has a corresponding relation with the first identifier;
and displaying the verification information.
23. A machine readable medium having stored thereon downloaded instructions, which when executed by one or more processors, cause an apparatus to perform a data processing method as claimed in one or more of claims 1 to 4.
24. An apparatus for data processing, applied to a second terminal, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs configured to be executed by the one or more processors include operating instructions for:
receiving an instruction triggered by a user; the instruction corresponds to resource identification information of a resource to be downloaded;
sending resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded; the second terminal sends the resource identification information to the server so that the server forwards the resource identification information to the first terminal; the first terminal is a fixed terminal, and the second terminal is a mobile terminal; after the first terminal is started, periodically acquiring resource identification information of a resource to be downloaded corresponding to the second terminal from a server; the fixed terminal is a desktop computer;
and if the accessed network meets the preset conditions, receiving the resource to be downloaded and obtained by the second terminal.
25. The apparatus of claim 24, wherein the association between the first terminal and the second terminal comprises at least one of:
the method comprises a user account association mode, a verification code association mode, a two-dimensional code association mode and a user setting association mode.
26. The apparatus of claim 24, wherein the apparatus is also configured to execute the one or more programs by one or more processors includes operational instructions for:
acquiring verification information displayed on the first terminal;
and sending the verification information and the second identifier of the second terminal to a server.
27. A machine readable medium having stored thereon downloaded instructions, which when executed by one or more processors, cause an apparatus to perform a data processing method as claimed in one or more of claims 5 to 7.
28. An apparatus for data processing, applied to a server, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors include operating instructions for:
receiving resource identification information of a resource to be downloaded from a second terminal;
sending resource identification information of the resource to be downloaded to a first terminal associated with the second terminal so that the first terminal downloads the resource to be downloaded; the first terminal is a fixed terminal, and the second terminal is a mobile terminal; after the first terminal is started, periodically acquiring resource identification information of a resource to be downloaded corresponding to the second terminal from a server; the fixed terminal is a desktop computer; and the first terminal sends the resource to be downloaded to the second terminal under the condition that the network accessed by the second terminal meets the preset condition.
29. The device of claim 28, wherein the device is also configured to execute the one or more programs by one or more processors includes operating instructions for:
receiving an acquisition request sent by the first terminal and a first identifier of the first terminal;
generating verification information according to the acquisition request, and recording the corresponding relation between the verification information and the first identifier;
sending the verification information to the first terminal;
receiving the verification information sent by the second terminal and a second identifier of the second terminal;
and establishing the association between the first identifier and the second identifier according to the corresponding relation and the verification information.
30. A machine readable medium having stored thereon downloaded instructions, which when executed by one or more processors, cause an apparatus to perform a data processing method as claimed in one or more of claims 8 to 9.
CN201810215675.6A 2018-03-15 2018-03-15 Data processing method and device for data processing Active CN110278228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810215675.6A CN110278228B (en) 2018-03-15 2018-03-15 Data processing method and device for data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810215675.6A CN110278228B (en) 2018-03-15 2018-03-15 Data processing method and device for data processing

Publications (2)

Publication Number Publication Date
CN110278228A CN110278228A (en) 2019-09-24
CN110278228B true CN110278228B (en) 2023-04-18

Family

ID=67957753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810215675.6A Active CN110278228B (en) 2018-03-15 2018-03-15 Data processing method and device for data processing

Country Status (1)

Country Link
CN (1) CN110278228B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132107A (en) * 2019-12-23 2020-05-08 维沃移动通信有限公司 Data acquisition method and first electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701891A (en) * 2013-12-20 2014-04-02 贝壳网际(北京)安全技术有限公司 Cross-terminal downloading method, system, server, mobile terminal and fixed terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979505A (en) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 Air download method and device
CN105610978A (en) * 2016-02-23 2016-05-25 腾讯科技(深圳)有限公司 Resource obtaining method, terminal and vehicle terminal
CN105760203A (en) * 2016-03-14 2016-07-13 广东欧珀移动通信有限公司 Software upgrading method and terminal equipment
US10264044B2 (en) * 2016-08-29 2019-04-16 Comcast Cable Communications, Llc Apparatus and method for sending content as chunks of data to a user device via a network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701891A (en) * 2013-12-20 2014-04-02 贝壳网际(北京)安全技术有限公司 Cross-terminal downloading method, system, server, mobile terminal and fixed terminal

Also Published As

Publication number Publication date
CN110278228A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN106603667B (en) Screen information sharing method and device
EP2975821B1 (en) Network connection method and apparatus
EP3561691B1 (en) Method and apparatus for displaying webpage content
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
JP6177444B2 (en) Method and apparatus for transmitting images
CN105183513A (en) Application recommendation method and apparatus
JP6149163B2 (en) WI-FI network connection method, apparatus, program, and recording medium
CN108833585B (en) Information interaction method and device and storage medium
CN106254467A (en) Sharing files method and device
US9723486B2 (en) Method and apparatus for accessing network
RU2673560C1 (en) Method and system for displaying multimedia information, standardized server and direct broadcast terminal
US11122109B2 (en) Method for sharing information, electronic device and non-transitory storage medium
CN107959757B (en) User information processing method and device, APP server and terminal equipment
CN105704655A (en) Media data sharing method and media data sharing device between terminals
CN110737844B (en) Data recommendation method and device, terminal equipment and storage medium
CN108280342B (en) Application synchronization method and device for application synchronization
CN107949037B (en) Network access method, device and system, and storage medium
CN110278228B (en) Data processing method and device for data processing
CN110213062B (en) Method and device for processing message
CN109831538A (en) A kind of message treatment method, device, server, terminal and medium
JP6441385B2 (en) Information input method, apparatus, program, and recording medium
CN105389152A (en) Picture projecting method and apparatus and terminal device
CN109962841B (en) Information interaction method and device, server, electronic equipment and storage medium
CN112769677A (en) Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN106936885B (en) Favorite processing method and system and server

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