CN100552648C - The dynamic management approach of portable memory device - Google Patents

The dynamic management approach of portable memory device Download PDF

Info

Publication number
CN100552648C
CN100552648C CNB2006100785197A CN200610078519A CN100552648C CN 100552648 C CN100552648 C CN 100552648C CN B2006100785197 A CNB2006100785197 A CN B2006100785197A CN 200610078519 A CN200610078519 A CN 200610078519A CN 100552648 C CN100552648 C CN 100552648C
Authority
CN
China
Prior art keywords
memory device
portable memory
information data
data area
access
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.)
Expired - Fee Related
Application number
CNB2006100785197A
Other languages
Chinese (zh)
Other versions
CN101071400A (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.)
Apacer Technology Inc
Original Assignee
Apacer Technology Inc
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 Apacer Technology Inc filed Critical Apacer Technology Inc
Priority to CNB2006100785197A priority Critical patent/CN100552648C/en
Publication of CN101071400A publication Critical patent/CN101071400A/en
Application granted granted Critical
Publication of CN100552648C publication Critical patent/CN100552648C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention is the dynamic management approach of relevant a kind of portable memory device, this portable memory device comprises the fast flash memory bank of planning with a hook at the end district and information data area, the reserved area comprises a plurality of active block of carrying out access and replacing damaged block, this method comprises: a mark is provided, and can be for the access status of setting with the decision information data area; When mark was set to first state, open information data area was for access; And when mark was set to second state, the restriction information data area was by access.When the active block number greater than zero the time, flag settings is first state of open information data area for access, when the active block number equals zero, with flag settings is that the restriction information data area is by second state of access, and this mark of interpretation before information data area is by access, according to flag state, the open or lighted-access data district of decision; And whether detecting active block quantity is zero after information data area is by access, if, be second state with flag settings, give portable memory device more flexible access facility whereby, reach the dynamic management effect.

Description

The dynamic management approach of portable memory device
Technical field
The present invention relates to a kind of portable memory device, particularly relate to a kind of automatically setting or set by the user passively, but and elasticity change access facility can reach the dynamic management approach of the portable memory device of dynamic management.
Background technology
In recent years, the idea of " the data band away " is more and more universal, and makes various portable memory devices, as the carry-on dish of USB, MP3, CD or DVD laser disc, various memory card and hard disc etc., becomes the outfit that the most normal purchase of consumer is used.Wherein again with the carry-on dish most convenient of USB and the most general.
The carry-on dish of USB has read-write bidirectional access function, compared to CD and DVD laser disc, and the advantage that writes that the carry-on dish of USB; The carry-on dish plug and play of USB, compared to various memory card, the carry-on dish of USB has the convenience of price advantage and use; The volume of the carry-on dish of USB can be done very for a short time, and compared to hard disc, the carry-on dish of USB has the less advantage of volume.Comprehensive above-mentioned some, the carry-on dish of USB becomes the best portable memory device of user in the heart.
And along with the storage volume of portable memory device is increasing, price is more and more cheap, makes that the popularization of portable memory device is more and more higher, and the user also promotes relatively for the dependence of these devices.Yet all portable memory devices all have age limit, and the storage volume of device is big more, and the user can store more data, and still, in case arrived device lifetime, the data that is stored in the device is many more, and the data that the user loses is also just many more.In these devices, again to utilize fast flash memory bank (memory body is a storage medium, storer, internal memory etc. below all are called memory body) to be the carry-on dish of USB of storing media or MP3 problem maximum.
With hard disc, hard disc is before damaging, can have bad rail to occur earlier, in case hard disc begins to occur bad rail, the life-span that the user just can notice this hard disc whether near, and then the data backup in the hard disc come out, in addition, the bad rail of hard disc slowly occurs, even user's loss data, also be to lose part information, can once do not lose the data of whole hard disc.
But, carry-on dish of USB or MP3 are because be to be storing media with the fast flash memory bank, and fast flash memory bank has the restriction that writes (write) and deletion (erase) number of times, therefore in order to allow the storage area of fast flash memory bank on average be utilized, carry-on dish of USB or MP3 can use a software (software is firmware, below all be called software) to carry out memory body to distribute and management.
Seeing also shown in Figure 1 is the existing traditional fast flash memory bank and the synoptic diagram of planning management mode thereof, fast flash memory bank with a 128MB shown in Figure 1 is an example, software cuts into 1024 blocks with fast flash memory bank, each block (block) 128K, and these blocks are divided into reserved area and two zones of information data area, the block that information data area and reserved area had is fixed, and for example information data area accounts for 992 blocks, and the reserved area accounts for 32 blocks.And the reserved area has mainly comprised active block (Free Blocks), bad block (Bad Blocks) and other blocks (Other Blocks), carry-on dish of USB or MP3 need utilize active block to reach the purpose of data access, therefore the quantity of active block must be greater than 0, but bad block is relative with active block, many bad blocks, then need to substitute with an active block, therefore, increase along with carry-on dish of USB or MP3 access times, bad block increases gradually, make active block reduce relatively, in case active block quantity equals 0, carry-on dish of USB or MP3 just do not have active block can carry out access (delete or write) function, and the life-span of carry-on dish of USB or MP3 promptly comes to an end, and can't be used again.
This shows that the management method of above-mentioned existing portable memory device obviously still has inconvenience and defective, and demands urgently further being improved in management method and use.In order to solve the problem of above-mentioned existence, relevant manufacturer there's no one who doesn't or isn't seeks solution painstakingly, but do not see always that for a long time suitable design finished by development, and the general management method does not have appropriate method to address the above problem, this obviously is the problem that the anxious desire of relevant dealer solves.Therefore how a kind of dynamic management approach of new portable memory device is provided, real one of the current important topic that belongs to, also becoming the current industry utmost point needs improved target.
Because the defective that the management method of above-mentioned existing portable memory device exists, the inventor is based on being engaged in this type of product design manufacturing abundant for many years practical experience and professional knowledge, and the utilization of cooperation scientific principle, actively studied innovation, in the hope of founding a kind of dynamic management approach of new portable memory device, can improve general existing management method, make it have more practicality.Through constantly research, design, and after studying repeatedly and improving, create the present invention who has practical value finally.
Summary of the invention
The objective of the invention is to, overcome the defective of the management method existence of existing portable memory device, and provide a kind of dynamic management approach of new portable memory device, technical matters to be solved is to make its automatically setting or set by the user passively, and can elasticity change the access facility of portable memory device, thereby be suitable for practicality more.
The object of the invention to solve the technical problems realizes by the following technical solutions.The dynamic management approach of a kind of portable memory device that proposes according to the present invention, this portable memory device comprises a fast flash memory bank, this fast flash memory bank comprises an information data area that Gong stores data, this information data area is made up of a plurality of data blocks, and this fast flash memory bank also comprises a reserved area, this reserved area comprises the active block that a plurality of confessions are carried out access operation and replaced the bad block of this information data area, this method may further comprise the steps: (A), set a mark, to determine the access status of this information data area; (B), check this mark, if this mark is set to one first state, open this information data area is for access; (C), if this mark be set to one second state, limit this information data area by access; And (D), when this active block quantity greater than zero the time, be this first state with this flag settings, when this active block quantity equals zero, be this second state with this flag settings.
The object of the invention to solve the technical problems also can be applied to the following technical measures to achieve further.
The dynamic management approach of a plurality of aforesaid portable memory devices, wherein this method more includes step (E): after this information data area was by access, whether be zero, if be this second state with this flag settings if detecting this active block quantity.
The dynamic management approach of aforesaid portable memory device, wherein this method more includes step (F): before this information data area is by access, this mark of interpretation and execution in step (B) and step (C).
The dynamic management approach of aforesaid portable memory device, wherein these method steps are performed by the software program in this portable memory device (software program is the firmware formula, below all be called software program).
The dynamic management approach of aforesaid portable memory device when this mark is this second state, is to limit this information data area can only be read wherein.
The dynamic management approach of aforesaid portable memory device, wherein when this mark is this second state, be limit this information data area can not be by access.
The dynamic management approach of aforesaid portable memory device, wherein this method more includes step (G): when this mark is this second state, this portable memory device can (be a PC by a connected personal computer, below all be called personal computer) change the state of this mark, to change the limited-access of this information data area.
The dynamic management approach of aforesaid portable memory device, in the wherein said step (GD), this personal computer can only be read to limit this information data area with this mark by this second Status Change to a third state.
The dynamic management approach of aforesaid portable memory device, in the wherein said step (G), this personal computer can be with this mark by this second Status Change to a four condition, make can't limit this information data area with replying can not be by access.
The dynamic management approach of aforesaid portable memory device, in the wherein said step (GD), this personal computer more can dynamically increase the active block quantity of this reserved area according to the information data area capacity of this portable memory device, and this mark is changed to this first state.
The dynamic management approach of aforesaid portable memory device, in the wherein said step (G), when this personal computer according to this information data area capacity, when judgement can't increase the quantity of active block of this reserved area again, then this mark is changed to a third state, limiting this information data area can only be read.
The dynamic management approach of aforesaid portable memory device, in the wherein said step (G), when this personal computer is judged the quantity of the active block that can't increase this reserved area again according to this information data area capacity, then this mark is changed to a four condition, make can't limit this information data area with replying can not be by access.
The dynamic management approach of aforesaid portable memory device, in the wherein said step (G), this personal computer more can dynamically increase the active block quantity of this reserved area according to this information data area capacity, and this mark is changed to this first state.
The dynamic management approach of aforesaid portable memory device, in the wherein said step (G), this personal computer more can change to this mark one four condition, make can't limit this information data area with replying can not be by access.
The dynamic management approach of aforesaid portable memory device, wherein said this mark is recorded in this reserved area.
The dynamic management approach of aforesaid portable memory device, wherein said these flag states and pairing information data area access status thereof are recorded in a mode flag setting table that is stored in the reserved area of this fast flash memory bank.
The dynamic management approach of aforesaid portable memory device, wherein said step (B) and step (C) are to be realized by a software program that is preset in this portable memory device.
The dynamic management approach of aforesaid portable memory device, wherein said step (G) are to be preset in software program in this personal computer (be the software formula, below all be called software program) by one to realize.
The present invention compared with prior art has tangible advantage and beneficial effect.As known from the above, the invention relates to a kind of dynamic management approach of portable memory device, this portable memory device comprises the fast flash memory bank that planning has a reserved area and an information data area, this reserved area comprises the active block that access operation and replacing damaged block are carried out in a plurality of confessions, this method provides a mark, when this active block quantity greater than zero the time, this flag settings is one first state of open this information data area for access, when this active block quantity equals zero, with this flag settings is to limit this information data area by one second state of access, and before this information data area is by access, need this mark of interpretation, with according to this flag state, determine open or this information data area of restriction access; And whether after this information data area is by access, detecting this active block quantity is zero, if, be this second state with this flag settings, whereby, give portable memory device more flexible access facility.
By technique scheme, the dynamic management approach of portable memory device of the present invention has following advantage at least: the invention has the advantages that by above-mentioned mark and judgement flow scheme design, portable memory device itself or user can be by the change marks, the access facility of change portable memory device, but to assist portable memory device to return back to Status of Backups or normal condition by abnormality, and allow the user can by the change mark, prevent that other people from stealing or revising the data that stores in the portable memory device, and can reach the purpose and the effect of dynamic management portable memory device.
In sum, the dynamic management approach of the portable memory device of novelty of the present invention, automatically setting or set by the user passively, and but elasticity changes the access facility of portable memory device, prevent that other people from stealing or revising the data that stores in the portable memory device, and can reach the effect of dynamic management portable memory device, be very suitable for practicality.The present invention has above-mentioned plurality of advantages and practical value, no matter it all has bigger improvement on management method or function, obvious improvement is arranged technically, and produced handy and practical effect, and the management method of more existing portable memory device has the outstanding effect of enhancement, thereby is suitable for practicality more, and has the extensive value of industry, really be a novelty, progress, practical new design.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, and for above-mentioned and other purposes, feature and advantage of the present invention can be become apparent, below especially exemplified by preferred embodiment, and conjunction with figs., be described in detail as follows.
Description of drawings
Fig. 1 is the existing traditional fast flash memory bank and the synoptic diagram of planning management mode thereof.
Fig. 2 is the process flow diagram of first preferred embodiment of the dynamic management approach of portable memory device of the present invention.
Fig. 3 is the process flow diagram of second preferred embodiment of the dynamic management approach of portable memory device of the present invention.
Fig. 4 is that the portable memory device of second embodiment of the invention carries out the process flow diagram that flag state is set by personal computer under abnormal patterns.
Fig. 5 is the portable memory device of second embodiment of the invention carries out the flag state change setting by personal computer under backup mode a process flow diagram.
Fig. 6 is the portable memory device of second embodiment of the invention carries out the flag state change setting by personal computer under normal mode a process flow diagram.
Fig. 7 is that second embodiment of the invention is passed through the process flow diagram of reserved area capacity that personal computer dynamically increases the fast flash memory bank of portable memory device.
Embodiment
Reach technological means and the effect that predetermined goal of the invention is taked for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, its embodiment of dynamic management approach, management method, step, feature and the effect thereof of the portable memory device that foundation the present invention is proposed, describe in detail as after.
About aforementioned and other technology contents, characteristics and effect of the present invention, in the following detailed description that cooperates with reference to a graphic embodiment, can clearly present.
See also shown in Figure 2, it is first preferred embodiment of the dynamic management approach of portable memory device of the present invention, in the present embodiment, this portable memory device is carry-on dish of a USB or MP3, it mainly comprises one first mnemon, one second mnemon and a control wafer, wherein, this first mnemon is a fast flash memory bank (Flash memory), this second mnemon comprises a random access memory (RAM) and a read-only memory (ROM), and mounting has one in order to plan and to manage the software program of this fast flash memory bank in this control wafer.
Same is example with 128MB fast flash memory bank shown in Figure 1, this software program cuts into 1024 blocks with fast flash memory bank, each block (block) 128K capacity, and these blocks are divided into a reserved area and two zones of an information data area, the block that information data area and reserved area had is fixed, for example information data area accounts for 992 blocks (but representing the user that the space access data of 992x128k=124MB is arranged), and the reserved area accounts for 32 blocks (representing software is that firmware has the space of 32x128k=4MB to use).Wherein the reserved area is made up of active block (maximum 31), bad block (initial 0) and other blocks (1) again, carry-on dish of USB or MP3 need reach the purpose of data reading-writing by active block, therefore the quantity of active block must be greater than 0, but when a block damages, must substitute with an active block again, so bad block is many more, active block promptly reduces relatively.
Therefore, in order to learn the numbers of states of active block, portable memory device is carried out elasticity and favourable control in good time, allow the user not the active block of reason portable memory device be 0, carry out data access action and again can't operate portable memory device.So shown in following table 1, present embodiment provides a mark and a mode flag setting table (table 1) in order to the access status that determines this information data area, when this active block quantity greater than 0 the time, this mark is set to first state (0) of open this information data area for access, when this active block number equals 0, this mark is changed to limits this information data area by one second state (1) of access, that is, when this mark is first state (0), portable memory device is in a normal mode, and make this information data area can supply to read, write and the deletion data, and when this mark is second state (1), portable memory device is in a backup mode, and the restriction information data area can only can not be written into or the deletion data for reading data.
Pattern Flag state Function
Normally 0 (first state) All access facilities (reading and writing deletion)
Backup 1 (second state) Read functions only is provided
Table 1
And the current state of this mark is recorded in other blocks of reserved area, and the institute of mark might state and pairing information data area access status, then is recorded in the mode flag setting table (table 1) in other blocks of reserved area.
Therefore, mode flag according to above-mentioned table 1 is set table, when portable memory device each with an external electronic, when for example personal computer (PC) connected, the software program in the portable memory device can be written into to be carried out and carries out as shown in Figure 2 judgement flow process.
At first, step 21 and step 22 as Fig. 2, program (is a formula, below all being called program) reading and recording is at the mark of reserved area and be temporarily stored in the random access memory (RAM) of second mnemon, and is the state of judge mark at normal mode (i.e. first state (0))? if, as step 23, set the setting of showing according to mode flag, open information data area carries out access (comprising actions such as reading and writing and deletion) for personal computer.And because information data area may have the block damage in access procedure, need substitute with active block, make the active block decreased number, therefore after access action finishes, program can carry out step 24, do you judge that the active block number is 0?, if not, then finish to judge flow process, otherwise, the expression reserved area has not had active block and can supply to write and delete action, but for the data of information data area still can be read, therefore, as step 25, program changes to second state (1) with mark by first state (0), and reference pattern flag settings table, makes portable memory device enter a restriction information data area only for reading the backup mode that can not write.
Otherwise when the state at step 22 judge mark is not during at normal mode, promptly expressive notation is in second state (1), then as step 26, makes portable memory device enter backup mode, can only be read with the restriction information data area.
And after flow process finished, the flag state that is temporarily stored in the random access memory of second mnemon was write back in the reserved area of first mnemon (fast flash memory bank).
Therefore, by above-mentioned mark and flow scheme design, and reference pattern flag settings table, even the active block in the reserved area uses up and can't allow personal computer write under the situation of data again, automatically change flag state to backup mode by software program, allow the user still can be by the open read functions of portable memory device, the data backup that leaves in the information data area is come out, thereby avoided the active block in the memory body of portable memory device in a single day to use up, just become fully can't the access backup situation take place.
Please consulting shown in Figure 3ly again, is second preferred embodiment of the dynamic management approach of portable memory device of the present invention, and this embodiment will reach by a software program of software program in the portable memory device and personal computer end.And shown in following table 2, as first embodiment, present embodiment is represented the access status of information data area except adopting mark, need set up a mode flag setting table (table 2) that is recorded in the reserved area equally in advance, with according to flag state, determine the access status of this information data area, wherein when being labeled as one first state (0), make portable memory device be in the normal mode of open all access facilities, when being labeled as one second state (1), making portable memory device be in does not provide the abnormal patterns of access facility, when being labeled as a third state (2), make portable memory device be in a backup mode that read functions (backup functionality) is provided, when being labeled as a four condition (3), make portable memory device be in not providing access facility and maintenance mode that can't recovery function, and in the present embodiment, the software program that limits in the portable memory device can only change into abnormal patterns by normal mode with portable memory device, and the conversion between other patterns then needs to carry out by the software program of external personal computer.
Pattern State Function
Normally 0 (first state) All access facilities (reading and writing, deletion)
Unusually 1 (second state) Access facility is not provided, but can replys
Backup 2 (third state) Access facility only is provided
Maintenance 3 (four conditions) Access facility is not provided and can't replys
Table 2
And, similarly, when portable memory device is connected to personal computer when carrying out access, software program in this portable memory device is performed and carries out as shown in Figure 3 judgement flow process, the program reading and recording is at the mark of reserved area and be temporarily stored in the random access memory (RAM) of second mnemon, wherein step 21~24 shown in Figure 2 with first embodiment, step 401~404 are identical, its difference only is, when step 402, judge that according to flag state portable memory device is not when the normal mode, then enters step 405, is the judge mark state at abnormal patterns? if, then carry out step 406, enter abnormal patterns, all access facilities are not provided, but allow the software program of personal computer to change flag state, if not, then entering step 407, is the judge mark state a backup mode? if, carry out step 408, enter backup mode, read functions is provided, and allow the software program of personal computer to change flag state.If not, then carry out step 409, enter maintenance mode, all access facilities are not provided, and make the software program of personal computer can not change flag state.In addition, in step 404, when judging that the active block number equals 0, promptly carry out step 410, mark is changed to second state (1), and make portable memory device enter the abnormal patterns of access facility is not provided.
Therefore, under abnormal patterns, portable memory device will can not provide any access facility, whereby, allow the user recognize the message that the active block in the fast flash memory bank may use up, at this moment, the user can pass through the personal computer software program for execution, and portable memory device is carried out mode state switching and setting.
See also shown in Figure 4, the portable memory device that is second embodiment of the invention carries out the process flow diagram that flag state is set by personal computer under abnormal patterns, and please refer to shown in the above-mentioned table 2, when portable memory device is connected to personal computer under abnormal patterns, default software program is started by (automatically or passively) in the personal computer, and carries out following flow process.
At first, program can provide an operation interface (not shown) in the display frame of personal computer, then, carry out step 601, program inquiry also judges whether the user will change flag state, if expression user is at this moment set (input) and wanted the flag state that changes, then, carry out step 602, whether judge mark changes to the third state (2), if, then execution in step 603, make the backup mode that portable memory device enters only provides read functions; Otherwise, carry out step 604, does judge mark change to four condition (3)? if, then execution in step 605, the service mode that makes portable memory device enter any access facility not being provided and can't replying, otherwise, so far represent that the user does not import and want the flag state that changes, then carry out step 606, whether the inquiry user increases the reserved area capacity (that is increasing active block quantity) of fast flash memory bank, if the expression portable memory device is because the behaviour area number is 0 just to enter abnormal patterns.
Therefore, enter step 607, the information data area capacity that the process monitoring portable memory device is present, and according to the information data area capacity, dynamically increase the reserved area capacity, with the quantity of newly-increased active block, then, as step 608, does program judge whether the operation that increases the reserved area capacity successful? if, then carry out step 609 and 610, automatically mark is changed to first state (0), portable memory device is returned back to provides the normal mode of all access facilities.
Otherwise, when in step 608, when the operation of discovery increase reserved area capacity is unsuccessful, the fast flash memory bank of expression portable memory device has not had unnecessary information data area can supply to divert as the reserved area, that is this portable memory device can't provide the function that writes or delete fully again, then as step 611, program can change to mark the third state (2) automatically, and allowing portable memory device return back at least only provides the backup mode of read functions (step 603).Certainly, in step 608, when program is judged when unsuccessful, also execution in step 611 not, and direct process ends make portable memory device still maintain abnormal patterns.
Return step 606, when judging that the user is not when wanting to increase the reserved area capacity of fast flash memory bank, the expression portable memory device is just to enter abnormal patterns via artificial setting under normal mode, but not the active block number of reserved area has equaled 0, therefore enters step 612, inquires further whether the user will return back to normal mode with portable memory device, if, then mark is changed to first state, and enter step 610, make portable memory device return back to normal mode.Otherwise, process ends.
Therefore, pass through personal computer, the user is taken place unusual and under can't the situation of access, can be changed the flag state of portable memory device by personal computer at portable memory device, makes portable memory device return back to the backup mode that can be read or comes back to normal mode.And the user also can be set at abnormal patterns with portable memory device by normal mode by personal computer, and can prevent that other people from stealing or revising the data that stores in the portable memory device.
Then see also shown in Figure 5, it is the portable memory device of second embodiment of the invention carries out the flag state change setting by personal computer under backup mode process flow diagram, and please refer to shown in the above-mentioned table 2, when portable memory device is to be connected to personal computer under backup mode, and in the startup personal computer during default software program, the flow process of similar Fig. 4, is program at first inquired and is judged that the user will change flag state in step 701? if then carry out step 702, whether judge mark changes to second state (1), if, make portable memory device enter abnormal patterns then as step 703, otherwise, carry out step 704, whether judge mark changes to four condition (3), if, then, make portable memory device enter maintenance mode as step 705; Otherwise, then as step 706, whether the inquiry user increases the reserved area capacity, if then carry out step 707~710 (as above-mentioned steps 507~510), the newly-increased reserved area capacity of trying, so that portable memory device is returned back to normal mode, otherwise as step 711, whether the inquiry portable memory device returns back to normal mode.
Therefore, pass through personal computer, the user can only provide under the situation of read functions at portable memory device, can change the flag state of portable memory device by personal computer, portable memory device can be entered abnormal patterns, maintenance mode or be come back to normal mode by backup mode.
Please consult shown in Figure 6 again, it is the portable memory device of second embodiment of the invention carries out the flag state change setting by personal computer under normal mode process flow diagram, and please refer to shown in the above-mentioned table 2, when portable memory device is to connect personal computer under normal mode, and in the startup personal computer during default application program, as step 81, whether program inquiry user changes flag state, if, then, judge whether that change is tagged to second state (1) as step 82, if, then as step 83, make portable memory device enter abnormal patterns, otherwise, as step 84, judge whether that again change is tagged to the third state (2), if, make portable memory device enter backup mode then as step 85, otherwise, i.e. process ends.
Therefore, under normal mode, the user can pass through personal computer, the flag state of change portable memory device is abnormal patterns that access facility is not provided or the backup mode that read functions only is provided, prevent the 3rd people whereby to the portable memory device access or write data, and can reach the effect that data is maintained secrecy.
And, what deserves to be mentioned is that aforementioned step 607 shown in Figure 4 or step 707 shown in Figure 5 can following technological means be reached.
At first, before the application program execution in step 607 or 707 of personal computer, in the read-only memory of second mnemon of portable memory device, need default earlier just like the use stratum table of comparisons shown in the following table 3, wherein from top to bottom planning has n stratum, this n stratum in arithmetic series (differing from 8) mode by little to incrementally defining greatly reserved area capacity and corresponding information data area capacity, fast flash memory bank with 128Mb is an example, when n=1 (the 1st stratum), make software program that fast flash memory bank is formulated for reserved area with 32 blocks (128Kb/ block) and the information data area with 992 blocks, when n=2, then the reserved area has the individual block of 40 (32+8), information data area has 984 blocks, by that analogy.And the present employed stratum of portable memory device is recorded in other block of reserved area of fast flash memory bank with a label (Tag).
Stratum Reserved area capacity (block counts) Information data area capacity (block counts)
1 32 992
2 40 984
3 48 976
. . . . . . . . .
N 32+8(n-1) 992-8(n-1)
Table 3
Therefore, when execution in step 607 or 707, (can earlier the data backup that leaves in the information data area be come out), as shown in Figure 7, be that second embodiment of the invention is passed through the process flow diagram of reserved area capacity that personal computer dynamically increases the fast flash memory bank of portable memory device, shown in the flow process of Fig. 7, software program carry out step 101, at first read the label of the present stratum of representative in the reserved area, and as step 102, judge whether label arrives last stratum that defines in the use stratum table of comparisons, if, then pass message and the process ends that can't enter rank back, otherwise, as step 103, label value is added 1, and as step 104, the software program of management fast flash memory bank that makes portable memory device is according to the definition in stratum's table of comparisons, after readjusting the number of blocks of reserved area and information data area, as step 105,, promptly finish the operation of newly-increased reserved area capacity (being active block) to the fast flash memory bank reformatting.
In sum, the present invention is by above-mentioned mark and judge flow scheme design, and reference pattern flag settings table, portable memory device has been used up in the active block of reserved area and can't allow under the situation of personal computer access data, can change flag state automatically, allow the user data backup that leaves in the information data area can be come out to backup mode; In addition, the present invention is by the application program that is preset on the personal computer, allow the user take place unusual and under can't the situation of access at portable memory device, can change the flag state of portable memory device by personal computer, allow portable memory device return back to backup mode or come back to normal mode, and allow the user portable memory device is set at abnormal patterns by normal mode by personal computer, and can prevent that other people from stealing or revising the data that stores in the portable memory device, reach the purpose and the effect of dynamic management portable memory device.
The above, it only is preferred embodiment of the present invention, be not that the present invention is done any pro forma restriction, though the present invention discloses as above with preferred embodiment, yet be not in order to limit the present invention, any those skilled in the art, in not breaking away from the technical solution of the present invention scope, when the technology contents that can utilize above-mentioned announcement is made a little change or is modified to the equivalent embodiment of equivalent variations, in every case be not break away from the technical solution of the present invention content, according to technical spirit of the present invention to any simple modification that above embodiment did, equivalent variations and modification all still belong in the scope of technical solution of the present invention.

Claims (18)

1, a kind of dynamic management approach of portable memory device, this portable memory device comprises a fast flash memory bank, this fast flash memory bank comprises an information data area that Gong stores data, this information data area is made up of a plurality of data blocks, and this fast flash memory bank also comprises a reserved area, this reserved area comprises the active block that a plurality of confessions are carried out access operation and replaced the bad block of this information data area, it is characterized in that this method may further comprise the steps:
(A), set a mark, to determine the access status of this information data area;
(B), check this mark, if this mark is set to one first state, open this information data area is for access;
(C), if this mark be set to one second state, limit this information data area by access; And
(D), when this active block quantity greater than zero the time, be this first state with this flag settings, when this active block quantity equals zero, be this second state with this flag settings.
2, the dynamic management approach of portable memory device according to claim 1, it is characterized in that wherein this method more comprises step (E): after this information data area is by access, whether be zero, if be this second state with this flag settings if detecting this active block quantity.
3, the dynamic management approach of portable memory device according to claim 1 is characterized in that wherein this method more comprises step (F): before this information data area is by access, and this mark of interpretation and execution in step (B) and step (C).
4,, it is characterized in that wherein these method steps are performed by the software program in this portable memory device according to the dynamic management approach of the described portable memory device of arbitrary claim in the claim 1 to 3.
5, the dynamic management approach of portable memory device according to claim 1 is characterized in that wherein being to limit this information data area can only be read when this mark is this second state.
6, the dynamic management approach of portable memory device according to claim 1 is characterized in that wherein when this mark is this second state, be limit this information data area can not be by access.
7, the dynamic management approach of portable memory device according to claim 6, it is characterized in that wherein this method more comprises step (G): when this mark is this second state, this portable memory device can change the state of this mark by a connected personal computer, to change the limited-access of this information data area.
8, the dynamic management approach of portable memory device according to claim 7 is characterized in that in the wherein said step (G), and this personal computer can only be read to limit this information data area with this mark by this second Status Change to a third state.
9, the dynamic management approach of portable memory device according to claim 7, it is characterized in that in the wherein said step (G), this personal computer can be with this mark by this second Status Change to a four condition, make can't limit this information data area with replying can not be by access.
10, the dynamic management approach of portable memory device according to claim 7, it is characterized in that in the wherein said step (G), this personal computer more can be according to the information data area capacity of this portable memory device, dynamically increase the active block quantity of this reserved area, and this mark is changed to this first state.
11, the dynamic management approach of portable memory device according to claim 10, it is characterized in that in the wherein said step (G), when this personal computer according to this information data area capacity, when judgement can't increase the active block quantity of this reserved area again, then this mark is changed to a third state, limiting this information data area can only be read.
12, according to the dynamic management approach of the described portable memory device of claim 1Q, it is characterized in that in the wherein said step (G), when this personal computer can't increase the active block quantity of this reserved area again according to this information data area capacity judgement, then this mark is changed to a four condition, make can't limit this information data area with replying can not be by access.
13, the dynamic management approach of portable memory device according to claim 8, it is characterized in that in the wherein said step (G), this personal computer more can dynamically increase the active block quantity of this reserved area according to this information data area capacity, and this mark is changed to this first state.
14, the dynamic management approach of portable memory device according to claim 8, it is characterized in that in the wherein said step (G), this personal computer more can change to this mark one four condition, make can't limit this information data area with replying can not be by access.
15, the dynamic management approach of portable memory device according to claim 1 is characterized in that wherein said this mark is recorded in this reserved area.
16, the dynamic management approach of portable memory device according to claim 1, it is characterized in that wherein said these flag states and pairing information data area access status thereof, be recorded in a mode flag setting table that is stored in the reserved area of this fast flash memory bank.
17, the dynamic management approach of portable memory device according to claim 1 is characterized in that wherein said step (B) and step (C) are to be realized by a software program that is preset in this portable memory device.
18,, it is characterized in that wherein said step (G) is to be realized by a software program that is preset in this personal computer according to the dynamic management approach of the described portable memory device of arbitrary claim in the claim 7 to 14.
CNB2006100785197A 2006-05-08 2006-05-08 The dynamic management approach of portable memory device Expired - Fee Related CN100552648C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100785197A CN100552648C (en) 2006-05-08 2006-05-08 The dynamic management approach of portable memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100785197A CN100552648C (en) 2006-05-08 2006-05-08 The dynamic management approach of portable memory device

Publications (2)

Publication Number Publication Date
CN101071400A CN101071400A (en) 2007-11-14
CN100552648C true CN100552648C (en) 2009-10-21

Family

ID=38898632

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100785197A Expired - Fee Related CN100552648C (en) 2006-05-08 2006-05-08 The dynamic management approach of portable memory device

Country Status (1)

Country Link
CN (1) CN100552648C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8744971B2 (en) * 2011-08-29 2014-06-03 Sony Computer Entertainment America Llc Dynamic redemption codes

Also Published As

Publication number Publication date
CN101071400A (en) 2007-11-14

Similar Documents

Publication Publication Date Title
CN103914516B (en) A kind of method and system of storage system multi-zone supervision
CN101556555B (en) Block managing method for flash memory as well as controller and storage system thereof
CN101604548B (en) Method for storing solid state hard disc and data
CN101620572B (en) Nonvolatile memory and control method
CN101625897B (en) Data write-in method, storage system and controller used for quick flash memory
EP1752917A4 (en) Memory card, access device, and memory card processing method
CN103092766A (en) Balanced loss achievement method for NAND FLASH
CN101782875A (en) Storage unit and data storage method
CN104598165A (en) Method and device for improving durability of storage on embedded equipment
CN104346288A (en) Method for managing a memory device, memory device and controller
CN103365786A (en) Data storage method, device and system
CN105607862A (en) Solid state disk capable of combining DRAM (Dynamic Random Access Memory) with MRAM (Magnetic Random Access Memory) and being provided with backup power
CN102520885B (en) Data management system for hybrid hard disk
CN101499316B (en) Flash memory block management method and controller employing the same
CN102012873A (en) Cache system of Not AND (NAND) flash memory and cache method
CN100552648C (en) The dynamic management approach of portable memory device
CN100543748C (en) A kind of method and system of utilizing file allocation table to carry out the file tracking
CN103309619A (en) NAND Flash memory data storage method
CN103019624B (en) Phase change memory device
CN102981975B (en) The management method of flash data and system
CN110262980B (en) High-speed storage system based on limited-life storage medium
CN110489051A (en) The programmed method of data memory device and system information
CN101739350A (en) Memory storage device and control method thereof
CN109119123A (en) A kind of classification method of senior middle school's low order flash memory
CN105653468B (en) A kind of storage device using MRAM

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091021

Termination date: 20190508

CF01 Termination of patent right due to non-payment of annual fee