The present invention relates to a data transmission method, and particularly relates to a data transmission method which can transmit data between different computers without a network.
In some situations, the user may use different connected hosts (e.g., computers) to form a complicated data processing system. Under such architecture, the user may need to perform data transmission between different hosts. A conventional data transmission method needs connecting the hosts to a network for data exchanging. However, if no network is provided, conventional storage media such as a flash or an optical disc is needed for data exchanging. Therefore, the user may feel inconvenient.
Therefore, one objective of the present invention is to provide a data transmission method which allows different hosts to exchange data without using a network, and can use a simple architecture which allows different hosts to exchange data while using the network.
One embodiment of the present invention discloses a data transmission method, applied to a data transmission device connected to a first host and a second host, comprising: (a) activating a console of the first host via a trigger operation and acquiring a source path of target data in the first host; (b) acquiring the target data from the source path and copying the target data to a storage circuit inside or outside the data transmission device; and (c) copying the target data from the storage circuit to the second host.
In view of above-mentioned embodiments, the data transmission method and the data transmission device provided by the present invention can allow different hosts to exchange data without using a network, and can use a simple architecture which allows different hosts to exchange data while using the network.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Several embodiments are provided in following descriptions to explain the concept of the present invention. Each component in following descriptions can be implemented by hardware (e.g. a device or a circuit) or hardware with software (e.g. a program installed to a processor). Besides, the method in following descriptions can be executed by programs stored in a non-transitory computer readable recording medium such as a hard disk, an optical disc or a memory. Additionally, the term “first”, “second”, “third” in following descriptions are only for the purpose of distinguishing different one elements, and do not mean the sequence of the elements. For example, a first device and a second device only mean these devices can have the same structure but are different devices.
The control device 107 can receive the user's input and send a control command to the switch circuit 103 to change the connection path of the switch circuit 103, so that the user can control the first host H_1 or the second host H_2. The control device 107 can also receive user inputs to make at least one of the first host H_1, the second host H_2, the processing circuit 101, the storage circuit 105, and the display device 109 perform corresponding operations. The control device 107 can be any type of input device, such as a mouse, a keyboard, a voice input device, a touch pad, a touch control display . . . etc. The storage circuit 105 can be any type of storage component, such as a memory, a hard disk . . . etc. The storage circuit 105 can be provided inside or outside the data transmission device 100. The display device 109 can be any electronic device with a display function, such as a display. The first host H_1 and the second host H_2 may respectively have a dedicated processing circuit and a dedicated storage circuit. For example, the first host H_1 and the second host H_2 may be two different computer hosts. The first port CP_1 and the second port CP_2 can be any type of connection interface, such as an HDMI (High Definition Multimedia Interface) interface or a USB interface.
In following embodiments, the first host H_1 and the second host H_2 are two different computer hosts, and the display device 109 is independent from the first host H_1 and the second host H_2. For example, the first host H_1 and the second host H_2 are two different computer hosts, and the display device 109 is an independent display, but the present invention is not limited to this arrangement. The control device 107 and the display device 109 can be integrated into a notebook. Also, the first host H_1 and the second host H_2 can also be notebooks.
Use a trigger operation to activate a console of the first host H_1 and to acquire the source path of the target data in the first host. The target data can be any type of data, such as files, folders, bits, and bytes.
Acquire the target data from the source path and copy the target data to the storage circuit 105.
Copy the target data from the storage circuit 105 to the second host H_2.
In one embodiment, the trigger region 301 is a console window corresponding to the console. Also, the console is activated and the source path of C:\>C:\abcd.txt of the target data TD is displayed, after the user drags the target data TD to the trigger region 301. Please note that the source path C:\>C:\abcd.txt is only an example. In one embodiment, if the user does not disable the drag of the target data TD (for example, still pressing the left button of the mouse), and drags the target data TD out from the trigger region 301, the target data TD is not be copied. If the user drags the target data TD to the trigger region 301 and then disables the drag (for example, releases the left button of the mouse), the target data TD is acquired via the source path C:\>C:\abcd.txt and copied to the storage circuit 105.
After the target data TD is copied to the storage circuit 105, the target data TD can be copied to the second host H_2. This copy operation can be automatically performed by the processing circuit 101, or manually performed by the user. In one embodiment, after the target data is copied to the storage circuit 105 but before the target data TD is copied to the second host H_2, the switch circuit 103 switches the control to the second host H_2. That is, in such case, the user controls the second host H_2 via the control device 107 rather than controls the first host H_1, and the display device 109 displays the screen generated by the second host H_2 rather than the screen generated by the first host H_1.
Since the target data TD is copied via activating the console, the above-mentioned operations can be performed via the operating system (OS) used by the first host H_1, without using any other software. The operating system described here may vary depending on the type of the first host H_1, for example, it may be windows or linux used by a computer, or an operating system of a mobile electronic device such as android and IOS.
In one embodiment, after the target data TD is copied to the storage circuit 105 and switched by the switch circuit 103, the processing circuit 101 can automatically copy the target data TD from the storage circuit 105 to the switched current host. Alternatively, after switch, the user may manually copy the target data from the storage circuit 105 to the current host. In other embodiments, more than one trigger regions can also be used to copy the target data TD to the required host. For example, when the target data is to be copied from the first host to the third host, the target data can be copied to the storage circuit by dragging the target data to the corresponding trigger region. Then, the processing circuit 101 automatically copies the target data TD to the host corresponding to the current trigger region.
The above-mentioned steps of “activating the console and acquiring the source path of target data in the first host” in
As shown in
Activate the console.
Acquire the source path via the console, such as the steps shown in the embodiment of
The flowchart on the right side of
Display a console window of the console without acquiring the source path via the console.
A variety of methods can be used to acquire the source path without using the console. For example, the user can click on the file to be copied and press a specific key or a key combination, and then an option for the copy source path appears. In one embodiment, take Windows as an example, when the user clicks on the file to be copied on the desktop and presses shift+right key, the copy source path option appears. Then the user can copy the source path via the corresponding hot key or directly click on it with the mouse. After copy the source path, the user can trigger the console with other commands, and then paste the copied source path to the console.
Copy a source path.
Display the source path in the console window.
In view of the above-mentioned embodiments, the data transmission device 100 described in
Start the process of transmitting the target data TD.
The user drags the target data TD to the trigger region (for example, the trigger region 301 described in
Check the trigger conditions. For example, check whether the user disables the drag action or not.
Determine if the trigger condition is satisfied. If it is not satisfied, go to step 608 to end the process. For example, if the user does not disable the drag operation and drags the target data TD out from the trigger region 301, the process of transmitting the target data ends. If it is satisfied, go to step 609. For example, if the user drags the target data to the trigger region and then disables the dragging action, the process enters the step 609.
In step 609, before acquiring the source path, the control of the control device 107 to the first host H_1 is discontinued to prevent the user from interfering the copy operation of the target data TD. For example, if the control device 107 is an input interface such as a mouse or a keyboard, any input made by the user to the control device 107 in step 609 is invalid.
Acquire and record the source path.
Install the storage circuit 105.
For example, enable the processing circuit 101 to control the storage circuit 105 to perform data storage operations. That is, enumerate the storage circuit 105 in the data transmission device 100 as a mass storage circuit for the first host H_1, so that the first host H_1 considers the data transmission device 100 to be a flash drive, and then transmits the data to the storage circuit 105.
Copy the target data TD to the storage circuit 105.
Wait for the completion of the copy operation.
Switch the host, for example, switch the control from the first host H_1 to the second host H_2. That is, the host that the user can initially control via the control device 107 and the data transmission device 101 is the first host H_1. However, in step 619, the user controls the second host H_2 rather than the first host H_1. In one embodiment, this step may be removed, that is, after the target data TD is copied to the storage circuit 105, the control right is still the first host H_1 instead of the second host H_2.
Copy the target data TD from the storage circuit 105 to the second host H_2. This operation can be performed automatically by the processing circuit 101 or manually after the control is switched from the first host H_1 to the second host H_2.
End the process of transmitting the target data TD.
The data transmission device provided by the present invention can be connected to different hosts for data transmission between the hosts without using a network. The network mentioned here can mean a communication network that is constructed by other communication devices, such as the internet or a local area network (LAN).
In another embodiment, the data transmission device provided by the present invention can also be performed via a network. In such embodiments, the data transmission device comprises a receiving node and a transmission node. Please note the node can be a device, a module, or a component. A network switch is connected between the receiving node and the transmission node, for transmitting the target data TD. The data transmission device in
The data transmission device in
In view of above-mentioned embodiments, the data transmission method and the data transmission device provided by the present invention can allow different hosts to exchange data without using a network, and can use a simple architecture which allows different hosts to exchange data while using the network.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
110103694 | Feb 2021 | TW | national |