WO2013159700A1 - 文件传输的方法及终端 - Google Patents

文件传输的方法及终端 Download PDF

Info

Publication number
WO2013159700A1
WO2013159700A1 PCT/CN2013/074637 CN2013074637W WO2013159700A1 WO 2013159700 A1 WO2013159700 A1 WO 2013159700A1 CN 2013074637 W CN2013074637 W CN 2013074637W WO 2013159700 A1 WO2013159700 A1 WO 2013159700A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
terminal
action
touch screen
receiving terminal
Prior art date
Application number
PCT/CN2013/074637
Other languages
English (en)
French (fr)
Inventor
陈磊
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to EP13781119.6A priority Critical patent/EP2843523B1/en
Publication of WO2013159700A1 publication Critical patent/WO2013159700A1/zh
Priority to US14/523,753 priority patent/US20150046837A1/en

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; CALCULATING OR 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
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/0035User-machine interface; Control console
    • H04N1/00352Input means
    • H04N1/00381Input by recognition or interpretation of visible user gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/0035User-machine interface; Control console
    • H04N1/00405Output means
    • H04N1/00408Display of information to the user, e.g. menus
    • H04N1/00411Display of information to the user, e.g. menus the display also being used for user input, e.g. touch screen

Definitions

  • the present invention relates to the field of data transmission, and in particular, to a file transmission method and terminal. Background technique
  • the user when using a terminal for file transmission, the user needs to select a file to be transmitted at the transmitting end of the file transmission, and select a transmission mode to be used and a receiving end of the received file.
  • the receiving end receives the file
  • the user needs to receive the file. Select whether to receive this file.
  • each file needs to be selected by the user for transmission.
  • the user needs to select whether to receive it.
  • the operation steps are cumbersome. Especially when the number of files to be transmitted is large, the transmission efficiency is low. Summary of the invention
  • the embodiment of the invention provides a file transmission method and a terminal.
  • a method of file transfer is provided, the method comprising:
  • the file sending terminal detects the touch screen action of the user
  • the touch screen action After confirming that the touch screen action is a preset file transfer action, confirming the file to be transmitted according to the touch screen action, and scanning a file receiving terminal that establishes a connection with the file sending terminal; wherein, the preset file The transfer action has a corresponding file transfer instruction;
  • the file transmitting terminal performs a corresponding transmission operation according to the file transfer instruction.
  • a file sending terminal is further provided, where the file sending terminal includes:
  • a detecting module configured to detect a touch screen action of the user
  • a confirmation module configured to confirm a file to be transmitted according to the detected touch screen action after confirming that the touch screen action detected by the detecting module is a preset file transfer action
  • a scan module configured to scan a file receiving terminal that establishes a connection with the terminal after confirming that the touch screen action detected by the detecting module is a preset file transfer operation; wherein the preset file transfer action has a corresponding File transfer instruction;
  • a transmission module configured to perform a corresponding transmission operation according to the file transfer instruction.
  • a method for file transfer comprising:
  • the file receiving terminal receives the file transmission instruction sent by the file sending terminal with which the connection is established, and detects the touch screen action of the user within a preset time;
  • a file receiving terminal is further provided, where the file receiving terminal includes:
  • a receiving module configured to receive a file transmission instruction sent by a file sending terminal that establishes a connection with the detecting module, configured to detect a touch screen action of the user within a preset time
  • a returning module configured to return, to the file sending terminal, the confirmation information after the detecting module detects the touch action of the user
  • a processing module configured to receive the file transmitted by the file sending terminal.
  • the file transmitting terminal After the file transmitting terminal confirms that the touch screen action of the user is detected as a preset file transfer action, automatically scans the file receiving terminal connected thereto, and performs a corresponding transfer operation according to the file transfer instruction of the preset file transfer action.
  • the file transfer is realized according to the detected touch screen action, and the transfer mode selected for use each time the file is transferred is not required, and the fast transfer of the file is completed by simply touching the screen.
  • FIG. 1 is a flowchart of a method for file transmission according to Embodiment 1 of the present invention.
  • FIG. 3 is a flowchart of a method for file transmission according to Embodiment 2 of the present invention.
  • FIG. 4 is a flowchart of a method for file transmission according to Embodiment 3 of the present invention
  • 5 is a schematic structural diagram of a file sending terminal according to Embodiment 4 of the present invention
  • FIG. 6 is a schematic structural diagram of a transmission module according to Embodiment 4 of the present invention
  • FIG. 7 is a schematic structural diagram of a transmitting unit according to Embodiment 4 of the present invention.
  • FIG. 8 is a schematic structural diagram of a transmission unit according to Embodiment 4 of the present invention.
  • FIG. 9 is a schematic structural diagram of a file receiving terminal according to Embodiment 5 of the present invention.
  • FIG. 10 is a schematic structural diagram of a system for file transmission according to Embodiment 6 of the present invention. detailed description
  • This embodiment provides a method for file transmission.
  • the execution body of the method may be a file sending terminal. See FIG. 1.
  • the method is as follows:
  • the file transmitting terminal detects the user's touch screen action.
  • the touch screen action is a preset file transfer action
  • confirming the file to be transmitted according to the touch screen action and scanning a file receiving terminal that establishes a connection with the file sending terminal, wherein the preset file transfer action has a corresponding file Transfer instructions.
  • the file transmitting terminal performs a corresponding transfer operation according to the file transfer instruction.
  • the file transmitting terminal performs corresponding transmission operations according to the file transfer instruction, including:
  • the confirmation message returned by the file receiving terminal is received, and the file to be transmitted is transmitted to the file receiving terminal that returns the confirmation information.
  • the file sending command is sent to the file receiving terminal, which specifically includes:
  • the terminal returns a confirmation message.
  • sending a corresponding file transmission instruction to the file receiving terminal specifically includes:
  • the file information includes at least one of a file name, a format, a type, and a size.
  • determining the type of the instruction according to the detected touch screen action includes:
  • the detected touch screen action is a single-point touch screen action, and the single-point touch screen action is a preset file transfer action, it is determined that the command type is a copy file; or
  • the command type is a display file.
  • the preset file transfer action is formed such that the track corresponding to the action is a track that slides over the edge of the file sending terminal, or a track of a preset shape.
  • the instruction type includes a copy file or a display file, and the file to be transmitted is transmitted to the file receiving terminal that returns the confirmation information, and specifically includes:
  • the file to be transferred is transmitted to the file receiving terminal that returns the confirmation information, so that the file receiving terminal receives and stores the file to be transmitted;
  • the file to be transmitted and the display information are transmitted to the file receiving terminal that returns the confirmation information, so that the file receiving terminal displays the file to be transmitted according to the display information.
  • the file to be transmitted and the display information are transmitted to the file receiving terminal that returns the confirmation information, so that the file receiving terminal displays the file to be transmitted according to the displayed information, and further includes:
  • the display information is adjusted according to the subsequent touch screen action, and the adjusted display information is sent to the file receiving terminal, so that the file receiving terminal adjusts the displayed file to be transmitted according to the adjusted display information.
  • the embodiment further provides a file transmission method, and the execution body of the method may be a file receiving terminal.
  • the method is specifically as follows:
  • the file receiving terminal receives a file transmission instruction sent by the file sending terminal that establishes a connection with the file receiving terminal, and detects a touch screen action of the user within a preset time;
  • file transfer instruction carries the instruction type and file information
  • the file information includes at least one of a file name, a format, a type, and a size.
  • the file sending terminal confirms that the touch action of the user is detected as a preset file transfer action
  • the file receiving terminal that is connected with the file is automatically scanned, and the file has a file according to the preset file transfer action.
  • the transmission instruction performs a corresponding transmission operation, and implements a file transmission operation according to the detected touch screen action, and does not need to select a transmission mode each time the file is transmitted, thereby realizing the fast transmission of the file by simply touching the screen action.
  • Embodiment 2 and Embodiment 3 are as follows: Embodiment 2
  • This embodiment provides a method for file transmission.
  • the method provided in this embodiment is described in detail by taking a file transmission terminal and a file receiving terminal connected thereto to implement file transmission as an example. Referring to Figure 3, the method flow is as follows:
  • the file sending terminal detects the touch action of the user, and determines whether the detected touch screen action is a preset file transfer action. If yes, step 302 is performed, and if no, the process ends.
  • the embodiment does not limit the manner in which the file transmitting terminal detects the touch action of the user.
  • the preset file transmission action may be long pressing the selected file, and quickly sliding out the left edge or the right edge of the file sending terminal screen in the touch state, that is, the corresponding track corresponding to the touch screen action is sliding.
  • the track of the edge of the file sending terminal; the preset file transfer action may also be a track that slides a preset shape on the screen of the file sending terminal, such as a track that slides out a triangle shape, a track that slides out a shape of a hook, etc.
  • the trajectory of the file transmission action is a preset shape trajectory.
  • the specific preset shape is not limited.
  • other preset file transmission actions may also be performed.
  • the embodiment does not specifically limit the preset file transfer action.
  • the preset file transfer action is to press the selected file for a long time, and quickly slides out the right edge of the file sending terminal screen in the touch state as an example, if the duration of the user's touch screen action is detected to reach the preset If the length of the touch screen is slid out by the right edge of the screen, the detected touch screen action is a preset file transfer action, and the content in step 302 is executed. If the touch screen action of the user is detected as other When the touch screen action is performed, the operation flow of the file transfer ends, and the operation of other touch screen actions can be performed, and the user's touch screen action is continuously detected.
  • the file sending terminal confirms the file to be transmitted and the type of the instruction according to the touch screen action, and scans the file receiving terminal that establishes a connection with the file sending terminal.
  • the step includes the process of confirming the file to be transferred according to the touch screen action.
  • Specific confirmation method, touch screen action The file corresponding to the icon of the starting point is confirmed as the file to be transmitted, or other methods are used, which is not specifically limited in this embodiment.
  • the battery icon, the pull-down menu, and the like on the main interface are not available for transmission, after detecting that the user's touch screen action is a preset file transfer action, and confirming the file to be transmitted, it is also confirmed that the file is to be transmitted. Whether the file can be used for transfer. In the specific implementation, it is judged whether the selected file can be used for transmission by checking the attribute of the target selected by the user, and if the target attribute is a file format such as txt, pdf, exe, etc., it can be used for transmission.
  • the method provided by the embodiment further includes determining the subsequent sending according to the detected touch screen action.
  • the step of the instruction type of the instruction For instruction types, including but not limited to copy files and display files. For example, if the detected touch screen action is a single-point touch screen action, and the single-point touch screen action is a preset file transfer action, it is determined that the command type is a copy file, if the file to be transmitted is currently displayed in full screen, and the detection is performed.
  • the touch screen action is a multi-touch action, wherein the touch screen action of at least one point is a preset file transfer action, and the instruction type is determined to be a display file.
  • other types of instructions may be included according to actual needs. This embodiment does not limit the specific types of instructions. This embodiment uses only a single-touch action to execute a command to copy a file as an example.
  • the file receiving terminal connected to the file transmitting terminal can be determined by scanning the connection mode, thereby determining which terminal the file to be transmitted is transmitted to.
  • the priority order of the scan can be set as follows: USB (Universal Serial BUS), NFC (Near Near Fild Communication), WIFI (Wireless Fidelity), direct connection, Bluetooth, you can also set other high-priority connection methods.
  • USB Universal Serial BUS
  • NFC Near Near Fild Communication
  • WIFI Wireless Fidelity
  • direct connection Bluetooth
  • the file sending terminal sends a file transfer instruction whose command type is a copy file to a file receiving terminal that establishes a connection with the file sending terminal.
  • the file transmission instruction carrying the instruction type and the file information is sent to the file receiving terminal by using the established connection, and the file transmission instruction is of a copy file, and the file information includes but is not limited to the file name, format, type, size, and the like.
  • This embodiment does not limit specific file information.
  • the file to be transmitted is an application named XX
  • the file transfer instruction carries the name XX, and the file format, exe and size 122M.
  • the one-to-many connection method for example, Bluetooth connection
  • the number of terminals that the terminal establishes to connect through the Bluetooth connection mode is multiple, that is, if the number of file receiving terminals that are connected to the file sending terminal is multiple, the plurality of file receiving terminals that are scanned may be sent in a broadcast manner.
  • File transfer instructions When the file transmitting terminal scans to the number of file receiving terminals that establish a connection with the file transmitting terminal, the file transmitting terminal may directly send the file transfer instruction to the file receiving terminal that establishes the connection with the file type instruction after copying the file.
  • All of the connected file receiving terminals transmit the file, so that the process of returning the confirmation information by the file receiving terminal after detecting the touch screen action of the user in step 304 can be omitted.
  • the file transmitting terminal scans to a plurality of file receiving terminals with which a connection is established, if the user only wishes to transfer the file to one or more of the file receiving terminals, not all of the file receiving terminals
  • the user can also perform the touch screen action on the selected file receiving terminal side, and the file that detects the touch screen action is detected.
  • the receiving terminal returns confirmation information so that the file transmitting terminal can clearly know which file receiving terminal to transfer the file to. Therefore, after the file sending terminal sends the file transfer instruction of the file type to the file receiving terminal that establishes the connection with the file sending terminal, the file transfer instruction of the file type is also required to perform the operation of the subsequent step 304.
  • the file receiving terminal receives the file transmission instruction sent by the file sending terminal, detects the touch screen action of the user, and returns the confirmation message to the file sending terminal after detecting the touch screen action of the user within a preset time.
  • the file receiving terminal detects the touch action of the user within the preset time and keeps the touch time longer than the predetermined time length, it indicates that the user wishes to transfer the file to the file receiving terminal, for example, the file receiving terminal.
  • a and B receive the file transfer instruction at the same time, but the file receiving terminal A does not detect the user's touch screen action within the preset time, and the file receiving terminal B detects the user's touch screen action, indicating that the file receiving terminal B is the final
  • the terminal that receives the file that is, the user wishes to transfer the file to the file receiving terminal B, and thus slides from the file transmitting terminal to the file receiving terminal B.
  • the preset time is a period of time after receiving the file transmission instruction, and may be 1S or 0.5.
  • 5S which is not specifically limited in this embodiment; the predetermined length of time for continuing the touch screen is that the receiving terminal detects the user. 5S ⁇ In the actual application, it can be set to 1S or 0. 5S.
  • the touch screen action of the user from the file sending terminal sliding screen to the file receiving terminal may be very fast, so it is not only necessary to detect the moment when the file receiving terminal receives the file transmission instruction. Whether there is a touch screen action occurring within the preset time, and whether a touch screen action occurs within a certain period of time before receiving the file transfer command; if the user is detected when the file transfer command sent by the file transmitting terminal is not received.
  • the touch screen action, and when the user receives the file transfer instruction while maintaining the touch screen, and the touch action is not completed when the file transfer instruction is received the file can still be copied according to the user's needs. Way to handle.
  • the file receiving terminal and the file receiving terminal do not have the same file type. Therefore, after receiving the file transfer instruction, the file receiving terminal can obtain the file type and file size of the transmitted file according to the file information carried in the file transfer instruction. And confirm whether the file receiving terminal supports the file type and whether there is enough memory space. If the file receiving terminal supports the file type and there is sufficient memory space, the file sending terminal returns a confirmation message.
  • the file transmitting terminal receives the confirmation information returned by the file receiving terminal, and transmits the file to be transmitted to the file receiving terminal that returns the confirmation information.
  • the confirmation information returned by the file receiving terminal may carry the name or address information of the file receiving terminal, so that the file sending terminal parses the name and the like in the confirmation information, determines the corresponding file receiving terminal, and transmits the file to be transmitted to the file.
  • the file sending terminal parses the name of the file receiving terminal as the file receiving terminal B according to the returned confirmation information, and sends the file to be transmitted to the file receiving terminal B through the established connection.
  • the acknowledgment information returned by the file receiving terminal may also carry other information that can identify the file receiving terminal. This embodiment does not limit the specific information carried in the acknowledgment information.
  • the file receiving terminal Since the file receiving terminal receives the file transfer instruction of the instruction type as the copy file, the file receiving terminal can store the received file after receiving the file sent by the file sending terminal, and realize the file receiving from the file sending terminal to the file. Copy storage of the terminal.
  • the file sending terminal confirms that the touch action of the user is detected as a preset file transfer action
  • the file receiving terminal that is connected with the file is automatically scanned, and the file has a file according to the preset file transfer action.
  • the transmission instruction performs a corresponding transmission operation, and implements a file transmission operation according to the detected touch screen action, and does not need to select a transmission mode each time the file is transmitted, thereby realizing the fast transmission of the file by simply touching the screen action;
  • the file receiving terminal detects the touch screen action of the user, and performs corresponding signaling interaction with the file sending terminal, so that the original independent touch screen operations on the two terminals are combined into one function operation set to improve the accuracy of file transmission. .
  • This embodiment provides a method for file transmission.
  • a method for displaying the same file on a file receiving terminal and a file receiving terminal connected thereto is taken as an example, and the method provided in this embodiment is described in detail. .
  • the method flow is as follows:
  • the file sending terminal detects the touch screen action of the user, and determines whether the detected touch screen action is a preset file transfer action. If yes, step 402 is performed, and if no, the process ends. For details, refer to the related description of step 301 in the foregoing second embodiment. In a specific implementation, if it is detected that the user's touch screen action is a preset file transfer action, the content in step 402 is performed, otherwise the process ends, and the user's touch screen action is continuously detected.
  • the file transmitting terminal confirms the file to be transmitted and the type of the instruction according to the touch screen action, and scans the file receiving terminal that establishes a connection with the file sending terminal.
  • the step includes the process of confirming the file to be transferred according to the touch screen action.
  • the file corresponding to the icon of the starting point of the touch screen action can be confirmed as the file to be transmitted, or other methods are used, which is not specifically limited in this embodiment.
  • the method provided by the embodiment further includes: according to the detected touch screen action The step of determining the type of instruction that subsequently sends the instruction. For instruction types, including but not limited to copy files and display files.
  • the command type may be determined as Display the file.
  • other types of instructions may be included according to actual needs. This embodiment does not limit the specific types of instructions. This embodiment only uses the multi-touch action to execute the instructions for displaying files.
  • the file transmitting terminal After confirming the file to be transmitted and the type of the instruction, the file transmitting terminal scans the file receiving terminal that establishes a connection with the file transmitting terminal to specify to which terminal the file transfer instruction is sent.
  • the file receiving terminal that establishes the connection with the file sending terminal may be determined by the scanning connection mode, and may also be used in other scanning manners, which is not specifically limited in this embodiment.
  • the priority order of the scan can be set as: USB CUniversal Serial BUS, Universal Serial Bus, NFC (Near Fild Communication), WIFI (Wireless Fidelity), Direct Connect, Bluetooth You can also set to scan other high-priority connection modes.
  • the scan connection mode determine whether there is a file receiving terminal that establishes a connection with the file sending terminal through the connection mode. If it does not exist, scan the next one according to the set scanning priority order. The connection mode until scanning to a file receiving terminal that establishes a connection with the file transmitting terminal.
  • the specific scanning method belongs to the prior art and will not be described here.
  • the file transmitting terminal sends a file transfer instruction whose instruction type is a display file to a file receiving terminal that establishes a connection with the file transmitting terminal.
  • the file transmission instruction carrying the instruction type and the file information is sent to the file receiving terminal through the established connection, where the instruction type is a display file, and the file information includes but is not limited to the file name, format, type, size, and the like, and the implementation The example does not limit the specific file information.
  • the file to be transmitted is an image file named XX
  • the file transfer instruction sent in the file transfer command carries the name in addition to the command type of the display file.
  • XX and the file format such as jpg and size 122M.
  • the file transmission instruction sent by the scanned plurality of file receiving terminals may be broadcasted.
  • the file transmitting terminal may directly directly All of the connected file receiving terminals transmit the file, so that the process of returning the confirmation information by the file receiving terminal after detecting the touch screen action of the user in step 404 can be omitted.
  • the number of file receiving terminals to which the file transmitting terminal scans to establish a connection is plural, if the user only wishes to transfer and display the file in one or more file receiving terminals therein, not all of the file receiving terminals On the terminal, in order to prevent the erroneous operation, in the method provided by the embodiment, after the file transmitting terminal performs the touch screen action, the user can also perform the touch screen action on the selected file receiving terminal side, and the touch screen action is detected.
  • the file receiving terminal returns confirmation information so that the file transmitting terminal can clearly know which file receiving terminal to transfer the file to.
  • the file transmitting terminal sends a file transfer instruction whose command type is a display file to the file receiving terminal that establishes a connection with the file sending terminal
  • the file sending terminal needs to perform the operation of the subsequent step 404, as described in the following steps.
  • the file receiving terminal receives the file transmission instruction sent by the file sending terminal, detects the touch screen action of the user, and returns the confirmation message to the file sending terminal after detecting the touch screen action of the user within a preset time.
  • the file receiving terminal detects the touch action of the user within the preset time and keeps the touch time longer than the predetermined time length, it indicates that the user wishes to transfer the file to the file receiving terminal, for example, the file receiving terminal.
  • a and B receive the file transfer instruction at the same time, but the file receiving terminal A does not detect the user's touch screen action within the preset time, and the file receiving terminal B detects the user's touch screen action, indicating that the file receiving terminal B is the final
  • the terminal that receives the file that is, the user wishes to transfer the file to the file receiving terminal B, and thus slides from the file transmitting terminal to the file receiving terminal B.
  • the preset time is a period of time after receiving the file transmission instruction, and may be 1S or 0.5.
  • 5S which is not specifically limited in this embodiment; the predetermined length of time for continuing the touch screen is that the receiving terminal detects the user. 5S ⁇ In the actual application, it can be set to 1S or 0. 5S.
  • the touch screen action of the user from the file sending terminal sliding screen to the file receiving terminal may be very fast, so it is not only necessary to detect the moment when the file receiving terminal receives the file transmission instruction. Whether there is a touch screen action occurring within the preset time period, and whether a touch screen action occurs within a certain period of time before receiving the file transfer command; because the file transfer finger sent by the file sending terminal is not received When the user touches the screen and detects the file transfer command while the user keeps the touch screen, and the touch action is not completed when the file transfer command is received, the file can still be transferred according to the user's needs. The way to handle it.
  • the file receiving terminal and the file receiving terminal do not have the same file type. Therefore, after receiving the file transfer instruction, the file receiving terminal can obtain the file type and file size of the transmitted file according to the file information carried in the file transfer instruction. And determining whether the file receiving terminal supports the file type and whether there is sufficient memory space. If the file receiving terminal supports the file type and there is sufficient memory space, the file sending terminal returns a confirmation message.
  • the file sending terminal receives the confirmation information returned by the file receiving terminal, and transmits the file to be transmitted and the display information to the file receiving terminal that returns the confirmation information, and displays the file to be transmitted according to the displayed information.
  • the confirmation information returned by the file receiving terminal may carry the name or address information of the file receiving terminal, so that the file sending terminal parses the name and the like in the confirmation information, determines the corresponding file receiving terminal, and transmits the file to be transmitted to the file.
  • the file sending terminal parses the name of the file receiving terminal as the file receiving terminal B according to the returned confirmation information, and sends the file to be transmitted to the file receiving terminal B through the established connection.
  • the acknowledgment information returned by the file receiving terminal may also carry other information that can identify the file receiving terminal. This embodiment does not limit the specific information carried in the acknowledgment information.
  • the method provided by the embodiment further includes sending the display information when the file transmitting terminal sends the file to be transmitted to the file receiving terminal.
  • the display information includes, but is not limited to, information such as the size of the displayed file, that is, the control file receiving terminal displays the range of the file to be transmitted.
  • the file sending terminal may set the display information according to the touch action of the user. For example, if the touch screen action of the user is detected as a multi-touch screen, and the two-point track is gradually separated, the touch screen for expanding the display file is executed.
  • the display range in the display information may be the pixel in the left half of the file to be transmitted, that is, the control file receiving terminal displays the left half of the file to be transmitted; if the touch screen action of the user is detected, the file is sent from the file. If the right edge of the terminal slides out, it can be determined that the current full-screen display needs to be enlarged, and the left half is displayed on the file sending terminal, and the right half is displayed on the file receiving terminal.
  • the display information is The pixel of the right half of the file to be transmitted, that is, the control file receiving terminal displays The right half of the output file.
  • the file transmitting terminal displays the left half of the file to be transmitted; if the file transmitting terminal sends the display information to the file receiving terminal As the pixel of the left half of the file to be transmitted, the file transmitting terminal displays the right half of the file to be transmitted.
  • the file receiving terminal displays the file to be transmitted according to the received file to be transmitted and the display information.
  • the file receiving terminal can display the file to be transmitted according to the display information after receiving the file to be transmitted and the display information sent by the file sending terminal. And the content displayed by the file transmitting terminal and the content displayed by the file receiving terminal are merged into the entire file to be transmitted.
  • two terminals of the same specification that is, a file sending terminal and The specifications of the file receiving terminal are the same, for example, the two terminal models are the same, have the same screen pixels, and the like, thereby ensuring that the two parts of one picture are respectively displayed on the two terminals, and the effect of splicing into a complete picture can be achieved.
  • both the file sending terminal and the file receiving terminal are required to detect the touch screen action of the user. Once the touch screen action disappears, the two terminals display the same file and disappear. For the case where the touch screen action does not disappear, after the file sending terminal and the file receiving terminal respectively display a part of the file to be transmitted, the two terminals may continue to generate the touch screen action subsequently, for the processing manner after the subsequent touch screen action, see The following steps.
  • the file sending terminal detects the subsequent touch screen action, adjusts the display information according to the detected touch screen action, and sends the adjusted display information to the file receiving terminal, and simultaneously adjusts the displayed file content.
  • the file sending terminal detects the touch screen action of the user, and adjusts the displayed touch screen action to display the display information.
  • the corresponding display information may be adjusted in real time according to the distance between two points on the touch screen of the two terminals. , and zoom in or out to display the file. For example, when the distance is increased, the displayed file is enlarged, or when the distance is small, the displayed file is reduced. Whether it is zoomed in or out, the file transmitting terminal can determine the adjusted display information according to the display condition of the file, and will adjust The displayed information is sent to the file receiving terminal so that the two terminals simultaneously adjust the displayed file contents. 408: The file receiving terminal receives the adjusted display information sent by the file sending terminal, and adjusts the displayed file content according to the adjusted display information.
  • the file receiving terminal performs corresponding processing on the displayed file according to the received adjusted display information, that is, displays the file according to the pixels in the adjusted display information.
  • the file sending terminal confirms that the touch action of the user is detected as a preset file transfer action
  • the file receiving terminal that is connected with the file is automatically scanned, and the file has a file according to the preset file transfer action.
  • the transmission instruction performs a corresponding transmission operation, and realizes the file transmission and display operation according to the detected touch screen action, and does not need to select the connection mode used each time the file is transmitted, thereby realizing the completion of the file by simply touching the screen action.
  • Quick transmission and split screen display the file receiving terminal detects the user's touch screen action, and performs corresponding signaling interaction with the file sending terminal, so that the original independent touch screen operations on the two terminals are combined into one functional operation set. To improve the accuracy of file transfer.
  • Embodiment 4 Embodiment 4
  • the present embodiment provides a file sending terminal, where the file sending terminal is configured to perform the steps of sending files in the first embodiment, the second embodiment, and the third embodiment.
  • the file sending terminal includes:
  • the detecting module 501 is configured to detect a touch screen action of the user
  • the confirmation module 502 is configured to confirm the file to be transmitted according to the detected touch screen action after the touch screen action detected by the confirmation detection module 501 is a preset file transmission action;
  • the scanning module 503 is configured to scan a file receiving terminal that establishes a connection with the terminal after the touch screen action detected by the confirmation detecting module 501 is a preset file transmission action; wherein the preset file transmission action has a corresponding file transmission Instruction
  • the transmission module 504 is configured to perform a corresponding transmission operation according to the file transfer instruction.
  • the transmission module 504 specifically includes:
  • the sending unit 5041 is configured to send a corresponding file transmission instruction to the file receiving terminal scanned by the scanning module 503, so that the file receiving terminal that receives the file transmission instruction returns the confirmation information after detecting the touch action of the user within a preset time. ;
  • the receiving unit 5042 is configured to receive the confirmation information returned by the file receiving terminal.
  • the transmitting unit 5043 is configured to transmit the file to be transmitted confirmed by the confirmation module 502 to the file receiving terminal that returns the confirmation information.
  • the sending unit 5041 is further configured to: if the scanning module 503 scans the number of file receiving terminals that establish a connection with the local end, send the file transmission instruction to the scanned plurality of file receiving terminals in a broadcast manner, The file receiving terminal that receives the file transfer instruction separately detects the touch screen action of the user, and returns the confirmation information after detecting the touch screen action of the user.
  • the sending unit 5041 specifically includes:
  • a determining subunit 5041A configured to determine an instruction type according to the detected touch screen action
  • the sending subunit 5041B is configured to send, to the file receiving terminal, a file transfer instruction that carries the instruction type and the file information determined by the determining subunit 5041A, so that the file receiving terminal sends the file to the file after confirming the operation of the supported instruction type according to the received file information.
  • the sending terminal returns a confirmation message;
  • the file information includes at least one of a file name, a format, a type, and a size.
  • the determining sub-unit 5041A is specifically configured to: if the detected touch screen action is a single-point touch screen action, and the single-point touch screen action is a preset file transfer action, determine that the instruction type is a copy file; or If the currently detected screen is to be transmitted in full screen, and the detected touch screen action is a multi-touch action, and the touch screen action of one of the points is a preset file transfer action, it is determined that the command type is a display file.
  • the instruction type includes a copy file or a display file, as shown in FIG. 8, the transmission unit 5043, and specifically includes:
  • the first transmission subunit 5043A is configured to: if the instruction type carried by the file transmission instruction is a copy file, transmit the file to be transmitted to the file receiving terminal that returns the confirmation information, so that the file receiving terminal receives and stores the file to be transmitted;
  • the second transmission subunit 5043B is configured to: if the instruction type carried by the file transmission instruction is a display file, transmit the file to be transmitted and the display information to the file receiving terminal that returns the confirmation information, so that the file receiving terminal displays the file to be transmitted according to the display information. .
  • the second transmission subunit 5043B is further configured to adjust the display information according to the subsequent touch screen action, and send the adjusted display information to the file receiving terminal, so that the file receiving terminal adjusts the displayed to be transmitted according to the adjusted display information. file.
  • the file sending terminal provided in this embodiment automatically scans the file receiving terminal connected with the file receiving terminal after confirming that the touch screen action of the user is detected as a preset, and transmits the file according to the preset file transfer action.
  • the instruction performs the corresponding transmission operation, realizes the file transmission operation according to the detected touch screen action, does not need to select the transmission mode used each time the file is transmitted, and realizes the fast transmission of the file by simply touching the screen action.
  • the embodiment provides a file receiving terminal, and the file receiving terminal is configured to execute the first embodiment and implement the foregoing
  • the method for receiving a file in the second embodiment and the third embodiment, as shown in FIG. 9, the file receiving terminal includes: a receiving module 901, configured to receive a file transmission instruction sent by a file sending terminal connected to the file, and a detecting module 902, configured to Detecting the user's touch screen action within a preset time;
  • the returning module 903 is configured to return the confirmation information to the file sending terminal after the detecting module 902 detects the touch screen action of the user;
  • the processing module 904 is configured to receive the file transmitted by the file sending terminal.
  • the file transfer instruction received by the receiving module 901 carries the instruction type and the file information.
  • the returning module 903 is specifically configured to: after confirming the operation of the support instruction type according to the file information received by the receiving module 901, returning the confirmation information to the file sending terminal;
  • the file information includes at least one of a file name, a format, a type, and a size.
  • the file receiving terminal provided by the embodiment detects the touch action of the user after receiving the instruction sent by the file sending terminal, and returns a confirmation to the file sending terminal according to the detected touch screen action, so that the file sending terminal receives the file to the file.
  • the file transfer operation of the terminal not only realizes the fast transfer of the file through simple touch screen action, but also improves the accuracy of file transfer.
  • This embodiment provides a system for file transmission.
  • the system includes: a file sending terminal 1001 and a file receiving terminal 1002;
  • the file transmitting terminal 1001 is the file transmitting terminal provided in the above-mentioned fourth embodiment; the file receiving terminal 1002 is the file receiving terminal provided in the fifth embodiment.
  • the file sending terminal confirms that the touch action of the user is detected as a preset file transfer action
  • the file receiving terminal that is connected to the file is automatically scanned, and the file has a file according to the preset file transfer action.
  • the transmission instruction performs a corresponding transmission operation, and implements a file transmission operation according to the detected touch screen action, and does not need to select a transmission mode each time the file is transmitted, thereby realizing the fast transmission of the file by simply touching the screen action;
  • the file receiving terminal detects the touch screen action of the user, and performs corresponding signaling interaction with the file sending terminal, so that the original independent touch screen operations on the two terminals are combined into one function operation set to improve the accuracy of file transmission. .
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了一种文件传输的方法及终端,属于数据传输领域。方法包括:文件发送终端检测到用户的触屏动作;在确认触屏动作为预设的文件传输动作后,根据触屏动作确认待传输文件,并扫描与文件发送终端建立连接的文件接收终端,其中,预设的文件传输动作具有相应的文件传输指令;文件发送终端根据文件传输指令执行相应的传输操作。本发明通过文件发送终端在确认检测到用户的触屏动作为预设的文件传输动作后,自动扫描与其建立连接的文件接收终端,根据预设的文件传输动作具有的文件传输指令执行相应的传输操作,实现根据触屏动作进行文件传输,不需要每次在传输文件时都选择使用的连接方式,实现了通过简单地触屏动作完成文件的快速传输。

Description

文件传输的方法及终端
本申请要求于 2012年 4月 24日提交中国专利局、 申请号为 CN 201210123205. X、 发明名称为 "文件传输的方法及终端"的中国专利申请的优先权, 其全部内容通过引用 结合在本申请中。 技术领域
本发明涉及数据传输领域, 特别涉及一种文件传输的方法及终端。 背景技术
随着电子技术的不断发展, 终端的功能越来越完善, 用户不仅可以用终端办公, 玩 游戏, 还可在终端中保存大量的文件并安装很多应用程序。 因此也就往往会遇见需要将 这些文件以及应用程序进行传输的场景。
现有技术在使用终端进行文件传输时, 需要用户在文件传输的发送端选择待传输的 文件, 并选择使用的传输方式及接收文件的接收端, 在接收端接收到文件时, 需要用户 在接收端选择是否接收此文件。
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题:
在进行文件传输时, 每传输一个文件都需要由用户选择传输方式, 每接收一个文件 都需要由用户选择是否接收, 操作步骤较为繁琐, 特别是要传输的文件数量很多时, 传 输效率低。 发明内容
为了简化文件传输的操作步骤, 提高传输效率, 本发明实施例提供了一种文件传输 的方法及终端。 一方面, 提供了一种文件传输的方法, 所述方法包括:
文件发送终端检测到用户的触屏动作;
在确认所述触屏动作为预设的文件传输动作后, 根据所述触屏动作确认待传输文 件, 并扫描与所述文件发送终端建立连接的文件接收终端; 其中, 所述预设的文件传输 动作具有相应的文件传输指令;
所述文件发送终端根据所述文件传输指令执行相应的传输操作。
另一方面, 还提供了一种文件发送终端, 所述文件发送终端包括:
检测模块, 用于检测用户的触屏动作; 确认模块, 用于在确认所述检测模块检测到的触屏动作为预设的文件传输动作后, 根据检测到的触屏动作确认待传输文件;
扫描模块, 用于在确认所述检测模块检测到的触屏动作为预设的文件传输动作后, 扫描与本终端建立连接的文件接收终端; 其中, 所述预设的文件传输动作具有相应的文 件传输指令;
传输模块, 用于根据所述文件传输指令执行相应的传输操作。
再一方面, 还提供了一种文件传输的方法, 所述方法包括:
文件接收终端接收与之建立连接的文件发送终端发送的文件传输指令, 并在预设时 间内检测用户的触屏动作;
在检测到用户的触屏动作后, 向所述文件发送终端返回确认信息;
接收所述文件发送终端根据所述确认信息传输的文件。
另一方面, 还提供了一种文件接收终端, 所述文件接收终端包括:
接收模块, 用于接收与之建立连接的文件发送终端发送的文件传输指令; 检测模块, 用于在预设时间内检测用户的触屏动作;
返回模块, 用于在所述检测模块检测到用户的触屏动作后, 向所述文件发送终端返 回确认信息;
处理模块, 用于接收所述文件发送终端传输的文件。
通过文件发送终端在确认检测到用户的触屏动作为预设的文件传输动作后, 自动扫 描与其建立连接的文件接收终端, 并根据预设的文件传输动作具有的文件传输指令执行 相应的传输操作, 实现根据检测到的触屏动作进行文件传输, 不需要每次在传输文件时 都选择使用的传输方式, 实现了通过简单地触屏动作完成文件的快速传输。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所需要使用 的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对 于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得 其他的附图。
图 1是本发明实施例一提供的一种文件传输的方法流程图;
图 2是本发明实施例一提供的另一种文件传输的方法流程图;
图 3是本发明实施例二提供的一种文件传输的方法流程图;
图 4是本发明实施例三提供的一种文件传输的方法流程图; 图 5是本发明实施例四提供的 种文件发送终端的结构示意图; 图 6是本发明实施例四提供的 种传输模块的结构示意图;
图 7是本发明实施例四提供的 种发送单元的结构示意图;
图 8是本发明实施例四提供的 种传输单元的结构示意图;
图 9是本发明实施例五提供的 种文件接收终端的结构示意图;
图 10是本发明实施例六提供的 -种文件传输的***结构示意图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式 作进一步地详细描述。
实施例一
本实施例提供了一种文件传输的方法, 该方法的执行主体可以为文件发送终端, 参 见图 1, 该方法流程具体如下:
101: 文件发送终端检测到用户的触屏动作。
102: 在确认触屏动作为预设的文件传输动作后, 根据触屏动作确认待传输文件, 并扫描与文件发送终端建立连接的文件接收终端, 其中, 预设的文件传输动作具有相应 的文件传输指令。
103: 文件发送终端根据文件传输指令执行相应的传输操作。
其中, 文件发送终端根据文件传输指令执行相应的传输操作包括:
向文件接收终端发送对应的文件传输指令, 以便接收到文件传输指令的文件接收终 端在预设时间内检测到用户的触屏动作后, 向文件发送终端返回确认信息;
接收文件接收终端返回的确认信息, 并将待传输文件传输给返回确认信息的文件接 收终端。
进一步地, 如果扫描到与文件发送终端建立连接的文件接收终端的数量为多个, 向 文件接收终端发送文件传输指令, 具体包括:
以广播的形式向扫描到的多个文件接收终端发送文件传输指令, 以便接收到文件传 输指令的文件接收终端分别检测用户的触屏动作, 并在检测到用户的触屏动作后, 向文 件发送终端返回确认信息。
具体地, 向文件接收终端发送对应的文件传输指令, 具体包括:
根据检测到的触屏动作确定指令类型;
向文件接收终端发送携带指令类型及文件信息的文件传输指令, 以便文件接收终端 在根据接收到的文件信息确认支持该指令类型的操作后, 向文件发送终端返回确认信 息;
其中, 该文件信息包括文件名称、 格式、 类型、 大小中的至少一种。
进一步地, 根据检测到的触屏动作确定指令类型, 具体包括:
如果检测到的触屏动作为单点的触屏动作, 且单点的触屏动作为预设的文件传输动 作, 则确定指令类型为拷贝文件; 或者,
如果当前全屏显示待传输文件, 且检测到的触屏动作为多点的触屏动作, 其中至少 一个点的触屏动作为预设的文件传输动作, 则确定指令类型为显示文件。
该预设的文件传输动作形成为所述动作对应的轨迹为滑过文件发送终端边缘的轨 迹, 或为预设形状的轨迹。
进一步地, 指令类型包括拷贝文件或显示文件, 将待传输文件传输给返回确认信息 的文件接收终端, 具体包括:
如果文件传输指令携带的指令类型为拷贝文件, 则将待传输文件传输给返回确认信 息的文件接收终端, 以便文件接收终端接收并存储待传输文件;
如果文件传输指令携带的指令类型为显示文件, 则将待传输文件及显示信息传输给 返回确认信息的文件接收终端, 以便文件接收终端根据显示信息显示待传输文件。
另外, 将待传输文件及显示信息传输给返回确认信息的文件接收终端, 以便文件接 收终端根据显示信息显示待传输文件之后, 还包括:
根据后续的触屏动作调整显示信息, 并将调整后的显示信息发送给文件接收终端, 以便文件接收终端根据调整后的显示信息调整显示的待传输文件。
本实施例还提供了一种文件传输的方法, 该方法的执行主体可以为文件接收终端, 参见图 2, 该方法流程具体如下:
201: 文件接收终端接收与之建立连接的文件发送终端发送的文件传输指令, 并在 预设时间内检测用户的触屏动作;
202: 在检测到用户的触屏动作后, 向文件发送终端返回确认信息;
203: 接收文件发送终端根据确认信息传输的文件。
进一步地, 文件传输指令携带指令类型及文件信息;
向文件发送终端返回确认信息, 具体包括:
根据接收到的文件信息确认支持指令类型的操作后, 向文件发送终端返回确认信 息;
其中, 文件信息包括文件名称、 格式、 类型、 大小中的至少一种。 本实施例提供的方法,通过文件发送终端在确认检测到用户的触屏动作为预设的文 件传输动作后, 自动扫描与其建立连接的文件接收终端, 并根据预设的文件传输动作具 有的文件传输指令执行相应的传输操作, 实现根据检测到的触屏动作进行文件传输操 作, 不需要每次在传输文件时都选择使用的传输方式, 实现了通过简单地触屏动作完成 文件的快速传输。
为了更加清楚地阐述上述实施例提供的方法, 结合上述内容, 以如下实施例二和实 施例三为例, 对文件传输的方法进行详细地解释说明, 详见如下实施例二和实施例三: 实施例二
本实施例提供了一种文件传输的方法, 为了便于说明, 本实施例以文件发送终端和 与之建立连接的文件接收终端实现文件的传输为例,对本实施例提供的方法进行详细描 述。 参见图 3, 该方法流程具体如下:
301: 文件发送终端检测用户的触屏动作, 并判断检测到的触屏动作是否为预设的 文件传输动作, 如果是, 则执行步骤 302, 如果否, 流程结束。
针对该步骤, 本实施例不对文件发送终端检测用户的触屏动作的方式进行限定, 具 体实施时, 可通过现有检测触屏动作的技术实现。 具体地, 预设的文件传输的动作可以 为长按选中的文件, 并在触摸状态下快速滑出文件发送终端屏幕的左边缘或右边缘, 即 预设的触屏动作对应的轨迹为滑过文件发送终端边缘的轨迹; 该预设的文件传输动作还 可以为在文件发送终端屏幕上滑动预设形状的轨迹, 如滑出三角形状的轨迹、 滑出对勾 形状的轨迹等等, 即预设的文件传输动作的轨迹为预设形状的轨迹, 本实施例不对具体 的预设形状进行限定, 除了上述两种预设的文件传输动作外, 还可以为其他预设的文件 传输动作, 本实施例对预设的文件传输动作不作具体限定。 具体实施时, 以预设的文件 传输动作为长按选中的文件, 并在触摸状态下快速滑出文件发送终端屏幕的右边缘为 例, 如果检测到用户的触屏动作的持续时间达到预设长度, 且触屏动作的轨迹由屏幕的 右边缘滑出,则判断检测到的触屏动作为预设的文件传输动作,执行步骤 302中的内容, 如果检测到用户的触屏动作为其他的触屏动作, 则文件传输的操作流程结束, 可按照其 他触屏动作的操作处理, 并继续检测用户的触屏动作。
302: 文件发送终端根据触屏动作确认待传输文件及指令类型, 并扫描与文件发送 终端建立连接的文件接收终端。
针对该步骤, 在确认用户的触屏动作为预设的文件传输动作之后, 为了实现文件的 传输, 该步骤包括根据触屏动作确认待传输文件的过程。 具体确认方式, 可将触屏动作 的起点所在图标对应的文件确认为待传输文件, 或是采用其他方式, 本实施例对此不做 具体限定。 进一步地, 由于主界面上的电池图标、 下拉菜单等是无法用于传递的, 因而 在检测到用户的触屏动作为预设的文件传输动作, 并确认待传输文件之后, 还要确认待 传输文件是否可以用于传输。 具体实施时, 通过检查用户选择的目标的属性来判断选中 的文件是否可以用于传输, 如果目标属性为 txt、 pdf、 exe等文件格式, 则可以用于传 输。
除了根据用户的触屏动作确认待传输文件之外, 为了使接收到该待传输文件的终端 能够明确对该文件的操作,本实施例提供的方法还包括根据检测到的触屏动作确定后续 发送指令的指令类型的步骤。 对于指令类型, 包括但不限于拷贝文件和显示文件两种。 例如, 如果检测到的触屏动作为单点的触屏动作, 且单点的触屏动作为预设的文件传输 动作, 则确定指令类型为拷贝文件, 如果当前全屏显示待传输文件, 且检测到的触屏动 作为多点的触屏动作, 其中至少一个点的触屏动作为预设的文件传输动作, 则确定指令 类型为显示文件。 除了这两种指令类型之外, 根据实际需要还可以包括其他指令类型, 本实施例不对具体的指令类型进行限定,本实施例仅以单点触屏动作执行拷贝文件的指 令为例进行说明。
在确认待传输文件及指令类型之后,可以通过扫描连接方式确定与文件发送终端建 立连接的文件接收终端, 从而确定待传输文件传输给哪个终端。 具体实施时, 可以设置 扫描的优先顺序为: USB ( Universal Serial BUS , 通用串口总线)、 NFC ( Near Fi ld Communication, 近距离无线通信技术)、 WIFI (Wireless Fidel ity,无线局域网络) 直 连、 蓝牙, 也可以设置其他高优先级的连接方式, 根据扫描的连接方式判断是否存在通 过该连接方式与文件发送终端建立连接的文件接收终端, 如果不存在则扫描下一个连接 方式, 直到扫描到与文件发送终端建立连接的文件接收终端。 具体的扫描方式, 属于现 有技术, 在此不在赘述。
303: 文件发送终端向与文件发送终端建立连接的文件接收终端发送指令类型为拷 贝文件的文件传输指令。
具体地,通过建立的连接向文件接收终端发送携带指令类型及文件信息的文件传输 指令, 该文件传输指令的类型为拷贝文件, 文件信息包括但不限于文件名称、 格式、 类 型、 大小等信息, 本实施例不对具体的文件信息进行限定。 例如, 待传输文件为一个名 称为 XX的应用程序, 则在发送的文件传输指令中除了携带拷贝文件的指令类型外, 还 携带名称 XX, 以及该文件的格式. exe和大小 122M等文件信息。
另外, 由于存在一对多的连接方式, 例如, 蓝牙连接, 如果扫描到存在与文件发送 终端通过蓝牙连接方式建立连接的终端数量为多个, 即如果扫描到的与文件发送终端建 立连接的文件接收终端的数量为多个, 则可以广播的形式向扫描到的多个文件接收终端 发送的文件传输指令。对于文件发送终端扫描到与之建立连接的文件接收终端的数量为 多个的情况, 文件发送终端在向与其建立连接的文件接收终端发送指令类型为拷贝文件 的文件传输指令之后, 可以直接向与其连接的所有文件接收终端传输文件, 从而可以省 略如下步骤 304中文件接收终端在检测到用户的触屏动作后返回确认信息的过程。然而, 对于文件发送终端扫描到与之建立连接的文件接收终端的数量为多个的情况, 如果用户 仅希望将文件传输至其中的一个或多个文件接收终端, 而并非所有的文件接收终端上, 则为了防止误操作, 本实施例提供的方法中, 用户在文件发送终端执行触屏动作后, 还 可在选定的文件接收终端侧执行触屏动作, 并由检测到触屏动作的文件接收终端返回确 认信息, 以使文件发送终端能够明确地获知将文件传输给哪个文件接收终端。 因此, 文 件发送终端在向与文件发送终端建立连接的文件接收终端发送指令类型为拷贝文件的 文件传输指令之后, 还需要执行后续步骤 304的操作, 详见如下步骤。
304: 文件接收终端接收文件发送终端发送的文件传输指令, 检测用户的触屏动作, 并在预设时间内检测到用户的触屏动作后, 向文件发送终端返回确认信息。
针对该步骤, 如果文件接收终端在预设时间内检测到用户的触屏动作, 且保持触屏 时间超过预定的时间长度, 则表明用户希望将文件传输到该文件接收终端, 例如, 文件 接收终端 A和 B同时接收到文件传输指令,但在预设时间内文件接收终端 A未检测到用 户的触屏动作, 而文件接收终端 B检测到用户的触屏动作, 则表示文件接收终端 B为最 终接收文件的终端, 即用户希望将文件传输到文件接收终端 B, 因而从文件发送终端滑 屏到文件接收终端 B。
进一步地, 该预设时间为接收到文件传输指令后的一段时间, 可以为 1S或 0. 5S, 本实施例对此不作具体限定; 持续触屏的预定的时间长度为接收终端检测到用户的触屏 动作后的一段时间, 本实施例同样不对预定的时间长度进行具体限定, 实际应用中, 可 以设置为 1S或 0. 5S。
另外, 考虑到指令的传递可能有一定延迟性, 而用户从文件发送终端滑屏到文件接 收终端的触屏动作可能很快, 因此不仅仅要检测文件接收终端从接收到文件传输指令的 一时刻开始的预设时间内是否有触摸屏动作发生,还应检测接收到文件传输指令之前的 一段时间内是否有触摸屏动作发生; 因为在没有接收到文件发送终端发送的文件传输指 令时, 如果检测到用户的触屏动作, 并在用户保持触屏的状态下接收到文件传输指令, 且接收到文件传输指令时触摸动作还未结束, 则仍然可以继续按照用户需要拷贝文件的 方式来处理。
由于文件发送终端与文件接收终端支持的文件类型不一定相同, 因而, 文件接收终 端在接收到文件传输指令后,可根据文件传输指令中携带的文件信息获取传输文件的文 件类型及文件大小等信息, 并确认文件接收终端是否支持该文件类型及是否存在足够的 内存空间, 如果文件接收终端支持该文件类型且存在足够的内存空间, 则向文件发送终 端返回确认信息。
305: 文件发送终端接收文件接收终端返回的确认信息, 并将待传输文件传输给返 回确认信息的文件接收终端。
其中, 文件接收终端返回的确认信息可携带文件接收终端的名称或地址信息, 使文 件发送终端解析出确认信息中的名称等信息后, 确定对应的文件接收终端, 并将待传输 文件传输给该文件接收终端; 例如, 文件发送终端根据返回的确认信息解析出文件接收 终端的名称为文件接收终端 B, 则将待传输文件通过建立的连接发送给文件接收终端 B。 当然, 文件接收终端返回的确认信息中还可以携带其他可以标识文件接收终端的信息, 本实施例不对确认信息中携带的具体信息进行限定。
由于文件接收终端之前接收到了指令类型为拷贝文件的文件传输指令, 因此, 文件 接收终端接收到文件发送终端发送的文件之后, 可对接收到的文件进行存储, 实现文件 由文件发送终端到文件接收终端的拷贝存储。
本实施例提供的方法,通过文件发送终端在确认检测到用户的触屏动作为预设的文 件传输动作后, 自动扫描与其建立连接的文件接收终端, 并根据预设的文件传输动作具 有的文件传输指令执行相应的传输操作, 实现根据检测到的触屏动作进行文件传输操 作, 不需要每次在传输文件时都选择使用的传输方式, 实现了通过简单地触屏动作完成 文件的快速传输; 另外, 通过文件接收终端检测用户的触屏动作, 并与文件发送终端进 行相应的信令交互, 使两个终端上原本独立的触摸屏操作, 合并为一个功能操作集合, 以提高文件传输的准确性。 实施例三
本实施例提供了一种文件传输的方法, 为了便于说明, 本实施例以文件发送终端和 与之建立连接的文件接收终端上实现共同显示同一文件为例,对本实施例提供的方法进 行详细描述。 参见图 4, 该方法流程具体如下:
401: 文件发送终端检测用户的触屏动作, 并判断检测到的触屏动作是否为预设的 文件传输动作, 如果是, 则执行步骤 402, 如果否, 流程结束。 具体地, 该步骤的具体实现方式可参见上述实施例二中步骤 301的相关描述。 具体 实施时,如果检测到用户的触屏动作为预设的文件传输动作,则执行步骤 402中的内容, 否则流程结束, 继续检测用户的触屏动作。
402: 文件发送终端根据触屏动作确认待传输文件及指令类型, 并扫描与文件发送 终端建立连接的文件接收终端。
针对该步骤, 在确认用户的触屏动作为预设的文件传输动作之后, 为了实现文件的 传输, 该步骤包括根据触屏动作确认待传输文件的过程。 具体确认方式, 可将触屏动作 的起点所在图标对应的文件确认为待传输文件, 或是采用其他方式, 本实施例对此不做 具体限定。 进一步地, 除了根据用户的触屏动作确认待传输文件之外, 为了使接收到该 待传输文件的终端能够明确对该文件的操作,本实施例提供的方法还包括根据检测到的 触屏动作确定后续发送指令的指令类型的步骤。 对于指令类型, 包括但不限于拷贝文件 和显示文件两种。 例如, 如果文件发送终端当前全屏显示待传输文件, 且检测到的触屏 动作为多点的触屏动作, 其中至少一个点的触屏动作为预设的文件传输动作, 则可确定 指令类型为显示文件。 除了这两种指令类型之外, 根据实际需要还可以包括其他指令类 型, 本实施例不对具体的指令类型进行限定, 本实施例仅以多点触屏动作执行显示文件 的指令为例进行说明。
在确认待传输文件及指令类型之后, 文件发送终端扫描与文件发送终端建立连接的 文件接收终端, 以明确向哪个终端发送文件传输指令。 具体地, 可以通过扫描连接方式 确定与文件发送终端建立连接的文件接收终端, 也可以通过其他扫描方式, 本实施例对 此不作具体限定。具体实施时,可以设置扫描的优先顺序为: USB CUniversal Serial BUS, 通用串口总线)、 NFC (Near Fi ld Communication,近距离无线通信技术)、 WIFI (Wireless Fidel ity,无线局域网络) 直连、 蓝牙, 也可以设置扫描其他高优先级的连接方式, 根 据扫描的连接方式判断是否存在通过该连接方式与文件发送终端建立连接的文件接收 终端, 如果不存在, 则根据设置的扫描优先顺序扫描下一个连接方式, 直到扫描到与文 件发送终端建立连接的文件接收终端。具体的扫描方式,属于现有技术,在此不在赘述。
403: 文件发送终端向与文件发送终端建立连接的文件接收终端发送指令类型为显 示文件的文件传输指令。
具体地,通过建立的连接向文件接收终端发送携带指令类型及文件信息的文件传输 指令, 其中, 指令类型为显示文件, 文件信息包括但不限于文件名称、 格式、 类型、 大 小等信息, 本实施例不对具体的文件信息进行限定。例如, 待传输文件为一个名称为 XX 的图片文件, 则在发送的文件传输指令中除了携带显示文件的指令类型外, 还携带名称 XX, 以及该文件的格式 jpg和大小 122M等文件信息。
另外, 由于存在一对多的连接方式, 例如, 蓝牙连接, 如果扫描到存在与文件发送 终端通过蓝牙连接方式建立连接的终端数量为多个, 即如果扫描到的与文件发送终端建 立连接的文件接收终端的数量为多个, 则可以广播的形式向扫描到的多个文件接收终端 发送的文件传输指令。对于文件发送终端扫描到与之建立连接的文件接收终端的数量为 多个的情况, 文件发送终端在向与其建立连接的文件接收终端发送指令类型为显示文件 的文件传输指令之后, 可以直接向与其连接的所有文件接收终端传输文件, 从而可以省 略如下步骤 404中文件接收终端在检测到用户的触屏动作后返回确认信息的过程。然而, 对于文件发送终端扫描到与之建立连接的文件接收终端的数量为多个的情况, 如果用户 仅希望将文件传输并显示在其中的一个或多个文件接收终端, 而并非所有的文件接收终 端上, 则为了防止误操作, 本实施例提供的方法中, 用户在文件发送终端执行触屏动作 后, 还可在选定的文件接收终端侧执行触屏动作, 并由检测到触屏动作的文件接收终端 返回确认信息, 以使文件发送终端能够明确地获知将文件传输给哪个文件接收终端。 因 此, 文件发送终端在向与文件发送终端建立连接的文件接收终端发送指令类型为显示文 件的文件传输指令之后, 还需要执行后续步骤 404的操作, 详见如下步骤。
404: 文件接收终端接收文件发送终端发送的文件传输指令, 检测用户的触屏动作, 并在预设时间内检测到用户的触屏动作后, 向文件发送终端返回确认信息。
针对该步骤, 如果文件接收终端在预设时间内检测到用户的触屏动作, 且保持触屏 时间超过预定的时间长度, 则表明用户希望将文件传输到该文件接收终端, 例如, 文件 接收终端 A和 B同时接收到文件传输指令,但在预设时间内文件接收终端 A未检测到用 户的触屏动作, 而文件接收终端 B检测到用户的触屏动作, 则表示文件接收终端 B为最 终接收文件的终端, 即用户希望将文件传输到文件接收终端 B, 因而从文件发送终端滑 屏到文件接收终端 B。
进一步地, 该预设时间为接收到文件传输指令后的一段时间, 可以为 1S或 0. 5S, 本实施例对此不作具体限定; 持续触屏的预定的时间长度为接收终端检测到用户的触屏 动作后的一段时间, 本实施例同样不对预定的时间长度进行具体限定, 实际应用中, 可 以设置为 1S或 0. 5S。
另外, 考虑到指令的传递可能有一定延迟性, 而用户从文件发送终端滑屏到文件接 收终端的触屏动作可能很快, 因此不仅仅要检测文件接收终端从接收到文件传输指令的 一时刻开始的预设时间内是否有触摸屏动作发生,还应检测接收到文件传输指令之前的 一段时间内是否有触摸屏动作发生; 因为在没有接收到文件发送终端发送的文件传输指 令时, 如果检测到用户的触屏动作, 并在用户保持触屏的状态下接收到文件传输指令, 且接收到文件传输指令时触摸动作还未结束, 则仍然可以继续按照用户需要进行传输文 件的方式来处理。
由于文件发送终端与文件接收终端支持的文件类型不一定相同, 因而, 文件接收终 端在接收到文件传输指令后,可根据文件传输指令中携带的文件信息获取传输文件的文 件类型及文件大小等信息, 并判断文件接收终端是否支持该文件类型及是否存在足够的 内存空间, 如果文件接收终端支持该文件类型且存在足够的内存空间, 则向文件发送终 端返回确认信息。
405: 文件发送终端接收文件接收终端返回的确认信息, 并将待传输文件及显示信 息传输给返回确认信息的文件接收终端, 同时根据显示信息显示待传输文件。
其中, 文件接收终端返回的确认信息可携带文件接收终端的名称或地址信息, 使文 件发送终端解析确认信息中的名称等信息后, 确定对应的文件接收终端, 并将待传输文 件传输给该文件接收终端; 例如, 文件发送终端根据返回的确认信息解析出文件接收终 端的名称为文件接收终端 B, 则将待传输文件通过建立的连接发送给文件接收终端 B。 当然, 文件接收终端返回的确认信息中还可以携带其他可以标识文件接收终端的信息, 本实施例不对确认信息中携带的具体信息进行限定。
在接收到文件接收终端返回的确认信息后, 为了控制文件接收终端显示的图片形 式, 本实施例提供的方法在由文件发送终端将待传输文件发送给文件接收终端时, 还包 括发送显示信息的步骤。 该显示信息包括但不限于显示文件的大小等信息, 即控制文件 接收终端显示该待传输文件的范围。 实际应用过程中, 文件发送终端可根据用户的触屏 动作设置显示信息, 例如, 如果检测到用户的触屏动作为多点触屏, 且两点轨迹逐渐分 开,在执行扩大显示文件的触屏动作的同时,另外一个点从文件发送终端的左边缘滑出, 则可判断出当前全屏显示的图片需要扩大显示, 且右半部分显示在文件发送终端, 左半 部分显示在文件接收终端, 针对该种触屏动作, 该显示信息中的显示范围可以为待传输 文件的左半部分的像素, 即控制文件接收终端显示待传输文件的左半部分; 如果检测到 用户的触屏动作从文件发送终端的右边缘滑出, 则可判断出当前全屏显示的图片需要扩 大显示, 且左半部分显示在文件发送终端, 右半部分显示在文件接收终端, 针对该种触 屏动作, 该显示信息为待传输文件的右半部分的像素, 即控制文件接收终端显示待传输 文件的右半部分。
除了采用上述确定显示信息的方式向文件接收终端发送对应的显示信息外,还可以 选择其他确定显示信息的方式, 同样也可以得到其他显示信息, 本实施例对此均不做具 体限定。 由于待传输文件的大小对于文件发送终端而言是已知的, 因而在根据触屏动作 确定显示待传输文件的哪部分之后, 文件发送终端能够确定本端及文件接收终端显示该 待传输文件的像素范围, 且无论文件发送终端向文件接收终端发送何种显示信息, 文件 发送终端向文件接收终端发送完待传输文件后, 均需要根据显示信息显示待传输文件。 例如, 如果文件发送终端向文件接收终端发送的显示信息为待传输文件的右半部分的像 素, 则文件发送终端显示待传输文件的左半部分; 如果文件发送终端向文件接收终端发 送的显示信息为待传输文件的左半部分的像素, 则文件发送终端显示待传输文件的右半 部分。
406: 文件接收终端根据接收到的待传输文件及显示信息显示待传输文件。
具体地, 由于文件接收终端之前接收到了指令类型为显示图片的文件传输指令, 因 此, 文件接收终端在接收到文件发送终端发送的待传输文件及显示信息之后, 即可根据 显示信息显示待传输文件, 且文件发送终端显示的内容和文件接收终端显示的内容合并 之后为整个的待传输文件。
需要说明的是, 为了达到两个终端同时显示一个文件的效果, 特别是显示同一图片 文件的效果, 在实施本实施例提供的方法时, 可采用相同规格的两个终端, 即文件发送 终端与文件接收终端的规格相同, 如两个终端型号相同, 具有相同的屏幕像素等等, 从 而保证一幅图片的两个部分分别显示在两个终端上之后, 能够达到拼接成完整图片的效 果。
另外, 由于本实施例提供的方法中, 需要文件发送终端和文件接收终端均可检测到 用户的触屏动作, 一旦触屏动作消失, 两个终端显示同一文件的情况也随即消失。 对于 触屏动作未消失的情况, 当文件发送终端和文件接收终端分别显示部分待传输文件后, 两个终端后续还可以继续发生触屏动作, 对于后续发生触屏动作之后的处理方式, 详见 如下步骤。
407: 文件发送终端检测后续的触屏动作, 根据检测到的触屏动作调整显示信息, 并将调整后的显示信息发送给文件接收终端, 同时调整显示的文件内容。
具体地,文件发送终端检测用户的触屏动作,并将检测到的触屏动作调整显示信息, 实际应用时, 可以根据两个终端上触屏的两点之间的距离实时调整相应的显示信息, 并 进行放大或缩小显示的文件。 例如, 可以设置距离增大时, 放大显示的文件, 或距离较 小时, 缩小显示的文件, 无论是放大还是缩小, 文件发送终端均可根据文件的显示情况 确定调整后的显示信息, 并将调整后的显示信息发送给文件接收终端, 以使两个终端同 时调整显示的文件内容。 408: 文件接收终端接收文件发送终端发送的调整后的显示信息, 并根据调整后的 显示信息调整显示的文件内容。
针对该步骤, 文件接收终端根据接收到的调整后的显示信息对显示的文件进行相应 的处理, 即根据调整后的显示信息中的像素来显示文件。
本实施例提供的方法,通过文件发送终端在确认检测到用户的触屏动作为预设的文 件传输动作后, 自动扫描与其建立连接的文件接收终端, 并根据预设的文件传输动作具 有的文件传输指令执行相应的传输操作, 实现根据检测到的触屏动作进行文件传输及显 示的操作, 不需要每次在传输文件时都选择使用的连接方式, 实现了通过简单地触屏动 作完成文件的快速传输及分屏显示; 另外, 通过文件接收终端检测用户的触屏动作, 并 与文件发送终端进行相应的信令交互, 使两个终端上原本独立的触摸屏操作, 合并为一 个功能操作集合, 以提高文件传输的准确性。 实施例四
本实施例提供了一种文件发送终端, 该文件发送终端用于执行上述实施例一、 实施 例二以及实施例三中发送文件的步骤, 参见图 5, 该文件发送终端包括:
检测模块 501, 用于检测用户的触屏动作;
确认模块 502, 用于在确认检测模块 501检测到的触屏动作为预设的文件传输动作 后, 根据检测到的触屏动作确认待传输文件;
扫描模块 503, 用于在确认检测模块 501检测到的触屏动作为预设的文件传输动作 后, 扫描与本终端建立连接的文件接收终端; 其中, 预设的文件传输动作具有相应的文 件传输指令;
传输模块 504, 用于根据文件传输指令执行相应的传输操作。
其中, 参见图 6, 该传输模块 504, 具体包括:
发送单元 5041,用于向扫描模块 503扫描到的文件接收终端发送对应的文件传输指 令, 以便接收到文件传输指令的文件接收终端在预设时间内检测到用户的触屏动作后, 返回确认信息;
接收单元 5042, 用于接收文件接收终端返回的确认信息;
传输单元 5043,用于将确认模块 502确认的待传输文件传输给返回确认信息的文件 接收终端。
其中,发送单元 5041,还用于如果扫描模块 503扫描到与本端建立连接的文件接收 终端的数量为多个, 则以广播的形式向扫描到的多个文件接收终端发送文件传输指令, 以便接收到文件传输指令的文件接收终端分别检测用户的触屏动作, 并在检测到用户的 触屏动作后, 返回确认信息。
参见图 7, 发送单元 5041, 具体包括:
确定子单元 5041A, 用于根据检测到的触屏动作确定指令类型;
发送子单元 5041B, 用于向文件接收终端发送携带确定子单元 5041A确定的指令类 型及文件信息的文件传输指令, 以便文件接收终端在根据接收到的文件信息确认支持指 令类型的操作后, 向文件发送终端返回确认信息;
其中, 文件信息包括文件名称、 格式、 类型、 大小中的至少一种。
具体地, 确定子单元 5041A, 具体用于如果检测到的触屏动作为单点的触屏动作, 且单点的触屏动作为预设的文件传输动作, 则确定指令类型为拷贝文件; 或者, 如果当 前全屏显示待传输文件, 且检测到的触屏动作为多点的触屏动作, 其中一个点的触屏动 作为预设的文件传输动作, 则确定指令类型为显示文件。
进一步地, 指令类型包括拷贝文件或显示文件, 参见图 8, 传输单元 5043, 具体包 括:
第一传输子单元 5043A, 用于如果文件传输指令携带的指令类型为拷贝文件, 则将 待传输文件传输给返回确认信息的文件接收终端, 以便文件接收终端接收并存储待传输 文件;
第二传输子单元 5043B, 用于如果文件传输指令携带的指令类型为显示文件, 则将 待传输文件及显示信息传输给返回确认信息的文件接收终端, 以便文件接收终端根据显 示信息显示待传输文件。
另外, 第二传输子单元 5043B, 还用于根据后续的触屏动作调整显示信息, 并将调 整后的显示信息发送给文件接收终端, 以便文件接收终端根据调整后的显示信息调整显 示的待传输文件。
本实施例提供的文件发送终端,通过在确认检测到用户的触屏动作为预设的文件传 输动作后, 自动扫描与其建立连接的文件接收终端, 并根据预设的文件传输动作具有的 文件传输指令执行相应的传输操作, 实现根据检测到的触屏动作进行文件传输操作, 不 需要每次在传输文件时都选择使用的传输方式, 实现了通过简单地触屏动作完成文件的 快速传输。 实施例五
本实施例提供了一种文件接收终端, 该文件接收终端用于执行上述实施例一、 实施 例二以及实施例三中接收文件的步骤, 参见图 9, 该文件接收终端包括: 接收模块 901, 用于接收与之建立连接的文件发送终端发送的文件传输指令; 检测模块 902, 用于在预设时间内检测用户的触屏动作;
返回模块 903, 用于在检测模块 902检测到用户的触屏动作后, 向文件发送终端返 回确认信息;
处理模块 904, 用于接收文件发送终端传输的文件。
其中, 接收模块 901接收到的文件传输指令携带指令类型及文件信息;
返回模块 903, 具体用于在根据接收模块 901接收到的文件信息确认支持指令类型 的操作后, 向文件发送终端返回确认信息;
其中, 文件信息包括文件名称、 格式、 类型、 大小中的至少一种。
本实施例提供的文件接收终端, 通过在接收到文件发送终端发送的指令后, 检测用 户的触屏动作, 并根据检测到的触屏动作向文件发送终端返回确认, 使文件发送终端到 文件接收终端进行文件传输操作, 不仅实现了通过简单地触屏动作完成文件的快速传 输, 还可提高文件传输的准确性。 实施例六
本实施例提供了一种文件传输的***,参见图 10,该***包括:文件发送终端 1001 和文件接收终端 1002;
其中,文件发送终端 1001如上述实施例四提供的文件发送终端;文件接收终端 1002 如上述实施例五提供的文件接收终端。
本实施例提供的***,通过文件发送终端在确认检测到用户的触屏动作为预设的文 件传输动作后, 自动扫描与其建立连接的文件接收终端, 并根据预设的文件传输动作具 有的文件传输指令执行相应的传输操作, 实现根据检测到的触屏动作进行文件传输操 作, 不需要每次在传输文件时都选择使用的传输方式, 实现了通过简单地触屏动作完成 文件的快速传输; 另外, 通过文件接收终端检测用户的触屏动作, 并与文件发送终端进 行相应的信令交互, 使两个终端上原本独立的触摸屏操作, 合并为一个功能操作集合, 以提高文件传输的准确性。 需要说明的是: 上述实施例提供的文件发送终端和文件接收终端在进行文件传输 时, 仅以上述各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功 能分配由不同的功能模块完成, 即将终端的内部结构划分成不同的功能模块, 以完成以 上描述的全部或者部分功能。另外,上述实施例提供的文件传输的***、文件发送终端、 文件接收终端与文件传输的方法实施例属于同一构思, 其具体实现过程详见方法实施 例, 这里不再赘述。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来 完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读 存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原 则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权利要求
1、 一种文件传输的方法, 其特征在于, 所述方法包括:
文件发送终端检测到用户的触屏动作;
在确认所述触屏动作为预设的文件传输动作后, 根据所述触屏动作确认待传输文 件, 并扫描与所述文件发送终端建立连接的文件接收终端; 其中, 所述预设的文件传输 动作具有相应的文件传输指令;
所述文件发送终端根据所述文件传输指令执行相应的传输操作。
2、 根据权利要求 1所述的方法, 其特征在于, 所述文件发送终端根据所述文件传 输指令执行相应的传输操作包括:
向所述文件接收终端发送对应的文件传输指令, 以便接收到所述文件传输指令的文 件接收终端在预设时间内检测到用户的触屏动作后, 向所述文件发送终端返回确认信 息;
接收所述文件接收终端返回的确认信息, 并将所述待传输文件传输给返回所述确认 信息的文件接收终端。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 如果扫描到与所述文件发送终 端建立连接的文件接收终端的数量为多个, 所述向所述文件接收终端发送文件传输指 令, 具体包括:
以广播的形式向扫描到的多个文件接收终端发送文件传输指令, 以便接收到所述文 件传输指令的文件接收终端分别检测用户的触屏动作, 并在检测到用户的触屏动作后, 向所述文件发送终端返回确认信息。
4、 根据权利要求 2或 3所述的方法, 其特征在于, 所述向所述文件接收终端发送 对应的文件传输指令, 具体包括:
根据检测到的触屏动作确定指令类型;
向所述文件接收终端发送携带指令类型及文件信息的文件传输指令, 以便所述文件 接收终端在根据接收到的所述文件信息确认支持所述指令类型的操作后, 向所述文件发 送终端返回确认信息;
其中, 所述文件信息包括文件名称、 格式、 类型、 大小中的至少一种。
5、 根据权利要求 4所述的方法, 其特征在于, 所述根据检测到的触屏动作确定指 令类型, 具体包括:
如果检测到的触屏动作为单点的触屏动作, 且所述单点的触屏动作为预设的文件传 输动作, 则确定指令类型为拷贝文件; 或者,
如果当前全屏显示所述待传输文件, 且检测到的触屏动作为多点的触屏动作, 其中 至少一个点的触屏动作为预设的文件传输动作, 则确定指令类型为显示文件。
6、 根据权利要求 1-5任一项所述的方法, 其特征在于, 所述预设的文件传输动作 形成为所述预设的文件传输动作对应的轨迹为滑过所述文件发送终端边缘的轨迹, 或为 预设形状的轨迹。
7、 根据权利要求 4-6任一项所述的方法, 其特征在于, 所述指令类型包括拷贝文 件或显示文件, 所述将所述待传输文件传输给返回所述确认信息的文件接收终端, 具体 包括:
如果所述文件传输指令携带的指令类型为拷贝文件, 则将所述待传输文件传输给返 回所述确认信息的文件接收终端, 以便所述文件接收终端接收并存储所述待传输文件; 如果所述文件传输指令携带的指令类型为显示文件, 则将所述待传输文件及显示信 息传输给返回所述确认信息的文件接收终端, 以便所述文件接收终端根据所述显示信息 显示所述待传输文件。
8、 根据权利要求 7所述的方法, 其特征在于, 所述将所述待传输文件及显示信息 传输给返回所述确认信息的文件接收终端, 以便所述文件接收终端根据所述显示信息显 示所述待传输文件之后, 还包括:
根据后续的触屏动作调整显示信息, 并将调整后的显示信息发送给所述文件接收终 端, 以便所述文件接收终端根据调整后的显示信息调整显示的所述待传输文件。
9、 一种文件发送终端, 其特征在于, 所述终端包括:
检测模块, 用于检测用户的触屏动作;
确认模块, 用于在确认所述检测模块检测到的触屏动作为预设的文件传输动作后, 根据检测到的触屏动作确认待传输文件;
扫描模块, 用于在确认所述检测模块检测到的触屏动作为预设的文件传输动作后, 扫描与本终端建立连接的文件接收终端; 其中, 所述预设的文件传输动作具有相应的文 件传输指令;
传输模块, 用于根据所述文件传输指令执行相应的传输操作。
10、 根据权利要求 9所述的终端, 其特征在于, 所述传输模块, 具体包括: 发送单元, 用于向所述扫描模块扫描到的文件接收终端发送对应的文件传输指令, 以便接收到所述文件传输指令的文件接收终端在预设时间内检测到用户的触屏动作后, 返回确认信息;
接收单元, 用于接收所述文件接收终端返回的确认信息;
传输单元,用于将所述确认模块确认的待传输文件传输给返回所述确认信息的文件 接收终端。
11、 根据权利要求 9或 10所述的终端, 其特征在于, 所述发送单元, 还用于如果 所述扫描模块扫描到与本端建立连接的文件接收终端的数量为多个, 则以广播的形式向 扫描到的多个文件接收终端发送文件传输指令, 以便接收到所述文件传输指令的文件接 收终端分别检测用户的触屏动作, 并在检测到用户的触屏动作后, 返回确认信息。
12、 根据权利要求 10或 11所述的终端, 其特征在于, 所述发送单元, 具体包括: 确定子单元, 用于根据检测到的触屏动作确定指令类型;
发送子单元,用于向所述文件接收终端发送携带所述确定子单元确定的指令类型及 文件信息的文件传输指令, 以便所述文件接收终端在根据接收到的所述文件信息确认支 持所述指令类型的操作后, 向所述文件发送终端返回确认信息;
其中, 所述文件信息包括文件名称、 格式、 类型、 大小中的至少一种。
13、 根据权利要求 12所述的终端, 其特征在于, 所述确定子单元, 具体用于如果 检测到的触屏动作为单点的触屏动作, 且所述单点的触屏动作为预设的文件传输动作, 则确定指令类型为拷贝文件; 或者, 如果当前全屏显示所述待传输文件, 且检测到的触 屏动作为多点的触屏动作, 其中至少一个点的触屏动作为预设的文件传输动作, 则确定 指令类型为显示文件。
14、 根据权利要求 12所述的终端, 其特征在于, 所述指令类型包括拷贝文件或显 示文件, 所述传输单元, 具体包括:
第一传输子单元, 用于如果所述文件传输指令携带的指令类型为拷贝文件, 则将所 述待传输文件传输给返回所述确认信息的文件接收终端, 以便所述文件接收终端接收并 存储所述待传输文件;
第二传输子单元, 用于如果所述文件传输指令携带的指令类型为显示文件, 则将所 述待传输文件及显示信息传输给返回所述确认信息的文件接收终端, 以便所述文件接收 终端根据所述显示信息显示所述待传输文件。
15、 根据权利要求 14所述的终端, 其特征在于, 所述第二传输子单元, 还用于根 据后续的触屏动作调整显示信息, 并将调整后的显示信息发送给所述文件接收终端, 以 便所述文件接收终端根据调整后的显示信息调整显示的所述待传输文件。
16、 一种文件传输的方法, 其特征在于, 所述方法包括:
文件接收终端接收与之建立连接的文件发送终端发送的文件传输指令, 并在预设时 间内检测用户的触屏动作;
在检测到用户的触屏动作后, 向所述文件发送终端返回确认信息;
接收所述文件发送终端根据所述确认信息传输的文件。
17、 根据权利要求 16所述的方法, 其特征在于, 所述文件传输指令携带指令类型 及文件信息;
所述向所述文件发送终端返回确认信息, 具体包括:
根据接收到的文件信息确认支持所述指令类型的操作后, 向所述文件发送终端返回 确认信息;
其中, 所述文件信息包括文件名称、 格式、 类型、 大小中的至少一种。
18、 一种文件接收终端, 其特征在于, 所述终端包括:
接收模块, 用于接收与之建立连接的文件发送终端发送的文件传输指令; 检测模块, 用于在预设时间内检测用户的触屏动作;
返回模块, 用于在所述检测模块检测到用户的触屏动作后, 向所述文件发送终端返 回确认信息;
处理模块, 用于接收所述文件发送终端传输的文件。
19、 根据权利要求 18所述的终端, 其特征在于, 所述接收模块接收到的文件传输 指令携带指令类型及文件信息;
所述返回模块, 具体用于根据所述接收模块接收到的文件信息确认支持所述指令类 型的操作后, 向所述文件发送终端返回确认信息;
其中, 所述文件信息包括文件名称、 格式、 类型、 大小中的至少一种。
PCT/CN2013/074637 2012-04-24 2013-04-24 文件传输的方法及终端 WO2013159700A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP13781119.6A EP2843523B1 (en) 2012-04-24 2013-04-24 File transmission method and terminal
US14/523,753 US20150046837A1 (en) 2012-04-24 2014-10-24 File Transfer Method and Terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210123205.X 2012-04-24
CN201210123205.XA CN102707880B (zh) 2012-04-24 2012-04-24 文件传输的方法及终端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/523,753 Continuation US20150046837A1 (en) 2012-04-24 2014-10-24 File Transfer Method and Terminal

Publications (1)

Publication Number Publication Date
WO2013159700A1 true WO2013159700A1 (zh) 2013-10-31

Family

ID=46900725

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/074637 WO2013159700A1 (zh) 2012-04-24 2013-04-24 文件传输的方法及终端

Country Status (4)

Country Link
US (1) US20150046837A1 (zh)
EP (1) EP2843523B1 (zh)
CN (1) CN102707880B (zh)
WO (1) WO2013159700A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104821929A (zh) * 2014-03-21 2015-08-05 腾讯科技(北京)有限公司 多媒体数据分享方法及终端

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707880B (zh) * 2012-04-24 2015-01-07 华为终端有限公司 文件传输的方法及终端
CN102832975B (zh) 2012-08-14 2015-03-11 华为终端有限公司 数据传输方法、装置以及具有触摸显示屏的终端
CN103795747A (zh) 2012-10-30 2014-05-14 中兴通讯股份有限公司 一种通过Wi-Fi Direct的文件传输方法和装置
CN103870755B (zh) * 2012-12-10 2016-06-29 广东欧珀移动通信有限公司 同一电子装置的多个用户之间转移文件的方法和装置
CN102984393B (zh) * 2012-12-12 2015-06-17 努比亚技术有限公司 一种移动终端之间传输文件的方法及移动终端
CN103885684B (zh) * 2012-12-20 2017-10-10 三星电子(中国)研发中心 定向传输方法及采用该方法的便携式电子设备
CN103237086B (zh) * 2013-05-15 2017-03-01 努比亚技术有限公司 一种信息传输***和信息传输方法
CN103440095A (zh) * 2013-06-17 2013-12-11 华为技术有限公司 文件发送方法及终端
CN104468141A (zh) * 2013-09-18 2015-03-25 上海本星电子科技有限公司 扫描式无线数据群发***
CN104468686A (zh) * 2013-09-23 2015-03-25 上海本星电子科技有限公司 电子书包文件传输***
CN103500064A (zh) * 2013-09-25 2014-01-08 华为技术有限公司 文件传输方法及终端设备
CN104516661B (zh) * 2013-09-29 2020-09-25 北京三星通信技术研究有限公司 一种用于标识、发送、获取、传输数据的方法及装置
CN108848567B (zh) * 2013-10-31 2022-10-04 华为终端有限公司 一种内容共享的方法及装置
CN103731186B (zh) * 2013-12-23 2018-05-01 上海斐讯数据通信技术有限公司 一种传输文件的方法及传输终端
CN103729125A (zh) * 2013-12-30 2014-04-16 宇龙计算机通信科技(深圳)有限公司 一种数据共享操作方法及终端
CN104796308B (zh) * 2014-01-16 2020-06-23 腾讯科技(深圳)有限公司 设备的网络互联方法和***
CN105094667B (zh) * 2015-06-29 2018-01-26 北京金山安全软件有限公司 一种文件上传方法及装置
CN105101057A (zh) * 2015-07-08 2015-11-25 广东欧珀移动通信有限公司 一种终端数据的共享方法及终端
CN105119984B (zh) * 2015-08-07 2019-03-08 小米科技有限责任公司 发送文件的方法及装置
WO2017045112A1 (zh) * 2015-09-15 2017-03-23 武克易 视频数据信号传输方法及装置
CN106550315A (zh) * 2015-09-21 2017-03-29 中兴通讯股份有限公司 一种跨终端划屏传输文件的方法及终端
CN105376318A (zh) * 2015-11-23 2016-03-02 小米科技有限责任公司 文件传输方法、装置及***
CN105813226A (zh) * 2016-04-29 2016-07-27 乐视控股(北京)有限公司 一种文件传输方法及装置
CN107682083B (zh) * 2017-11-01 2020-04-24 珠海市魅族科技有限公司 一种短距离文件传输方法及装置
CN117544614A (zh) * 2019-05-20 2024-02-09 北京小米移动软件有限公司 文件传输方法、装置及计算机可读存储介质
CN110300186B (zh) * 2019-07-15 2022-05-13 中国科学院计算机网络信息中心 一种基于边缘计算技术的点对点文件传输方法
CN111147597B (zh) * 2019-12-30 2023-04-18 深圳移航通信技术有限公司 文件传输方法、终端、电子设备及存储介质
CN111212411B (zh) * 2019-12-31 2023-11-14 宇龙计算机通信科技(深圳)有限公司 文件传输方法、装置、存储介质以及终端
CN111327769B (zh) 2020-02-25 2022-04-08 北京小米移动软件有限公司 多屏互动方法及装置、存储介质
CN111479219B (zh) * 2020-05-11 2022-03-11 北京三快在线科技有限公司 移动通信方法、装置、终端及存储介质
CN117008777A (zh) * 2020-10-30 2023-11-07 华为技术有限公司 一种跨设备的内容分享方法、电子设备及***

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945499A (zh) * 2010-09-06 2011-01-12 深圳市同洲电子股份有限公司 文件传输的方法、终端及***
CN102271179A (zh) * 2010-06-02 2011-12-07 希姆通信息技术(上海)有限公司 触摸式移动终端及其发送文件、接收文件的方法
US20120077436A1 (en) * 2010-09-23 2012-03-29 Vikas Shankar Konded Method and apparatus to transfer files between two touch screen interfaces
CN102419689A (zh) * 2011-10-27 2012-04-18 康佳集团股份有限公司 一种基于触摸屏的手势滑动传送文件方法和***
CN102707880A (zh) * 2012-04-24 2012-10-03 华为终端有限公司 文件传输的方法及终端

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090140986A1 (en) * 2007-11-30 2009-06-04 Nokia Corporation Method, apparatus and computer program product for transferring files between devices via drag and drop
JP2009146030A (ja) * 2007-12-12 2009-07-02 Konica Minolta Holdings Inc 情報端末システム
JP4364273B2 (ja) * 2007-12-28 2009-11-11 パナソニック株式会社 携帯端末装置及び表示制御方法並びに表示制御プログラム
US8077157B2 (en) * 2008-03-31 2011-12-13 Intel Corporation Device, system, and method of wireless transfer of files
US20100083189A1 (en) * 2008-09-30 2010-04-01 Robert Michael Arlein Method and apparatus for spatial context based coordination of information among multiple devices
US8219937B2 (en) * 2009-02-09 2012-07-10 Microsoft Corporation Manipulation of graphical elements on graphical user interface via multi-touch gestures
US8121640B2 (en) * 2009-03-19 2012-02-21 Microsoft Corporation Dual module portable devices
CN101930258B (zh) * 2009-06-22 2012-09-19 鸿富锦精密工业(深圳)有限公司 电子设备及其文件操作方法
US8756532B2 (en) * 2010-01-21 2014-06-17 Cisco Technology, Inc. Using a gesture to transfer an object across multiple multi-touch devices
FR2956547B1 (fr) * 2010-02-15 2012-09-14 Sagem Wireless Procede et un systeme de transfert d'une image entre deux appareils de telephonie mobile
US8539384B2 (en) * 2010-02-25 2013-09-17 Microsoft Corporation Multi-screen pinch and expand gestures
CN102215208A (zh) * 2010-04-02 2011-10-12 上海科斗电子科技有限公司 与触摸屏关联的数据传送***
US8819798B2 (en) * 2011-12-29 2014-08-26 Ebay Inc. System and method for transferring states between electronic devices
US9684389B2 (en) * 2012-03-01 2017-06-20 Nokia Technologies Oy Method and apparatus for determining an operation to be executed and associating the operation with a tangible object

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271179A (zh) * 2010-06-02 2011-12-07 希姆通信息技术(上海)有限公司 触摸式移动终端及其发送文件、接收文件的方法
CN101945499A (zh) * 2010-09-06 2011-01-12 深圳市同洲电子股份有限公司 文件传输的方法、终端及***
US20120077436A1 (en) * 2010-09-23 2012-03-29 Vikas Shankar Konded Method and apparatus to transfer files between two touch screen interfaces
CN102419689A (zh) * 2011-10-27 2012-04-18 康佳集团股份有限公司 一种基于触摸屏的手势滑动传送文件方法和***
CN102707880A (zh) * 2012-04-24 2012-10-03 华为终端有限公司 文件传输的方法及终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104821929A (zh) * 2014-03-21 2015-08-05 腾讯科技(北京)有限公司 多媒体数据分享方法及终端

Also Published As

Publication number Publication date
CN102707880A (zh) 2012-10-03
EP2843523A4 (en) 2015-04-08
US20150046837A1 (en) 2015-02-12
CN102707880B (zh) 2015-01-07
EP2843523B1 (en) 2020-03-18
EP2843523A1 (en) 2015-03-04

Similar Documents

Publication Publication Date Title
WO2013159700A1 (zh) 文件传输的方法及终端
USRE49283E1 (en) Mobile terminal device, and method and computer readable medium for the same
US9473233B2 (en) Method and apparatus for transmitting data using relay device
JP6387370B2 (ja) 電子機器及び電子機器の動作方法
KR101943987B1 (ko) 디바이스 간의 페이지 공유 시스템 및 방법
JP6228676B2 (ja) 接続状態プロンプティング方法および装置
US10631216B2 (en) Information processing apparatus, communication terminal, and non-transitory storage medium storing instructions executable by information processing apparatus
EP2385689A1 (en) Mobile terminal and controlling method thereof
US20190146652A1 (en) Cross-interface data transfer method and terminal
US20100304674A1 (en) System and method for connecting bluetooth devices
JP5421762B2 (ja) 表示装置、その制御方法、表示システム
US9497336B2 (en) Display program and display apparatus
JP2015097096A (ja) モバイルデバイスのための外部タッチスクリーン
JP7328900B2 (ja) ファイル伝送方法、装置、およびコンピュータ読み取り可能な記憶媒体
WO2013174265A1 (zh) 数据传输方法和装置
EP2651179A1 (en) Method of reducing a waiting time when cancelling a connection and an electronic device therefor
KR20150032152A (ko) 전자 장치 간의 편집 동작을 실행하는 방법 및 장치
JP2019153072A (ja) 端末装置のためのコンピュータプログラムと端末装置
CN108811177B (zh) 一种通信方法及终端
WO2016107013A1 (zh) 传输处理、远程处理方法、装置及计算机存储介质
US11797470B2 (en) Electronic device and control method thereof
JP6249064B2 (ja) プログラム、および携帯端末
CN109085972B (zh) 长截屏的方法、装置及移动终端
CN115396429A (zh) 文件传输方法、装置、存储介质及电子设备
JP2012174044A (ja) 通信装置、通信装置の制御方法およびプログラム

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: 13781119

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2013781119

Country of ref document: EP