CN105516217A - Near-field file transfer method between intelligent terminals, server and intelligent terminal - Google Patents

Near-field file transfer method between intelligent terminals, server and intelligent terminal Download PDF

Info

Publication number
CN105516217A
CN105516217A CN201410489879.0A CN201410489879A CN105516217A CN 105516217 A CN105516217 A CN 105516217A CN 201410489879 A CN201410489879 A CN 201410489879A CN 105516217 A CN105516217 A CN 105516217A
Authority
CN
China
Prior art keywords
intelligent terminal
file
postural change
value
server
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.)
Pending
Application number
CN201410489879.0A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410489879.0A priority Critical patent/CN105516217A/en
Publication of CN105516217A publication Critical patent/CN105516217A/en
Pending legal-status Critical Current

Links

Abstract

Embodiments of the invention disclose a near-field file transfer method between intelligent terminals, a server and an intelligent terminal. The method comprises the following steps: based on the universal gravity sensing and GPS functions of mobile phones, a sender intelligent terminal and a receiver intelligent terminal each send posture change information and a unique identifier to a server after posture change; the server judges whether the sender intelligent terminal and the receiver intelligent terminal are paired according to the posture change information and the unique identifiers; and when the sender intelligent terminal and the receiver intelligent terminal are paired, the server receives a file sent by the sender intelligent terminal, stores the file, and generates a download address of the file to enable the receiver intelligent terminal to download the file. As the server completes pairing operation of the sender and the receiver, there is no need for the two transfer parties to perform a complex pairing process. The server is adopted to transfer and store the file, so that there is no need for the two transfer parties to be in a connected state all the time, and the receiver can acquire the file without relying on the sender if the transfer file is lost.

Description

Intelligent terminal near field document transmission method, server and intelligent terminal
Technical field
The present invention relates to mobile communication technology field, particularly relate to a kind of intelligent terminal near field document transmission method, server and intelligent terminal.
Background technology
NFC (NearFieldCommunication, near-field communication) be a kind of short-range high frequency wireless communication technology, allow to carry out contactless Point-to-Point Data Transmission (usually in 10 centimetres) between electronic equipment, be mainly used between smart card with smart machine, provide M2M (MachinetoMachine) to communicate.Along with the development of technology, NFC also gradually for the M2M communication between the intelligent terminal such as mobile phone, flat board, such as, utilizes NFC to realize bill payment between mobile phone and mobile phone or file direct transfers.
The M2M using NFC to realize between intelligent terminal serves, and needs to install NFC module in intelligent terminal, and the software that configuration is relevant.After the NFC function of opening intelligent terminal, aim at the NFC surveyed area of two intelligent terminals, the spacing in two regions can not (generally within 10 centimetres) excessively far away, after aiming at, NFC module identifies that the electronic tag of the other side matches respectively, the information of carrying out that connects after successful matching transmission, or carry out file transfer by bluetooth or wireless network.
Inventor is realizing finding in process of the present invention, due to NFC module integrated in the hardware of intelligent terminal and the system of the NFC function that provides support and software remain the problem of a complicated difficulty, the intelligent terminal that therefore NFC can be provided to serve is little, the intelligent terminal of a few high-end is only had to possess, and the NFC coupling between intelligent terminal is subject to the restriction of system platform, usually can only mate with the intelligent terminal between brand; During use NFC transmission file, both sides need to keep connection status, and file transfer relies on bluetooth and wireless network, cause transmission matching operation complexity high; Owing to being that both sides direct transfer, if transfer files is surprisingly lost, recipient cannot obtain again, need same transmit leg again to perform coupling and transmit operation.
Summary of the invention
Rely on for overcoming in correlation technique the problem that NFC module realizes intelligent terminal near field file transfer, the application provides a kind of intelligent terminal near field document transmission method, server and intelligent terminal.
According to the first aspect of the embodiment of the present application, at server side, a kind of intelligent terminal near field document transmission method is provided, comprises:
The postural change time that server reception transmit leg intelligent terminal and recipient's intelligent terminal send, postural change address and unique identification;
Judge whether described transmit leg intelligent terminal and recipient's intelligent terminal match according to described postural change time, postural change address and unique identification;
When described transmit leg intelligent terminal and the successful matching of recipient's intelligent terminal, receive the file that transmit leg intelligent terminal sends, store described file, and generate the download address of described file, download described file for recipient's intelligent terminal according to described download address.
Optionally, described intelligent terminal near field document transmission method, also comprises:
Store the pair record of transmit leg intelligent terminal and recipient's intelligent terminal;
Store the download address of described file.
Optionally, described intelligent terminal near field document transmission method, is characterized in that, also comprise:
Receive the verification MD5 value of the described file that transmit leg intelligent terminal sends;
According to described file generated MD5 value to be verified;
Judge that whether described MD5 value to be verified is consistent with described verification MD5 value;
If described MD5 value to be verified is consistent with described verification MD5 value, spanned file download address, otherwise, send file verification error notification to described transmit leg intelligent terminal.
Optionally, judge whether described transmit leg intelligent terminal and recipient's intelligent terminal match, and comprising according to described postural change time, postural change address and unique identification:
Calculate the time difference of transmit leg intelligent terminal postural change time and recipient's intelligent terminal postural change time;
Calculate the distance of transmit leg intelligent terminal postural change address and recipient's intelligent terminal postural change address;
Judge whether described time difference is less than time threshold and whether described distance is less than distance threshold;
If described time difference is less than time threshold and described distance is less than distance threshold, then successful matching, otherwise, match unsuccessfully.
According to the second aspect of the embodiment of the present application, in intelligent terminal side, a kind of intelligent terminal near field file transfer means is provided, comprises:
Intelligent terminal, when there is postural change, sends postural change time, postural change address and unique identification to server;
When intelligent terminal is as transmit leg, after postural change, send file to server;
When intelligent terminal is as recipient, after postural change, to the pairing result that server lookup postural change is corresponding, when described pairing result is successful matching, obtain the file download address corresponding with described pairing result that server provides, and according to described file download address download file.
Optionally, described intelligent terminal near field document transmission method, also comprises:
When intelligent terminal is as transmit leg, after postural change, send the verification MD5 value of described file to server;
When intelligent terminal is as recipient, behind the file download address corresponding with pairing result that acquisition server provides, download described file according to described download address and obtain the verification MD5 value of described file, according to the described file generated MD5 value to be verified downloaded, judge that whether described verification MD5 value is consistent with MD5 value to be verified, when verifying MD5 value and MD5 value to be verified is inconsistent, again download described file.
According to the third aspect of the embodiment of the present application, a kind of server is provided, comprises:
First receiving element, for receiving postural change time that transmit leg intelligent terminal and recipient's intelligent terminal send, postural change address and unique identification;
According to described postural change time, postural change address and unique identification, pairing unit, for judging whether described transmit leg intelligent terminal and recipient's intelligent terminal match;
Second receiving element, for when described transmit leg intelligent terminal and the successful matching of recipient's intelligent terminal, receives the file that transmit leg intelligent terminal sends;
File storage unit, for storing described file;
Download address generation unit, for generating the download address of described file.
Optionally, described server, also comprises:
Pair record memory cell, for storing the pair record of transmit leg intelligent terminal and recipient's intelligent terminal;
Download address memory cell, for storing the download address of described file.
Optionally, described server, also comprises:
3rd receiving element, for receiving the verification MD5 value of the described file that transmit leg intelligent terminal sends;
One MD5 value generation unit, for according to described file generated MD5 value to be verified;
First verification unit, for judging that whether described MD5 value to be verified is consistent with described verification MD5 value;
Error notification transmitting element, for described MD5 value to be verified and described verification MD5 value inconsistent time, send file verification error notification to described transmit leg intelligent terminal.
Optionally, described download address generation unit, for when described MD5 value to be verified is consistent with described verification MD5 value, generates the download address of described file.
Optionally, described pairing unit, comprising:
Time difference computing unit, for calculating the time difference of transmit leg intelligent terminal postural change time and recipient's intelligent terminal postural change time;
Metrics calculation unit, for calculating the distance of transmit leg intelligent terminal postural change address and recipient's intelligent terminal postural change address;
Time difference judging unit, for judging whether described time difference is less than time threshold;
Distance Judgment unit, for judging whether described distance is less than distance threshold;
Pairing unit, if described time difference is less than time threshold and described distance is less than distance threshold, then successful matching, otherwise, match unsuccessfully.
According to the third aspect of the embodiment of the present application, a kind of intelligent terminal is provided, comprises:
Postural change time acquisition unit, for obtain intelligent terminal with postural change time during the opposing party's intelligent terminal postural change;
Postural change address acquisition unit, for obtain intelligent terminal with postural change address during the opposing party's intelligent terminal postural change;
Unique identification acquiring unit, for obtaining the unique identification of intelligent terminal;
First transmitting element, for sending described postural change time, postural change address and unique identification to server;
Second transmitting element, during for intelligent terminal as transmit leg, after postural change, sends file to server;
Query unit, during for intelligent terminal as recipient, to the pairing result that server lookup postural change is corresponding;
Download address acquiring unit, during for intelligent terminal as recipient, when described pairing result is successful matching, obtains the file download address corresponding with described pairing result that server provides;
Download unit, during for intelligent terminal as recipient, according to described file download address download file.
Optionally, described intelligent terminal, also comprises:
3rd transmitting element, during for intelligent terminal as transmit leg, after postural change, sends the verification MD5 value of described file to server;
MD5 value acquiring unit, during for intelligent terminal as recipient, behind the file download address corresponding with pairing result that acquisition server provides, obtains the verification MD5 value of described file;
2nd MD5 value generation unit, according to the described file generated MD5 value to be verified downloaded;
Whether the second verification unit is consistent with MD5 value to be verified for judging described verification MD5 value;
Heavy duty control unit, for when verifying MD5 value and MD5 value to be verified is inconsistent, controlling described download unit and again downloading described file.
The technical scheme that the embodiment of the present application provides can comprise following beneficial effect: utilize the widely used gravity sensing of current mobile phone and GPS function, realizes the near field file transmitting function between intelligent terminal, not by the restriction of intelligent terminal system; File transfer relies on mobile network, wireless network or the Internet, and the file size of transmission speed and transmission is not by the restriction of bluetooth equipment; Completed the pairing computing of transmit leg and recipient by server, transmission both sides do not need to carry out complicated pairing process, reduce the complexity of user operation; Owing to using transit server and preserving file, transmission both sides do not need to remain connection status, and transmission log can be looked into, if transfer files is lost, recipient can not rely on transmit leg and again obtain file; Use MD5 verification scheme, ensure the integrality of transfer files.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the application.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, for those of ordinary skills, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of intelligent terminal near field document transmission method shown in the application one exemplary embodiment.
Fig. 2 is the schematic flow sheet of a kind of intelligent terminal near field document transmission method shown in another exemplary embodiment of the application.
Fig. 3 is the schematic flow sheet of the another kind of intelligent terminal near field document transmission method shown in the application one exemplary embodiment.
Fig. 4 is the schematic flow sheet of the another kind of intelligent terminal near field document transmission method shown in another exemplary embodiment of the application.
Fig. 5 is the block diagram of a kind of server shown in the application one exemplary embodiment.
Fig. 6 is the block diagram of a kind of server shown in another exemplary embodiment of the application.
Fig. 7 is the block diagram of a kind of intelligent terminal shown in the application one exemplary embodiment.
Fig. 8 is the block diagram of a kind of intelligent terminal shown in another exemplary embodiment of the application.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the application.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that some aspects of the application are consistent.
In order to complete understanding the application, refer to numerous concrete details in the following detailed description, but it should be appreciated by those skilled in the art that the application can realize without the need to these details.In other embodiments, be not described in detail known method, process, assembly and circuit, in order to avoid unnecessarily cause embodiment fuzzy.
In the first aspect of the application, at server side, provide a kind of intelligent terminal near field document transmission method.Fig. 1 is the schematic flow sheet of a kind of intelligent terminal near field document transmission method shown in the application one exemplary embodiment, and as shown in Figure 1, described method comprises:
In step S101, the postural change time that server reception transmit leg intelligent terminal and recipient's intelligent terminal send, postural change address and unique identification.
Wherein, intelligent terminal uses the postural change time during gravity sensing unit acquisition postural change carried, use postural change address during GPS unit acquisition postural change, the acquisition of postural change time and postural change address can be carried out when needing two intelligent terminals of transfer files open near field file transmitting functions and carry out postural change.Described postural change will can be moved with certain form while of two intelligent terminals and contact for user, also can be that two intelligent terminals are close, do not contact with the motion of certain form simultaneously, described motion is for enabling the motion of gravity sensing unit perception intelligent terminal postural change, with the postural change time enabling gravity sensing unit obtain two intelligent terminals, such as, two intelligent terminals are along same track reverse direction operation.Wherein, ultimate range close between two intelligent terminals can according to server in subsequent step carry out recipient's intelligent terminal and transmit leg intelligent terminal pairing time distance threshold determine, such as distance threshold is 6m, then can the distance of interval 5m between two intelligent terminals, but because two intelligent terminals are separated by far away, more be difficult to maintenance be synchronized with the movement, can strengthen the error of follow-up pairing, therefore preferably two intelligent terminals move with certain form and contact.Intelligent terminal uses the postural change time during gravity sensing unit acquisition postural change carried, because gravity sensing unit can obtain the acceleration of intelligent terminal in X, Y and Z-direction, during intelligent terminal generation postural change, acceleration at least one direction can change, and the time of record acceleration change can obtain the postural change time.
After needing two intelligent terminals of transfer files to open near field file transmitting function, the described postural change time can also be obtained by the gyro sensor in intelligent terminal.Described postural change for user by two intelligent terminals near and rotate, or two intelligent terminals are contacted and rotate, such as shake intelligent terminal, the rotation of gyro sensor perception intelligent terminal, record the time of rotation thus the postural change time can be obtained.Wherein, close between two intelligent terminals ultimate range can according to server in subsequent step carry out recipient's intelligent terminal and transmit leg intelligent terminal pairing time distance threshold determine.
Postural change address is the address that intelligent terminal corresponds to the postural change time, i.e. the address of intelligent terminal when there is postural change, and can be obtained by the GPS locating module of intelligent terminal, the postural change address obtained represents with coordinate usually.The unique identification of intelligent terminal, can be the MAC (MediaAccessControl of intelligent terminal, medium access control) address, or IMEI (InternationalMobileEquipmentIdentity, mobile device international identity code).After server receives postural change time that both sides' intelligent terminal sends, postural change address and unique identification, record and store postural change time of both sides' intelligent terminal, postural change address and unique identification.
In step s 102, judge whether described transmit leg intelligent terminal and described recipient's intelligent terminal match according to described postural change time, postural change address and unique identification.
Wherein, after server receives postural change time of transmit leg intelligent terminal and recipient's intelligent terminal, postural change address and unique identification, judge whether described transmit leg intelligent terminal and recipient's intelligent terminal match, namely confirm, when the secondary both sides' intelligent terminal carrying out postural change, can comprise:
(1) time difference of transmit leg intelligent terminal postural change time and recipient's intelligent terminal postural change time is calculated;
(2) distance of transmit leg intelligent terminal postural change address and recipient's intelligent terminal postural change address is calculated;
(3) judge whether described time difference is less than time threshold and whether described distance is less than distance threshold;
(4) if described time difference is less than time threshold and described distance is less than distance threshold, then successful matching, otherwise, match unsuccessfully.
Wherein, time threshold can according to intelligent terminal itself obtain the precision of postural change time and pairing need determine, the usual precision of the time value obtained by gravity sensing unit can reach below 1s, therefore described time threshold can be 1s, because the time of postural change is very short, the postural change of two intelligent terminals of time difference within 1s can be considered as being postural change occurs simultaneously.Distance threshold can according to GPS obtain the precision of intelligent terminal coordinate and pairing need determine, GPS positioning precision can reach 5m usually, concentrate among a small circle carry out postural change simultaneously owing to generally not having multiple intelligent terminal, therefore described distance threshold can be set to 10m, also can be set to the rational values such as 6m.
When described time difference is less than time threshold and described distance is less than distance threshold, transmit leg intelligent terminal and the successful matching of recipient's intelligent terminal, namely (be considered as simultaneously) within the close time and two intelligent terminals of (in the scope that distance threshold limits) generation postural change can match in close distance.If described time difference is greater than time threshold, or described distance is greater than distance threshold, then match failure, that is, the length if both sides' intelligent terminal postural change time is separated by, then be considered as non-concurrent generation postural change, if both sides' intelligent terminal postural change address is separated by far, be then considered as not being participate in when time both sides' intelligent terminal of generation postural change.The result of pairing, i.e. successful matching and match unsuccessfully, with the unique identification of the transmit leg intelligent terminal carrying out matching and the unique identification of recipient's intelligent terminal, and the postural change time of transmit leg intelligent terminal and recipient's intelligent terminal postural change time are corresponding, by server record, inquiry can be prepared against.
The postural change time that transmit leg intelligent terminal sends and self postural change address and unique identification corresponding, the postural change time that recipient's intelligent terminal sends and self postural change address and unique identification corresponding, after server receives postural change time that transmit leg intelligent terminal and recipient's intelligent terminal send, postural change address and unique identification, preserve the postural change time of both sides' transmission, postural change address and unique identification, and calculate described time difference and described distance.Described time difference corresponds to the unique identification of transmit leg intelligent terminal and the unique identification of recipient's intelligent terminal, can get the absolute value of the difference of the postural change time of transmit leg intelligent terminal and the postural change time of recipient's intelligent terminal.Time difference described in described Distance geometry is corresponding, correspondingly also the unique identification of transmit leg intelligent terminal and the unique identification of recipient's intelligent terminal corresponding.When judged result is successful matching, determine by the unique identification of the transmit leg intelligent terminal corresponding with described time difference or distance the transmit leg intelligent terminal carrying out postural change, determine by the unique identification of recipient's intelligent terminal corresponding with described time difference or distance the recipient's intelligent terminal carrying out postural change.Namely transmit leg intelligent terminal and the recipient's intelligent terminal of determining to carry out postural change determine two intelligent terminals carrying out file transfer.
In step s 103, when described transmit leg intelligent terminal and described recipient's intelligent terminal successful matching, receive the file that described transmit leg intelligent terminal sends, and store described file.
Wherein, when described transmit leg intelligent terminal and the successful matching of recipient's intelligent terminal, in a kind of possible execution mode, server sends successful matching notice to transmit leg intelligent terminal, wherein, for two intelligent terminal whichever of carrying out postural change be transmit leg, whichever is recipient, can be distinguished when file opening transfer function by two intelligent terminals, namely the sending function in the transmission of transmit leg intelligent terminal file opening, the receiving function in the transmission of recipient's intelligent terminal file opening.Sending function and receiving function have different Function Identifications, be sent to server by transmit leg intelligent terminal and recipient's intelligent terminal corresponding with the unique identification of transmit leg intelligent terminal and the unique identification of recipient's intelligent terminal respectively, thus server can be distinguished, and whichever is transmit leg, whichever is recipient.
In the execution mode that another kind is possible, successful matching notice also can be issued both sides' intelligent terminal of successful matching simultaneously by server, after transmit leg intelligent terminal for reception to described successful matching notice, the file that need transmit is sent to server, server receives described file, although recipient's intelligent terminal also receives successful matching notice, do not carry out action, thus server does not need, and differentiation whichever is transmit leg, whichever is recipient.In another execution mode, the query interface provided by transmit leg intelligent terminal polling server, by the pairing result of described query interface querying server, when inquiring the successful matching result corresponding with self unique identification, check described successful matching result corresponding by the transmit leg postural change time of server record and the postural change time of transmit leg intelligent terminal self record, if two postural change times are equal, then represent when time both sides' intelligent terminal successful matching of generation postural change, transmit leg intelligent terminal sends the file that need transmit to server, server receives described file.The for the benefit of repeated downloads of file, the described file that server stores receives.
In step S104, generate the download address of described file.
Wherein, after server receives described file, generate the download address of described file, download address is stored in server after generating, and is beneficial to the repeated downloads of file.After server generates the download address of described file, recipient's intelligent terminal can download described file according to described download address, completes file transfer.
Fig. 2 is the schematic flow sheet of a kind of intelligent terminal near field document transmission method shown in another exemplary embodiment of the application, and as shown in Figure 2, described method comprises:
In step s 201, server receives postural change time that transmit leg intelligent terminal and recipient's intelligent terminal send, postural change address and unique identification.
In step S202, judge whether described transmit leg intelligent terminal and described recipient's intelligent terminal match according to described postural change time, postural change address and unique identification.
In step S203, when described transmit leg intelligent terminal and described recipient's intelligent terminal successful matching, receive the file of described transmit leg intelligent terminal transmission and the verification MD5 value of described file.
Wherein, the MD5 value of the file generated sent as required by described transmit leg intelligent terminal is as verification MD5 value.
In step S204, according to described file generated MD5 value to be verified.
Wherein, server receives the file that described transmit leg intelligent terminal sends, and is MD5 value to be verified according to the MD5 value of described file generated.
In step S205, judge that whether described MD5 value to be verified is consistent with described verification MD5 value.
Wherein, the MD5 value to be verified generated by server and the verification MD5 value comparison received, whether both judgements are consistent.
In step S206, if described MD5 value to be verified is consistent with described verification MD5 value, spanned file download address.
In step S207, if described MD5 value to be verified and described verification MD5 value inconsistent, send file verification error notification to described transmit leg intelligent terminal.
Wherein, if described MD5 value to be verified and described verification MD5 value inconsistent, then send file verification error notification to described transmit leg intelligent terminal, described transmission sends described file to server after putting intelligent terminal for reception to file verification error notification again.By using MD5 value verification scheme, can the correctness of file that receives of Deterministic service device and integrality.
In the second aspect of the application, in intelligent terminal side, provide another kind of intelligent terminal near field document transmission method.Fig. 3 is the schematic flow sheet of the another kind of intelligent terminal near field document transmission method shown in the application one exemplary embodiment, and as shown in Figure 3, described method comprises:
In step S301, intelligent terminal, when there is postural change, sends postural change time, postural change address and unique identification to server;
In step s 302, when intelligent terminal is as transmit leg, after postural change, send file to server;
In step S303, when intelligent terminal is as recipient, after postural change:
In step S3031, to the pairing result that postural change described in server lookup is corresponding;
In step S3032, when described pairing result is successful matching, obtain the file download address corresponding with described pairing result that server provides;
In step S3033, behind the described file download address of acquisition, according to described file download address download file.
Wherein, during intelligent terminal generation postural change, can be, when synchronously there is postural change with the opposing party's intelligent terminal, send postural change time, postural change address and unique identification to server, and need the file of transmission; Also can be when there is separately postural change, send postural change time, postural change address and unique identification to server, and need the file of transmission.Owing to there is no the opposing party's intelligent terminal matched under latter event, the pairing result of server can be unsuccessfully, file can not be transferred to another intelligent terminal, if there is the opposing party's intelligent terminal by chance within the scope of distance threshold and within the time interval of time threshold, postural change to occur, then may there is misinformation defeated, but the near field file transfer between intelligent terminal just can be carried out after the near field file transmitting function opening intelligent terminal, thus it is defeated to avoid that misinformation occurs.
Wherein, when intelligent terminal is as transmit leg, after postural change, in a kind of possible execution mode, reception server, to the successful matching notice sent, sends the file that need transmit to server.In another embodiment, the query interface that transmit leg intelligent terminal polling server provides, by the pairing result of described query interface querying server, when inquiring the successful matching result corresponding with self unique identification, check described successful matching result corresponding by the transmit leg postural change time of server record and the postural change time of transmit leg intelligent terminal self record, if two postural change times are equal, then represent when time both sides' intelligent terminal successful matching of generation postural change, transmit leg intelligent terminal sends the file needing transmission to server.Intelligent terminal also can not receive successful matching notice, or inquiry successful matching result, but namely transmission file request is mentioned to server after postural change, according to pairing result, server judges whether that transmit leg intelligent terminal can send file, or judge whether the file receiving the transmission of transmit leg intelligent terminal, such as, match unsuccessfully, then can not send file to transmit leg intelligent terminal or the prompting of both sides' intelligent terminal, or not receive the file of transmit leg intelligent terminal transmission.
Wherein, when intelligent terminal is as recipient, the query interface that polling server provides, by the pairing result of described query interface querying server, when inquiring the successful matching result corresponding with self unique identification, check described successful matching result corresponding by recipient's postural change time of server record and the postural change time of recipient's intelligent terminal self record, if two postural change times are equal, then represent the both sides' intelligent terminal successful matching when time postural change, then the file download address corresponding with described pairing result that server provides is obtained, and according to described file download address download file.If when obtaining described file download address, server is spanned file download address not yet, then recipient's intelligent terminal is waited for, and with the query interface polling server that certain frequency is provided by server, after getting described file download address, according to described file download address download file.In a kind of possible execution mode, described successful matching result sends to recipient's intelligent terminal by server, after recipient's intelligent terminal for reception to described successful matching result, obtain the file download address corresponding with described pairing result that server provides, and according to described file download address download file.
Wherein, when intelligent terminal is as recipient, according to the failure of described file download address download file or interruption, can again again downloads according to download address or resume.
Fig. 4 is the schematic flow sheet of the another kind of intelligent terminal near field document transmission method shown in another exemplary embodiment of the application, and as shown in Figure 4, described method comprises:
In step S401, intelligent terminal, when there is postural change, sends postural change time, postural change address and unique identification to server;
In step S402, when intelligent terminal is as transmit leg, after postural change, send the verification MD5 value of file and described file to server;
In step S403, when intelligent terminal is as recipient, after postural change, perform following steps:
In step S4031, to the pairing result that server lookup postural change is corresponding;
In step S4032, when described pairing result is successful matching, obtain the file download address corresponding with described pairing result that server provides;
In step S4033, download described file according to described file download address, and obtain the verification MD5 value of described file;
In step S4034, according to the described file generated MD5 value to be verified downloaded;
In step S4035, judge that whether described verification MD5 value is consistent with MD5 value to be verified;
In step S4036, when verifying MD5 value and MD5 value to be verified is inconsistent, again download described file, thus ensure correctness and the integrality of file.
By the description of above embodiment of the method, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, and be stored in a storage medium, comprise all or part of step of some instructions in order to make a smart machine perform method described in each embodiment of the application.And aforesaid storage medium comprises: the various media that can store data and program code such as read-only memory (ROM), random access memory (RAM), magnetic disc or CDs.
Corresponding to the first aspect of the application, in the third aspect of the application, provide a kind of server.Fig. 5 is the block diagram of a kind of server shown in the application one exemplary embodiment, and as shown in Figure 5, described server comprises:
First receiving element U501, for receiving postural change time that transmit leg intelligent terminal and recipient's intelligent terminal send, postural change address and unique identification;
Pairing unit U502, is connected with U501, for judging whether described transmit leg intelligent terminal and recipient's intelligent terminal match according to described postural change time, postural change address and unique identification;
Second receiving element U503, is connected with U502, for receiving the file that transmit leg intelligent terminal sends;
File storage unit U504, is connected with U503, for storing described file;
Download address generation unit U505, is connected with U504, for generating the download address of described file.
Wherein, when transmit leg intelligent terminal and the successful matching of recipient's intelligent terminal, the second receiving element U503 receives the file that transmit leg intelligent terminal sends.
Fig. 6 is the block diagram of a kind of server shown in another exemplary embodiment of the application.As shown in Figure 6, described server comprises:
First receiving element U601, for receiving postural change time that transmit leg intelligent terminal and recipient's intelligent terminal send, postural change address and unique identification;
Pairing unit U602, is connected with U601, for judging whether described transmit leg intelligent terminal and recipient's intelligent terminal match according to described postural change time, postural change address and unique identification;
Second receiving element U603, is connected with U602, for receiving the file that transmit leg intelligent terminal sends;
3rd receiving element U604, is connected with U603, for receiving the verification MD5 value of the described file that transmit leg intelligent terminal sends;
One MD5 value generation unit U605, is connected with U604, for according to described file generated MD5 value to be verified;
First verification unit U606, is connected with U605, for judging that whether described MD5 value to be verified is consistent with described verification MD5 value;
Error notification transmitting element U607, is connected with U606, for described MD5 value to be verified and described verification MD5 value inconsistent time, send file verification error notification to described transmit leg intelligent terminal;
Download address generation unit U608, is connected with U607, for when described MD5 value to be verified is consistent with described verification MD5 value, generates the download address of described file;
Pair record memory cell U609, is connected with U608, for storing the pair record of transmit leg intelligent terminal and recipient's intelligent terminal;
File storage unit U6010, is connected with U609, for storing the file that transmit leg intelligent terminal sends;
Download address memory cell U6011, is connected with U6010, for storing the download address of described file.
Wherein, when transmit leg intelligent terminal and the successful matching of recipient's intelligent terminal, the second receiving element U503 receives the file that transmit leg intelligent terminal sends.
Wherein, described download address generation unit, for when described MD5 value to be verified is consistent with described verification MD5 value, generates the download address of described file.
Wherein, described pairing unit, comprising:
Time difference computing unit, for calculating the time difference of transmit leg intelligent terminal postural change time and recipient's intelligent terminal postural change time;
Metrics calculation unit, for calculating the distance of transmit leg intelligent terminal postural change address and recipient's intelligent terminal postural change address;
Time difference judging unit, for judging whether described time difference is less than time threshold;
Distance Judgment unit, for judging whether described distance is less than distance threshold;
Pairing unit, if described time difference is less than time threshold and described distance is less than distance threshold, then successful matching, otherwise, match unsuccessfully.
Corresponding to the second aspect of the application, in the fourth aspect of the application, provide a kind of intelligent terminal.Fig. 7 is the block diagram of a kind of intelligent terminal shown in the application one exemplary embodiment, and as shown in Figure 7, described intelligent terminal comprises:
Postural change time acquisition unit U701, for obtaining postural change time during intelligent terminal postural change;
Postural change address acquisition unit U702, is connected with U701, for obtaining postural change address during intelligent terminal postural change;
Unique identification acquiring unit U703, for obtaining the unique identification of intelligent terminal;
First transmitting element U704, is connected with U701, U702 and U703, for sending described postural change time, postural change address and unique identification to server;
Second transmitting element U705, is connected with U704, during for intelligent terminal as transmit leg, after postural change, sends file to server;
Query unit U706, is connected with U704, during for intelligent terminal as recipient, after postural change, to the pairing result that server lookup postural change is corresponding;
Download address acquiring unit U707, is connected with U706, during for intelligent terminal as recipient, when described pairing result is successful matching, obtains the file download address corresponding with described pairing result that server provides;
Download unit U708, is connected with U707, during for intelligent terminal as recipient, according to described file download address download file.
Fig. 8 is the block diagram of a kind of intelligent terminal shown in another exemplary embodiment of the application, and as shown in Figure 8, described intelligent terminal comprises:
Postural change time acquisition unit U801, for obtain intelligent terminal with postural change time during the opposing party's intelligent terminal postural change;
Postural change address acquisition unit U802, is connected with U801, for obtain intelligent terminal with postural change address during the opposing party's intelligent terminal postural change;
Unique identification acquiring unit U803, for obtaining the unique identification of intelligent terminal;
First transmitting element U804, is connected with U801, U802 and U803, for sending described postural change time, postural change address and unique identification to server;
Second transmitting element U805, is connected with U804, during for intelligent terminal as transmit leg, after postural change, sends file to server;
3rd transmitting element U806, is connected with U805, during for intelligent terminal as transmit leg, after postural change, sends the verification MD5 value of described file to server;
Query unit U807, is connected with U804, during for intelligent terminal as recipient, to the pairing result that server lookup postural change is corresponding;
Download address acquiring unit U808, is connected with U807, during for intelligent terminal as recipient, when described pairing result is successful matching, obtains the file download address corresponding with described pairing result that server provides;
MD5 value acquiring unit U809, is connected with U808, during for intelligent terminal as recipient, behind the file download address corresponding with pairing result that acquisition server provides, obtains the verification MD5 value of described file;
Download unit U8010, is connected with U808, during for intelligent terminal as recipient, according to described file download address download file.
2nd MD5 value generation unit U8011, is connected with U8010, according to the described file generated MD5 value to be verified downloaded;
Whether the second verification unit U8012, is connected with U809 and U8011, consistent with MD5 value to be verified for judging described verification MD5 value;
Heavy duty control unit U8013, is connected with U8012 and U8010, for when verifying MD5 value and MD5 value to be verified is inconsistent, controls described download unit U8010 and again downloading described file.
It should be noted that, the intelligent terminal that the embodiment of the present application provides, also comprise the part included by normal procedure intelligent terminal, near field file transmitting function can also be comprised and open unit and near field file transmitting function closing unit, described near field file transmitting function is opened unit and is used for enable all unit for realizing near field file transfer, as U701 to U708, or U801 to 8013, described near field file transmitting function closing unit is for forbidding all unit for realizing near field file transfer.Unit for realizing near field file transfer also can be opened when intelligent terminal is started shooting, close when intelligent terminal shuts down, posture due to intelligent terminal is easy to change, the associative operation of much unnecessary near field file transfer can be there is like this, waste system resource, server resource and Internet resources, also easily there is misinformation defeated, such as, file transfer is given and contact because of carelessness and other intelligent terminals of postural change occur.And use near field file transmitting function to open unit and near field file transmitting function closing unit, then just can open the near field file transmitting function of intelligent terminal when needed, carry out near field file transfer associative operation, close the near field file transmitting function of intelligent terminal after end of transmission, thus ensure the correctness of file transfer and saving resource.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device or system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Apparatus and system embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
It should be noted that, in this article, the such as relational terms of " first " and " second " etc. and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply these entities or there is relation or the backward of any this reality between operating.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The above is only the embodiment of the application, those skilled in the art is understood or realizes the application.To be apparent to one skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein when not departing from the spirit or scope of the application, can realize in other embodiments.Therefore, the application can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (13)

1. an intelligent terminal near field document transmission method, is characterized in that, comprising:
The intelligent terminal postural change time that server reception transmit leg intelligent terminal and recipient's intelligent terminal send, postural change address and unique identification;
Judge whether described transmit leg intelligent terminal and recipient's intelligent terminal match according to described postural change time, postural change address and unique identification;
When described transmit leg intelligent terminal and the successful matching of recipient's intelligent terminal, receive the file that transmit leg intelligent terminal sends, store described file, and generate the download address of described file, download described file for recipient's intelligent terminal according to described download address.
2. intelligent terminal near field as claimed in claim 1 document transmission method, is characterized in that, also comprise:
Store the pair record of transmit leg intelligent terminal and recipient's intelligent terminal;
Store the download address of described file.
3. intelligent terminal near field as claimed in claim 1 document transmission method, is characterized in that, also comprise:
Receive the verification MD5 value of the described file that transmit leg intelligent terminal sends;
According to described file generated MD5 value to be verified;
Judge that whether described MD5 value to be verified is consistent with described verification MD5 value;
If described MD5 value to be verified is consistent with described verification MD5 value, spanned file download address, otherwise, send file verification error notification to described transmit leg intelligent terminal.
4. the intelligent terminal near field document transmission method as described in any one of claim 1-3, it is characterized in that, judge whether described transmit leg intelligent terminal and recipient's intelligent terminal match, and comprising according to described postural change time, postural change address and unique identification:
Calculate the time difference of transmit leg intelligent terminal postural change time and recipient's intelligent terminal postural change time;
Calculate the distance of transmit leg intelligent terminal postural change address and recipient's intelligent terminal postural change address;
Judge whether described time difference is less than time threshold and whether described distance is less than distance threshold;
If described time difference is less than time threshold and described distance is less than distance threshold, then successful matching, otherwise, match unsuccessfully.
5. an intelligent terminal near field document transmission method, is characterized in that, comprising:
Intelligent terminal, when there is postural change, sends postural change time, postural change address and unique identification to server;
When intelligent terminal is as transmit leg, after postural change, send file to server;
When intelligent terminal is as recipient, after postural change, to the pairing result that server lookup postural change is corresponding, when described pairing result is successful matching, obtain the file download address corresponding with described pairing result that server provides, and according to described file download address download file.
6. intelligent terminal near field as claimed in claim 5 document transmission method, is characterized in that, also comprise:
When intelligent terminal is as transmit leg, after postural change, send the verification MD5 value of described file to server;
When intelligent terminal is as recipient, behind the file download address corresponding with pairing result that acquisition server provides, download described file according to described download address and obtain the verification MD5 value of described file, according to the described file generated MD5 value to be verified downloaded, judge that whether described verification MD5 value is consistent with MD5 value to be verified, when verifying MD5 value and MD5 value to be verified is inconsistent, again download described file.
7. a server, is characterized in that, comprising:
First receiving element, for receiving postural change time that transmit leg intelligent terminal and recipient's intelligent terminal send, postural change address and unique identification;
According to described postural change time, postural change address and unique identification, pairing unit, for judging whether described transmit leg intelligent terminal and recipient's intelligent terminal match;
Second receiving element, for when described transmit leg intelligent terminal and the successful matching of recipient's intelligent terminal, receives the file that transmit leg intelligent terminal sends;
File storage unit, for storing described file;
Download address generation unit, for generating the download address of described file.
8. server as claimed in claim 7, is characterized in that, also comprise:
Pair record memory cell, for storing the pair record of transmit leg intelligent terminal and recipient's intelligent terminal;
Download address memory cell, for storing the download address of described file.
9. server as claimed in claim 7, is characterized in that, also comprise:
3rd receiving element, for receiving the verification MD5 value of the described file that transmit leg intelligent terminal sends;
One MD5 value generation unit, for according to described file generated MD5 value to be verified;
First verification unit, for judging that whether described MD5 value to be verified is consistent with described verification MD5 value;
Error notification transmitting element, for described MD5 value to be verified and described verification MD5 value inconsistent time, send file verification error notification to described transmit leg intelligent terminal.
10. server as claimed in claim 9, is characterized in that, described download address generation unit, for when described MD5 value to be verified is consistent with described verification MD5 value, generates the download address of described file.
11. servers as described in any one of claim 7-10, described pairing unit, comprising:
Time difference computing unit, for calculating the time difference of transmit leg intelligent terminal postural change time and recipient's intelligent terminal postural change time;
Metrics calculation unit, for calculating the distance of transmit leg intelligent terminal postural change address and recipient's intelligent terminal postural change address;
Time difference judging unit, for judging whether described time difference is less than time threshold;
Distance Judgment unit, for judging whether described distance is less than distance threshold;
Pairing unit, if described time difference is less than time threshold and described distance is less than distance threshold, then successful matching, otherwise, match unsuccessfully.
12. 1 kinds of intelligent terminals, is characterized in that, comprising:
Postural change time acquisition unit, for obtaining postural change time during intelligent terminal postural change;
Postural change address acquisition unit, for obtaining postural change address during intelligent terminal postural change;
Unique identification acquiring unit, for obtaining the unique identification of intelligent terminal;
First transmitting element, for sending described postural change time, postural change address and unique identification to server;
Second transmitting element, during for intelligent terminal as transmit leg, after postural change, sends file to server;
Query unit, during for intelligent terminal as recipient, to the pairing result that server lookup postural change is corresponding;
Download address acquiring unit, during for intelligent terminal as recipient, when described pairing result is successful matching, obtains the file download address corresponding with described pairing result that server provides;
Download unit, during for intelligent terminal as recipient, according to described file download address download file.
13. intelligent terminals as claimed in claim 12, is characterized in that, also comprise:
3rd transmitting element, during for intelligent terminal as transmit leg, after postural change, sends the verification MD5 value of described file to server;
MD5 value acquiring unit, during for intelligent terminal as recipient, behind the file download address corresponding with pairing result that acquisition server provides, obtains the verification MD5 value of described file;
2nd MD5 value generation unit, according to the described file generated MD5 value to be verified downloaded;
Whether the second verification unit is consistent with MD5 value to be verified for judging described verification MD5 value;
Heavy duty control unit, for when verifying MD5 value and MD5 value to be verified is inconsistent, controlling described download unit and again downloading described file.
CN201410489879.0A 2014-09-23 2014-09-23 Near-field file transfer method between intelligent terminals, server and intelligent terminal Pending CN105516217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410489879.0A CN105516217A (en) 2014-09-23 2014-09-23 Near-field file transfer method between intelligent terminals, server and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410489879.0A CN105516217A (en) 2014-09-23 2014-09-23 Near-field file transfer method between intelligent terminals, server and intelligent terminal

Publications (1)

Publication Number Publication Date
CN105516217A true CN105516217A (en) 2016-04-20

Family

ID=55723851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410489879.0A Pending CN105516217A (en) 2014-09-23 2014-09-23 Near-field file transfer method between intelligent terminals, server and intelligent terminal

Country Status (1)

Country Link
CN (1) CN105516217A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110852191A (en) * 2019-10-23 2020-02-28 上海能塔智能科技有限公司 Reserved vehicle taking method and device based on identity verification, storage medium and terminal
CN110866623A (en) * 2019-10-23 2020-03-06 上海能塔智能科技有限公司 Reserved vehicle taking method and device based on identity verification, storage medium and terminal
CN110889523A (en) * 2019-10-23 2020-03-17 上海能塔智能科技有限公司 Reserved vehicle taking method and device based on identity verification, storage medium and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255120A1 (en) * 1999-02-26 2004-12-16 Authentidate Holding Corp. Computer networked system and method of digital file management and authentication
CN101848188A (en) * 2009-03-25 2010-09-29 上海聚力传媒技术有限公司 Method and device for updating data block checking information
CN102821192A (en) * 2012-06-30 2012-12-12 华为终端有限公司 Data transmission method and data transmission device
CN103338271A (en) * 2013-07-23 2013-10-02 百度在线网络技术(北京)有限公司 Document transmission method, cloud server and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255120A1 (en) * 1999-02-26 2004-12-16 Authentidate Holding Corp. Computer networked system and method of digital file management and authentication
CN101848188A (en) * 2009-03-25 2010-09-29 上海聚力传媒技术有限公司 Method and device for updating data block checking information
CN102821192A (en) * 2012-06-30 2012-12-12 华为终端有限公司 Data transmission method and data transmission device
CN103338271A (en) * 2013-07-23 2013-10-02 百度在线网络技术(北京)有限公司 Document transmission method, cloud server and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110852191A (en) * 2019-10-23 2020-02-28 上海能塔智能科技有限公司 Reserved vehicle taking method and device based on identity verification, storage medium and terminal
CN110866623A (en) * 2019-10-23 2020-03-06 上海能塔智能科技有限公司 Reserved vehicle taking method and device based on identity verification, storage medium and terminal
CN110889523A (en) * 2019-10-23 2020-03-17 上海能塔智能科技有限公司 Reserved vehicle taking method and device based on identity verification, storage medium and terminal

Similar Documents

Publication Publication Date Title
US10063106B2 (en) System and method for a self-system analysis in a wireless power transmission network
US10141791B2 (en) Systems and methods for controlling communications during wireless transmission of power using application programming interfaces
US9958841B2 (en) Method and device for remotely controlling household appliance, and computer readable storage medium
CN105263101B (en) The System and method for of smartwatch real-time reception mobile phone notification message
US9326091B2 (en) Near field communication automatic self-provisioning
US20160012695A1 (en) Off-Premises Alert System and Method for Wireless Power Receivers in a Wireless Power Network
US20160299754A1 (en) Method for Updating Application Program, and Terminal
CN104601207A (en) Data transmission method, user terminal and system
EP2838309A1 (en) Method, device and system for establishing data connection
EP2941058B1 (en) Near field communication method and device
CN103873342A (en) Method, terminal and system for joining social group
CN104899672A (en) Article transfer apparatus, system and method
US20150317621A1 (en) Working Mode Negotiating Method, Device, and System
CN104936128A (en) Off-line data transfer method, device and system
CN104159197A (en) Low-cost terminal positioning method, smart mobile terminal and system
US9924017B2 (en) Methods and systems for a vehicle computing system to launch an application
CN104137433A (en) Near-field communication and impact sensor
CN103702278A (en) Electronic name card transmission method, system and device
CN104348875A (en) Method, cloud server and system for performing pocket transmission of data
CN108605206A (en) A kind of social information exchange method and device
CN104410950A (en) Data sharing method, device and system
CN105516217A (en) Near-field file transfer method between intelligent terminals, server and intelligent terminal
CN103544823A (en) Matching method and device for radio frequency remote controller and household appliance
CN104022804A (en) Method and system for transmitting electronic business card, sending device and receiving device
CN105007561A (en) Bluetooth data transmission method, device and system, and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420