CN104158908B - Method and system based on WiFi equipment transmission file - Google Patents

Method and system based on WiFi equipment transmission file Download PDF

Info

Publication number
CN104158908B
CN104158908B CN201410436536.8A CN201410436536A CN104158908B CN 104158908 B CN104158908 B CN 104158908B CN 201410436536 A CN201410436536 A CN 201410436536A CN 104158908 B CN104158908 B CN 104158908B
Authority
CN
China
Prior art keywords
terminal
file
interface
specified
user
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
CN201410436536.8A
Other languages
Chinese (zh)
Other versions
CN104158908A (en
Inventor
侯志刚
鄢云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410436536.8A priority Critical patent/CN104158908B/en
Publication of CN104158908A publication Critical patent/CN104158908A/en
Application granted granted Critical
Publication of CN104158908B publication Critical patent/CN104158908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method and system based on WiFi equipment transmission file.Wherein, method includes:The communication connection established by the WiFi equipment between first terminal and second terminal;After the communication connection is established, the first terminal is provided in User Interface and showed for the first operate interface of upper transmitting file and/or the second operate interface for downloading file;Access request according to user to first operate interface, the first terminal upload the file of the first terminal preservation to the second terminal;And/or the access request according to user to second operate interface, the first terminal download the file that the second terminal preserves.This programme make use of the advantage of the LAN between the first terminal created by WiFi equipment and second terminal, provide the user a kind of conveniently mode of the transmission file between different terminals.

Description

Method and system based on WiFi equipment transmission file
Technical field
The present invention relates to Internet technical field, and in particular to a kind of to transmit the method for file based on WiFi equipment and be System.
Background technology
Carry-on WiFi (Wireless Fidelity, Wireless Fidelity) equipment is used to meet that user is carried out using mobile terminal The demand of wireless networking.Carry-on WiFi equipment is divided into two kinds in the prior art:A kind of is by the wireless of cellular carrier offer Online chip (SIM card), the transportable WiFi of composition one receive transmiting signal source, pass through this complete equipment, it may be connected to On 2.5G, 3G or 4G network, transportable Wi-Fi hotspot is formed;Carry-on WiFi equipment is inserted into and can surfed the Net by another kind On desktop computer, the network creation Wi-Fi hotspot of desktop computer is utilized.The mobile terminal of user is by being connected to Wi-Fi hotspot and then company It is connected to internet.
But WiFi equipment function with oneself of the prior art is single, it is provided solely for connecting the function of internet, Wu Fayou Effect provides the user diversified service using the advantage of the LAN between the mobile terminal and desktop computer of user.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the method and system based on WiFi equipment transmission file of problem.
According to an aspect of the invention, there is provided a kind of method based on WiFi equipment transmission file, including:
The communication connection established by the WiFi equipment between first terminal and second terminal;
After the communication connection is established, the first terminal is provided in User Interface and showed for uploading First operate interface of file and/or the second operate interface for downloading file;
Access request according to user to first operate interface, the first terminal upload institute to the second terminal State the file of first terminal preservation;And/or the access request according to user to second operate interface, the first terminal Download the file that the second terminal preserves.
According to another aspect of the present invention, there is provided a kind of system based on WiFi equipment transmission file, including:First eventually End, second terminal and the WiFi equipment, by being built described in the WiFi equipment between first terminal and the second terminal It is vertical to have communication connection;
Wherein, the first terminal includes:Operate interface provides module, is adapted to provide for the first operation for upper transmitting file Interface and/or the second operate interface for downloading file;Display module, suitable for showing what is provided in User Interface The second operate interface for the first operate interface of upper transmitting file and/or for downloading file;First sending module, suitable for root Access request according to user to first operate interface, the file of the first terminal preservation is uploaded to the second terminal; First receiving module, suitable for the access request according to user to second operate interface, receive and downloaded from the second terminal File;
The second terminal includes:Second receiving module, the file uploaded suitable for receiving the first terminal;Second sends Module, suitable for sending the file downloaded to first terminal.
It is logical between first terminal and second terminal being established by WiFi equipment according to technical scheme provided by the invention After letter connection, user is operated by the first operate interface provided in User Interface first terminal and/or second The access request of interface, the file interaction transmission between first terminal and second terminal can be realized, this programme, which make use of, to be passed through The advantage of LAN between first terminal and second terminal that WiFi equipment creates, one kind has been provided the user in different terminals Between transmission file conveniently mode.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the method flow diagram according to an embodiment of the invention based on WiFi equipment transmission file;
Fig. 2 shows the method flow diagram in accordance with another embodiment of the present invention based on WiFi equipment transmission file;
Fig. 3 a show the interface schematic diagram of WiFi application searches WiFi equipment provided by the invention;
Fig. 3 b show the interface schematic diagram that WiFi applications provided by the invention are authenticated;
Fig. 4 shows the User Interface schematic diagram of " my computer " functional areas provided by the invention;
Fig. 5 shows the schematic diagram of listed files under D disks provided by the invention;
Fig. 6 shows the User Interface schematic diagram provided by the invention for showing the second operate interface;
Fig. 7 shows the User Interface schematic diagram provided by the invention that renaming is carried out to file;
Fig. 8 a show mobile phone provided by the invention to the User Interface schematic diagram of transmitting file on PC;
Fig. 8 b and Fig. 8 c show the schematic diagram provided by the invention that the cell phone pictures uploaded are chosen from mobile phone photo album;
Fig. 8 d show the schematic diagram of the mobile phone file provided by the invention chosen and uploaded;
Fig. 9 shows the system architecture diagram according to an embodiment of the invention based on WiFi equipment transmission file.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Fig. 1 shows the method flow diagram according to an embodiment of the invention based on WiFi equipment transmission file, such as Fig. 1 Shown, the present embodiment comprises the following steps:
Step S100, the communication connection established by WiFi equipment between first terminal and second terminal.
WiFi equipment in the present invention refers to being inserted into desktop personal computer (referred to as:PC it is moveable carry-on on) WiFi equipment.Herein, first terminal can be the mobile terminal that smart mobile phone, plate type computer etc. have mobile networking function Equipment, second terminal can be the terminal devices such as PC.When user uses WiFi equipment, WiFi equipment is inserted into second terminal On, after WiFi equipment establishes connection with second terminal, start WiFi service routines in second terminal therewith, create WiFi heat Point.Wherein, WiFi service routines are used to make to establish communication connection between first terminal and second terminal, and for first terminal and Data transfer between second terminal provides service.
Specifically, special WiFi applications are installed inside first terminal, the WiFi apply be with WiFi equipment and its The software program that the WiFi service routines that start in second terminal cooperate, first terminal communicate tool with the data of second terminal Body is that the WiFi inside first terminal communicates using the data between the WiFi service routines in second terminal.
After Wi-Fi hotspot is created, first terminal can be communicated by sending the form of log messages with second terminal foundation Connection.
Step S101, establish communicate to connect after, first terminal provided in User Interface and show for First operate interface of transmitting file and/or the second operate interface for downloading file.
The WiFi applications of first terminal provide the user the User Interface of each functional areas, wherein One function area User Interface in provide and show the user of the first operate interface, wherein another functional areas for upper transmitting file There is provided in interactive interface and show the second operate interface for downloading file.In the present invention, operate interface can be regarded as first Terminal provides the user the user interface of various functions realization, by taking the first operate interface and the second operate interface as an example, uses The first operate interface in family selection if (click or other means) User Interface, first terminal will provide the user upload The function of file, if user selects the second operate interface in User Interface, first terminal will provide the user lower published article The function of part.
Step S102, the access request according to user to the first operate interface, first terminal upload first to second terminal The file that terminal preserves;And/or the access request according to user to the second operate interface, first terminal are downloaded second terminal and protected The file deposited.
This step can realize the file interaction transmission between first terminal and second terminal.If the operation of user's selection first The file being stored thereon is transferred to second terminal by interface, first terminal;If user selects the second operate interface, second eventually The file being stored thereon is transferred to first terminal by end.
The method provided according to the present embodiment, in the communication established by WiFi equipment between first terminal and second terminal After connection, user is connect by the first operate interface provided in User Interface first terminal and/or the second operation The access request of mouth, the file interaction transmission between first terminal and second terminal can be realized, this process employs pass through The advantage of LAN between first terminal and second terminal that WiFi equipment creates, one kind has been provided the user in different terminals Between transmission file conveniently mode.
Fig. 2 shows the method flow diagram in accordance with another embodiment of the present invention based on WiFi equipment transmission file. In the present embodiment, by taking mobile phone as an example, second terminal illustrates first terminal by taking PC as an example.As shown in Fig. 2 the present embodiment includes Following steps:
Step S200, after WiFi equipment is inserted on PC, WiFi equipment is connected with PC, starts WiFi services in PC Program.
When user uses WiFi equipment, WiFi equipment is inserted on PC, after WiFi equipment establishes connection with PC, existed therewith Start WiFi service routines in PC, create Wi-Fi hotspot.
Optionally, WiFi service routines are dynamic link library (abbreviation:Dll) file, by calling the dll files to realize Reception/transmission specified protocol message, create port, data processing, calling system application programming interface (referred to as:API) etc. Function.
Step S201, after WiFi service routines are started, the WiFi service routines of mobile phone into PC send login and disappeared Breath.
Specifically, interior of mobile phone is provided with special WiFi applications, and it is with WiFi equipment and its in PC that the WiFi, which is applied, The software program that the WiFi service routines of startup cooperate, communicate with the PC data WiFi of specially interior of mobile phone of mobile phone are answered Communicated with the data between the WiFi service routines in PC.
Fig. 3 a show the interface schematic diagram of WiFi application searches WiFi equipment provided by the invention.In one example, After user starts WiFi applications in mobile phone, interface as shown in Figure 3 a is presented in WiFi applications, and now WiFi applications are searched for Carry-on WiFi equipment, i.e. WiFi are applied to WiFi service routines and send log messages (online), are confirmed whether exist and PC companies The carry-on WiFi equipment connect.
Step S202, in the case where WiFi equipment is normally connected with PC, the WiFi service routines in PC return to mobile phone Log in confirmation message.
WiFi service routines to WiFi application return log in confirmation message after, WiFi application confirmations exist WiFi equipment and The PC being connected with WiFi equipment.
Step S203, after mobile phone receives login confirmation message, continue the transmission certification of the WiFi service routines into PC and disappear Breath.
In order to lift security, after confirming to have WiFi equipment and the PC being connected with WiFi equipment, PC wants opponent The security of machine is authenticated.Fig. 3 b show the interface schematic diagram that WiFi applications provided by the invention are authenticated.Such as Fig. 3 b Shown, WiFi applications are now being authenticated.If user selects " skipping, not certification ", then step S203- steps need not be performed Rapid S205.
WiFi service routines in step S204, PC generate token according to certification message.
After WiFi service routines receive the certification message that WiFi applications are sent, the identity of mobile phone is authenticated.Tool Body, PC ends can eject prompting:" whether allowing the mobile phone certification to access ", if user selects to allow, WiFi service routines By certification, and generate a token (token).
Alternatively, token is the character string that elapsed time stamp is encrypted.In order to prevent some sniffers from recognizing by sniff Card process obtains token, and token is encrypted the present invention, and encryption key is preferably timestamp.
WiFi service routines in step S205, PC return to the authenticate-acknowledge message for carrying token to mobile phone.
After to mobile phone return authentication confirmation message, mobile phone just all preserves consistent token with PC, follow-up mobile phone with Optional carrying token in the header of http request/response message of interaction between PC, after mobile phone receives message with PC, Token is first verified that, is handled again after being verified.
By above step S201- step S205, communication connection is established between mobile phone and PC.It should be noted that this hair Communication connection, which is established, between bright middle mobile phone and PC is not limited to above-mentioned steps, also can be without authenticating step, i.e. step 203- steps Rapid 205 be optional step.
Step S206, after communication connection is established, mobile phone is provided in User Interface and showed for accessing PC Specified folder the 3rd operate interface.
WiFi applications provide the user the user mutual of the User Interface, wherein One function area of each functional areas There is provided in interface and show the 3rd operate interface of the specified folder for accessing PC, if user is selected in User Interface The 3rd operate interface, mobile phone will provide the user the displaying function of each specified folders of PC.
Fig. 4 shows the User Interface schematic diagram of " my computer " functional areas provided by the invention.As shown in figure 4, In the User Interface of " my computer " functional areas, there is provided " desk file ", " D:Work ", " F:Life ", " C:System The catalogue of file " totally 4 specified folders, this four catalogues simultaneously and access the 3rd operation of each specified folder and connect Mouthful, user can select to be arbitrarily designated file further to check the file in the specified folder as needed.
Step S207, the access request according to user to the 3rd operate interface, mobile phone send the finger for accessing PC to PC Determine the first http request message of file.
For example, user selects " D:Work " triggers the access request to the 3rd operate interface of D disks, and WiFi applications pass through hand WiFi service routine of the machine into PC sends the first http request message of the D disks for accessing PC.Optionally, first http request Token is carried in the header of message.
Step S208, after PC receives the first http request message, browsing for PC operating systems offer is called to specify text The interface of the listed files of part folder, obtain the listed files of specified folder.
After WiFi service routines in PC receive the first http request message, the first http request message is extracted first The token of middle carrying, token is decrypted, and whether the token that the token and PC after comparison decryption is preserved is consistent, if one Cause, show that token is verified.Then, WiFi service routines call the system API that PC operating systems provide:List functions, will The mark of specified folder passes to list functions as parameter, and the return value of list functions is the file row of specified folder Table.
Step S209, PC return to the first http response messages of the listed files for carrying specified folder to mobile phone.
Optionally, token is carried in the header of the first http response messages.
Step S210, mobile phone extracts the listed files of specified folder from the first http response messages, in user mutual Show the listed files of specified folder in interface.
It should be noted that for PC, file can be generally included under some file, can also be included The sub-folder of next stage catalogue, therefore, in embodiments of the present invention, the listed files of specified folder both included file in itself Also sub-folder is included.
Fig. 5 shows the schematic diagram of listed files under D disks provided by the invention.As shown in figure 5, to D disk listed files When being showed, show sub-folder under D disks title and comprising number of files, also show the title of the file under D disks With the size of file.
Step S211, for each file in the listed files of specified folder, mobile phone carries in User Interface Show the second operate interface for downloading this document for and according to the operation of user.
For each file (including file and sub-folder) in the listed files of specified folder, WiFi applications all carry The second operate interface for downloading file is provided with, second operate interface shows by the operation of user to trigger.
Fig. 6 shows the User Interface schematic diagram provided by the invention for showing the second operate interface.As shown in fig. 6, In the signal interface of listed files, each file be corresponding with functional symbol (as illustrated to the right in fig. 6 such as arrow Symbol), when user want download " WiFi projects " file under all the elements when, click on " WiFi projects " corresponding to operate Symbol, shows the operate interface of " download ", " renaming " and " deletion " in User Interface, user by click on " under Carry " realize that this document presss from both sides the download of lower all the elements.
In addition, user can also be reset by clicking on " renaming " to the title of this document, such as Fig. 7 institutes Show, show the User Interface schematic diagram provided by the invention that renaming is carried out to file, also can be by clicking on " deletion " File on PC is integrally deleted.
Step S212, the access request according to user to the second operate interface of specified file, mobile phone are connected to PC finger Fixed end mouth, the second http request message for downloading specified file is sent to the designated port, the second http request message In carry the filename of specified file.
In the embodiment of the present invention, the WiFi service routines in PC create designated port in PC and are used to transmit between mobile phone File.WiFi is applied and by mobile phone is connected to the designated port, to the designated port send for download specified file second Http request message, the filename of specified file is carried in the second http request message.Optionally, second http request disappears Token is carried in the header of breath.
Specified file corresponding to filename is transferred to mobile phone by step S213, PC by designated port.
Because what is transmitted between mobile phone and PC is binary stream data, so defining file first before file is transmitted Head form, what is recorded in this form is that filename takes byte number, and file creation time takes the information such as byte number, transmission text Transmission path information is also needed while part, for indicating saving contents for this document.
When the file to be transmitted is multiple, if each file newly opens a thread and goes to transmit, disk I/O is too many, Speed can not be lifted and largely effect on transmission speed on the contrary, therefore the embodiment of the present invention is used with least one thread and each thread The form of middle queue transmits multiple specified files.But in order to avoid there are Fault-Tolerant Problems, multiple specify is being transmitted in the form of queue During file, can transmit in sequence the filename of each specified file, file size, file path information, opening flag position, File content, end mark position, and the actual size of file is verified after the bundle flag position that finishes is transmitted, if checking is logical Cross, then transmit next specified file, if checking is by the way that retransfer the specified file.
In addition, in one example, if PC receives the second of the same specified file of download that multiple mobile phones are sent During http request message, the specified file can be loaded into internal memory by PC, and so multiple mobile phones can be downloaded from PC internal memory The specified file, so as to greatly promote speed of download.Optionally, PC also can determine whether the size of specified file, if less than default threshold It is worth (such as 100M), then can be loaded into internal memory;If being higher than predetermined threshold value, it is not loaded into internal memory, Yi Mianying Ring the normal operation of PC systems.
Above-described embodiment provides the method that mobile phone downloads file from PC, and according to this method, user can be by hand The file in operation download PC is carried out on the User Interface of machine.This process employs the mobile phone created by WiFi equipment with The advantage of LAN between PC, a kind of conveniently side of the transmission file between different terminals is provided the user Formula.Further, since the transmission of file has higher requirements to the integrality and data transmission credibility of data, so the present embodiment The transmission of file is completed by the request message based on http agreements and response message, ensure that file transmission integrity and can By property.Further, the communication mode between the present embodiment provides mobile phone and PC need to carry encryption token, can prevent token It is stolen, improves security.
Fig. 3 shows the method flow diagram in accordance with another embodiment of the present invention based on WiFi equipment transmission file. In the present embodiment, by taking mobile phone as an example, second terminal illustrates first terminal by taking PC as an example.As shown in figure 3, the present embodiment includes Following steps:
Step S300, the communication connection established by WiFi equipment between mobile phone and PC.
The method that communication connection is established between mobile phone and PC can be found in step S200- steps S205 in above method embodiment Description, will not be repeated here.
Step S301, after communication connection is established, mobile phone is provided in User Interface and showed for accessing PC Specified folder the 3rd operate interface.
Step S302, the access request according to user to the 3rd operate interface, mobile phone send the finger for accessing PC to PC Determine the first http request message of file.
Step S303, after PC receives the first http request message, browsing for PC operating systems offer is called to specify text The interface of the listed files of part folder, obtain the listed files of specified folder.
Step S304, PC return to the first http response messages of the listed files for carrying specified folder to mobile phone.
Step S305, mobile phone extracts the listed files of specified folder from the first http response messages, in user mutual Show the listed files of specified folder in interface.
Above-mentioned steps S301- steps S305 specific implementation procedure can be found in step S206- in above method embodiment and walk Rapid S210 specific descriptions.
Step S306, mobile phone provide in User Interface and show for the add file into specified folder One operate interface.
Fig. 8 a show mobile phone provided by the invention to the User Interface schematic diagram of transmitting file on PC.Such as Fig. 8 a institutes Show, provide and show for adding cell phone pictures and mobile phone file into D disks in the wherein User Interface of a functional areas The first operate interface.Fig. 8 b and Fig. 8 c show the signal provided by the invention that the cell phone pictures uploaded are chosen from mobile phone photo album Figure, as shown in Fig. 8 b and Fig. 8 c, after the first operate interface that user selects addition cell phone pictures, mobile phone phase may be selected in user The cell phone pictures uploaded are needed in volume and selection mobile phone photo album.Fig. 8 d show the mobile phone text provided by the invention chosen and uploaded The schematic diagram of part, as shown in figure 8d, after the first operate interface that user selects addition mobile phone file, user may be selected to need The mobile phone file of upload.
Step S307, the access request according to user to the first operate interface, mobile phone upload specified file to PC.
In the embodiment of the present invention, transmitting file on the designated port that mobile phone creates to WiFi service routines.Transmitting file on mobile phone Concrete mode with PC download file concrete mode it is identical, will not be repeated here.
Above-described embodiment provides mobile phone to the method for transmitting file on PC, and according to this method, user can be by mobile phone User Interface on operated to transmitting file on PC.This process employs the mobile phone created by WiFi equipment and PC it Between LAN advantage, provided the user it is a kind of between different terminals transmission file conveniently mode.Separately Outside, because the transmission of file has higher requirements to the integrality and data transmission credibility of data, so the present embodiment also may be used The transmission of file is completed by the request message based on http agreements and response message, ensure that file transmission integrity and can By property.Further, the communication mode between the present embodiment provides mobile phone and PC need to carry encryption token, can prevent token It is stolen, improves security.
Fig. 9 shows the system architecture diagram according to an embodiment of the invention based on WiFi equipment transmission file.Such as Shown in Fig. 9, the system includes:First terminal 910, second terminal 920 and WiFi equipment 930, by WiFi equipment 930 first eventually Being established between end 910 and second terminal 920 has communication connection.
Wherein, first terminal 910 includes:Operate interface provides module 911, is adapted to provide for the first behaviour for upper transmitting file Make interface and/or the second operate interface for downloading file;Display module 912, suitable for showing institute in User Interface The second operate interface for the first operate interface of upper transmitting file and/or for downloading file provided;First sending module 913, suitable for the access request according to user to the first operate interface, the file preserved to the upload first terminal of second terminal 920; First receiving module 914, suitable for the access request according to user to the second operate interface, receive what is downloaded from second terminal 920 File.
Second terminal 920 includes:Second receiving module 921, the file uploaded suitable for receiving first terminal 910;Second hair Module 922 is sent, suitable for sending the file downloaded to first terminal 910.
Further, operate interface provides module 911 and is further adapted for:Specified file for accessing second terminal 920 is provided 3rd operate interface of folder;Display module 912 is further adapted for:Show in User Interface provided be used for access second eventually 3rd operate interface of the specified folder at end 920;First sending module 913 is further adapted for:According to user to the 3rd operate interface Access request, the first http request that the specified folder for accessing second terminal 920 is sent to second terminal 920 disappears Breath;
Second receiving module 921 is further adapted for:Receive the first http request message that the first terminal 910 is sent; Second terminal 920 also includes:System interface calling module 923, suitable for according to the first http request message call second terminal 920 The interface of the listed files for browsing specified folder that provides of operating system, obtain the listed files of specified folder;Second Sending module 922 is further adapted for:The first http responses that the listed files for carrying specified folder is sent to first terminal 910 disappear Breath;First receiving module 914 is further adapted for:Receive the first http response messages that second terminal 920 returns;Display module 912 is also It is suitable to:Show the listed files of specified folder in User Interface.
In upper transmitting file, operate interface provides module 911 and is particularly adapted to:There is provided for adding text into specified folder First operate interface of part;Display module 912 is particularly adapted to:Show in User Interface for adding into specified folder First operate interface of add file.
When downloading file, operate interface provides module 911 and is particularly adapted to:For in the listed files of specified folder Each file, there is provided for downloading second operate interface of this document;Display module 912 is particularly adapted to:In User Interface The middle operation according to user shows the second operate interface for downloading this document.
Specifically, the first sending module 913 is particularly adapted to:According to access of the user to the second operate interface of specified file Request, is connected to the designated port of second terminal 920, the second http request for downloading specified file is sent to designated port Message, the second http request message carry the filename of specified file;Second sending module 922 is particularly adapted to:By specifying Specified file corresponding to filename is transferred to first terminal 910 by port.
Further, the second sending module 922 is particularly adapted to:By designated port by multiple specified files with least one The form of queue is transferred to first terminal 910 in thread and each thread.
Further, second terminal 920 also includes:Internal memory mapping block 924, suitable for being received when the second receiving module 921 To multiple first terminals 910 send when being used to download the second http request message of same specified file, by specified file plus It is downloaded in internal memory, so that multiple first terminals 910 download specified file from the internal memory of second terminal 920.
Further, second terminal 920 is included in the WiFi started after WiFi equipment 930 is connected with second terminal 920 Service routine, WiFi service routines are dll files, by call the dll files can realize reception/transmission specified protocol message, The functions such as port establishment, data processing, calling system API.Above-mentioned second receiving module 921, system interface calling module 923, The sending module 922 of internal memory mapping block 924 and second is the functional module by calling WiFi service routines to realize.
First sending module 913 is further adapted for:WiFi service routines into second terminal 920 send log messages;Second Receiving module 921 is further adapted for:Receive log messages;Second sending module 922 is further adapted for:According to log messages, to first terminal 910 return to login confirmation message;First receiving module 914 is further adapted for:Receive and log in confirmation message.
First sending module 913 is further adapted for:WiFi service routines into second terminal 920 send certification message;Second Receiving module 921 is further adapted for:Receive certification message;Second terminal 920 also includes:Authentication module 925, suitable for according to certification message Generate token;Second sending module 922 is further adapted for:The authenticate-acknowledge message for carrying token is returned to first terminal 910;First Receiving module 914 is further adapted for:Receive authenticate-acknowledge message.Wherein, token is the character string that elapsed time stamp is encrypted.It is optional Token is carried in ground, above-mentioned first, second http request message and first, second http response messages.
The system provided according to the present embodiment, in the communication established by WiFi equipment between first terminal and second terminal After connection, user is connect by the first operate interface provided in User Interface first terminal and/or the second operation The access request of mouth, the file interaction transmission between first terminal and second terminal can be realized, the system, which make use of, to be passed through The advantage of LAN between first terminal and second terminal that WiFi equipment creates, one kind has been provided the user in different terminals Between transmission file conveniently mode.Further, since integrality and data transfer of the transmission of file to data Reliability has higher requirements, so the system completes the biography of file by the request message based on http agreements and response message It is defeated, it ensure that file transmission integrity and reliability.Further, between the system provides first terminal and second terminal Communication mode need to carry encryption token, token can be prevented to be stolen, improve security.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are according to embodiments of the present invention based on WiFi equipment transmission file to realize The some or all functions of some or all parts in system.The present invention is also implemented as being used to perform being retouched here The some or all equipment or program of device (for example, computer program and computer program product) for the method stated. Such program for realizing the present invention can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from internet website and obtained, either provide on carrier signal or with it is any its He provides form.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (20)

1. a kind of method based on WiFi equipment transmission file, including:
The communication connection established by the WiFi equipment between first terminal and second terminal;Wherein, in the WiFi equipment After being connected with second terminal, start WiFi service routines in the second terminal;The WiFi service routines are dynamic link Library file;
After the communication connection is established, the first terminal is provided in User Interface and showed described for accessing 3rd operate interface of the specified folder of second terminal;
Access request according to user to the 3rd operate interface, the first terminal are sent for visiting to the second terminal The first http request message of the specified folder of the second terminal is asked, so that the second terminal is according to the first http Request message calls the interface of the listed files for browsing the specified folder of the operating system offer of the second terminal, obtains Take the listed files of the specified folder;
The first terminal receives the first of the listed files for carrying the specified folder that the second terminal returns Http response messages, the listed files of the specified folder is showed in the User Interface;
The first terminal provided in User Interface and show for upper transmitting file the first operate interface and/or be used for Download the second operate interface of file;
Access request according to user to first operate interface, the first terminal upload described the to the second terminal The file that one terminal preserves;And/or the access request according to user to second operate interface, the first terminal are downloaded The file that the second terminal preserves.
2. according to the method for claim 1, the first terminal is provided in User Interface and showed for uploading First operate interface of file is specially:The first terminal is provided in User Interface and showed for being specified to described First operate interface of add file in file.
3. according to the method for claim 1, the first terminal is provided in User Interface and showed for downloading Second operate interface of file is specially:For each file in the listed files of the specified folder, described first eventually End provides in User Interface and shows the second operate interface for downloading this document according to the operation of user.
4. the method according to claim 1 or 3, the access request according to user to second operate interface, described The file that second terminal described in one terminal downloads preserves further comprises:
Access request according to user to the second operate interface of specified file, the first terminal are connected to the second terminal Designated port, send the second http request message for downloading the specified file to the designated port, described second Http request message carries the filename of the specified file;
Specified file corresponding to the filename is transferred to the first terminal by the second terminal by the designated port.
5. according to the method for claim 4, when the specified file is multiple, the second terminal passes through described specify Specified file corresponding to the filename is transferred to the first terminal and further comprised by port:The second terminal passes through institute State designated port and multiple specified files are transferred to described first eventually in the form of queue at least one thread and each thread End.
6. according to the method for claim 4, methods described also includes:Sent when second terminal receives multiple first terminals When being used to download the second http request message of same specified file, in the specified file is loaded into by the second terminal In depositing, so that the multiple first terminal downloads the specified file from the internal memory of the second terminal.
It is 7. described that first terminal and second terminal are established by WiFi equipment according to the method described in claim any one of 1-3 Between communication connection further comprise:
WiFi service routine of the first terminal into the second terminal sends log messages;
The first terminal receives the login confirmation message that the WiFi service routines in the second terminal return.
8. according to the method for claim 7, described establish leading between first terminal and second terminal by WiFi equipment Letter connection also includes:
WiFi service routine of the first terminal into the second terminal sends certification message, in the second terminal WiFi service routines according to the certification message generate token;
The first terminal receives the authenticate-acknowledge message for carrying the token that the second terminal returns.
9. according to the method for claim 8, the token is the character string that elapsed time stamp is encrypted.
10. method according to claim 8 or claim 9, the http of interaction please between the first terminal and the second terminal Ask in message and http response messages and carry the token.
11. a kind of system based on WiFi equipment transmission file, including:First terminal, second terminal and the WiFi equipment, There is communication connection by being established described in the WiFi equipment between first terminal and the second terminal;
Wherein, the first terminal includes:Operate interface provides module, is adapted to provide for the first operate interface for upper transmitting file And/or for downloading the second operate interface of file and providing the 3rd of the specified folder for accessing the second terminal the Operate interface;Display module, suitable for showing the first operate interface for upper transmitting file provided in User Interface And/or for download the second operate interface of file, show in User Interface provided be used for access described second 3rd operate interface of the specified folder of terminal and the file row for showing the specified folder in User Interface Table;First sending module, suitable for the access request according to user to first operate interface, institute is uploaded to the second terminal The file of first terminal preservation and the access request according to user to the 3rd operate interface are stated, is sent out to the second terminal Send the first http request message of the specified folder for accessing the second terminal;First receiving module, suitable for according to Family receives the file downloaded from the second terminal and receives described second eventually to the access request of second operate interface Hold the first http response messages returned;
The second terminal includes:Second receiving module, suitable for receiving described in file and the reception of the first terminal upload The first http request message that first terminal is sent;Second sending module, suitable for sending the file downloaded to first terminal And the first http response messages of the listed files for carrying the specified folder are sent to the first terminal;System connects Mouth calling module, what the operating system suitable for the second terminal according to the first http request message call provided browses institute The interface of the listed files of specified folder is stated, obtains the listed files of the specified folder;
The second terminal is included in the WiFi service routines started after the WiFi equipment is connected with second terminal;Described Two receiving modules and second sending module are the functional module by calling the WiFi service routines to realize;Its In, the WiFi service routines are dynamic link library file.
12. system according to claim 11, the operate interface provides module and is particularly adapted to:There is provided and be used for the finger Determine the first operate interface of add file in file;The display module is particularly adapted to:Show use in User Interface In the first operate interface of the add file into the specified folder.
13. system according to claim 11, the operate interface provides module and is particularly adapted to:For the specified file Each file in the listed files of folder, there is provided for downloading second operate interface of this document;The display module is specifically fitted In:Show according to the operation of user the second operate interface for downloading this document in User Interface.
14. the system according to claim 11 or 13, first sending module is particularly adapted to:According to user to specifying text The access request of second operate interface of part, the designated port of the second terminal is connected to, sends and use to the designated port In the second http request message for downloading the specified file, the second http request message carries the specified file Filename;
Second sending module is particularly adapted to:Specified file corresponding to the filename is transferred to by the designated port The first terminal.
15. system according to claim 14, second sending module is particularly adapted to:To be more by the designated port Individual specified file is transferred to the first terminal in the form of queue at least one thread and each thread.
16. system according to claim 14, the second terminal also includes:Internal memory mapping block, suitable for when described , will when two receiving modules receive the second http request message for downloading same specified file that multiple first terminals are sent The specified file is loaded into internal memory, so that the multiple first terminal downloads the finger from the internal memory of the second terminal Determine file.
17. system according to claim 11, first sending module is further adapted for:WiFi into the second terminal Service routine sends log messages;
Second receiving module is further adapted for:Receive the log messages;
Second sending module is further adapted for:According to the log messages, returned to the first terminal and log in confirmation message;
First receiving module is further adapted for:Receive the login confirmation message.
18. system according to claim 17, first sending module is further adapted for:WiFi into the second terminal Service routine sends certification message;
Second receiving module is further adapted for:Receive the certification message;
The second terminal also includes:Authentication module, suitable for generating token according to the certification message;
Second sending module is further adapted for:The authenticate-acknowledge message for carrying the token is returned to the first terminal;
First receiving module is further adapted for:Receive the authenticate-acknowledge message.
19. system according to claim 18, the token is the character string that elapsed time stamp is encrypted.
20. the system according to claim 18 or 19, the http of interaction between the first terminal and the second terminal The token is carried in request message and http response messages.
CN201410436536.8A 2014-08-29 2014-08-29 Method and system based on WiFi equipment transmission file Active CN104158908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410436536.8A CN104158908B (en) 2014-08-29 2014-08-29 Method and system based on WiFi equipment transmission file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410436536.8A CN104158908B (en) 2014-08-29 2014-08-29 Method and system based on WiFi equipment transmission file

Publications (2)

Publication Number Publication Date
CN104158908A CN104158908A (en) 2014-11-19
CN104158908B true CN104158908B (en) 2017-11-17

Family

ID=51884313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410436536.8A Active CN104158908B (en) 2014-08-29 2014-08-29 Method and system based on WiFi equipment transmission file

Country Status (1)

Country Link
CN (1) CN104158908B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780268A (en) * 2015-03-24 2015-07-15 广东欧珀移动通信有限公司 Method and device for carrying out control operations on mobile terminal
CN104967668A (en) * 2015-05-28 2015-10-07 百度在线网络技术(北京)有限公司 Inter-equipment file transmission method, apparatus and system based on WIFI hot spot
CN106304410A (en) * 2016-09-14 2017-01-04 广东欧珀移动通信有限公司 A kind of data migration method and mobile terminal
CN107277122A (en) * 2017-06-07 2017-10-20 北京酷我科技有限公司 A kind of method by the cross-platform transmission files of WIFI
CN110113372A (en) * 2018-02-01 2019-08-09 广州阿里巴巴文学信息技术有限公司 Document transmission method, terminal, computer readable storage medium
CN109714385B (en) * 2018-11-09 2022-05-20 平安科技(深圳)有限公司 Method and device for uploading files, computer equipment and storage medium
CN109918545B (en) * 2019-03-26 2021-06-08 珠海格力智能装备有限公司 Method and device for extracting sensor data
CN114257678A (en) * 2022-03-02 2022-03-29 深圳中科智能技术有限公司 Mobile phone data intercommunication method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873575A (en) * 2014-03-17 2014-06-18 北京奇虎科技有限公司 WiFi (wireless fidelity) user interface-based application operation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938943A (en) * 2012-09-19 2013-02-20 河南智游网络技术有限公司 Wireless fidelity (WiFi) wireless data transmission method based on iPhone
CN103139313A (en) * 2013-03-13 2013-06-05 惠州Tcl移动通信有限公司 File transfer method and file transfer system between mobile terminals

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873575A (en) * 2014-03-17 2014-06-18 北京奇虎科技有限公司 WiFi (wireless fidelity) user interface-based application operation method and device

Also Published As

Publication number Publication date
CN104158908A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104158908B (en) Method and system based on WiFi equipment transmission file
CN104601641B (en) Application link sharing method, apparatus and system
CN1871572B (en) Binding content to a user
KR20220066181A (en) Methods and systems for processing an ephemeral content message
US20170371625A1 (en) Content delivery method
CN104125547B (en) Handle the method and short message processing device of short message
CN104363226B (en) Method, device and system for logging in operating system
CN111373345A (en) Portable storage device with modular power supply and housing system
CN102891889A (en) Information sharing method and device
CN104486388A (en) Accessing method and device of cloud storage file
CN101110656A (en) File transferring method for wireless network hard disk system
US20070117560A1 (en) Remote testing of mobile terminals
CN102469080A (en) Method for pass user to realize safety login application client and system thereof
CN105357110B (en) E-mail sending method, apparatus and system
CN104700003B (en) A kind of file shell adding and hulling method, apparatus and system
CN104507141A (en) File receiving method for client side and receiver client side
CN101005643B (en) Personal comprehensive network service and information system facing mobile terminal customer
CN109154968A (en) The system and method for the safety in organizing and efficiently communicated
WO2016032984A1 (en) Device verification prior to registration
CN103618824B (en) Method and the mobile terminal of information transmission is carried out in address list program
US20150058935A1 (en) Out-of-Path, Content-Addressed Writes with Untrusted Clients
CN104244171A (en) Data transmission system and method on basis of NFC (near field communication) connection
CN104158893B (en) The method and system of Contents of clipboard are transmitted based on WiFi equipment
CN104507176A (en) File sending method for client side and sender client side
CN106385516B (en) A kind of method, apparatus and terminal of the transfer of setting business

Legal Events

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

Effective date of registration: 20220708

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

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

TR01 Transfer of patent right