1. Technical Field
The present disclosure relates to data transmitting technology, and particularly, to a data transmitting media capable of displaying data transmitting progress, a data transmitting device, and a data receiving device involved in the data transmitting process.
2. Description of the Related Art
By conventional data transmitting methods, when attempting to transmit data from an electronic device, such as a computer, to an external device, such as a mobile phone, a typical data transmission progress window may be displayed to show data transmission progress. This progress window is not intuitive.
The components in the drawing are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The device 1 includes a touch detecting unit 10, a control unit 11, a display unit 12, a data transmitting unit 13, and a storage unit 14. The display unit 12 may be a touch screen. The touch detecting unit 10 generates touch signals in response to the touch of a user on the display unit 12.
The control unit 11 includes a touch determining module 110 and an executing module 112. The touch determining module 110 determines a first starting position, a touch path, and a first end position of the touch of a user according to the touch signals from the touch detecting unit 10. The touch path may be a user's touch track, or any predefined type of touch path between the first starting position and the first end position, for example, the touch path is the shortest path between the first starting position and the first end position. The executing module 112 determines which icon displayed on a first user interface of the display unit 12 is selected according to the first starting position, and mark the selected icon, for example, highlight the selected icon.
The executing module 112 further determines whether the first end position is on the edge/boundary of the first user interface, and controls the data transmitting unit 13 to transmit the data corresponding to the selected icon, position information associated with the first starting position, the touch path, and the first end position to the receiving device 2, if the first end position is on the edge/boundary of the first user interface. In the embodiment, the first user interface occupies the entire display area of the display unit 12. The storage unit 14 stores a variety of data.
The control unit 11 further includes a calculating module 111. The calculating module 111 calculates a first transmission progress according to the size of selected data, a transmission speed, and a transmission time. The executing module 112 moves the selected icon from the first starting position to the first end position along the touch path according to the transmission progress. The selected icon gradually merges into the edge/boundary of the first user interface and finally disappears when the transmission is finished.
The receiving device 2 includes a display unit 20, a data receiving unit 21, a storage unit 22, and a control unit 23. The display unit 20 may be a touch screen. The data receiving unit 21 receives the selected data, the position information associated with the first starting position, the touch path, and the first end position from the transmitting device 1. The control unit 23 includes a calculating module 230 and a second executing module 231. The calculating module 230 determines a second starting position, a moving path, and a second end position according to the position information associated with the first starting position, the touch path, and the first end position. The icon corresponding to the received data is preset to be displayed on the second starting position when the data transmission starts, and gradually moves to the second end position along the moving path during data transmission.
The calculating module 230 further calculates a second transmission progress according to the size of selected data, a transmission speed, and a transmission time. The second executing module 231 moves the selected icon from the second starting position to the second end position along the moving path according to the second transmission progress. The storage unit 22 stores the received data.
In the embodiment, the display unit 12 and the display unit 20 are both touch screens. The resolutions of the two touch screens are the same.
In the embodiment, the touch determining module 110 determines the coordinate of the first starting position A is (a, b), the coordinate of the first end position B is (a′, b′), and a first angle formed between a horizontal line including the first staring position A and the touch path is θ. The executing module 112 controls the data transmitting unit 13 to transmit the data associated with the icon 15, the coordinate of the first starting position A, the coordinate of the first end position B and the first angle θ to the receiving device 2. The calculating module 111 determines the already transmitted size G of the data corresponding to the icon 15 according to the formula G=V*T, where V is the transmission speed V and T is the undergoing transmission time T. Thus, the calculating module 111 determines the first transmission progress P according to the formula P=G/Q, where Q is the total size of the data. Furthermore, the calculating module 111 determines a first displacement S between the first starting position A and the first end position B according to the coordinates A (a, b) and B (a′, b′). Then, the executing module 112 moves the icon 15 from the first starting position A to the first end position B along the touch path according to the first transmission progress P and the first displacement S during data transmission. When data transmission is finished, the icon 15 is moved to the first end position B and disappears.
When the data receiving unit 21 receives the data, the coordinate of the first starting position A, the coordinate of the first end position B, and the first angle θ, the second executing module 231 controls the display unit 20 to display the second user interface. The calculating module 230 determines the second starting position A′, the moving path, and the second end position B′ according to the first starting position A, the touch path, and the first end position B. In the embodiment, the coordinate of the second end position B′ displayed on the second user interface is preset to be equal to that of the first starting position A. A second angle formed between a horizontal line including the second starting position and the second end position is equal to the first angle. Thus, the coordinate of the second end position B′ is (a, b). The calculating module 230 determines a first displacement S between the first starting position A and the first end position according the coordinates A (a, b) and B (a′, b′), and determines the coordinate of the second starting position A′ is (c, d) according to the displacement S, the second angle, and the coordinate of the second end position B′.
The calculating module 230 determines the already received size G′ of the data corresponding to the icon 15 according to the formula G′=V*T, where V is the transmission speed and T is the undergoing transmission time T. Thus, the calculating module 230 determines the second transmission progress P′ according to the formula P′=G′/Q, where Q is the total size of the data. Furthermore, the calculating module 230 determines a second displacement S′ between the second starting position A′ and the second end position B′ according to the coordinates A′ (c, d) and B′ (a, b), then, the second executing module 231 moves the icon from the second starting position A′ to the second end position B′ along the moving path according to the second transmission progress P′ and the second displacement S′ during data transmission. When data transmission is finished, the icon 15 is moved to the second end position B′.
Referring to
In step S500, the display unit 12 presents a first touch user interface to display a plurality of icons. The display unit 12 may be a touch screen.
In step S501, the touch detecting unit 10 generates touch signals in response to user's touch on the display unit 12.
In step S502, the touch determining module 110 determines the first starting position, the touch path, and the first end position of the touch of the user according to the touch signals from the touch detecting unit 10. In addition, determines which icon displayed on the first user interface of the display unit 12 is selected according to the first starting position. The touch path may be a touch track of a user, or any predefined type of path between the first starting position and the first end position, such as the shortest path between the first starting position and the first end position.
In step S503, the executing module 112 determines whether the first end position is on the edge/boundary of the first user interface, if yes, the procedure goes to step S504, otherwise, the procedure returns to S501.
In step S504, the executing module 112 controls the data transmitting unit 13 to transmit the data corresponding to the selected icon, position information associated with the first starting position, the touch path, and the first end position to the data receiving device 2.
In the embodiment, the first user interface occupies the entire display area of the display unit 12.
In step S505, the calculating module 111 calculates a first transmission progress according to size of selected data, a transmission speed, and a transmission time.
In step S506, the executing module 112 moves the selected icon from the first starting position to the first end position along the touch path according to the transmission progress.
At the same time going on the step S505, the method further includes:
In step S507, the second executing module 231 controls the display unit 20 to display a second user interface.
In step S508, the calculating module 230 determines a second starting position, a moving path, and a second end position according to the position information associated with the first starting position, the touch path, and the first end position received from the transmitting device 1.
In step S509, the calculating module 230 calculates a second transmission progress according to size of selected data, a transmission speed, and a transmission time.
In step S510, the second executing module 231 moves the selected icon from the second starting position to the second end position along the moving path according to the second transmission progress.
In step S511, the storage unit 22 stores the received data.
It is understood that the present disclosure may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the disclosure is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
201110254653.9 | Aug 2011 | CN | national |