CN105430642B - Document transmission method and device - Google Patents

Document transmission method and device Download PDF

Info

Publication number
CN105430642B
CN105430642B CN201510698666.3A CN201510698666A CN105430642B CN 105430642 B CN105430642 B CN 105430642B CN 201510698666 A CN201510698666 A CN 201510698666A CN 105430642 B CN105430642 B CN 105430642B
Authority
CN
China
Prior art keywords
terminal
connection
information
address
target position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510698666.3A
Other languages
Chinese (zh)
Other versions
CN105430642A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510698666.3A priority Critical patent/CN105430642B/en
Publication of CN105430642A publication Critical patent/CN105430642A/en
Application granted granted Critical
Publication of CN105430642B publication Critical patent/CN105430642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

Present disclose provides document transmission method and devices, which comprises after being successfully established the first connection by wireless network and second terminal, receives the second filesystem information of the second terminal that second terminal is sent by first connection;Export the first filesystem information and the second filesystem information of first terminal;In the first filesystem information and the second filesystem information of output, the target position information for needing the target position of the file destination and stored target file that transmit is obtained respectively;File destination and target position information are sent to second terminal, so that second terminal is according to target position information, stored target file to target position by the first connection.In the disclosure, user can directly choose the file destination for needing to be transferred to second terminal on first terminal, and can choose the target position that file destination is stored in second terminal, improve the convenience of file transmission.

Description

Document transmission method and device
Technical field
This disclosure relates to the communications field more particularly to document transmission method and device.
Background technique
With the continuous development of mobile phone software and hardware technology and computer technology, terminal such as mobile phone and computer etc., increasingly As the big core in life.
In the related technology, if necessary from a terminal transmission file to another terminal, then receiving the terminal of file File can be stored on scheduled a certain position, user cannot carry out the selection of storage position by sending the terminal of file, Convenience is poor, and user experience is low.
Summary of the invention
In view of this, solution is needed in the related technology in two terminals present disclose provides document transmission method and device Between carry out file transmission when, user cannot by send file terminal carry out storage positions of files selection, lead to file The convenience of transmission is poor, the low problem of user experience.
According to the first aspect of the embodiments of the present disclosure, a kind of document transmission method is provided, first terminal, the method are used for Include:
After being successfully established the first connection by wireless network and second terminal, the second terminal is received by described the Second filesystem information of the second terminal that one connection is sent;
Export the first filesystem information and second filesystem information of the first terminal;
In first filesystem information and second filesystem information of output, obtains need to transmit respectively File destination and store the file destination target position target position information;
The file destination and the target position information are sent to the second terminal by first connection, so that The second terminal stores the file destination to the target position according to the target position information.
Optionally, before being successfully established the first connection by wireless network and second terminal, the method also includes:
The terminal list for exporting the alternative terminal prestored, wherein the alternative terminal has accessed wireless network;
It obtains by choosing operation to choose the second terminal for needing to receive file in the terminal list.
Optionally, the first connection is established by wireless network and second terminal, comprising:
Obtain the terminal Internet Protocol IP address of the second terminal;
According to the IP address of terminal, connection request message is sent to the second terminal by wireless network;
After receiving the connection response message that the second terminal returns, determine through wireless network and described second eventually End is successfully established the first connection.
Optionally, the terminal Internet Protocol IP address for obtaining the second terminal, comprising:
The second connection is established with purpose router;
After being successfully established described second with the purpose router and connecting, the institute prestored is sent by second connection The terminal media access control MAC addresses of second terminal are stated to the purpose router, so that the purpose router is prestoring Terminal MAC Address and IP address between corresponding relationship list in, according to the terminal MAC address received, obtain The IP address of terminal of the second terminal;
Receive the IP address of terminal that the purpose router returns.
According to the second aspect of an embodiment of the present disclosure, a kind of document transmission method is provided, second terminal, the method are used for Include:
After being successfully established the first connection by wireless network and first terminal, the second file of the second terminal is obtained System information;
Second filesystem information is sent to the first terminal by first connection;
The file destination and target position information that the first terminal is sent are received by first connection, wherein described Target position information is the mesh for the storage file destination that the first terminal is chosen in second filesystem information The location information of cursor position;
According to the target position information, the file destination is stored to the target position.
Optionally, the first connection is established by wireless network and first terminal, comprising:
Receive the connection request message that first terminal establishes the first connection by the request that wireless network is sent;
Connection response message is sent to the first terminal, so that the first terminal disappears receiving the connection response After breath, determines and be successfully established first connection.
Optionally, authentication information is carried in the connection request message;
The transmission connection response message is to the first terminal, comprising:
Verify the authentication information;
After being verified to the authentication information, connection response message is sent to the first terminal.
According to the third aspect of an embodiment of the present disclosure, a kind of file transfer means are provided, first terminal, described device are used for Include:
First receiving module is configured as receiving after being successfully established the first connection by wireless network and second terminal Second filesystem information of the second terminal that the second terminal is sent by first connection;
First output module is configured as exporting the first filesystem information of the first terminal and second file System information;
First obtains module, is configured as believing in first filesystem information of output and second file system In breath, obtains the file destination for needing to transmit respectively and store the target position information of the target position of the file destination;
First sending module is configured as sending the file destination and target position letter by first connection The second terminal is ceased, so that the second terminal stores the file destination described according to the target position information Target position.
Optionally, described device further include:
Second output module is configured as the terminal list for the alternative terminal that output prestores, wherein the alternative terminal is Through accessing wireless network;
Second obtains module, is configured as acquisition and needs to receive file by choosing operation to choose in the terminal list Second terminal.
Optionally, first receiving module includes:
Acquisition submodule is configured as obtaining the terminal Internet Protocol IP address of the second terminal;
First sending submodule is configured as sending connection request according to the IP address of terminal by wireless network and disappearing Cease the second terminal;
It determines submodule, is configured as after receiving the connection response message that the second terminal returns, determination passes through Wireless network and the second terminal are successfully established the first connection.
Optionally, the acquisition submodule includes:
Connection establishment unit is configured as establishing the second connection with purpose router;
First transmission unit is configured as passing through institute after being successfully established described second with the purpose router and connecting The terminal media access control MAC addresses for the second terminal that the second connection transmission prestores are stated to the purpose router, are made The purpose router in the corresponding relationship list between the MAC Address and IP address of the terminal prestored, according to receiving The terminal MAC address, obtain the IP address of terminal of the second terminal;
Receiving unit is configured as receiving the IP address of terminal that the purpose router returns.
According to a fourth aspect of embodiments of the present disclosure, a kind of file transfer means are provided, second terminal, described device are used for Include:
Third obtains module, is configured as obtaining after being successfully established the first connection by wireless network and first terminal Second filesystem information of the second terminal;
Second sending module is configured as sending second filesystem information by first connection to described the One terminal;
Second receiving module, be configured as receiving by first connection file destination that the first terminal is sent and Target position information, wherein the target position information is that the first terminal is chosen in second filesystem information Store the location information of the target position of the file destination;
File storage module is configured as storing the file destination to the target according to the target position information Position.
Optionally, the third acquisition module includes:
Receiving submodule is configured as receiving the company that first terminal establishes the first connection by the request that wireless network is sent Connect request message;
Second sending submodule is configured as sending connection response message to the first terminal, eventually so as to described first End determines after receiving the connection response message and has been successfully established first connection.
Optionally, authentication information is carried in the connection request message;
Second sending submodule includes:
Authentication unit is configured to verify that the authentication information;
Second transmission unit is configured as after being verified to the authentication information, sends connection response message to institute State first terminal.
According to a fifth aspect of the embodiments of the present disclosure, a kind of file transfer means are provided, first terminal is used for, comprising:
Processor;
For storing the receptacle of processor-executable instruction;
Wherein, the processor is configured to:
After being successfully established the first connection by wireless network and second terminal, the second terminal is received by described the Second filesystem information of the second terminal that one connection is sent;
Export the first filesystem information and second filesystem information of the first terminal;
In first filesystem information and second filesystem information of output, obtains need to transmit respectively File destination and store the file destination target position target position information;
The file destination and the target position information are sent to the second terminal by first connection, so that The second terminal stores the file destination to the target position according to the target position information.
According to a sixth aspect of an embodiment of the present disclosure, a kind of file transfer means are provided, second terminal is used for, comprising:
Processor;
For storing the receptacle of processor-executable instruction;
Wherein, the processor is configured to:
After being successfully established the first connection by wireless network and first terminal, the second file of the second terminal is obtained System information;
Second filesystem information is sent to the first terminal by first connection;
The file destination and target position information that the first terminal is sent are received by first connection, wherein described Target position information is the mesh for the storage file destination that the first terminal is chosen in second filesystem information The location information of cursor position;
According to the target position information, the file destination is stored to the target position.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiment of the present disclosure, first terminal can first establish the first connection by wireless network and second terminal, in turn The second filesystem information of itself can be sent to the first terminal by first connection by the second terminal.With Family can select respectively in the first filesystem information of itself and second filesystem information that first terminal exports The target position of the file destination and the storage file destination that need to transmit, improves the convenience of file transmission, user's body It tests.
In the embodiment of the present disclosure, target can be carried out by wireless network between the first terminal and the second terminal The transmission of file, wherein the first terminal and the second terminal may be in same local area network, also may be at difference Local area network in, availability is high.
In the embodiment of the present disclosure, the first terminal, which can be sent, carries the connection request message of authentication information to described the Two terminals verify the authentication information by the second terminal, and after being verified, first terminal can be with second terminal The first connection is established, to carry out the transmission of file destination subsequently through first connection, highly-safe, user experience is good.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of disclosure document transmission method flow chart shown according to an exemplary embodiment;
Fig. 2 is the disclosure another document transmission method flow chart shown according to an exemplary embodiment;
Fig. 3 is the disclosure another document transmission method flow chart shown according to an exemplary embodiment;
Fig. 4 is the disclosure another document transmission method flow chart shown according to an exemplary embodiment;
Fig. 5 is the disclosure another document transmission method flow chart shown according to an exemplary embodiment;
Fig. 6 is the disclosure another document transmission method flow chart shown according to an exemplary embodiment;
Fig. 7 is the disclosure another document transmission method flow chart shown according to an exemplary embodiment;
Fig. 8 is the disclosure another document transmission method flow chart shown according to an exemplary embodiment;
Fig. 9 is a kind of disclosure schematic diagram of a scenario of file transmission shown according to an exemplary embodiment;
Figure 10 is a kind of disclosure file transfer means block diagram shown according to an exemplary embodiment;
Figure 11 is the disclosure another file transfer means block diagram shown according to an exemplary embodiment;
Figure 12 is the disclosure another file transfer means block diagram shown according to an exemplary embodiment;
Figure 13 is the disclosure another file transfer means block diagram shown according to an exemplary embodiment;
Figure 14 is the disclosure another file transfer means block diagram shown according to an exemplary embodiment;
Figure 15 is the disclosure another file transfer means block diagram shown according to an exemplary embodiment;
Figure 16 is the disclosure another file transfer means block diagram shown according to an exemplary embodiment;
Figure 17 is an a kind of disclosure structural representation for file transfer means shown according to an exemplary embodiment Figure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
As shown in Figure 1, Fig. 1 is a kind of document transmission method flow chart shown according to an exemplary embodiment, for the One terminal, comprising the following steps:
In step 103, after being successfully established the first connection by wireless network and second terminal, described second is received eventually Second filesystem information of the second terminal that end is sent by first connection.
Terminal involved in the embodiment of the present disclosure can be various intelligent terminals or wearable terminal etc., for example, intelligent hand Machine, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), Intelligent bracelet, smartwatch etc..
Optionally, first terminal is before being successfully established the first connection by wireless network and second terminal, the file Transmission method is as shown in Fig. 2, can also include:
In a step 101, the terminal list of the alternative terminal prestored is exported, wherein the alternative terminal has accessed wirelessly Network.
In this step, optionally, user can log in preassembled file transfer application on first terminal Whether (Application, APP) is judged automatically by the first terminal and currently needs to carry out file transmission.Such as the file Transmission APP can detecte user whether have selected programmable button or have input with the matched gesture of default gesture, when user chooses With after the default matched gesture of gesture, determination currently needs to carry out file transmission for programmable button or input.At this point, described One terminal can export the terminal list of the alternative terminal prestored by the relevant technologies, so that user selects in the terminal list Select the terminal that will receive file.Wherein, the alternative terminal has currently accessed wireless network.
In a step 102, obtaining to pass through chooses operation to choose the second end for needing to receive file in the terminal list End.
After first terminal exports the terminal list, by user by choosing operation to choose needs in the terminal list The second terminal of file transmission is carried out, the first terminal obtains the second terminal that user chooses according to the relevant technologies.
After the first terminal obtains the second terminal, executes in step 103 and pass through wireless network and second Terminal establishes the first connection, as shown in figure 3, Fig. 3 is another file transmission side shown on the basis of embodiment shown in Fig. 1 Method flow chart may include:
In step 103-1, the terminal Internet Protocol IP address of the second terminal is obtained.
In the embodiment of the present disclosure, further, step 103-1 is as shown in figure 4, Fig. 4 is the basis of embodiment shown in Fig. 3 On another document transmission method flow chart that shows, may include:
In step 103-11, the second connection is established with purpose router.
In this step, if purpose router is ordinary router, first terminal can prestore the routing of purpose router Device IP address establishes the second connection according to the relevant technologies and the purpose router by the IP address of router prestored.
Alternatively, the first terminal does not need to prestore the IP address of router, but it is periodically outside by purpose router The service set (Service Set Identifier, SSID) for issuing itself, when the first terminal accesses wireless network Afterwards, it is scanned automatically in default frequency range, if the SSID is arrived in scanning, the relevant technologies and the purpose road can be passed through Second connection is established by device.
If purpose router is intelligent router, and the first terminal once passes through wirelessly with the purpose router Network established connection, then the first terminal is again without the IP address of router is prestored, when first terminal accesses nothing After gauze network, purpose router can establish the second connection with the first terminal automatically according to linkage record.
In step 103-12, after being successfully established described second with the purpose router and connecting, pass through described second Connection sends the terminal media access control MAC addresses of the second terminal prestored to the purpose router, so that described Purpose router is in the corresponding relationship list between the MAC Address and IP address of the terminal prestored, according to receiving Terminal MAC address obtains the IP address of terminal of the second terminal.
In this step, first terminal is according to the relevant technologies, through second connection having built up, described in prestoring Address terminal media access control (Media Access Control, MAC) of second terminal is sent to the purpose router On.
The correspondence between the MAC Address and IP address of all terminals for being connected to itself has been housed on purpose router Relation list can search the corresponding relationship list, finally obtain described second after receiving the terminal MAC address The IP address of terminal of terminal.
In step 103-13, the IP address of terminal that the purpose router returns is received.
In this step, after purpose router gets the IP address of terminal, connect by described second by the terminal IP address returns to the first terminal.
In step 103-2, according to the IP address of terminal, connection request message is sent to described the by wireless network Two terminals.
In this step, after the first terminal receives the IP address of terminal that the purpose router returns, pass through Connection request message is sent to the second terminal by wireless network.
In step 103-3, after receiving the connection response message that the second terminal returns, determination passes through wireless network Network and the second terminal are successfully established the first connection.
In this step, second terminal can return to connection response message described in after receiving the connection request message First terminal, it is determining to be successfully established institute with the second terminal so that the first terminal is according to the connection response message State the first connection.
In the embodiment of the present disclosure, the first terminal is established using aforesaid way and the second terminal by wireless network First connection, wherein the first terminal and the second terminal may be in same local area network, can also be respectively at In different local area networks, availability is high.
Optionally, first terminal is sent in the connection request message of the second terminal and carries authentication information, described The information for authenticating users that authentication information can be first terminal and second terminal consults in advance.Wherein, institute Stating authentication information can be combination or random train of username and password etc..Second terminal is receiving the connection request After message, the authentication information wherein carried is verified by the relevant technologies, if the verification passes, then the connection is returned and rings Message is answered, otherwise can send the refusal connection message for refusing first connection to the first terminal.
In the embodiment of the present disclosure, when the first terminal is according to the above process, pass through wireless network and second terminal success After establishing the first connection, it is possible to further receive second end that the second terminal is sent by first connection Second filesystem information at end may include disc information and catalog structure information etc. in filesystem information.
At step 104, the first filesystem information and second filesystem information of the first terminal are exported.
In this step, the first terminal after receiving second filesystem information, can by the relevant technologies, The first file of the first terminal is shown for example, by using graphic user interface (Graphical User Interface, GUI) System information and second filesystem information.
In step 105, in first filesystem information and second filesystem information of output, respectively It obtains the file destination for needing to transmit and stores the target position information of the target position of the file destination.
In this step, user can choose in first filesystem information that the first terminal exports to be needed to pass Defeated file destination, goal file can be single file or entire file.
In addition, user can also choose and will store in second filesystem information that the first terminal exports The target position of the file destination obtains the target of the target position by the first terminal according to the relevant technologies automatically Location information.
In step 106, the file destination and the target position information are sent described in by first connection Second terminal, so that the second terminal stores the file destination to the target position according to the target position information.
In this step, the first terminal is connected by establish before described first by the mesh according to the relevant technologies Mark file and the target position information are sent to the second terminal.After the second terminal receives, according to the relevant technologies, deposit The file destination is put to the target position.
In the embodiment of the present disclosure, the above process can transmit APP by the preassembled file of first terminal and realize.Example Such as, when user is identified using the first terminal of the first terminal, the file logged on the first terminal transmits APP Afterwards, the file transmission APP exports the terminal list of alternative terminal, and user can choose reception file in the terminal list Second terminal.Optionally, the number of the second terminal can be one or more.
After user chooses the second terminal, wireless network and described the are passed through by the file transmission APP on first terminal Two terminals establish the first connection, and then get the second filesystem information of the second terminal.On the first terminal File transmission APP shows the first filesystem information and second filesystem information of the first terminal by GUI, with Just user determines the target position for needing the file destination transmitted and needing to store the file destination respectively.
The mesh of the file destination and the target position that file transmission APP on the first terminal chooses user Cursor position information is sent to the second terminal, stores the file destination to the target position by the second terminal.
In the embodiment of the present disclosure, it is contemplated that smart home APP in the related technology may be implemented between two terminals It is attached by wireless network, then directly above-mentioned file transmission APP can be integrated in the smart home APP, be used Family can directly choose the file destination for needing to be transferred to second terminal on the first terminal, and can choose file destination The target position stored in second terminal improves the convenience of file transmission.Or above-mentioned file transmission APP can also be with It is integrated on other APP with file transmitting function, portable and availability is high.
In above-described embodiment, first terminal can first establish the first connection, Jin Ersuo by wireless network and second terminal The first terminal can be sent to for the second filesystem information of itself by first connection by stating second terminal.User Can be in the first filesystem information of itself and second filesystem information that first terminal exports, selection needs respectively The file destination to be transmitted and the target position for storing the file destination, improve the convenience of file transmission, user experience It is good.
As shown in figure 5, Fig. 5 is another document transmission method shown according to an exemplary embodiment, eventually for second End, comprising the following steps:
In step 201, after being successfully established the first connection by wireless network and first terminal, described second is obtained eventually Second filesystem information at end.
Optionally, the second terminal establishes the process of the first connection by wireless network and first terminal, such as Fig. 6 institute Show, Fig. 6 is another document transmission method flow chart shown on the basis of embodiment shown in Fig. 5, comprising:
In step 201-1, receives first terminal and asked by the connection that the first connection is established in the request that wireless network is sent Seek message.
In this step, the second terminal can detect whether to receive described according to the relevant technologies preset monitored port Connection request message.Optionally, authentication information is carried in the connection request message.The first terminal and described second is eventually End by appointment is used on the authentication information of authenticating users, such as authentication information can be username and password Combination or random train etc..
In step 201-2, connection response message is sent to the first terminal, so that the first terminal is receiving After the connection response message, determines and be successfully established first connection.
When carrying authentication information in the connection request message, step 201-2 is as shown in fig. 7, Fig. 7 is in Fig. 6 institute Show another document transmission method flow chart shown on the basis of embodiment, may include:
In step 201-21, the authentication information is verified.
The second terminal believes the certification wherein carried after receiving the connection request message, through the relevant technologies Breath is verified, and if the verification passes, thens follow the steps 202-22, otherwise can send the refusal company for refusing first connection Message is connect to the first terminal.
In step 201-22, connection response message is sent to the first terminal.
In this step, second terminal can just send according to the relevant technologies and connect only after passing through to authentication information certification Response message is to the first terminal, so that the first terminal is after receiving the connection response message, determine at Function establishes first connection.
After the second terminal, which is successfully established described first with first terminal by wireless network, to be connect, described second eventually End can obtain the second filesystem information of itself according to the relevant technologies.Optionally, filesystem information may include disk Information and catalog structure information etc..
In step 202, second filesystem information is sent to the first terminal by first connection.
In this step, the second terminal can be connected by described first by second file according to the relevant technologies System information is sent to the first terminal.After the first terminal receives, itself the first filesystem information and institute are exported The second filesystem information is stated, the file destination for choosing needs to transmit respectively so as to user and the target for storing the file destination Position.
In step 203, the file destination and target position that the first terminal is sent are received by first connection Information, wherein the target position information is described in storage that the first terminal is chosen in second filesystem information The location information of the target position of file destination.
In this step, the second terminal receives the first terminal by first connection and sends out according to the relevant technologies The file destination and target position information sent.Wherein, the target position information indicates that user needs in the second terminal The target position of the upper storage file destination.
In step 204, according to the target position information, the file destination is stored to the target position.
In this step, the second terminal stores the target text according to the target position information according to the relevant technologies Part is to the target position.
In the embodiment of the present disclosure, the above process again may be by the preassembled file transmission APP of second terminal and realize. For example, preparatory installation file APP can be transmitted in the second terminal, when the second terminal mark using the second terminal Know, after logging in the file transmission APP in the second terminal, APP is transmitted by the file and monitors the pre- of the second terminal If port.After receiving connection request message by the default port, the authentication information wherein carried is verified.It tests After card passes through, connection response message is sent to the first terminal, so that the first terminal is determined by the default port With successfully establish the first connection with the second terminal.
Further, the second file system of the file transmission available second terminal of APP in the second terminal System information, and the first terminal is sent to by first connection.If the file transmission APP in the second terminal connects File destination and target position information that the first terminal returns are received, then stores the file destination to corresponding target position It sets.
Certainly, above-mentioned file transmission APP can integrate on smart home APP in the related art or other have On the APP of file transmitting function, portable and availability is high.
In above-described embodiment, the authentication information that the second terminal sends the first terminal is verified, and verifying is logical Later, the first connection is just established by wireless network with the first terminal, it is highly-safe.Further, itself is sent Two filesystem informations are to the first terminal, so that user chooses stored target file in second filesystem information Target position, after receiving the file destination and target position information subsequently through described first, store the mesh File is marked to the target position, improves the convenience of file transmission, user experience is good.
As shown in figure 8, Fig. 8 is another document transmission method shown according to an exemplary embodiment, including following step It is rapid:
In step 301, whether first terminal detection currently needs transmission objectives file.Need transmission objectives literary when determining After part, step 302 is continued to execute.
In this step, first terminal can detect currently whether need transmission objectives file in several ways.Optionally, First terminal logs in preassembled file and transmits APP, by file transmission APP detection user whether choose programmable button or Input and the matched gesture of default gesture, after user chooses programmable button or input matched with default gesture gesture, Execute step 302.
In step 302, the terminal list for the alternative terminal that the first terminal output prestores.
In this step, after determination needs to transmit the file destination, the file on the first terminal transmits APP The terminal list prestored is exported by the relevant technologies, the terminal for receiving file is selected for user.Certainly, wherein alternative terminal needs Wireless network is accessed.
In step 303, the first terminal, which is obtained, operates choose in the terminal list second eventually by choosing End.
After exporting the terminal list, by user by choosing operation to choose second terminal in the terminal list, institute The file transmission APP stated on first terminal obtains the second terminal that user chooses according to the relevant technologies.
In step 304, the first terminal and purpose router establish the second connection.
In this step, the file transmission APP on the first terminal can be according to the process and mesh of above-described embodiment introduction Router establish the second connection.
In step 305, the first terminal sends the terminal of the second terminal prestored by second connection MAC address is to the purpose router.
In this step, the file transmission APP on the first terminal can be by the end of the second terminal prestored MAC Address is held, purpose router is sent to by second connection.
Within step 306, the first terminal receives the IP address of terminal for the second terminal that purpose router returns.
The correspondence between the MAC Address and IP address of all terminals for being connected to itself has been housed on purpose router Relation list can search the corresponding relationship list, finally obtain after purpose router receives the terminal MAC address Take the IP address of terminal of the second terminal.Further, purpose router can be by the second connection by the terminal IP Location returns to the transmission of the file on first terminal APP.
In step 307, the first terminal is sent by wireless network according to the IP address of terminal and carries certification letter The connection request message of breath is to the second terminal.
In this step, the file transmission APP on first terminal can pass through wireless network according to the IP address of terminal Connection request message is sent to the second terminal by network.Optionally, authentication information is carried in the connection request message.
In step 308, second terminal verifies the authentication information carried in the connection request message.It is verified Afterwards, step 309 is continued to execute, otherwise the second terminal can directly transmit the refusal connection message for refusing first connection To the first terminal.
In this step, second terminal can equally log in preassembled file transmission APP, preset monitored in second terminal Port.After receiving the connection request message by the default port, using the relevant technologies to the authentication information into Row verifying.After being verified, step 309 is executed.
In a step 309, the second terminal sends connection response message to the first terminal, eventually so as to described first End determines after receiving the connection response message and has been successfully established first connection.
In this step, the file transmission APP in second terminal, just can be according to phase only after passing through to authentication information certification Pass technology sends connection response message to the first terminal, so that the file transmission APP on the first terminal is being received After the connection response message, determines and be successfully established first connection.
In the step 310, the second terminal obtains the second filesystem information of the second terminal.
In this step, the file transmission APP in the second terminal obtains the second text of itself according to the relevant technologies automatically Part system information.
In step 311, the second terminal sends second filesystem information to institute by first connection State first terminal.
In this step, second file system that the file transmission APP in the second terminal will acquire automatically is believed Breath is sent to the first terminal.
In step 312, the first terminal exports the first filesystem information and described second of the first terminal Filesystem information.
In this step, file on first terminal transmission APP can according to the relevant technologies, shown using GUI described in First filesystem information and second filesystem information, such as shown in Fig. 9.
In step 313, first filesystem information and second file system of the first terminal in output In information of uniting, obtains the file destination for needing to transmit respectively and store the target position letter of the target position of the file destination Breath.
In this step, the file transmission APP of the first terminal obtains the needs that user chooses according to the relevant technologies respectively The file destination and needs of transmission store the target position information of the target position of the file destination in the second terminal.
In a step 314, the first terminal sends the file destination and the target position by first connection Confidence is ceased to the second terminal.
In this step, the file transmission APP of the first terminal sends institute by first connection according to the relevant technologies File destination and the target position information are stated to the second terminal.
In step 315, the file destination is stored in described by the second terminal according to the target position information Target position.
File transmission APP in second terminal, can be according to the target position after receiving the target position information Confidence breath, is stored in the target position for the file destination received according to the relevant technologies.
In above-described embodiment, first terminal and second terminal are mounted with that file transmits APP in advance, and user logs in first eventually After file transmission APP on end, it can choose the file destination for needing to transmit and need in the second terminal described in storage The target position of file destination, and then file destination and target position information are transferred to by the second terminal by wireless network On, the file destination is stored to target position by the file transmission APP in the second terminal.The above process improves file The convenience of transmission, user experience are good.
Corresponding with preceding method embodiment, the disclosure additionally provides the embodiment of device.
As shown in Figure 10, Figure 10 is a kind of disclosure file transfer means block diagram shown according to an exemplary embodiment, For first terminal, comprising: the first receiving module 410, the first output module 420, first obtain module 430 and first and send mould Block 440.
Wherein, first receiving module 410 is configured as that first ought be successfully established by wireless network and second terminal After connection, the second filesystem information of the second terminal that the second terminal is sent by first connection is received;
First output module 420 is configured as exporting the first filesystem information of the first terminal and described Second filesystem information;
Described first obtains module 430, is configured as first filesystem information and second text in output In part system information, obtains the file destination for needing to transmit respectively and store the target position of the target position of the file destination Information;
First sending module 440 is configured as sending the file destination and the mesh by first connection Cursor position information is to the second terminal, so that the second terminal stores the target text according to the target position information Part is to the target position.
In above-described embodiment, first terminal can first establish the first connection, Jin Ersuo by wireless network and second terminal The first terminal can be sent to for the second filesystem information of itself by first connection by stating second terminal.User Can be in the first filesystem information of itself and second filesystem information that first terminal exports, selection needs respectively The file destination to be transmitted and the target position for storing the file destination, improve the convenience of file transmission, user experience It is good.
As shown in figure 11, Figure 11 is the disclosure another file transfer means frame shown according to an exemplary embodiment Figure, the embodiment is on the basis of aforementioned embodiment illustrated in fig. 10, described device further include: the second output module 450 and second Obtain module 460.
Wherein, second output module 450 is configured as the terminal list for the alternative terminal that output prestores, wherein institute It states alternative terminal and has accessed wireless network;
Described second obtains module 460, is configured as obtaining by choosing operation to choose needs in the terminal list Receive the second terminal of file.
In above-described embodiment, first terminal can be with outlet terminal list, and which includes the alternative terminals prestored, by user Selection will carry out the second terminal of file transmission in the terminal list, and user's operation is easy.
As shown in figure 12, Figure 12 is the disclosure another file transfer means frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 10, first receiving module 410 includes: acquisition submodule 411, the first sending submodule 412 and determining submodule 413.
Wherein, the acquisition submodule 411 is configured as with obtaining the terminal Internet Protocol IP of the second terminal Location;
First sending submodule 412 is configured as sending and connecting by wireless network according to the IP address of terminal Request message is to the second terminal;
The determining submodule 413 is configured as after receiving the connection response message that the second terminal returns, really Surely the first connection is successfully established by wireless network and the second terminal.
As shown in figure 13, Figure 13 is the disclosure another file transfer means frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 12, the acquisition submodule 411 includes: connection establishment unit 4111, the first transmission unit 4112 and receiving unit 4113.
Wherein, the connection establishment unit 4111 is configured as establishing the second connection with purpose router;
First transmission unit 4112, described second ought be successfully established with the purpose router by, which being configured as, connect Afterwards, the terminal media access control MAC addresses of the second terminal prestored are sent to the purpose by second connection Router, so that the purpose router is in the corresponding relationship list between the MAC Address and IP address of the terminal prestored, root According to the terminal MAC address received, the IP address of terminal of the second terminal is obtained;
The receiving unit 4113 is configured as receiving the IP address of terminal that the purpose router returns.
In above-described embodiment, first terminal can first establish the first connection by wireless network and second terminal, then into The transmission of row file destination.Wherein, the first terminal and the second terminal may be in same local area network, can also locate In in different local area networks, availability is high.
As shown in figure 14, Figure 14 is the disclosure another file transfer means frame shown according to an exemplary embodiment Figure is used for second terminal, comprising: third obtains module 510, the second sending module 520, the second receiving module 530 and file and deposits Amplification module 540.
Wherein, the third obtains module 510, is configured as that first ought be successfully established by wireless network and first terminal After connection, the second filesystem information of the second terminal is obtained;
Second sending module 520 is configured as sending second filesystem information by first connection To the first terminal;
Second receiving module 530 is configured as receiving the mesh that the first terminal is sent by first connection File and target position information are marked, wherein the target position information is the first terminal in second filesystem information In the location information of the target position of the storage file destination chosen;
The file storage module 540 is configured as storing the file destination to institute according to the target position information State target position.
In above-described embodiment, the authentication information that the second terminal sends the first terminal is verified, and verifying is logical Later, the first connection is just established by wireless network with the first terminal, and then sends the second filesystem information of itself To the first terminal, so that user chooses the target position of stored target file in second filesystem information, after Continue after receiving the file destination and target position information by described first, stores the file destination to the mesh Cursor position, improves the convenience of file transmission, and user experience is good.
As shown in figure 15, Figure 15 is the disclosure another file transfer means frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 14, it includes: receiving submodule 511 that the third, which obtains module 510, With the second sending submodule 512.
Wherein, the receiving submodule 511 is configured as receiving the request foundation that first terminal is sent by wireless network The connection request message of first connection;
Second sending submodule 512 is configured as sending connection response message to the first terminal, so as to described First terminal determines after receiving the connection response message and has been successfully established first connection.
In above-described embodiment, optionally, authentication information is carried in the connection request message;
As shown in figure 16, Figure 16 is the disclosure another file transfer means frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 15, second sending submodule 512 includes: authentication unit 5121 and second transmission unit 5122.
Wherein, the authentication unit 5121, is configured to verify that the authentication information;
Second transmission unit 5122 is configured as after being verified to the authentication information, sends connection response Message is to the first terminal.
In above-described embodiment, the first terminal, which is sent to carry in the connection request message of the second terminal, to be recognized Information is demonstrate,proved, the authentication information is verified by the second terminal, after being verified, first terminal can be with second terminal The first connection is established, to carry out the transmission of file destination subsequently through first connection, highly-safe, user experience is good.
Correspondingly, the disclosure also provides a kind of file transfer means, it to be used for first terminal, comprising:
Processor;
For storing the receptacle of processor-executable instruction;
Wherein, the processor is configured to:
After being successfully established the first connection by wireless network and second terminal, the second terminal is received by described the Second filesystem information of the second terminal that one connection is sent;
Export the first filesystem information and second filesystem information of the first terminal;
In first filesystem information and second filesystem information of output, obtains need to transmit respectively File destination and store the file destination target position target position information;
The file destination and the target position information are sent to the second terminal by first connection, so that The second terminal stores the file destination to the target position according to the target position information.
Correspondingly, the disclosure also provides a kind of file transfer means, it to be used for second terminal, comprising:
Processor;
For storing the receptacle of processor-executable instruction;
Wherein, the processor is configured to:
After being successfully established the first connection by wireless network and first terminal, the second file of the second terminal is obtained System information;
Second filesystem information is sent to the first terminal by first connection;
The file destination and target position information that the first terminal is sent are received by first connection, wherein described Target position information is the mesh for the storage file destination that the first terminal is chosen in second filesystem information The location information of cursor position;
According to the target position information, the file destination is stored to the target position.
As shown in figure 17, Figure 17 is a kind of disclosure file transfer means 1700 shown according to an exemplary embodiment Structural schematic diagram.For example, device 1700 can be terminal, which can be specially mobile phone, computer, digital broadcasting end End, information receiving and transmitting terminal, intelligent socket, intelligent sphygmomanometer, game console, tablet terminal, medical terminal, body-building terminal are a Personal digital assistant, Intelligent bracelet, smartwatch etc..
Referring to Fig.1 7, device 1700 may include following one or more components: processing component 1702, memory 1704, Power supply module 1706, multimedia component 1708, audio component 1710, the interface 1712 of input/output (I/O), sensor module 1714 and communication component 1716.
The integrated operation of the usual control device 1700 of processing component 1702, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1702 may include one or more processors 1720 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1702 may include one or more moulds Block, convenient for the interaction between processing component 1702 and other assemblies.For example, processing component 1702 may include multi-media module, To facilitate the interaction between multimedia component 1708 and processing component 1702.
Memory 1704 is configured as storing various types of data to support the operation in device 1700.These data Example includes the instruction of any application or method for operating on device 1700, contact data, telephone book data, Message, picture, video etc..Memory 1704 can by any kind of volatibility or non-volatile memories terminal or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1706 provides electric power for the various assemblies of device 1700.Power supply module 1706 may include power management System, one or more power supplys and other with for device 1700 generate, manage, and distribute the associated component of electric power.
Multimedia component 1708 includes the screen of one output interface of offer between described device 1700 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1708 includes a front camera and/or rear camera.When device 1700 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1710 is configured as output and/or input audio signal.For example, audio component 1710 includes a wheat Gram wind (MIC), when device 1700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1704 or via communication Component 1716 is sent.In some embodiments, audio component 1710 further includes a loudspeaker, is used for output audio signal.
I/O interface 1712 provides interface, above-mentioned peripheral interface module between processing component 1702 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1714 includes one or more sensors, and the state for providing various aspects for device 1700 is commented Estimate.For example, sensor module 1714 can detecte the state that opens/closes of device 1700, the relative positioning of component, such as institute The display and keypad that component is device 1700 are stated, sensor module 1714 can be with detection device 1700 or device 1,700 1 The position change of a component, the existence or non-existence that user contacts with device 1700,1700 orientation of device or acceleration/deceleration and dress Set 1700 temperature change.Sensor module 1714 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1714 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor, microwave remote sensor or temperature sensor.
Communication component 1716 is configured to facilitate the communication of wired or wireless way between device 1700 and other terminals.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1700,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1716 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1716 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1700 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), Digital Signal Processing terminal (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1704 of instruction, above-metioned instruction can be executed by the processor 1720 of device 1700 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage terminal etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all essences in the disclosure Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of disclosure protection.

Claims (10)

1. a kind of document transmission method is used for first terminal, which is characterized in that the described method includes:
After being successfully established the first connection by wireless network and second terminal, receives the second terminal and connect by described first Second filesystem information of the second terminal received and sent;
It is described that first connection is established by wireless network and second terminal, comprising:
Obtain the terminal Internet Protocol IP address of the second terminal;
According to the IP address of terminal, connection request message is sent to the second terminal by wireless network;
After receiving the connection response message that the second terminal returns, determine by wireless network and the second terminal at Function establishes the first connection;
The terminal Internet Protocol IP address for obtaining the second terminal, comprising:
The second connection is established with purpose router;
After being successfully established described second with the purpose router and connecting, described the prestored is sent by second connection The terminal media access control MAC addresses of two terminals are to the purpose router, so that the purpose router is at the end prestored In corresponding relationship list between the MAC Address and IP address at end, according to the terminal MAC address received, described in acquisition The IP address of terminal of second terminal;
Receive the IP address of terminal that the purpose router returns;
Export the first filesystem information and second filesystem information of the first terminal;
In first filesystem information and second filesystem information of output, the mesh for needing to transmit is obtained respectively It marks file and stores the target position information of the target position of the file destination;
The file destination and the target position information are sent to the second terminal, so that described by first connection Second terminal stores the file destination to the target position according to the target position information.
2. the method as described in claim 1, which is characterized in that be successfully established the first company by wireless network and second terminal Before connecing, the method also includes:
The terminal list for exporting the alternative terminal prestored, wherein the alternative terminal has accessed wireless network;
It obtains by choosing operation to choose the second terminal for needing to receive file in the terminal list.
3. a kind of document transmission method is used for second terminal, which is characterized in that the described method includes:
After being successfully established the first connection by wireless network and first terminal, the second file system of the second terminal is obtained Information;
The first connection is successfully established by wireless network and first terminal, comprising:
First terminal is received according to the IP address of terminal of the second terminal, the first company is established by the request that wireless network is sent The connection request message connect;
Connection response message is sent to the first terminal, so that the first terminal is receiving the connection response message Afterwards, it determines and has been successfully established first connection;
Wherein, the IP address of terminal of the second terminal is that the first terminal and purpose router are established after the second connection, It is routed by the terminal media access control MAC addresses that second connection sends the second terminal prestored to the purpose Device, so that the purpose router is in the corresponding relationship list between the MAC Address and IP address of the terminal prestored, according to connecing The terminal MAC address received, the IP address of terminal of the second terminal got;
Second filesystem information is sent to the first terminal by first connection;
The file destination and target position information that the first terminal is sent are received by first connection, wherein the target Location information is the target position for the storage file destination that the first terminal is chosen in second filesystem information The location information set;
According to the target position information, the file destination is stored to the target position.
4. method as claimed in claim 3, which is characterized in that carry authentication information in the connection request message;
The transmission connection response message is to the first terminal, comprising:
Verify the authentication information;
After being verified to the authentication information, connection response message is sent to the first terminal.
5. a kind of file transfer means, it to be used for first terminal, which is characterized in that described device includes:
First receiving module is configured as after being successfully established the first connection by wireless network and second terminal, described in reception Second filesystem information of the second terminal that second terminal is sent by first connection;
First receiving module includes:
Acquisition submodule is configured as obtaining the terminal Internet Protocol IP address of the second terminal;
First sending submodule, is configured as according to the IP address of terminal, by wireless network send connection request message to The second terminal;
It determines submodule, is configured as determining after receiving the connection response message that the second terminal returns by wireless Network and the second terminal are successfully established the first connection;
The acquisition submodule includes:
Connection establishment unit is configured as establishing the second connection with purpose router;
First transmission unit is configured as passing through described after being successfully established described second with the purpose router and connecting Two connections send the terminal media access control MAC addresses of the second terminal prestored to the purpose router, so that institute Purpose router is stated in the corresponding relationship list between the MAC Address and IP address of the terminal prestored, according to the institute received Terminal MAC address is stated, the IP address of terminal of the second terminal is obtained;
Receiving unit is configured as receiving the IP address of terminal that the purpose router returns;
First output module is configured as exporting the first filesystem information of the first terminal and second file system Information;
First obtains module, is configured as first filesystem information and second filesystem information in output In, it obtains the file destination for needing to transmit respectively and stores the target position information of the target position of the file destination;
First sending module, be configured as sending by first connection file destination and the target position information to The second terminal, so that the second terminal stores the file destination to the target according to the target position information Position.
6. device as claimed in claim 5, which is characterized in that described device further include:
Second output module is configured as the terminal list for the alternative terminal that output prestores, wherein the alternative terminal has connect Enter wireless network;
Second obtains module, is configured as obtaining and needs to receive the of file by choosing operation to choose in the terminal list Two terminals.
7. a kind of file transfer means, it to be used for second terminal, which is characterized in that described device includes:
Third obtains module, is configured as after being successfully established the first connection by wireless network and first terminal, described in acquisition Second filesystem information of second terminal;
The third obtains module
Receiving submodule is configured as receiving first terminal according to the IP address of terminal of the second terminal, passes through wireless network The connection request message of the first connection is established in the request of transmission;
Second sending submodule is configured as sending connection response message to the first terminal, so that the first terminal exists After receiving the connection response message, determines and be successfully established first connection;
Wherein, the IP address of terminal of the second terminal is that the first terminal and purpose router are established after the second connection, It is routed by the terminal media access control MAC addresses that second connection sends the second terminal prestored to the purpose Device, so that the purpose router is in the corresponding relationship list between the MAC Address and IP address of the terminal prestored, according to connecing The terminal MAC address received, the IP address of terminal of the second terminal got;
Second sending module is configured as sending second filesystem information by first connection to described first eventually End;
Second receiving module is configured as receiving the file destination and target that the first terminal is sent by first connection Location information, wherein the target position information is the storage that the first terminal is chosen in second filesystem information The location information of the target position of the file destination;
File storage module is configured as storing the file destination to the target position according to the target position information.
8. device as claimed in claim 7, which is characterized in that carry authentication information in the connection request message;
Second sending submodule includes:
Authentication unit is configured to verify that the authentication information;
Second transmission unit is configured as after being verified to the authentication information, sends connection response message to described the One terminal.
9. a kind of file transfer means are used for first terminal characterized by comprising
Processor;
For storing the receptacle of processor-executable instruction;
Wherein, the processor is configured to:
After being successfully established the first connection by wireless network and second terminal, receives the second terminal and connect by described first Second filesystem information of the second terminal received and sent;
It is described that first connection is established by wireless network and second terminal, comprising:
Obtain the terminal Internet Protocol IP address of the second terminal;
According to the IP address of terminal, connection request message is sent to the second terminal by wireless network;
After receiving the connection response message that the second terminal returns, determine by wireless network and the second terminal at Function establishes the first connection;
The terminal Internet Protocol IP address for obtaining the second terminal, comprising:
The second connection is established with purpose router;
After being successfully established described second with the purpose router and connecting, described the prestored is sent by second connection The terminal media access control MAC addresses of two terminals are to the purpose router, so that the purpose router is at the end prestored In corresponding relationship list between the MAC Address and IP address at end, according to the terminal MAC address received, described in acquisition The IP address of terminal of second terminal;
Receive the IP address of terminal that the purpose router returns;
Export the first filesystem information and second filesystem information of the first terminal;
In first filesystem information and second filesystem information of output, the mesh for needing to transmit is obtained respectively It marks file and stores the target position information of the target position of the file destination;
The file destination and the target position information are sent to the second terminal, so that described by first connection Second terminal stores the file destination to the target position according to the target position information.
10. a kind of file transfer means are used for second terminal characterized by comprising
Processor;
For storing the receptacle of processor-executable instruction;
Wherein, the processor is configured to:
After being successfully established the first connection by wireless network and first terminal, the second file system of the second terminal is obtained Information;
It is described that first connection is successfully established by wireless network and first terminal, comprising:
First terminal is received according to the IP address of terminal of the second terminal, the first company is established by the request that wireless network is sent The connection request message connect;
Connection response message is sent to the first terminal, so that the first terminal is receiving the connection response message Afterwards, it determines and has been successfully established first connection;
Wherein, the IP address of terminal of the second terminal is that the first terminal and purpose router are established after the second connection, It is routed by the terminal media access control MAC addresses that second connection sends the second terminal prestored to the purpose Device, so that the purpose router is in the corresponding relationship list between the MAC Address and IP address of the terminal prestored, according to connecing The terminal MAC address received, the IP address of terminal of the second terminal got;
Second filesystem information is sent to the first terminal by first connection;
The file destination and target position information that the first terminal is sent are received by first connection, wherein the target Location information is the target position for the storage file destination that the first terminal is chosen in second filesystem information The location information set;
According to the target position information, the file destination is stored to the target position.
CN201510698666.3A 2015-10-23 2015-10-23 Document transmission method and device Active CN105430642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510698666.3A CN105430642B (en) 2015-10-23 2015-10-23 Document transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510698666.3A CN105430642B (en) 2015-10-23 2015-10-23 Document transmission method and device

Publications (2)

Publication Number Publication Date
CN105430642A CN105430642A (en) 2016-03-23
CN105430642B true CN105430642B (en) 2019-05-31

Family

ID=55508511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510698666.3A Active CN105430642B (en) 2015-10-23 2015-10-23 Document transmission method and device

Country Status (1)

Country Link
CN (1) CN105430642B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110139340A (en) * 2018-02-09 2019-08-16 电信科学技术研究院有限公司 A kind of connection method for building up and terminal
CN109039904B (en) * 2018-08-01 2020-12-22 武汉绿色网络信息服务有限责任公司 Application routing method and device
CN109639821B (en) * 2018-12-28 2022-11-01 承影互联(北京)科技有限公司 File transmission device, file receiving method, file transmission device, file receiving device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1611054A (en) * 2001-12-28 2005-04-27 松下电器产业株式会社 Router, network system, and network setup method
CN102819573A (en) * 2012-07-20 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Terminal, file storage method and file extraction method
CN102957751A (en) * 2012-11-27 2013-03-06 北京金山云科技有限公司 Document transmission method and device between terminal device and network server and terminal device
CN103279288A (en) * 2013-05-31 2013-09-04 北京小米科技有限责任公司 Method, device and terminal units for transmitting data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1611054A (en) * 2001-12-28 2005-04-27 松下电器产业株式会社 Router, network system, and network setup method
CN102819573A (en) * 2012-07-20 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Terminal, file storage method and file extraction method
CN102957751A (en) * 2012-11-27 2013-03-06 北京金山云科技有限公司 Document transmission method and device between terminal device and network server and terminal device
CN103279288A (en) * 2013-05-31 2013-09-04 北京小米科技有限责任公司 Method, device and terminal units for transmitting data

Also Published As

Publication number Publication date
CN105430642A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN104159226B (en) Method for connecting network and device
US9306632B2 (en) Apparatus, system and method of establishing communication between an application operating on an electronic device and a near field communication (NFC) reader
JP6186508B2 (en) Network connection method and terminal
CN106209800B (en) Equipment Authority sharing method and apparatus
CN104684106B (en) The method and device of network connection
CN105163366A (en) Wireless network connection method and device
CN106506562B (en) Method for connecting network, device and the smart machine of smart machine
CN105246074A (en) Method and device for establishing connections
JP2017531974A (en) Network connection method, device, system, program, and recording medium
JP2017514428A (en) Network connection method, apparatus, program, and recording medium
CN105162889A (en) Device finding method and apparatus
CN105704655A (en) Media data sharing method and media data sharing device between terminals
CN110399112A (en) A kind of throwing screen method and device
JP2018517186A (en) Business process execution method, apparatus, system, program, and recording medium
CN106488450B (en) Connect the method and device of wireless network
CN106454998A (en) Wireless local area network access method and apparatus, and terminal
CN107071862A (en) Account binding method and device and smart machine
CN105763601A (en) File sharing method and device
CN105207813B (en) Smart machine sort method and device
CN105430642B (en) Document transmission method and device
CN106101600A (en) The method of attachment of video calling and device
CN105515923A (en) Equipment control method and device
CN105589622B (en) Chat method and device based on barrage
CN104537526A (en) Numerical value transferring method and device and terminal
CN104618987B (en) Access the method and device of network

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