1. Technical Field
The present disclosure relates to communication systems and methods, and more particularly, to a file transmission method.
2. Description of Related Art
At present, transferring files, such as pictures, videos, and sound files, between two portable devices, such as IPHONES and smart mobile phones, is achieved using BLUETOOTH, file transfer protocols, or emails. These file transfer modes require frequent reference to menu options, and may be boring and inconvenient to users, for example, especially older users.
The disclosure, including the accompanying drawings in which like references indicate similar elements, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM.
The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In one embodiment, the first electronic device 10 includes a plurality of function modules, such as a sending operation detection module 11, a data packet sending module 12, a reply detection module 13, and a first communication module 14. The modules 11-14 may comprise computerized code in the form of one or more programs (computer-readable program code) that are stored in a storage device 16 of the first electronic device 10. The computerized code includes instructions that are executed by a processor 17 of the first electronic device 10 to provide the below-described functions of the modules 11-14 illustrated in
The second electronic device 20 also includes a plurality of function modules, such as a receiving operation module 21, a data packet reply module 22, and a second communication module 23. The modules 21-23 may comprise computerized code in the form of one or more programs (computer-readable program code) that are stored in a storage device 25 of the second electronic device 20. The computerized code includes instructions that are executed by a processor 26 of the second electronic device 20 to provide the below-described functions of the modules 11-14 illustrated in
In block S201, the first electronic device 10 displays icons of files, such as icons representing pictures, videos, games, and sound files, on the touch screen 15 of the first electronic device 10.
In block S203, the sending operation detection module 11 detects a predetermined sending operation on a selected file. As shown in
In block S205, the data packet sending module 12 generates a request data packet for establishing a connection with another electronic device, and sends the request data packet to a wireless network. The request data packet includes a source port (e.g., the source port=x) specifying where the packet comes from and a destination port specifying where the packet is going.
In block S207, the reply detection module 13 detects if a reply data packet has been received within a preset time interval, such as 10 seconds. If no reply data packet has been received within the preset time interval, or if a reply data packet has been received outside the preset time interval, the first electronic device 10 cancels the sending operation, and the procedure ends. Otherwise, if a reply data packet has been received from an electronic device, such as the second electronic device 20, within the preset time interval, block S209 is implemented.
In block S209, the first communication module 14 establishes the connection between the first electronic device 10 and the second electronic device 20 via the wireless network.
In block S211, the first communication module 14 sends the selected file to the second electronic device 20 via the wireless network.
In block S301, the receiving operation detection module 21 detects a predetermined receiving operation on the touch screen 24 of the second electronic device 20. The predetermined receiving operation may be in a designated region or a blank region of the touch screen 24. The predetermined receiving operation may be similar to the predetermined sending operation (e.g., drawing a complete or incomplete circle), or an operation preset to match the predetermined sending operation, for example, the predetermined sending operation may be defined as drawing an incomplete circle, and the matched predetermined receiving operation may be defined as drawing a complete circle.
In block S303, the second communication module 23 retrieves the request data packet from the wireless network.
In block S305, the data packet reply module 24 generates a reply data packet according to the request data packet, and sends the reply data packet to the first electronic device 10. For example, the data packet reply module 24 sets the source port (e.g., the source port=x) of the request data packet as a destination port (e.g., the destination port=x) of the reply data packet.
In block S307, the second communication module 23 establishes the connection between the first electronic device 10 and the second electronic device 20 via the wireless network.
In block S309, the second electronic device 20 receives the selected file from the first electronic device 10, and stores the selected file (now the received file) in the storage device 25.
In block S311, the second electronic device 20 displays an icon of the selected file on a blank region of the touch screen 24 (as shown in
The above embodiments enable the transmission of files between electronic devices, making it as easy as picking pebbles from one place and putting them in another, and users do not need to perform multiple operations on the electronic devices.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
99142724 | Dec 2010 | TW | national |