1. Technical Field
The present invention relates to a digital photo frame and, particularly, to a digital photo frame that can automatically backup files from an external storage device connected to the digital photo frame.
2. General Background
A digital photo frame made of a display has a memory capable of storing several photographs, and can quickly change the photograph to be displayed. A user can change the displayed photograph according to his or her like, which can't be accomplished with a conventional photo frame.
However when the user browses through photographs in the digital photo frame, all photographs are commonly stored together. He or she has to search one by one to find his or her object.
Accordingly, a heretofore need exists in the industry to overcome the aforementioned limitations.
A digital photo frame with automatic backup function includes a storage unit, an interface for connecting with an external storage device, and a processing unit. The processing unit includes a detecting module for detecting whether the interface is connected with the external storage device; an obtaining module for obtaining an identification number of the connected external storage device; a search module for searching for a folder corresponding to the external storage device in the storage unit, according to the identification number of the external storage device; a reading module for reading files from the external storage device; and a backup module for backing up the files to the corresponding folder when the search module finds the corresponding folder.
A method of automatic file backup includes the following steps: obtaining an identification number of an external storage device connected to an interface of a digital photo frame; searching for a folder corresponding to the connected external storage device in a storage unit of the digital photo frame, according to the identification number of the external storage device; and reading files from the external storage device and backuping the files to the corresponding folder when the corresponding folder is found.
Other advantages and novel features will be drawn from the following detailed description with reference to the attached drawings.
The interface 130 is used for connecting with an external storage device 20, such as a memory card. The external storage device 20 has a unique identification number for identification. The storage unit 140 is divided into a plurality of storage spaces, namely folder 1, folder 2, . . . , folder n. Each of the folders is created according to a corresponding identification number of the external storage devices 20, and each of the folders can be named with the identification number. For example, when the identification number of the external storage devices 20 is 123456, the name of the corresponding created folder is also 123456.
When the external storage device 20 is connected to the digital photo frame 10 via the interface 130, the processing unit 110 obtains the identification number corresponding to the external storage device 20, and searches for a corresponding folder according to the identification number. If the corresponding folder exists, the processing unit 110 reads files from the external storage device 20 and backups the files to the corresponding folder. If the corresponding folder does not exist, the processing unit 110 creates a new folder corresponding to the connected external device 20, and backups the files to the new folder. The new folder can also be named with the identification number of the external storage device 20.
The processing unit 110 is also connected with the display unit 120 and the operation panel 150. The operation panel 150 supplies a communication between a user and the processing unit 110, for example, the user can operate the files in the storage unit 140 via the operation panel 150, e.g. file selection, file zooming in, file zooming out, and so on. The display unit 120 displays the files.
In step 301, the obtaining module 1120 obtains the identification number of the external storage device 20 in response to the instruction of the detecting module 1110, and transmits the identification number to the search module 1130.
In step 302, the search module 1130 searches for the corresponding folder according to the identification number and generates a first search result. If the first search result does not show a corresponding folder, the search module 1130 sends the first search result to the folder creating module 1140. If the first search result shows a corresponding folder, the search module 1130 sends the first search result to the reading module 1160.
In step 303, when the reading module 1160 receives the first search result, the reading module 1160 reads the files in the external storage device 20 and transmits the read files to the backup module 1150. The backup module 1150 backups the read files in the corresponding folder.
In step 304, when the folder creating module 1140 receives the first search result, the folder creating module 1140 creates a new corresponding folder and names the new corresponding folder with the identification number of the external storage device 20, and the procedure goes to step 303 described above. The display module 1170 is connected with the operation panel 150 and the display unit 120, and is for transmitting the files to the display unit 120.
In step 401, the obtaining module 1120 obtains the identification number of the external storage devices 20 in response to the instruction from the detecting module 1110, and transmits the identification number to the search module 1130.
In step 402, the search module 1130 searches for the corresponding folder according to the identification number and generates the first search result. If the first search result does not show a corresponding folder, the search module 1130 sends the first search result to the folder creating module 1140, and the procedure goes to step 406. If the first search result shows a corresponding folder, the search module 1130 sends the first search result to the reading module 1160.
In step 403, when the reading module 1160 receives the first search result, the obtaining module 1120 obtains a current date when connecting with the external storage device 20.
In step 404, the search module 1130 searches for a corresponding subfolder according to the current date and generates a second search result. If the first search result does not show a corresponding subfolder, the search module 1130 sends the second search result to the folder creating module 1140, and the procedure goes to step 408. If the first search result shows a corresponding subfolder, the search module 1130 sends the second search result to the reading module 1160.
In step 405, when the reading module 1160 receives the second search result, the reading module 1160 reads the files from the external storage device 20 and transmits the files to the backup module 1150. The backup module 1150 backups the files in the corresponding subfolder.
In step 406, the folder creating module 1140 creates a new corresponding folder and names the new corresponding folder with the identification number of the external storage device 20. In step 407, the obtaining module 1120 obtains the current date.
In step 408, when the folder creating module 1140 receives the second search result, the folder creating module 1140 creates a new corresponding subfolder and names the new corresponding subfolder with the current date, and the procedure goes to step 405 described above.
Although the present invention has been specifically described on the basis of a preferred embodiment including preferred methods thereof, the invention is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment including the methods without departing from the scope and spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
200610201228.2 | Dec 2006 | CN | national |