CN102023873A - 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
CN102023873A
CN102023873A CN2009101721590A CN200910172159A CN102023873A CN 102023873 A CN102023873 A CN 102023873A CN 2009101721590 A CN2009101721590 A CN 2009101721590A CN 200910172159 A CN200910172159 A CN 200910172159A CN 102023873 A CN102023873 A CN 102023873A
Authority
CN
China
Prior art keywords
subregion
host computer
storage device
external storage
electrically connected
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.)
Granted
Application number
CN2009101721590A
Other languages
Chinese (zh)
Other versions
CN102023873B (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, make the consumer also increase rapidly the demand of medium.Because flash memory (Flash Memory) has that data are non-volatile, power saving, volume is little and the characteristic of no mechanical structure etc., is suitably used as portable memory device most.In addition, (for example, (Universal Serial Bus, USB)) development make portable memory device be widely used in the storage of digital content to USB (universal serial bus) along with the connecting interface of plug and play.
The manufacturer of memory storage has more the market competitiveness in order to make the portable memory device that is sold, and tends in the portable memory device that is sold application storing 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 the user can use this disk management program to manage portable memory device.
At present, the application program that can automatically carry out this type of manufacturer and provided for the host computer that makes the user, manufacturer can divide the storage unit of portable memory device one read-only optical disc (CompactDisc-Read Only Memory, CD-ROM) subregion (Partition), and with this application program and (for example automatically perform file, the description document (script file) of file " Autorun.inf " by name) burning in advance is in the read-only optical disc subregion of being divided, so that the operating system of host computer (for example, Microsoft Windows) automatically is provided by the application program that is provided.
Yet, because the file in the read-only optical disc subregion can't upgrade again, therefore, is offering under user's the situation in the above-mentioned mode of the application program of being developed that provides, when application program that manufacturer provided had the version of renewal, the user was difficult to upgrade.Perhaps, wish that the user external storage device of being bought 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 are burned onto in the 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 switch different subregions when external storage device is electrically connected to host computer 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 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 when being electrically connected to host computer by cryopreservation device.
The embodiment of the invention proposes a kind of application executing method, is used for automatically carrying out a application program in the storage unit that is stored in an external storage device in an operating system of a host computer.The application manner of execution comprises storage unit logically is divided into one first subregion and one second subregion, and is a read-only optical disc subregion with the first subregion emulation.The application manner of execution also comprise with one automatically perform file and switch in burning program to the first subregion and with above-mentioned application storage in second subregion, wherein this automatically performs that file is used for automatically carrying out this changeover program and this changeover program is used for automatically carrying out this application program.The application manner of execution also is included in configuration one medium controller in the external storage device, wherein when external storage device is electrically connected to host computer, use the medium controller only to provide first subregion to discern to operating system, automatically carry out by operating system and to automatically perform file, carry out changeover program by automatically performing file, and require the medium controller to make external storage device and host computer interrupt electrically connecting and being electrically connected to again host computer by changeover program.In addition, wherein when the medium controller made external storage device be electrically connected to host computer again, the application manner of execution also comprises used the medium controller only to provide second subregion to carry out above-mentioned application program to operating system identification and by changeover program.
The embodiment of the invention proposes a kind of application program executive system, is used for automatically carrying out an application program in an operating system.The application executive system.The 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 equipped with the 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 second subregion.Automatically performing file and changeover program is to be configured in first subregion.The medium controller is electrically connected to storage unit, and in order to being the read-only optical disc subregion with the first subregion emulation, wherein when external storage device is electrically connected to host computer, the medium controller only provides the operating system identification of 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 the medium controller to make external storage device and host computer interrupt electrically connecting and being electrically connected to again host computer.In addition, when the medium controller made external storage device be electrically connected to host computer again, the medium controller only provided second subregion to carry out above-mentioned application program to operating system identification and changeover program.
The embodiment of the invention proposes a kind of medium controller, be used to receive the instruction of an operating system that comes from a host computer and control a storage unit of an external storage device, wherein this storage unit has one first subregion and one second subregion, first subregion storage one automatically performs a file and a switching program, and second subregion is stored an application program.This medium controller comprises microprocessor unit, medium interface unit, host interface unit and medium management unit.The medium interface unit is electrically connected to microprocessor unit, and is used to electrically connect storage unit.Host interface unit is electrically connected to microprocessor unit, and is used to electrically connect host computer.The medium management unit electrically connects microprocessor unit, and in order to being a read-only optical disc subregion with the first subregion emulation, wherein when external storage device is electrically connected to host computer, the medium management unit only provides first subregion to discern 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 the medium management unit to make host interface unit and host computer interrupt electrically connecting and being electrically connected to again host computer.In addition, when the medium management unit made host interface unit be electrically connected to host computer again, the medium management unit only provided second subregion to carry out above-mentioned application program to operating system identification and changeover program.
The embodiment of the 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 first subregion storage one automatically performs a file and a switching program, and second subregion is stored an application program.The medium controller is electrically connected to connector and storage unit, and in order to being a read-only optical disc subregion with the first subregion emulation, wherein when connector is electrically connected to host computer, the medium controller only provides the operating system identification of 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 the medium controller to make connector and host computer interrupt electrically connecting and being electrically connected to again host computer.In addition, when the medium controller made connector be electrically connected to host computer again, the medium controller only provided second subregion to carry out above-mentioned application program to operating system identification and changeover program.
The embodiment of the 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 first subregion has one and automatically performs a file and a switching program, and has an application program in second subregion.The 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 above-mentioned first subregion to the identification of the operating system of host computer, and carries out above-mentioned changeover program through operating system thus by the above-mentioned file that automatically performs.The application method also comprises by above-mentioned changeover program notice said storing medium controller only provides above-mentioned second subregion to this operating system identification, and carries out above-mentioned application program in this operating system identification back by this changeover program.
Based on above-mentioned, the embodiment of the invention can automatically be carried out the application program that is stored in the general subregion, and this application program can easily be updated.
For above-mentioned feature and advantage of the present invention can be become apparent, embodiment cited below particularly, and conjunction with figs. is described in detail below.
Description of drawings
Fig. 1 is the summary calcspar of the application program executive system of first embodiment of the invention;
Fig. 2 is the synoptic diagram of computer, input/output device and the flash memory storage devices of the embodiment of the 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 in 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 in step of third embodiment of the invention.
Main element symbol description in the accompanying drawing:
1000-application program executive system; The 1100-host computer system;
The 1110-host computer; The 1112-CPU (central processing unit);
The 1114-primary memory; The 1116-system bus;
The 1118-data transmission interface; 1120-in-building type memory storage;
1122-operating system; The 1150-input/output device;
1200,5200,6200-external storage device; 1202-first subregion;
1204-second subregion; The 1208-connector;
1210,5210,6210-storage unit;
1220,1220 ', 5220,6220-medium controller;
The 1222-microprocessor unit; The 1224-host interface unit;
1226-medium interface unit; 1228,5228,6228-medium management unit;
1302-automatically performs file; The 1304-changeover program;
The 1306-application program; The 2202-mouse;
The 2204-keyboard; The 2206-display;
The 2208-printer; The carry-on dish of 2210-;
The 2212-solid state hard disc; The 3002-memory buffer;
The 3004-error correction unit; The 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 in step;
S701, S703, S705, S707, S709, S711, S713, S715, S717-application program execution in 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 host computer 1110 and I/O (input/output, I/O) device 1150.
In the present embodiment, host computer 1110 is the desktop PC.It must be appreciated, the invention is not restricted to this, in another embodiment of the present invention, host computer 1110 also can be notebook computer, server or other any host computers that can carry out computer program.Host computer 1110 comprise 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 be installed in operating system 1122 in the in-building type memory storage 1120.
CPU (central processing unit) 1112 is used for explaining computer instruction and the data of handling computer software.
Primary memory 1114 is electrically connected to CPU (central processing unit) 1112 via system bus 1116 and is used to be written into program miscellaneous and data are directly carried out and utilization for CPU (central processing unit) 1112.Specifically, primary memory 1114 has can be read and write and the characteristic of read or write speed etc. faster at any time, so primary memory 1114 is used 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 be dynamic RAM (Dynamic RandomAccess Memory, DRAM).In addition, it must be appreciated that 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, is used to electrically connect external storage device 1200.In the present embodiment, data transmission interface is USB (universal serial bus) (Universal Serial Bus, a 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 interfaces that is fit to.
In-building type memory storage 1120 is electrically connected to central processor unit 1112 via system bus 1116 and is used for main memory storage as host computer 1110.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 equipped with operating system 1122, and operating system 1122 is used to manage the program of computer hardware (Computer hardware) and computer software (Computer software) resource.Specifically, operating system 1122 is used for management and runnings such as the priority ranking that disposes primary memory 1114, decision systems resource (for example, CPU (central processing unit) 1112, primary memory 1114, I/O unit 1150) supply and demand, control input/output device 1150, managing file system.In the present embodiment, operating system 1122 is form (Windows) operating system of company of Microsoft (Microsoft).Yet, it must be appreciated that 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, device shown in Figure 2 and 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 host computer 1110 removably.For example, external storage device 1200 is carry-on dish 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 used to electrically connect host computer 1110.In the present embodiment, connector 1208 is a USB connector.Yet, it must be appreciated to the invention is not restricted to this that connector 1208 can also be SATA connector, electric and IEEE 1394 connectors, PCI Express connector or other connectors that is fit to.
Storage unit 1210 is used to store data.For example, storage unit 1210 is a flash memory.Particularly, in the present embodiment, the storage space of storage unit 1210 can logically be divided into first subregion 1202 and second subregion 1204, and wherein first subregion 1202 stores and automatically performs file 1302 and changeover program 1304, and 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, and application program 1306 offers user's program for the manufacturer of external storage device 1200 for a kind of.In addition, changeover program 1304 is used for when external storage device 1200 is electrically connected to host computer 1110 operating system 1122 accessible subregions being converted to second subregion 1204 from first subregion 1202.
Medium controller 1220 is electrically connected to connector 1208 and storage unit 1210, and is used to receive the instruction of host computer 1110 and the running of control external storage device 1200.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, be used for cooperative cooperatings 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 is used to receive and discern instruction and the data that host computer 1110 is transmitted, and sends data to host computer 1110.In the present embodiment, host interface unit 1224 is a USB interface.Yet, it must be appreciated to the invention is not restricted to this that host interface unit 1224 can also be SATA interface, IEEE 1394 interfaces, PCIExpress interface or other interfaces that is fit to.What deserves to be mentioned is that what host interface unit 1224, connector 1208 and data transmission interface 1118 must be corresponding is the 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 is used to be electrically connected to storage unit 1210.For example, medium interface unit 1226 is the flash memory interface unit.
Medium management unit 1228 is electrically connected to microprocessor unit 1222, is used for cooperating to carry out application program execution mechanism and the storage space management mechanism according to present embodiment with changeover program 1304.
In embodiments of the present invention, medium management unit 1228 can be the cd-ROM subregion with first subregion, 1202 emulation in the storage unit 1210.Particularly, when external storage device 1200 is electrically connected to host computer 1110, medium management unit 1228 can be that first memory storage classification (that is cd-ROM) and operating system 1122 only can be discerned first subregion 1202 and can't discern 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 that only have first subregion 1202, and operating system 1122 can be managed external storage device 1200 according to this information.That is to say that operating system 1122 can be considered as cd-ROM with external storage device 1200, wherein this cd-ROM content of storing is for automatically performing file 1302 and changeover program 1304.At this, because when external storage device 1200 is electrically connected to host computer 1110, external storage device 1200 can be regarded as the read-only optical disc machine, therefore, operating system 1122 can automatically be carried out to be stored in and automatically perform file 1302 in 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 be in primary memory 1114 configuration address section (Run) changeover program 1304 that turns round.
When changeover program 1304 runnings, changeover program 1304 can transmit the instruction of change partitions so that operating system 1122 discernible subregions are switched to second subregion 1204 from first subregion 1202 to medium management unit 1228.
For example, when medium management unit 1228 receives the instruction of change partitions, medium management unit 1228 can indication host interface unit 1224 interrupt electrically connecting (promptly 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 the electric connection state again with host computer 1110) again.Particularly, when the instruction of change partitions was 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 external storage device 1200 again 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 that medium management unit 1228 can transmit after changing is given operating system 1122.That is to say, when host interface unit 1224 and data transmission interface 1118 electrically connect 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 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 that operating system 1122 only can be discerned and access second subregion 1204, and can't discern and access first subregion 1202.At this moment, when the changeover program 1304 of running in primary memory 1114 detects external storage device 1200 when being electrically connected to host computer 1110 again, changeover program 1304 can be searched application program 1306 and executive utility 1306 in second subregion 1204.That is to say that changeover program 1304 can be to the address section in the operating system 1122 request configuration primary memorys 1114 with running application program 1306.
What deserves to be mentioned is that in the present embodiment, second subregion 1204 is read-write subregion.Therefore, when the user obtained the renewal version of application program 1306 from manufacturer after, the user can override the refresh routine that is obtained the application program 1306 that is stored in second subregion 1204.The base this, the user can easily upgrade application program 1306.
In the present embodiment, medium management unit 1228 is to be embodied in the medium controller 1220 with a form of firmware.For example, the medium management unit 1228 that will comprise a plurality of steering orders (for example is burned onto a program storage, ROM (read-only memory) (Read Only Memory, ROM)) be embedded in the medium controller 1220 in and with this program storage, when external storage device 1200 runnings, a plurality of steering orders of medium management unit 1228 can be carried out to finish application program execution mechanism and the storage space management mechanism according to the embodiment of the invention 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 the storage unit 1210.Same, when external storage device 1200 runnings, 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 the 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 is used 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 is used to carry out an error-correcting routine to guarantee the correctness of data.Specifically, when receiving main frame from host computer 1110, medium management unit 1228 writes when instruction, error correction unit 3004 can write error-correcting code (the Error Correcting Code that data produce correspondence that writes of instruction for corresponding this main frame, ECC), and medium management unit 1228 this can be write data and write in the storage unit 1210 with corresponding error-correcting code.And when medium management unit 1228 receives the main frame reading command from host computer 1110, medium management unit 1228 can read the 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 the data execution error of being read according to this error-correcting code.
Power Management Unit 3006 is electrically connected to microprocessor unit 1222 and is used to control the power supply of external storage device.
Fig. 4 is the process flow diagram of the application program execution in step of first embodiment of the invention.
Please refer to Fig. 4, at first, in step S401, external storage device 1200 is electrically connected to host computer 1110.
Medium management unit 1228 is the first memory storage classification (that is cd-ROM) and only provides first subregion 1202 to operating system 1122 to operating system 1122 declaration external storage devices 1200 in step S403.
Then, in step S405, operating system 1122 execution automatically automatically performs file 1302 and foundation automatically performs the descriptive language execution changeover program 1304 that file 1302 is comprised.
Changeover program 1304 transmission change partitions instruct to medium management unit 1228 in step S407.Afterwards, medium management unit 1228 can temporarily make host interface unit 1224 and host computer 1110 interrupt electrically connecting in step S409, and medium management unit 1228 electrically connects host interface unit 1224 and host computer 1110 again in step S411.Afterwards, medium management unit 1228 is the second memory storage classification (for example, removal formula memory storage) and only provides second subregion 1204 to operating system 1122 to operating system 1122 declaration external storage devices 1200 in step S413.
At last, changeover program 1304 is searched application program 1306 and the executive utility 1306 that is stored in second subregion 1204 in step S415.
In addition, in another embodiment of the present invention, the application program execution in step also be included in when changeover program 1304 successfully in primary memory 1114 running application program 1306 (that is, step S415) afterwards, the running that changeover program 1304 can terminations itself.
[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 described in detail as before, be not repeated in this description at this.
External storage device 5200 is plug and play memory storages, and is electrically connected to host computer 1110 removably.For example, external storage device 5200 is carry-on dish or solid state hard disc (as shown in Figure 2).External storage device 5200 comprises connector 1208, storage unit 5210 and medium controller 5220, wherein the structure of connector 1208 described in detail as before, be not repeated in this description at this.
Be same as storage unit 1210, the storage space of storage unit 5210 logically is divided into first subregion 1202 and second subregion 1204, and wherein first subregion 1202 stores and automatically performs file 1302 and changeover program 1304.In the present embodiment, second subregion 1204 logically is 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 be used to receive the instruction of host computer 1100 and the running of control external storage device 5200.Medium controller 5220 comprises microprocessor unit 1222, host interface unit 1224, medium interface unit 1226 and medium management unit 5228, wherein the structure of microprocessor unit 1222, host interface unit 1224 and medium interface unit 1226 and function described in detail as before, be not repeated in this description at this.
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 electrically connect (promptly again 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 a removal formula memory storage, and its storage space is made up 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 (promptly, cd-ROM), and operating system 1122 only can discern first subregion 1202 and can't discern second subregion of being formed by the 3rd subregion 5202 and the 4th subregion 5,204 1204.Then, operating system 1122 is automatically carried out and is automatically performed file 1302 in first subregion 1202, and carry out after the changeover program 1304 according to the descriptive language that automatically performs file 1302, medium management unit 1228 can interrupt electrically connecting (promptly 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 the electric connection state again with host computer 1110) again.At this, when host interface unit 1224 and host computer 1110 electrically connect 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 discerned and access the 3rd subregion 5202 and the 4th subregion 5204, and can't discern and access first subregion 1202.At this moment, changeover program 1304 can be searched application program 1306 and executive utility 1306 in the 3rd subregion 5202.
What deserves to be mentioned is that in the present embodiment, medium management unit 5228 is set at the write protection subregion with the 3rd subregion 5202, and the 4th subregion 5204 is set at read-write subregion.That is to say that the user can use the 4th subregion 5204 to store user's data, the application program 1306 that can avoid thus being stored in the 3rd subregion 5202 is 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) to remove the write protection of the 3rd subregion 5202 for the user.
[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 described in detail as before, be not repeated in this description at this.
External storage device 6200 is plug and play memory storages, and is electrically connected to host computer 1110 removably.For example, external storage device 6200 is carry-on dish or solid state hard disc (as shown in Figure 2).External storage device 6200 comprises connector 1208, storage unit 6210 and medium controller 6220, wherein the structure of connector 1208 described in detail as before, be not repeated in this description at this.
Be same as storage unit 5210, the storage space of storage unit 6210 is by second subregion 1204 that logically is divided into first subregion 1202 and is made up of the 3rd subregion 5202 and the 4th subregion 5204, wherein first subregion 1202 stores and automatically performs file 1302 and changeover program 1304, and stores application program 1306 in the 3rd subregion 5202 of second subregion 1204.In the present embodiment, the 4th subregion 5204 logically is 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 be used to receive the instruction of host computer 1100 and the running of control external storage device 6200.Medium controller 6220 comprises microprocessor unit 1222, host interface unit 1224, medium interface unit 1226 and medium management unit 6228, wherein the structure of microprocessor unit 1222, host interface unit 1224 and medium interface unit 1226 and function described in detail as before, be not repeated in this description at this.
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 electrically connect (promptly again 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 a removal formula memory storage, and the storage space of this removal formula memory storage is made up 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 (promptly, cd-ROM), and operating system 1122 only can discern first subregion 1202 and can't discern 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 first subregion 1202, and carry out after the changeover program 1304 according to the descriptive language that automatically performs file 1302, medium management unit 6228 can interrupt electrically connecting (promptly 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 the electric connection state again with host computer 1110) again.At this, when host interface unit 1224 and host computer 1110 electrically connect 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 discerned and access the 3rd minute subregion 5202, the 5th subregion 6202 and the 6th subregion 6204, and can't discern and access first subregion 1202.At this moment, changeover program 1304 can be searched application program 1306 and executive utility 1306 in the 3rd subregion 5202.
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 application programs that searched.That is to say that the user can optionally be stored in the Any Application of desiring to turn round automatically in the 5th subregion 6202 when external storage device 6200 is electrically connected to host computer 1110, changeover program 1304 can automatically be carried out these application programs.
In the present embodiment, medium management unit 6228 is set at the write protection subregion with the 3rd subregion 5202, and the 5th subregion 6202 and the 6th subregion 6204 are set at read-write subregion.That is to say that the user can use the 5th subregion 6202 to store other application programs of desiring to automatically perform, and use the 6th subregion 6204 to store user's data, the application program 1306 that can avoid thus being stored in the 3rd subregion 5202 is 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) to remove the write protection of the 3rd subregion 5202 for the user.
Fig. 7 is the process flow diagram of the application program execution in step of third embodiment of the invention.
Please refer to Fig. 7, at first, in step S701, external storage device 6200 is electrically connected to host computer 1110.
Medium management unit 6228 is the first memory storage classification (that is cd-ROM) and only provides first subregion 1202 to operating system 1122 to operating system 1122 declaration external storage devices 6200 in step S703.
Then, in step S705, operating system 1122 execution automatically automatically performs file 1302 and foundation automatically performs the descriptive language execution changeover program 1304 that file 1302 is comprised.
Changeover program 1304 transmission change partitions instruct to medium management unit 6228 in step S707.Afterwards, medium management unit 6228 can temporarily make host interface unit 1224 and host computer 1110 interrupt electrically connecting in step S709, and medium management unit 6228 electrically connects host interface unit 1224 and host computer 1110 again in step S711.Afterwards, 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 S713.
Changeover program 1304 is searched application program 1306 and the executive utility 1306 that is stored in the 3rd subregion 5202 in step S715.Then, changeover program 1304 is searched other application programs that are stored in the 5th subregion 6202 and is carried out other application programs that searched in step S717.
In sum, the present invention uses the general subregion of external storage device to store the application program that manufacturer provides, and use emulation to store and automatically perform file and changeover program, the application program that is stored in the general subregion can automatically be carried out as the subregion of cd-ROM.In addition, because application program is to be stored in the general subregion, therefore reduce the degree of difficulty that upgrades application program significantly.Moreover the 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 provided other application programs also can automatically be carried out.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (20)

1. application executing method is used for automatically carrying out a application program in the storage unit that is stored in an external storage device in an operating system of a host computer, and this application executing method comprises:
This storage unit logically is divided into one first subregion and one second subregion, and is a read-only optical disc subregion this first subregion emulation;
Automatically perform file and with one and switch burning program to this first subregion, wherein this automatically performs that file is used for automatically carrying out this changeover program and this changeover program is used for automatically carrying out this application program;
With this application storage in this second subregion; And
Configuration one medium controller in this external storage device,
Wherein when this external storage device is electrically connected to this host computer, use this medium controller only to provide this first subregion to this operating system identification, automatically carry out this by this operating system and automatically perform file, automatically perform file by this and carry out this changeover program, and require this medium controller to make this external storage device and this host computer interrupt electrically connecting and being electrically connected to again this host computer by this changeover program
Wherein when this medium controller makes this external storage device be electrically connected to this host computer again, use this medium controller only to provide this second subregion to carry out this application program to this operating system identification and by this changeover program.
2. application executing method according to claim 1 also comprises:
After this changeover program is carried out this application program, stop voluntarily by this changeover program.
3. application executing method according to claim 1 comprises also this second subregion is divided into one the 3rd subregion and one the 4th subregion that 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 at a read-only subregion, and the 4th subregion is set at 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 with at 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 be electrically connected to this host computer again, carry out these at least one other application programs that are stored in the 5th subregion by this changeover program.
7. application executing method according to claim 1 also comprises:
When this external storage device is electrically connected to this host computer, declare that to this host computer this external storage device is one first memory storage classification; And
When this medium controller makes this external storage device be electrically connected to this host computer again, declare 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.
8. an application program executive system is used for automatically carrying out an application program in an operating system, and 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 equipped with this operating system; And
One external storage device comprises:
One storage unit has one first subregion and one second subregion, and wherein this application program is deposited
Storage is in this second subregion;
One automatically performs a file and a switching program, is configured in this first subregion; And
One medium controller is electrically connected to this storage unit, and being used for this first subregion emulation is a read-only optical disc subregion,
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, and this changeover program can require this medium controller to make this external storage device and this host computer interrupt electrically connecting and being electrically connected to again this host computer
Wherein when this medium controller made this external storage device be electrically connected to this host computer again, this medium controller only provided this second subregion to carry out this application program to this operating system identification and this changeover program.
9. application program executive system according to claim 8, wherein after this changeover program was carried out this application program, this changeover program stopped 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 system according to claim 10, wherein this medium controller is set at a read-only subregion with the 3rd subregion, and the 4th subregion is set at a read-write subregion.
12. application program executive system according to claim 8,
Wherein when this external storage device was electrically connected to this host computer, this medium controller declared that to this host computer this external storage device is one first memory storage classification,
Wherein when this medium controller made this external storage device be electrically connected to this host computer again, this medium controller declared 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. medium controller, be used to receive the instruction of an operating system that comes from a host computer and control a storage unit of an external storage device, wherein this storage unit has one first subregion and one second subregion, this first subregion storage one automatically performs a file and a switching program, and this second subregion is stored an application program, and this medium controller comprises:
One microprocessor unit;
One medium interface unit is electrically connected to this microprocessor unit, in order to electrically connect this storage unit;
One host interface unit is electrically connected to this microprocessor unit, in order to electrically connect this host computer; And
One medium management unit electrically connects this microprocessor unit, in order to being a read-only optical disc subregion with 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, and this changeover program can require this medium management unit to make this host interface unit and this host computer interrupt electrically connecting and being electrically connected to again this host computer
Wherein when this medium management unit made this host interface unit be electrically connected to this host computer again, this medium management unit only provided this second subregion to carry out this application program to this operating system identification and this changeover program.
14. medium controller according to claim 13,
Wherein when this host interface unit was electrically connected to this host computer, this medium management unit declared that to this host computer this external storage device is one first memory storage classification,
Wherein when this medium management unit made this host interface unit be electrically connected to this host computer again, this medium management unit declared 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. an external storage device comprises:
A connector;
One storage unit has one first subregion and one second subregion, and wherein this first subregion storage one automatically performs a file and a switching program, and this second subregion is stored an 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 with 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, and this changeover program can require this medium controller to make this connector and this host computer interrupt electrically connecting and being electrically connected to again this host computer
Wherein when this medium controller made this connector be electrically connected to this host computer again, this medium controller only provided this second subregion to carry out this application program to this operating system identification and this changeover program.
16. external storage device according to claim 15, wherein after this changeover program was carried out this application program, this changeover program stopped voluntarily.
17. external storage device 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 device according to claim 15,
Wherein when this connector was electrically connected to this host computer, this medium controller transmitted an identifying information and gives this host computer, and wherein this identifying information comprises one first memory storage classification,
Wherein when this medium controller made this connector be electrically connected to this host computer again, this medium controller transmitted another identifying information and gives 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. an application executing method comprises:
One external storage device of the storage unit with one first subregion and one second subregion is provided, and wherein this first subregion has one and automatically performs a file and a switching program, 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 this first subregion to the identification of an operating system of this host computer, and automatically performs file by this operating system by this and carry out this changeover program; And
Notify this medium controller only to provide this second subregion by this changeover program, and carry out this application program by this changeover program in this operating system identification back to this operating system identification.
20. application executing method according to claim 19 also comprises:
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 true CN102023873A (en) 2011-04-20
CN102023873B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810002A (en) * 2012-11-12 2014-05-21 杨正光 Method for quickly selecting function of intelligent device, recording medium and computer program product
CN105279088A (en) * 2015-10-23 2016-01-27 上海航天测控通信研究所 Satellite-borne computer software storage system and programming method thereof
CN107861762A (en) * 2017-11-22 2018-03-30 英业达科技有限公司 Server and its operation method with storage device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810002A (en) * 2012-11-12 2014-05-21 杨正光 Method for quickly selecting function of intelligent device, recording medium and computer program product
CN105279088A (en) * 2015-10-23 2016-01-27 上海航天测控通信研究所 Satellite-borne computer software storage system and programming method thereof
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
CN102023873B (en) 2014-01-22

Similar Documents

Publication Publication Date Title
JP5984118B2 (en) Storage device virtualization
CN110941395B (en) Dynamic random access memory, memory management method, system and storage medium
CN101364189A (en) Method and apparatus to enable runtime processor migration with operating system assistance
US20080114923A1 (en) Apparatus and method for controlling operation processing in nonvolatile memory
CN110515641A (en) The update method of server firmware, apparatus and system
US10656676B2 (en) Docking device, electrical device, and MAC address cloning method
CN102135908B (en) Method, device and computer system for switching operating system
CN110704334B (en) Method, system and equipment for important product data management
CN111290836A (en) Virtual machine snapshot creating method and device, storage medium and computer equipment
CN102207905A (en) System recovery method, storage media controller and storage system
CN102023873B (en) Application program execution method and system, storage media controller and storage device
US8090927B2 (en) Method and system for executing applicatons, storage medium controller and storage device
US7680909B2 (en) Method for configuration of a processing unit
CN102135896A (en) Method and system for realizing software upgrading based on embedded system
US20180157425A1 (en) Storage control apparatus, storage apparatus, and non-transitory computer-readable recording medium having control program stored therein
CN112860595B (en) PCI (peripheral component interconnect express) equipment or PCIE (peripheral component interconnect express) equipment, data access method and related assembly
CN209560583U (en) A kind of multimode multi partition USB flash disk
TWI390399B (en) External device having a virtual storage device
CN101625648A (en) Plug and play equipment, firmware upgrade method and firmware upgrade device
CN105487875A (en) Control method and control device for program memory and processor system thereof
CN106873901B (en) Memory management method, memory control circuit unit and memory storage device
CN110858145B (en) BIOS updating method and device under Linux operating system
CN106933558A (en) A kind of power control method and device
CN102622301A (en) Method and system for reading and updating flash-memory files
JP4026383B2 (en) Information processing system, information processing terminal, external storage device, information processing terminal control program, and external storage device control program

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