CN102023873B - Application program execution method and system, storage media controller and storage device - Google Patents

Application program execution method and system, storage media controller and storage device Download PDF

Info

Publication number
CN102023873B
CN102023873B CN200910172159.0A CN200910172159A CN102023873B CN 102023873 B CN102023873 B CN 102023873B CN 200910172159 A CN200910172159 A CN 200910172159A CN 102023873 B CN102023873 B CN 102023873B
Authority
CN
China
Prior art keywords
subregion
host computer
electrically connected
operating system
storage device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200910172159.0A
Other languages
Chinese (zh)
Other versions
CN102023873A (en
Inventor
李乾辅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Phison Electronics Corp
Original Assignee
Phison Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Phison Electronics Corp filed Critical Phison Electronics Corp
Priority to CN200910172159.0A priority Critical patent/CN102023873B/en
Publication of CN102023873A publication Critical patent/CN102023873A/en
Application granted granted Critical
Publication of CN102023873B publication Critical patent/CN102023873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an application program execution method, an application program execution system, a storage media controller and a storage device which are used for automatically executing an application program stored in a storage unit of an external storage device in an operating system of a computer host. The method comprises the following steps of: dividing the storage unit into a first partition and a second partition; simulating the first partition as a CD-ROM (Compact Disc-Read Only Memory); and storing a switching program into the first partition and storing the application program into the second partition. When the external storage device is electrically disconnected to the computer host, only the first partition is provided for the operating system to access and the switching program is automatically executed by the operating system so that the external storage device is electrically connected with the computer host again after the electrical connection of the external storage device and the computer host is interrupted. Moreover, when the external storage device is electrically connected to the computer host again, only the second partition is provided for the operating system to access and the application program is executed.

Description

Application executing method and system, medium controller and memory storage
Technical field
The present invention relates to a kind of application executing method and system, and particularly relevant for a kind of application executing method and system, medium controller and memory storage.
Background technology
Digital camera, mobile phone and MP3 are very rapid in growth over the years, and consumer is also increased rapidly to the demand of medium.Because flash memory (Flash Memory) has that data are non-volatile, power saving, volume is little and the characteristic of machinery-free structure etc., is suitably used as portable memory device most.In addition, for example, development along with the connecting interface (, USB (universal serial bus) (Universal Serial Bus, USB)) of plug and play, has been widely used in the storage of digital content portable memory device.
The manufacturer of memory storage, in order to make sold portable memory device have more the market competitiveness, tends to store application program in sold portable memory device and uses for the user who buys this portable memory device.For example, manufacturer's exploitation is used for the disk management program of portable memory device and is pre-stored in portable memory device, so that the store status that user can manage portable memory device by this disk management program.
At present, for making user's host computer, can automatically carry out the application program that this type of manufacturer provides, manufacturer can divide the storage unit of portable memory device one read-only optical disc (CompactDisc-Read Only Memory, CD-ROM) subregion (Partition), and for example, by this application program and (automatically perform file, the description document (script file) of file " Autorun.inf " by name) burning is in advance in divided read-only optical disc subregion, for example, so that the operating system of host computer (, Microsoft Windows) automatically carry out provided application program.
Yet, because the file in read-only optical disc subregion cannot upgrade again, therefore, in the situation that offer user in the above-mentioned mode of the application program of being developed that provides, when the application program providing when manufacturer has the version of renewal, user is difficult to upgrade.Or, user, wish that bought external storage device can automatically carry out in the example of other application programs in the use, the above-mentioned practice is difficult to other application programs of user to be burned onto in read-only optical disc subregion to allow the operating system of host computer automatically carry out again.
Summary of the invention
The invention provides a kind of application executing method, it can automatically carry out the application program in the general subregion that is stored in external storage device when external storage device is electrically connected to host computer.
The invention provides a kind of application program executive system, it can automatically carry out the application program in the general subregion that is stored in external storage device when external storage device is electrically connected to host computer.
The invention provides a kind of medium controller, it can when external storage device is electrically connected to host computer, switch different subregions so that host computer is automatically carried out the application program in the general subregion that is stored in external storage device.
The invention provides a kind of external storage device, it can when being electrically connected to host computer by cryopreservation device, switch different subregions so that host computer is automatically carried out the application program in the general subregion that is stored in external storage device.
The embodiment of the present invention proposes a kind of application executing method, automatically carries out the application program in a storage unit that is stored in an external storage device for the operating system at a host computer.Application manner of execution comprises storage unit is logically divided into one first subregion and one second subregion, and is a read-only optical disc subregion by the first subregion emulation.Application manner of execution also comprises that by one, automatically performing file and switches in burning program to the first subregion and by above-mentioned application storage in the second subregion, and wherein this automatically performs file for automatically carrying out this changeover program and this changeover program for automatically carrying out this application program.Application manner of execution is also included in and in external storage device, configures a medium controller, wherein when external storage device is electrically connected to host computer, with medium controller, only provide the first subregion to identify to operating system, by operating system, automatically carry out and automatically perform file, by automatically performing file, carry out changeover program, and require medium controller to make external storage device and host computer interrupt being electrically connected and being again electrically connected to host computer by changeover program.In addition, wherein, when medium controller makes external storage device again be electrically connected to host computer, application manner of execution also comprises with medium controller only to be provided the second subregion to operating system identification and carries out above-mentioned application program by changeover program.
The embodiment of the present invention proposes a kind of application program executive system, for automatically carrying out an application program in an operating system.Application executive system.Application executive system comprises host computer and external storage device.Host computer has an in-building type memory storage, and wherein this in-building type memory storage is provided with aforesaid operations system.External storage device comprises storage unit, automatically performs file, changeover program and medium controller.Storage unit has one first subregion and one second subregion, and wherein above-mentioned application program is stored in the second subregion.Automatically performing file and changeover program is to be configured in the first subregion.Medium controller is electrically connected to storage unit, and in order to being read-only optical disc subregion by the first subregion emulation, wherein when external storage device is electrically connected to host computer, medium controller only provides the operating system identification of the first subregion to host computer, operating system can automatically be carried out and automatically perform file, automatically perform file and can carry out changeover program, and changeover program can require medium controller to make external storage device and host computer interrupt being electrically connected and being again electrically connected to host computer.In addition,, when medium controller makes external storage device again be electrically connected to host computer, medium controller only provides the second subregion to carry out above-mentioned application program to operating system identification and changeover program.
The embodiment of the present invention proposes a kind of medium controller, be used for a storage unit that receives the instruction of an operating system that comes from a host computer and control an external storage device, wherein this storage unit has one first subregion and one second subregion, the first partitioned storage one automatically performs file and a changeover program, and the second partitioned storage one application program.This medium controller comprises microprocessor unit, medium interface unit, host interface unit and medium management unit.Medium interface unit is electrically connected to microprocessor unit, and for being electrically connected storage unit.Host interface unit is electrically connected to microprocessor unit, and for being electrically connected host computer.Medium management unit is electrically connected microprocessor unit, and in order to being a read-only optical disc subregion by the first subregion emulation, wherein when external storage device is electrically connected to host computer, medium management unit only provides the first subregion to identify to operating system, operating system can automatically be carried out and automatically perform file, automatically perform file and can carry out changeover program, and changeover program can require medium management unit to make host interface unit and host computer interrupt being electrically connected and being again electrically connected to host computer.In addition,, when medium management unit makes host interface unit again be electrically connected to host computer, medium management unit only provides the second subregion to carry out above-mentioned application program to operating system identification and changeover program.
The embodiment of the present invention proposes a kind of external storage device, and it comprises connector, storage unit and medium controller.Storage unit has one first subregion and one second subregion, and wherein the first partitioned storage one automatically performs file and a changeover program, and the second partitioned storage one application program.Medium controller is electrically connected to connector and storage unit, and in order to being a read-only optical disc subregion by the first subregion emulation, wherein when connector is electrically connected to host computer, medium controller only provides the operating system identification of the first subregion to host computer, this operating system can automatically be carried out and automatically perform file, automatically perform file and can carry out changeover program, and changeover program can require medium controller to make connector and host computer interrupt being electrically connected and being again electrically connected to host computer.In addition,, when medium controller makes connector again be electrically connected to host computer, medium controller only provides the second subregion to carry out above-mentioned application program to operating system identification and changeover program.
The embodiment of the present invention proposes a kind of application executing method, it comprises the external storage device that the storage unit with one first subregion and one second subregion is provided, wherein the first subregion has one and automatically performs file and a changeover program, and in the second subregion, has an application program.Application method also comprises when this external storage device is electrically connected to host computer, one medium controller of this this external storage device only provides the operating system identification of above-mentioned the first subregion to host computer, and by the above-mentioned file that automatically performs, carries out above-mentioned changeover program through operating system thus.Application method also comprises by above-mentioned changeover program notice said storing medium controller only provides above-mentioned the second subregion to identify to this operating system, and by this changeover program, carries out above-mentioned application program after this operating system identification.
Based on above-mentioned, the embodiment of the present invention can automatically be carried out the application program being stored in general subregion, and this application program can easily be updated.
For above-mentioned feature and advantage of the present invention can be become apparent, special embodiment below, and coordinate accompanying drawing to be described in detail below.
Accompanying drawing explanation
Fig. 1 is the summary calcspar of the application program executive system of first embodiment of the invention;
Fig. 2 is the schematic diagram of computer, input/output device and the flash memory storage devices of the embodiment of the present invention;
Fig. 3 is the calcspar of the medium controller of another embodiment of the present invention;
Fig. 4 is the process flow diagram of the application program execution step of first embodiment of the invention;
Fig. 5 is the summary calcspar of the application program executive system of second embodiment of the invention;
Fig. 6 is the summary calcspar of the application program executive system of third embodiment of the invention;
Fig. 7 is the process flow diagram of the application program execution step of third embodiment of the invention.
Main element symbol description in accompanying drawing:
1000-application program executive system; 1100-host computer system;
1110-host computer; 1112-CPU (central processing unit);
1114-primary memory; 1116-system bus;
1118-data transmission interface; 1120-in-building type memory storage;
1122-operating system; 1150-input/output device;
1200,5200,6200-external storage device; 1202-the first subregion;
1204-the second subregion; 1208-connector;
1210,5210,6210-storage unit;
1220,1220 ', 5220,6220-medium controller;
1222-microprocessor unit; 1224-host interface unit;
1226-medium interface unit; 1228,5228,6228-medium management unit;
1302-automatically performs file; 1304-changeover program;
1306-application program; 2202-mouse;
2204-keyboard; 2206-display;
2208-printer; 2210-Portable disk;
2212-solid state hard disc; 3002-memory buffer;
3004-error correction unit; 3006-Power Management Unit;
5000,6000-application program executive system; 5202-the 3rd subregion;
5204-the 4th subregion; 6202-the 5th subregion;
6204-the 6th subregion;
S401, S403, S405, S407, S409, S411, S413, S415-application program execution step;
S701, S703, S705, S707, S709, S711, S713, S715, S717-application program execution step.
Embodiment
Fig. 1 is the summary calcspar of the application program executive system of first embodiment of the invention.
Please refer to Fig. 1, application program executive system 1000 comprises host computer system 1100 and external storage device 1200.
Host computer system 1100 comprises that host computer 1110 and I/O (input/output, I/O) install 1150.
In the present embodiment, host computer 1110 is desktop PC.It must be appreciated, the invention is not restricted to this, in another embodiment of the present invention, host computer 1110 can be also notebook computer, server or other any host computers that can carry out computer program.Host computer 1110 comprises CPU (central processing unit) (Central Processing Unit, CPU) 1112, primary memory 1114, system bus 1116, data transmission interface 1118, in-building type memory storage 1120 and is arranged on the operating system 1122 in in-building type memory storage 1120.
CPU (central processing unit) 1112 is for explaining computer instruction and the data of processing computer software.
Primary memory 1114 is electrically connected to CPU (central processing unit) 1112 via system bus 1116 and for CPU (central processing unit) 1112, directly carries out and use for being written into program miscellaneous and data.Specifically, primary memory 1114 has can be read and write and the characteristic of read or write speed etc. faster at any time, thus primary memory 1114 for as operating system 1122 or other just at the storage medium of the ephemeral data of executory program.In the present embodiment, primary memory 1114 is dynamic RAM (Dynamic RandomAccess Memory, DRAM).In addition, it must be appreciated, in another embodiment of the present invention, the virtual memory of the storage space institute emulation that operating system also can be by memory storage is used as the ephemeral data storage medium of executive utility, in this example, primary memory also comprises this type of virtual memory.
Data transmission interface 1118 is electrically connected to CPU (central processing unit) 1112 via system bus 1116, for being electrically connected external storage device 1200.In the present embodiment, data transmission interface is USB (universal serial bus) (Universal Serial Bus, USB) interface.Yet, it must be appreciated and the invention is not restricted to this, data transmission interface 1118 can also be Serial Advanced Technology Attachment (Serial Advanced TechnologyAttachment, SATA) interface, Institute of Electrical and Electric Engineers (Institute of Electrical andElectronic Engineers, IEEE) 1394 interfaces, high-speed peripheral component interconnect interface (PeripheralComponent Interconnect Express, PCI Express) or other applicable interfaces.
In-building type memory storage 1120 is electrically connected to central processor unit 1112 for the main memory storage as host computer 1110 via system bus 1116.In the present embodiment, in-building type memory storage 1120 is hard disk (Hard Disk), yet, it must be appreciated, the invention is not restricted to this.In-building type memory storage 1120 is provided with operating system 1122, and operating system 1122 is for managing the program of computer hardware (Computer hardware) and computer software (Computer software) resource.Specifically, operating system 1122 for example, for runnings such as the priority ranking of management and configuration primary memory 1114, decision systems resource (, CPU (central processing unit) 1112, primary memory 1114, I/O unit 1150) supply and demand, control inputs/output unit 1150, managing file systems.In the present embodiment, operating system 1122 is form (Windows) operating system of company of Microsoft (Microsoft).Yet, it must be appreciated, the invention is not restricted to this, the present invention also can be applicable in Linux, Mac or other operating system.
Input/output device 1150 is electrically connected to host computer 1110.In the present embodiment, input/output device 1150 comprises mouse 2202, keyboard 2204, display 2206 and printer 2208 (as shown in Figure 2).It must be appreciated, the device shown in Fig. 2 unrestricted input/output device 1150, input/output device 1150 also can comprise other devices.
External storage device 1200 is plug and play memory storages, and is electrically connected to removably host computer 1110.For example, external storage device 1200 is Portable disk 2210 or solid state hard disc 2212 (as shown in Figure 2).
External storage device 1200 comprises connector 1208, storage unit 1210 and medium controller 1220.
Connector 1208 is for being electrically connected host computer 1110.In the present embodiment, connector 1208 is USB connector.Yet, it must be appreciated and the invention is not restricted to this, connector 1208 can also be SATA connector, electric and IEEE 1394 connectors, PCI Express connector or other applicable connectors.
Storage unit 1210 is for storing data.For example, storage unit 1210 is a flash memory.Particularly, in the present embodiment, the storage space of storage unit 1210 can be logically divided into the first subregion 1202 and the second subregion 1204, and wherein the first subregion 1202 stores and automatically performs file 1302 and changeover program 1304, and the second subregion 1204 stores application program 1306.At this, automatically perform file 1302 and make the description document that operating system automatically performs and in the content that automatically performs file 1302, comprise the descriptive language of carrying out changeover program 1304 for a kind of, and application program 1306 offers user's program for the manufacturer of external storage device 1200.In addition, changeover program 1304 for being converted to the second subregion 1204 by the accessible subregion of operating system 1122 from the first subregion 1202 when external storage device 1200 is electrically connected to host computer 1110.
Medium controller 1220 is electrically connected to connector 1208 and storage unit 1210, and for receiving the instruction and the running of controlling external storage device 1200 of host computer 1110.Medium controller 1220 comprises microprocessor unit 1222, host interface unit 1224, medium interface unit 1226 and medium management unit 1228.
Microprocessor unit 1222 is the main control unit of medium controller 1220, for the cooperative cooperating such as host interface unit 1224, medium interface unit 1226 and medium management unit 1228 to carry out the various runnings of external storage device 1200.
Host interface unit 1224 is electrically connected to microprocessor unit 1222, and for receiving and instruction and the data identifying host computer 1110 and transmit, and send data to host computer 1110.In the present embodiment, host interface unit 1224 is USB interface.Yet, it must be appreciated and the invention is not restricted to this, host interface unit 1224 can also be SATA interface, IEEE 1394 interfaces, PCIExpress interface or other applicable interfaces.It is worth mentioning that, what host interface unit 1224, connector 1208 and data transmission interface 1118 must be corresponding is interface or the connector of identical standard, to carry out the transmission of data.
Medium interface unit 1226 is electrically connected to microprocessor unit 1222 and for being electrically connected to storage unit 1210.For example, medium interface unit 1226 is flash memory interface unit.
Medium management unit 1228 is electrically connected to microprocessor unit 1222, for coordinating with changeover program 1304, carries out according to the application program execution mechanism of the present embodiment and storage space management mechanism.
In embodiments of the present invention, medium management unit 1228 can be cd-ROM subregion by the first subregion 1202 emulation in storage unit 1210.Particularly, when external storage device 1200 is electrically connected to host computer 1110, medium management unit 1228 can be that the first memory storage classification (that is, cd-ROM) and operating system 1122 only can be identified the first subregion 1202 and None-identified the second subregion 1204 to operating system 1122 declaration external storage devices 1200.Specifically, in the present embodiment, medium management unit 1228 informs that operating system 1122 external storage devices 1200 are the cd-ROMs only with the first subregion 1202, and operating system 1122 can be managed external storage device 1200 according to this information.That is to say, operating system 1122 can be considered as cd-ROM by external storage device 1200, and the content that wherein this cd-ROM is stored is for automatically performing file 1302 and changeover program 1304.At this, due to when external storage device 1200 is electrically connected to host computer 1110, external storage device 1200 can be regarded as read-only optical disc machine, therefore, operating system 1122 can automatically be carried out to be stored in and automatically perform file 1302 in the first subregion 1202, and carries out changeover program (switch program) 1304 according to the descriptive language that automatically performs file 1302.That is to say, operating system 1122 can configure address section (Run) changeover program 1304 that turns round in primary memory 1114.
When changeover program 1304 running, the instructions of changeover program 1304 meetings 1228 transmission change partitions to medium management unit are to switch to the second subregion 1204 by the discernible subregion of operating system 1122 from the first subregion 1202.
For example, when medium management unit 1228 receives the instruction of change partitions, medium management unit 1228 can indication host interface unit 1224 interrupt being electrically connected (with data transmission interface 1118, connector 1208 becomes non-electric connection state with host computer 1110) and electric connection again (that is, connector 1208 becomes electric connection state again with host computer 1110) again.Particularly, when the instruction of change partitions is received in medium management unit 1228, medium management unit 1228 can change a corresponding mark value, and changes the identifying information that it will offer host computer 1110.Afterwards, when next operating system 1122 because of find mark value be changed inquire again external storage device 1200 identifying information (for example, operating system 1122 main frames of host computer 1110 can continue to confirm corresponding mark value with a fixed frequency) time, the identifying information after the 1228 meeting transmission of medium management unit are changed is to operating system 1122.That is to say, when host interface unit 1224 and data transmission interface 1118 are electrically connected again, medium management unit 1228 can be the second memory storage classification to operating system 1122 declaration external storage devices 1200, and wherein the storage space of this second memory storage is the second subregion 1204.For example, in the present embodiment, the second memory storage classification is removal formula memory storage (removablestorage device).That is to say, operating system 1122 only can be identified and access the second subregion 1204, and None-identified and access the first subregion 1202.Now, when the changeover program 1304 of running in primary memory 1114 detects external storage device 1200 while being again electrically connected to host computer 1110, changeover program 1304 can be searched application program 1306 executive utility 1306 in the second subregion 1204.That is to say, changeover program 1304 can be to the address section in operating system 1122 request configuration primary memorys 1114 with running application program 1306.
It is worth mentioning that, in the present embodiment, the second subregion 1204 is read-write subregion.Therefore,, after user obtains the renewal version of application program 1306 from manufacturer, user can override obtained refresh routine the application program 1306 being stored in the second subregion 1204.Base this, user can easily upgrade application program 1306.
In the present embodiment, medium management unit 1228 is to be embodied in medium controller 1220 with a form of firmware.For example, the medium management unit 1228 that comprises a plurality of steering orders (is for example burned onto to a program storage, ROM (read-only memory) (Read Only Memory, ROM)) in and by this program storage, be embedded in medium controller 1220, when external storage device 1200 running, a plurality of steering orders of medium management unit 1228 can have been carried out according to the application program execution mechanism of the embodiment of the present invention and storage space management mechanism by microprocessor unit 1222.
In another embodiment of the present invention, the steering order of medium management unit 1228 can also form of software be stored in storage unit 1210.Same, when external storage device 1200 running, a plurality of steering orders of medium management unit 1228 can be carried out by microprocessor unit 1222.In addition,, in another embodiment of the present invention, medium management unit 1228 can also an example, in hardware be embodied in medium controller 1220.
Fig. 3 is the calcspar of the medium controller of another embodiment of the present invention.
Please refer to Fig. 3, except microprocessor unit 1222, host interface unit 1224, medium interface unit 1226 and medium management unit 1228, medium controller 1220 ' also comprise memory buffer 3002, error correction unit 3004 and Power Management Unit 3006.
Memory buffer 3002 is electrically connected to microprocessor unit 1222 and for the temporary data that come from the data of host computer 1110 or come from storage unit 1210.
Error correction unit 3004 is electrically connected to microprocessor unit 1222 and for carrying out an error-correcting routine to guarantee the correctness of data.Specifically, when medium management unit 1228 receives main frame and writes instruction from host computer 1110, error correction unit 3004 can produce corresponding error-correcting code (Error Correcting Code for the data writing that corresponding this main frame writes instruction, ECC), and medium management unit 1228 this data writing can be write in storage unit 1210 with corresponding error-correcting code.And when medium management unit 1228 receives main frame reading command from host computer 1110, medium management unit 1228 can read data and the error-correcting code thereof of corresponding this main frame reading command from storage unit 1210, and error correction unit 3004 can be proofreaied and correct read data execution error according to this error-correcting code.
Power Management Unit 3006 is electrically connected to microprocessor unit 1222 and for controlling the power supply of external storage device.
Fig. 4 is the process flow diagram of the application program execution step of first embodiment of the invention.
Please refer to Fig. 4, first, in step S401, external storage device 1200 is electrically connected to host computer 1110.
In step S403, medium management unit 1228 is the first memory storage classification (that is, cd-ROM) and only provides the first subregion 1202 to operating system 1122 to operating system 1122 declaration external storage devices 1200.
Then,, in step S405, automatically execution of operating system 1122 automatically performs file 1302 and foundation automatically performs the descriptive language execution changeover program 1304 that file 1302 comprises.
In step S407, changeover program 1304 transmits change partitions instruction to medium management unit 1228.Afterwards, in step S409, medium management unit 1228 can temporarily make host interface unit 1224 and host computer 1110 interrupt being electrically connected, and medium management unit 1228 is electrically connected host interface unit 1224 and host computer 1110 again in step S411.Afterwards, in step S413, medium management unit 1228 is the second memory storage classification (for example, removal formula memory storage) and only provides the second subregion 1204 to operating system 1122 to operating system 1122 declaration external storage devices 1200.
Finally, in step S415, changeover program 1304 is searched application program 1306 executive utility 1306 being stored in the second subregion 1204.
In addition, in another embodiment of the present invention, application program execution step is also included in and successfully in primary memory 1114, turns round application program 1306 (that is, step S415) afterwards when changeover program 1304, the running that changeover program 1304 can terminations itself.
[the second embodiment]
Fig. 5 is the summary calcspar of the application program executive system of second embodiment of the invention.
Please refer to Fig. 5, application program executive system 5000 comprises host computer system 1100 and external storage device 5200.
The structure of host computer system 1100 and function have been described in detail as front, at this, are not repeated in this description.
External storage device 5200 is plug and play memory storages, and is electrically connected to removably host computer 1110.For example, external storage device 5200 is Portable disk or solid state hard disc (as shown in Figure 2).External storage device 5200 comprises connector 1208, storage unit 5210 and medium controller 5220, and wherein the structure of connector 1208 has been described in detail as front, at this, is not repeated in this description.
Be same as storage unit 1210, the storage space of storage unit 5210 is logically divided into the first subregion 1202 and the second subregion 1204, and wherein the first subregion 1202 stores and automatically performs file 1302 and changeover program 1304.In the present embodiment, the second subregion 1204 is logically divided into the 3rd subregion 5202 and the 4th subregion 5204, and application program 1306 is stored in the 3rd subregion 5202.
Medium controller 5220 is electrically connected to connector 1208 with storage unit 5210 and for receiving the instruction and the running of controlling external storage device 5200 of host computer 1100.Medium controller 5220 comprises microprocessor unit 1222, host interface unit 1224, medium interface unit 1226 and medium management unit 5228, wherein microprocessor unit 1222, host interface unit 1224 have been described in detail as front with structure and the function of medium interface unit 1226, at this, are not repeated in this description.
Medium management unit 5228 is electrically connected to microprocessor unit 1222, and is to be same as medium management unit 1228 in essence.Medium management unit 5228 is to be again electrically connected (at host interface unit 1224 and host computer 1110 with the difference of medium management unit 1228, the step S411 of Fig. 4) afterwards, medium management unit 5228 can be the second memory storage classification to operating system 1122 declaration external storage devices 5200.For example, in the present embodiment, the second memory storage classification is removal formula memory storage, and its storage space is comprised of the 3rd subregion 5202 and the 4th subregion 5204.
Specifically, in the present embodiment, when external storage device 5200 is electrically connected to host computer 1110, medium management unit 5228 can to operating system 1122 declaration external storage devices 5200 for external storage device 5200 be the first memory storage classification (, cd-ROM), and operating system 1122 only can identify the first subregion 1202 and the second subregion 1204 that None-identified is comprised of the 3rd subregion 5202 and the 4th subregion 5204.Then, operating system 1122 is automatically carried out and is automatically performed file 1302 in the first subregion 1202, and after carrying out changeover program 1304 according to the descriptive language that automatically performs file 1302, medium management unit 1228 can interrupt being electrically connected (with host computer 1110 according to the instruction indication host interface unit 1224 of changeover program 1304, connector 1208 becomes non-electric connection state with host computer 1110) and electric connection again (that is, connector 1208 becomes electric connection state again with host computer 1110) again.At this, when host interface unit 1224 and host computer 1110 are electrically connected again, medium management unit 5228 can to operating system 1122 declaration external storage devices 5200 be the second memory storage classification (for example, removal formula memory storage), and operating system 1122 only can be identified and access the 3rd subregion 5202 and the 4th subregion 5204, and None-identified and access the first subregion 1202.Now, changeover program 1304 can be searched application program 1306 executive utility 1306 in the 3rd subregion 5202.
It is worth mentioning that, in the present embodiment, medium management unit 5228 is set as write protection subregion by the 3rd subregion 5202, and the 4th subregion 5204 is set as to read-write subregion.That is to say, user can store user's data with the 4th subregion 5204, can avoid thus the application program 1306 being stored in the 3rd subregion 5202 to be deleted by mistake.Particularly, in the present embodiment, the manufacturer of external storage device 5200 can provide another mechanism (for example, a hardware switch or a software program) for user, to remove the write protection of the 3rd subregion 5202.
[the 3rd embodiment]
Fig. 6 is the summary calcspar of the application program executive system of third embodiment of the invention.
Please refer to Fig. 6, application program executive system 6000 comprises host computer system 1100 and external storage device 6200.
The structure of host computer system 1100 and function have been described in detail as front, at this, are not repeated in this description.
External storage device 6200 is plug and play memory storages, and is electrically connected to removably host computer 1110.For example, external storage device 6200 is Portable disk or solid state hard disc (as shown in Figure 2).External storage device 6200 comprises connector 1208, storage unit 6210 and medium controller 6220, and wherein the structure of connector 1208 has been described in detail as front, at this, is not repeated in this description.
Be same as storage unit 5210, the second subregion 1204 that the storage space of storage unit 6210 is logically divided into the first subregion 1202 and is comprised of the 3rd subregion 5202 and the 4th subregion 5204, wherein the first subregion 1202 stores and automatically performs file 1302 and changeover program 1304, and stores application program 1306 in the 3rd subregion 5202 of the second subregion 1204.In the present embodiment, the 4th subregion 5204 is logically divided into the 5th subregion 6202 and the 6th subregion 6204.
Medium controller 6220 is electrically connected to connector 1208 with storage unit 6210 and for receiving the instruction and the running of controlling external storage device 6200 of host computer 1100.Medium controller 6220 comprises microprocessor unit 1222, host interface unit 1224, medium interface unit 1226 and medium management unit 6228, wherein microprocessor unit 1222, host interface unit 1224 have been described in detail as front with structure and the function of medium interface unit 1226, at this, are not repeated in this description.
Medium management unit 6228 is electrically connected to microprocessor unit 1222, and is to be same as medium management unit 1228 in essence.Medium management unit 6228 is to be again electrically connected (at host interface unit 1224 and host computer 1110 with the difference of medium management unit 1228, the step S411 of Fig. 4) afterwards, medium management unit 6228 can be the second memory storage classification to operating system 1122 declaration external storage devices 6200.For example, in the present embodiment, the second memory storage classification is removal formula memory storage, and the storage space of this removal formula memory storage is comprised of the 3rd subregion 5202, the 5th subregion 6202 and the 6th subregion 6204.
Specifically, in the present embodiment, when external storage device 6200 is electrically connected to host computer 1110, medium management unit 6228 can to operating system 1122 declaration external storage devices 6200 for external storage device 6200 be the first memory storage classification (, cd-ROM), and operating system 1122 only can identify the first subregion 1202 and None-identified the 3rd subregion 5202, the 5th subregion 6202 and the 6th subregion 6204.Then, operating system 1122 is automatically carried out and is automatically performed file 1302 in the first subregion 1202, and after carrying out changeover program 1304 according to the descriptive language that automatically performs file 1302, medium management unit 6228 can interrupt being electrically connected (with host computer 1110 according to the instruction indication host interface unit 1224 of changeover program 1304, connector 1208 becomes non-electric connection state with host computer 1110) and electric connection again (that is, connector 1208 becomes electric connection state again with host computer 1110) again.At this, when host interface unit 1224 and host computer 1110 are electrically connected again, medium management unit 6228 can to operating system 1122 declaration external storage devices 6200 be the second memory storage classification (for example, removal formula memory storage), and operating system 1122 only can be identified and access the 3rd minute subregion 5202, the 5th subregion 6202 and the 6th subregion 6204, and None-identified and access the first subregion 1202.Now, changeover program 1304 can be searched application program 1306 in the 3rd subregion 5202, and executive utility 1306.
Particularly, in embodiments of the present invention, after the application program 1306 that changeover program 1304 is carried out in the 3rd subregion 5202, changeover program 1304 can be searched other application programs in the 5th subregion 6202, and when searching other application programs, changeover program 1304 also can be carried out other searched application programs.That is to say, user can optionally by wanting, when external storage device 6200 is electrically connected to host computer 1110, any application storage of running be in the 5th subregion 6202 automatically, and changeover program 1304 can automatically be carried out these application programs.
In the present embodiment, medium management unit 6228 is set as write protection subregion by the 3rd subregion 5202, and the 5th subregion 6202 and the 6th subregion 6204 are set as to read-write subregion.That is to say, user can store other application programs of wanting to automatically perform with the 5th subregion 6202, and stores user's data with the 6th subregion 6204, can avoid thus the application program 1306 being stored in the 3rd subregion 5202 to be deleted by mistake.Similarly, in the present embodiment, the manufacturer of external storage device 6200 also can provide another mechanism (for example, a hardware switch or a software program) for user, to remove the write protection of the 3rd subregion 5202.
Fig. 7 is the process flow diagram of the application program execution step of third embodiment of the invention.
Please refer to Fig. 7, first, in step S701, external storage device 6200 is electrically connected to host computer 1110.
In step S703, medium management unit 6228 is the first memory storage classification (that is, cd-ROM) and only provides the first subregion 1202 to operating system 1122 to operating system 1122 declaration external storage devices 6200.
Then,, in step S705, automatically execution of operating system 1122 automatically performs file 1302 and foundation automatically performs the descriptive language execution changeover program 1304 that file 1302 comprises.
In step S707, changeover program 1304 transmits change partitions instruction to medium management unit 6228.Afterwards, in step S709, medium management unit 6228 can temporarily make host interface unit 1224 and host computer 1110 interrupt being electrically connected, and medium management unit 6228 is electrically connected host interface unit 1224 and host computer 1110 again in step S711.Afterwards, in step S713, medium management unit 6228 is the second memory storage classification (for example, removal formula memory storage) and only provides the 3rd subregion 5202, the 5th subregion 6202 and the 6th subregion 6204 to operating system 1122 to operating system 1122 declaration external storage devices 6200.
In step S715, changeover program 1304 is searched application program 1306 executive utility 1306 being stored in the 3rd subregion 5202.Then, in step S717, changeover program 1304 is searched other application programs that are stored in the 5th subregion 6202 and is carried out other application programs that search.
In sum, the present invention stores with the general subregion of external storage device the application program that manufacturer provides, and with the subregion that emulation is cd-ROM, store and automatically perform file and changeover program, the application program that makes to be thus stored in general subregion can automatically be carried out.In addition,, because application program is to be stored in general subregion, therefore reduce significantly the degree of difficulty that upgrades application program.Moreover user also can increase other application programs newly easily so that when external storage device is electrically connected to host computer except the application program that manufacturer provides other application programs also can automatically be carried out.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (20)

1. an application executing method, automatically carries out the application program in a storage unit that is stored in an external storage device for the operating system at a host computer, and this application executing method comprises:
This storage unit is logically divided into one first subregion and one second subregion, and is a read-only optical disc subregion by this first subregion emulation;
By one, automatically perform file and and switch programmed instruction and be burned onto in this first subregion, wherein this automatically performs file for automatically carrying out this changeover program instruction automatically to carry out this application program;
By this application storage in this second subregion; And
In this external storage device, configure a medium controller,
Wherein when this external storage device is electrically connected to this host computer, with this medium controller, only provide this first subregion to this operating system identification, by this operating system, automatically carry out this and automatically perform file, by this, automatically perform file and carry out this changeover program instruction to require this medium controller to make this external storage device and this host computer interrupt being electrically connected and being again electrically connected to this host computer
Wherein when this medium controller makes this external storage device again be electrically connected to this host computer, with this medium controller only provide this second subregion to this operating system identification and this changeover program instruction of turning round to carry out this application program.
2. application executing method according to claim 1, also comprises:
After carrying out this application program, stop voluntarily the running of this changeover program instruction.
3. application executing method according to claim 1, also comprises this second subregion is divided into one the 3rd subregion and one the 4th subregion, and wherein this application program is stored in the 3rd subregion.
4. application executing method according to claim 3, also comprises the 3rd subregion is set as to a Reading Sections, and the 4th subregion is set as to a read-write subregion.
5. application executing method according to claim 3, also comprises the 4th subregion is divided into one the 5th subregion and one the 6th subregion, and by least one other application storage in the 5th subregion.
6. application executing method according to claim 5, wherein, when this medium controller makes this external storage device again be electrically connected to this host computer, this changeover program instruction of turning round is stored in these at least one other application programs in the 5th subregion to carry out.
7. application executing method according to claim 1, also comprises:
When this external storage device is electrically connected to this host computer, to this host computer, declare that this external storage device is one first memory storage classification; And
When this medium controller makes this external storage device again be electrically connected to this host computer, to this host computer, declare that this external storage device is one second memory storage classification,
Wherein this first memory storage classification is different from this second memory storage classification.
8. an application program executive system, for automatically carrying out an application program in an operating system, this application program executive system comprises:
One host computer, has an in-building type memory storage, and wherein this in-building type memory storage is provided with this operating system; And
One external storage device, comprising:
One storage unit, has one first subregion and one second subregion, and wherein this application program is stored in this second subregion, and wherein this first partitioned storage one automatically performs file and a switching programmed instruction; And
One medium controller, is electrically connected to this storage unit, for being a read-only optical disc subregion by this first subregion emulation,
Wherein when this external storage device is electrically connected to this host computer, this medium controller only provides this first subregion to this operating system identification, this operating system can automatically be carried out this and automatically perform file, this automatically performs file can carry out this changeover program instruction to require this medium controller to make this external storage device and this host computer interrupt being electrically connected and being again electrically connected to this host computer
Wherein, when this medium controller makes this external storage device again be electrically connected to this host computer, this medium controller only provides this second subregion to turn round this changeover program instruction to carry out this application program to this operating system identification and this operating system.
9. application program executive system according to claim 8, wherein turns round this changeover program instruction with after carrying out this application program in this operating system, and this changeover program instruction stops voluntarily.
10. application program executive system according to claim 8, wherein this second subregion comprises one the 3rd subregion and one the 4th subregion, and this application program is stored in the 3rd subregion.
11. application program executive systems according to claim 10, wherein this medium controller is set as a Reading Sections by the 3rd subregion, and the 4th subregion is set as to a read-write subregion.
12. application program executive systems according to claim 8,
Wherein, when this external storage device is electrically connected to this host computer, this medium controller declares that to this host computer this external storage device is one first memory storage classification,
Wherein, when this medium controller makes this external storage device again be electrically connected to this host computer, this medium controller declares that to this host computer this external storage device is one second memory storage classification,
Wherein this first memory storage classification is different from this second memory storage classification.
13. 1 kinds of medium controllers, be used for a storage unit that receives the instruction of an operating system that comes from a host computer and control an external storage device, wherein this storage unit has one first subregion and one second subregion, this first partitioned storage one automatically performs file and and switches programmed instruction, and this second partitioned storage one application program, this medium controller comprises:
One microprocessor unit;
One medium interface unit, is electrically connected to this microprocessor unit, in order to be electrically connected this storage unit;
One host interface unit, is electrically connected to this microprocessor unit, in order to be electrically connected this host computer; And
One medium management unit, is electrically connected this microprocessor unit, in order to being a read-only optical disc subregion by this first subregion emulation,
Wherein when this external storage device is electrically connected to this host computer, this medium management unit only provides this first subregion to this operating system identification, this operating system can automatically be carried out this and automatically perform file, this automatically performs file can carry out this changeover program instruction to require this medium management unit to make this host interface unit and this host computer interrupt being electrically connected and being again electrically connected to this host computer
Wherein, when this medium management unit makes this host interface unit again be electrically connected to this host computer, this medium management unit only provides this second subregion to turn round this changeover program instruction to carry out this application program to this operating system identification and this operating system.
14. medium controllers according to claim 13,
Wherein, when this host interface unit is electrically connected to this host computer, this medium management unit declares that to this host computer this external storage device is one first memory storage classification,
Wherein, when this medium management unit makes this host interface unit again be electrically connected to this host computer, this medium management unit declares that to this host computer this external storage device is one second memory storage classification,
Wherein this first memory storage classification is different from this second memory storage classification.
15. 1 kinds of external storage devices, comprising:
A connector;
One storage unit, has one first subregion and one second subregion, and wherein this first partitioned storage one automatically performs file and a switching programmed instruction, and this second partitioned storage one application program; And
One medium controller, is electrically connected to this connector and this storage unit, in order to being a read-only optical disc subregion by this first subregion emulation,
Wherein when this connector is electrically connected to a host computer, this medium controller only provides the operating system identification of this first subregion to this host computer, this operating system can automatically be carried out this and automatically perform file, this automatically performs file can carry out this changeover program instruction to require this medium controller to make this connector and this host computer interrupt being electrically connected and being again electrically connected to this host computer
Wherein, when this medium controller makes this connector again be electrically connected to this host computer, this medium controller only provides this second subregion to turn round this changeover program instruction to carry out this application program to this operating system identification and this operating system.
16. external storage devices according to claim 15, wherein, after carrying out this application program, stop the running of this changeover program instruction voluntarily.
17. external storage devices according to claim 15, wherein this second subregion comprises one the 3rd subregion and one the 4th subregion, and this application program is stored in the 3rd subregion.
18. external storage devices according to claim 15,
Wherein, when this connector is electrically connected to this host computer, this medium controller transmits an identifying information to this host computer, and wherein this identifying information comprises one first memory storage classification,
Wherein, when this medium controller makes this connector again be electrically connected to this host computer, this medium controller transmits another identifying information to this host computer, and wherein this another identifying information comprises one second memory storage classification,
Wherein this first memory storage classification is different from this second memory storage classification.
19. 1 kinds of application executing methods, comprising:
One external storage device of one storage unit with one first subregion and one second subregion is provided, and wherein this first subregion has one and automatically performs file and and switch programmed instruction, and has an application program in this second subregion;
When this external storage device is electrically connected to a host computer, one medium controller of this external storage device only provides the operating system identification of this first subregion to this host computer, and by this operating system, by this, automatically performs file and carry out this changeover program instruction; And
Turn round this changeover program instruction to notify this medium controller only to provide this second subregion to this operating system identification, and turn round this changeover program instruction to carry out this application program after this operating system identification.
20. application executing methods according to claim 19, also comprise:
Declare that this first subregion is one first memory storage classification; And
Declare that this second subregion is one second memory storage classification, wherein this first memory storage classification is different from this second memory storage classification.
CN200910172159.0A 2009-09-10 2009-09-10 Application program execution method and system, storage media controller and storage device Active CN102023873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910172159.0A CN102023873B (en) 2009-09-10 2009-09-10 Application program execution method and system, storage media controller and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910172159.0A CN102023873B (en) 2009-09-10 2009-09-10 Application program execution method and system, storage media controller and storage device

Publications (2)

Publication Number Publication Date
CN102023873A CN102023873A (en) 2011-04-20
CN102023873B true CN102023873B (en) 2014-01-22

Family

ID=43865195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910172159.0A Active CN102023873B (en) 2009-09-10 2009-09-10 Application program execution method and system, storage media controller and storage device

Country Status (1)

Country Link
CN (1) CN102023873B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201419038A (en) * 2012-11-12 2014-05-16 zheng-guang Yang Quick function selection method of smart devices, recording media, and computer program product
CN105279088B (en) * 2015-10-23 2018-08-07 上海航天测控通信研究所 A kind of spaceborne computer software storage system and its method for burn-recording
CN107861762A (en) * 2017-11-22 2018-03-30 英业达科技有限公司 Server and its operation method with storage device

Also Published As

Publication number Publication date
CN102023873A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
JP6253614B2 (en) Storage device virtualization
US9176865B2 (en) Data writing method, memory controller, and memory storage device
US20050270877A1 (en) Storage device and information processing system
CN110515641A (en) The update method of server firmware, apparatus and system
US9460004B2 (en) Memory erasing method, memory controller, and memory storage apparatus
CN101454746A (en) Method for communication with a multi-function memory card
CN110941395B (en) Dynamic random access memory, memory management method, system and storage medium
TWI421686B (en) Data access method and system, storage medium controller and storage system
CN105718281A (en) Touch screen firmware upgrading method and device
CN102023873B (en) Application program execution method and system, storage media controller and storage device
CN102207905A (en) System recovery method, storage media controller and storage system
TWI462014B (en) Method and system for executing applicaton programs, storage medium controller and stotage device
CN103389941B (en) Storer formatting method, Memory Controller and memory storage apparatus
CN104133640A (en) Quick recovery from dormancy
US7680909B2 (en) Method for configuration of a processing unit
US20040054859A1 (en) Mouse device capable of storing data
CN103902298A (en) Instruction set firmware recovery state information setting method and device
CN103870209A (en) Working mode switching method, memory controller and memory storage device
US8595417B2 (en) Memory configuring method, memory controller and memory storage apparatus
CN102253905A (en) Data processing device applied to storage device, data access system and related method applied to storage device
TWI390399B (en) External device having a virtual storage device
CN108132847A (en) A kind of data processing method, the first electronic equipment and computer storage media
CN102339226B (en) Method and system for executing application programs and externally connected storage device
JP2018124618A (en) Information processing apparatus, control program and control method
CN106933558A (en) A kind of power control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant