WO2017050219A1 - 一种跨终端划屏传输文件的方法及终端 - Google Patents
一种跨终端划屏传输文件的方法及终端 Download PDFInfo
- Publication number
- WO2017050219A1 WO2017050219A1 PCT/CN2016/099484 CN2016099484W WO2017050219A1 WO 2017050219 A1 WO2017050219 A1 WO 2017050219A1 CN 2016099484 W CN2016099484 W CN 2016099484W WO 2017050219 A1 WO2017050219 A1 WO 2017050219A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- screen
- receiving
- file
- touch screen
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
-
- 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
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Definitions
- the present invention relates to the field of wireless communication technologies, and in particular, to a method and a terminal for transmitting files across a terminal screen.
- file sharing is performed on the mobile terminal, and generally there are Bluetooth, WiFi Direct, and the like.
- the sender and receiver Bluetooth can be paired with Bluetooth beforehand or without prior pairing.
- the transmitting terminal selects a file to be sent and then selects to send it via Bluetooth. If the receiving terminal has been paired with the transmitting terminal before, the receiving terminal can be directly selected as the sending target; if the receiving terminal is not paired with the receiving terminal, the Bluetooth search is first performed, and after the receiving terminal is searched, the receiving terminal is selected as the sending target. Then, the sending terminal initiates a Bluetooth connection, and after receiving the connection request, the receiving terminal asks the user whether to receive the file. The user selects to receive, and the file is received until completion; the user chooses to reject the reception, and the sharing process is terminated.
- OPP Object Push Profile
- the sender and receiver devices For file sharing via WiFi Direct, the sender and receiver devices must make a WiFi Direct connection in advance, and then the sender selects the file, selects the recipient, and starts file transfer until the transfer is complete.
- the transmitting terminal selects a file to be sent and then selects to send it via WiFi Direct. If the receiving terminal has previously connected to the transmitting terminal WiFi Direct, the receiving terminal can be directly selected as the transmission destination; if the receiving terminal is not connected to the receiving terminal, the WiFi Direct search connection is first required. Both the transmitting terminal and the receiving terminal are in a visible state, and the transmitting terminal searches for the receiving terminal, and the transmitting terminal acts as a master device to initiate a connection with the receiving terminal. After the connection is successful, the transmitting terminal sends the selected file to the receiving terminal until the transmission is completed.
- Sharing files in a way is cumbersome to operate, and it takes several steps to achieve file sharing between the two devices, and the user experience is low.
- the technical problem to be solved by the present invention is to provide a method and a terminal for transmitting files across a terminal screen, which are used to solve the problem of cumbersome operation and low experience of transferring files between terminals in the prior art.
- the present invention provides a method for transferring a file across a terminal screen, the method comprising the following steps:
- the sending terminal identifies the screenping information, and sends a file to the receiving terminal according to the screenping information;
- the receiving terminal recognizes the screenping information, and receives the file according to the screenping information.
- the step B includes:
- Identifying the screenping information is a sending instruction
- step B1 specifically includes:
- step B2 specifically includes:
- the predetermined distance is 10 cm.
- step B3 specifically includes:
- the method specifically includes:
- step C1 specifically includes:
- the screen drawing information is recognized as a receiving instruction.
- the preset time is 2 seconds.
- the short-distance wireless transmission function of the sending terminal and the receiving terminal is further included.
- the short-range wireless transmission includes Bluetooth, WiFi Direct.
- the invention also provides a terminal, the terminal comprising:
- the screen capture information capture unit is configured to acquire and recognize the screen capture information when the user taps the screen from the sending terminal to the receiving terminal;
- the connection transmission unit is configured to: when the screen capture information is recognized as a send instruction, send a file to the receiving terminal according to the screen swipe information; and when the screen swipe information is recognized as a receive command, receive the file according to the screen swipe information.
- the screen capture information identified as the send instruction includes: from the left half or the middle of the touch screen to the right edge, or from the right half or the middle of the touch screen to the left edge, or from the upper or middle of the touch screen Draw to the lower edge, or from the lower half or middle of the touch screen to the upper edge;
- the screen capture information identified as receiving the command includes: from the left edge of the touch screen to the right half or middle, or from the right edge of the touch screen to the left Half or middle, either from the upper edge of the touch screen to the lower or middle, or from the lower edge of the touch screen to the upper or middle.
- Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
- FIG. 1 is a flowchart of a method for transmitting a file across a terminal screen according to an embodiment of the present invention
- FIG. 2 is a structural diagram of a terminal according to an embodiment of the present invention.
- the present invention provides a method and a terminal for transmitting files across a terminal screen in order to solve the problem of cumbersome operation and low experience of transferring files between terminals in the prior art.
- the present invention further details the present invention with reference to the accompanying drawings and embodiments. Description. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
- the present invention provides a method for transmitting a file across a terminal screen, first opening a short-range wireless transmission function of a transmitting terminal and a receiving terminal, the short-range wireless transmission including Bluetooth, WiFi Direct; and then when the user swipes from the transmitting terminal to When receiving the terminal, acquiring the screenping information; finally, the transmitting terminal identifies the screenping information, and sends the text to the receiving terminal according to the screening information.
- the receiving terminal recognizes the screenping information and receives the file according to the screenping information.
- a method for transmitting a file across a terminal screen according to this embodiment is as shown in FIG. 1 , and includes the following steps:
- step s101 the short-range wireless transmission function of the transmitting terminal and the receiving terminal is turned on.
- the Bluetooth function of transmitting the mobile terminal A and receiving the mobile terminal B is turned on. Once the Bluetooth on A or B has been turned on and subsequent file transfers are performed, this step can be omitted.
- Step s102 When the user taps the screen from the sending terminal to the receiving terminal, the screenping information is acquired.
- the transmitting mobile terminal A is horizontally rightward to the right edge from the middle of the touch screen
- the receiving mobile terminal B is horizontally rightward from the left edge of the touch screen to the center of the touch screen.
- the transmitting terminal recognizes the screenping information as a sending instruction. If it is swiped from the left or middle of the touch screen of the transmitting terminal to the right edge, or from the right or middle of the touch screen of the transmitting terminal to the left edge, or from the upper or middle of the touch screen of the transmitting terminal to the lower edge, or from The lower half or the middle of the touch screen of the transmitting terminal is swiped to the upper edge, and the swipe information is identified as a sending instruction, and other gesture actions may be defined as a sending instruction. In this embodiment, since the transmitting mobile terminal A is horizontally rightward to the right edge from the middle of the touch screen, the transmitting mobile terminal A recognizes the screenping information as a transmission instruction.
- the transmitting terminal sends a broadcast connection request.
- the process first initiates a short-range wireless transmission search, then sorts the searched terminals according to the distance, selects the terminal within the preset distance as the to-be-sent terminal, and finally sends a broadcast connection request to the to-be-sent terminal.
- the sending mobile terminal A receives the sending instruction, initiates a Bluetooth search, searches for a Bluetooth device that is visible in the valid range, and each of the searched Bluetooth devices includes a Bluetooth address, a Bluetooth device name, and a device that initiates the search. Distance and other information. Sort and record the device list by distance from near to far. Since the receiving mobile terminal B is next to the transmitting mobile terminal A, the distance between the two mobile devices is very close.
- the transmitting mobile terminal A broadcasts a connection request to the Bluetooth device within a range of 10 cm to indicate that there is a file transmission request, and carries the Bluetooth address of the mobile terminal A in this broadcast.
- the receiving terminal recognizes the screenping information as a receiving instruction. If it is drawn from the left edge of the receiving terminal touch screen to the right half or the middle, or from the right edge of the receiving terminal touch screen to the left half or the middle, or from the upper edge of the receiving terminal touch screen to the lower half or the middle, or from When the lower edge of the receiving terminal touch screen is drawn to the upper part or the middle part, the screen drawing information is recognized as a receiving instruction, and other gesture actions may also be defined as receiving instructions. In this embodiment, since the receiving mobile terminal B is horizontally rightward from the left edge of the touch screen to the center of the touch screen, the receiving mobile terminal B recognizes the screenping information as a receiving instruction, indicating that a file sending request is about to come.
- step s106 the receiving terminal detects whether a broadcast connection request is received within a preset time. If yes, the process goes to step s107, otherwise it ends.
- the receiving mobile terminal B sets a timeout of 2 seconds to listen for a file receiving request. In the set timeout period, if a broadcast connection request from the mobile terminal A is received, the process proceeds to step s107. Otherwise, no action is taken and the process is terminated.
- step s107 the receiving terminal feeds back the broadcast connection reply.
- the receiving mobile terminal B reads the Bluetooth address in the broadcast, and feeds back the acknowledgement reception to the address (that is, the transmitting mobile terminal A).
- Step s108 After receiving the broadcast connection reply, the transmitting terminal determines whether the terminal corresponding to the received broadcast connection reply is included in the to-be-sent terminal, and if yes, proceeds to step s109, otherwise ends.
- the sending mobile terminal A After receiving the request confirmation reply sent by the mobile terminal B, the sending mobile terminal A reads its Bluetooth address, and then receives the received request confirmation reply corresponding to the Bluetooth address of the device and the Bluetooth that previously selected to send the broadcast request. The address is compared. If the Bluetooth address of the device corresponding to the received request confirmation reply belongs to one of the Bluetooth addresses that previously selected to send the broadcast request, indicating that the authentication is successful, the sending mobile terminal A has confirmed the detailed information of the receiving mobile terminal, such as Bluetooth.
- step s109 if the Bluetooth address of the device corresponding to the received request confirmation reply is not in the Bluetooth address that previously selected to send the broadcast request, it indicates that an invalid confirmation has been received, and the confirmation is ignored, and the process is terminated.
- step s109 a file is sent to the terminal.
- the sending mobile terminal A initiates a Bluetooth connection with the receiving mobile terminal B, and sends the previously selected file to be sent to the receiving.
- Mobile terminal B If everything is ok, no I/O error occurs, wait for the file transfer to complete, and the process ends.
- This embodiment is similar to Embodiment 1, and is different from Embodiment 1 in that this embodiment uses the WiFi Direct technology to transmit and receive files.
- the sending mobile device captures the sending instruction, it initiates a WiFi Direct search as the primary device to obtain a search list of the visible range. Then broadcast a connection request.
- the receiving mobile device recognizes that after receiving the command, if the connection request is received, as a slave device, a reply is sent to the sending mobile device.
- the sending mobile device compares the address that received the acknowledgment reply with the previously broadcasted address. If the comparison is successful, the authentication succeeds.
- the sending mobile device initiates a file transfer to the receiving mobile device until it is completed.
- the structure of a terminal in this embodiment is as shown in FIG. 2.
- the terminal includes a screen capture information capture unit and a connection transmission unit, wherein the screen capture information capture unit is connected to the connection transmission unit.
- the screen capture information capture unit is configured to acquire and recognize the screen capture information when the user taps the screen from the sending terminal to the receiving terminal;
- the connection transmission unit is configured to: when the screen capture information is recognized as a send instruction, according to the screen shot The information is sent to the receiving terminal; when the screenping information is recognized as the receiving instruction, the file is received according to the screenping information.
- the screen capture information identified as the send command includes: swiping from the left or middle of the touch screen to the right edge, or from the right or middle of the touch screen to the left edge, or from the upper or middle of the touch screen to the lower edge Or from the lower half or the middle of the touch screen to the upper edge; the screen capture information recognized as receiving the command includes: from the left edge of the touch screen to the right half or the middle, or from the right edge of the touch screen to the left half or the middle Or from the upper edge of the touch screen to the lower half or the middle, or from the lower edge of the touch screen to the upper or middle.
- the embodiment of the present invention uses a file to share files between two terminals, including a transmitting terminal and a receiving terminal.
- the screen capture information capture unit of the transmitting terminal captures the user's screen capture operation, and recognizes the screen capture operation as a send command.
- the connection transmission unit of the transmitting terminal processes the transmission instruction, initiates and connects the connection of the terminal; and after receiving the feedback of the confirmation, immediately sends the previously selected file to Receiving terminal.
- the screen capture information capture unit of the receiving terminal captures the user's screen capture operation, and recognizes the screen capture operation as a receive command.
- the connection transmission unit of the receiving terminal processes the reception command to see whether the connection request of the transmission terminal is received at this time, and if the connection request is received, the feedback of the confirmation is sent to the transmission terminal.
- the screen capture information capture unit of this embodiment is implemented by a terminal touch screen.
- the connection transmission unit can be implemented by using Bluetooth technology or by using WiFi Direct technology, but is not limited to these two types of wireless local area network technologies, and any short-range wireless transmission technology can be used as the connection transmission unit of the present invention.
- the method for transmitting a file across a terminal screen has the following beneficial effects: when two terminals are placed close together, the screen is swiped from one terminal A to another terminal B. When the screen is selected, the selected file on the terminal A is shared with the terminal B, which can significantly simplify the operation process of the file sharing.
- the user needs only to screen from the sending terminal to the receiving terminal, and does not need to care about what technology is used internally for file sharing, and the user operation is intuitive and simple, and the user experience is improved.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种跨终端划屏传输文件的方法,所述方法包括以下步骤:A、当用户从发送终端划屏至接收终端时,获取划屏信息;B、所述发送终端识别划屏信息,并根据所述划屏信息向所述接收终端发送文件;C、所述接收终端识别划屏信息,并根据所述划屏信息接收文件。本发明还公开了一种终端。本发明当将两部终端近距离放在一起时,从一个终端A的屏幕划动到另一个终端B的屏幕时,终端A上选择好的文件即分享给终端B,可以显著简化文件分享的操作流程。用户需要的操作仅仅是从发送终端划屏到接收终端,不需要关心内部采用何种技术进行文件分享,用户操作直观简便,提高了用户体验度。
Description
本发明涉及无线通信技术领域,特别是涉及一种跨终端划屏传输文件的方法及终端。
目前在手机终端上进行文件本地分享,一般有蓝牙、WiFi Direct等方式。
通过蓝牙进行文件分享,一般使用OPP(Object Push Profile,对象推送协议)。通过OPP技术,发送方和接收方蓝牙可以事先蓝牙配对,也可不事先配对。在通过蓝牙分享时,发送终端选择好待发送的文件后,选择通过蓝牙发送。假如接收终端之前已和发送终端配对好,可以直接选择接收终端作为发送目标;假如接收终端未和接收终端配对好,首先进行蓝牙搜索,搜索到接收终端后,选择接收终端作为发送目标。然后发送终端发起蓝牙连接,接收终端收到连接请求后,询问用户是否接收此文件。用户选择接收,进行文件接收直至完成;用户选择拒绝接收,分享流程终止。
通过WiFi Direct进行文件分享,发送方和接收方设备必须事先进行WiFi Direct连接,然后发送方选择文件,选择接收方,开始文件传输,直至传输完成。在通过WiFi Direct分享时,发送终端选择好待发送的文件后,选择通过WiFi Direct发送。假如接收终端之前已和发送终端WiFi Direct连接上,可以直接选择接收终端作为发送目标;假如接收终端未和接收终端连接上,首先需要进行WiFi Direct搜索连接。发送终端和接收终端均处于可见状态,发送终端搜索到接收终端,发送终端作为主设备发起与接收终端的连接,连接成功后,发送终端将选择好的文件发送给接收终端,直至传输完成。
但是,发明人在实现本发明时发现使用常规的蓝牙或者WiFi Direct
方式分享文件,操作起来比较麻烦,需要好几个步骤才能实现两台设备之间的文件分享,用户体验度低。
发明内容
本发明要解决的技术问题是提供一种跨终端划屏传输文件的方法及终端,用以解决现有技术用户在终端间传输文件操作繁琐、体验度低的问题。
为解决上述技术问题,本发明提供一种跨终端划屏传输文件的方法,所述方法包括以下步骤:
A、当用户从发送终端划屏至接收终端时,获取划屏信息;
B、所述发送终端识别划屏信息,并根据所述划屏信息向所述接收终端发送文件;
C、所述接收终端识别划屏信息,并根据所述划屏信息接收文件。
可选地,所述步骤B包括:
B1、识别划屏信息为发送指令;
B2、发送广播连接请求;
B3、收到广播连接答复后,向确认的接收终端发送文件。
可选地,所述步骤B1具体包括:
如果从发送终端触摸屏的左半部或中部划至右边缘、或者从发送终端触摸屏的右半部或中部划至左边缘、或者从发送终端触摸屏的上半部或中部划至下边缘、或者从发送终端触摸屏的下半部或中部划至上边缘,则识别所述划屏信息为发送指令。
可选地,所述步骤B2具体包括:
B21、发起短距离无线传输搜索;
B22、按照距离远近对搜索到的终端进行排序;
B23、选择预先设定距离内的终端为待发送终端;
B24、向所述待发送终端发送广播连接请求。
可选地,所述预先设定距离为10厘米。
可选地,所述步骤B3具体包括:
B31、接收广播连接答复;
B32、判断接收到的广播连接答复对应的终端是否包含在所述待发送终端内,如果是,则向所述终端发送文件,否则结束。
可选地,在所述步骤C中,具体包括:
C1、识别划屏信息为接收指令;
C2、检测在预先设定的时间内是否收到广播连接请求,如果收到,则反馈广播连接答复,否则结束。
可选地,所述步骤C1具体包括:
如果从接收终端触摸屏的左边缘划至右半部或中部、或者从接收终端触摸屏的右边缘划至左半部或中部、或者从接收终端触摸屏的上边缘划至下半部或中部、或者从接收终端触摸屏的下边缘划至上半部或中部,则识别所述划屏信息为接收指令。
可选地,所述预先设定的时间为2秒。
可选地,在所述步骤A之前,还包括打开所述发送终端和接收终端的短距离无线传输功能。
可选地,所述短距离无线传输包括蓝牙、WiFi Direct。
本发明还提供一种终端,所述终端包括:
划屏信息捕获单元,设置为当用户从发送终端划屏至接收终端时,获取并识别划屏信息;
连接传输单元,设置为当划屏信息识别为发送指令时,根据所述划屏信息向接收终端发送文件;当划屏信息识别为接收指令时,根据所述划屏信息接收文件。
可选地,识别为发送指令的划屏信息包括:从触摸屏的左半部或中部划至右边缘、或者从触摸屏的右半部或中部划至左边缘、或者从触摸屏的上半部或中部划至下边缘、或者从触摸屏的下半部或中部划至上边缘;识别为接收指令的划屏信息包括:从触摸屏的左边缘划至右半部或中部、或者从触摸屏的右边缘划至左半部或中部、或者从触摸屏的上边缘划至下半部或中部、或者从触摸屏的下边缘划至上半部或中部。
本发明另一实施例提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述实施例中的方法。
本发明有益效果如下:
本发明当将两部终端近距离放在一起时,从一个终端A的屏幕划动到另一个终端B的屏幕时,终端A上选择好的文件即分享给终端B,可以显著简化文件分享的操作流程。用户需要的操作仅仅是从发送终端划屏到接收终端,不需要关心内部采用何种技术进行文件分享,用户操作直观简便,提高了用户体验度。
图1是本发明实施例的一种跨终端划屏传输文件的方法的流程图;
图2是本发明实施例的一种终端的结构图。
为了解决现有技术用户在终端间传输文件操作繁琐、体验度低的问题,本发明提供了一种跨终端划屏传输文件的方法及终端,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。
本发明提供了一种跨终端划屏传输文件的方法,首先打开发送终端和接收终端的短距离无线传输功能,所述短距离无线传输包括蓝牙、WiFi Direct;然后当用户从发送终端划屏至接收终端时,获取划屏信息;最后所述发送终端识别划屏信息,并根据所述划屏信息向所述接收终端发送文
件,所述接收终端识别划屏信息,并根据所述划屏信息接收文件。
实施例1
本实施例的一种跨终端划屏传输文件的方法如图1所示,包括以下步骤:
步骤s101,打开发送终端和接收终端的短距离无线传输功能。本实施例中,打开发送手机终端A和接收手机终端B的蓝牙功能。一旦A或者B上的蓝牙已经打开,后续再进行文件传输,可以省略此步骤。
步骤s102,当用户从发送终端划屏至接收终端时,获取划屏信息。本实施例中,发送手机终端A上从触摸屏中部水平向右划屏到右边缘,接收手机终端B上从触摸屏左边缘水平向右划屏到触摸屏中央。
步骤s103,发送终端识别划屏信息为发送指令。如果从发送终端触摸屏的左半部或中部划至右边缘、或者从发送终端触摸屏的右半部或中部划至左边缘、或者从发送终端触摸屏的上半部或中部划至下边缘、或者从发送终端触摸屏的下半部或中部划至上边缘,则识别所述划屏信息为发送指令,也可以定义其他手势动作为发送指令。本实施例中,由于发送手机终端A上从触摸屏中部水平向右划屏到右边缘,所以发送手机终端A将此划屏信息识别为发送指令。
步骤s104,发送终端发送广播连接请求。该过程首先发起短距离无线传输搜索,然后按照距离远近对搜索到的终端进行排序,再选择预先设定距离内的终端为待发送终端,最后向所述待发送终端发送广播连接请求。本实施例中,发送手机终端A接收到发送指令,发起蓝牙搜索,搜索有效范围内可见的蓝牙设备,每一个搜索到的蓝牙设备,均包含蓝牙地址、蓝牙设备名称、和发起搜索的设备的距离等信息。按照距离从近到远,将设备列表进行排序并记录。由于接收手机终端B紧挨着发送手机终端A,因此,这两个手机设备的距离是非常近的。发送手机终端A向距离10厘米范围内的蓝牙设备广播一个连接请求,以表示有文件发送请求,在这个广播中携带发送手机终端A的蓝牙地址。
步骤s105,接收终端识别划屏信息为接收指令。如果从接收终端触摸屏的左边缘划至右半部或中部、或者从接收终端触摸屏的右边缘划至左半部或中部、或者从接收终端触摸屏的上边缘划至下半部或中部、或者从接收终端触摸屏的下边缘划至上半部或中部,则识别所述划屏信息为接收指令,也可以定义其他手势动作为接收指令。本实施例中,由于接收手机终端B上从触摸屏左边缘水平向右划屏到触摸屏中央,所以接收手机终端B将此划屏信息识别为接收指令,表示可能即将有文件发送请求来临。
步骤s106,接收终端检测在预先设定的时间内是否收到广播连接请求,如果收到,则转步骤s107,否则结束。本实施例中,接收手机终端B设置一个2秒的超时,侦听文件接收请求。在设置的超时时间内,假如收到发送手机终端A发来的广播连接请求,则转步骤s107。否则不做任何操作,流程终止。
步骤s107,接收终端反馈广播连接答复。本实施例中,接收手机终端B读取广播中的蓝牙地址,给此地址(也即发送手机终端A)反馈确认接收。
步骤s108,发送终端收到广播连接答复后,判断接收到的广播连接答复对应的终端是否包含在所述待发送终端内,如果是,则转步骤s109,否则结束。本实施例中,发送手机终端A收到接收手机终端B发来的请求确认答复后,读取其蓝牙地址,然后将接收到的请求确认答复对应的设备蓝牙地址和之前选择发送广播请求的蓝牙地址进行比较,若接收到的请求确认答复对应的设备蓝牙地址属于之前选择发送广播请求的蓝牙地址之一,表示鉴权成功,发送手机终端A此时已经确认接收手机终端的详细信息,如蓝牙地址,则转步骤s109;若将接收到的请求确认答复对应的设备蓝牙地址不在之前选择发送广播请求的蓝牙地址中,表示收到了无效的确认,不理会这个确认,流程终止。
步骤s109,向所述终端发送文件。本实施例中,发送手机终端A发起与接收手机终端B的蓝牙连接,将之前选择好待发送的文件发送到接收
手机终端B中。若一切正常,未发生I/O错误,等待文件传输完毕,流程结束。
实施例2
本实施例与实施例1类似,与实施例1的不同之处在于,本实施例采用WiFi Direct技术发送和接收文件。发送手机设备捕获到发送指令后,作为主设备发起WiFi Direct搜索,获取可见范围的搜索列表。然后广播一个连接请求。接收手机设备捕获到划屏事件,识别为接收指令后,假如收到上述连接请求,作为从设备,发送一个答复给发送手机设备。发送手机设备比较接收到确认答复的地址和之前广播的地址,假如比较成功,鉴权成功。发送手机设备向接收手机设备发起文件传输,直至完成。
实施例3
本实施例的一种终端的结构如图2所示,该终端包括划屏信息捕获单元和连接传输单元,其中划屏信息捕获单元与连接传输单元连接。所述划屏信息捕获单元设置为当用户从发送终端划屏至接收终端时,获取并识别划屏信息;所述连接传输单元设置为当划屏信息识别为发送指令时,根据所述划屏信息向接收终端发送文件;当划屏信息识别为接收指令时,根据所述划屏信息接收文件。识别为发送指令的划屏信息包括:从触摸屏的左半部或中部划至右边缘、或者从触摸屏的右半部或中部划至左边缘、或者从触摸屏的上半部或中部划至下边缘、或者从触摸屏的下半部或中部划至上边缘;识别为接收指令的划屏信息包括:从触摸屏的左边缘划至右半部或中部、或者从触摸屏的右边缘划至左半部或中部、或者从触摸屏的上边缘划至下半部或中部、或者从触摸屏的下边缘划至上半部或中部。
如图2所示,本发明实施例用在两台终端之间分享文件,包括发送终端和接收终端。
发送终端的划屏信息捕获单元捕获用户的划屏操作,将此划屏操作识别为发送指令。发送终端的连接传输单元对发送指令进行处理,发起和接收终端的连接;而在收到确认的反馈后,即刻将之前选择好的文件发送给
接收终端。
接收终端的划屏信息捕获单元捕获用户的划屏操作,将此划屏操作识别为接收指令。接收终端的连接传输单元对接收指令进行处理,看此时是否收到了发送终端的连接请求,若收到连接请求,向发送终端发送确认的反馈。
本实施例的划屏信息捕获单元由终端触摸屏实现。连接传输单元可以采用蓝牙技术实现,也可以采用WiFi Direct技术实现,但不局限于这两种无线局域网技术,任何短距离无线传输技术,都可以作为本发明的连接传输单元。
本发明当将两部终端近距离放在一起时,从一个终端A的屏幕划动到另一个终端B的屏幕时,终端A上选择好的文件即分享给终端B,可以显著简化文件分享的操作流程。用户需要的操作仅仅是从发送终端划屏到接收终端,不需要关心内部采用何种技术进行文件分享,用户操作直观简便,提高了用户体验度。
尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。
如上所述,本发明实施例提供的一种跨终端划屏传输文件的方法具有以下有益效果:当将两部终端近距离放在一起时,从一个终端A的屏幕划动到另一个终端B的屏幕时,终端A上选择好的文件即分享给终端B,可以显著简化文件分享的操作流程。用户需要的操作仅仅是从发送终端划屏到接收终端,不需要关心内部采用何种技术进行文件分享,用户操作直观简便,提高了用户体验度。
Claims (13)
- 一种跨终端划屏传输文件的方法,所述方法包括以下步骤:A、当用户从发送终端划屏至接收终端时,获取划屏信息;B、所述发送终端识别划屏信息,并根据所述划屏信息向所述接收终端发送文件;C、所述接收终端识别划屏信息,并根据所述划屏信息接收文件。
- 如权利要求1所述的跨终端划屏传输文件的方法,其中,所述步骤B包括:B1、识别划屏信息为发送指令;B2、发送广播连接请求;B3、收到广播连接答复后,向确认的接收终端发送文件。
- 如权利要求2所述的跨终端划屏传输文件的方法,其中,所述步骤B1具体包括:如果从发送终端触摸屏的左半部或中部划至右边缘、或者从发送终端触摸屏的右半部或中部划至左边缘、或者从发送终端触摸屏的上半部或中部划至下边缘、或者从发送终端触摸屏的下半部或中部划至上边缘,则识别所述划屏信息为发送指令。
- 如权利要求2所述的跨终端划屏传输文件的方法,其中,所述步骤B2具体包括:B21、发起短距离无线传输搜索;B22、按照距离远近对搜索到的终端进行排序;B23、选择预先设定距离内的终端为待发送终端;B24、向所述待发送终端发送广播连接请求。
- 如权利要求4所述的跨终端划屏传输文件的方法,其中,所述预先设定距离为10厘米。
- 如权利要求4所述的跨终端划屏传输文件的方法,其中,所述 步骤B3具体包括:B31、接收广播连接答复;B32、判断接收到的广播连接答复对应的终端是否包含在所述待发送终端内,如果是,则向所述终端发送文件,否则结束。
- 如权利要求1所述的跨终端划屏传输文件的方法,其中,在所述步骤C中,具体包括:C1、识别划屏信息为接收指令;C2、检测在预先设定的时间内是否收到广播连接请求,如果收到,则反馈广播连接答复,否则结束。
- 如权利要求7所述的跨终端划屏传输文件的方法,其中,所述步骤C1具体包括:如果从接收终端触摸屏的左边缘划至右半部或中部、或者从接收终端触摸屏的右边缘划至左半部或中部、或者从接收终端触摸屏的上边缘划至下半部或中部、或者从接收终端触摸屏的下边缘划至上半部或中部,则识别所述划屏信息为接收指令。
- 如权利要求7所述的跨终端划屏传输文件的方法,其中,所述预先设定的时间为2秒。
- 如权利要求1至9任一项所述的跨终端划屏传输文件的方法,其中,在所述步骤A之前,还包括打开所述发送终端和接收终端的短距离无线传输功能。
- 如权利要求10所述的跨终端划屏传输文件的方法,其中,所述短距离无线传输包括蓝牙、WiFi Direct。
- 一种终端,所述终端包括:划屏信息捕获单元,设置为当用户从发送终端划屏至接收终端时,获取并识别划屏信息;连接传输单元,设置为当划屏信息识别为发送指令时,根据所述 划屏信息向接收终端发送文件;当划屏信息识别为接收指令时,根据所述划屏信息接收文件。
- 如权利要求12所述的终端,其中,识别为发送指令的划屏信息包括:从触摸屏的左半部或中部划至右边缘、或者从触摸屏的右半部或中部划至左边缘、或者从触摸屏的上半部或中部划至下边缘、或者从触摸屏的下半部或中部划至上边缘;识别为接收指令的划屏信息包括:从触摸屏的左边缘划至右半部或中部、或者从触摸屏的右边缘划至左半部或中部、或者从触摸屏的上边缘划至下半部或中部、或者从触摸屏的下边缘划至上半部或中部。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510603633.6A CN106550315A (zh) | 2015-09-21 | 2015-09-21 | 一种跨终端划屏传输文件的方法及终端 |
CN201510603633.6 | 2015-09-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017050219A1 true WO2017050219A1 (zh) | 2017-03-30 |
Family
ID=58365321
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/099484 WO2017050219A1 (zh) | 2015-09-21 | 2016-09-20 | 一种跨终端划屏传输文件的方法及终端 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106550315A (zh) |
WO (1) | WO2017050219A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114501119B (zh) * | 2020-10-27 | 2023-04-07 | Oppo广东移动通信有限公司 | 互动显示方法、装置、电子设备、系统及存储介质 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101945499A (zh) * | 2010-09-06 | 2011-01-12 | 深圳市同洲电子股份有限公司 | 文件传输的方法、终端及系统 |
CN102707880A (zh) * | 2012-04-24 | 2012-10-03 | 华为终端有限公司 | 文件传输的方法及终端 |
CN102843280A (zh) * | 2011-06-24 | 2012-12-26 | 联想(北京)有限公司 | 通信设备的通信方法、系统及通信设备 |
US20130090065A1 (en) * | 2011-09-30 | 2013-04-11 | Samsung Electronics Co., Ltd. | Method of operating gesture based communication channel and portable terminal system for supporting the same |
US20130122814A1 (en) * | 2008-04-21 | 2013-05-16 | Microsoft Corporation | Gesturing to select and configure device communication |
CN103455271A (zh) * | 2013-01-26 | 2013-12-18 | 曾昭兴 | 文件传输方法及文件传输系统 |
CN103874010A (zh) * | 2012-12-12 | 2014-06-18 | 方正国际软件(北京)有限公司 | 一种基于手势的多移动终端数据交换系统 |
-
2015
- 2015-09-21 CN CN201510603633.6A patent/CN106550315A/zh active Pending
-
2016
- 2016-09-20 WO PCT/CN2016/099484 patent/WO2017050219A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130122814A1 (en) * | 2008-04-21 | 2013-05-16 | Microsoft Corporation | Gesturing to select and configure device communication |
CN101945499A (zh) * | 2010-09-06 | 2011-01-12 | 深圳市同洲电子股份有限公司 | 文件传输的方法、终端及系统 |
CN102843280A (zh) * | 2011-06-24 | 2012-12-26 | 联想(北京)有限公司 | 通信设备的通信方法、系统及通信设备 |
US20130090065A1 (en) * | 2011-09-30 | 2013-04-11 | Samsung Electronics Co., Ltd. | Method of operating gesture based communication channel and portable terminal system for supporting the same |
CN102707880A (zh) * | 2012-04-24 | 2012-10-03 | 华为终端有限公司 | 文件传输的方法及终端 |
CN103874010A (zh) * | 2012-12-12 | 2014-06-18 | 方正国际软件(北京)有限公司 | 一种基于手势的多移动终端数据交换系统 |
CN103455271A (zh) * | 2013-01-26 | 2013-12-18 | 曾昭兴 | 文件传输方法及文件传输系统 |
Also Published As
Publication number | Publication date |
---|---|
CN106550315A (zh) | 2017-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108419226B (zh) | 一种蓝牙设备之间连接的方法及蓝牙设备 | |
EP2696643B1 (en) | Apparatus and method of connecting service, according to user intention | |
KR102037256B1 (ko) | 사용자 의향을 반영한 서비스 연결 장치 및 방법 | |
US9479635B2 (en) | Apparatus and method for motion detecting in mobile communication terminal | |
US20170070916A1 (en) | Electronic device and method for operating an electronic device | |
US20140308898A1 (en) | Communication control method and electronic device implementing the same | |
TWI512489B (zh) | Multi-screen interactive method, center equipment, terminal equipment and systems | |
WO2013104153A1 (zh) | 一种蓝牙设备快速配对的方法及蓝牙设备 | |
JP6459965B2 (ja) | 無線通信装置及び通信制御装置 | |
CN106713418B (zh) | 重置结果确认方法、装置、服务器和移动终端 | |
WO2015070580A1 (zh) | 基于近场通信建立无线局域网的方法及装置 | |
WO2014023133A1 (zh) | 文件传输的方法及触摸屏终端 | |
CN104348524A (zh) | 一种绑定方法、中心设备以及外围设备 | |
CN108476460B (zh) | 建立热点连接的方法和终端设备 | |
CN104918209B (zh) | 移动终端及其通信方法 | |
WO2014101477A1 (zh) | 近场通讯方法与设备 | |
CN103326749B (zh) | 一种nfc射频通信的控制方法、装置及系统 | |
WO2011015003A1 (zh) | 一种共享电话号码信息的方法及装置 | |
WO2015098162A1 (ja) | 車載装置及び車載装置の制御方法 | |
WO2017050219A1 (zh) | 一种跨终端划屏传输文件的方法及终端 | |
CN105872945A (zh) | 无线显示连接方法及系统、发送端设备与接收端设备 | |
JP6246353B2 (ja) | 通信装置及び通信制御方法 | |
US11146935B2 (en) | Short range wireless communication device and method | |
CN108616851B (zh) | 一种蓝牙连接方法及蓝牙设备 | |
CN105516909A (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: 16848100 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: 16848100 Country of ref document: EP Kind code of ref document: A1 |