[go: up one dir, main page]

CN106603609A - File sending and transmission method and device - Google Patents

File sending and transmission method and device Download PDF

Info

Publication number
CN106603609A
CN106603609A CN201510677608.2A CN201510677608A CN106603609A CN 106603609 A CN106603609 A CN 106603609A CN 201510677608 A CN201510677608 A CN 201510677608A CN 106603609 A CN106603609 A CN 106603609A
Authority
CN
China
Prior art keywords
terminal
angle
file
sent
relative position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510677608.2A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510677608.2A priority Critical patent/CN106603609A/en
Priority to PCT/CN2016/100145 priority patent/WO2017063499A1/en
Publication of CN106603609A publication Critical patent/CN106603609A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

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

The invention provides a file sending method, a file transmission method, a file sending device and a file transmission device. The file sending method comprises the steps of: receiving a sliding trace used for instructing to send a to-be-sent file in a first terminal; and sending the to-be-sent file to a second terminal according to the sliding trace. By means of the file sending method, the file transmission method, the file sending device and the file transmission device, a file receiver can be determined according to the sliding trace on the first terminal, and operations such as face-to-face establishment of a group and search for a file receiver are not required, and accordingly the problem of low efficiency of file sharing due to the complicated operations in a file sharing process of a user in the related art is solved, thereby achieving the effect of improving the efficiency of file sharing.

Description

文件发送、传输方法及装置File sending and transmission method and device

技术领域technical field

本发明涉及通信领域,具体而言,涉及一种文件发送、传输方法及装置。The present invention relates to the communication field, in particular to a method and device for sending and transmitting files.

背景技术Background technique

目前知名分享软件快牙、汇分享、QQ等,它们的分享模式一般分为两个流程;第一,近距分享群建立,此过程一般为近距范围内的用户建立分享群,以待其他需要加入分享过程的用户加入,当分享群建立完成后,再进入具体的分享流程。第二,近距分发过程,此过程一般为以文件夹层级方式选择所需分发的文件或文件夹,再选择接收用户,在此过程中,甚至还需要经历接收方的同意流程。显而易见,相关技术中,整个分享过程需要分享群中多个用户的多次点击确认或取消等操作,极大地降低了分享效率及乐趣。At present, well-known sharing software such as Kuaiya, HuiSharing, QQ, etc. generally have two processes for their sharing modes; first, the establishment of short-distance sharing groups. Users who need to join the sharing process join, and when the sharing group is established, enter the specific sharing process. The second is the process of short-distance distribution. This process is generally to select the files or folders to be distributed in a folder-level manner, and then select the receiving user. In this process, it is even necessary to go through the consent process of the recipient. Obviously, in related technologies, the entire sharing process requires multiple clicks to confirm or cancel operations by multiple users in the sharing group, which greatly reduces the efficiency and fun of sharing.

针对相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,目前尚未提出有效的解决方案。Aiming at the problem of low file sharing efficiency caused by complex operations in the process of file sharing by users in the related art, no effective solution has been proposed yet.

发明内容Contents of the invention

本发明提供了一种文件发送、传输方法及装置,以至少解决相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题。The present invention provides a file sending and transmission method and device to at least solve the problem of low file sharing efficiency caused by complicated operations in the process of file sharing by users in the related art.

根据本发明的一个方面,提供了一种文件发送方法,包括:接收用于指示发送第一终端中的待发送文件的滑动轨迹;根据所述滑动轨迹,将所述待发送文件发送给第二终端。According to one aspect of the present invention, a file sending method is provided, including: receiving a sliding track used to indicate sending a file to be sent in the first terminal; according to the sliding track, sending the file to be sent to the second terminal terminal.

可选地,在根据所述滑动轨迹,将所述待发送文件发送给所述第二终端之前,还包括:获取所述第一终端与所述第二终端之间相对位置的相对位置信息。Optionally, before sending the file to be sent to the second terminal according to the sliding track, the method further includes: acquiring relative position information of relative positions between the first terminal and the second terminal.

可选地,获取所述第一终端与所述第二终端之间相对位置的相对位置信息包括:接收服务器发送的所述相对位置信息,其中,所述相对位置信息为所述服务器根据所述第一终端的第一位置信息和所述第二终端的第二位置信息生成的。Optionally, obtaining the relative position information of the relative position between the first terminal and the second terminal includes: receiving the relative position information sent by the server, wherein the relative position information is obtained by the server according to the The first location information of the first terminal and the second location information of the second terminal are generated.

可选地,根据所述滑动轨迹,将所述待发送文件发送给所述第二终端包括:确定所述滑动轨迹与预定方向的第一夹角;根据所述相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;通过服务器转发的方式,将所述待发送文件发送给所述第二终端。Optionally, according to the sliding track, sending the file to be sent to the second terminal includes: determining a first angle between the sliding track and a predetermined direction; Two terminals, wherein, the included angle between the line connecting the second terminal and the first terminal and the predetermined direction is a second included angle, and the difference between the second included angle and the first included angle is less than the first predetermined threshold; sending the to-be-sent file to the second terminal by way of server forwarding.

可选地,根据所述滑动轨迹,将所述待发送文件发送给所述第二终端包括:确定所述滑动轨迹与预定方向的第一夹角;依据所述第一夹角的值,通过服务器转发的方式,将所述待发送文件发送给所述第二终端,其中,所述第一夹角用于所述服务器根据所述第一终端与所述第二终端之间相对位置的相对位置信息和所述第一夹角的值,确定所述第二终端,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。Optionally, according to the sliding track, sending the file to be sent to the second terminal includes: determining a first included angle between the sliding track and a predetermined direction; according to the value of the first included angle, by The server forwards the file to be sent to the second terminal, wherein the first angle is used by the server according to the relative position between the first terminal and the second terminal. The position information and the value of the first angle determine the second terminal, the angle between the line connecting the second terminal and the first terminal and the predetermined direction is a third angle, and the first The difference between the three included angles and the first included angle is smaller than a second predetermined threshold.

根据本发明的一个方面,提供了一种文件传输方法,包括:确定用于接收待发送文件的第二终端,其中,所述第二终端依据第一终端接收的滑动轨迹确定;接收来自所述第一终端的所述待发送文件;将接收的所述待发送文件发送给所述第二终端。According to one aspect of the present invention, a file transmission method is provided, including: determining a second terminal for receiving a file to be sent, wherein the second terminal is determined according to the sliding trajectory received by the first terminal; The to-be-sent file of the first terminal; sending the received to-be-sent file to the second terminal.

可选地,确定用于接收所述待发送文件的所述第二终端包括以下之一:接收所示第一终端发送的第二终端的标识信息,其中,所述第一终端通过如下方式确定所述第二终端:所述第一终端确定所述滑动轨迹与预定方向的第一夹角;所述第一终端根据预先获取的所述第一终端与所述第二终端之间相对位置的相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;接收所述第一终端发送的第一夹角的值,其中,所述第一夹角为所述滑动轨迹与预定方向的夹角;根据所述第一夹角的值和所述第一终端与所述第二终端之间相对位置的相对位置信息确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。Optionally, determining the second terminal for receiving the file to be sent includes one of the following: receiving identification information of the second terminal sent by the first terminal, wherein the first terminal is determined in the following manner The second terminal: the first terminal determines a first angle between the sliding track and a predetermined direction; the first terminal determines the relative position between the first terminal and the second terminal according to Relative position information, determining the second terminal, wherein, the angle between the line connecting the second terminal and the first terminal and the predetermined direction is a second angle, and the second angle and The difference between the first included angle is less than a first predetermined threshold; receiving the value of the first included angle sent by the first terminal, where the first included angle is the included angle between the sliding track and a predetermined direction; according to The value of the first included angle and the relative position information of the relative position between the first terminal and the second terminal determine the second terminal, wherein the connection between the second terminal and the first terminal An included angle between the line and the predetermined direction is a third included angle, and a difference between the third included angle and the first included angle is smaller than a second predetermined threshold.

根据本发明的一个方面,还提供了一种文件发送装置,包括:第一接收模块,用于接收用于指示发送第一终端中的待发送文件的滑动轨迹;第一发送模块,用于根据所述滑动轨迹,将所述待发送文件发送给第二终端。According to one aspect of the present invention, there is also provided a device for sending files, including: a first receiving module, configured to receive a sliding track used to indicate sending a file to be sent in the first terminal; a first sending module, configured to The sliding track sends the file to be sent to the second terminal.

可选地,还包括:获取模块,用于在根据所述滑动轨迹,将所述待发送文件发送给所述第二终端之前,获取所述第一终端与所述第二终端之间相对位置的相对位置信息。Optionally, it also includes: an acquisition module, configured to acquire the relative position between the first terminal and the second terminal before sending the file to be sent to the second terminal according to the sliding track relative position information.

可选地,所述获取模块包括:第一接收单元,用于接收服务器发送的所述相对位置信息,其中,所述相对位置信息为所述服务器根据所述第一终端的第一位置信息和所述第二终端的第二位置信息生成的。Optionally, the acquiring module includes: a first receiving unit, configured to receive the relative position information sent by the server, wherein the relative position information is obtained by the server according to the first position information of the first terminal and The second location information of the second terminal is generated.

可选地,所述第一发送模块包括:第一确定单元,用于确定所述滑动轨迹与预定方向的第一夹角;第二确定单元,用于根据所述相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;第一发送单元,用于通过服务器转发的方式,将所述待发送文件发送给所述第二终端。Optionally, the first sending module includes: a first determining unit, configured to determine a first included angle between the sliding track and a predetermined direction; a second determining unit, configured to determine the The second terminal, wherein, the included angle between the line connecting the second terminal and the first terminal and the predetermined direction is a second included angle, and the difference between the second included angle and the first included angle The difference is smaller than the first predetermined threshold; the first sending unit is configured to send the file to be sent to the second terminal by way of server forwarding.

可选地,所述第一发送模块包括:第三确定单元,用于确定所述滑动轨迹与预定方向的第一夹角;第二发送单元,用于依据所述第一夹角的值,通过服务器转发的方式,将所述待发送文件发送给所述第二终端,其中,所述第一夹角用于所述服务器根据所述第一终端与所述第二终端之间相对位置的相对位置信息和所述第一夹角的值,确定所述第二终端,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。Optionally, the first sending module includes: a third determining unit, configured to determine a first included angle between the sliding track and a predetermined direction; a second sending unit, configured to, according to a value of the first included angle, Send the file to be sent to the second terminal by means of forwarding by the server, wherein the first angle is used by the server according to the relative position between the first terminal and the second terminal determining the second terminal relative to the position information 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 A difference between the third included angle and the first included angle is smaller than a second predetermined threshold.

根据本发明的一个方面,还提供了一种文件传输装置,包括:确定模块,用于确定用于接收待发送文件的第二终端,其中,所述第二终端依据第一终端接收的滑动轨迹确定;第二接收模块,用于接收来自所述第一终端的所述待发送文件;第二发送模块,用于将接收的所述待发送文件发送给所述第二终端。According to an aspect of the present invention, there is also provided a file transmission device, including: a determining module, configured to determine a second terminal for receiving the file to be sent, wherein the second terminal is based on the sliding trajectory received by the first terminal determination; a second receiving module, configured to receive the file to be sent from the first terminal; a second sending module, configured to send the received file to be sent to the second terminal.

可选地,所述确定模块包括以下之一:第二接收单元,用于接收所示第一终端发送的第二终端的标识信息,其中,所述第一终端通过如下方式确定所述第二终端:所述第一终端确定所述滑动轨迹与预定方向的第一夹角;所述第一终端根据预先获取的所述第一终端与所述第二终端之间相对位置的相对位置信息,确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向之间的夹角为第二夹角,所述第二夹角与所述第一夹角之差小于第一预定阈值;第三接收单元,用于接收所述第一终端发送的第一夹角的值,其中,所述第一夹角为所述滑动轨迹与预定方向的夹角;第四确定单元,用于根据所述第一夹角的值和所述第一终端与所述第二终端之间相对位置的相对位置信息确定所述第二终端,其中,所述第二终端与所述第一终端的连线与所述预定方向的夹角为第三夹角,所述第三夹角与所述第一夹角之差小于第二预定阈值。Optionally, the determining module includes one of the following: a second receiving unit, configured to receive the identification information of the second terminal sent by the first terminal, wherein the first terminal determines the second terminal in the following manner: Terminal: the first terminal determines a first angle between the sliding track and a predetermined direction; the first terminal, according to the pre-acquired relative position information between the first terminal and the second terminal, determining the second terminal, wherein the 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 the same as the first The difference between the angles is less than the first predetermined threshold; the third receiving unit is configured to receive the value of the first angle sent by the first terminal, wherein the first angle is the angle between the sliding track and the predetermined direction angle; a fourth determining unit, configured to determine the second terminal according to the value of the first included angle and the relative position information of the relative position between the first terminal and the second terminal, wherein the first An included angle between the line connecting the two terminals and the first terminal and the predetermined direction is a third included angle, and a difference between the third included angle and the first included angle is smaller than a second predetermined threshold.

通过本发明,采用接收用于指示发送第一终端中的待发送文件的滑动轨迹;根据所述滑动轨迹,将所述待发送文件发送给第二终端的方法,根据在第一终端上的滑动轨迹就可以确定文件接收方,而无需面对面建群、搜索文件接收方等操作,解决了相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,进而达到了提高文件分享效率的效果。According to the present invention, the method of receiving the sliding track for instructing to send the file to be sent in the first terminal; according to the sliding track, sending the file to be sent to the second terminal, according to the sliding track on the first terminal The file receiver can be determined by the trajectory, without the need for face-to-face group building, search for file receivers, etc., which solves the problem of low file sharing efficiency caused by complex operations in the process of file sharing by users in related technologies, and thus achieves improved file sharing. Share the effect of efficiency.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据本发明实施例的文件发送方法的流程图;Fig. 1 is a flow chart of a file sending method according to an embodiment of the present invention;

图2是根据本发明实施例的文件传输方法的流程图;2 is a flowchart of a file transfer method according to an embodiment of the present invention;

图3是根据本发明实施例的文件发送装置的结构框图;Fig. 3 is a structural block diagram of a file sending device according to an embodiment of the present invention;

图4是根据本发明实施例的文件发送装置的优选结构框图;Fig. 4 is a preferred structural block diagram of a file sending device according to an embodiment of the present invention;

图5是根据本发明实施例的文件发送装置中获取模块42的结构框图;FIG. 5 is a structural block diagram of the acquisition module 42 in the file sending device according to an embodiment of the present invention;

图6是根据本发明实施例的文件发送装置中第一发送模块34的结构框图一;FIG. 6 is a structural block diagram 1 of the first sending module 34 in the file sending device according to an embodiment of the present invention;

图7是根据本发明实施例的文件发送装置中第一发送模块34的结构框图二;FIG. 7 is a second structural block diagram of the first sending module 34 in the file sending device according to an embodiment of the present invention;

图8是根据本发明实施例的文件传输装置的结构框图;Fig. 8 is a structural block diagram of a file transmission device according to an embodiment of the present invention;

图9是根据本发明实施例的文件传输装置中确定模块82的结构框图;FIG. 9 is a structural block diagram of a determination module 82 in a file transfer device according to an embodiment of the present invention;

图10是根据本发明实施例的近距分享方法的流程图一;FIG. 10 is a first flowchart of a proximity sharing method according to an embodiment of the present invention;

图11是根据本发明实施例的近距分享方法的流程图二;FIG. 11 is a second flowchart of a proximity sharing method according to an embodiment of the present invention;

图12是根据本发明实施例的文件分享的界面UI流程示意图。Fig. 12 is a schematic flow diagram of a file sharing interface UI according to an embodiment of the present invention.

具体实施方式detailed description

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.

在本实施例中提供了一种文件发送方法,图1是根据本发明实施例的文件发送方法的流程图,如图1所示,该流程包括如下步骤:A method for sending a file is provided in this embodiment. FIG. 1 is a flowchart of a method for sending a file according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:

步骤S102,接收用于指示发送第一终端中的待发送文件的滑动轨迹;Step S102, receiving a sliding track for instructing to send the file to be sent in the first terminal;

步骤S104,根据该滑动轨迹,将待发送文件发送给第二终端。Step S104, according to the slide track, send the file to be sent to the second terminal.

通过上述步骤,根据在第一终端上的滑动轨迹就可以确定文件接收方,而无需面对面建群、搜索文件接收方等操作,解决了相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,进而达到了提高文件分享效率的效果。该实施例中,第二终端的数量可以为一个或多个。Through the above steps, the file receiver can be determined according to the sliding track on the first terminal, without the need for operations such as face-to-face group building, search for file receivers, etc., which solves the problem caused by the complicated operation of the user in the process of sharing files in the related art The problem of low efficiency of file sharing has been solved, and the effect of improving file sharing efficiency has been achieved. In this embodiment, there may be one or more second terminals.

在上述步骤S104之前,在一个可选的实施例中,还可以包括:获取第一终端与第二终端之间相对位置的相对位置信息,从而通过获取的第一终端与第二终端的相对位置信息,可以对照该相对位置信息进行滑动以得到滑动轨迹,也可以对照已经得到的滑动轨迹确定第二终端。Before the above step S104, in an optional embodiment, it may also include: obtaining the relative position information of the relative position between the first terminal and the second terminal, so that the obtained relative position of the first terminal and the second terminal information, and can be slid against the relative position information to obtain a sliding track, and can also be determined against the obtained sliding track to determine the second terminal.

上述实施例中的相对位置信息可以为在第一终端上生成的,由第一终端获取该第一终端和第二终端的位置信息来生成,在一个可选的实施例中,上述实施例中的相对位置信息可以为:接收服务器发送的相对位置信息,其中,该相对位置信息为服务器根据第一终端的第一位置信息和第二终端的第二位置信息生成的。在该可选实施例中,由服务器生成该相对位置信息并发送给第一终端,节省了第一终端的资源及时间,尤其当第一终端为多个时,还节省了系统资源。The relative position information in the above embodiment may be generated on the first terminal, and the first terminal obtains the position information of the first terminal and the second terminal to generate. In an optional embodiment, in the above embodiment The relative position information may be: receiving the relative position information sent by the server, wherein the relative position information is generated by the server according to the first position information of the first terminal and the second position information of the second terminal. In this optional embodiment, the relative position information is generated by the server and sent to the first terminal, which saves resources and time of the first terminal, especially when there are multiple first terminals, and also saves system resources.

在一个可选的实施例中,上述步骤S104可以包括:确定滑动轨迹与预定方向的第一夹角;根据相对位置信息,确定第二终端,其中,该第二终端与第一终端的连线与预定方向之间的夹角为第二夹角,该第二夹角与第一夹角之差小于第一预定阈值;通过服务器转发的方式,将待发送文件发送给第二终端。例如,可以确定第一终端上的滑动轨迹与正北方向的夹角为45°,在获取的相对位置信息中,查找与正北方向的夹角为40°~50°范围内的终端,并将其确定为第二终端,之后将待发送文件和第二终端的标识细心你发送给服务器,由服务器完成文件的发送。当然,这里的预定方向也可以为正南、正东,或者为正东南等方向。在该可选实施例中,仅通过滑动就可以完成文件的发送,大大提高了文件传输、分享的效率。In an optional embodiment, the above step S104 may include: determining the first angle between the sliding track and the predetermined direction; determining the second terminal according to the relative position information, wherein the connection line between the second terminal and the first terminal The included angle with the predetermined direction is a second included angle, and the difference between the second included angle and the first included angle is smaller than the first predetermined threshold; and the file to be sent is sent to the second terminal through forwarding by the server. For example, it may be determined that the included angle between the sliding track on the first terminal and the true north direction is 45°, and in the obtained relative position information, search for a terminal whose included angle with the true north direction is within the range of 40°-50°, and It is determined as the second terminal, and then the file to be sent and the identification of the second terminal are carefully sent to the server, and the server completes the sending of the file. Of course, the predetermined direction here may also be due south, due east, or due southeast. In this optional embodiment, the sending of the file can be completed only by sliding, which greatly improves the efficiency of file transfer and sharing.

在一个可选的实施例中,上述步骤S104也可以包括:确定滑动轨迹与预定方向的第一夹角;依据第一夹角的值,通过服务器转发的方式,将待发送文件发送给第二终端,其中,该第一夹角用于服务器根据第一终端与第二终端之间相对位置的相对位置信息和第一夹角的值,确定第二终端,该第二终端与第一终端的连线与预定方向的夹角为第三夹角,第三夹角与第一夹角之差小于第二预定阈值。例如,确定滑动轨迹与正北方向的夹角为60°,将该夹角值60°与待发送的文件一起发送给服务器,由服务器根据该夹角值60°确定第二终端,再将待发送文件发送给第二终端。其中,服务器确定第二终端的方式可以为:服务器查找相位信息中与第一终端的连线(可以记为第一直线)与正北方向(可以记为第二直线)之间的夹角为58°~62°范围内的终端,将其确认为第二终端。其中,该第二终端的数量可以为一个或多个,该第二预定阈值可以根据实际情况进行设置,该预定方向可以为正南、正西或者正西北等方向,也可以根据实际情况进行设置。在该可选实施例中,仅通过滑动就可以完成文件的发送,大大提高了文件传输、分享的效率。In an optional embodiment, the above step S104 may also include: determining the first included angle between the sliding track and the predetermined direction; according to the value of the first included angle, sending the file to be sent to the second terminal, wherein 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, and the second terminal and the first terminal The included angle between the connecting line and the predetermined direction is a third included angle, and the difference between the third included angle and the first included angle is smaller than a second predetermined threshold. For example, it is determined that the included angle between the sliding track and the true north direction is 60°, and the included angle value of 60° is sent to the server together with the file to be sent, and the server determines the second terminal according to the included angle value of 60°, and then sends the Send the file to the second terminal. Wherein, the method for the server to determine the second terminal may be as follows: the server searches for the angle between the line connecting the first terminal (which can be recorded as the first straight line) and the north direction (which can be recorded as the second straight line) in the phase information If it is a terminal within the range of 58° to 62°, it is confirmed as the second terminal. Wherein, the number of the second terminal can be one or more, the second predetermined threshold can be set according to the actual situation, and the predetermined direction can be due south, due west or due northwest, etc., or can be set according to the actual situation . In this optional embodiment, the sending of the file can be completed only by sliding, which greatly improves the efficiency of file transfer and sharing.

上述实施例及可选的实施的执行主体可以为第一终端。The execution subject of the foregoing embodiments and optional implementations may be the first terminal.

在本实施例中还提供了一种文件传输方法,图2是根据本发明实施例的文件传输方法的流程图,如图2所示,该流程包括如下步骤:A file transfer method is also provided in this embodiment. FIG. 2 is a flowchart of a file transfer method according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:

步骤S202,确定用于接收待发送文件的第二终端,其中,该第二终端依据第一终端接收的滑动轨迹确定;Step S202, determining a second terminal for receiving the file to be sent, wherein the second terminal is determined according to the sliding track received by the first terminal;

步骤S204,接收来自第一终端的待发送文件;Step S204, receiving the file to be sent from the first terminal;

步骤S206,将接收的待发送文件发送给第二终端。Step S206, sending the received file to be sent to the second terminal.

通过上述步骤,根据在第一终端上的滑动轨迹就可以确定文件接收方,而无需面对面建群、搜索文件接收方等操作,解决了相关技术中用户进行分享文件的过程中操作复杂而导致的分享文件效率低的问题,进而达到了提高文件分享效率的效果。该实施例中,第二终端的数量可以为一个或多个。上述步骤S202和S204之间没有前后关系,也可以先接收待发送文件,再确定第二终端。Through the above steps, the file receiver can be determined according to the sliding track on the first terminal, without the need for operations such as face-to-face group building, search for file receivers, etc., which solves the problem caused by the complicated operation of the user in the process of sharing files in the related art The problem of low efficiency of file sharing has been solved, and the effect of improving file sharing efficiency has been achieved. In this embodiment, there may be one or more second terminals. There is no contextual relationship between the above steps S202 and S204, and the file to be sent may also be received first, and then the second terminal is determined.

在一个可选的实施例中,上述步骤S202可以包括以下之一:接收第一终端发送的第二终端的标识信息,其中,第一终端通过如下方式确定第二终端:第一终端确定滑动轨迹与预定方向的第一夹角;第一终端根据预先获取的第一终端与第二终端之间相对位置的相对位置信息,确定第二终端,其中,第二终端与第一终端的连线与预定方向之间的夹角为第二夹角,第二夹角与第一夹角之差小于第一预定阈值;接收第一终端发送的第一夹角的值,其中,第一夹角为滑动轨迹与预定方向的夹角;根据第一夹角的值和第一终端与第二终端之间相对位置的相对位置信息确定第二终端,其中,第二终端与第一终端的连线与预定方向的夹角为第三夹角,第三夹角与第一夹角之差小于第二预定阈值。在该可选实施中,分为两种情况,情况一为由第一终端确定第二终端,情况二为由服务器确定第二终端。下面进行举例说明。In an optional embodiment, the above step S202 may include one of the following: receiving the identification information of the second terminal sent by the first terminal, wherein the first terminal determines the second terminal in the following manner: the first terminal determines the sliding track The first angle with the 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 obtained in advance, wherein the connection line between the second terminal and the first terminal is the same as The included angle between the predetermined directions is a second included angle, and the difference between the second included angle and the first included angle is less than a first predetermined threshold; receiving the value of the first included angle sent by the first terminal, wherein the first included angle is The angle between the sliding track and the predetermined direction; the second terminal is determined 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 connection line between the second terminal and the first terminal is the same as The included angle of the predetermined direction is a third included angle, and the difference between the third included angle and the first included angle is smaller than a second predetermined threshold. In this optional implementation, there are two cases. Case 1 is that the first terminal determines the second terminal, and case 2 is that the server determines the second terminal. An example is given below.

情况一:接收到第一终端发送的第二终端的标识信息,其中,第一终端根据滑动轨迹确定该滑动轨迹与正北方向的夹角为30°,根据该夹角值30°,第一终端根据相对位置信息确定与第一终端的连线(可以认为这是第三射线,原点为第一终端的位置)与正北方向(可以认为这是第四射线)的夹角在27°~33°内的终端,将其作为第二终端,并获取第二终端的标识信息,例如设备序列号、SIM卡信息等能够标识第二终端的信息。Situation 1: The identification information of the second terminal sent by the first terminal is received, wherein the first terminal determines that the angle between the sliding track and the true north direction is 30° according to the sliding track, and according to the included angle value of 30°, the first According to the relative position information, the terminal determines the angle between the connection line with the first terminal (it can be considered as the third ray, and the origin is the position of the first terminal) and the direction of true north (it can be considered as the fourth ray). The terminal within 33° is used as the second terminal, and the identification information of the second terminal is obtained, such as the device serial number, SIM card information and other information that can identify the second terminal.

情况二:接收到第一终端发送的第一夹角的值,例如,75°,为第一终端获取的滑动轨迹与正北方向的夹角。查找相对位置信息中,与第一终端的连线(以第一终端为原点的射线,可以认为这是第五射线)与正北方向(可以认为这是第六射线)构成的夹角在72°~78°内的终端,将其作为第二终端。Case 2: The value of the first included angle sent by the first terminal is received, for example, 75°, which is the included angle between the sliding trajectory acquired by the first terminal and the true north direction. In searching for relative position information, the angle formed by the connection with 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) is 72 The terminal within °~78° is used as the second terminal.

上述实施例及可选实施例的执行主体可以为服务器,预定方向可以为正北、正南、正西、正东北等方向,可以根据实际情况进行设置。上述第一预定阈值与第二预定阈值也可以根据实际情况进行设置。The execution subject of the above-mentioned embodiments and optional embodiments may be a server, and the predetermined direction may be true north, true south, true west, true northeast, etc., and may be set according to actual conditions. The above-mentioned first predetermined threshold and the second predetermined threshold may also be set according to actual conditions.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.

在本实施例中还提供了一种文件发送、传输装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for sending and transmitting files is also provided. The device is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated here. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

图3是根据本发明实施例的文件发送装置的结构框图,如图3所示,该装置包括第一接收模块32和第一发送模块34,下面对该装置进行说明。Fig. 3 is a structural block diagram of a file sending device according to an embodiment of the present invention. As shown in Fig. 3, the device includes a first receiving module 32 and a first sending module 34, and the device will be described below.

第一接收模块32,用于接收用于指示发送第一终端中的待发送文件的滑动轨迹;第一发送模块34,连接于上述第一接收模块32,用于根据滑动轨迹,将待发送文件发送给第二终端。The first receiving module 32 is used to receive the sliding track used to indicate the file to be sent in the first terminal; the first sending module 34 is connected to the first receiving module 32, and is used to send the file to be sent according to the sliding track sent to the second terminal.

图4是根据本发明实施例的文件发送装置的优选结构框图,如图4所示,该装置除包括图3所示的所有模块外,还包括获取模块42,下面对该装置进行说明。Fig. 4 is a preferred structural block diagram of a file sending device according to an embodiment of the present invention. As shown in Fig. 4, the device includes an acquisition module 42 in addition to all the modules shown in Fig. 3, and the device will be described below.

获取模块42,连接于上述第一发送模块34,用于在根据滑动轨迹,将待发送文件发送给第二终端之前,获取第一终端与第二终端之间相对位置的相对位置信息。The obtaining module 42 is connected to the above-mentioned first sending module 34, and is used for obtaining the relative position information of the relative position between the first terminal and the second terminal before sending the file to be sent to the second terminal according to the sliding track.

图4是以获取模块42连接在第一发送模块34之前进行说明的,该获取模块42还可以连接在第一接收模块32之前,或同时连接于第一接收模块32和第一发送模块34。FIG. 4 illustrates that the acquiring module 42 is connected before the first sending module 34 . The acquiring module 42 may also be connected before the first receiving module 32 , or be connected to the first receiving module 32 and the first sending module 34 at the same time.

图5是根据本发明实施例的文件发送装置中获取模块42的结构框图,如图5所示,该获取模块42包括第一接收单元52,下面对该获取模块42进行说明。Fig. 5 is a structural block diagram of the acquisition module 42 in the file sending device according to the embodiment of the present invention. As shown in Fig. 5, the acquisition module 42 includes a first receiving unit 52, and the acquisition module 42 will be described below.

第一接收单元52,用于接收服务器发送的相对位置信息,其中,该相对位置信息为服务器根据第一终端的第一位置信息和第二终端的第二位置信息生成的。The first receiving unit 52 is configured to receive the relative position information sent by the server, wherein the relative position information is generated by the server according to the first position information of the first terminal and the second position information of the second terminal.

图6是根据本发明实施例的文件发送装置中第一发送模块34的结构框图一,如图6所示,该第一发送模块34包括第一确定单元62、第二确定单元64和第一发送单元66,下面对该第一发送模块34进行说明。Fig. 6 is a structural block diagram 1 of the first sending module 34 in the file sending device according to an embodiment of the present invention. As shown in Fig. 6, the first sending module 34 includes a first determining unit 62, a second determining unit 64 and a first The sending unit 66, the first sending module 34 will be described below.

第一确定单元62,用于确定滑动轨迹与预定方向的第一夹角;第二确定单元64,连接于上述第一确定单元62,用于根据相对位置信息,确定第二终端,其中,该第二终端与第一终端的连线与预定方向之间的夹角为第二夹角,该第二夹角与第一夹角之差小于第一预定阈值;第一发送单元66,连接于上述第二确定单元64,用于通过服务器转发的方式,将待发送文件发送给第二终端。The first determining unit 62 is configured to determine the first included angle between the sliding track and the predetermined direction; the second determining unit 64 is connected to the first determining unit 62 and configured to determine the second terminal according to the relative position information, wherein 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 smaller than the first predetermined threshold; the first sending unit 66 is connected to The above-mentioned second determination unit 64 is configured to send the file to be sent to the second terminal by way of forwarding by the server.

图7是根据本发明实施例的文件发送装置中第一发送模块34的结构框图二,如图7所示,该第一发送模块34包括第三确定单元72和第二发送单元74,下面对该第一发送模块34进行说明。Fig. 7 is a structural block diagram 2 of the first sending module 34 in the file sending device 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, as follows The first transmission module 34 will be described.

第三确定单元72,用于确定滑动轨迹与预定方向的第一夹角;第二发送单元74,连接于上述第三确定单元72,用于依据第一夹角的值,通过服务器转发的方式,将待发送文件发送给第二终端,其中,第一夹角用于服务器根据第一终端与第二终端之间相对位置的相对位置信息和第一夹角的值,确定第二终端,该第二终端与第一终端的连线与预定方向的夹角为第三夹角,该第三夹角与第一夹角之差小于第二预定阈值。The third determining unit 72 is used to determine the first angle between the sliding track and the predetermined direction; the second sending unit 74 is connected to the above-mentioned third determining unit 72, and is used for forwarding by the server according to the value of the first included angle , sending the file to be sent to the second terminal, wherein 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 An included angle between a line connecting the second terminal and the first terminal and the predetermined direction is a third included angle, and a difference between the third included angle and the first included angle is smaller than a second predetermined threshold.

图8是根据本发明实施例的文件传输装置的结构框图,如图8所示,该装置包括确定模块82、第二接收模块84和第二发送模块86,下面对该装置进行说明。FIG. 8 is a structural block diagram of a file transmission device according to an embodiment of the present invention. As shown in FIG. 8 , the device includes a determination module 82 , a second receiving module 84 and a second sending module 86 , and the device will be described below.

确定模块82,用于确定用于接收待发送文件的第二终端,其中,该第二终端依据第一终端接收的滑动轨迹确定;第二接收模块84,用于接收来自第一终端的待发送文件;第二发送模块86,连接于上述确定模块82和第二接收模块84,用于将接收的待发送文件发送给第二终端。The determining module 82 is used to determine the second terminal for receiving the file to be sent, wherein the second terminal is determined according to the sliding track received by the first terminal; the second receiving module 84 is used to receive the file to be sent from the first terminal File; the second sending module 86, connected to the above-mentioned determining module 82 and the second receiving module 84, is used to send the received file to be sent to the second terminal.

图9是根据本发明实施例的文件传输装置中确定模块82的结构框图,如图9所示,该确定模块82包括以下之一:第二接收单元92,第三接收单元94和第四确定单元96,下面对该装置进行说明。Fig. 9 is a structural block diagram of the determination module 82 in the file transfer device according to an embodiment of the present invention. As shown in Fig. 9, the determination module 82 includes one of the following: a second receiving unit 92, a third receiving unit 94 and a fourth determining Unit 96, the device will be described below.

第二接收单元92,用于接收第一终端发送的第二终端的标识信息,其中,第一终端通过如下方式确定第二终端:第一终端确定滑动轨迹与预定方向的第一夹角;第一终端根据预先获取的第一终端与第二终端之间相对位置的相对位置信息,确定第二终端,其中,该第二终端与第一终端的连线与预定方向之间的夹角为第二夹角,该第二夹角与第一夹角之差小于第一预定阈值;第三接收单元94,用于接收第一终端发送的第一夹角的值,其中,第一夹角为滑动轨迹与预定方向的夹角;第四确定单元96,用于根据第一夹角的值和第一终端与第二终端之间相对位置的相对位置信息确定第二终端,其中,该第二终端与第一终端的连线与预定方向的夹角为第三夹角,第三夹角与第一夹角之差小于第二预定阈值。The second receiving unit 92 is configured to receive the identification information of the second terminal sent by the first terminal, wherein the first terminal determines the second terminal in the following manner: the first terminal determines the first angle between the sliding track and the predetermined direction; the second A terminal determines the second terminal according to the pre-acquired relative position information of the relative position between the first terminal and the second terminal, wherein the angle between the line connecting the second terminal and the first terminal and a predetermined direction is the second Two included angles, the difference between the second included angle and the first included angle is less than a first predetermined threshold; the third receiving unit 94 is configured to receive the value of the first included angle sent by the first terminal, wherein the first included angle is The included angle between the sliding track and the predetermined direction; the fourth determination unit 96 is configured to determine the second terminal according to the value of the first included angle and the relative position information of the relative position between the first terminal and the second terminal, wherein the second terminal An included angle between a line connecting the terminal and the first terminal and the predetermined direction is a third included angle, and a difference between the third included angle and the first included angle is smaller than a second predetermined threshold.

下面以第一终端和第二终端为智能手机为例,结合具体实施环境对本发明实施例进行说明。Hereinafter, the embodiment of the present invention will be described by taking the first terminal and the second terminal as smart phones as an example, in combination with a specific implementation environment.

本发明实施例所涉及的部件,有手机中的传感器和部分网络外设,如全球定位系统(Global Positioning System,简称为GPS)、方向传感器、基于电气和电子工程师协会(Institute of Electrical and Electronics Engineers,简称为IEEE)802.11b标准的无线局域网(Wireless Fidelity,简称为WIFI)、数据网络,网络服务器以及手指滑动轨迹。其中,GPS、WIFI或数据网络以及服务器主要参与到近距分享的第一阶段,即近距分享群建立阶段。通过第一阶段,服务器收集到手机用户的GPS信息,生成分享群的雷达图,并反馈给用户。The components involved in the embodiment of the present invention include sensors in mobile phones and some network peripherals, such as Global Positioning System (Global Positioning System, referred to as GPS), direction sensors, and based on the 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. Among them, GPS, WIFI or data network and server are mainly involved in the first stage of proximity sharing, that is, the establishment stage of proximity sharing group. Through the first stage, the server collects the GPS information of the mobile phone user, generates a radar map of the sharing group, and feeds back to the user.

第二阶段;近距分发过程主要通过分析计算方向传感器数据与手指手动被传输文件形成的滑动轨迹数据、以及近距范围内其他手机设备地方向传感器数据定位接收方的位置。The second stage: the short-distance distribution process mainly locates the receiver's position by analyzing and calculating the direction sensor data and the sliding track data formed by the manually transferred files of the fingers, as well as the direction sensor data of other mobile devices within a short distance.

在第二阶段之前,手机应用(Application,简称为APP)需要将可传输的文件或文件夹整齐罗列在界面中,方便用户选中所需发送的内容,并滑向接收方所在的位置,使得用户可以在一次性的滑动操作完成分享过程。Before the second stage, the mobile application (Application, referred to as APP) needs to neatly list the transferable files or folders in the interface, 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.

图10是根据本发明实施例的近距分享方法的流程图一,如图10所示,该流程相当于上述实施例中的文件发送方法的流程,包括以下步骤:FIG. 10 is a flow chart 1 of a proximity sharing method according to an embodiment of the present invention. As shown in FIG. 10 , the process is equivalent to the process of the file sending method in the above embodiment, and includes the following steps:

步骤S1002:手机终端应用(即上述手机APP)通过WIFI方式与服务器端进行通信;Step S1002: the mobile terminal application (ie, the above-mentioned mobile APP) communicates with the server through WIFI;

步骤S1004:终端应用展示可共享内容;Step S1004: the terminal application displays shareable content;

步骤S1006:终端应用之间传输共享内容。Step S1006: Transfer shared content between terminal applications.

本实施例中的通信方式是WIFI通信方式。The communication mode in this embodiment is a WIFI communication mode.

本实施例提供的是通过WIFI通信方式(但不仅限于该方式)建立分享群及以宫格列表方式展示共享内容,因此步骤S1002、S1004、S1006都是建立在WIFI网络上的数据连接。This embodiment provides the establishment of sharing groups through WIFI communication (but not limited to this method) and the display of shared content in a grid list. Therefore, steps S1002, S1004, and S1006 are all data connections established on the WIFI network.

步骤S1002客户端(即手机终端)与服务器进行连接,最主要是获取用户的位置信息,所以,服务器可结合客户端的最新GPS信息(用户所处的位置可能在建筑物内,无法获取实时数据)、WIFI接入点位置信息,分析计算得出用户的当前位置。Step S1002 The client (i.e. mobile phone terminal) connects to the server, the most important thing is to obtain the user's location information, so the server can combine the latest GPS information of the client (the user's location may be in a building, and real-time data cannot be obtained) , WIFI access point location information, analyze and calculate the current location of the user.

步骤S1004在该实例以宫格列表方式展示共享内容,以宫格列表方式展示虽然不如球体3D方式能充分利用界面空间,但是,能整齐的以层级方式展示原有的文件夹结构。Step S1004 displays the shared content in the form of grid list in this example. Although the grid list display is not as good as the sphere 3D way to fully utilize the interface space, it can neatly display the original folder structure in a hierarchical manner.

步骤S1006用户之间传输共享内容,还需要通过服务器转发的方式进行。因为考虑到用户之间的网络结构复杂性(可能是难以穿越对称性网络),所以,通过转发方式,能保证传输线路的可靠性。Step S1006 The transfer of shared content between users also needs to be forwarded by the server. Considering the complexity of the network structure between users (it may be difficult to traverse a symmetrical network), the reliability of the transmission line can be guaranteed through the forwarding method.

图11是根据本发明实施例的近距分享方法的流程图二,如图11所示,该流程相当于上述实施例中的文件发送、传输流程,包括以下步骤:Fig. 11 is the second flow chart of the proximity sharing method according to the embodiment of the present invention. As shown in Fig. 11, this process is equivalent to the file sending and transmission process in the above-mentioned embodiment, and includes the following steps:

步骤S1102,初始化阶段。分享群中手机分享应用通过数据网络或WIFI与服务器建立连接,并向服务器发送自己的GPS信息,然后,服务器将收到的多个用户GPS信息,并实时更新整体用户的雷达图,最后,返回处于当前用户附近的雷达图,即图11中的步骤S1-S4;Step S1102, initialization phase. The mobile phone 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. Finally, return The radar map near the current user, that is, steps S1-S4 in Figure 11;

步骤S1104,从图11中S5开始,进入分享阶段。分享应用将可传输的文件或文件夹以球体3D形式或格宫列表形式展示于界面上。待用户在文件展示区选中所需传输的文件,并按住该文件,同时滑向近距范围内的接收方位置。随后,分享应用将用户的滑动轨迹与方向感应器所指北极的夹角发送给服务器,服务器应用此信息筛选出该发送方近距范围内,并且,手机处于与北极夹角正好是该用户发送夹角负值相同或在小范围偏移的接收方,即图11中的S5-S9。Step S1104, starting from S5 in FIG. 11, enters the sharing stage. The sharing application displays transferable files or folders on the interface in the form of a spherical 3D or grid list. Wait for the user to select the file to be transferred in the file display area, press and hold the file, and at the same time slide to the receiver within the short range. Then, the sharing application sends the angle between the user's sliding track and the north pole pointed by the direction sensor to the server, and the server uses this information to filter out the sender's short-distance range, and the mobile phone is at the angle between the north pole and the user's sender. The receiving side with the same negative value of the included angle or offset in a small range, that is, S5-S9 in Fig. 11 .

步骤S1106,从图11中S10开始,进入转发阶段。服务器为文件发送方以及筛选出的接收方建立数据转发通道,最终,选择的传输文件被发送到接收方(如果服务器判断当前双方处在同一局域网内,则通知双方通过直连方式进行互传),即图11中的S10-S11。Step S1106, starting from S10 in FIG. 11, enters the forwarding stage. The server establishes a data forwarding channel for the file sender and the selected receiver, and finally, the selected transfer file is sent to the receiver (if the server judges that the two parties are currently in the same LAN, it will notify the two parties to transmit each other through direct connection) , that is, S10-S11 in FIG. 11 .

通过上述实施例,仅仅通过手指滑动,就可以完成对于待分享文件的分享,极大的提高了文件分享的效率,提高了用户的体验度。Through the above embodiment, the sharing of the file to be shared can be completed only by sliding the finger, which greatly improves the efficiency of file sharing and improves the user experience.

图12是根据本发明实施例的文件分享的界面UI流程示意图,如图12所示,该流程示意图描述了用户在分享阶段中UI流程。发送方按住选中文件1并滑向东方,此时滑动轨迹与北极夹角为90°,服务器将查找当前近距范围内手机顶部与北极夹角为-90°(允许一定的误差)的客户端。接收方定位完毕,即可进入转发阶段。FIG. 12 is a schematic diagram of UI flow of the file sharing interface according to an embodiment of the present invention. As shown in FIG. 12 , the schematic flow diagram describes the UI flow of the user in the sharing phase. The sender presses the selected file 1 and slides to the east. At this time, the angle between the sliding track and the North Pole is 90°, and the server will search for the customer whose angle between the top of the mobile phone and the North Pole within the current close range is -90° (certain error is allowed). end. After the receiver is located, it can enter the forwarding stage.

在该可选实施例中,用户将使用本发明实施例的分享软件打开,待与服务器连接完成后,可从服务器返回的雷达图中查看附近的用户位置分布情况。当处在近距范围用户需要即时分享文件时,发送方将相应文件滑向接收方手机的顶部即可。此类分享软件一般用于近距范围内需要快速分享功能的用户。该可选实施例中的手机终端的分享软件,相当于上述实施中的文件发送装置。In this optional embodiment, the user opens the sharing software using the embodiment of the present invention, and after the connection with the server is completed, the user can check the location distribution of nearby users from the radar map returned by the server. When a user within a short distance needs to share a file instantly, the sender simply slides the corresponding file to the top of the receiver's mobile phone. This type of sharing software is generally used for users who need a fast sharing function within a short distance. The sharing software of the mobile phone terminal in this optional embodiment is equivalent to the file sending device in the above implementation.

上述可选实施例中,将选取文件、定位接收方、发送文件整个分享进程在用户的一个动作内完成,从而达到快速分享的目的,提高了分享文件的效率。In the above optional embodiment, the entire sharing process of selecting files, locating recipients, and sending files is completed within one action of the user, thereby achieving the purpose of fast sharing and improving the efficiency of file sharing.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above-mentioned modules can be implemented by software or hardware. For the latter, it can be implemented in the following manner, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules are respectively located in multiple in the processor.

本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for performing the following steps:

S11,接收用于指示发送第一终端中的待发送文件的滑动轨迹;S11. Receive a sliding track for instructing to send the file to be sent in the first terminal;

S12,根据该滑动轨迹,将待发送文件发送给第二终端。S12. Send the file to be sent to the second terminal according to the sliding track.

可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is also configured to store program codes for performing the following steps:

S21,确定用于接收待发送文件的第二终端,其中,该第二终端依据第一终端接收的滑动轨迹确定;S21. Determine a second terminal for receiving the file to be sent, wherein the second terminal is determined according to the sliding trajectory received by the first terminal;

S22,接收来自第一终端的待发送文件;S22. Receive the file to be sent from the first terminal;

S23,将接收的待发送文件发送给第二终端。S23. Send the received file to be sent to the second terminal.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), Various media that can store program codes such as removable hard disks, magnetic disks, or optical disks.

可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述S11-S12。Optionally, in this embodiment, the processor executes the above S11-S12 according to the program code stored in the storage medium.

可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述S21-S23。Optionally, in this embodiment, the processor executes the above S21-S23 according to the program code stored in the storage medium.

可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not repeated in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (14)

1. a kind of document sending method, it is characterised in that include:
The sliding trace of the file to be sent in receiving for indicating transmission first terminal;
According to the sliding trace, the file to be sent is sent to into second terminal.
2. method according to claim 1, it is characterised in that according to the sliding trace, by the text to be sent Part is sent to before the second terminal, is also included:
Obtain the relative position information of relative position between the first terminal and the second terminal.
3. method according to claim 2, it is characterised in that obtain between the first terminal and the second terminal The relative position information of relative position includes:
The relative position information that the reception server sends, wherein, the relative position information is the server Generated according to the first position information of the first terminal and the second position information of the second terminal.
4. method according to claim 2, it is characterised in that according to the sliding trace, by the file to be sent Being sent to the second terminal includes:
Determine the first angle of the sliding trace and predetermined direction;
According to the relative position information, the second terminal is determined, wherein, the second terminal and described first Angle between the line of terminal and the predetermined direction is the second angle, second angle and first angle Difference be less than the first predetermined threshold;
By way of server is forwarded, the file to be sent is sent to into the second terminal.
5. method according to claim 1, it is characterised in that according to the sliding trace, by the file to be sent Being sent to the second terminal includes:
Determine the first angle of the sliding trace and predetermined direction;
According to the value of first angle, by way of server is forwarded, the file to be sent is sent to into institute Second terminal is stated, wherein, it is whole with described second according to the first terminal that first angle is used for the server The value of the relative position information of relative position and first angle between end, determines the second terminal, described Two terminals are the 3rd angle with the line and the angle of the predetermined direction of the first terminal, the 3rd angle with The difference of first angle is less than the second predetermined threshold.
6. a kind of document transmission method, it is characterised in that include:
It is determined that the second terminal for receiving file to be sent, wherein, the second terminal is received according to first terminal Sliding trace determine;
Receive the file described to be sent from the first terminal;
The file described to be sent for receiving is sent to into the second terminal.
7. method according to claim 6, it is characterised in that it is determined that for receiving described the of the file to be sent Two terminals include one below:
The identification information of the second terminal that the first terminal sends is received, wherein, the first terminal is by as follows Mode determines the second terminal:The first terminal determines the first angle of the sliding trace and predetermined direction; The first terminal according between the advance first terminal for obtaining and the second terminal relative position it is relative Positional information, determines the second terminal, wherein, the second terminal and the line of the first terminal with it is described Angle between predetermined direction is the second angle, and the difference of second angle and first angle is predetermined less than first Threshold value;
The value of the first angle that the first terminal sends is received, wherein, first angle is the sliding trace With the angle of predetermined direction;According to phase between the value and the first terminal and the second terminal of first angle The second terminal is determined to the relative position information of position, wherein, the second terminal and the first terminal Line is the 3rd angle with the angle of the predetermined direction, and the difference of the 3rd angle and first angle is less than the Two predetermined thresholds.
8. a kind of file dispensing device, it is characterised in that include:
First receiver module, for the sliding trace of the file to be sent in receiving for indicating transmission first terminal;
First sending module, for according to the sliding trace, the file to be sent being sent to into second terminal.
9. device according to claim 8, it is characterised in that also include:
Acquisition module, for according to the sliding trace, the file to be sent being sent to into the second terminal Before, the relative position information of relative position between the first terminal and the second terminal is obtained.
10. device according to claim 9, it is characterised in that the acquisition module includes:
First receiving unit, for the relative position information that the reception server sends, wherein, the relative position Confidence breath is the server according to the first position information of the first terminal and the second of the second terminal Confidence breath is generated.
11. devices according to claim 9, it is characterised in that first sending module includes:
First determining unit, for determining the first angle of the sliding trace and predetermined direction;
Second determining unit, for according to the relative position information, determining the second terminal, wherein, it is described Angle between second terminal and the line and the predetermined direction of the first terminal is the second angle, described second The difference of angle and first angle is less than the first predetermined threshold;
First transmitting element, by way of forwarding server, by the file to be sent described is sent to Two terminals.
12. devices according to claim 8, it is characterised in that first sending module includes:
3rd determining unit, for determining the first angle of the sliding trace and predetermined direction;
Second transmitting element, for according to the value of first angle, by way of server is forwarded, will be described File to be sent is sent to the second terminal, wherein, first angle is used for the server according to described the The value of the relative position information of relative position and first angle, determines institute between one terminal and the second terminal Second terminal is stated, the second terminal is the 3rd folder with the line and the angle of the predetermined direction of the first terminal The difference of angle, the 3rd angle and first angle is less than the second predetermined threshold.
13. a kind of file transfer means, it is characterised in that include:
Determining module, for determining for receiving the second terminal of file to be sent, wherein, the second terminal according to The sliding trace received according to first terminal determines;
Second receiver module, for receiving the file described to be sent from the first terminal;
Second sending module, for the file described to be sent for receiving to be sent to into the second terminal.
14. devices according to claim 13, it is characterised in that the determining module includes one below:
Second receiving unit, for receiving the identification information of the second terminal that the first terminal sends, wherein, institute State first terminal and be determined as follows the second terminal:The first terminal determine the sliding trace with it is pre- Determine first angle in direction;The first terminal according to the advance first terminal and the second terminal for obtaining it Between relative position relative position information, determine the second terminal, wherein, the second terminal and described first Angle between the line of terminal and the predetermined direction is the second angle, second angle and first angle Difference be less than the first predetermined threshold;
3rd receiving unit, for receiving the value of the first angle that the first terminal sends, wherein, described first Angle is the angle of the sliding trace and predetermined direction;4th determining unit, for according to first angle The relative position information of relative position determines described second eventually between value and the first terminal and the second terminal End, wherein, the second terminal is the 3rd angle with the line and the angle of the predetermined direction of the first terminal, The difference of the 3rd angle and first angle is less than the second predetermined threshold.
CN201510677608.2A 2015-10-16 2015-10-16 File sending and transmission method and device Pending CN106603609A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510677608.2A CN106603609A (en) 2015-10-16 2015-10-16 File sending and transmission method and device
PCT/CN2016/100145 WO2017063499A1 (en) 2015-10-16 2016-09-26 File sending and transmission method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510677608.2A CN106603609A (en) 2015-10-16 2015-10-16 File sending and transmission method and device

Publications (1)

Publication Number Publication Date
CN106603609A true CN106603609A (en) 2017-04-26

Family

ID=58517791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510677608.2A Pending CN106603609A (en) 2015-10-16 2015-10-16 File sending and transmission method and device

Country Status (2)

Country Link
CN (1) CN106603609A (en)
WO (1) WO2017063499A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491148A (en) * 2018-03-12 2018-09-04 维沃移动通信有限公司 A kind of application sharing method and terminal
CN110147194A (en) * 2019-05-21 2019-08-20 网易(杭州)网络有限公司 Method for sending information and device
CN111399792A (en) * 2020-03-20 2020-07-10 维沃移动通信有限公司 A content sharing method and electronic device
WO2021023208A1 (en) * 2019-08-08 2021-02-11 华为技术有限公司 Data sharing method, graphical user interface, related device, and system
WO2021143650A1 (en) * 2020-01-13 2021-07-22 华为技术有限公司 Method for sharing data and electronic device
CN113242349A (en) * 2020-01-22 2021-08-10 华为技术有限公司 Data transmission method, electronic equipment and storage medium
CN113821480A (en) * 2021-11-25 2021-12-21 天津联想协同科技有限公司 Link mix file screening method and device, network disk and storage medium
WO2022116930A1 (en) * 2020-12-04 2022-06-09 华为技术有限公司 Content sharing method, electronic device, and storage medium
CN114979124A (en) * 2022-07-28 2022-08-30 天津联想协同科技有限公司 File sharing method and device based on AR technology, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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 (en) * 2012-06-05 2013-12-18 中国电信股份有限公司 Method and device used for data transmission between mobile terminals and mobile terminals
CN104601439A (en) * 2014-08-11 2015-05-06 腾讯科技(深圳)有限公司 File transfer method, position determination method, relative device, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
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 (en) * 2012-06-05 2013-12-18 中国电信股份有限公司 Method and device used for data transmission between mobile terminals and mobile terminals
CN104601439A (en) * 2014-08-11 2015-05-06 腾讯科技(深圳)有限公司 File transfer method, position determination method, relative device, apparatus and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491148A (en) * 2018-03-12 2018-09-04 维沃移动通信有限公司 A kind of application sharing method and terminal
CN110147194A (en) * 2019-05-21 2019-08-20 网易(杭州)网络有限公司 Method for sending information and device
WO2021023208A1 (en) * 2019-08-08 2021-02-11 华为技术有限公司 Data sharing method, graphical user interface, related device, and system
WO2021143650A1 (en) * 2020-01-13 2021-07-22 华为技术有限公司 Method for sharing data and electronic device
CN113242349A (en) * 2020-01-22 2021-08-10 华为技术有限公司 Data transmission method, electronic equipment and storage medium
CN113242349B (en) * 2020-01-22 2022-08-26 华为技术有限公司 Data transmission method, electronic equipment and storage medium
CN111399792A (en) * 2020-03-20 2020-07-10 维沃移动通信有限公司 A content sharing method and electronic device
CN111399792B (en) * 2020-03-20 2023-01-17 维沃移动通信有限公司 A content sharing method and electronic device
WO2022116930A1 (en) * 2020-12-04 2022-06-09 华为技术有限公司 Content sharing method, electronic device, and storage medium
CN113821480A (en) * 2021-11-25 2021-12-21 天津联想协同科技有限公司 Link mix file screening method and device, network disk and storage medium
CN114979124A (en) * 2022-07-28 2022-08-30 天津联想协同科技有限公司 File sharing method and device based on AR technology, terminal and storage medium

Also Published As

Publication number Publication date
WO2017063499A1 (en) 2017-04-20

Similar Documents

Publication Publication Date Title
CN106603609A (en) File sending and transmission method and device
US12395458B2 (en) Live location sharing
CN103841190B (en) Information acquisition method, information sharing method, device and system
TWI687877B (en) User matching method, message client, server and system of location-based service (LBS)
EP2532200B1 (en) Mobile station positioning assistance with local mapping data
CN103379165B (en) A kind of method, terminal, server and system for showing microblog topic
CN105008959A (en) Generating geofence via analysis of GPS fix utilization distribution
US11036922B2 (en) Route information interaction method, electronic device, and computer storage medium
CN103442100A (en) Realization mode of dynamic receiving address in logistics process
JP2015506001A (en) INTERACTION METHOD, USER TERMINAL, SERVER AND SYSTEM, COMPUTER STORAGE MEDIUM
CN105472026A (en) System, server and method realizing advertisement push
CN103874010A (en) Gesture based data exchange system of multiple mobile terminals
WO2016127855A1 (en) Connection establishment method and device
CN104601439A (en) File transfer method, position determination method, relative device, apparatus and system
CN104954406A (en) Cloud-side data sharing method and system
CN103905552A (en) File sharing method, terminal and server
CN105898841A (en) Smart terminal and method for sharing WLAN (Wireless Local Area Network) resources by terminal
CN102694748A (en) Method and system for carrying out position tracing through instant messaging tool
CN104010269A (en) Method and device for sending file in communication terminal
CN104469684B (en) Terminal positional information processing method and system
CN104883662A (en) Terminal positioning method
KR101354087B1 (en) A system for withdrawing instant message and method therefor
KR101121018B1 (en) A compatible system for transmitting content and method therefor
KR101763847B1 (en) Method and system for local area chatting
CN105574453A (en) Two-dimensional code processing method and mobile terminal

Legal Events

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

Application publication date: 20170426

RJ01 Rejection of invention patent application after publication