WO2017063499A1 - 文件发送、传输方法及装置 - Google Patents
文件发送、传输方法及装置 Download PDFInfo
- Publication number
- WO2017063499A1 WO2017063499A1 PCT/CN2016/100145 CN2016100145W WO2017063499A1 WO 2017063499 A1 WO2017063499 A1 WO 2017063499A1 CN 2016100145 W CN2016100145 W CN 2016100145W WO 2017063499 A1 WO2017063499 A1 WO 2017063499A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- angle
- file
- sent
- sliding track
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000005540 biological transmission Effects 0.000 title abstract description 11
- 238000012546 transfer Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 abstract description 21
- 230000000694 effects Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 15
- 238000004891 communication Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
Definitions
- the present invention relates to the field of communications, and in particular to a file sending and transmitting method and apparatus.
- the close sharing group is established, this process generally establishes sharing groups for users in close range, waiting for other Users who need to join the sharing process join, and when the sharing group is established, they enter the specific sharing process.
- the close-range distribution process generally selects the files or folders to be distributed in a folder-level manner, and then selects the receiving user. In the process, it is even necessary to go through the consent process of the recipient.
- the entire sharing process needs to share multiple click confirmations or cancellations of multiple users in the group, which greatly reduces sharing efficiency and fun.
- the present invention provides a file sending and transmitting method and apparatus, so as to at least solve the problem of low efficiency of sharing files caused by complicated operations in the process of sharing files by users in related art.
- a file sending method including: receiving a sliding track for instructing to send a file to be sent in a first terminal; and sending the file to be sent to a second according to the sliding track terminal.
- the method before the sending the file to be sent to the second terminal according to the sliding track, the method further includes: acquiring relative position information of a relative position between the first terminal and the second terminal.
- the information includes: the relative location information sent by the receiving server, where the relative location information is generated by the server according to the first location information of the first terminal and the second location information of the second terminal.
- sending the to-be-sent file to the second terminal according to the sliding track includes: determining a first angle of the sliding track with a predetermined direction; determining, according to the relative position information, the first a second terminal, wherein an angle between the line connecting the second terminal and the first terminal and the predetermined direction is a second angle, and a difference between the second angle and the first angle
- the file to be sent is sent to the second terminal by way of server forwarding.
- sending the to-be-sent file to the second terminal according to the sliding track includes: determining a first angle of the sliding track with a predetermined direction; according to the value of the first angle, Sending, by the server, the file to be sent to the second terminal, where the first angle is used by the server according to a relative position between the first terminal and the second terminal Determining, by the location information and the value of the first angle, the second terminal, the angle between the connection of the second terminal and the first terminal and the predetermined direction is a third angle, the first The difference between the three angles and the first angle is less than a second predetermined threshold.
- a file transmission method including: determining a second terminal for receiving a file to be transmitted, wherein the second terminal is determined according to a sliding trajectory received by the first terminal; receiving from the The file to be sent of the first terminal; sending the received file to be sent to the second terminal.
- the determining, by the second terminal, the second terminal that is used to receive the to-be-sent file includes: sending the identification information of the second terminal that is sent by the first terminal, where the first terminal is determined by: The second terminal: the first terminal determines a first angle between the sliding track and a predetermined direction; and the first terminal is configured according to a relative position between the first terminal and the second terminal acquired in advance Determining, by the relative position information, the second terminal, wherein an angle between a line connecting the second terminal and the first terminal and the predetermined direction is a second angle, and the second angle is The difference between the first angles is less than a first predetermined threshold; receiving the number sent by the first terminal a value of an angle, wherein the first angle is an angle between the sliding track and a predetermined direction; and a value according to the first angle and a relative between the first terminal and the second terminal
- the relative position information of the location determines the second terminal, wherein an angle between the line connecting the second terminal and the first terminal and the predetermined direction is a third angle
- a file sending apparatus comprising: a first receiving module, configured to receive a sliding track for instructing to send a file to be sent in the first terminal; and a first sending module configured to The sliding track sends the to-be-sent file to the second terminal.
- the method further includes: acquiring, configured to acquire a relative position between the first terminal and the second terminal before sending the to-be-sent file to the second terminal according to the sliding track Relative location information.
- the acquiring module includes: a first receiving unit, configured to receive the relative location information sent by the server, where the relative location information is the first location information of the server according to the first terminal, and The second location information of the second terminal is generated.
- the first sending module includes: a first determining unit, configured to determine a first angle of the sliding track and a predetermined direction; and a second determining unit configured to determine, according to the relative position information, a second terminal, wherein an angle between the line connecting the second terminal and the first terminal and the predetermined direction is a second angle, and the second angle is opposite to the first angle The difference is less than the first predetermined threshold; the first sending unit is configured to send the file to be sent to the second terminal by means of server forwarding.
- the first sending module includes: a third determining unit configured to determine a first angle of the sliding track and a predetermined direction; and a second sending unit configured to determine a value according to the first angle Transmitting the to-be-sent file to the second terminal by means of server forwarding, wherein the first angle is used by the server according to a relative position between the first terminal and the second terminal Determining, by the relative position information and the value of the first angle, the second terminal, the angle between the line connecting the second terminal and the first terminal and the predetermined direction is a third angle, The difference between the third angle and the first angle is less than a second predetermined threshold.
- a file transmission apparatus comprising: a determining module, configured to determine a second terminal for receiving a file to be sent, wherein the second terminal is in accordance with a sliding track received by the first terminal Determining; the second receiving module is configured to receive the to-be-sent file from the first terminal; and the second sending module is configured to send the received file to be sent to the second terminal.
- the determining module includes one of the following: a second receiving unit, configured to receive identification information of the second terminal that is sent by the first terminal, where the first terminal determines the second manner by: a terminal: the first terminal determines a first angle of the sliding track with a predetermined direction; and the first terminal is configured according to the relative position information of the relative position between the first terminal and the second terminal acquired in advance, Determining the second terminal, wherein an angle between the line connecting the second terminal and the first terminal and the predetermined direction is a second angle, the second angle and the first The difference between the included angles is less than a first predetermined threshold; the third receiving unit is configured to receive a value of the first angle sent by the first terminal, wherein the first angle is a clip of the sliding track and a predetermined direction a fourth determining unit, configured to determine the second terminal according to the value of the first angle and the relative position information of the relative position between the first terminal and the second terminal, where the Two terminals and the first terminal Line and the predetermined direction angle is the third angle, the first terminal
- Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
- a method for receiving a sliding track for transmitting a file to be transmitted in the first terminal is received; and the method for transmitting the file to be sent to the second terminal according to the sliding track is performed according to the sliding on the first terminal
- the trajectory can determine the file receiver without the need to face-to-face grouping, search file receivers, etc., which solves the problem of low efficiency of sharing files caused by complicated operations in the process of sharing files in related technologies, thereby achieving the improvement of files. Sharing the effectiveness of efficiency.
- FIG. 1 is a flowchart of a file sending method according to an embodiment of the present invention
- FIG. 2 is a flowchart of a file transfer method according to an embodiment of the present invention.
- FIG. 3 is a block diagram showing the structure of a file transmitting apparatus according to an embodiment of the present invention.
- FIG. 4 is a block diagram showing a preferred structure of a file transmitting apparatus according to an embodiment of the present invention.
- FIG. 5 is a structural block diagram of an obtaining module 42 in a file sending apparatus according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram 1 of a first sending module 34 in a file sending apparatus according to an embodiment of the present invention
- FIG. 7 is a second structural block diagram of a first transmitting module 34 in a file sending apparatus according to an embodiment of the present invention.
- FIG. 8 is a block diagram showing the structure of a file transfer apparatus according to an embodiment of the present invention.
- FIG. 9 is a structural block diagram of a determining module 82 in a file transfer apparatus according to an embodiment of the present invention.
- FIG. 10 is a flowchart 1 of a close sharing method according to an embodiment of the present invention.
- FIG. 11 is a second flowchart of a close sharing method according to an embodiment of the present invention.
- FIG. 12 is a schematic flowchart of an interface UI of a file sharing according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a file sending method according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
- Step S102 Receive a sliding track for instructing to send a file to be sent in the first terminal.
- Step S104 Send the file to be sent to the second terminal according to the sliding track.
- the file receiver can be determined according to the sliding trajectory on the first terminal, without the operations of face-to-face grouping, search file receiver, etc., which solves the complicated operation in the process of sharing files by the user in the related art. Sharing the problem of low file efficiency, and thus achieving the effect of improving file sharing efficiency.
- the number of the second terminals may be one or more.
- the method further includes: acquiring relative position information of the relative position between the first terminal and the second terminal, so as to obtain the relative position of the first terminal and the second terminal by acquiring The information may be slid against the relative position information to obtain a sliding trajectory, or the second terminal may be determined against the obtained trajectory.
- the relative position information in the foregoing embodiment may be generated on the first terminal, and the first terminal acquires the location information of the first terminal and the second terminal to generate the information.
- the relative location information may be: the relative location information sent by the receiving server, where the relative location information is generated by the server according to the first location information of the first terminal and the second location information of the second terminal.
- the relative location information is generated by the server and sent to the first terminal, which saves resources and time of the first terminal, and saves system resources, especially when the first terminal is multiple.
- the step S104 may include: determining a first angle of the sliding track and the predetermined direction; determining, according to the relative position information, the second terminal, wherein the second terminal is connected to the first terminal The angle between the predetermined angle and the predetermined direction is a second angle, and the difference between the second angle and the first angle is less than a first predetermined threshold; and the file to be sent is sent to the second terminal by way of server forwarding.
- the angle between the sliding track on the first terminal and the north direction is 45°, and in the obtained relative position information, the terminal in the range of 40° to 50° with the north direction is searched, and It is determined as the second terminal, and then the file to be sent and the identifier of the second terminal are carefully sent to the server, and the server completes the file transmission.
- the predetermined direction here can also be Zhengnan, Zhengdong, or the direction of the southeast. In this alternative embodiment, only By sliding, the file can be sent, which greatly improves the efficiency of file transfer and sharing.
- the step S104 may further include: determining a first angle between the sliding track and the predetermined direction; sending the file to be sent to the second by way of server forwarding according to the value of the first angle a terminal, wherein the first angle is used by the server to determine, according to the relative position information of the relative position between the first terminal and the second terminal, and the value of the first angle, the second terminal, the second terminal and the first terminal
- the angle between the connection and the predetermined direction is a third angle, and the difference between the third angle and the first angle is less than a second predetermined threshold.
- determining that the angle between the sliding track and the north direction is 60°
- sending the angle value of 60° to the server together with the file to be sent and determining, by the server, the second terminal according to the angle value of 60°, and then waiting
- the send file is sent to the second terminal.
- the method for determining the second terminal by the server may be: the server searches for the angle between the connection with the first terminal (which can be recorded as the first line) and the north direction (which can be recorded as the second line) in the phase information. It is a terminal in the range of 58° to 62°, which is confirmed as the second terminal.
- the number of the second terminal may be one or more, and the second predetermined threshold may be set according to an actual situation, and the predetermined direction may be a direction such as south, west, or northwest, or may be set according to actual conditions. .
- the sending of the file can be completed only by sliding, which greatly improves the efficiency of file transmission and sharing.
- the execution body of the above embodiment and the optional implementation may be the first terminal.
- FIG. 2 is a flowchart of a file transmission method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
- Step S202 determining a second terminal for receiving a file to be sent, where the second terminal is determined according to a sliding trajectory received by the first terminal;
- Step S204 receiving a file to be sent from the first terminal
- Step S206 Send the received file to be sent to the second terminal.
- the file receiver can be determined according to the sliding trajectory on the first terminal, without the operations of face-to-face grouping, search file receiver, etc., which solves the complicated operation in the process of sharing files by the user in the related art. Sharing the problem of low file efficiency, and thus achieving the effect of improving file sharing efficiency.
- the number of the second terminals may be one or more One. There is no context between the foregoing steps S202 and S204, and the file to be sent may be received first, and then the second terminal is determined.
- the foregoing step S202 may include: receiving the identification information of the second terminal sent by the first terminal, where the first terminal determines the second terminal by: determining, by the first terminal, the sliding track a first angle with a predetermined direction; the first terminal determines the second terminal according to the relative position information of the relative position between the first terminal and the second terminal, where the second terminal is connected to the first terminal
- the angle between the predetermined directions is a second angle, and the difference between the second angle and the first angle is less than a first predetermined threshold; receiving a value of the first angle sent by the first terminal, wherein the first angle is An angle between the sliding track and the predetermined direction; determining a second terminal according to the value of the first angle and the relative position information of the relative position between the first terminal and the second terminal, wherein the second terminal is connected to the first terminal
- the angle between the predetermined directions is a third angle, and the difference between the third angle and the first angle is less than a second predetermined threshold.
- Case 1 receiving the identification information of the second terminal sent by the first terminal, wherein the first terminal determines that the angle between the sliding track and the north direction is 30° according to the sliding track, and according to the angle value of 30°, the first The terminal determines the connection with the first terminal according to the relative position information (it can be considered that this is the third ray, the origin is the position of the first terminal) and the angle of the north direction (which can be considered as the fourth ray) is 27° ⁇
- the terminal within 33° is used as the second terminal, and acquires the identification information of the second terminal, such as the device serial number, the SIM card information, and the like, which can identify the information of the second terminal.
- Case 2 The value of the first angle sent by the first terminal is received, for example, 75°, which is the angle between the sliding track acquired by the first terminal and the north direction.
- the line connecting the first terminal (the ray with the first terminal as the origin, which can be considered as the fifth ray) and the north direction (which can be considered as the sixth ray) are at 72.
- the terminal within ° ⁇ 78° is used as the second terminal.
- the execution body of the foregoing embodiment and the optional embodiment may be a server, and the predetermined direction may be a direction of Zhengbei, Zhengnan, Zhengxi, Zhengdong, etc., and may be set according to actual conditions. Above A predetermined threshold and a second predetermined threshold may also be set according to actual conditions.
- the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
- a file sending and transmitting device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
- the term "module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 3 is a structural block diagram of a file transmitting apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a first receiving module 32 and a first transmitting module 34, which will be described below.
- the first receiving module 32 is configured to receive a sliding track for instructing to send the file to be sent in the first terminal.
- the first sending module 34 is connected to the first receiving module 32, and is configured to send the file to be sent according to the sliding track. Send to the second terminal.
- FIG. 4 is a block diagram showing a preferred structure of a file transmitting apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes an acquiring module 42 in addition to all the modules shown in FIG. 3, and the apparatus will be described below.
- the obtaining module 42 is connected to the first sending module 34, and is configured to acquire relative position information of a relative position between the first terminal and the second terminal before transmitting the file to be sent to the second terminal according to the sliding track.
- the acquisition module 42 is described before the acquisition module 42 is connected to the first transmission module 34.
- the acquisition module 42 can also be connected before the first receiving module 32 or simultaneously connected to the first receiving module. Block 32 and first transmitting module 34.
- FIG. 5 is a structural block diagram of an obtaining module 42 in a file sending apparatus according to an embodiment of the present invention. As shown in FIG. 5, the obtaining module 42 includes a first receiving unit 52, and the obtaining module 42 is described below.
- the first receiving unit 52 is configured to receive relative location information sent by the server, where the relative location information is generated by the server according to the first location information of the first terminal and the second location information of the second terminal.
- FIG. 6 is a structural block diagram 1 of a first sending module 34 in a file sending apparatus according to an embodiment of the present invention.
- the first sending module 34 includes a first determining unit 62, a second determining unit 64, and a first The transmitting unit 66 will describe the first transmitting module 34 below.
- the first determining unit 62 is configured to determine a first angle of the sliding track and the predetermined direction;
- the second determining unit 64 is connected to the first determining unit 62, and is configured to determine the second terminal according to the relative position information, where the The angle between the line connecting the second terminal and the first terminal and the predetermined direction is a second angle, and the difference between the second angle and the first angle is less than a first predetermined threshold;
- the first sending unit 66 is connected to The second determining unit 64 is configured to send the file to be sent to the second terminal by means of server forwarding.
- FIG. 7 is a second structural block diagram of a first sending module 34 in a file sending apparatus according to an embodiment of the present invention. As shown in FIG. 7, the first sending module 34 includes a third determining unit 72 and a second sending unit 74. The first transmitting module 34 will be described.
- the third determining unit 72 is configured to determine a first angle of the sliding track and the predetermined direction; the second sending unit 74 is connected to the third determining unit 72, and is configured to be forwarded by the server according to the value of the first angle. Transmitting the file to be sent to the second terminal, where the first angle is used by the server to determine the second terminal according to the relative position information of the relative position between the first terminal and the second terminal and the value of the first angle,
- the angle between the line connecting the second terminal and the first terminal and the predetermined direction is a third angle, and the difference between the third angle and the first angle is less than a second predetermined threshold.
- FIG. 8 is a structural block diagram of a file transfer apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes a determining module 82, a second receiving module 84, and a second sending module 86. The device is described.
- the determining module 82 is configured to determine a second terminal for receiving a file to be sent, wherein the second terminal is determined according to a sliding track received by the first terminal, and the second receiving module 84 is configured to receive the to-be-sent from the first terminal.
- the second sending module 86 is connected to the determining module 82 and the second receiving module 84, and is configured to send the received file to be sent to the second terminal.
- FIG. 9 is a structural block diagram of a determining module 82 in a file transfer apparatus according to an embodiment of the present invention.
- the determining module 82 includes one of the following: a second receiving unit 92, a third receiving unit 94, and a fourth determination. Unit 96, the device will be described below.
- the second receiving unit 92 is configured to receive the identifier information of the second terminal that is sent by the first terminal, where the first terminal determines the second terminal by: determining, by the first terminal, a first angle between the sliding track and the predetermined direction; Determining, by the terminal, the second terminal according to the relative position information of the relative position between the first terminal and the second terminal, where the angle between the connection between the second terminal and the first terminal and the predetermined direction is a second angle, the difference between the second angle and the first angle is less than a first predetermined threshold; the third receiving unit 94 is configured to receive a value of the first angle sent by the first terminal, where the first angle is An angle between the sliding track and the predetermined direction; the fourth determining unit 96 is configured to determine the second terminal according to the value of the first angle and the relative position information of the relative position between the first terminal and the second terminal, wherein the second terminal The angle between the connection of the terminal and the first terminal and the predetermined direction is a third angle, and the difference between the third angle and the first angle
- the following takes the first terminal and the second terminal as the smart phone as an example, and describes the embodiment of the present invention in combination with a specific implementation environment.
- the components involved in the embodiments of the present invention include sensors in a mobile phone and some network peripherals, such as a Global Positioning System (GPS), a direction sensor, and an Institute of Electrical and Electronics Engineers (Institute of Electrical and Electronics Engineers). , referred to as IEEE) 802.11b standard wireless local area network (Wireless Fidelity, referred to as WIFI), data network, network server and finger sliding track.
- GPS Global Positioning System
- WIFI wireless Fidelity
- WIFI wireless Fidelity
- data network server mainly participate in the first stage of close sharing, that is, the near-distance sharing group establishment stage. Through the first stage, the server collects the GPS information of the mobile phone user and generates a radar map of the shared group. And feedback to the user.
- the second stage; the short-distance distribution process mainly locates the position of the receiver by analyzing the calculation of the direction sensor data and the sliding track data formed by the finger manually transmitted file, and the direction sensor data of other mobile devices in the close range.
- the mobile application (Application, referred to as APP) needs to arrange the files or folders that can be transmitted in the interface neatly, so that the user can select the content to be sent and slide to the location of the receiver, so that the user
- the sharing process can be completed in a one-time swipe operation.
- FIG. 10 is a flowchart 1 of a short-distance sharing method according to an embodiment of the present invention. As shown in FIG. 10, the flow is equivalent to the flow of the file sending method in the foregoing embodiment, and includes the following steps:
- Step S1002 The mobile terminal application (ie, the mobile phone APP) communicates with the server through the WIFI method;
- Step S1004 The terminal application displays the shareable content
- Step S1006 Transfer the shared content between the terminal applications.
- the communication method in this embodiment is a WIFI communication method.
- steps S1002, S1004, and S1006 are data connections established on the WIFI network.
- Step S1002 The client (ie, the mobile terminal) is connected to the server, and the most important is to obtain the location information of the user. Therefore, the server can combine the latest GPS information of the client (the location of the user may be in the building, and the real-time data cannot be obtained) , WIFI access point location information, analysis and calculation of the user's current location.
- step S1004 the shared content is displayed in a checklist manner in the example, and the display is displayed in a checklist manner.
- the 3D mode of the sphere can make full use of the interface space, the original folder structure can be displayed neatly in a hierarchical manner.
- Step S1006 The shared content is transmitted between users, and is also required to be forwarded by the server. Because of the complexity of the network structure between users (may be difficult to cross the symmetry network), Therefore, the reliability of the transmission line can be ensured by the forwarding method.
- FIG. 11 is a second flowchart of a short-distance sharing method according to an embodiment of the present invention. As shown in FIG. 11, the flow is equivalent to the file sending and transmitting process in the foregoing embodiment, and includes the following steps:
- Step S1102 an initialization phase.
- the mobile sharing application in the sharing group establishes a connection with the server through the data network or WIFI, and sends its own GPS information to the server. Then, the server will receive the GPS information of multiple users, and update the radar map of the overall user in real time, and finally, return a radar map in the vicinity of the current user, that is, steps S1-S4 in FIG. 11;
- Step S1104 starting from S5 in Fig. 11, enters the sharing phase.
- the sharing application displays the transferable files or folders on the interface in the form of a sphere 3D or a grid list. Wait for the user to select the file to be transferred in the file display area, and hold the file while sliding to the receiver position within the close range. Subsequently, the sharing application sends the sliding trajectory of the user to the server in the north pole of the direction sensor, and the server applies the information to filter out the close range of the sender, and the mobile phone is in the same angle as the north pole.
- the receiver whose negative angle is the same or offset in a small range, that is, S5-S9 in FIG.
- Step S1106 starting from S10 in Fig. 11, enters the forwarding phase.
- the server establishes a data forwarding channel for the file sender and the selected receiver.
- the selected transmission file is sent to the receiver (if the server determines that the two parties are in the same local area network, the two parties are notified to communicate with each other through direct connection) That is, S10-S11 in Fig. 11.
- the sharing of the files to be shared can be completed only by sliding the finger, which greatly improves the efficiency of file sharing and improves the user experience.
- FIG. 12 is a schematic flowchart of an interface UI of a file sharing according to an embodiment of the present invention.
- the flow diagram schematically illustrates a UI flow of a user in a sharing phase.
- the sender presses and selects the selected file 1 and slides to the east.
- the angle between the sliding track and the north pole is 90°, and the server will find the customer with the angle between the top of the mobile phone and the north pole in the current close range of -90° (allowing a certain error). end.
- the user will open using the sharing software of the embodiment of the present invention, and after the connection with the server is completed, the user location distribution in the vicinity can be viewed from the radar chart returned by the server. happensing.
- the sender will slide the corresponding file to the top of the recipient's mobile phone.
- This type of sharing software is typically used by users who need fast sharing capabilities in close range.
- the sharing software of the mobile terminal in the alternative embodiment corresponds to the file transmitting apparatus in the above embodiment.
- the entire sharing process of selecting a file, locating a receiver, and sending a file is completed within one action of the user, thereby achieving the purpose of fast sharing and improving the efficiency of sharing files.
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
- Embodiments of the present invention also provide a storage medium.
- the foregoing storage medium may be configured to store program code for performing the following steps:
- the storage medium is further arranged to store program code for performing the following steps:
- S21 Determine a second terminal, where the second terminal is configured to receive a file to be sent, where the second terminal is determined according to a sliding track received by the first terminal.
- the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
- ROM Read-Only Memory
- RAM Random Access Memory
- the processor executes the above S11-S12 according to the stored program code in the storage medium.
- the processor executes according to the stored program code in the storage medium. Line S21-S23 above.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the file sending and transmitting method and apparatus have the following beneficial effects: the file receiving party can be determined according to the sliding trajectory on the first terminal, without face-to-face grouping and search file receiving.
- the operation solves the problem of low efficiency of sharing files caused by complicated operation in the process of sharing files in the related art, thereby achieving the effect of improving file sharing efficiency.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明提供了一种文件发送、传输方法及装置,其中,该文件发送方法包括:接收用于指示发送第一终端中的待发送文件的滑动轨迹;根据该滑动轨迹,将待发送文件发送给第二终端。通过本发明,根据在第一终端上的滑动轨迹就可以确定文件接收方,而无需面对面建群、搜索文件接收方等操作,解决了相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,进而达到了提高文件分享效率的效果。
Description
本发明涉及通信领域,具体而言,涉及一种文件发送、传输方法及装置。
目前知名分享软件快牙、汇分享、QQ等,它们的分享模式一般分为两个流程;第一,近距分享群建立,此过程一般为近距范围内的用户建立分享群,以待其他需要加入分享过程的用户加入,当分享群建立完成后,再进入具体的分享流程。第二,近距分发过程,此过程一般为以文件夹层级方式选择所需分发的文件或文件夹,再选择接收用户,在此过程中,甚至还需要经历接收方的同意流程。显而易见,相关技术中,整个分享过程需要分享群中多个用户的多次点击确认或取消等操作,极大地降低了分享效率及乐趣。
针对相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,目前尚未提出有效的解决方案。
发明内容
本发明提供了一种文件发送、传输方法及装置,以至少解决相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题。
根据本发明的一个方面,提供了一种文件发送方法,包括:接收用于指示发送第一终端中的待发送文件的滑动轨迹;根据所述滑动轨迹,将所述待发送文件发送给第二终端。
可选地,在根据所述滑动轨迹,将所述待发送文件发送给所述第二终端之前,还包括:获取所述第一终端与所述第二终端之间相对位置的相对位置信息。
可选地,获取所述第一终端与所述第二终端之间相对位置的相对位置
信息包括:接收服务器发送的所述相对位置信息,其中,所述相对位置信息为所述服务器根据所述第一终端的第一位置信息和所述第二终端的第二位置信息生成的。
可选地,根据所述滑动轨迹,将所述待发送文件发送给所述第二终端包括:确定所述滑动轨迹与预定方向的第一夹角;根据所述相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;通过服务器转发的方式,将所述待发送文件发送给所述第二终端。
可选地,根据所述滑动轨迹,将所述待发送文件发送给所述第二终端包括:确定所述滑动轨迹与预定方向的第一夹角;依据所述第一夹角的值,通过服务器转发的方式,将所述待发送文件发送给所述第二终端,其中,所述第一夹角用于所述服务器根据所述第一终端与所述第二终端之间相对位置的相对位置信息和所述第一夹角的值,确定所述第二终端,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。
根据本发明的一个方面,提供了一种文件传输方法,包括:确定用于接收待发送文件的第二终端,其中,所述第二终端依据第一终端接收的滑动轨迹确定;接收来自所述第一终端的所述待发送文件;将接收的所述待发送文件发送给所述第二终端。
可选地,确定用于接收所述待发送文件的所述第二终端包括以下之一:接收所示第一终端发送的第二终端的标识信息,其中,所述第一终端通过如下方式确定所述第二终端:所述第一终端确定所述滑动轨迹与预定方向的第一夹角;所述第一终端根据预先获取的所述第一终端与所述第二终端之间相对位置的相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;接收所述第一终端发送的第
一夹角的值,其中,所述第一夹角为所述滑动轨迹与预定方向的夹角;根据所述第一夹角的值和所述第一终端与所述第二终端之间相对位置的相对位置信息确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。
根据本发明的一个方面,还提供了一种文件发送装置,包括:第一接收模块,设置为接收用于指示发送第一终端中的待发送文件的滑动轨迹;第一发送模块,设置为根据所述滑动轨迹,将所述待发送文件发送给第二终端。
可选地,还包括:获取模块,设置为在根据所述滑动轨迹,将所述待发送文件发送给所述第二终端之前,获取所述第一终端与所述第二终端之间相对位置的相对位置信息。
可选地,所述获取模块包括:第一接收单元,设置为接收服务器发送的所述相对位置信息,其中,所述相对位置信息为所述服务器根据所述第一终端的第一位置信息和所述第二终端的第二位置信息生成的。
可选地,所述第一发送模块包括:第一确定单元,设置为确定所述滑动轨迹与预定方向的第一夹角;第二确定单元,设置为根据所述相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;第一发送单元,设置为通过服务器转发的方式,将所述待发送文件发送给所述第二终端。
可选地,所述第一发送模块包括:第三确定单元,设置为确定所述滑动轨迹与预定方向的第一夹角;第二发送单元,设置为依据所述第一夹角的值,通过服务器转发的方式,将所述待发送文件发送给所述第二终端,其中,所述第一夹角用于所述服务器根据所述第一终端与所述第二终端之间相对位置的相对位置信息和所述第一夹角的值,确定所述第二终端,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所
述第三夹角与所述第一夹角之差小于第二预定阈值。
根据本发明的一个方面,还提供了一种文件传输装置,包括:确定模块,设置为确定用于接收待发送文件的第二终端,其中,所述第二终端依据第一终端接收的滑动轨迹确定;第二接收模块,设置为接收来自所述第一终端的所述待发送文件;第二发送模块,设置为将接收的所述待发送文件发送给所述第二终端。
可选地,所述确定模块包括以下之一:第二接收单元,设置为接收所示第一终端发送的第二终端的标识信息,其中,所述第一终端通过如下方式确定所述第二终端:所述第一终端确定所述滑动轨迹与预定方向的第一夹角;所述第一终端根据预先获取的所述第一终端与所述第二终端之间相对位置的相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;第三接收单元,设置为接收所述第一终端发送的第一夹角的值,其中,所述第一夹角为所述滑动轨迹与预定方向的夹角;第四确定单元,设置为根据所述第一夹角的值和所述第一终端与所述第二终端之间相对位置的相对位置信息确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。
本发明另一实施例提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述实施例中的方法。
通过本发明,采用接收用于指示发送第一终端中的待发送文件的滑动轨迹;根据所述滑动轨迹,将所述待发送文件发送给第二终端的方法,根据在第一终端上的滑动轨迹就可以确定文件接收方,而无需面对面建群、搜索文件接收方等操作,解决了相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,进而达到了提高文件分享效率的效果。
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的文件发送方法的流程图;
图2是根据本发明实施例的文件传输方法的流程图;
图3是根据本发明实施例的文件发送装置的结构框图;
图4是根据本发明实施例的文件发送装置的优选结构框图;
图5是根据本发明实施例的文件发送装置中获取模块42的结构框图;
图6是根据本发明实施例的文件发送装置中第一发送模块34的结构框图一;
图7是根据本发明实施例的文件发送装置中第一发送模块34的结构框图二;
图8是根据本发明实施例的文件传输装置的结构框图;
图9是根据本发明实施例的文件传输装置中确定模块82的结构框图;
图10是根据本发明实施例的近距分享方法的流程图一;
图11是根据本发明实施例的近距分享方法的流程图二;
图12是根据本发明实施例的文件分享的界面UI流程示意图。
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种文件发送方法,图1是根据本发明实施例的文件发送方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,接收用于指示发送第一终端中的待发送文件的滑动轨迹;
步骤S104,根据该滑动轨迹,将待发送文件发送给第二终端。
通过上述步骤,根据在第一终端上的滑动轨迹就可以确定文件接收方,而无需面对面建群、搜索文件接收方等操作,解决了相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,进而达到了提高文件分享效率的效果。该实施例中,第二终端的数量可以为一个或多个。
在上述步骤S104之前,在一个可选的实施例中,还可以包括:获取第一终端与第二终端之间相对位置的相对位置信息,从而通过获取的第一终端与第二终端的相对位置信息,可以对照该相对位置信息进行滑动以得到滑动轨迹,也可以对照已经得到的滑动轨迹确定第二终端。
上述实施例中的相对位置信息可以为在第一终端上生成的,由第一终端获取该第一终端和第二终端的位置信息来生成,在一个可选的实施例中,上述实施例中的相对位置信息可以为:接收服务器发送的相对位置信息,其中,该相对位置信息为服务器根据第一终端的第一位置信息和第二终端的第二位置信息生成的。在该可选实施例中,由服务器生成该相对位置信息并发送给第一终端,节省了第一终端的资源及时间,尤其当第一终端为多个时,还节省了系统资源。
在一个可选的实施例中,上述步骤S104可以包括:确定滑动轨迹与预定方向的第一夹角;根据相对位置信息,确定第二终端,其中,该第二终端与第一终端的连线与预定方向之间的夹角为第二夹角,该第二夹角与第一夹角之差小于第一预定阈值;通过服务器转发的方式,将待发送文件发送给第二终端。例如,可以确定第一终端上的滑动轨迹与正北方向的夹角为45°,在获取的相对位置信息中,查找与正北方向的夹角为40°~50°范围内的终端,并将其确定为第二终端,之后将待发送文件和第二终端的标识细心你发送给服务器,由服务器完成文件的发送。当然,这里的预定方向也可以为正南、正东,或者为正东南等方向。在该可选实施例中,仅
通过滑动就可以完成文件的发送,大大提高了文件传输、分享的效率。
在一个可选的实施例中,上述步骤S104也可以包括:确定滑动轨迹与预定方向的第一夹角;依据第一夹角的值,通过服务器转发的方式,将待发送文件发送给第二终端,其中,该第一夹角用于服务器根据第一终端与第二终端之间相对位置的相对位置信息和第一夹角的值,确定第二终端,该第二终端与第一终端的连线与预定方向的夹角为第三夹角,第三夹角与第一夹角之差小于第二预定阈值。例如,确定滑动轨迹与正北方向的夹角为60°,将该夹角值60°与待发送的文件一起发送给服务器,由服务器根据该夹角值60°确定第二终端,再将待发送文件发送给第二终端。其中,服务器确定第二终端的方式可以为:服务器查找相位信息中与第一终端的连线(可以记为第一直线)与正北方向(可以记为第二直线)之间的夹角为58°~62°范围内的终端,将其确认为第二终端。其中,该第二终端的数量可以为一个或多个,该第二预定阈值可以根据实际情况进行设置,该预定方向可以为正南、正西或者正西北等方向,也可以根据实际情况进行设置。在该可选实施例中,仅通过滑动就可以完成文件的发送,大大提高了文件传输、分享的效率。
上述实施例及可选的实施的执行主体可以为第一终端。
在本实施例中还提供了一种文件传输方法,图2是根据本发明实施例的文件传输方法的流程图,如图2所示,该流程包括如下步骤:
步骤S202,确定用于接收待发送文件的第二终端,其中,该第二终端依据第一终端接收的滑动轨迹确定;
步骤S204,接收来自第一终端的待发送文件;
步骤S206,将接收的待发送文件发送给第二终端。
通过上述步骤,根据在第一终端上的滑动轨迹就可以确定文件接收方,而无需面对面建群、搜索文件接收方等操作,解决了相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,进而达到了提高文件分享效率的效果。该实施例中,第二终端的数量可以为一个或多
个。上述步骤S202和S204之间没有前后关系,也可以先接收待发送文件,再确定第二终端。
在一个可选的实施例中,上述步骤S202可以包括以下之一:接收第一终端发送的第二终端的标识信息,其中,第一终端通过如下方式确定第二终端:第一终端确定滑动轨迹与预定方向的第一夹角;第一终端根据预先获取的第一终端与第二终端之间相对位置的相对位置信息,确定第二终端,其中,第二终端与第一终端的连线与预定方向之间的夹角为第二夹角,第二夹角与第一夹角之差小于第一预定阈值;接收第一终端发送的第一夹角的值,其中,第一夹角为滑动轨迹与预定方向的夹角;根据第一夹角的值和第一终端与第二终端之间相对位置的相对位置信息确定第二终端,其中,第二终端与第一终端的连线与预定方向的夹角为第三夹角,第三夹角与第一夹角之差小于第二预定阈值。在该可选实施中,分为两种情况,情况一为由第一终端确定第二终端,情况二为由服务器确定第二终端。下面进行举例说明。
情况一:接收到第一终端发送的第二终端的标识信息,其中,第一终端根据滑动轨迹确定该滑动轨迹与正北方向的夹角为30°,根据该夹角值30°,第一终端根据相对位置信息确定与第一终端的连线(可以认为这是第三射线,原点为第一终端的位置)与正北方向(可以认为这是第四射线)的夹角在27°~33°内的终端,将其作为第二终端,并获取第二终端的标识信息,例如设备序列号、SIM卡信息等能够标识第二终端的信息。
情况二:接收到第一终端发送的第一夹角的值,例如,75°,为第一终端获取的滑动轨迹与正北方向的夹角。查找相对位置信息中,与第一终端的连线(以第一终端为原点的射线,可以认为这是第五射线)与正北方向(可以认为这是第六射线)构成的夹角在72°~78°内的终端,将其作为第二终端。
上述实施例及可选实施例的执行主体可以为服务器,预定方向可以为正北、正南、正西、正东北等方向,可以根据实际情况进行设置。上述第
一预定阈值与第二预定阈值也可以根据实际情况进行设置。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种文件发送、传输装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图3是根据本发明实施例的文件发送装置的结构框图,如图3所示,该装置包括第一接收模块32和第一发送模块34,下面对该装置进行说明。
第一接收模块32,设置为接收用于指示发送第一终端中的待发送文件的滑动轨迹;第一发送模块34,连接于上述第一接收模块32,设置为根据滑动轨迹,将待发送文件发送给第二终端。
图4是根据本发明实施例的文件发送装置的优选结构框图,如图4所示,该装置除包括图3所示的所有模块外,还包括获取模块42,下面对该装置进行说明。
获取模块42,连接于上述第一发送模块34,设置为在根据滑动轨迹,将待发送文件发送给第二终端之前,获取第一终端与第二终端之间相对位置的相对位置信息。
图4是以获取模块42连接在第一发送模块34之前进行说明的,该获取模块42还可以连接在第一接收模块32之前,或同时连接于第一接收模
块32和第一发送模块34。
图5是根据本发明实施例的文件发送装置中获取模块42的结构框图,如图5所示,该获取模块42包括第一接收单元52,下面对该获取模块42进行说明。
第一接收单元52,设置为接收服务器发送的相对位置信息,其中,该相对位置信息为服务器根据第一终端的第一位置信息和第二终端的第二位置信息生成的。
图6是根据本发明实施例的文件发送装置中第一发送模块34的结构框图一,如图6所示,该第一发送模块34包括第一确定单元62、第二确定单元64和第一发送单元66,下面对该第一发送模块34进行说明。
第一确定单元62,设置为确定滑动轨迹与预定方向的第一夹角;第二确定单元64,连接于上述第一确定单元62,设置为根据相对位置信息,确定第二终端,其中,该第二终端与第一终端的连线与预定方向之间的夹角为第二夹角,该第二夹角与第一夹角之差小于第一预定阈值;第一发送单元66,连接于上述第二确定单元64,设置为通过服务器转发的方式,将待发送文件发送给第二终端。
图7是根据本发明实施例的文件发送装置中第一发送模块34的结构框图二,如图7所示,该第一发送模块34包括第三确定单元72和第二发送单元74,下面对该第一发送模块34进行说明。
第三确定单元72,设置为确定滑动轨迹与预定方向的第一夹角;第二发送单元74,连接于上述第三确定单元72,设置为依据第一夹角的值,通过服务器转发的方式,将待发送文件发送给第二终端,其中,第一夹角用于服务器根据第一终端与第二终端之间相对位置的相对位置信息和第一夹角的值,确定第二终端,该第二终端与第一终端的连线与预定方向的夹角为第三夹角,该第三夹角与第一夹角之差小于第二预定阈值。
图8是根据本发明实施例的文件传输装置的结构框图,如图8所示,该装置包括确定模块82、第二接收模块84和第二发送模块86,下面对该
装置进行说明。
确定模块82,设置为确定用于接收待发送文件的第二终端,其中,该第二终端依据第一终端接收的滑动轨迹确定;第二接收模块84,设置为接收来自第一终端的待发送文件;第二发送模块86,连接于上述确定模块82和第二接收模块84,设置为将接收的待发送文件发送给第二终端。
图9是根据本发明实施例的文件传输装置中确定模块82的结构框图,如图9所示,该确定模块82包括以下之一:第二接收单元92,第三接收单元94和第四确定单元96,下面对该装置进行说明。
第二接收单元92,设置为接收第一终端发送的第二终端的标识信息,其中,第一终端通过如下方式确定第二终端:第一终端确定滑动轨迹与预定方向的第一夹角;第一终端根据预先获取的第一终端与第二终端之间相对位置的相对位置信息,确定第二终端,其中,该第二终端与第一终端的连线与预定方向之间的夹角为第二夹角,该第二夹角与第一夹角之差小于第一预定阈值;第三接收单元94,设置为接收第一终端发送的第一夹角的值,其中,第一夹角为滑动轨迹与预定方向的夹角;第四确定单元96,设置为根据第一夹角的值和第一终端与第二终端之间相对位置的相对位置信息确定第二终端,其中,该第二终端与第一终端的连线与预定方向的夹角为第三夹角,第三夹角与第一夹角之差小于第二预定阈值。
下面以第一终端和第二终端为智能手机为例,结合具体实施环境对本发明实施例进行说明。
本发明实施例所涉及的部件,有手机中的传感器和部分网络外设,如全球定位系统(Global Positioning System,简称为GPS)、方向传感器、基于电气和电子工程师协会(Institute of Electrical and Electronics Engineers,简称为IEEE)802.11b标准的无线局域网(Wireless Fidelity,简称为WIFI)、数据网络,网络服务器以及手指滑动轨迹。其中,GPS、WIFI或数据网络以及服务器主要参与到近距分享的第一阶段,即近距分享群建立阶段。通过第一阶段,服务器收集到手机用户的GPS信息,生成分享群的雷达图,
并反馈给用户。
第二阶段;近距分发过程主要通过分析计算方向传感器数据与手指手动被传输文件形成的滑动轨迹数据、以及近距范围内其他手机设备地方向传感器数据定位接收方的位置。
在第二阶段之前,手机应用(Application,简称为APP)需要将可传输的文件或文件夹整齐罗列在界面中,方便用户选中所需发送的内容,并滑向接收方所在的位置,使得用户可以在一次性的滑动操作完成分享过程。
图10是根据本发明实施例的近距分享方法的流程图一,如图10所示,该流程相当于上述实施例中的文件发送方法的流程,包括以下步骤:
步骤S1002:手机终端应用(即上述手机APP)通过WIFI方式与服务器端进行通信;
步骤S1004:终端应用展示可共享内容;
步骤S1006:终端应用之间传输共享内容。
本实施例中的通信方式是WIFI通信方式。
本实施例提供的是通过WIFI通信方式(但不仅限于该方式)建立分享群及以宫格列表方式展示共享内容,因此步骤S1002、S1004、S1006都是建立在WIFI网络上的数据连接。
步骤S1002客户端(即手机终端)与服务器进行连接,最主要是获取用户的位置信息,所以,服务器可结合客户端的最新GPS信息(用户所处的位置可能在建筑物内,无法获取实时数据)、WIFI接入点位置信息,分析计算得出用户的当前位置。
步骤S1004在该实例以宫格列表方式展示共享内容,以宫格列表方式展示虽然不如球体3D方式能充分利用界面空间,但是,能整齐的以层级方式展示原有的文件夹结构。
步骤S1006用户之间传输共享内容,还需要通过服务器转发的方式进行。因为考虑到用户之间的网络结构复杂性(可能是难以穿越对称性网络),
所以,通过转发方式,能保证传输线路的可靠性。
图11是根据本发明实施例的近距分享方法的流程图二,如图11所示,该流程相当于上述实施例中的文件发送、传输流程,包括以下步骤:
步骤S1102,初始化阶段。分享群中手机分享应用通过数据网络或WIFI与服务器建立连接,并向服务器发送自己的GPS信息,然后,服务器将收到的多个用户GPS信息,并实时更新整体用户的雷达图,最后,返回处于当前用户附近的雷达图,即图11中的步骤S1-S4;
步骤S1104,从图11中S5开始,进入分享阶段。分享应用将可传输的文件或文件夹以球体3D形式或格宫列表形式展示于界面上。待用户在文件展示区选中所需传输的文件,并按住该文件,同时滑向近距范围内的接收方位置。随后,分享应用将用户的滑动轨迹与方向感应器所指北极的夹角发送给服务器,服务器应用此信息筛选出该发送方近距范围内,并且,手机处于与北极夹角正好是该用户发送夹角负值相同或在小范围偏移的接收方,即图11中的S5-S9。
步骤S1106,从图11中S10开始,进入转发阶段。服务器为文件发送方以及筛选出的接收方建立数据转发通道,最终,选择的传输文件被发送到接收方(如果服务器判断当前双方处在同一局域网内,则通知双方通过直连方式进行互传),即图11中的S10-S11。
通过上述实施例,仅仅通过手指滑动,就可以完成对于待分享文件的分享,极大的提高了文件分享的效率,提高了用户的体验度。
图12是根据本发明实施例的文件分享的界面UI流程示意图,如图12所示,该流程示意图描述了用户在分享阶段中UI流程。发送方按住选中文件1并滑向东方,此时滑动轨迹与北极夹角为90°,服务器将查找当前近距范围内手机顶部与北极夹角为-90°(允许一定的误差)的客户端。接收方定位完毕,即可进入转发阶段。
在该可选实施例中,用户将使用本发明实施例的分享软件打开,待与服务器连接完成后,可从服务器返回的雷达图中查看附近的用户位置分布
情况。当处在近距范围用户需要即时分享文件时,发送方将相应文件滑向接收方手机的顶部即可。此类分享软件一般用于近距范围内需要快速分享功能的用户。该可选实施例中的手机终端的分享软件,相当于上述实施中的文件发送装置。
上述可选实施例中,将选取文件、定位接收方、发送文件整个分享进程在用户的一个动作内完成,从而达到快速分享的目的,提高了分享文件的效率。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S11,接收用于指示发送第一终端中的待发送文件的滑动轨迹;
S12,根据该滑动轨迹,将待发送文件发送给第二终端。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
S21,确定用于接收待发送文件的第二终端,其中,该第二终端依据第一终端接收的滑动轨迹确定;
S22,接收来自第一终端的待发送文件;
S23,将接收的待发送文件发送给第二终端。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述S11-S12。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执
行上述S21-S23。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
如上所述,本发明实施例提供的一种文件发送、传输方法及装置具有以下有益效果:根据在第一终端上的滑动轨迹就可以确定文件接收方,而无需面对面建群、搜索文件接收方等操作,解决了相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,进而达到了提高文件分享效率的效果。
Claims (14)
- 一种文件发送方法,包括:接收用于指示发送第一终端中的待发送文件的滑动轨迹;根据所述滑动轨迹,将所述待发送文件发送给第二终端。
- 根据权利要求1所述的方法,其中,在根据所述滑动轨迹,将所述待发送文件发送给所述第二终端之前,还包括:获取所述第一终端与所述第二终端之间相对位置的相对位置信息。
- 根据权利要求2所述的方法,其中,获取所述第一终端与所述第二终端之间相对位置的相对位置信息包括:接收服务器发送的所述相对位置信息,其中,所述相对位置信息为所述服务器根据所述第一终端的第一位置信息和所述第二终端的第二位置信息生成的。
- 根据权利要求2所述的方法,其中,根据所述滑动轨迹,将所述待发送文件发送给所述第二终端包括:确定所述滑动轨迹与预定方向的第一夹角;根据所述相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;通过服务器转发的方式,将所述待发送文件发送给所述第二终端。
- 根据权利要求1所述的方法,其中,根据所述滑动轨迹,将所述待发送文件发送给所述第二终端包括:确定所述滑动轨迹与预定方向的第一夹角;依据所述第一夹角的值,通过服务器转发的方式,将所述待发送文件发送给所述第二终端,其中,所述第一夹角用于所述服务器根据所述第一终端与所述第二终端之间相对位置的相对位置信息和所述第一夹角的值,确定所述第二终端,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角 之差小于第二预定阈值。
- 一种文件传输方法,包括:确定用于接收待发送文件的第二终端,其中,所述第二终端依据第一终端接收的滑动轨迹确定;接收来自所述第一终端的所述待发送文件;将接收的所述待发送文件发送给所述第二终端。
- 根据权利要求6所述的方法,其中,确定用于接收所述待发送文件的所述第二终端包括以下之一:接收所述第一终端发送的第二终端的标识信息,其中,所述第一终端通过如下方式确定所述第二终端:所述第一终端确定所述滑动轨迹与预定方向的第一夹角;所述第一终端根据预先获取的所述第一终端与所述第二终端之间相对位置的相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;接收所述第一终端发送的第一夹角的值,其中,所述第一夹角为所述滑动轨迹与预定方向的夹角;根据所述第一夹角的值和所述第一终端与所述第二终端之间相对位置的相对位置信息确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。
- 一种文件发送装置,包括:第一接收模块,设置为接收用于指示发送第一终端中的待发送文件的滑动轨迹;第一发送模块,设置为根据所述滑动轨迹,将所述待发送文件发送给第二终端。
- 根据权利要求8所述的装置,其中,还包括:获取模块,设置为在根据所述滑动轨迹,将所述待发送文件发送 给所述第二终端之前,获取所述第一终端与所述第二终端之间相对位置的相对位置信息。
- 根据权利要求9所述的装置,其中,所述获取模块包括:第一接收单元,设置为接收服务器发送的所述相对位置信息,其中,所述相对位置信息为所述服务器根据所述第一终端的第一位置信息和所述第二终端的第二位置信息生成的。
- 根据权利要求9所述的装置,其中,所述第一发送模块包括:第一确定单元,设置为确定所述滑动轨迹与预定方向的第一夹角;第二确定单元,设置为根据所述相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;第一发送单元,设置为通过服务器转发的方式,将所述待发送文件发送给所述第二终端。
- 根据权利要求8所述的装置,其中,所述第一发送模块包括:第三确定单元,设置为确定所述滑动轨迹与预定方向的第一夹角;第二发送单元,设置为依据所述第一夹角的值,通过服务器转发的方式,将所述待发送文件发送给所述第二终端,其中,所述第一夹角用于所述服务器根据所述第一终端与所述第二终端之间相对位置的相对位置信息和所述第一夹角的值,确定所述第二终端,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。
- 一种文件传输装置,包括:确定模块,设置为确定用于接收待发送文件的第二终端,其中,所述第二终端依据第一终端接收的滑动轨迹确定;第二接收模块,设置为接收来自所述第一终端的所述待发送文件;第二发送模块,设置为将接收的所述待发送文件发送给所述第二终端。
- 根据权利要求13所述的装置,其中,所述确定模块包括以下之一:第二接收单元,设置为接收所述第一终端发送的第二终端的标识信息,其中,所述第一终端通过如下方式确定所述第二终端:所述第一终端确定所述滑动轨迹与预定方向的第一夹角;所述第一终端根据预先获取的所述第一终端与所述第二终端之间相对位置的相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;第三接收单元,设置为接收所述第一终端发送的第一夹角的值,其中,所述第一夹角为所述滑动轨迹与预定方向的夹角;第四确定单元,设置为根据所述第一夹角的值和所述第一终端与所述第二终端之间相对位置的相对位置信息确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510677608.2A CN106603609A (zh) | 2015-10-16 | 2015-10-16 | 文件发送、传输方法及装置 |
CN201510677608.2 | 2015-10-16 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017063499A1 true WO2017063499A1 (zh) | 2017-04-20 |
Family
ID=58517791
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/100145 WO2017063499A1 (zh) | 2015-10-16 | 2016-09-26 | 文件发送、传输方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106603609A (zh) |
WO (1) | WO2017063499A1 (zh) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491148B (zh) * | 2018-03-12 | 2021-06-08 | 维沃移动通信有限公司 | 一种应用分享方法及终端 |
CN110147194B (zh) * | 2019-05-21 | 2022-12-06 | 网易(杭州)网络有限公司 | 信息发送方法及装置 |
CN112437190B (zh) * | 2019-08-08 | 2023-04-18 | 华为技术有限公司 | 数据分享的方法、图形用户界面、相关装置及系统 |
CN113194454B (zh) * | 2020-01-13 | 2023-02-07 | 华为技术有限公司 | 数据分享的方法、电子设备 |
CN113242349B (zh) * | 2020-01-22 | 2022-08-26 | 华为技术有限公司 | 一种数据传输方法、电子设备及存储介质 |
CN111399792B (zh) * | 2020-03-20 | 2023-01-17 | 维沃移动通信有限公司 | 一种内容共享方法及电子设备 |
CN114610193A (zh) * | 2020-12-04 | 2022-06-10 | 华为技术有限公司 | 内容共享方法、电子设备及存储介质 |
CN113821480B (zh) * | 2021-11-25 | 2022-02-18 | 天津联想协同科技有限公司 | 链接mix文件筛选方法、装置、网盘及存储介质 |
CN114979124B (zh) * | 2022-07-28 | 2022-12-23 | 天津联想协同科技有限公司 | 基于ar技术的文件分享方法、装置、终端及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070146347A1 (en) * | 2005-04-22 | 2007-06-28 | Outland Research, Llc | Flick-gesture interface for handheld computing devices |
TW201122902A (en) * | 2009-12-18 | 2011-07-01 | Hon Hai Prec Ind Co Ltd | Portable electronic device with file transmitting function and method thereof |
CN103458098A (zh) * | 2012-06-05 | 2013-12-18 | 中国电信股份有限公司 | 用于在移动终端间进行数据传输的方法、装置和移动终端 |
CN104601439A (zh) * | 2014-08-11 | 2015-05-06 | 腾讯科技(深圳)有限公司 | 文件传输方法、位置确定方法、及相关装置、设备和系统 |
-
2015
- 2015-10-16 CN CN201510677608.2A patent/CN106603609A/zh active Pending
-
2016
- 2016-09-26 WO PCT/CN2016/100145 patent/WO2017063499A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070146347A1 (en) * | 2005-04-22 | 2007-06-28 | Outland Research, Llc | Flick-gesture interface for handheld computing devices |
TW201122902A (en) * | 2009-12-18 | 2011-07-01 | Hon Hai Prec Ind Co Ltd | Portable electronic device with file transmitting function and method thereof |
CN103458098A (zh) * | 2012-06-05 | 2013-12-18 | 中国电信股份有限公司 | 用于在移动终端间进行数据传输的方法、装置和移动终端 |
CN104601439A (zh) * | 2014-08-11 | 2015-05-06 | 腾讯科技(深圳)有限公司 | 文件传输方法、位置确定方法、及相关装置、设备和系统 |
Also Published As
Publication number | Publication date |
---|---|
CN106603609A (zh) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017063499A1 (zh) | 文件发送、传输方法及装置 | |
US10009731B2 (en) | Information sharing method, device and storage medium | |
US8730872B2 (en) | System and method for identification of mobile device users in an area of a wireless access point | |
CN105338480B (zh) | 基于lbs的用户匹配方法、消息客户端、服务器及系统 | |
AU2016397278B2 (en) | System and method for determining location | |
CN104573042B (zh) | Poi信息的确定方法及装置 | |
CN104468327B (zh) | 一种群组加入方法、装置及系统 | |
US20140258201A1 (en) | Generating a geofence via an analysis of a gps fix utilization distribution | |
WO2017143991A1 (zh) | 一种车载导航方法、交互系统服务器、终端以及系统 | |
CN103379165B (zh) | 一种显示微博话题的方法、终端、服务器及系统 | |
US11036922B2 (en) | Route information interaction method, electronic device, and computer storage medium | |
US20180049002A1 (en) | Method, server and terminal for information interaction | |
CN107172209B (zh) | 信息推送方法和装置 | |
CN103458354A (zh) | 一种基于位置的群组生成方法、装置及系统 | |
US20140258444A1 (en) | Network cloud communication for ip camera | |
CN105472026A (zh) | 实现广告推送的系统、服务器及方法 | |
CN103874010A (zh) | 一种基于手势的多移动终端数据交换系统 | |
CN112423226B (zh) | 一种分享文件的方法、装置和智能设备 | |
CN103873510A (zh) | 一种基于手势的多移动终端数据交换方法 | |
US9578513B2 (en) | Identifying untrusted network access points | |
CN104601439A (zh) | 文件传输方法、位置确定方法、及相关装置、设备和系统 | |
CN103344247B (zh) | 多客户端的导航方法及装置 | |
CN104010269A (zh) | 在通信终端中发送文件的方法和装置 | |
CN105025436A (zh) | 一种信息获取方法及移动终端 | |
CN112254730B (zh) | 室内导航方法及相关装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16854879 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16854879 Country of ref document: EP Kind code of ref document: A1 |