This application claims priority to Taiwanese Patent Application No. 097130443 filed on Aug. 8, 2008.
This invention relates to a processing unit, a portable electrical device and an auto-run method thereof, and more particularly, to an auto-run operation of the portable electrical device.
Currently, the applied fields of electronic information products are progressively widened, and the various portable or removable electronic products are more and more popular. In an exemplar, a memory device with a universal serial bus (USB) interface has lower cost and a capability of connection with various electrical apparatus (such as a computer host), and thus becomes a convenient and portable access media. Meanwhile, more and more applications of the portable electronic products have been developed for convenience of the users.
In various applications of the portable electronic products, the most popular request is offering security protection. At present, there are two primary ways to achieve the information security protection, one of which is to use a high-level hardware to execute data encryption/decryption, and the other of which is using software to execute data encryption/decryption. By the way of using software to execute data encryption/decryption, a partial memory block would be divided from a data memory out of a micro-control unit (MCU) of a portable electrical device. By customized command, the relative control parameter and the simple encryption/decryption software from the dealer are stored within the memory block. Next, the memory block may be declared as a virtual read-only memory (ROM) device (e.g. an optical disk driver). The encryption/decryption software may be auto-run by a computer host electrically connected to the portable electrical device and thereby execute the data encryption/decryption there between.
However, by the way of using hardware to execute encryption/decryption, the portable electrical device needs to increase the amounts of chips (or integrated circuit) or electrical elements disposed within a volume-enlarged chip. This would invoke raise of product cost. By the other way of software to execute encryption/decryption, the relative control parameter and the encryption/decryption software should occupy the extra data memory of the portable electrical device and thereby reduce its memory capacity. Furthermore, when the portable electrical device has not a built-in extra memory such as USB card reader or USB hard disk drive (HDD), or the data memory of the USB flash memory device is not enough for storing the relative control parameter and the encryption/decryption software, the portable electrical device can not perform an auto-run function.
Therefore, an aspect of the present invention is to provide a processing unit, a portable electrical device and an auto-run method thereof, which provide an auto-run function and prevent the data memory capacity from being occupied.
Another aspect of the present invention is to provide a processing unit, a portable electrical device and an auto-run method thereof, which use program codes to declare a virtual memory device and thereby save the data memory capacity and prevent IC cost from being increased.
Another aspect of the present invention is to provide a processing unit, a portable electrical device and an auto-run method thereof, which provide data security protection or other functions for the portable electrical device.
According to one embodiment of the present invention, the processing unit used for a portable electrical device configured to be electrically connected to an electronic apparatus. The processing unit comprises a kernel program memory area, a virtual memory device and a virtual auto-run file. The kernel program memory area is configured to store at least one program code. The virtual memory device is established within the kernel program memory area. The virtual auto-run file is stored in the virtual memory device. When the portable electrical device is electrically connected to the electronic apparatus, the electronic apparatus automatically executes at least one predetermined operation on the portable electrical device according to the virtual auto-run file.
According to another embodiment of the present invention, the above-mentioned portable electrical device includes a first connecting interface configured to be electrically connected to the electronic apparatus.
According to another embodiment of the present invention, the portable electrical device comprises a processing unit and a kernel program memory area established within the processing unit. An auto-run method for the portable electrical device comprises the following steps of:
using a portion of the program stored in the kernel program memory area to establish a virtual memory device in the kernel program memory area, and storing a virtual auto-run file in the virtual memory device; and
when the portable electrical device is electrically connected to the electronic apparatus, using the electronic apparatus to identify the virtual memory device and automatically execute at least one predetermined operation on the portable electrical device according to the virtual auto-run file.
Therefore, with utilization of the processing unit, the portable electrical device and auto-run method thereof disclosed in the embodiments of the present invention, the portable electrical device can be auto-run and thereby save the data memory capacity. Even though the portable electrical device does not own memory, the portable electrical device still can be auto-run and provides data security protection or other functions.
The foregoing aspects and many of the attendant advantages of this invention will become more readily appreciated as the same becomes better understood by reference to the following detailed description, when taken in conjunction with the accompanying drawings, wherein:
In order to make the illustration of the present invention more explicit and complete, the following description is stated with reference to
Referring to
Returning to
Referring to
Returning to
Referring to
Referring to
Referring to
Step S600, using a portion of the program code stored within the kernel program memory area 110 to declare a virtual memory device 115 established in the kernel program memory area 110, and storing a virtual auto-run file 120 and the file system parameters 130 in the virtual memory device 115;
Step S610, when the first connecting interface 160a of the portable electrical device 10a is electrically connected to the first connecting interface 210a of the electronic apparatus 200a, using the operation system 240a of the electronic apparatus 200a to identify the virtual memory device 115 and read the virtual auto-run file 120 and the file system parameters 130 from the virtual memory device 115; and
Step S620, using the electronic apparatus 200a to automatically execute at least one predetermined operation on the portable electrical device 10a according to the virtual auto-run file 120. For example, the predetermined operation may comprises the following steps of: downloading the encryption/decryption program from a remote external system 400 through the network system 500; and executing the encryption/decryption program to perform encryption/decryption protection for data transmitted between the portable electrical device 10a and the electronic apparatus 200a.
In conclusion, the processing unit, the portable electrical device and the auto-run method thereof can provide an auto-run function and thereby save the data memory capacity. The portable electrical device can be auto-run even though it does not own memory. Since the virtual memory device of the processing unit is declared as a virtual read-only memory device by using the program code which occupies less memory space, the program memory capacity thereof needs not to be enlarged and thereby prevent IC cost from being increased. Furthermore, the processing unit and the portable electrical device of the present invention can be connected to the external system to download AP and thereby achieve data security protection or other added functions.
As is understood by a person skilled in the art, the foregoing embodiments of the present invention are strengths of the present invention rather than limiting of the present invention. It is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims, the scope of which should be accorded the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
097130443 | Aug 2008 | TW | national |