CN102339226B - Method and system for executing application programs and externally connected storage device - Google Patents

Method and system for executing application programs and externally connected storage device Download PDF

Info

Publication number
CN102339226B
CN102339226B CN201010234222.1A CN201010234222A CN102339226B CN 102339226 B CN102339226 B CN 102339226B CN 201010234222 A CN201010234222 A CN 201010234222A CN 102339226 B CN102339226 B CN 102339226B
Authority
CN
China
Prior art keywords
application program
operating system
host computer
external connection
connection type
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
CN201010234222.1A
Other languages
Chinese (zh)
Other versions
CN102339226A (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 CN201010234222.1A priority Critical patent/CN102339226B/en
Publication of CN102339226A publication Critical patent/CN102339226A/en
Application granted granted Critical
Publication of CN102339226B publication Critical patent/CN102339226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a method and a system for executing application programs and an externally connected storage device. The method and the system are used for automatically running a plurality of application programs stored in the externally connected storage device. The method comprises the following steps: configuring a selecting switch on the externally connected storage device, wherein the selecting switch can be set in one of a plurality of running modes and each of the running modes is respectively corresponding to each of the plurality of application programs; detecting a present running mode of the selecting switch and marking a selecting sign as the running mode; running a guide program in a host system; and asking the externally connected storage device for the selecting sign and running a corresponding application program according to the selecting sign by the guide program. Accordingly, the method can be used for automatically executing the corresponding application program according to the requirement of a user.

Description

Application executing method, system and external connection type memory apparatus
Technical field
The present invention relates to a kind of application executing method and system, particularly relate to and a kind ofly can automatically perform the application executing method, system and the external connection type memory apparatus that are stored in application program in external connection type memory apparatus in the operating system of host computer system.
Background technology
Digital camera, mobile phone and MP3 are very rapid in growth over the years, and the demand of consumer to Storage Media is also increased rapidly.Due to flash memory (Flash Memory), to have data non-volatile, power saving, volume little of characteristics such as mechanical structures, is suitably used as external connection type memory apparatus (such as, portable disk) most.In addition, along with the connecting interface of plug and play, (such as, the development of USB (universal serial bus) (Universal SerialBus, referred to as: USB)), makes external connection type memory apparatus be widely used in the storage of digital content.
Particularly, use when multiple Computer Maintenance application program (such as, antivirus software) to be stored in portable disk to maintain easily or to keep in repair computer by the computer control person of company information department in order to the contingent problem of settlement computer.Generally speaking, when for performing a certain application program be stored in portable disk, user needs by the output unit of computer (such as, LCD screen) and input media is (such as, mouse) in the file house steward performed by operating system, click the execute file of application program for performing, make the application program for performing run in operating system thus.
But for servomechanism or the industrial computer without input/output device, user cannot come to select in portable disk and the application program performed for performing by the way.Such as, when not having servomechanism or the industrial computer of input/output device, computer control person cannot kill virus by performing the antivirus software be stored in portable disk.
Summary of the invention
The invention provides a kind of application executing method, system and external connection type memory apparatus, it can automatically perform according to the demand of user the multiple application programs be stored in external connection type memory apparatus.
Embodiments provide a kind of application executing method, for automatically running the multiple application programs be stored in the memory module of external connection type memory apparatus in the operating system of host computer system.Application manner of execution is included on this external connection type memory apparatus and configures a selector switch, wherein this selector switch is coupled to the Memory Controller of external connection type memory apparatus, one of them of one of them and each operating mode that this selector switch can be set in multiple operating mode these application programs corresponding respectively.Application manner of execution also comprises this external connection type memory apparatus is coupled to host computer system; This selector switch operating mode residing is at present detected by Memory Controller; And selection marker is labeled as this operating mode.Application manner of execution is also included in host computer system runs a steering routine; Steering routine receives this selection marker to this this selection marker of external connection type memory apparatus request from this Memory Controller thus; And steering routine runs the application program of the current operational mode of corresponding selection switch in operating system according to received selection marker thus.
In one embodiment of this invention, above-mentioned application program comprises the first application program and the second application program, above-mentioned operating mode comprise to should the first application program the first operating mode with to should the second operating mode of the second application program.At this, the above-mentioned step being run the application program of the current operational mode of corresponding selection switch by steering routine according to selection marker in operating system comprises: when current operational mode is the first operating mode, run the first application program by steering routine in operating system; And when current operational mode is the second operating mode, in this operating system, run the second application program by steering routine.
In one embodiment of this invention, above-mentioned application executing method judges whether the second application program is run in an operating system before being also included in and running the first application program by steering routine in operating system; And when the second application program is run in an operating system, in operating system, stop the second application program by steering routine.
In one embodiment of this invention, above-mentioned by steering routine to external connection type memory apparatus request selecting mark and the step that receives this selection marker from Memory Controller comprise: from Memory Controller, receive selection marker to external connection type memory apparatus request selecting mark periodically by steering routine.
In one embodiment of this invention, above-mentioned application executing method also comprises: detect above-mentioned external connection type memory apparatus by above-mentioned steering routine and whether be again coupled to above-mentioned host computer system; And when this external connection type memory apparatus is coupled to host computer system again, from Memory Controller, receive selection marker to external connection type memory apparatus request selecting mark by steering routine.
In one embodiment of this invention, above-mentioned application executing method also comprises: memory module is logically divided into a cut section, and this cut section is modeled as a CD cut section.In addition, above-mentioned application executing method also comprises and automatically performs file, above-mentioned steering routine and above-mentioned application program by one and be stored in this cut section, wherein this automatically performs file in order to automatically to perform this steering routine, and wherein when above-mentioned external connection type memory apparatus is coupled to host computer system, this automatically performs file and automatically can be run by aforesaid operations system.
Embodiments provide a kind of application program executive system, in order to automatically to run multiple application program in an operating system.This application program executive system comprises host computer system and external connection type memory apparatus.Host computer system has in-building type storage device, and wherein this in-building type storage device is provided with this operating system and steering routine is run in this operating system.External connection type memory apparatus comprises selector switch, connector, memory module and Memory Controller.One of them of one of them and each operating mode that selector switch can be set in multiple operating mode these application programs corresponding respectively.Connector is in order to be coupled to this host computer system.Memory module is in order to store these application programs.Memory Controller is coupled to this selector switch, memory module and connector, wherein selection marker is labeled as this current operational mode in order to the current operational mode detected residing for this selector switch by Memory Controller, and current operational mode is one of them of above-mentioned multiple operating mode.At this, when external connection type memory apparatus is coupled to host computer system, this steering routine is to this selection marker of external connection type memory apparatus request and receive this selection marker from this Memory Controller.In addition, steering routine can run should the application program of current operational mode according to received selection marker in operating system.
In one embodiment of this invention, above-mentioned memory module comprises a cut section, and this cut section storage one automatically performs file, above-mentioned steering routine and above-mentioned application program, and wherein this automatically performs file in order to automatically to perform this steering routine.At this, this cut section is modeled as a CD cut section by above-mentioned Memory Controller, and wherein when above-mentioned external connection type memory apparatus is coupled to host computer system, this automatically performs file and automatically can be run by aforesaid operations system.
Embodiments provide a kind of application executing method, for automatically running the multiple application programs be stored in a memory module of an external connection type memory apparatus in an operating system of a host computer system.Application manner of execution comprises: when this external connection type memory apparatus is coupled to host computer system, is transmitted an operating mode of a selector switch by this external connection type memory apparatus of host computer system active request; And to be performed one of them of those application programs according to the operating mode of this selector switch by this host computer system.
Embodiments provide a kind of external connection type memory apparatus, comprise connector, memory module, selector switch and Memory Controller.Connector is in order to be coupled to host computer system.Memory module stores a plurality of application program.One of them of one of them and each operating mode that selector switch can be set in multiple operating mode these application programs corresponding respectively.Memory Controller is coupled to selector switch, memory module and connector, and wherein this Memory Controller is in order to detect the operating mode set by this selector switch.And, when this external connection type memory apparatus is coupled to host computer system, this external connection type memory apparatus transmits operating mode that among those operating modes, this selector switch is set to host computer system, and by this, this host computer system runs the application program of the corresponding operating mode be set.
Based on above-mentioned, the application executing method of the embodiment of the present invention and system can automatically perform according to the position of selector switch the multiple application programs be stored in external connection type memory apparatus.
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 schematic block diagram of the application program executive system of one embodiment of the invention.
Fig. 2 is the schematic diagram of the computer of one embodiment of the invention, input/output device and flash memory.
Fig. 3 is the schematic block diagram of the Memory Controller of one embodiment of the invention.
Fig. 4 is the process flow diagram that the host computer system of one embodiment of the invention automatically runs the application program being stored in external connection type memory apparatus.
Fig. 5 is the process flow diagram of the application executing method of one embodiment of the invention.
Main element symbol description:
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 storage device;
1122: operating system; 1124: steering routine;
1150: input/output device; 100: external connection type memory apparatus;
102: connector; 104 Memory Controllers;
106: memory module; 108: selector switch;
180: cut section; 182: the first application programs;
184: the second application programs; 2202: mouse;
2204: keyboard; 2206: display;
2208: printer; 2210: portable disk;
2212: solid state hard disc; 202: memory management circuitry;
204: host interface; 206: memory interface;
252: memory buffer; 254: electric power management circuit;
256: bug check and correcting circuit; S401, S403: step;
S501, S503, S505, S507, S509, S511: step.
Embodiment
Fig. 1 is the schematic block diagram of the application program executive system of one embodiment of the invention.
Please refer to Fig. 1, application program executive system 1000 comprises host computer system 1100 and external connection type memory apparatus 100.
Host computer system 1100 comprises host computer 1110 and I/O, and (input/output, referred to as I/O) device 1150.
In the present embodiment, host computer 1110 is desktop PC.It must be appreciated, the present invention is not limited thereto, in an alternative embodiment of the invention, host computer 1110 also can be notebook computer, server or other any host computer systems that can perform computer application program.Host computer 1110 comprise CPU (central processing unit) (Central Processing Unit, referred to as: CPU) 1112, primary memory 1114, system bus 1116, data transmission interface 1118, in-building type storage device 1120 and the operating system 1122 that is arranged in in-building type storage device 1120.
CPU (central processing unit) 1112 is in order to explain the data in computer instruction and process computer software.
Primary memory 1114 is coupled to CPU (central processing unit) 1112 via system bus 1116 and directly performs for CPU (central processing unit) 1112 in order to be loaded into program miscellaneous and data and to use.Specifically, primary memory 1114 has can be read and write and the characteristic such as read or write speed faster at any time, and therefore primary memory 1114 is in order to as operating system 1122 or other are just at the ephemeral data storing media of executory program.In the present embodiment, primary memory 1114 be dynamic RAM (Dynamic RandomAccess Memory, referred to as: DRAM).In addition, it must be appreciated, in an alternative embodiment of the invention, the virtual memory that operating system is also simulated by the storage area of storage device is used as the ephemeral data storing media of executive utility, in this example, primary memory also comprises such virtual memory.
Data transmission interface 1118 is coupled to CPU (central processing unit) 1112 via system bus 1116, in order to couple external connection type memory apparatus 100.In the present embodiment, data transmission interface is that (Universal Serial Bus, referred to as USB) interface for USB (universal serial bus).But it must be appreciated and the present invention is not limited thereto, data transmission interface 1118 also can be the plug and play interface that other are applicable to.
In-building type storage device 1120 is coupled to CPU (central processing unit) 1112 in order to the major storage device as host computer 1110 via system bus 1116.In the present embodiment, in-building type storage device 1120 is hard disk (Hard Disk), but, it must be appreciated, the present invention is not limited thereto.In-building type storage device 1120 is provided with operating system 1122, and operating system 1122 is the programs managing computer hardware (Computerhardware) and computer software (Computer software) resource.Specifically, operating system 1122 is in order to the running such as priority ranking, control inputs/output unit 1150, managing file system of management with configuration primary memory 1114, decision systems resource (such as, CPU (central processing unit) 1112, primary memory 1114, input/output device 1150) supply and demand.In the present embodiment, operating system 1122 is form (Windows) operating system of Microsoft (Microsoft) company.But it must be appreciated, the present invention is not limited thereto, the present invention also can be applicable in Linux, Mac or other operating system.
Input/output device 1150 is coupled 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, input/output device 1150 is not limited to the device shown in Fig. 2, and input/output device 1150 can also comprise other devices.In addition, in an alternative embodiment of the invention, host computer system 1100 also can not be equipped with input/output device 1150.
External connection type memory apparatus 100 is plug and play storage devices, and is coupled to host computer system 1100 removably.Such as, external connection type memory apparatus 100 is portable disk 2210 or solid state hard disc 2212 (as shown in Figure 2).External connection type memory apparatus 100 comprises connector 102, Memory Controller 104, memory module 106 and selector switch 108.
Connector 102 is that (Universal Serial Bus, referred to as USB) connector for USB (universal serial bus).But it must be appreciated, the present invention is not limited thereto, connector 102 also can other applicable plug and play connectors.
Memory Controller 104 in order to perform the multiple logic switch or steering order that realize with hardware pattern or firmware pattern, and according to the instruction of host computer system 1100 carry out in memory module 106 data write, read and the operation such as to erase.
Memory module 106 is coupled to Memory Controller 104, and in order to storage data.
Memory module 106 comprises multiple physical blocks, and each physical blocks has a plurality of physical page respectively, and the physical page wherein belonging to same physical blocks can be written independently and side by side be erased.In the present embodiment, physical blocks is the least unit of erasing.Also namely, each physical blocks contain minimal amount in the lump by the storage unit of erasing.And physical page is the minimum unit of write.That is, physical page is the minimum unit of write data.But it must be appreciated, in an alternative embodiment of the invention, the least unit of write data also can be sector (Sector) or other sizes.
In the present embodiment, memory module 106 is type nonvolatile module.Such as, memory module 106 is that (Multi Level Cell, referred to as MLC) NAND quick-flash memory module for multilayered memory unit.But, the present invention is not limited thereto, memory module 106 may also be individual layer storage unit (Single Level Cell, referred to as: SLC) NAND quick-flash memory module, other flash memory modules or other there is the memory module of identical characteristics.
The memory address of memory module 106 is logically divided into a cut section 180 and stores the first application program 182 and the second application program 184 in cut section 180.It must be appreciated, in an alternative embodiment of the invention, memory module 106 also can be divided into more multi-split district.
Selector switch 108 is coupled to Memory Controller 104, and can be set in multiple operating mode one of them.Specifically, the some of selector switch 108 is exposed in the case surface of external connection type memory apparatus 100, is coupled to the function mode of host computer system 1100 for setting external connection type memory apparatus 100.Particularly, the operating mode that host computer system 1100 can be set at present according to selector switch 108 is stored in application program corresponding in memory module 106.In the present embodiment, selector switch 108 can move between multiple position.That is, selector switch 108 can selectively be positioned on one of them position by user.In the present embodiment, selector switch 108 can be positioned in primary importance or the second place.In another embodiment, selector switch 108 also can according to received information, as predetermined excitation signal, or the number of times of excitation signal, set its operating mode.Particularly, Memory Controller 104 can store a selection marker and mark this selection marker to record the operating mode of selector switch 108 according to the operating mode of selector switch 108.Such as, when selector switch 108 is in the first operating mode, this selection marker can be labeled as the first operating mode by Memory Controller 104, and when selector switch 108 is in the second operating mode, this selection marker can be labeled as the second operating mode by Memory Controller 104.
Fig. 3 is the schematic block diagram of the Memory Controller of one embodiment of the invention.
Please refer to Fig. 3, Memory Controller 104 comprises memory management circuitry 202, host interface 204 and memory interface 206.
Memory management circuitry 202 is in order to the integrated operation of control store controller 104.Specifically, memory management circuitry 202 has multiple steering order, and when external connection type memory apparatus 100 operates, and these steering orders can be performed carrying out data write to memory module 106, read, the operation such as to erase.
In the present embodiment, the steering order of memory management circuitry 202 realizes with firmware pattern.Such as, memory management circuitry 202 has microprocessor unit (not shown) and ROM (read-only memory) (not shown), and these steering orders are burned onto in this ROM (read-only memory).When external connection type memory apparatus 100 operates, these steering orders can have been performed by microprocessor unit that data write, read, the running such as to erase.
In an alternative embodiment of the invention, the steering order of memory management circuitry 202 also can procedure code pattern be stored in the specific region (such as, being exclusively used in the system region of storage system data in memory module) of memory module 106.In addition, memory management circuitry 202 has microprocessor unit (not shown), ROM (read-only memory) (not shown) and random access memory (not shown).Particularly, this ROM (read-only memory) has driving code section, and when Memory Controller 104 is enabled, microprocessor unit first can perform this driving code section and the steering order be stored in memory module 106 is loaded in the random access memory of memory management circuitry 202.Afterwards, microprocessor unit can run that these steering orders write to perform data, read, the operation such as to erase.In addition, in an alternative embodiment of the invention, the steering order of memory management circuitry 202 also can a hardware pattern realize.
In the present embodiment, the memory management circuitry 202 of Memory Controller 104 is also in order to perform the current operational mode of detecting selector switch 108 and to send the information of the current operational mode about selector switch 108 to host computer system 1100 according to the request of host computer system 1100.Specifically, memory management circuitry 202 can be detected selector switch 108 operating mode residing at present and mark above-mentioned selection marker to record the operating mode of selector switch 108.In addition, memory management circuitry 202 can identify come from host computer system 1100 for asking the instruction of this selection marker (such as, manufacturer's instruction (VenderCommand)) and sending above-mentioned selection marker or its corresponding information to host computer system 1100 to respond this instruction.
Fig. 4 is that host computer system automatically runs the process flow diagram of the application program being stored in external connection type memory apparatus according to an embodiment of the invention.
Please refer to Fig. 4, when external connection type memory apparatus 100 is coupled to host computer system 1100, in step S401, host computer system 1100 meeting active request external connection type memory apparatus 100 transmits the current operational mode of selector switch 108.Such as, can be transmitted this can run on aforehand in the operating system of host computer system 1100 for asking the steering routine 1124 of the instruction of this selection marker, and when external connection type memory apparatus 100 is coupled to host computer system 1100 by user, steering routine 1124 meeting assigns the instruction for asking this selection marker to external connection type memory apparatus 100.Further, when receiving for asking the instruction of this selection marker, the memory management circuitry 202 of Memory Controller 104 can send stored selection marker to steering routine 1124.Such as, when selector switch 108 is in primary importance, memory management circuitry 202 can send the selection marker being labeled as the first operating mode to steering routine 1124, and when selector switch 108 is in the second place, Memory Controller 104 can send the selection marker being labeled as the second operating mode to steering routine 1124.
Afterwards, in step S403, host computer system 1100 can according to one of them of the application program stored by the current operational mode execution of selector switch 108.Such as, when receiving selection marker, steering routine 1124 can run (Run) according to the mark of selection marker and be stored in application program in memory module 106.Specifically, when receiving the selection marker being labeled as the first operating mode, steering routine 1124 can run the first application program 182 in operating system 1122.Further, when receiving the selection marker being labeled as the second operating mode, steering routine 1124 can run the second application program 184 in operating system 1122.
It is worth mentioning that, whether steering routine 1124 periodically to external connection type memory apparatus 100 poll (polling) this selection marker, can be changed with the state of identification selection mark.Such as, at set intervals (such as, 5 seconds), steering routine 1124 will be assigned for asking the instruction of this selection marker to external connection type memory apparatus 100.
In addition, in an alternative embodiment of the invention, steering routine 1124 detects external connection type memory apparatus 100 and is again coupled to host computer system 1100 (namely, external connection type memory apparatus 100 is electrically connected to host computer system 1100 after being cut off the electric connection between host computer system 1100 again) time, steering routine 1124 can be assigned again for asking the instruction of this selection marker to external connection type memory apparatus 100.
It is worth mentioning that, when the state of selection marker is changed, steering routine 1124 can perform corresponding application program according to the state of selection marker again.
Such as, when supposing that external connection type memory apparatus 100 is coupled to host computer system 1100 under the state being positioned in primary importance in the position of selector switch 108, steering routine 1124 can run the first application program 182 according to received selection marker in operating system 1122.Now, if when the position of selector switch 108 is set to the second place by user, because the mark of selection marker has changed into the second operating mode, therefore steering routine 1124 can run the second application program 184 according to received selection marker in operating system 1122.That is, in this example, the first application program 182 and the second application program 184 all can be run in operating system 1122.
It is worth mentioning that, except operation is stored in except multiple application programs of external connection type memory apparatus 100 simultaneously, steering routine 1124 also only can allow one of them application program be run in the same time in an alternative embodiment of the invention.Such as, in an alternative embodiment of the invention, when the position of selector switch 108 is set to the second place by user, steering routine 1124 can first judge before operation second application program 184 whether the first application program 182 is run in operating system 1122.Further, when the first application program 182 is run, steering routine 1124 can stop the operation of the first application program 182, and the second application program 184 of reruning afterwards.Otherwise when the position of selector switch 108 is set to primary importance by user, steering routine 1124 can first judge before operation first application program 182 whether the second application program 184 is run in operating system 1122.Further, when the second application program 184 is run, steering routine 1124 can stop the operation of the second application program 184, and the first application program 182 of reruning afterwards.
In the present embodiment, the steering routine 1124 running on host computer system 1100 is in advance stored in advance in in-building type storage device 1120.But, the present invention is not limited thereto.Such as, in another exemplary embodiment of the present invention, steering routine 1124 with automatically perform file (such as in order to what automatically run steering routine 1124, the description document (script file) of file " Autorun.inf " by name) can be stored in the cut section 180 of memory module 106, and cut section can be modeled as CD cut section by Memory Controller 104.
That is, when external connection type memory apparatus 100 is coupled to host computer system 1100 by user and host computer system 1100 inquires its media characteristic to external connection type memory apparatus 100, to host computer system 1100, memory management circuitry 202 can declare that cut section 180 is for CD cut section.Afterwards, operating system 1122 can automatically be run to be stored in and automatically perform file in cut section 180, and run automatically perform file and can automatically run steering routine 1124 in operating system 1122.Based on this, in this exemplary embodiment, steering routine 1124 is without the need to being stored in advance in in-building type storage device 1120.
Host interface 204 is coupled to memory management circuitry 202 and in order to receive and to identify the instruction that transmits of host computer system 1100 and data.That is, the instruction that transmits of host computer system 1100 and data can be sent to memory management circuitry 202 by host interface 204.In the present embodiment, host interface 204 is corresponding connectors 102 is USB interface.But it must be appreciated and the present invention is not limited thereto, host interface 204 also can be the plug and play data transmission interface that other are applicable to.
Memory interface 206 is coupled to memory management circuitry 202 and in order to access memory module 106.That is, the data for writing to memory module 106 can be converted to the receptible form of memory module 106 via memory interface 206.
In an embodiment of the present invention, Memory Controller 104 also comprises memory buffer 252.Memory buffer 252 is coupled to memory management circuitry 202 and comes from the data and instruction of host computer system 1100 in order to temporary or come from the data of memory module 106.Such as, above-mentioned selection marker can be stored in memory buffer 252.
In an embodiment of the present invention, Memory Controller 104 also comprises electric power management circuit 254.Electric power management circuit 254 is coupled to memory management circuitry 202 and power supply in order to control external connection type memory apparatus 100.
In an embodiment of the present invention, Memory Controller 104 also comprises bug check and correcting circuit 256.Bug check and correcting circuit 256 are coupled to memory management circuitry 202 and in order to perform a bug check and correction program to guarantee the correctness of data.Specifically, when memory management circuitry 202 receives write instruction from host computer system 1100, bug check can for produce corresponding bug check and correcting code (Error Checking and CorrectingCode to the data that should write instruction with correcting circuit 256, referred to as: ECC Code), and memory management circuitry 202 can write to the data that should write instruction in memory module 106 with corresponding bug check and correcting code.Afterwards, can read bug check corresponding to these data and correcting code when memory management circuitry 202 reads data from memory module 106, and bug check and correcting circuit 256 can according to this bug check and correcting code to read data execution error correction programs simultaneously.
Fig. 5 is the process flow diagram of the application executing method of one embodiment of the invention.
Please refer to Fig. 5, step S501 be in external connection type memory apparatus 100 configuration can be set in multiple operating mode wherein one selector switch 108.At this, the number of the operating mode of selector switch 108 can be determined according to the number for being stored in the application program in external connection type memory apparatus 100, and wherein each operating mode can one of them application program corresponding respectively.
Step S503 runs steering routine 1124 in the operating system 1122 of host computer system 1100.Afterwards, step S505 is for be coupled to host computer system 1100 by external connection type memory apparatus 100.It is worth mentioning that, be be stored in the example of analog rom cut section of external connection type memory apparatus 100 at steering routine 1124, steering routine 1124 is just run in operating system 1122 after external connection type memory apparatus 100 is coupled to host computer system 1100.
Memory Controller 204 can be detected the current operational mode residing for selector switch 108 and selection marker is labeled as this current operational mode in step s 507.The mode of Marker selection mark has described as above, in this no longer repeated description.
Afterwards, in step S509, steering routine 1124 receives selection marker to external connection type memory apparatus request selecting mark from Memory Controller 204.
Then, in step S511, steering routine 1124 can run corresponding application program according to received selection marker in operating system 1122.The mode that the operating mode marked according to selection marker runs corresponding application program has described as above, in this no longer repeated description.
It must be appreciated, although not shown in the drawings, in an alternative embodiment of the invention, application executing method also comprises periodically to external connection type memory apparatus 100 request selecting mark or detect to external connection type memory apparatus 100 request selecting mark again when external connection type memory apparatus 100 is coupled to host computer system 1100 again, runs simultaneously be stored in application program corresponding in external connection type memory apparatus 100 according to the variation of mark.
In sum, the application executing method of the embodiment of the present invention and system can automatically perform according to the position of selector switch the multiple application programs being stored in external connection type memory apparatus, user can be allowed in without the host computer system of input/output device to run the application-specific being stored in external connection type memory apparatus by this.
Although the present invention discloses as above with embodiment; but it is also not used to limit the present invention, any those skilled in the art, without departing from the spirit and scope of the present invention; can do suitably change with being equal to and replace, therefore the scope that protection scope of the present invention should define with claims is as the criterion.

Claims (10)

1. an application executing method, for automatically running the multiple application programs be stored in a memory module of an external connection type memory apparatus in an operating system of a host computer system, wherein said external connection type memory apparatus is configured with a selector switch, described selector switch is coupled to a Memory Controller of described external connection type memory apparatus, one of them of one of them and multiple operating mode described in each that described selector switch can be set in multiple operating mode corresponding described multiple application program respectively, described Memory Controller is detected the current operational mode residing for described selector switch and a selection marker is labeled as described current operational mode, wherein said current operational mode is one of them of described multiple operating mode, it is characterized in that, described application manner of execution comprises:
When described external connection type memory apparatus is coupled to described host computer system, run a steering routine in described host computer system;
From described Memory Controller, described selection marker is received to selection marker described in described external connection type memory apparatus request by described steering routine; And
In described operating system, run the application program of corresponding described current operational mode according to described selection marker by described steering routine,
Wherein said multiple application program comprises one first application program and one second application program, and described operating mode comprises corresponding one first operating mode of described first application program and one second operating mode of corresponding described second application program,
The step wherein being run the application program of corresponding described current operational mode by described steering routine according to described selection marker in described operating system comprises:
When described current operational mode is described first operating mode, in described operating system, run described first application program by described steering routine;
When described current operational mode is described second operating mode, in described operating system, run described second application program by described steering routine;
Before running described first application program by described steering routine in described operating system, wherein judge whether to be run and when when the second application program is run described in described operating system in the second application program described in described operating system, in described operating system, described second application program is stopped by described steering routine
Before running described second application program by described steering routine in described operating system, wherein judge whether to be run and when when the first application program is run described in described operating system in the first application program described in described operating system, in described operating system, described first application program is stopped by described steering routine, by this, the same time only allows one of them application program of described multiple application program be operated
Wherein said operating system has the ability simultaneously running described multiple application program.
2. application executing method according to claim 1, is characterized in that, by described steering routine to selection marker described in described external connection type memory apparatus request and the step receiving described selection marker from described Memory Controller comprise:
From described Memory Controller, described selection marker is received periodically by described steering routine to selection marker described in described external connection type memory apparatus request.
3. application executing method according to claim 1, is characterized in that, also comprises:
Detect described external connection type memory apparatus by described steering routine and whether be again coupled to described host computer system; And
When described external connection type memory apparatus is coupled to described host computer system again, from described Memory Controller, receive described selection marker by described steering routine to selection marker described in described external connection type memory apparatus request.
4. application executing method according to claim 1, described memory module is logically divided into a cut section by wherein said Memory Controller, described cut section is modeled as a CD cut section, and automatically performing file, described steering routine and described multiple application program by one is stored in described cut section, the wherein said file that automatically performs is in order to automatically to perform described steering routine, it is characterized in that, also comprise:
When described external connection type memory apparatus is coupled to described host computer system, described in automatically running in described operating system, automatically perform file.
5. an application program executive system, for automatically running the multiple application programs be stored in a memory module of an external connection type memory apparatus in an operating system of a host computer system, wherein said external connection type memory apparatus is configured with a selector switch, described selector switch is coupled to a Memory Controller of described external connection type memory apparatus, one of them of one of them and multiple operating mode described in each that described selector switch can be set in multiple operating mode corresponding described multiple application program respectively, described Memory Controller is detected the current operational mode residing for described selector switch and a selection marker is labeled as described current operational mode, wherein said current operational mode is one of them of described multiple operating mode, it is characterized in that, described application program executive system comprises:
One first module, in order to when described external connection type memory apparatus is coupled to described host computer system, runs a steering routine in described host computer system;
One second module, in order to receive described selection marker by described steering routine to selection marker described in described external connection type memory apparatus request from described Memory Controller;
One the 3rd module, in order to be run the application program of corresponding described current operational mode in described operating system according to described selection marker by described steering routine, wherein said multiple application program comprises one first application program and one second application program, and described operating mode comprises corresponding one first operating mode of described first application program and one second operating mode of corresponding described second application program;
One four module, in order to when described current operational mode is described first operating mode, runs described first application program by described steering routine in described operating system;
One the 5th module, in order to when described current operational mode is described second operating mode, runs described second application program by described steering routine in described operating system;
One the 6th module, in order to judge whether be run in the second application program described in described operating system and when when the second application program is run described in described operating system, stopped described second application program by described steering routine in described operating system before running described first application program by described steering routine in described operating system; And
One the 7th module, in order to judge whether to be run and when when the first application program is run described in described operating system in the first application program described in described operating system before running described second application program by described steering routine in described operating system, in described operating system, described first application program is stopped by described steering routine, by this, the same time only allows one of them application program of described multiple application program be operated
Wherein said operating system has the ability simultaneously running described multiple application program.
6. application program executive system according to claim 5, is characterized in that, also comprise:
One the 8th module, in order to receive described selection marker to selection marker described in described external connection type memory apparatus request periodically by described steering routine from described Memory Controller.
7. application program executive system according to claim 5, is characterized in that, also comprise:
Whether one the 9th module, be coupled to described host computer system again in order to be detected described external connection type memory apparatus by described steering routine; And
The tenth module, in order to when described external connection type memory apparatus is coupled to described host computer system again, receives described selection marker to selection marker described in described external connection type memory apparatus request by described steering routine from described Memory Controller.
8. application program executive system according to claim 5, described memory module is logically divided into a cut section by wherein said Memory Controller, described cut section is modeled as a CD cut section, and automatically performing file, described steering routine and described multiple application program by one is stored in described cut section, the wherein said file that automatically performs is in order to automatically to perform described steering routine, it is characterized in that, also comprise:
The 11 module, in order to when described external connection type memory apparatus is coupled to described host computer system, automatically performs file described in automatically running in described operating system.
9. an application executing method, for automatically running the multiple application programs be stored in a memory module of an external connection type memory apparatus in an operating system of a host computer system, described application executing method comprises:
When described external connection type memory apparatus is coupled to described host computer system, transmitted a current operational mode of a selector switch by external connection type memory apparatus described in described host computer system active request, wherein said current operational mode is one of them of multiple operating modes of described selector switch; And
To be performed one of them of described multiple application program according to the described current operational mode of described selector switch by described host computer system,
Wherein said multiple application program comprises one first application program and one second application program, and described multiple operating mode comprises corresponding one first operating mode of described first application program and one second operating mode of corresponding described second application program,
Wherein when the described current operational mode of described selector switch is described first operating mode, in described operating system, run described first application program by described host computer system,
Wherein when the described current operational mode of described selector switch is described second operating mode, in described operating system, run described second application program by described host computer system,
Judged whether the second application program is run described in described operating system by described host computer system run described first application program in described operating system before, and when when described in described operating system, the second application program is run, in described operating system, described second application program is stopped by described host computer system
Judged whether the first application program is run described in described operating system by described host computer system run described second application program in described operating system before, and when when described in described operating system, the first application program is run, in described operating system, described first application program is stopped by described host computer system, by this, the same time only allows one of them application program of described multiple application program be operated
Wherein said operating system has the ability simultaneously running described multiple application program.
10. an application program executive system, for automatically running the multiple application programs be stored in a memory module of an external connection type memory apparatus in an operating system of a host computer system, it is characterized in that, described application program executive system comprises:
One first module, in order to when described external connection type memory apparatus is coupled to described host computer system, transmitted a current operational mode of a selector switch by external connection type memory apparatus described in described host computer system active request, wherein said current operational mode is one of them of multiple operating modes of described selector switch;
One second module, in order to be performed one of them of described multiple application program according to the described current operational mode of described selector switch by described host computer system, wherein said multiple application program comprises one first application program and one second application program, and described multiple operating mode comprises corresponding one first operating mode of described first application program and one second operating mode of corresponding described second application program;
One the 3rd module, in order to when the described current operational mode of described selector switch is described first operating mode, runs described first application program by described host computer system in described operating system;
One four module, in order to when the described current operational mode of described selector switch is described second operating mode, runs described second application program by described host computer system in described operating system;
One the 5th module, in order to run described first application program in described operating system before, judge whether the second application program is run described in described operating system by described host computer system, and when when the second application program is run described in described operating system, in described operating system, stop described second application program by described host computer system; And
One the 6th module, in order to run described second application program in described operating system before, judge whether the first application program is run described in described operating system by described host computer system, and when when described in described operating system, the first application program is run, in described operating system, described first application program is stopped by described host computer system, by this, the same time only allows one of them application program of described multiple application program be operated
Wherein said operating system has the ability simultaneously running described multiple application program.
CN201010234222.1A 2010-07-20 2010-07-20 Method and system for executing application programs and externally connected storage device Active CN102339226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010234222.1A CN102339226B (en) 2010-07-20 2010-07-20 Method and system for executing application programs and externally connected storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010234222.1A CN102339226B (en) 2010-07-20 2010-07-20 Method and system for executing application programs and externally connected storage device

Publications (2)

Publication Number Publication Date
CN102339226A CN102339226A (en) 2012-02-01
CN102339226B true CN102339226B (en) 2015-04-22

Family

ID=45514970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010234222.1A Active CN102339226B (en) 2010-07-20 2010-07-20 Method and system for executing application programs and externally connected storage device

Country Status (1)

Country Link
CN (1) CN102339226B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570881A (en) * 2003-07-22 2005-01-26 深圳市朗科科技有限公司 Method for implementing automatic performance using semiconductor memory device
CN1786911A (en) * 2004-12-10 2006-06-14 神基科技股份有限公司 Program starting method and electronic apparatus thereof
TW200622890A (en) * 2004-12-21 2006-07-01 Unisvr Global Information Technology Corp Application method of portable software

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI286702B (en) * 2005-07-22 2007-09-11 Mitac Technology Corp Method of executing computer programs following a predetermined priority order

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570881A (en) * 2003-07-22 2005-01-26 深圳市朗科科技有限公司 Method for implementing automatic performance using semiconductor memory device
CN1786911A (en) * 2004-12-10 2006-06-14 神基科技股份有限公司 Program starting method and electronic apparatus thereof
TW200622890A (en) * 2004-12-21 2006-07-01 Unisvr Global Information Technology Corp Application method of portable software

Also Published As

Publication number Publication date
CN102339226A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
US8897092B2 (en) Memory storage device, memory controller and controlling method
US9519436B1 (en) Memory erasing method, memory controller, and memory storage apparatus
US8423838B2 (en) Block management method, memory controller, and memory storage apparatus
CN101535963A (en) Flash memory with programmable endurance
KR20150029402A (en) Data storing system and operating method thereof
CN101183345A (en) Apparatus and method for controlling operation processing in nonvolatile memory
KR20160007988A (en) Storage system managing run-time bad cells
JP2021125248A (en) Controller, controller action method, and storage device including controller
KR20160074025A (en) Operating method for data storage device
US10191533B2 (en) Method of enabling sleep mode, memory control circuit unit and storage apparatus
US9733832B2 (en) Buffer memory accessing method, memory controller and memory storage device
CN102736861B (en) Memory configuration method, Memory Controller and memorizer memory devices
CN103389941A (en) Memorizer formatting method, memorizer controller and memorizer memory device
CN111722855A (en) Firmware burning system and method based on eMMC and integrated chip
CN102339226B (en) Method and system for executing application programs and externally connected storage device
CN102023873B (en) Application program execution method and system, storage media controller and storage device
CN102789426B (en) Method and device for storing information in nonvolatile storage device
CN108108118B (en) Data writing method and storage controller
CN115359834A (en) Disk arbitration region detection method, device, equipment and readable storage medium
CN112394879B (en) Method for operating a memory device, memory device and method for operating a memory system
CN102467459B (en) Data write method, memory controller and memory device
CN103870209A (en) Working mode switching method, memory controller and memory storage device
US8595417B2 (en) Memory configuring method, memory controller and memory storage apparatus
TWI507986B (en) Method and system for executing application programs
CN102236612B (en) Partition dynamical switching method, memory card controller and memory card storage system

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