The disclosure relates to a method of emulating a mobile device in a file system of a computer for file transmission, more particularly to a method of emulating a mobile device in a file system of a computer as a wireless drive for transmitting files.
With entering the era of intelligent phones, the files such as photos and videos transferred between smart phones and PCs become diverse. The transmission speed of Bluetooth no more meets the demands of users due to large-sized files caused by the high resolution of photos and videos. As a result, alternative transmission methods such as cloud or WIFI are used widely.
Currently, there are two main platforms in the era of intelligent phones, which are iOS and Android systems. File transmission between an iOS system and a PC is much more complicated than file transmission between an Android system and a PC due to differences of file system structures and system authorities between the iOS system and the PC. Although transferring files between smart phones and PCs via cloud drives such as Google Drive or iCloud seems to be an effective method for users, capacities of cloud storages are generally limited with respect to the large-sized files. Moreover, security and privacy of file transferring via cloud drives are also serious issues for users.
A method of emulating a mobile device in a file system of a computer for file transmission is disclosed according to one embodiment of the present disclosure. This method includes: enabling a first application program stored in the computer and a second application program stored in the mobile device to be running respectively; building a first connection between the computer and the mobile device; transmitting one or more thumbnail files of the mobile device to the computer by the mobile device based on the first connection, wherein the one or more thumbnail files corresponding to one or more original files respectively; creating a quick access shortcut in the file system by the computer for emulating the mobile device as a wireless drive in the computer; displaying the one or more thumbnail files in the file system according to an operation command applied to the quick access shortcut; and transmitting one of the one or more original files from the mobile device to a target directory of the computer when a second operation command of the computer is applied to a respective one of the one or more thumbnail files.
The present disclosure will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only and thus are not limitative of the present disclosure and wherein:
In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawings.
Please refer to
As shown in
In this embodiment, both of the first application program APP1 and the second application program APP2 would be enabled to be running first, so then the first connection C1 is built up. However, in another example, the above two procedures can be performed in a reverse way; that is, once the first connection C1 is established first, the first application program APP1 and the second application APP2 are both enabled to be running. Specifically, in this another embodiment, the establishment of first connection C1 would be considered as a trigger signal to enable the running of both of the first application program APP1 and the second application program APP2. In practice, the first application program APP1 and the second application program APP2 mentioned above are allowed to be running in the background in the PC 10 while the PC 10 is implementing other functions.
Please further refer to
In a condition in which the first and the second application programs APP1, APP2 are running and the first connection C1 is established, in step S3, the second application programs APP2 of the mobile device 20 transmits thumbnail files IMG1-IMG6 of the mobile device 20 to the PC 10 based on the first connection C1. Specifically, instead of real files, these thumbnail files IMG1-IMG6 are virtual files presented in the file system of the PC 10. Each of the thumbnail files IMG1-IMG6 corresponds to a respective real and original file such as a photo or a video file stored in the mobile device 20. The amount of the thumbnail files IMG1-IMG6 shown in the embodiment is merely used for illustration, and the present disclosure is not limited to the embodiment.
In step S4, a quick access shortcut (e.g. named as “Phone Drive” in
In step S5, the first application program APP1 of the PC 10 displays the thumbnail files IMG1-IMG6 in the interface of file system according to a first operation command applied to the quick access shortcut. The first operation command could be, for example, given by a processor within the PC 10 as the user operates an input device of the PC 10, such as a keyboard and/or a mouse. Specifically, as shown in
In step S6, one of the original files are transmitted from the mobile device 20 to a target directory of the PC 10 when a second operation command of the PC 10 is applied to a respective one of the thumbnail files IMG1-IMG6. In detail, the processor of the PC 10 generates the first file transmission command as the user copies/pastes or drags/drops any of thumbnail files IMG1-IMG6. For example, when the user copies the thumbnail file IMG1 and further pastes on a target directory of the PC, the first application program APP1 of the PC 10 would ask the second application program APP2 for uploading the original file corresponding to the thumbnail file IMG1, and this original file will be further transferred from the mobile device 20 to the target directory of the PC 10 via the first connection C1 or another connection which is further built based on the first connection C1.
That is, the original files containing meaningful file data are transferred from the mobile device 20 to the PC 10 only when the second operation command is given by the processor as the user performs operations of copy/paste or drag/drop on the thumbnail files.
By using the method of emulating files of the mobile device 20 in the present file system of the PC 10 as disclosed in the present disclosure, files demanded by the user could be easily transferred between the mobile device 20 and the PC 10 via local transmitting technique without significantly consuming the storage capability of the PC 10, which providing a much more secure way for file transmissions than the file transmitting technique via a cloud drive.
In one embodiment, the method of
Assume that the user performs an operation of copy/paste or drag/drop on the thumbnail files IMG_3 for transmitting the original file corresponding to the thumbnail file IMG_3 from the mobile device 20 to the PC 10. Due to some reasons (e.g. technical problems or weak signal strengths), the first connection C1 may fail during the transmission process of the original file from the mobile device 20 to the PC 10. In this case, the synchronization of the original file is not completed in the PC 10. Accordingly, the first application program APP1 of the PC 10 will mark the icon of the thumbnail files IMG_3 as “offline”, so that the user could immediately know that the original file of the thumbnail files IMG_3 is not transferred to the PC 10 successfully.
In practice, this “offline” icon will be removed automatically once the first connection C1 is restored and the transmission process of the original file from the mobile device 20 to the PC 10 is further proceeded.
Please refer to
In sub-step S21, the first application program APP1 of the PC 10, operating in a first mode, advertises an equipment message within an environment. In this embodiment, the equipment message includes one or more advertisement packets associated with the PC 10. By advertising the equipment message in the environment, the PC 10 notifies the other device (e.g. the mobile device 20) of its existence.
In sub-step S22, the second application program APP2 of the mobile device 20, operating in a second mode, searches the environment for the equipment message by scanning for being paired with the PC 10, so as to build the first connection C1 which is a BLE connection in this embodiment. In practice, the mobile device 20 should be located within a range of the PC 10, so that the second application program APP2 of the mobile device 20 is capable of discovering the existence of the PC 10 in the environment. In one embodiment, in the case that the first connection C1 is built based on Bluetooth (e.g. BLE) technique, the first mode would be a peripheral mode while the second mode would be a central mode.
Once the first connection C1 which is the BLE connection is established, a second connection C2 can be further built based on the BLE connection as shown in
When the second connection C2 which is a WIFI connection is built, in sub-step S32, the second application program APP2 of the mobile device 20 transmits the thumbnail files IMG1-IMG6 of the mobile device 20 to the PC 10 via the second connection C2 (WIFI connection). In this embodiment, once the second connection C2 is built up according the first connection C1, the original files also can be transmitted from the mobile device 20 to the target directory of the PC 10 via the second connection C2.
In one embodiment, the method of
In one of implementations, by using the file list of the mobile device 20 to be compared with the current local files of the PC 10, the PC 10 determines that the original files corresponding to the thumbnail files IMG 1, IMG 3 and IMG 5 have been previously transferred to and already existed in the PC 10. In this implementation, for the purpose of updating the file status, the icons of the thumbnail files IMG 1, IMG 3 and IMG 5 displayed in the file system of the PC 10 would be labelled as “download completed”. By viewing the status of each of the thumbnail files shown in the interface of the file system, the user is able to know the original files of the thumbnail files IMG 1, IMG3 and IMG 5 have been already transferred from the mobile device 20 to the PC 10. In this case, the user may decide to transfer the original files of the rest thumbnail files IMG 2, IMG4 and IMG6.
Please refer to
The method shown in
Specifically, in one embodiment, in addition to the above-mentioned thumbnail files IMG1-IMG6, in step S7′, the first application program APP1 of the PC 10 creates a target folder TAR associated with the mobile device 20 in the file system, as shown in
Pleaser further refer to
In step S10′, the first application program APP1 of the PC 10 determines whether a file type of a second file matches the folder type of one of the sub-folders SUB1-SUB4 when the second file is transferred to the sub-folder according to a fourth operation command of the PC 10.
When it is determined that the file type of the second file matches the folder type of the sub-folder to which the second file is transferred, in step S11′, the first application program APP1 of the PC 10 allows the fourth operation command to be proceeded and accordingly the second application program APP2 of the mobile device 20 is capable of obtaining the second file from the PC 10. When it is determined that the file type of the second file does not match the folder type of the sub-folder to which the second file is transferred, in step S12′, the first application program APP1 of the PC 10 releases a warning signal and rejects the fourth operation command. In this case, the second file is not transferred to the sub-folder successfully, so the second application program APP2 of the mobile device 20 could not obtain the second file from the PC 10.
In one embodiment, as shown in
Please refer to
In the operation of this embodiment, the micro-processing unit 302 such as a microprocessor would make sure that the dock 30 is accurately connected to the computer 10, so that signals or data can be transmitted between the dock 30 and the computer 10. Further, the BLE device 301 will be advertising packets within the range of signal strength around the environment. Once the mobile device 20 enters the strength range of the BLE device 301, the BLE module of the mobile device 20 discovers the dock 30 by scanning the packets advertised by the BLE device 301 of the dock 30. At this moment, the mobile device 20 sends a request to the dock 30 for pairing. Accordingly, the BLE device 301 of the dock 30 detects that the mobile device 20 is located within the range of signal strength and drives the micro-processing unit 302 to generate a trigger signal to enable the APP 1 of the PC 10 to run while the BLE module of the mobile device 20 triggers the APP 2 of the mobile device to run, which means the BLE beacons trigger both the APPs to run.
In view of the foregoing descriptions, by implementing the method disclosed in the present disclosure, files of a mobile device can be emulated in the present Windows Explorer File system of a computer. By operating on the present Windows Explorer File system, file transmission between the mobile device and the computer could be achieved by a user in an intuitive way. Since the file transmission is performed between the mobile device and the computer without utilizing cloud drives, the problems of information security and privacy can be overcome. Furthermore, the method can be applied to any type of mobile devices installed with either Android or IOS system platforms, so as to achieve the purpose of the cross-platform file transmission.