This application claims priority from Korean Patent Application No. 10-2007-0030032, filed on 27 Mar. 2007 in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety by reference.
1. Field of the Invention
Methods and apparatuses consistent with the present invention relate to automatic execution of a program of an external universal serial bus (USB) mass storage device, and more particularly, to an external USB mass storage device capable of automatically executing a driver or a computer application program that is stored in a memory in order to operate the external USB mass storage device that is connected to a computer, and a method of automatically executing the external USB mass storage device.
2. Description of the Related Art
External USB mass storage devices are provided to users along with a separate compact disk (CD) or digital versatile disk (DVD) containing necessary software such as device drivers and application programs in order to perform basic functions via a USB.
However, it is impossible to use the external storage device if a CD or a DVD is not provided or the computer cannot access the Internet. Further, whenever the computer connected to the external storage device is changed, the user needs to acquire the device driver and application program via a CD or a DVD or the Internet again and install the device driver and application on the new computer in order to use the external storage device. To address this disadvantage, technologies of storing the device driver and application program in the external storage device and automatically executing the device driver and application program have recently been discussed. In this case, the external storage device needs a separate memory such as a read-only memory (ROM) for storing the device driver and application program therein, or to partition a memory space in the external storage device. However, the separate memory increases memory consumption and it is impossible to efficiently use the partitioned memory space of the external storage device for storing the device driver and application program.
The present invention provides an external storage device capable of automatically executing a driver and an application program for operating the external storage device when the external storage device is connected to a computer and the computer recognizes the external storage device as a CD-ROM
According to an aspect of the present invention, there is provided an external storage device comprising a memory unit storing general data, a driver for operating the external storage device, an application program used in a computer, an automatic execution program for automatically executing the application program in the computer, and an automatic execution script for operating the automatic execution program, wherein the driver, the application program, the automatic execution program and the automatic execution script are not partitioned from the general data; an automatic execution controller controlling an automatic execution of the driver and the application program in the computer; a general function controller controlling a general function of the external storage device; a general file management unit supporting an access to the general data stored in the memory unit according to a control signal of the general function controller; and an automatic execution file management unit supporting an access to the driver, the application program, the automatic execution program, and the automatic execution script, which are stored in the memory unit, through the general file management unit according to a control signal of the automatic execution controller.
According to another aspect of the present invention, there is provided a method of automatically operating an external storage device, the method comprising when a computer is connected to the external storage device comprising a memory unit storing general data, a driver for operating the external storage device, an application program used in the computer, an automatic execution program for automatically executing the application program in the computer, and an automatic execution script for executing the automatic execution program, wherein the driver, the application program, the automatic execution program and the automatic execution script are not partitioned from the general data, changing a mode of the external storage device to a mode for automatically operating the external storage device; and accessing the driver, the application program, the automatic execution program, and the automatic execution script from the memory unit and automatically executing the external storage device.
According to another aspect of the present invention, there is provided a computer readable recording medium storing a computer readable program for executing a method of automatically operating an external storage device.
The above and other aspects of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings, in which:
The present invention will now be described more fully with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown.
The mode determination unit 110 determines a mode for automatically operating the external storage device 100 or a mode for performing a general function of the external storage device 100, and outputs a determined signal to the mode controller 120. In the mode for automatically operating the external storage device 100, when the external storage device 100 is connected to a computer 200, the computer 200 can recognize the external storage device 100 as a CD-ROM. In the mode for performing a general function of the external storage device 100, a general function of the external storage device 100 serving as a small computer system interface (SCSI) type hard disk or a network driver can be performed.
The mode determination unit 110 includes a graphic user interface (GUI) or an external switch (not shown) for receiving a mode selection input from a user. The GUI provides the user with a screen for selecting a mode. The external switch is provided to the external storage device 100 in order to select a mode according to a user's operation.
The mode controller 120 controls the operation of one of the automatic execution controller 130 and the general function controller 170 according to the mode determined by the mode determination unit 110. The mode controller 120 operates when the external storage device 100 is connected to the computer 200 using a USB cable or wirelessly. In more detail, if the external storage device 100 is connected to the computer 200, the mode controller 120 determines the mode determined by the mode determination unit 110. In this regard, if the mode is determined as the mode for automatically operating the external storage device 100, the mode controller 120 outputs a control signal for operating the automatic execution controller 130 to the automatic execution controller 130, and if the mode is determined as the mode for performing a general function of the external storage device 100, the mode controller 120 outputs a control signal for operating the general function controller 170 to the general function controller 170.
The mode controller 120 changes a mode of the external storage device 100 to the mode for performing a general function of the external storage device 100 after performing the mode for automatically operating the external storage device 100.
If the automatic execution controller 130 receives a control signal for operating the automatic execution controller 130 from the mode controller 120, the automatic execution controller 130 controls automatic execution of a driver for operating the external storage device 100 and an application program used in the computer 200. When the external storage device 100 is connected to the computer 200, the automatic execution controller 130 controls the external storage device 100 to be recognized as the CD-ROM by the computer. Thus, the computer 200 outputs commands to access an automatic execution script for operating an automatic execution program, the automatic execution program for automatically executing an application program, a driver, and the application program to the automatic execution controller 130. The automatic execution controller 130 outputs automatic execution control signals corresponding to the commands, respectively, to the automatic execution file management unit 140 according to the commands of the computer 200.
The automatic execution file management unit 140 supports access to the automatic execution script, the automatic execution program, the driver, and the application program that are stored in the memory unit 160 through the general file management unit 150 according to the automatic execution control signal of the automatic execution controller 130. For example, if the automatic execution controller 130 requests access to the automatic execution script, the automatic execution file management unit 140 analyzes the command to access the automatic execution script, reads the automatic execution script stored in the memory unit 160 through the general file management unit 150, and outputs the automatic execution script to the automatic execution controller 130.
The automatic execution file management unit 140 refers to a sector mapping table file in order to access a file corresponding to the automatic execution control signal.
The general file management unit 150 supports access to genera data stored in the memory unit 160 according to the a control signal of the general function controller 170. The general file management unit 150 includes information such as a file allocation table (FAT) or the like in order to manage a file used to perform a general function of the external storage device 100. For example, if a general function of the external storage device 100 is serving as an SCSI type hard disk or a network driver, the general file management unit 150 accesses a file, stored in the memory unit 160, which is necessary for operation of an SCSI type hard disk or a network driver, and outputs the file to the general function controller 170. In addition to supporting file management to perform a general function of the external storage device 100, the general file management unit 150 accesses the automatic execution script, the automatic execution program, the driver, and the application program stored in the memory unit 160 according to an access request of the automatic execution file management unit 140, and outputs them to the automatic execution file management unit 140.
The memory unit 160 stores general data, the driver for operating the external storage device 100, the application program used in the computer 200, the automatic execution program for automatically executing the application program in the computer 200, and the automatic execution script for executing the automatic execution program, which are not partitioned from the general data. That the memory unit 160 does not partition the driver, the application program, the automatic execution program, and the automatic execution script from the general data means that a memory region for storing the general data is not partitioned from a memory region for storing the driver, the application program, the automatic execution program, and the automatic execution script. Thus, according to an exemplary embodiment of the present invention, the memory region is not partitioned, so that the whole region of the memory unit 160 can be more efficiently used compared to a related art memory. Since the memory region is not partitioned but stores the general data and the automatic execution data, i.e., the driver, the application program, the automatic execution program, and the automatic execution script, the automatic execution file management unit 140 accesses the driver, the application program, the automatic execution program, and the automatic execution script through the general file management unit 150 in order to automatically operate the external storage device 100. The memory unit 160 includes the sector mapping table file including the sector information on the driver, the application program, the automatic execution program, and the automatic execution script.
If the general function controller 170 receives a control signal for operating the general function controller 170 from the mode controller 120, the general function controller 170 controls a general function of the external storage device 100. In more detail, the general function controller 170 controls the external storage device 100 to be recognized as a SCSI type hard disk or a network driver corresponding to the general function of the external storage device 100. Therefore, if the general function controller 170 receives a command to access genera data for performing a general function from the computer 200, the general function controller 170 outputs an access control signal to the general file management unit 150 according to the command.
Examples of the external storage device 100 include a Moving Picture Experts Group Audio Layer 3 (MP3) player, a portable multimedia player (PMP), and a digital camera.
The computer 200 is connected to the external storage device 100 wirelessly or via a wired connection (e.g., a USB cable or the like) and automatically operates the external storage device 100.
A method of automatically executing the external storage device 100 will now be described in detail with reference to
If the mode for automatically operating the external storage device 100 is determined, when the computer 200 is connected to the external storage device 100 including the memory unit 160 for storing general data, the driver for operating the external storage device 100, the application program used in the computer 200, the automatic execution program for automatically executing the application program in the computer 200, and the automatic execution script for executing the automatic execution program, which are not partitioned from the general data, a mode of the external storage device 100 is changed to the mode for automatically operating the external storage device 100 (Operation 302). Since a memory region of the memory unit 160 for storing the general data is not partitioned from a memory region for storing the driver, the application program, the automatic execution program, and the automatic execution script, the whole region of the memory unit 160 can be more efficiently used compared to a related art memory. When the external storage device 100 is connected to the computer 200, the mode controller 120 changes the mode of the external storage device 100 to the mode for automatically operating the external storage device 10.
The driver, the application program, the automatic execution program, and the automatic execution script are accessed from the memory unit 160 in order to automatically operate the external storage device 100 (Operation 304).
According to the execution of the automatic execution program, it is determined whether a driver and an application program are stored in the computer 200 (Operation 402). The automatic execution program searches for the driver and application program necessary for automatic operating of the external storage device 100 in the computer 200.
If the driver and application program are not stored in the computer 200, the memory unit 160 is accessed for the driver and application program and reinstalled in the computer 200 (Operation 404). Specifically, the automatic execution program may provide commands to access the driver and application program to the external storage device 100. The automatic execution controller 130 of the external storage device 100 outputs automatic execution control signals corresponding to the commands, respectively, to the automatic execution file management unit 140 according to the commands. The automatic execution controller 130 accesses the sector mapping table file stored in the memory unit 160 through the general file management unit 150 in response to the automatic execution control signals. The automatic execution file management unit 140 analyzes the sector mapping table file, verifies a region where the driver and application program are stored, accesses the driver and application program stored in the region through the general file management unit 150, and outputs the driver and application program to the automatic execution controller 130. The automatic execution controller 130 outputs the driver and application program to the computer 200. The computer 200 installs the driver and application program.
Alternatively, the driver and application program may be obtained from a web server (not shown) other than the memory unit 160 and installed in the computer 200. To this end, the automatic execution program includes link information on the Internet. The automatic execution program provides commands to access the driver and application program to the web server corresponding to the link information. The computer 200 receives the driver and application program from the web server, and installs the driver and application program.
The driver and the application program are automatically executed in the computer 200 (Operation 406). The automatic execution of the application program completes the automatic operation of the external storage device 100 in the computer 200. In Operation 402, if the driver and application program are included in the computer 200, the driver and the application program are also automatically executed.
After Operation 304 is performed, the mode of the external storage device 100 is changed to the mode for a general function thereof after the mode for automatically operating the external storage device 100 is performed (Operation 306). Specifically, if the automatic operation of the external storage device 100 is completed in the computer 200, the external storage device 100 is no longer recognized as a CD-ROM, and the mode of the external storage device 100 may be changed to the mode for the general function thereof. To this end, if the automatic operation of the external storage device 100 is completed, the computer 200 resets the wireless or wired connection between the external storage device 100 and the computer 200. The mode controller 120 changes the mode of the external storage device 100 to the mode for performing a general function of the external storage device 100 according to a reset signal of the wireless or wired connection.
The method of automatically operating the external storage device 100 of the present invention can be embodied as computer readable code/instructions/program on a computer readable recording medium. In more detail, when the computer 200 is connected to the external storage device 100 including the memory unit 160 for storing general data, the driver for operating the external storage device 100, the application program used in the computer 200, the automatic execution program for automatically executing the application program in the computer 200, and the automatic execution script for executing the automatic execution program, are not partitioned from the general data stored in the memory unit 160. Thus, a computer readable recording medium storing a program for executing the method of changing the external storage device 100 to the mode for automatically executing the external storage device 100, and accessing the driver, the application program, the automatic execution program, and the automatic execution script stored in the memory unit 160 and automatically executing the external storage device 100 can be provided.
The invention can also be embodied as a general-purpose digital computer for operating the code/instructions/program on a computer readable recording medium. The computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices. The computer readable recording medium can also be distributed network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. Also, functional programs, code and code segments for accomplishing the present invention can be easily construed by programmer skilled in the art to which the present invention pertains.
As described above, in the external storage device and method of automatically operating the same according to the exemplary embodiments of the present invention, a program stored in the external storage device can be automatically executed even if a CD or a DVD is not provided, a computer connected to the external storage device cannot access the Internet, or whenever the computer connected to the external storage device is changed. Thus, the external storage device of the present invention can be easily used.
Further, software such as a device driver and application program for the automatic operation of the external storage device is not required on a separate recording medium such as a CD or a DVD. Furthermore, the external storage device does not need a separate memory necessary for a CD-ROM function mode or does not need to partition a memory of the external storage device.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the present invention as defined by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2007-0030032 | Mar 2007 | KR | national |