CN107623706A - Document transmission method and device - Google Patents
Document transmission method and device Download PDFInfo
- Publication number
- CN107623706A CN107623706A CN201610555909.2A CN201610555909A CN107623706A CN 107623706 A CN107623706 A CN 107623706A CN 201610555909 A CN201610555909 A CN 201610555909A CN 107623706 A CN107623706 A CN 107623706A
- Authority
- CN
- China
- Prior art keywords
- terminal
- file
- downloaded
- storage
- transmission
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/14—Multichannel or multilink protocols
Abstract
The invention provides a kind of document transmission method and device, this method includes:First terminal of the storage from first terminal is transferred to the file of second terminal;Judge whether second terminal supports file to transmit;In the case where the judgment result is yes, the file of storage is sent to second terminal.By the present invention, solve when carrying out file transmission based on WI FI terminals in correlation technique, a side not online the problem of can not then carrying out file transmission in sender and recipient.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of document transmission method and device.
Background technology
At present, based on WI-FI terminal (for example, intelligent uFi, router) progress file transmission, it is necessary to sender when
It is all connected to recipient in WI-FI terminal, after a wherein side is not in line, then can not carries out file transmission, it is necessary to wait down
When secondary two users equally are simultaneously online, the file of user's transmission could be transmitted again, so causes user experience significantly
Reduce.
Therefore, when carrying out file transmission based on WI-FI terminal in correlation technique, a side is not online in sender and recipient
File transmission can not then be carried out.
The content of the invention
The embodiments of the invention provide a kind of document transmission method and device, at least to solve to be based on WI- in correlation technique
When FI terminals carry out file transmission, a side not online the problem of can not then carrying out file transmission in sender and recipient.
According to one embodiment of present invention, there is provided a kind of document transmission method, including:Storage is from first terminal
The first terminal is transferred to the file of second terminal;Judge whether the second terminal supports file to transmit;In judged result
In the case of being, the file of storage is sent to the second terminal.
Alternatively, the file that the first terminal from the first terminal is transferred to the second terminal is stored
Including:During it will be transmitted from the file that the first terminal is downloaded to the second terminal, described second is detected eventually
End is abnormal to be disconnected;Judge whether to continue to download the file to be downloaded do not downloaded from the first terminal;It is yes in judged result
In the case of, the file to be downloaded will be downloaded from the first terminal and stored.
Alternatively, before the file of storage is sent into the second terminal, in addition to:To the second terminal
The first instruction message is sent, wherein, the first instruction message is used to indicate that the first terminal is transferred to the second terminal
The file state for downloaded it is to be transmitted.
Alternatively, after the file of storage is sent into the second terminal, in addition to:To the second terminal
The second instruction message is sent, wherein, the second instruction message is used to indicate that the first terminal is transferred to the second terminal
The file state to be transmitted.
Alternatively, the file that the first terminal from the first terminal is transferred to the second terminal is stored
Including:During it will be transmitted from the file that the first terminal is downloaded to the second terminal, described first is detected eventually
End is abnormal to be disconnected;Judge from the first terminal download the file it is whether complete;It is right in the case where judged result is no
The partial document downloaded from the first terminal is marked, for subsequently detecting the first terminal support file transmission
When, continue to download remainder file from the first terminal.
According to another embodiment of the invention, there is provided a kind of file transfer means, including:Memory module, for depositing
The first terminal of the storage from first terminal is transferred to the file of second terminal;Judge module, for judging described second eventually
Whether file is supported to transmit in end;First sending module, in the case where the judgment result is yes, the file of storage to be sent out
Give the second terminal.
Alternatively, the memory module includes:First detection unit, in the file that will be downloaded from the first terminal
During being transmitted to the second terminal, detect that the second terminal disconnects extremely;First judging unit, it is for judgement
It is no to continue to download the file to be downloaded do not downloaded from the first terminal;Download unit, for the feelings for being yes in judged result
Under condition, the file to be downloaded will be downloaded from the first terminal and stored.
Alternatively, in addition to:Second sending module, for sending the first instruction message to the second terminal, wherein, institute
The first instruction message is stated to be used to indicate that the state that the first terminal is transferred to the file of the second terminal is to have downloaded
It is to be transmitted.
Alternatively, in addition to:3rd sending module, for sending the second instruction message to the second terminal, wherein, institute
The second instruction message is stated to be used to indicate that the state that the first terminal is transferred to the file of the second terminal is to have transmitted
Complete.
Alternatively, the memory module includes:Second detection unit, in the file that will be downloaded from the first terminal
During being transmitted to the second terminal, detect that the first terminal disconnects extremely;Second judging unit, for judge from
Whether the file that the first terminal is downloaded is complete;Indexing unit, in judged result in the case of no, to from institute
The partial document for stating first terminal download is marked, for subsequently when detecting that the first terminal supports file transmission,
Continue to download remainder file from the first terminal.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is arranged to storage and used
In the program code for performing following steps:The first terminal of the storage from first terminal is transferred to the file of second terminal;
Judge whether the second terminal supports file to transmit;In the case where the judgment result is yes, the file of storage is sent
To the second terminal.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Storage is from described the
The file that the first terminal of one terminal is transferred to the second terminal includes:It will download from the first terminal
During file transmits to the second terminal, detect that the second terminal disconnects extremely;Judge whether to continue from described
First terminal downloads the file to be downloaded do not downloaded;In the case where the judgment result is yes, will be downloaded from the first terminal
The file to be downloaded is stored.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:By described in storage
File is sent to before the second terminal, in addition to:The first instruction message is sent to the second terminal, wherein, described the
One instruction message is used to indicating that the first terminal is transferred to the state of the file of the second terminal to be passed to have downloaded
It is defeated.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:By described in storage
File is sent to after the second terminal, in addition to:The second instruction message is sent to the second terminal, wherein, described the
Two instruction message are used to indicate that the state that the first terminal is transferred to the file of the second terminal is to be transmitted.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Storage is from described the
The file that the first terminal of one terminal is transferred to the second terminal includes:It will download from the first terminal
During file transmits to the second terminal, detect that the first terminal disconnects extremely;Judge from the first terminal
Whether the file downloaded is complete;In the case where judged result is no, to the partial document downloaded from the first terminal
It is marked, for subsequently when detecting that the first terminal supports file transmission, continuing surplus from first terminal download
Remaining partial document.
By the present invention, the file that the first terminal from first terminal is transferred to second terminal is stored;Judge second eventually
Whether file is supported to transmit in end;In the case where the judgment result is yes, the file of storage is sent to second terminal.Due to by
The file that one terminal will be sent to second terminal is stored so that second terminal can have the ability to receive this document
When receive this document again, therefore, even in first terminal transmit file when, second terminal is not online, does not also interfere with text
The transmission of part, therefore, when can solve to carry out file transmission based on WI-FI terminal in correlation technique, in sender and recipient
The problem of one side can not then not carry out file transmission online.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the terminal of document transmission method of the embodiment of the present invention;
Fig. 2 is the flow chart of document transmission method according to embodiments of the present invention;
Fig. 3 is the flow chart of the document transmission method according to embodiments of the present invention based on intelligent uFi;
Fig. 4 is the asynchronous flow chart resumed of the file according to embodiments of the present invention based on intelligent uFi;
Fig. 5 is the structured flowchart of file transfer means according to embodiments of the present invention;
Fig. 6 is the structured flowchart of memory module 52 in file transfer means according to embodiments of the present invention;
Fig. 7 is the preferred structure block diagram one of file transfer means according to embodiments of the present invention;
Fig. 8 is the preferred structure block diagram two of file transfer means according to embodiments of the present invention;
Fig. 9 is the preferred structure block diagram of memory module 52 in file transfer means according to embodiments of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
The embodiment of the method that the embodiment of the present application 1 is provided can fill in terminal, terminal or similar computing
Put middle execution.Exemplified by operating in terminal, Fig. 1 is a kind of hardware knot of the terminal of document transmission method of the embodiment of the present invention
Structure block diagram.As shown in figure 1, terminal 10 can include one or more (one is only shown in figure) (processors 102 of processor 102
Micro-processor MCV or PLD FPGA etc. processing unit can be included but is not limited to), depositing for data storage
Reservoir 104 and the transmitting device 106 for communication function.It will appreciated by the skilled person that the knot shown in Fig. 1
Structure is only to illustrate, and it does not cause to limit to the structure of above-mentioned electronic installation.For example, terminal 10 may also include than shown in Fig. 1
More either less components have the configuration different from shown in Fig. 1.
Memory 104 can be used for the software program and module of storage application software, such as the file in the embodiment of the present invention
Programmed instruction/module corresponding to transmission method, processor 102 by operation be stored in software program in memory 104 and
Module, so as to perform various function application and data processing, that is, realize above-mentioned method.Memory 104 may include at a high speed with
Machine memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or other it is non-easily
The property lost solid-state memory.In some instances, memory 104 can further comprise depositing relative to processor 102 is remotely located
Reservoir, these remote memories can pass through network connection to terminal 10.The example of above-mentioned network include but is not limited to internet,
Intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network instantiation may include
The wireless network that the communication providerses of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, NIC), its can be connected by base station with other network equipments so as to it is mutual
Networking is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, and it is used
In wirelessly being communicated with internet.
A kind of document transmission method for running on above-mentioned terminal is provided in the present embodiment, and Fig. 2 is according to of the invention real
The flow chart of the document transmission method of example is applied, as shown in Fig. 2 the flow comprises the following steps:
Step S202, store the file that the first terminal from first terminal is transferred to second terminal;
Step S204, judges whether second terminal supports file to transmit;
Step S206, in the case where the judgment result is yes, the file of storage is sent to second terminal.
By above-mentioned steps, the file that first terminal will be sent to second terminal is stored so that second eventually
End can receive this document again when having the ability and receiving this document, therefore, when first terminal transmits file, second
Terminal is not online, does not also interfere with the transmission of file, therefore, can solve to enter style of writing based on WI-FI terminal in correlation technique
When part transmits, a side not online the problem of can not then carrying out file transmission in sender and recipient.
Alternatively, storing the first terminal from first terminal and being transferred to the file of second terminal includes:Will be from first
During the file of terminal downloads transmits to second terminal, detect that second terminal disconnects extremely;Judge whether to continue from the
The file to be downloaded that one terminal downloads have not been downloaded;In the case where the judgment result is yes, will be downloaded from first terminal to be downloaded
File is stored.Pass through above-mentioned steps so that during file transmits, second terminal disconnects extremely, and first terminal is not
It can stop transmitting file because of the disconnection of second terminal, still can continue to transmit file and store, so as to second terminal just
The file of the storage can be obtained when often reaching the standard grade, therefore, can be solved in document transmission process, a side disconnects extremely, the opposing party
The problem of can not continuing to transmit file.
Alternatively, before the file of storage is sent into second terminal, in addition to:The first instruction is sent to second terminal
Message, wherein, the first instruction message is used to indicating that first terminal is transferred to the state of the file of second terminal to be passed to have downloaded
It is defeated.Pass through above-mentioned steps so that second terminal quickly can go out after normal connection according to the condition adjudgement of the file of storage
Whether the file of the storage can be obtained.
Alternatively, after the file of storage is sent into second terminal, in addition to:The second instruction is sent to second terminal
Message, wherein, the second instruction message is used to indicate that the state that first terminal is transferred to the file of second terminal is to be transmitted.
By above-mentioned steps, it can determine that file has transferred according to the state, can preferentially be deleted in subsequent treatment.
Alternatively, storing the first terminal from first terminal and being transferred to the file of second terminal includes:Will be from first
During the file of terminal downloads transmits to second terminal, detect that first terminal disconnects extremely;Judge under first terminal
Whether the file of load is complete;In the case where judged result is no, the partial document downloaded from first terminal is marked, used
When subsequently detecting that first terminal supports file transmission, continue to download remainder file from first terminal.By above-mentioned
Step so that, still can be according to need under during subnormal connection after first terminal disconnects extremely during file transmits
Continue the file that transmission is not transmitted, and now whether second terminal does not interfere with the transmission of this document online, therefore, can
The problem of to solve in document transmission process, a side disconnects extremely, and the opposing party can not continue transmission file.
It should be noted that above-described embodiment is based on WI-FI terminal (for example, intelligent uFi) applied to different intelligent equipment
The scene of file transmission is carried out, by the memory space of WI-FI terminal, it is possible to achieve asynchronous document transmission process, and both sides
When online during user's difference, the transmission of file is completed by WI-FI terminal.
It is based on illustrating above-described embodiment exemplified by intelligent uFi carries out file transmission by different mobile phones below.For side
Just understand, the technical term that will be used is illustrated first.
List of devices:When the mobile phone of different user is connected to uFi by WI-FI, uFi can preserve a current institute in itself
The user list list of connection, the cell phone apparatus for being connected to the intelligent uFi, including equipment can be got by this document list
Mac addresses, and the IP address that current the equipment is distributed.
File transmission list:The table is stored in intelligent uFi, is made up of rule record, a record includes field
(record id, sender mac addresses, sender's file path, recipient mac addresses, recipient's storage address, uFi files
Location, transmission state), wherein transmission state include (in transmission, completed and (be transmitted with above-mentioned), do not complete it is to be uploaded,
Upload it is to be downloaded (with it is above-mentioned downloaded it is to be transmitted), cancelled upload)
Transmission log port:Service ends of the intelligent uFi as whole system, socket monitorings end is opened after uFi startups
Mouthful, when user carries out file transmission, initially set up socket and be connected to transmission log port, subscription client (for example,
APP on mobile phone) all devices for being connected to the intelligent uFi can be got and send information updating file transmission list.
Client receives port:When mobile phone is connected to intelligent WI-FI, after file opening transfer function, itself is opened
Socket listening ports, when different clients uses file transmitting function, by connecting this client ip port,
Complete file transmission and instruction interaction.
The process that below based on above-mentioned technical term different mobile phones are carried out with file transmission based on intelligent uFi illustrates.
After mobile phone is connected to intelligent uFi, initialization operation is carried out:The first step, pass through client (such as APP on mobile phone)
The connection with intelligent uFi transmission logs port is established, and sends request list of devices instruction, gets user online at present,
Obtain its mac address and its ip addresses of distribution, it is therefore an objective to obtain currently can real-time Transmission file user list;Second step,
The client according to corresponding to the machine ip addresses are establishes client and receives port, to monitor with the presence or absence of the request for sending file,
Allow to receive the request that other online users send file in real time in real time;3rd step, transmission query statement to intelligent uFi,
Inquiry is related to the abnormality record of this equipment, including needs to send file to uFi memory space situations as sender, with
And situation about downloading is not completed as recipient so that it is asynchronous to carry out file under sender or recipient's exception disconnection
Resume.
Normal flow in the case that two parties are online:When mobile phone A, which enables, sends a file to mobile phone B, mobile phone A hair
Data (sender mac addresses, it is to be confirmed to send file path, recipient mac addresses, and transmission state) are sent to intelligence
UFi, after intelligent uFi receives data by file transmission port, insert a transmission log;Receive file when mobile phone B receives
During request, if mobile phone B disagrees receiving, intelligent uFi is sent messages to, deletes this record, this time the end of transmission;Work as hand
Machine B determines after receiving that mobile phone B sends data (receiving file path, receive state as in transmission) and arrives intelligent uFi, and intelligent uFi is more
This new transmission log, if normal transmission is completed, when end of file transfer, send a command to intelligent uFi and this is transmitted
The state of record should be to have completed.
Flow under mobile phone A exception disconnection:If middle mobile phone A disconnects and file has not been transmitted completion, mobile phone B without
When method receives mobile phone A file, now if the text of unfinished download when the next mobile phone A such as mobile phone B selection is connected to the uFi
When part uploads to intelligent uFi memory spaces, then send data command and arrive intelligent uFi, transmission state is changed to it is unfinished to be uploaded,
Such purpose is after being connected to the uFi for next sender, can be arriving storage to intelligent uFi on unfinished file
Space, so that the follow-up recipient downloads, otherwise send instructions to intelligent uFi and delete this transmission log, mobile phone B simultaneously deletes this
The file of secondary unfinished download.
The flow for the situation that mobile phone B disconnects extremely::If middle mobile phone B disconnects, mobile phone A can choose whether not complete
File into transmission uploads to intelligent uFi memory spaces, if selection is to upload files to uFi, after the completion of upload, sends
Data command is changed to state to have uploaded to be downloaded to intelligent uFi, and the same uFi file addresses that update are the ground in intelligent uFi
Location, in order to when recipient is connected to the uFi next times, can complete to download unfinished text out of uFi memory space
Part.If selection is no, data command is sent to intelligent uFi, and is to have cancelled upload the state of this record.
The asynchronous flow resumed of file after abnormal disconnection:It is abnormal disconnected when sending hair A (mobile phone A) or recipient B (mobile phone B)
After exploitation is raw, and it is, by initializing third step, to read the text of the intelligent uFi when the next equipment is connected to the intelligent uFi
Part transmission list, it is divided into two kinds of situations:First, if the mac addresses of the equipment are in sender and if the state is unfinished
It is to be uploaded, if equipment selection uploads the situation of not completing, need to read file simultaneously according to the sender address of transmission list
Upload in intelligent uFi memory space, after upload, send data command, update uFi file addresses, and transmission shape
State is updated to have uploaded to be downloaded;If the equipment does not select transmitting file, data command is sent, the transmission of this record
State is updated to cancel upload.Second, if client mac addresses are in recipient, if inquiring this recording status
Uploaded to be downloaded, then client reads file and simultaneously completes to download according to the uFi file addresses of storage, after the completion of download, hair
Sending data command, for renewal transmission state to have completed, uFi itself deletes the file of storage to intelligent uFi;If inquire this
It is recorded as having cancelled upload, then the equipment sends instruction, and uFi deletes this record, and deletes the unfinished download of itself last time
File.
In order to facilitate understanding, above-described embodiment is illustrated in a flowchart below.Fig. 3 is according to of the invention real
The flow chart of the document transmission method based on intelligent uFi of example is applied, as shown in figure 3, the flow includes:It is connected to intelligent uFi's
Different clients, current user list information is got by transmission log port.
Step S302:Sender A (with above-mentioned mobile phone A) requests send a file to current online user recipient B;
Step S304:Sender A mac addresses, file path, recipient B (with above-mentioned mobile phone B) mac addresses, pass
The data such as defeated state (to be confirmed) are sent to intelligent uFi files transmission port, and intelligent uFi produces a new record after receiving;
Step S306:Reciever B receives sender A transmission file request, and then chooses whether file to be received, such as
Fruit recipient B does not receive file, then goes to step S308, if recipient B selections receive file, goes to step S310;
Step S308:Recipient B, which sends to delete to instruct, arrives intelligent uFi, and uFi deletes this transmission log, and this time file passes
Defeated end;
Step S310:For recipient path is received to intelligent uFi, intelligent uFi updates connecing for this record after receiving data
By address, transmission state is in transmission;
Step S312:In transmitting procedure, if that sender A is exited be present, i.e. the situation that sender A disconnects,
Situation about being disconnected in the event of sender A, then go to step S314, if the situation of sender A disconnections does not occur, goes to
Step S320;
Step S314:Reciever B can choose whether the memory space for allowing sender A transmission files to intelligent uFi, if
In the case that recipient B selections are, then step S316 is gone to, if in the case that recipient B selections are no, go to step
S318;
Step 316:Recipient B sends modification instruction, and it is not complete to be uploaded, mesh that intelligent uFi, which changes this transmission log,
Be after being reached the standard grade for next sender, can be to be uploaded not complete using the state of this transmission log, and then select not complete
Into file upload to intelligent uFi memory space, so as to after the completion of uploading so that the recipient of this record completes file
Asynchronous download;
Step S318:Send and delete instruction, intelligent uFi deletes this transmission log, and recipient B deletes what is locally downloaded
Unfinished file;
Step S320:The situation that recipient B disconnects is judged whether, situation about being disconnected if there is reciever B, is then turned
To step S322, situation about being disconnected if there is no reciever B, then step S328 is gone to;
Step S322:Sender A chooses whether to upload to intelligent uFi memory spaces, if the situation that sender A selections are
Under, then step S324 is gone to, if in the case that sender A selections are no, goes to step S326;
Step S324:Sender A uploads files to intelligent uFi memory space, and the uFi of the list is updated after the completion of upload
File address, and more new state is to be downloaded to have uploaded, in order to next recipient B can be according to the state that this is recorded
Upload it is to be downloaded, can from this record uFi file addresses, can select out of uFi memory space download do not complete
File, complete the asynchronous transmission of file;
Step S326:Data command is sent, uFi updates this transmission log and do not cancelled upload;
Step S328:After being sent completely, modification transmission state is to have completed.
Illustrated below for laggard style of writing asynchronous resume of part of abnormal disconnection, Fig. 4 is base according to embodiments of the present invention
In the asynchronous flow chart resumed of intelligent uFi file, disconnected as shown in figure 4, being disconnected including sender with recipient.Sent out when next time
The side of sending or reciever are connected in intelligent uFi, send instructions to uFi, obtain the file transmission list of the intelligent uFi, the flow
Including:
Step S402:Instantly when secondary device is connected to uFi (with above-mentioned mobile phone), uFi is sent instructions to, obtains the equipment phase
The transmission log list of pass;
Step S404:Judge that active user Mac addresses have the sender or recipient of this transmission log, if
Recipient, then step S406 is gone to, if sender, then go to step S418;
Step S406:Judge whether state has uploaded to be downloaded and judged that uFi file addresses whether there is, if it is determined that
UFi file addresses are present, then go to step S408, if it is determined that uFi file addresses are not present, then go to step S414,;
Step S408:User chooses whether file to be downloaded, if user selects to download file, goes to step S410,
If file is not downloaded in user's selection, step S412 is gone to;
Step S410:Download file, after the completion of change this and be recorded as having completed, delete this record and its storage text
Part;
Step S412:Data command is sent, this record and its storage file are deleted on intelligent uFi;
Step S414:Judge whether this recording status is to have cancelled upload, if it is determined that this transmission log is to have taken
Disappear upload, then goes to step S416;
Step S416:Data command is sent, this record and the unfinished download of the storage of itself are deleted on intelligent uFi
File;
Step S418:To be uploaded not complete in state, user chooses whether that the storage for uploading files to intelligent uFi is empty
Between, if transmitting file in user's selection, step S420 is gone to, if user does not select transmitting file, goes to step S422;
Step S420:Upper transmitting file, the server address of the list is updated after the completion of upload, and more new state is to have uploaded
It is to be downloaded, so that the recipient of this record completes file asynchronous transmission;
Step S422:Data command is sent, this recording status is revised as on intelligent uFi to have cancelled upload.
With reference to above-described embodiment, when the file based on WI-FI terminal (for example, intelligent uFi) transmits, sender be present
Or the situation that recipient disconnects, when there is the above situation, following processing mode can be used:When the situation that sender disconnects extremely
Under, recipient can select to ask next sender to upload the unfinished file sent when being connected to WI-FI terminal to WI-
The memory space of FI terminals;Equally, when the situation that recipient disconnects extremely occurs, the transmission that sender can select does not complete
Memory space of the file of transmission to WI-FI terminal, when being connected to WI-FI terminal next time so as to recipient, is completed under file
Carry.When being connected to the WI-FI terminal as sender next time, inquiry needs the file uploaded, and the file to be transmitted is deposited
In the memory space for storing up intelligent WI-FI terminal;When being equally connected to the WI-FI terminal next time as recipient, inquiry
The file status downloaded is not completed, if required file is temporarily stored in the memory space of intelligent WI-FI terminal by sender,
So recipient can be done directly download from intelligent WI-FI terminal.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
A kind of file transfer means are additionally provided in the present embodiment, and the device is used to realize above-described embodiment and preferred reality
Mode is applied, had carried out repeating no more for explanation.As used below, term " module " can realize the soft of predetermined function
The combination of part and/or hardware.Although device described by following examples is preferably realized with software, hardware, or
The realization of the combination of software and hardware is also what may and be contemplated.
Fig. 5 is the structured flowchart of file transfer means according to embodiments of the present invention, as shown in figure 5, the device includes:
Memory module 52, the file of second terminal is transferred to for storing the first terminal from first terminal;
Judge module 54, above-mentioned memory module 52 is connected to, for judging whether second terminal supports file to transmit;
First sending module 56, above-mentioned judge module 54 is connected to, in the case where the judgment result is yes, will store
File be sent to second terminal.
Fig. 6 is the structured flowchart of memory module 52 in file transfer means according to embodiments of the present invention, as shown in fig. 6,
The memory module 52 includes:First detection unit 62, the first judging unit 64 and download unit 66, are illustrated separately below.
First detection unit 62, for during it will be transmitted from the file that first terminal is downloaded to second terminal, examining
Second terminal is measured to disconnect extremely;
First judging unit 64, above-mentioned first detection unit 62 is connected to, for judging whether to continue under first terminal
Carry the file to be downloaded do not downloaded;
Download unit 66, the first judging unit 64 is connected to, will be from first eventually in the case where the judgment result is yes
Download file to be downloaded and stored in end.
Fig. 7 is the preferred structure block diagram one of file transfer means according to embodiments of the present invention, as shown in fig. 7, the device
In addition to including all modules shown in Fig. 5, in addition to:Second sending module 72, disappear for sending the first instruction to second terminal
Breath, wherein, the first instruction message is used to indicating that first terminal is transferred to the state of the file of second terminal to be transmitted to have downloaded.
Fig. 8 is the preferred structure block diagram two of file transfer means according to embodiments of the present invention, as shown in figure 8, the device
In addition to including all modules shown in Fig. 5 and Fig. 7, in addition to:3rd sending module 82, refer to for sending second to second terminal
Show message, wherein, the second instruction message is used to indicate that the state that first terminal is transferred to the file of second terminal is to have transferred
Into.
Fig. 9 is the preferred structure block diagram of memory module 52 in file transfer means according to embodiments of the present invention, such as Fig. 9 institutes
Show, the memory module 52 in addition to including all units shown in Fig. 6, in addition to:
Second detection unit 92, for during it will be transmitted from the file that first terminal is downloaded to second terminal, examining
First terminal is measured to disconnect extremely;
Second judging unit 94, above-mentioned second detection unit 92 is connected to, for the file for judging to download from first terminal
It is whether complete;
Indexing unit 96, be connected to above-mentioned second judging unit 94, in judged result in the case of no, to from the
The partial document of one terminal downloads is marked, for subsequently when detecting that first terminal supports file transmission, continuing from the
One terminal downloads remainder file.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any
The form of combination is located in different processors respectively.
Embodiment 3
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
The program code for performing following steps to be arranged to storage to be used for:
S1, store the file that the first terminal from first terminal is transferred to second terminal;
S2, judges whether second terminal supports file to transmit;
S3, in the case where the judgment result is yes, the file of storage is sent to second terminal.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Storage comes from first
The file that the first terminal of terminal is transferred to second terminal includes:
S1, during it will be transmitted from the file that first terminal is downloaded to second terminal, detect second terminal exception
Disconnect;
S2, judge whether to continue to download the file to be downloaded do not downloaded from first terminal;
S3, in the case where the judgment result is yes, file to be downloaded will be downloaded from first terminal and stored.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:By the text of storage
Part is sent to before second terminal, in addition to:
S1, the first instruction message is sent to second terminal, wherein, the first instruction message is used to indicate that first terminal is transferred to
The state of the file of second terminal is to be transmitted to have downloaded.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:By the text of storage
Part is sent to after second terminal, in addition to:
S1, the second instruction message is sent to second terminal, wherein, the second instruction message is used to indicate that first terminal is transferred to
The state of the file of second terminal is to be transmitted.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Storage comes from first
The file that the first terminal of terminal is transferred to second terminal includes:
S1, during it will be transmitted from the file that first terminal is downloaded to second terminal, detect first terminal exception
Disconnect;
S2, judge from first terminal download file it is whether complete;
S3, in the case where judged result is no, the partial document downloaded from first terminal is marked, for follow-up
When detecting that first terminal supports file transmission, continue to download remainder file from first terminal.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Storage comes from
The first terminal of first terminal is transferred to the file of second terminal;Judge whether second terminal supports file to transmit;Judging to tie
In the case that fruit is is, the file of storage is sent to second terminal.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Storage comes from
The file that the first terminal of first terminal is transferred to second terminal includes:By from the file that first terminal is downloaded to second terminal
During transmission, detect that second terminal disconnects extremely;Judge whether to continue to download under the treating do not downloaded from first terminal
Published article part;In the case where the judgment result is yes, file to be downloaded will be downloaded from first terminal to be stored.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:It will store
File be sent to before second terminal, in addition to:The first instruction message is sent to second terminal, wherein, the first instruction message
For indicating that it is to be transmitted to have downloaded that first terminal is transferred to the state of the file of second terminal.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:It will store
File be sent to after second terminal, in addition to:The second instruction message is sent to second terminal, wherein, the second instruction message
For indicating that the state that first terminal is transferred to the file of second terminal is to be transmitted.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Storage comes from
The file that the first terminal of first terminal is transferred to second terminal includes:By from the file that first terminal is downloaded to second terminal
During transmission, detect that first terminal disconnects extremely;Judge from first terminal download file it is whether complete;Judging to tie
In the case that fruit is no, the partial document downloaded from first terminal is marked, for subsequently detecting first terminal branch
When holding file transmission, continue to download remainder file from first terminal.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment
Example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
- A kind of 1. document transmission method, it is characterised in that including:The first terminal of the storage from first terminal is transferred to the file of second terminal;Judge whether the second terminal supports file to transmit;In the case where the judgment result is yes, the file of storage is sent to the second terminal.
- 2. according to the method for claim 1, it is characterised in that the first terminal of the storage from the first terminal passes Being defeated by the file of the second terminal includes:During it will be transmitted from the file that the first terminal is downloaded to the second terminal, the second terminal is detected It is abnormal to disconnect;Judge whether to continue to download the file to be downloaded do not downloaded from the first terminal;In the case where the judgment result is yes, the file to be downloaded will be downloaded from the first terminal to be stored.
- 3. according to the method for claim 2, it is characterised in that the file of storage is being sent to the second terminal Before, in addition to:The first instruction message is sent to the second terminal, wherein, the first instruction message is used to indicate the first terminal The state for being transferred to the file of the second terminal is to be transmitted to have downloaded.
- 4. according to the method for claim 2, it is characterised in that the file of storage is being sent to the second terminal Afterwards, in addition to:The second instruction message is sent to the second terminal, wherein, the second instruction message is used to indicate the first terminal The state for being transferred to the file of the second terminal is to be transmitted.
- 5. according to the method for claim 1, it is characterised in that the first terminal of the storage from the first terminal passes Being defeated by the file of the second terminal includes:During it will be transmitted from the file that the first terminal is downloaded to the second terminal, the first terminal is detected It is abnormal to disconnect;Judge from the first terminal download the file it is whether complete;In the case where judged result is no, the partial document downloaded from the first terminal is marked, for subsequently existing When detecting that the first terminal supports file transmission, continue to download remainder file from the first terminal.
- A kind of 6. file transfer means, it is characterised in that including:Memory module, the file of second terminal is transferred to for storing the first terminal from first terminal;Judge module, for judging whether the second terminal supports file to transmit;First sending module, in the case where the judgment result is yes, the file of storage being sent into described second eventually End.
- 7. device according to claim 6, it is characterised in that the memory module includes:First detection unit, for will from the file that the first terminal is downloaded to the second terminal transmit during, Detect that the second terminal disconnects extremely;First judging unit, for judging whether to continue to download the file to be downloaded do not downloaded from the first terminal;Download unit, for that in the case where the judgment result is yes, the file to be downloaded will be downloaded from the first terminal and entered Row storage.
- 8. device according to claim 7, it is characterised in that also include:Second sending module, for sending the first instruction message to the second terminal, wherein, the first instruction message is used for It is to be transmitted to have downloaded to indicate that the first terminal is transferred to the state of the file of the second terminal.
- 9. device according to claim 7, it is characterised in that also include:3rd sending module, for sending the second instruction message to the second terminal, wherein, the second instruction message is used for Indicate that the state that the first terminal is transferred to the file of the second terminal is to be transmitted.
- 10. device according to claim 6, it is characterised in that the memory module includes:Second detection unit, for will from the file that the first terminal is downloaded to the second terminal transmit during, Detect that the first terminal disconnects extremely;Second judging unit, for judge from the first terminal download the file it is whether complete;Indexing unit, in the case of being no in judged result, rower is entered to the partial document downloaded from the first terminal Note, for subsequently when detecting that the first terminal supports file transmission, continuing to download remainder from the first terminal File.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610555909.2A CN107623706A (en) | 2016-07-13 | 2016-07-13 | Document transmission method and device |
PCT/CN2017/077724 WO2018010448A1 (en) | 2016-07-13 | 2017-03-22 | File transmission method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610555909.2A CN107623706A (en) | 2016-07-13 | 2016-07-13 | Document transmission method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107623706A true CN107623706A (en) | 2018-01-23 |
Family
ID=60952526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610555909.2A Withdrawn CN107623706A (en) | 2016-07-13 | 2016-07-13 | Document transmission method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107623706A (en) |
WO (1) | WO2018010448A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111294396A (en) * | 2020-01-20 | 2020-06-16 | 咪咕数字传媒有限公司 | File transmission method and device, electronic equipment and storage medium |
CN113590565A (en) * | 2021-08-12 | 2021-11-02 | 湖南智领通信科技有限公司 | Method, system, equipment and medium for transmitting data of multiple terminals in series connection |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102217283A (en) * | 2011-05-25 | 2011-10-12 | 华为技术有限公司 | Method and apparatus for pp file transmission |
EP2680113A1 (en) * | 2012-02-20 | 2014-01-01 | Huawei Technologies Co., Ltd. | File data transmission method and device |
CN104796460A (en) * | 2015-03-26 | 2015-07-22 | 小米科技有限责任公司 | File transmission method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980399B (en) * | 2014-04-08 | 2020-04-21 | 腾讯科技(深圳)有限公司 | File transmission method, client and proxy server |
US10051035B2 (en) * | 2014-06-03 | 2018-08-14 | Verizon Patent And Licensing Inc. | Method and apparatus for providing secure file transmission |
-
2016
- 2016-07-13 CN CN201610555909.2A patent/CN107623706A/en not_active Withdrawn
-
2017
- 2017-03-22 WO PCT/CN2017/077724 patent/WO2018010448A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102217283A (en) * | 2011-05-25 | 2011-10-12 | 华为技术有限公司 | Method and apparatus for pp file transmission |
EP2680113A1 (en) * | 2012-02-20 | 2014-01-01 | Huawei Technologies Co., Ltd. | File data transmission method and device |
CN104796460A (en) * | 2015-03-26 | 2015-07-22 | 小米科技有限责任公司 | File transmission method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111294396A (en) * | 2020-01-20 | 2020-06-16 | 咪咕数字传媒有限公司 | File transmission method and device, electronic equipment and storage medium |
CN113590565A (en) * | 2021-08-12 | 2021-11-02 | 湖南智领通信科技有限公司 | Method, system, equipment and medium for transmitting data of multiple terminals in series connection |
CN113590565B (en) * | 2021-08-12 | 2023-12-22 | 湖南智领通信科技有限公司 | Series multi-terminal data transmission method, system, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018010448A1 (en) | 2018-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4963927B2 (en) | Method and computer readable storage medium for determining cell adjacency state and operation | |
EP1015987B1 (en) | Method and apparatus for synchronizing implementation of configuration information in a communication system | |
US8509754B2 (en) | Distributing mobile-device applications | |
CN101068201B (en) | Communication structure, access point in communicaiton frame, and method for transmitting data packet | |
CN108377202A (en) | The distribution method, apparatus and system of smart machine | |
CN105610632A (en) | Virtual network device and related method | |
CN106572148A (en) | Intelligent product network configuration method and network configuration system | |
CN108418606A (en) | Data transmission method for uplink and device, multi-line system | |
TWI551086B (en) | Relay server and relay communication system | |
CN104247339A (en) | Home network packet delivery | |
CN103532851B (en) | Data flow processing method in distributed aggregated link network and device | |
CN102224495B (en) | Mail arrival control system, mail arrival control method, and mobile terminal | |
CN107645789A (en) | The method, apparatus and system of networking | |
CN111465873A (en) | Data sending method and electronic equipment | |
CN107623706A (en) | Document transmission method and device | |
US9131431B2 (en) | Wireless access point device, network system and network auto-establishing method of the same | |
CN109587074A (en) | Message processing method, device, storage medium and processor | |
CN110071950B (en) | Information transmission method, transfer device, terminal, controlled device and storage medium | |
JP5327896B2 (en) | Wireless LAN access point and wireless terminal connection maintaining method | |
CN107786448A (en) | The method and apparatus for establishing the forward-path of Business Stream | |
CN104836827B (en) | Data processing method and system based on asymmetric P2P networks | |
US20140012956A1 (en) | Replicating data | |
CN113194477A (en) | Networking method and device for intelligent equipment, electronic equipment and storage medium | |
KR100983772B1 (en) | Apparatus and method for processing packet data in wireless packet data network | |
JP7005548B2 (en) | Communication equipment and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180123 |