1. Technical Field
The present invention relates to a mass storage device, and more particularly, to a mass storage device capable of accessing a network storage.
2. Description of the Conventional Art
As related technology keeps improving, mass storage devices such as hard drives or memory cards possess more memory space for storing more data. Generally, a mass storage device comprises a file allocation table (FAT) to indicate a link between a logical address and a physical address of a file stored in the mass storage device. Please refer to
However, traditional mass storage device such as a hard drive or a flash memory still has limited memory space. Since there are more videos and pictures taken in high resolution, the memory space of the mass storage device is getting bigger to meet the requirement. However, if the memory space is inadequate, a traditional mass storage device cannot adjust its own memory space. Therefore, the user needs to buy another new mass storage device with larger memory space, and the old mass storage device is no longer useful then. Such situation brings extra cost for the user, and is not eco-friendly.
A mass storage device capable of accessing a network storage in response to an access request of an electronic device electrically connected to the mass storage device, the mass storage device comprises a first memory unit comprising a file management table for storing a first mapping relationship between a logical address and a network address of the network storage, and a controller for receiving an access request corresponding to the logical address from the electronic device and accessing a file in the network storage according to the network address through a network interface.
A method for accessing a network storage through amass storage device is disclosed, the method comprises coupling a mass storage device to an electronic device; coupling the mass storage device to a network storage through a network interface; the electronic device accessing a file according to a logical address stored in a file management table of the mass storage device; and the mass storage device accessing the file in the network storage according to a network address stored in the file management table corresponding to the logical address.
In addition, a method for managing an account of a network storage through a mass storage device is also disclosed, which comprises coupling a mass storage device to an electronic device; coupling the mass storage device to a network storage through a network interface; the electronic device executing an application program; the application program managing an account in the network storage; and the mass storage device reading account information of the managed account in the network storage, and updating the account information in a file management table stored in the mass storage device correspondingly.
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.
Please refer to
Please refer to
Accessing the file comprises but is not limited to reading, writing, deleting, restoring, modifying, copying, synchronizing, compressing/uncompressing, sharing, converting, uploading, and/or downloading the file, etc.
The network storage 200 provides memory space for storing and sharing files online. According to the above arrangement, the mass storage device 100 of the present embodiment can adjust the memory space by mapping a virtual memory space of the mass storage device to the network storage 200. Therefore, the memory space of the mass storage device 100 becomes virtually unlimited.
The network storage can be any type of remote or local network storage, such as Network Attached Storage (NAS), file server, FTP server, or HTTP server. The network storage can also be a cloud storage service, such as Dropbox, Amazon S3, etc.
The mass storage device 100 can further comprise an application program 140 for accessing the network storage 200 and managing an account in the network storage 200. For example, the electronic device 220 can perform the application program 140 to create an account at the network storage 200 and set up a password for verification. The electronic device 220 can further utilize the application program 140 to login to and/or logout from the network storage 200. The login process comprises inputting an account name and a corresponding password to the network storage 200 and/or checking a unique device ID of the mass storage device 100. The unique device ID of the mass storage device 100 is a unique serial number, therefore, the mass storage device 100 can act as a key to access the network storage 200. The application program 140 can also be utilized to manage an account in the network storage 200. Managing the account comprises but is not limited to, increasing or decreasing the memory space of the account, enabling, disabling or deleting an account, managing files in the memory space, and/or obtaining a public network address to share files with others. The application program 140 can further update the total memory space, which reflects the memory space in the network storage 200, of the mass storage device 100. Therefore, the memory space provided in the network storage 200 becomes a part of the memory space of the mass storage device 100. The application program 140 can be stored in the memory unit 110 of the mass storage device 100, or in another memory unit of the mass storage device 100. The application program 140 can even be stored in a remote storage, and be executed through a hyperlink or a web address.
As shown in
In addition, although the mass storage device 100 described above is independent from the electronic device 220, the mass storage device 100 can also be embedded in the electronic device 200. The mass storage device 100 can be a hard drive, a memory card or a USB drive.
A part of the memory unit 110 can be optionally utilized as a data buffer 114. The data buffer 114 is for buffering the file when the controller 120 transmits/receives the file to/from the network storage 200 with limited data transmitting speed. The data buffer 114 can also temporarily store the file when the network 210 is not available, and the file can be transmitted to the network storage 200 later when the network 210 is available again. When data transmitting speed is fast enough, the data buffer may not be necessary. In addition, if the memory space of the memory unit 110 is large enough, another part of the memory unit 110 can be utilized as a physical memory. In this case, the memory unit 110 can be divided into two independent portions, a portion for network storage and a portion for physical memory.
In addition, when an alternate connection to the network 210 is used, the wireless communication unit also may not be necessary. For example, if the electronic device 220 is already connected to the network 210 via a network interface 222, the controller 120 can directly access the network storage 200 via the network interface 222 of the electronic device 220.
Please refer to
Step 510: Electrically connect a mass storage device to an electronic device;
Step 520: The electronic device reads a file management table stored in the mass storage device and displays storage information of the mass storage device;
Step 530: Couple the mass storage device to a network through either a wireless communication unit of the mass storage device or a network interface of the electronic device;
Step 540: Couple the mass storage device to a network storage through the network according to at least a network address stored in the file management table of the mass storage device;
Step 550: The network storage verifies an account name and a password stored in the mass storage device;
Step 560: The electronic device accesses a file according to a logical address stored in the file management table;
Step 570: The mass storage device accesses the file in the network storage according to a network address stored in the file management table corresponding to the logical address and updates the file management table; and
Step 580: The electronic device reads the updated file management table and displays updated storage information of the mass storage device.
Please refer to
Step 610: Electrically connect a mass storage device to an electronic device;
Step 620: Establish network connection between the mass storage device and a network storage through either a wireless communication unit of the mass storage device or a network interface of the electronic device;
Step 630: Execute an application program;
Step 640: Check whether an account name is stored in the mass storage device corresponds to an account; (No) Step 650: Create a new account and optionally set up a password via an user interface of the application program, and upload the account name and the password to the network storage for further verification;
Step 655: The application program requests to input a password; (Yes) Step 660: The network storage verifies whether the account name and the inputted password are coincident with those stored in the network storage. If the verification passes, the application program provides another user interface to manage the account in the network storage;
Step 670: A controller of the mass storage device reads information of the account in the network storage, and updates a file management table stored in the mass storage device correspondingly; and
Step 680: The electronic device reads the updated file management table of the mass storage device and displays the updated account information in the network storage for future file access to the network storage through the mass storage device.
Basically, to achieve the same result, the steps of the flowcharts 500 and 600 need not be in the exact order shown and need not be contiguous, that is, other steps can be inserted therebetween, such as making a payment for buying extra memory space in order to increase the memory space of the account in the network storage. The step 550 and the step 640 to 660 are optional. The network storage can verify the unique device ID of the mass storage device instead. The unique device ID can be integrated into the network address, for example, the network address can be expressed as \\websitename\uniquedevicelD\47h.
In addition, the storage information of step 520, 580 and the account information of step 680 comprises information of total storage volume, volume usage status, and available volume, etc., and the electronic device reading the storage information can display those information in a file manager application such as Windows® Explorer and Mac® OS X Finder, such that the mass storage device of the present embodiment behaves like a general mass storage device with physical memory space.
In contrast to the prior art, the present embodiment provides a mass storage device capable of accessing a network storage. The mass storage device of the present embodiment can further adjust the total memory space by coupling to the network storage. Therefore, the memory space of the mass storage device has no limitation.
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.