CN105763650A - Method, system, terminal device and server for off-line file transmission - Google Patents

Method, system, terminal device and server for off-line file transmission Download PDF

Info

Publication number
CN105763650A
CN105763650A CN201610279801.5A CN201610279801A CN105763650A CN 105763650 A CN105763650 A CN 105763650A CN 201610279801 A CN201610279801 A CN 201610279801A CN 105763650 A CN105763650 A CN 105763650A
Authority
CN
China
Prior art keywords
server
file
terminal unit
terminal equipment
confirmation
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.)
Granted
Application number
CN201610279801.5A
Other languages
Chinese (zh)
Other versions
CN105763650B (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610279801.5A priority Critical patent/CN105763650B/en
Priority claimed from CN201310612011.0A external-priority patent/CN103634392B/en
Publication of CN105763650A publication Critical patent/CN105763650A/en
Application granted granted Critical
Publication of CN105763650B publication Critical patent/CN105763650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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]

Abstract

The invention discloses a method, system, terminal device and server for off-line file transmission. The method includes the following steps: when a first terminal device does not detect access of a second terminal device, the first terminal device side sends a target file resource to a first server through a suspension window; the firsts terminal device side receives a downloading address of the target file resource returned by the first server, wherein the downloading address of the target file resource is generated by the first server according to the target file resource; and the first terminal device side builds an information packet according to the downloading address of the target file resource and sends the information packet to a second server. The method provided by the invention can reduce the limitation on file resource transmission, thereby improving user experience.

Description

A kind of method of offline file transmission, system, terminal unit and server
Present patent application is the applying date, and to be on November 26th, 2013, application number be 201310612011.0, name is called the divisional application of Chinese invention patent application of " a kind of method of offline file transmission, system, terminal unit and server ".
Technical field
The present invention relates to file transfer technology field, be specifically related to the system of a kind of method of offline file transmission, a kind of terminal unit for offline file transmission, a kind of offline file transmission and a kind of server for offline file transmission.
Background technology
Along with the fast development of mobile communication technology, the mobile equipment such as mobile phone plays more and more important role in being widely used in study, amusement, work etc. in daily life.
Owing to the function of mobile equipment is more and more various, therefore it is accomplished by being connected with computing equipment, carries out data transmission.Such as, the office document in computing equipment is transferred in mobile equipment, conveniently checks at any time;And for example, the photo etc. in mobile equipment is transferred in computing equipment, carries out the operation such as image procossing, preservation.
Generally, mobile equipment can adopt data wire and computing equipment to be attached, at this point it is possible to regard mobile equipment as a movable storage device on computing equipment, mobile equipment and computing equipment can be made to realize data transmission thereby through data wire.But moved the connection of equipment and computing equipment by the mode of data wire, it is necessary to the moment carries data wire, troublesome poeration, and life-time service and is easily caused USB interface abrasion.
Therefore, move the mode carrying out wireless connections between equipment and computing equipment to arise at the historic moment.For wireless connections, mainly there is situations below:
1, there is wireless routing
This mode is that mobile equipment links route by wifi, and computing equipment links route by wifi or netting twine;Open ftp service with softwares such as websharing, virtual data line, file great masters on the mobile apparatus, after computing equipment opens ftp with browser, carry out file transmission.
2, not having wireless routing, computing equipment has wireless network card
2.1 wireless network cards support mywifi technology
Computing equipment is set to wifi hotspot (manual setting under xp, arrange by hand or use connectify software under win7), and mobile equipment links computing equipment by wifi;Open ftp service with softwares such as websharing, virtual data line, file great masters on the mobile apparatus, computing equipment opens the laggard style of writing part transmission of ftp with browser.
2.2 wireless network cards do not support mywifi technology
Mobile equipment wifi hotspot is opened, and computing equipment links mobile equipment by wifi;Open ftp service with softwares such as websharing, virtual data line, file great masters on the mobile apparatus, computing equipment opens the laggard style of writing part transmission of ftp with browser.
But, when wireless connections, when needing computing equipment to be simultaneously in presence with mobile equipment, the transmission of file could be carried out between the two parties, if the recipient of file is not online, just cannot successfully sending the file to recipient, thus bringing inconvenience to user, reducing Consumer's Experience.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide a kind of a kind of method of offline file transmission and the system of corresponding a kind of offline file transmission, a kind of terminal unit for offline file transmission, a kind of server for offline file transmission overcoming the problems referred to above or solving the problems referred to above at least in part.
According to one aspect of the present invention, it is provided that a kind of method of offline file transmission, including:
When first terminal equipment is not detected by the access of the second terminal unit, file destination resource is sent to first server by suspension window at first terminal equipment side;
Receive the download address of the described file destination resource that described first server returns at first terminal equipment side, the download address of described file destination resource is that described first server generates according to described file destination resource;
Information bag transmission is built in second server according to the download address of described file destination resource at first terminal equipment side.
Alternatively, by suspension window file destination resource sent to before the step in first server, also including at first terminal equipment side described:
The assigned operation that detection user initiates for suspension window, described assigned operation includes user and file destination resource is drawn the operation of suspension window, and/or, user clicks the selected button of the file on suspension window, selects the operation in the path of file destination resource in the file path selection window that first terminal equipment ejects;
When described assigned operation being detected, send reminder message and ask the user whether to need off-line to send file destination resource;
Described file destination resource transmission to the step in first server by suspension window at first terminal equipment side is included:
After receiving the off-line confirmation instruction that user sends, described file destination resource being sent to first server by suspension window, described off-line confirms that instruction is the instruction that the confirmation off-line that user indicates sends described file destination resource.
Alternatively, described file destination resource transmission to the step in first server by suspension window at first terminal equipment side is included:
Ask for the assigned operation generation file transmission of suspension window according to described user at first terminal equipment side;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent to first server according to described file response message at first terminal equipment side.
Alternatively, described described file destination resource transmission to the step in first server according to described file response message at first terminal equipment side includes:
It is encrypted by described file destination resource according to described file response message at first terminal equipment side;
File destination resource after described encryption is sent to first server.
Alternatively, described file destination resource is the file resource that first terminal side obtains according to the selected instruction of file resource that user sends;The selected instruction of described file resource is the download instruction to certain file resource that user selects in the file resource download list that first terminal equipment side is shown, or, the selected instruction of described file resource is the selected instruction to certain file resource that user selects in the file resource that first terminal equipment side stores.
Alternatively, described information bag is built according to the download address of described file destination resource and transmission includes to the step in second server at first terminal equipment side:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and the information bag of described file attribute information is built at first terminal equipment side;
At first terminal equipment side by described packets to second server.
Alternatively, described method also includes:
The validation of information instruction that the 3rd server sends is received at first terminal equipment side;
At first terminal equipment side, described validation of information instruction is showed user;
Receive the confirmation that user selects, and described confirmation is sent to second server.
Alternatively, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates.
Alternatively, described method also includes:
Generating file transmission list at first terminal equipment side, described file transmission list is carry out, by described suspension window, the list that the file destination resource of off-line transmission is organized into.
Alternatively, in described file transmission list for each file destination resource have file send status information, described file send status information include the state that is successfully transmitted, send state, etc. state to be sent and send status of fail.
Alternatively, the file attribute information of described file destination resource also includes the mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource.
Alternatively, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
Alternatively, described first server is file server, and described second server is application server, and described 3rd server is push server.
According to a further aspect in the invention, it is provided that a kind of method of offline file transmission, including:
The information bag that first terminal equipment side sends is received at second server side joint;
Described second server obtains the mark of described first terminal equipment;
There is the mark of the second terminal unit of incidence relation in the mark searched with described first terminal equipment in the incidence relation list preset of second server side;
Generate file acquisition message in second server side according to the mark of described second terminal unit to send to the 3rd server.
Alternatively, before the described mark according to described second terminal unit generates the step that file acquisition message sends to the 3rd server, also include:
Validation of information instruction is generated in second server side;
In second server side, described validation of information instruction is sent to the 3rd server, the 3rd server send to first terminal equipment side;
The confirmation that first terminal equipment returns is received at second server side joint.
Alternatively, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates;
Described method also includes:
If described confirmation is the first confirmation, then performs the described mark generation file acquisition message in second server side according to described second terminal unit and send the step to the 3rd server;
If described confirmation is the second confirmation, then reacquire the mark of the second terminal unit in second server side.
According to a further aspect in the invention, it is provided that a kind of method of offline file transmission, including:
Receiving, at the 3rd server side joint, the file acquisition message that second server sends, described file acquisition message includes the mark of the second terminal unit;
Detect in the 3rd server side when the second terminal unit corresponding to the mark of described second terminal unit is online, described file acquisition message is sent to described second terminal equipment side.
Alternatively, the step that the second terminal unit of the mark correspondence of described second terminal unit of described detection is online includes:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether there is the terminal unit identical with the mark of described second terminal unit;
If so, then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
Alternatively, described method also includes:
The validation of information instruction that second server sends is received at the 3rd server side joint;In the 3rd server side, described validation of information instruction is sent to first terminal equipment.
According to a further aspect in the invention, it is provided that a kind of method of offline file transmission, including:
The file acquisition message that the 3rd server sends is received in the second terminal equipment side;
Obtaining the information bag of correspondence in the second terminal equipment side from second server according to described file acquisition message, described information bag includes the download address of file destination resource;
From first server, the file destination resource of correspondence is downloaded according to the download address of described file destination resource in the second terminal equipment side.
Alternatively, described information bag includes file attribute information, described file attribute information includes the type of file destination resource, and the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described method also includes:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, then described file destination resource is stored in the second terminal equipment side;
If the type of described file destination resource is software and/or game, then described file destination resource is directly installed.
Alternatively, before the described step receiving the file acquisition message that the 3rd server sends in the second terminal equipment side, also include:
Monitoring network state in the second terminal equipment side, described network state includes current network and can use;
If current network can be used, then connect current network in the second terminal equipment side;
Described 3rd server is connected in the second terminal equipment side.
Alternatively, if described second terminal unit is mobile equipment, the described step in the second terminal equipment side monitoring network state includes:
Service ConnctionChangeReceiver is received in described second terminal equipment side registered network state change;
Adopt the change of described network state to receive service ConnctionChangeReceiver in the second terminal equipment side and receive the system service SystemService broadcast CONNECTIVITY_CHANGE sent;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network can be used;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network is unavailable.
Alternatively, if described second terminal unit is computing equipment, the described step in the second terminal equipment side monitoring network state includes:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
According to a further aspect in the invention, it is provided that a kind of terminal unit for offline file transmission, including:
File destination resource sending module, is suitable to when first terminal equipment is not detected by the access of the second terminal unit, file destination resource is sent to first server by suspension window at first terminal equipment side;
Download address receiver module, is suitable to receive the download address of the described file destination resource that described first server returns at first terminal equipment side, and the download address of described file destination resource is that described first server generates according to described file destination resource;
Download address sending module, is suitable to build information bag transmission in second server at first terminal equipment side according to the download address of described file destination resource.
Alternatively, described terminal unit also includes:
Detection module, be suitable to file destination resource be sent by suspension window to before in first server at first terminal equipment side described, the assigned operation that detection user initiates for suspension window, described assigned operation includes user and file destination resource is drawn the operation of suspension window, and/or, user clicks the selected button of the file on suspension window, selects the operation in the path of file destination resource in the file path selection window that first terminal equipment ejects;
Reminder message sending module, is suitable to when described assigned operation being detected, sends reminder message and asks the user whether to need off-line to send file destination resource;
Described file destination resource sending module is further adapted for:
After receiving the off-line confirmation instruction that user sends, described file destination resource being sent to first server by suspension window, described off-line confirms that instruction is the instruction that the confirmation off-line that user indicates sends described file destination resource.
Alternatively, described file destination resource sending module is further adapted for:
Ask for the assigned operation generation file transmission of suspension window according to described user at first terminal equipment side;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent to first server according to described file response message at first terminal equipment side.
Alternatively, described file destination resource sending module is further adapted for:
It is encrypted by described file destination resource according to described file response message at first terminal equipment side;
File destination resource after described encryption is sent to first server.
Alternatively, described file destination resource is the file resource that first terminal side obtains according to the selected instruction of file resource that user sends;The selected instruction of described file resource is the download instruction to certain file resource that user selects in the file resource download list that first terminal equipment side is shown, or, the selected instruction of described file resource is the selected instruction to certain file resource that user selects in the file resource that first terminal equipment side stores.
Alternatively, described download address sending module is further adapted for:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and the information bag of described file attribute information is built at first terminal equipment side;
At first terminal equipment side by described packets to second server.
Alternatively, described terminal unit also includes:
Validation of information instruction sending module, is suitable to receive, at first terminal equipment side, the validation of information instruction that the 3rd server sends;
Display module, is suitable to, at first terminal equipment side, described validation of information instruction is showed user;
Confirmation receiver module, is suitable to receive the confirmation that user selects, and described confirmation is sent to second server.
Alternatively, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates.
Alternatively, described terminal unit also includes:
File transmission list generation module, is suitable to generate file transmission list at first terminal equipment side, and described file transmission list is carry out, by described suspension window, the list that the file destination resource of off-line transmission is organized into.
Alternatively, in described file transmission list for each file destination resource have file send status information, described file send status information include the state that is successfully transmitted, send state, etc. state to be sent and send status of fail.
Alternatively, the file attribute information of described file destination resource also includes the mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource.
Alternatively, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
Alternatively, described first server is file server, and described second server is application server, and described 3rd server is push server.
According to a further aspect in the invention, it is provided that a kind of server for offline file transmission, including:
Information bag receiver module, is suitable to receive, at second server side joint, the information bag that first terminal equipment side sends;
Device identification acquisition module, is suitable to described second server and obtains the mark of described first terminal equipment;
Module is searched in device identification, is suitable to the mark searched with described first terminal equipment in the incidence relation list preset of second server side and there is the mark of the second terminal unit of incidence relation;
First file acquisition message transmission module, is suitable to generate file acquisition message in second server side according to the mark of described second terminal unit and sends to the 3rd server.
Alternatively, described server also includes:
Validation of information directive generation module, is suitable to, before the described mark generation file acquisition message according to described second terminal unit sends to the 3rd server, generate validation of information instruction in second server side;
Validation of information instruction sending module, is suitable to described validation of information instruction be sent to the 3rd server in second server side, the 3rd server sends to first terminal equipment side;
Confirm message reception module, be suitable to receive, at second server side joint, the confirmation that first terminal equipment returns.
Alternatively, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates;
Described server also includes:
Calling module, is suitable to, when described confirmation is the first confirmation, call the first file acquisition message transmission module;
Identifier acquisition module, is suitable to, when described confirmation is the second confirmation, reacquire the mark of the second terminal unit in second server side.
According to a further aspect in the invention, it is provided that a kind of server for offline file transmission, including:
First file acquisition message reception module, is suitable to receive, at the 3rd server side joint, the file acquisition message that second server sends, and described file acquisition message includes the mark of the second terminal unit;
Second file acquisition message transmission module, is suitable to detect in the 3rd server side when the second terminal unit corresponding to the mark of described second terminal unit is online, sends described file acquisition message to described second terminal equipment side.
Alternatively, described second file acquisition message transmission module is further adapted for:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether there is the terminal unit identical with the mark of described second terminal unit;
If so, then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
Alternatively, described server also includes:
Validation of information command reception module, is suitable to receive, at the 3rd server side joint, the validation of information instruction that second server sends;
Validation of information instruction sending module, is suitable to described validation of information instruction be sent to first terminal equipment in the 3rd server side.
According to a further aspect in the invention, it is provided that a kind of terminal unit for offline file transmission, including:
Second file acquisition message reception module, is suitable to receive, in the second terminal equipment side, the file acquisition message that the 3rd server sends;
Information bag acquisition module, is suitable to obtain the information bag of correspondence in the second terminal equipment side from second server according to described file acquisition message, and described information bag includes the download address of file destination resource;
File destination resource downloading module, is suitable to download the file destination resource of correspondence in the second terminal equipment side from first server according to the download address of described file destination resource.
Alternatively, described information bag includes file attribute information, described file attribute information includes the type of file destination resource, and the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described terminal unit also includes:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, then described file destination resource is stored in the second terminal equipment side;
If the type of described file destination resource is software and/or game, then described file destination resource is directly installed.
Alternatively, described terminal unit also includes:
Monitoring module, be suitable to described before the second terminal equipment side receives the file acquisition message that the 3rd server sends, monitor network state in the second terminal equipment side, described network state includes current network and can use;
First link block, can use if being suitable to current network, then connect current network in the second terminal equipment side;
Second link block, is suitable to connect described 3rd server in the second terminal equipment side.
Alternatively, if described second terminal unit is mobile equipment, described monitoring module is further adapted for:
Service ConnctionChangeReceiver is received in described second terminal equipment side registered network state change;
Adopt the change of described network state to receive service ConnctionChangeReceiver in the second terminal equipment side and receive the system service SystemService broadcast CONNECTIVITY_CHANGE sent;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network can be used;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network is unavailable.
Alternatively, if described second terminal unit is computing equipment, the described step in the second terminal equipment side monitoring network state includes:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
According to a further aspect in the invention, it is provided that the system of a kind of offline file transmission, including: first terminal equipment, file server, application server, push server, the second terminal unit, wherein,
Described first terminal equipment, be suitable to when first terminal equipment is not detected by the access of the second terminal unit, by suspension window, file destination resource to be sent is sent to file server, and receive the download address of the described file destination resource that described file server returns, and, the download address of described file destination resource is built packets to application server;
Described file server, is suitable to receive described file destination resource, generates the download address of corresponding file destination resource according to described file destination resource and sends to first terminal equipment;
Described application server, be suitable to receive described information bag, the mark of the second terminal unit of incidence relation is there is according to mark mark searched with described first terminal equipment in default incidence relation list of the first terminal equipment carried in described information bag, and, generate file acquisition message according to the mark of described second terminal unit and send to push server;
Described push server, is suitable to, when the second terminal unit that the mark described second terminal unit being detected is corresponding is online, send described file acquisition message to described second terminal equipment side;
Described second terminal unit, is suitable to obtain from application server the information bag of correspondence according to described file acquisition message, and, the download address of the file destination resource carried according to described information bag downloads the file destination resource of correspondence from file server.
Alternatively, described first terminal equipment is further adapted for:
Ask for the assigned operation generation file transmission of suspension window according to user;
Described file is sent request send to file server;
Receive the file response message that described file server returns;
According to described file response message, described file destination resource is sent to file server.
Alternatively, the file attribute information of described file destination resource also includes the mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource.
Alternatively, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
Alternatively, described second terminal unit is further adapted for:
Type in described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book time, described file destination resource is stored in the second terminal equipment side;
When type in described file destination resource is software and/or game, described file destination resource is directly installed.
Compared with background technology, there is advantages that
In the present invention, first terminal equipment and the second terminal unit are when carrying out the transmission of file resource, line states can not simultaneously be in, namely first file destination resource is uploaded to background server during first terminal equipment on-line, now the second terminal unit is not necessarily required to online, in background server, downloading described file destination resource when the second terminal unit is online again, thus decreasing the restriction of file resource transmission, improving Consumer's Experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit those of ordinary skill in the art be will be clear from understanding.Accompanying drawing is only for illustrating the purpose of preferred implementation, and is not considered as limitation of the present invention.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 illustrates the flow chart of steps of the embodiment of the method one of a kind of offline file transmission of the present invention;
Fig. 2 illustrates the flow chart of steps of the embodiment of the method two of a kind of offline file transmission of the present invention;
Fig. 3 illustrates the flow chart of steps of the embodiment of the method three of a kind of offline file transmission of the present invention;
Fig. 4 illustrates the flow chart of steps of the embodiment of the method four of a kind of offline file transmission of the present invention;
Fig. 5 illustrates the flow chart of steps of the embodiment of the method five of a kind of offline file transmission of the present invention;
Fig. 6 illustrates in the embodiment of the method one of a kind of offline file transmission of the present invention that off-line files sends and reminds schematic diagram;
Fig. 7 illustrates suspension window assigned operation schematic diagram in the embodiment of the method one of a kind of offline file transmission of the present invention;
Fig. 8 illustrates that in the embodiment of the method one of a kind of offline file transmission of the present invention, off-line reminds schematic diagram;
Fig. 9 illustrates the structured flowchart of a kind of terminal unit embodiment one for offline file transmission of the present invention;
Figure 10 illustrates the structured flowchart of a kind of server example one for offline file transmission of the present invention;
Figure 11 illustrates the structured flowchart of a kind of server example two for offline file transmission of the present invention;
Figure 12 illustrates the structured flowchart of a kind of terminal unit embodiment two for offline file transmission of the present invention;
Figure 13 illustrates the structured flowchart of the system embodiment of a kind of offline file transmission of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should do not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
With reference to Fig. 1, illustrating the flow chart of steps of the embodiment of the method one of a kind of offline file transmission of the present invention, the embodiment of the present invention illustrates from first terminal equipment side, wherein, described first terminal equipment is the sender of file destination resource, and the embodiment of the present invention may include steps of:
Step 101, when first terminal equipment is not detected by the access of the second terminal unit, is sent file destination resource to first server by suspension window at first terminal equipment side;
Wherein, described file destination resource is the file resource that first terminal side obtains according to the selected instruction of file resource that user sends;The selected instruction of described file resource is the download instruction to certain file resource that user selects in the file resource download list that first terminal equipment side is shown, or, the selected instruction of described file resource is the selected instruction to certain file resource that user selects in the file resource that first terminal equipment side stores.
In one preferred embodiment of the invention, before described 101 steps, can also include: the assigned operation that detection user initiates for suspension window, described assigned operation includes user and file destination resource is drawn the operation of suspension window, and/or, user clicks the selected button of the file on suspension window, selects the operation in the path of file destination resource in the file path selection window that first terminal equipment ejects;
When described assigned operation being detected, send reminder message and ask the user whether to need off-line to send file destination resource;
Described step 101 is specifically as follows:
After receiving the off-line confirmation instruction that user sends, described file destination resource being sent to first server by suspension window, described off-line confirms that instruction is the instruction that the confirmation off-line that user indicates sends described file destination resource.
In one preferred embodiment of the invention, described step 101 can include following sub-step:
Sub-step S11, asks for the assigned operation generation file transmission of suspension window according to user at first terminal equipment side;
Sub-step S12, sends request at first terminal equipment side by described file and sends to first server;
Sub-step S13, receives, at first terminal equipment side, the file response message that described first server returns;
Sub-step S14, sends described file destination resource to first server according to described file response message at first terminal equipment side.
In one preferred embodiment of the invention, described sub-step S14 can include following sub-step further:
Sub-step S141, is encrypted by described file destination resource according to described file response message at first terminal equipment side;
Sub-step S142, sends the file destination resource after described encryption to first server.
Step 102, receives the download address of the described file destination resource that described first server returns at first terminal equipment side, and the download address of described file destination resource is that described first server generates according to described file destination resource;
Step 103, builds information bag transmission in second server at first terminal equipment side according to the download address of described file destination resource.
In one preferred embodiment of the invention, described step 103 can include following sub-step:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and the information bag of described file attribute information is built at first terminal equipment side;
At first terminal equipment side by described packets to second server.
Wherein, the file attribute information of described file destination resource can also include the mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource.
As a kind of preferred exemplary of the embodiment of the present invention, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
In one preferred embodiment of the invention, described method can also include:
The validation of information instruction that the 3rd server sends is received at first terminal equipment side;
At first terminal equipment side, described validation of information instruction is showed user;
Receive the confirmation that user selects, and described confirmation is sent to second server.
In one preferred embodiment of the invention, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates.
In one preferred embodiment of the invention, described method can also include:
Generating file transmission list at first terminal equipment side, described file transmission list is carry out, by described suspension window, the list that the file destination resource of off-line transmission is organized into.
In one preferred embodiment of the invention, in described file transmission list for each file destination resource have file send status information, described file send status information include the state that is successfully transmitted, send state, etc. state to be sent and send status of fail.
It should be noted that described first server is file server, described second server is application server, and described 3rd server is push server.
With reference to Fig. 2, illustrating the flow chart of steps of the embodiment of the method two of a kind of offline file transmission of the present invention, the embodiment of the present invention illustrates from second server side, wherein, described second server is application server, and the embodiment of the present invention may include steps of:
Step 201, receives, at second server side joint, the information bag that first terminal equipment side sends;
Step 202, described second server obtains the mark of described first terminal equipment;
Step 203, there is the mark of the second terminal unit of incidence relation in the mark searched with described first terminal equipment in the incidence relation list preset of second server side;
Step 204, generates file acquisition message in second server side according to the mark of described second terminal unit and sends to the 3rd server.
In one preferred embodiment of the invention, before step 203, also include:
Validation of information instruction is generated in second server side;
In second server side, described validation of information instruction is sent to the 3rd server, the 3rd server send to first terminal equipment side;
The confirmation that first terminal equipment returns is received at second server side joint.
In one preferred embodiment of the invention, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates;
Described method also includes:
If described confirmation is the first confirmation, then performs the described mark generation file acquisition message in second server side according to described second terminal unit and send the step to the 3rd server;
If described confirmation is the second confirmation, then reacquire the mark of the second terminal unit in second server side.
Wherein, described first server is file server, and described second server is application server, and described 3rd server is push server.
With reference to Fig. 3, illustrating the flow chart of steps of the embodiment of the method three of a kind of offline file transmission of the present invention, the embodiment of the present invention illustrates from the 3rd server side, wherein, described 3rd server is push server, and the embodiment of the present invention may include steps of:
Step 301, receives, at the 3rd server side joint, the file acquisition message that second server sends, and described file acquisition message includes the mark of the second terminal unit;
Step 302, detects in the 3rd server side when the second terminal unit corresponding to the mark of described second terminal unit is online, sends described file acquisition message to described second terminal equipment side.
In one preferred embodiment of the invention, described step 302 can include following sub-step:
Sub-step S31, obtains the mark of all terminal units accessed in the 3rd server side;
Sub-step S32, judge in the 3rd server side described all accesses terminal unit mark in whether there is the terminal unit identical with the mark of described second terminal unit;
, when there is the terminal unit identical with the mark of described second terminal unit in the mark of the terminal unit of the 3rd server side described all accesses of judgement, it is determined that the second terminal unit that the mark of described second terminal unit is corresponding is online in sub-step S33.
In one preferred embodiment of the invention, described method also includes:
The validation of information instruction that second server sends is received at the 3rd server side joint;
In the 3rd server side, described validation of information instruction is sent to first terminal equipment.
It should be noted that described first server is file server, described second server is application server, and described 3rd server is push server.
With reference to Fig. 4, illustrating the flow chart of steps of the embodiment of the method four of a kind of offline file transmission of the present invention, the embodiment of the present invention illustrates from the second terminal equipment side, wherein, described second terminal unit is the recipient of file destination resource, and the embodiment of the present invention may include steps of:
Step 401, receives, in the second terminal equipment side, the file acquisition message that the 3rd server sends;
Step 402, obtains the information bag of correspondence in the second terminal equipment side according to described file acquisition message from second server, and described information bag includes the download address of file destination resource;
Step 403, downloads the file destination resource of correspondence in the second terminal equipment side according to the download address of described file destination resource from first server.
In one preferred embodiment of the invention, described information bag includes file attribute information, described file attribute information can include the type of file destination resource, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described method can also include:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, then described file destination resource is stored in the second terminal equipment side;
If the type of described file destination resource is software and/or game, then described file destination resource is directly installed.
In one preferred embodiment of the invention, before described step 401, it is also possible to including:
Second terminal equipment side monitor network state, described network state include current network can use and current network unavailable;
If current network can be used, then connect current network in the second terminal equipment side;
Described 3rd server is connected in the second terminal equipment side.
In one preferred embodiment of the invention, if described second terminal unit is mobile equipment, the described step in the second terminal equipment side monitoring network state includes:
Service ConnctionChangeReceiver is received in described second terminal equipment side registered network state change;
Adopt the change of described network state to receive service ConnctionChangeReceiver in the second terminal equipment side and receive the system service SystemService broadcast CONNECTIVITY_CHANGE sent;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network can be used;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network is unavailable.
In another preferred embodiment of the invention, if described second terminal unit is computing equipment, the described step in the second terminal equipment side monitoring network state includes:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
It should be noted that described first server is file server, described second server is application server, and the 3rd server is push server.
With reference to Fig. 5, illustrate the flow chart of steps of the embodiment of the method five of a kind of offline file transmission of the present invention, in embodiments of the present invention, described first terminal equipment is the sender of file destination resource, described second terminal unit is the recipient of file destination resource, described first terminal equipment and/or described second terminal unit can be mobile equipment or computing equipment, wherein, described computing equipment is that one can be run according to program, automatically, the intelligent electronic device of high speed processing mass data, such as desktop computer, notebook computer etc..Described mobile equipment is a kind of computing equipment that can use in movement, such as mobile phone, the embodiment of the present invention to the type of first terminal equipment and the second terminal unit without being any limitation as.
The embodiment of the present invention may include steps of:
Step 501, the selected instruction of file resource sent according to user at first terminal equipment side obtains corresponding file destination resource;
In one preferred embodiment of the invention, the selected instruction of described file resource can be the download instruction to certain file resource that user selects in the file resource download list that first terminal equipment side is shown.Specifically, at first terminal equipment side, the first client-side program is installed, showing in described first client-side program and have the file resource that magnanimity is free to download for user, user can select the file resource oneself liked to be downloaded from the file resource of this first client-side program.In practice, when user operates in the download list of the file resource shown at the first client-side program after the selected file resource oneself liked by mouse or tap, namely the file resource download instruction of correspondence is generated, after first client-side program receives described file resource download instruction, the file resource downloading correspondence from server stores first terminal equipment side as file destination resource.
In practice, described first client-side program opens the suspension window transmission for file destination resource in computer-side, when user opens the first client-side program at first terminal equipment side, first client-side program can in suspension window or eject pop-up at the predeterminated position of first terminal equipment and remind user can send off-line files resource to the second terminal unit, namely first terminal equipment be not connected to the second terminal unit also can fat file resource (as shown in Figure 6) at any time.
Specifically, the effect of suspension window is in that, when the window of mastery routine is when minimizing, it is also possible to prompting user sees the running status of this program, it is possible to by clicking these wickets, open the window of mastery routine quickly.Suspension window contains a default entrance that can access for user, and after showing suspension window on screen, user can pass through perhaps to perform predetermined registration operation in this default entrance access preset.Such as, user can start the operation of delivery fat file by clicking default entrance.
In another preferred embodiment of the invention, the selected instruction of described file resource can be the selected instruction to certain file resource that user selects in the file resource that first terminal equipment side stores.Specifically, user can also select certain file resource as file destination resource in the existing file resource of first terminal side storage.
A kind of preferred exemplary as the present embodiment, described file destination resource has file attribute information, and described file attribute information can include mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource etc..Wherein, the type of described file destination resource can include the polytypes such as theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
Step 502, when first terminal equipment is not detected by the access of the second terminal unit, is sent described file destination resource to file server by suspension window at first terminal equipment side;
Specifically, after first terminal equipment side gets file destination resource, first terminal equipment adopts described first client-side program to detect whether, and the second terminal unit accesses, when not having the second terminal unit to access, the first client-side program detection user initiates assigned operation either with or without for suspension window.Wherein, the described assigned operation initiated for suspension window can have various ways, with reference to the suspension window assigned operation schematic diagram shown in Fig. 7, a kind of preferred exemplary as the present embodiment, described user can include user for the assigned operation that suspension window is initiated and file destination resource is drawn the operation of suspension window, namely, after user selects file destination resource from the file resource that first terminal side stores, directly file destination resource is dragged to the operation in suspension window.Another kind of preferred exemplary as the present embodiment, described user can include user for the assigned operation that suspension window is initiated and click the selected button of the file on suspension window, the file path selection window that first terminal equipment ejects selects the operation in the path of file destination resource, such as, the selected button of described file can for the functional keys of " the selecting the file to send " shown in Fig. 7, after clicking the selected button of file, first terminal equipment side can eject file path selection window, user can select the path of file destination resource in this document Path selection window.
First client-side program detects when user initiates assigned operation for suspension window, first client-side program can send reminder message and ask the user whether to need off-line to send file destination resource, specifically, described reminder message can by suspension window or first terminal equipment predeterminated position eject pop-up show user, after receiving the off-line confirmation instruction that user selectes, off-line sends described file destination resource.Wherein, described off-line confirms that instruction is the instruction confirming the off-line described file destination resource of transmission that user indicates.The instruction that described off-line confirms the similar functions buttons such as " confirm send off-line files " that instruction can be presented as that user clicks in pop-up and triggers.
On the other hand, if user's instruction need not send file destination resource by off-line, can clicking similar functions buttons such as " not sending off-line files " in pop-up and trigger the instruction not sending off-line files, now, described file destination resource such as is at the state to be sent in described suspension window.
In actual applications, user triggers off-line and confirms instruction or trigger the mode of instruction not sending off-line files and can have multiple, except the similar functions button such as above-mentioned click " confirming to send off-line files ", " not sending off-line files ", whether off-line to realize file destination resource sends outside triggering, if first terminal equipment is provided with gravity sensing device, gravity sensing device can also be triggered by shake first terminal equipment, and then realize the triggering whether off-line of described file destination resource is sent.In the embodiment of the present invention, described shake can be understood as any operation that can trigger gravity sensing device, up and down or mobile equipment as described in double swerve etc., concrete operation is not limited by the embodiment of the present invention.
In one preferred embodiment of the invention, after receiving the off-line confirmation instruction that user sends, step 502 can be further, asks for the assigned operation generation file transmission of suspension window according to described user at first terminal equipment side;At first terminal equipment side, described file is sent request to send to file server;The file response message that described file server returns is received at first terminal equipment side;Described file destination resource is sent to file server according to described file response message at first terminal equipment side.Specifically, described file sends request can include the size of file destination resource, after file server receives the transmission request of described file, judge that the memory size of self is whether more than the size of described file destination resource according to the size of described file destination resource, if more than, then file server returns file response message, to notify that first terminal equipment uploads file destination resource;Otherwise, file server does not return file response message.If first terminal equipment receives file response message in preset time period, then according to described file response message, described file destination resource will be sent to file server;If first terminal equipment is not received by file response message in preset time period, then described file destination resource not sent in file server, now, described file destination resource such as is at the state to be sent in described suspension window.
In practice, in order to ensure the safety of file destination resource, first client-side program is before uploading described file destination resource, can being uploaded in file server after first described file destination resource being encrypted according to the first preset rules, described first preset rules can be the encrypting and decrypting rule that described first client-side program is made an appointment with background server again.
Step 503, file server generates the download address of described file destination resource and returns first terminal equipment side;
Specifically, described file server is the server sharing file, is used for storing file destination resource.In actual applications, described file server only preserves the file destination resource in preset time period, the file destination resource of storage can be carried out periodically or detect aperiodically by file server, if detecting, the time of the storage of file destination resource exceedes preset time period, then delete described file destination resource.Wherein, described preset time period can be the access time for each file destination resource is the time period (such as one month, exceeding the file destination resource of one month access time will be deleted) arranged the time started;Or, the event horizon (as before 10 days July in 2013, the file destination resource of storage will be deleted) that described Preset Time can also set for the file resource unification that file server is all storages.
After file server receives file destination resource, obtain this file destination resource storage address in file server side, described storage address is generated according to the second preset rules the download address of described file destination resource, the download address of described file destination resource is returned first terminal equipment side according to after the first preset rules encryption.
In implementing, user can select one or more file destination resource, and be transmitted by described suspension window, now first terminal equipment can adopt described first client-side program to generate file transmission list, described file transmission list is carry out, by described suspension window, the list that the file destination resource of off-line transmission is organized into, and described file transmission list is illustrated in the predeterminated position of suspension window or other predeterminated positions of first terminal equipment interface by first terminal side.Described file transmission list has for each file destination resource file send status information, described file send status information can include the state that is successfully transmitted, send state, etc. state to be sent and send status of fail.Wherein, described file sends status information and refers to that file sends to the status information of file server, described in be successfully transmitted state be the state receiving the corresponding download address that file server returns in preset time period;Described transmission status of fail is the state being not received by the corresponding download address that file server returns in preset time period.
In actual applications, file status list can also be shown and check guide information, described in check guide information for instruct the user how in the second terminal unit receive and check off-line files resource.
Step 504, builds the download address of described file destination resource and the information bag of described file attribute information at first terminal equipment side and sends to application server;
It is applied to the embodiment of the present invention, after first terminal equipment side adopts the first client-side program to receive the download address of the file destination resource that file server returns, the download address of this file destination resource is decrypted according to the first preset rules, then build the download address of described file destination resource and the information bag of described file attribute information, and adopt the first preset rules to send to application server after being encrypted described information bag.
It should be noted that described information bag is actually a kind of record the download address of file destination resource and the data structure of described file attribute information.
Step 505, application server obtains the mark of described first terminal equipment, and the mark searched with described first terminal equipment exists the mark of the second terminal unit of incidence relation in default incidence relation list;
Specifically, in described default incidence relation list, storage has the incidence relation between mark and the mark of the second terminal unit of the first terminal equipment that connection occurred.The process that described incidence relation generates can be (with first terminal equipment for computing equipment, the second terminal unit is the situation citing of mobile equipment):
First computing equipment receives the long notification message connected of foundation that mobile equipment sends, and notification message includes the mark of mobile equipment;If computing equipment allows to set up long connection, then the mark of mobile equipment and the mark of computing equipment are sent to application server by computing equipment, application server record the incidence relation of mobile equipment and computing equipment in incidence relation list.
Specifically, set up the incidence relation between mobile equipment and computing equipment, mainly comprise the steps:
1, move equipment to be authenticated on the application server;
1.1 start the second client-side program (i.e. mobile phone assistant) at mobile equipment;
1.2 on the mobile apparatus after input handset number, and IMEI and the cell-phone number of this equipment are sent to application server by mobile equipment in the lump;
1.3 application servers send the note with authentication code to mobile equipment;
1.4 input this authentication code on the mobile apparatus, are then issued to application server;
According to this authentication code, mobile device number and IMEI, 1.5 application servers determine that this moves being designated this and moving equipment and had of equipment.
2. at computing equipment place
2.1 start mobile phone assistant on the computing device;
After the cell-phone number of the 2.2 mobile equipment of input, cell-phone number and the MID of mobile equipment are sent to application server by computing equipment in the lump;
According to the MID of the computing equipment received, cell-phone number, 2.3 application servers inquire about in data base whether the mobile equipment corresponding to this cell-phone number is authenticated at this application server place, if carried out certification, then set up in incidence relation list the MID of computing equipment, cell-phone number, this move the corresponding relation of IMEI of equipment, for instance they are stored in incidence relation list as a record;Otherwise send invitation to mobile equipment, invite flow process as follows:
2.3.1 application server sends one to mobile equipment and invites note, and inviting in note is an activation chained address;
2.3.2 when the equipment that moves receives this note, ejecting a binding and allow dialog box, user clicks after determining, the information in this activation being linked is sent to application server, after application server receives binding acknowledgement request, this is moved equipment and corresponding computing equipment binding.
Incidence relation list structure is
Specifically, the mark of mobile equipment is mobile1, the mark of computing equipment is desktop1, when mobile equipment to be associated with computing equipment time, this association request is sent to computing equipment by long connection, and after computing equipment agrees to confirmation, this association mobile1<-->desktop1 sets up.After application server receives information bag, application server is also recorded for the mapping relations of desktop1<-->information bag file1.It, after receiving information bag, is decrypted by application server, and obtains the mark of described first terminal equipment, searches the mark of the second terminal unit associated with the mark of described first terminal equipment subsequently in described default incidence relation list.In actual applications, there is following situation in the incidence relation between mark and the mark of described second terminal unit of first terminal equipment described in described default incidence relation list:
(1) mark of first terminal equipment is only corresponding with the mark of second terminal unit.In this case, application server selects the mark recipient as described file destination resource of described second terminal unit.
(2) mark of first terminal equipment is corresponding with the mark of multiple stage the second terminal unit.In this case, due in practice, the incidence relation list preset can also store the mark of described first terminal equipment and the mark up-to-date time being connected of each second terminal unit, now, application server can according to the mark (i.e. last second terminal unit being connected with the first terminal equipment) recipient as file destination resource identifying the second terminal unit that the up-to-date selection of time being connected occurs to connect recently of the mark of described first terminal equipment with each second terminal unit.
After application server gets the mark of the second terminal unit as file destination resource recipient, generate validation of information instruction, and by push server (push server), described validation of information instruction is sent to first terminal equipment side, described validation of information instruction includes the mark of the second terminal unit, and described validation of information instruction is for informing that first terminal equipment is confirmed whether to send to the mark of the second terminal unit of described selection file destination resource.Off-line as shown in Figure 8 reminds schematic diagram, first terminal equipment is after receiving described validation of information instruction, the mark that can adopt the second equipment that described file destination resource will send by the first client-side program shows user with forms such as pop-ups, if user selects " sending immediately ", illustrate that user confirms that described file destination resource sends the mark to described second terminal unit, then first terminal equipment side generates the first confirmation transmission to application server side.In addition, if user is not intended in described file destination resource transmission to the mark of described second terminal unit, user can select the button of printed words such as " zapping equipment ", then first terminal equipment side generates the second confirmation transmission to application server, now, the second terminal unit needing reception file destination resource can be accessed in first terminal equipment by user, to receive file destination resource;If user does not access any second terminal unit, then the mark that whether there are other the second terminal units associated with the mark of described first terminal equipment in described default incidence relation list searched again by application server, if existing, the mark then obtaining secondary the second terminal unit occurring recently and connecting generates validation of information instruction transmission to first terminal equipment side, by that analogy;Otherwise, application server generation connection reminder message sends to first terminal equipment side, the second terminal unit needing to accept file destination resource to notify user to connect.
Step 506, generates file acquisition message in application server side according to the mark of described second terminal unit and sends to push server;
After application server receives the first confirmation that first terminal equipment side sends, generate file acquisition message according to the mark of described second terminal unit, and described file acquisition message is sent to push server (push server).Wherein, described file acquisition message is for notifying that push server is when the second terminal unit that the mark described second terminal unit being detected is corresponding is online, file acquisition message is sent to described second terminal unit, to notify that described second terminal unit obtains described information bag in application server.
Step 507, push server side detects when the second terminal unit of the mark correspondence of described second terminal unit is online, sends described file acquisition message to described second terminal equipment side;
In practice, push server is for being pushed to file acquisition message in the second terminal unit of correspondence.Specifically, push server is after receiving described file acquisition message, obtain the mark of the second terminal unit carried in described file acquisition message, and in the mark (terminal unit one will certainly be dynamically connected online push server) of all terminal units accessed, search the terminal unit identical with the mark of described second terminal unit, if searching successfully, then illustrate that described second terminal unit is online, otherwise, then illustrate that described second terminal unit is not online.
Described file acquisition message when detecting that described second terminal unit is online, is then directly sent to described second terminal unit by push server;If described second terminal unit not online (i.e. off-line) being detected, then wait until that described file acquisition message is sent to described second terminal unit by described second terminal unit on line again.
In implementing, the whether online of the second terminal unit is determined according to supervising audible network state.Specifically, in one preferred embodiment of the invention, if described second terminal unit is the mobile equipment being provided with Android system, it monitors network state as follows:
Network state is a SystemService, context.getSystemService (Stringname) can be passed through obtain, when network state changes time, SystemServic can send android.net.conn.CONNECTIVITY_CHANGE broadcast, now move equipment side and have only to one service (service) of registration, just can receive the broadcast of network state change on backstage, this service can be ConnctionChangeReceiver;Process the broadcast received, it is achieved method is as follows, onReceive add network state and judges:
ConnectivityManagerconnectMgr=(ConnectivityManager) context.getSystemService (Context.CONNECTIVITY_SERVICE);
NetworkInfomobNetInfo=connectMgr.getNetworkInfo (ConnectivityManager.TYPE_MOBILE);
NetworkInfowifiNetInfo=connectMgr.getNetworkInfo (ConnectivityManager.TYPE_WIFI);
Wherein, ConnectivityManager is for obtaining current system information on services;
GetNetworkInfo obtains the information that type is two kinds of networking modes of MOBILE and WIFI respectively;
By judging that mobNetInfo.isConnected () and wifiNetInfo.isConnected () the Boolean Boolean returned determines current networking state, if the Boolean returned is true (or 1), then illustrating that current network can be used, mobile equipment can be attached;If the Boolean returned is false (or 0), then illustrating that current network is unavailable, mobile equipment is not available for connecting.
In another preferred embodiment of the invention, if described second terminal unit is computing equipment, it monitors network state as follows: if computing equipment needs connec-tionless network, network interface API can be called and obtain current network state, if current network state can be used, then computing equipment connects current network, otherwise, is not connected to current network.
Step 508, obtains the information bag of correspondence in the second terminal equipment side according to described file acquisition message from application server;
Specifically, second terminal equipment side is provided with the second client-side program, described second terminal unit adopts described second client-side program to receive the file acquisition message that push server sends, when receiving described file acquisition message, can by described file acquisition message display in the default display location of the second terminal, and notifying that user has the file resource of off-line with the form such as prompt tone or pop-up, namely user promotes the second terminal unit to adopt described second client-side program to obtain information bag in application server after clicking described file acquisition message.
Step 509, downloads the file destination resource of correspondence in the second terminal equipment side according to the download address of described file destination resource from file server.
After second client-side program gets information bag, decipher described information bag, it is thus achieved that the download address of the file resource in described information bag, and in file server, obtain corresponding file destination resource according to the download address of described file resource.
Further, after second client-side program deciphers described information bag, the type of described file destination resource can also be obtained, and the type according to described file destination resource proceeds as follows: if types such as the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, then described file destination resource is stored in the second terminal equipment side;If the type of described file destination resource is the Setup Type such as software and/or game, then described file destination resource is directly installed.Second client-side program is after having stored file resource or having installed file resource, the mounted file resource of user or the fileinfo of file resource stored can be informed with the form of notification message or pop-up in the default display location at the second terminal unit interface, wherein, described fileinfo can represent in the form of a list.
In embodiments of the present invention, first terminal equipment and the second terminal unit are when carrying out the transmission of file resource, line states can not simultaneously be in, namely first file destination resource is uploaded to background server during first terminal equipment on-line, now the second terminal unit is not necessarily required to online, in background server, downloading described file destination resource when the second terminal unit is online again, thus decreasing the restriction of file resource transmission, improving Consumer's Experience.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to involved action and the module not necessarily present invention.
With reference to Fig. 9, it is shown that the structured flowchart of a kind of terminal unit embodiment one for offline file transmission of the present invention, described terminal unit can include such as lower module:
File destination resource sending module 601, is suitable to when first terminal equipment is not detected by the access of the second terminal unit, file destination resource is sent to first server by suspension window at first terminal equipment side;
Download address receiver module 602, is suitable to receive the download address of the described file destination resource that described first server returns at first terminal equipment side, and the download address of described file destination resource is that described first server generates according to described file destination resource;
Download address sending module 603, is suitable to build information bag transmission in second server at first terminal equipment side according to the download address of described file destination resource.
In one preferred embodiment of the invention, also include:
Detection module, be suitable to file destination resource be sent by suspension window to before in first server at first terminal equipment side described, the assigned operation that detection user initiates for suspension window, described assigned operation includes user and file destination resource is drawn the operation of suspension window, and/or, user clicks the selected button of the file on suspension window, selects the operation in the path of file destination resource in the file path selection window that first terminal equipment ejects;
Reminder message sending module, is suitable to when described assigned operation being detected, sends reminder message and asks the user whether to need off-line to send file destination resource;
Described file destination resource sending module is further adapted for:
After receiving the off-line confirmation instruction that user sends, described file destination resource being sent to first server by suspension window, described off-line confirms that instruction is the instruction that the confirmation off-line that user indicates sends described file destination resource.
In one preferred embodiment of the invention, described file destination resource sending module 601 is further adapted for:
Ask for the assigned operation generation file transmission of suspension window according to described user at first terminal equipment side;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent to first server according to described file response message at first terminal equipment side.
In one preferred embodiment of the invention, described file destination resource sending module is further adapted for:
It is encrypted by described file destination resource according to described file response message at first terminal equipment side;
File destination resource after described encryption is sent to first server.
In one preferred embodiment of the invention, described file destination resource is the file resource that first terminal side obtains according to the selected instruction of file resource that user sends;The selected instruction of described file resource is the download instruction to certain file resource that user selects in the file resource download list that first terminal equipment side is shown, or, the selected instruction of described file resource is the selected instruction to certain file resource that user selects in the file resource that first terminal equipment side stores.
In one preferred embodiment of the invention, described download address sending module is further adapted for:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and the information bag of described file attribute information is built at first terminal equipment side;
At first terminal equipment side by described packets to second server.
In one preferred embodiment of the invention, also include:
Validation of information instruction sending module, is suitable to receive, at first terminal equipment side, the validation of information instruction that the 3rd server sends;
Display module, is suitable to, at first terminal equipment side, described validation of information instruction is showed user;
Confirmation receiver module, is suitable to receive the confirmation that user selects, and described confirmation is sent to second server.
In one preferred embodiment of the invention, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates.
In one preferred embodiment of the invention, also include:
File transmission list generation module, is suitable to generate file transmission list at first terminal equipment side, and described file transmission list is carry out, by described suspension window, the list that the file destination resource of off-line transmission is organized into.
In one preferred embodiment of the invention, in described file transmission list for each file destination resource have file send status information, described file send status information include the state that is successfully transmitted, send state, etc. state to be sent and send status of fail.
In one preferred embodiment of the invention, the file attribute information of described file destination resource also includes the mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource.
In one preferred embodiment of the invention, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
In one preferred embodiment of the invention, described first server is file server, and described second server is application server, and described 3rd server is push server.
With reference to Figure 10, it is shown that the structured flowchart of a kind of server example one for offline file transmission of the present invention, described server can include such as lower module:
Information bag receiver module 701, is suitable to receive, at second server side joint, the information bag that first terminal equipment side sends;
Device identification acquisition module 702, is suitable to described second server and obtains the mark of described first terminal equipment;
Module 703 is searched in device identification, is suitable to the mark searched with described first terminal equipment in the incidence relation list preset of second server side and there is the mark of the second terminal unit of incidence relation;
First file acquisition message transmission module 704, is suitable to generate file acquisition message in second server side according to the mark of described second terminal unit and sends to the 3rd server.
In one preferred embodiment of the invention, also include:
Validation of information directive generation module, is suitable to, before the described mark generation file acquisition message according to described second terminal unit sends to the 3rd server, generate validation of information instruction in second server side;
Validation of information instruction sending module, is suitable to described validation of information instruction be sent to the 3rd server in second server side, the 3rd server sends to first terminal equipment side;
Confirm message reception module, be suitable to receive, at second server side joint, the confirmation that first terminal equipment returns.
In one preferred embodiment of the invention, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates;
Described server also includes:
Calling module, is suitable to, when described confirmation is the first confirmation, call the first file acquisition message transmission module;
Identifier acquisition module, is suitable to, when described confirmation is the second confirmation, reacquire the mark of the second terminal unit in second server side.
In one preferred embodiment of the invention, described second server is application server, and described 3rd server is push server.
With reference to Figure 11, it is shown that the structured flowchart of a kind of server example two for offline file transmission of the present invention, described server can include such as lower module:
First file acquisition message reception module 801, is suitable to receive, at the 3rd server side joint, the file acquisition message that second server sends, and described file acquisition message includes the mark of the second terminal unit;
Second file acquisition message transmission module 802, is suitable to detect in the 3rd server side when the second terminal unit corresponding to the mark of described second terminal unit is online, sends described file acquisition message to described second terminal equipment side.
In one preferred embodiment of the invention, described second file acquisition message transmission module is further adapted for:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether there is the terminal unit identical with the mark of described second terminal unit;
If so, then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
In one preferred embodiment of the invention, also include:
Validation of information command reception module, is suitable to receive, at the 3rd server side joint, the validation of information instruction that second server sends;
Validation of information instruction sending module, is suitable to described validation of information instruction be sent to first terminal equipment in the 3rd server side.
In one preferred embodiment of the invention, described second server is application server, and described 3rd server is push server.
With reference to Figure 12, it is shown that the structured flowchart of a kind of terminal unit embodiment two for offline file transmission of the present invention, described terminal unit can include such as lower module:
Second file acquisition message reception module 901, is suitable to receive, in the second terminal equipment side, the file acquisition message that the 3rd server sends;
Information bag acquisition module 902, is suitable to obtain the information bag of correspondence in the second terminal equipment side from second server according to described file acquisition message, and described information bag includes the download address of file destination resource;
File destination resource downloading module 903, is suitable to download the file destination resource of correspondence in the second terminal equipment side from first server according to the download address of described file destination resource.
In one preferred embodiment of the invention, described information bag includes file attribute information, described file attribute information includes the type of file destination resource, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described terminal unit also includes:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, then described file destination resource is stored in the second terminal equipment side;
If the type of described file destination resource is software and/or game, then described file destination resource is directly installed.
In one preferred embodiment of the invention, described terminal unit also includes:
Monitoring module, be suitable to described before the second terminal equipment side receives the file acquisition message that the 3rd server sends, monitor network state in the second terminal equipment side, described network state includes current network and can use;
First link block, can use if being suitable to current network, then connect current network in the second terminal equipment side;
Second link block, is suitable to connect described 3rd server in the second terminal equipment side.
In one preferred embodiment of the invention, if described second terminal unit is mobile equipment, described monitoring module is further adapted for:
Service ConnctionChangeReceiver is received in described second terminal equipment side registered network state change;
Adopt the change of described network state to receive service ConnctionChangeReceiver in the second terminal equipment side and receive the system service SystemService broadcast CONNECTIVITY_CHANGE sent;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network can be used;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network is unavailable.
In another preferred embodiment of the invention, if described second terminal unit is mobile equipment, described monitoring module is further adapted for:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
In one preferred embodiment of the invention, described first server is file server, and described second server is application server, and the 3rd server is push server.
With reference to Figure 13, it is shown that the structured flowchart of the system embodiment of a kind of offline file transmission of the present invention, described system can include first terminal equipment 10, file server 20, application server 30, push server the 40, second terminal unit 50, wherein,
Described first terminal equipment 10, be suitable to when first terminal equipment is not detected by the access of the second terminal unit, by suspension window, file destination resource to be sent is sent to file server, and receive the download address of the described file destination resource that described file server returns, and, the download address of described file destination resource is built packets to application server;
Described file server 20, is suitable to receive described file destination resource, generates the download address of corresponding file destination resource according to described file destination resource and sends to first terminal equipment;
Described application server 30, be suitable to receive described information bag, the mark of the second terminal unit of incidence relation is there is according to mark mark searched with described first terminal equipment in default incidence relation list of the first terminal equipment carried in described information bag, and, generate file acquisition message according to the mark of described second terminal unit and send to push server;
Described push server 40, is suitable to, when the second terminal unit that the mark described second terminal unit being detected is corresponding is online, send described file acquisition message to described second terminal equipment side;
Described second terminal unit 50, is suitable to obtain from application server the information bag of correspondence according to described file acquisition message, and, the download address of the file destination resource carried according to described information bag downloads the file destination resource of correspondence from file server.
In one preferred embodiment of the invention, described first terminal equipment 10 is further adapted for:
Ask for the assigned operation generation file transmission of suspension window according to user;
Described file is sent request send to file server;
Receive the file response message that described file server returns;
According to described file response message, described file destination resource is sent to file server.
In one preferred embodiment of the invention, the file attribute information of described file destination resource also includes the mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource.
In one preferred embodiment of the invention, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
In one preferred embodiment of the invention, described second terminal unit 50 is further adapted for:
Type in described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book time, described file destination resource is stored in the second terminal equipment side;
When type in described file destination resource is software and/or game, described file destination resource is directly installed.
Not intrinsic to any particular computing device, virtual system or miscellaneous equipment relevant in algorithm and the display of this offer.Various general-purpose systems can also with use based on together with this teaching.As described above, the structure constructed required by this kind of system is apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to utilize various programming language to realize the content of invention described herein, and the description above language-specific done is the preferred forms in order to disclose the present invention.
In description mentioned herein, describe a large amount of detail.It is to be appreciated, however, that embodiments of the invention can be put into practice when not having these details.In some instances, known method, structure and technology it are not shown specifically, in order to do not obscure the understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify that the disclosure helping understands in each inventive aspect, herein above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or descriptions thereof sometimes.But, the method for the disclosure should be construed to and reflect an intention that namely the present invention for required protection requires feature more more than the feature being expressly recited in each claim.More precisely, as the following claims reflect, inventive aspect is in that all features less than single embodiment disclosed above.Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself as the independent embodiment of the present invention.
Those skilled in the art are appreciated that, it is possible to carry out the module in the equipment in embodiment adaptively changing and they being arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit excludes each other, it is possible to adopt any combination that all processes or the unit of all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment are combined.Unless expressly stated otherwise, each feature disclosed in this specification (including adjoint claim, summary and accompanying drawing) can by providing purpose alternative features identical, equivalent or similar to replace.
In addition, those skilled in the art it will be appreciated that, although embodiments more described herein include some feature included in other embodiments rather than further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or realizes with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in offline file transmission equipment according to embodiments of the present invention.The present invention is also implemented as part or all the equipment for performing method as described herein or terminal unit program (such as, first terminal device program and first terminal device program product).The program of such present invention of realization can be stored in first terminal device-readable medium, or can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment without departing from the scope of the appended claims.In the claims, any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not exclude the presence of the element or step not arranged in the claims.Word "a" or "an" before being positioned at element does not exclude the presence of multiple such element.The present invention by means of including the hardware of some different elements and can realize by means of properly programmed first terminal equipment.In the unit claim listing some terminal units, several in these terminal units can be through same hardware branch and specifically embody.Word first, second and third use do not indicate that any order.Can be title by these word explanations.
A kind of method that embodiment of the invention discloses that A1, offline file transmission, including:
When first terminal equipment is not detected by the access of the second terminal unit, file destination resource is sent to first server by suspension window at first terminal equipment side;
Receive the download address of the described file destination resource that described first server returns at first terminal equipment side, the download address of described file destination resource is that described first server generates according to described file destination resource;
Information bag transmission is built in second server according to the download address of described file destination resource at first terminal equipment side.
A2, method as described in A1, described before file destination resource is sent the step to first server by suspension window by first terminal equipment side, also include:
The assigned operation that detection user initiates for suspension window, described assigned operation includes user and file destination resource is drawn the operation of suspension window, and/or, user clicks the selected button of the file on suspension window, selects the operation in the path of file destination resource in the file path selection window that first terminal equipment ejects;
When described assigned operation being detected, send reminder message and ask the user whether to need off-line to send file destination resource;
Described file destination resource transmission to the step in first server by suspension window at first terminal equipment side is included:
After receiving the off-line confirmation instruction that user sends, described file destination resource being sent to first server by suspension window, described off-line confirms that instruction is the instruction that the confirmation off-line that user indicates sends described file destination resource.
A3, method as described in A2, described included the step that file destination resource sends to first server by suspension window at first terminal equipment side:
Ask for the assigned operation generation file transmission of suspension window according to described user at first terminal equipment side;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent to first server according to described file response message at first terminal equipment side.
A4, method as described in A3, described include the step that described file destination resource sends to first server according to described file response message at first terminal equipment side:
It is encrypted by described file destination resource according to described file response message at first terminal equipment side;
File destination resource after described encryption is sent to first server.
A5, method as described in A1, described file destination resource is the file resource that first terminal side obtains according to the selected instruction of file resource that user sends;The selected instruction of described file resource is the download instruction to certain file resource that user selects in the file resource download list that first terminal equipment side is shown, or, the selected instruction of described file resource is the selected instruction to certain file resource that user selects in the file resource that first terminal equipment side stores.
A6, method as described in A1, described build information bag transmission at first terminal equipment side and include to the step in second server according to the download address of described file destination resource:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and the information bag of described file attribute information is built at first terminal equipment side;
At first terminal equipment side by described packets to second server.
A7, method as described in A1, also include:
The validation of information instruction that the 3rd server sends is received at first terminal equipment side;
At first terminal equipment side, described validation of information instruction is showed user;
Receive the confirmation that user selects, and described confirmation is sent to second server.
A8, method as described in A7, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates.
A9, method as described in A1, also include:
Generating file transmission list at first terminal equipment side, described file transmission list is carry out, by described suspension window, the list that the file destination resource of off-line transmission is organized into.
A10, method as described in A9, have file for each file destination resource in described file transmission list and send status information, described file send status information include the state that is successfully transmitted, send state, etc. state to be sent and send status of fail.
A11, method as described in A1, the file attribute information of described file destination resource also includes the mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource.
A12, method as described in A11, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
A13, method as described in any one of A4 to 12, described first server is file server, and described second server is application server, and described 3rd server is push server.
Embodiments of the invention also disclose a kind of method of B14, offline file transmission, including:
The information bag that first terminal equipment side sends is received at second server side joint;
Described second server obtains the mark of described first terminal equipment;
There is the mark of the second terminal unit of incidence relation in the mark searched with described first terminal equipment in the incidence relation list preset of second server side;
Generate file acquisition message in second server side according to the mark of described second terminal unit to send to the 3rd server.
B15, method as described in B14, before the described mark according to described second terminal unit generates the step that file acquisition message sends to the 3rd server, also include:
Validation of information instruction is generated in second server side;
In second server side, described validation of information instruction is sent to the 3rd server, the 3rd server send to first terminal equipment side;
The confirmation that first terminal equipment returns is received at second server side joint.
B16, method as described in B15, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates;
Described method also includes:
If described confirmation is the first confirmation, then performs the described mark generation file acquisition message in second server side according to described second terminal unit and send the step to the 3rd server;
If described confirmation is the second confirmation, then reacquire the mark of the second terminal unit in second server side.
Embodiments of the invention also disclose a kind of method of C17, offline file transmission, including:
Receiving, at the 3rd server side joint, the file acquisition message that second server sends, described file acquisition message includes the mark of the second terminal unit;
Detect in the 3rd server side when the second terminal unit corresponding to the mark of described second terminal unit is online, described file acquisition message is sent to described second terminal equipment side.
C18, method as described in C17, the online step of the second terminal unit corresponding to the mark of described second terminal unit of described detection includes:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether there is the terminal unit identical with the mark of described second terminal unit;
If so, then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
C19, method as described in C17, also include:
The validation of information instruction that second server sends is received at the 3rd server side joint;In the 3rd server side, described validation of information instruction is sent to first terminal equipment.
Embodiments of the invention also disclose a kind of method of D20, offline file transmission, including:
The file acquisition message that the 3rd server sends is received in the second terminal equipment side;
Obtaining the information bag of correspondence in the second terminal equipment side from second server according to described file acquisition message, described information bag includes the download address of file destination resource;
From first server, the file destination resource of correspondence is downloaded according to the download address of described file destination resource in the second terminal equipment side.
D21, method as described in D20, described information bag includes file attribute information, described file attribute information includes the type of file destination resource, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described method also includes:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, then described file destination resource is stored in the second terminal equipment side;
If the type of described file destination resource is software and/or game, then described file destination resource is directly installed.
D22, method as described in D20, before the described step receiving the file acquisition message that the 3rd server sends in the second terminal equipment side, also include:
Monitoring network state in the second terminal equipment side, described network state includes current network and can use;
If current network can be used, then connect current network in the second terminal equipment side;
Described 3rd server is connected in the second terminal equipment side.
D23, method as described in D22, if described second terminal unit is mobile equipment, described monitor the step of network state in the second terminal equipment side and include:
Service ConnctionChangeReceiver is received in described second terminal equipment side registered network state change;
Adopt the change of described network state to receive service ConnctionChangeReceiver in the second terminal equipment side and receive the system service SystemService broadcast CONNECTIVITY_CHANGE sent;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network can be used;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network is unavailable.
D24, method as described in D22, if described second terminal unit is computing equipment, described monitor the step of network state in the second terminal equipment side and include:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
Embodiments of the invention are also disclosed E25, a kind of terminal unit for offline file transmission, including:
File destination resource sending module, is suitable to when first terminal equipment is not detected by the access of the second terminal unit, file destination resource is sent to first server by suspension window at first terminal equipment side;
Download address receiver module, is suitable to receive the download address of the described file destination resource that described first server returns at first terminal equipment side, and the download address of described file destination resource is that described first server generates according to described file destination resource;
Download address sending module, is suitable to build information bag transmission in second server at first terminal equipment side according to the download address of described file destination resource.
E26, terminal unit as described in E25, also include:
Detection module, be suitable to file destination resource be sent by suspension window to before in first server at first terminal equipment side described, the assigned operation that detection user initiates for suspension window, described assigned operation includes user and file destination resource is drawn the operation of suspension window, and/or, user clicks the selected button of the file on suspension window, selects the operation in the path of file destination resource in the file path selection window that first terminal equipment ejects;
Reminder message sending module, is suitable to when described assigned operation being detected, sends reminder message and asks the user whether to need off-line to send file destination resource;
Described file destination resource sending module is further adapted for:
After receiving the off-line confirmation instruction that user sends, described file destination resource being sent to first server by suspension window, described off-line confirms that instruction is the instruction that the confirmation off-line that user indicates sends described file destination resource.
E27, terminal unit as described in E26, described file destination resource sending module is further adapted for:
Ask for the assigned operation generation file transmission of suspension window according to described user at first terminal equipment side;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent to first server according to described file response message at first terminal equipment side.
E28, terminal unit as described in E27, described file destination resource sending module is further adapted for:
It is encrypted by described file destination resource according to described file response message at first terminal equipment side;
File destination resource after described encryption is sent to first server.
E29, terminal unit as described in E25, described file destination resource is the file resource that first terminal side obtains according to the selected instruction of file resource that user sends;The selected instruction of described file resource is the download instruction to certain file resource that user selects in the file resource download list that first terminal equipment side is shown, or, the selected instruction of described file resource is the selected instruction to certain file resource that user selects in the file resource that first terminal equipment side stores.
E30, terminal unit as described in E25, described download address sending module is further adapted for:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and the information bag of described file attribute information is built at first terminal equipment side;
At first terminal equipment side by described packets to second server.
E31, terminal unit as described in E25, also include:
Validation of information instruction sending module, is suitable to receive, at first terminal equipment side, the validation of information instruction that the 3rd server sends;
Display module, is suitable to, at first terminal equipment side, described validation of information instruction is showed user;
Confirmation receiver module, is suitable to receive the confirmation that user selects, and described confirmation is sent to second server.
E32, terminal unit as described in E31, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates.
E33, terminal unit as described in E25, also include:
File transmission list generation module, is suitable to generate file transmission list at first terminal equipment side, and described file transmission list is carry out, by described suspension window, the list that the file destination resource of off-line transmission is organized into.
E34, terminal unit as described in E33, in described file transmission list for each file destination resource have file send status information, described file send status information include the state that is successfully transmitted, send state, etc. state to be sent and send status of fail.
E35, terminal unit as described in E25, the file attribute information of described file destination resource also includes the mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource.
E36, terminal unit as described in E35, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
E37, terminal unit as described in any one of E28 to 36, described first server is file server, and described second server is application server, and described 3rd server is push server.
Embodiments of the invention also disclose F38, a kind of server for offline file transmission, including:
Information bag receiver module, is suitable to receive, at second server side joint, the information bag that first terminal equipment side sends;
Device identification acquisition module, is suitable to described second server and obtains the mark of described first terminal equipment;
Module is searched in device identification, is suitable to the mark searched with described first terminal equipment in the incidence relation list preset of second server side and there is the mark of the second terminal unit of incidence relation;
First file acquisition message transmission module, is suitable to generate file acquisition message in second server side according to the mark of described second terminal unit and sends to the 3rd server.
F39, server as described in F38, also include:
Validation of information directive generation module, is suitable to, before the described mark generation file acquisition message according to described second terminal unit sends to the 3rd server, generate validation of information instruction in second server side;
Validation of information instruction sending module, is suitable to described validation of information instruction be sent to the 3rd server in second server side, the 3rd server sends to first terminal equipment side;
Confirm message reception module, be suitable to receive, at second server side joint, the confirmation that first terminal equipment returns.
F40, server as described in F39, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates;
Described server also includes:
Calling module, is suitable to, when described confirmation is the first confirmation, call the first file acquisition message transmission module;
Identifier acquisition module, is suitable to, when described confirmation is the second confirmation, reacquire the mark of the second terminal unit in second server side.
Embodiments of the invention also disclose G41, a kind of server for offline file transmission, including:
First file acquisition message reception module, is suitable to receive, at the 3rd server side joint, the file acquisition message that second server sends, and described file acquisition message includes the mark of the second terminal unit;
Second file acquisition message transmission module, is suitable to detect in the 3rd server side when the second terminal unit corresponding to the mark of described second terminal unit is online, sends described file acquisition message to described second terminal equipment side.
G42, server as described in G41, described second file acquisition message transmission module is further adapted for:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether there is the terminal unit identical with the mark of described second terminal unit;
If so, then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
G43, server as described in G41, also include:
Validation of information command reception module, is suitable to receive, at the 3rd server side joint, the validation of information instruction that second server sends;
Validation of information instruction sending module, is suitable to described validation of information instruction be sent to first terminal equipment in the 3rd server side.
Embodiments of the invention also disclose H44, a kind of terminal unit for offline file transmission, including:
Second file acquisition message reception module, is suitable to receive, in the second terminal equipment side, the file acquisition message that the 3rd server sends;
Information bag acquisition module, is suitable to obtain the information bag of correspondence in the second terminal equipment side from second server according to described file acquisition message, and described information bag includes the download address of file destination resource;
File destination resource downloading module, is suitable to download the file destination resource of correspondence in the second terminal equipment side from first server according to the download address of described file destination resource.
H45, terminal unit as described in H44, described information bag includes file attribute information, described file attribute information includes the type of file destination resource, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described terminal unit also includes:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, then described file destination resource is stored in the second terminal equipment side;
If the type of described file destination resource is software and/or game, then described file destination resource is directly installed.
H46, terminal unit as described in H44, also include:
Monitoring module, be suitable to described before the second terminal equipment side receives the file acquisition message that the 3rd server sends, monitor network state in the second terminal equipment side, described network state includes current network and can use;
First link block, can use if being suitable to current network, then connect current network in the second terminal equipment side;
Second link block, is suitable to connect described 3rd server in the second terminal equipment side.
H47, terminal unit as described in H46, described second terminal unit is mobile equipment, and described monitoring module is further adapted for:
Service ConnctionChangeReceiver is received in described second terminal equipment side registered network state change;
Adopt the change of described network state to receive service ConnctionChangeReceiver in the second terminal equipment side and receive the system service SystemService broadcast CONNECTIVITY_CHANGE sent;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network can be used;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, then judge that current network is unavailable.
H48, method as described in H46, if described second terminal unit is computing equipment, described monitor the step of network state in the second terminal equipment side and include:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
Embodiments of the invention also disclose the system of I49, a kind of offline file transmission, including: first terminal equipment, file server, application server, push server, the second terminal unit, wherein,
Described first terminal equipment, be suitable to when first terminal equipment is not detected by the access of the second terminal unit, by suspension window, file destination resource to be sent is sent to file server, and receive the download address of the described file destination resource that described file server returns, and, the download address of described file destination resource is built packets to application server;
Described file server, is suitable to receive described file destination resource, generates the download address of corresponding file destination resource according to described file destination resource and sends to first terminal equipment;
Described application server, be suitable to receive described information bag, the mark of the second terminal unit of incidence relation is there is according to mark mark searched with described first terminal equipment in default incidence relation list of the first terminal equipment carried in described information bag, and, generate file acquisition message according to the mark of described second terminal unit and send to push server;
Described push server, is suitable to, when the second terminal unit that the mark described second terminal unit being detected is corresponding is online, send described file acquisition message to described second terminal equipment side;
Described second terminal unit, is suitable to obtain from application server the information bag of correspondence according to described file acquisition message, and, the download address of the file destination resource carried according to described information bag downloads the file destination resource of correspondence from file server.
I50, system as described in I49, described first terminal equipment is further adapted for:
Ask for the assigned operation generation file transmission of suspension window according to user;
Described file is sent request send to file server;
Receive the file response message that described file server returns;
According to described file response message, described file destination resource is sent to file server.
I51, system as described in I49, the file attribute information of described file destination resource also includes the mark of the size of file destination resource, the type of file destination resource, the version number of file destination resource, file destination resource.
I52, system as described in I51, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
I53, system as described in I52, described second terminal unit is further adapted for:
Type in described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book time, described file destination resource is stored in the second terminal equipment side;
When type in described file destination resource is software and/or game, described file destination resource is directly installed.

Claims (6)

1. a method for offline file transmission, including:
The information bag that first terminal equipment side sends is received at second server side joint;
Described second server obtains the mark of described first terminal equipment;
There is the mark of the second terminal unit of incidence relation in the mark searched with described first terminal equipment in the incidence relation list preset of second server side;
Generate file acquisition message in second server side according to the mark of described second terminal unit to send to the 3rd server.
2. the method for claim 1, it is characterised in that before the described mark according to described second terminal unit generates the step that file acquisition message sends to the 3rd server, also include:
Validation of information instruction is generated in second server side;
In second server side, described validation of information instruction is sent to the 3rd server, the 3rd server send to first terminal equipment side;
The confirmation that first terminal equipment returns is received at second server side joint.
3. method as claimed in claim 2, it is characterized in that, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates;
Described method also includes:
If described confirmation is the first confirmation, then performs the described mark generation file acquisition message in second server side according to described second terminal unit and send the step to the 3rd server;
If described confirmation is the second confirmation, then reacquire the mark of the second terminal unit in second server side.
4. for a server for offline file transmission, including:
Information bag receiver module, is suitable to receive, at second server side joint, the information bag that first terminal equipment side sends;
Device identification acquisition module, is suitable to described second server and obtains the mark of described first terminal equipment;
Module is searched in device identification, is suitable to the mark searched with described first terminal equipment in the incidence relation list preset of second server side and there is the mark of the second terminal unit of incidence relation;
First file acquisition message transmission module, is suitable to generate file acquisition message in second server side according to the mark of described second terminal unit and sends to the 3rd server.
5. server as claimed in claim 4, it is characterised in that also include:
Validation of information directive generation module, is suitable to, before the described mark generation file acquisition message according to described second terminal unit sends to the 3rd server, generate validation of information instruction in second server side;
Validation of information instruction sending module, is suitable to described validation of information instruction be sent to the 3rd server in second server side, the 3rd server sends to first terminal equipment side;
Confirm message reception module, be suitable to receive, at second server side joint, the confirmation that first terminal equipment returns.
6. server as claimed in claim 5, it is characterized in that, described validation of information instruction includes the mark of the second terminal unit, described confirmation includes the first confirmation and the second confirmation, and described first confirmation is the second corresponding terminal unit that identifies confirming described second terminal unit selected according to user is the information that file reception side generates;Described second confirmation is the second corresponding terminal unit that identifies not confirming described second terminal unit selected according to user is the information that file reception side generates;
Described server also includes:
Calling module, is suitable to, when described confirmation is the first confirmation, call the first file acquisition message transmission module;
Identifier acquisition module, is suitable to, when described confirmation is the second confirmation, reacquire the mark of the second terminal unit in second server side.
CN201610279801.5A 2013-11-26 2013-11-26 A kind of method of offline file transmission, system, terminal device and server Active CN105763650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610279801.5A CN105763650B (en) 2013-11-26 2013-11-26 A kind of method of offline file transmission, system, terminal device and server

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610279801.5A CN105763650B (en) 2013-11-26 2013-11-26 A kind of method of offline file transmission, system, terminal device and server
CN201310612011.0A CN103634392B (en) 2013-11-26 2013-11-26 Method, system, terminal equipment and servers for offline file transmission

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201310612011.0A Division CN103634392B (en) 2013-11-26 2013-11-26 Method, system, terminal equipment and servers for offline file transmission

Publications (2)

Publication Number Publication Date
CN105763650A true CN105763650A (en) 2016-07-13
CN105763650B CN105763650B (en) 2019-08-02

Family

ID=56325142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610279801.5A Active CN105763650B (en) 2013-11-26 2013-11-26 A kind of method of offline file transmission, system, terminal device and server

Country Status (1)

Country Link
CN (1) CN105763650B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293733A (en) * 2016-08-08 2017-01-04 网易传媒科技(北京)有限公司 A kind of control the method and apparatus that the page shows
CN109375925A (en) * 2018-09-14 2019-02-22 厦门天锐科技股份有限公司 A kind of method that terminal program unloads offline
CN107995247B (en) * 2016-10-27 2020-07-14 腾讯科技(深圳)有限公司 File transmission method, server and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184055A (en) * 2007-12-11 2008-05-21 腾讯科技(深圳)有限公司 Method and device of delivering, receiving, transmitting off-line files
US20090293069A1 (en) * 2007-07-02 2009-11-26 Huawei Technologies Co., Ltd. Method and apparatus for synchronizing data between terminals
CN102355426A (en) * 2011-06-30 2012-02-15 北京神州泰岳软件股份有限公司 Method for transmitting off-line file and system
CN103248678A (en) * 2013-04-24 2013-08-14 天脉聚源(北京)传媒科技有限公司 Data resource sharing method, server-side and client-side

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090293069A1 (en) * 2007-07-02 2009-11-26 Huawei Technologies Co., Ltd. Method and apparatus for synchronizing data between terminals
CN101184055A (en) * 2007-12-11 2008-05-21 腾讯科技(深圳)有限公司 Method and device of delivering, receiving, transmitting off-line files
CN102355426A (en) * 2011-06-30 2012-02-15 北京神州泰岳软件股份有限公司 Method for transmitting off-line file and system
CN103248678A (en) * 2013-04-24 2013-08-14 天脉聚源(北京)传媒科技有限公司 Data resource sharing method, server-side and client-side

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293733A (en) * 2016-08-08 2017-01-04 网易传媒科技(北京)有限公司 A kind of control the method and apparatus that the page shows
CN106293733B (en) * 2016-08-08 2019-11-19 网易传媒科技(北京)有限公司 A kind of method and apparatus that the control page is shown
CN107995247B (en) * 2016-10-27 2020-07-14 腾讯科技(深圳)有限公司 File transmission method, server and system
CN109375925A (en) * 2018-09-14 2019-02-22 厦门天锐科技股份有限公司 A kind of method that terminal program unloads offline

Also Published As

Publication number Publication date
CN105763650B (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN103634392B (en) Method, system, terminal equipment and servers for offline file transmission
CN101523832B (en) Messaging system
CN103888505B (en) A kind of method, system, terminal device and the server of file transmission
KR20180116290A (en) Technologies for messaging bot-rich communications
CN109697359A (en) A kind of message prompt method, device, storage medium and electronic equipment
CN105515900A (en) Method and device for acquiring on-line state of terminal
CN104462570B (en) Web page contents acquisition methods and device
KR102334506B1 (en) Method for presence-based contents sharing and electronic device supporting the same
CN102893271B (en) Use the data uploading method of shortcut
US10757052B2 (en) Embedding actionable content in electronic communication
KR20100076010A (en) System and method for customized sharing of multimedia content in a communications network
WO2016171989A1 (en) Smart attachment of cloud-based files to communications
CN105763650A (en) Method, system, terminal device and server for off-line file transmission
CN106534280B (en) Data sharing method and device
CN105159692B (en) Identification method, device and the server of application
CN109104450B (en) File transmitting and receiving method and device and computer readable storage medium
AU2014412020A1 (en) Techniques to transform network resource requests to zero rated network requests
KR20090016320A (en) Method for download display of license and potable device using the same
CN106557317A (en) A kind of method and apparatus that shortcut is created in desktop
CN105744525A (en) Method, device and system for mobile communication terminal to identify harassing communication
JP6881831B2 (en) Information processing system, information processing method and information processing program
JP2006031267A (en) Information registration method, information management device, and advertisement display system
KR20150138803A (en) Method for managing interactive communication and managing server thereof
CN105763718A (en) Processing method of custom tags in address list and mobile communication terminal
CN106161731A (en) Harassing and wrecking contact person information updating method, terminal unit, server and system

Legal Events

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

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.