CN102866863B - Embedded multi-media card data migration method, system layer and embedded device - Google Patents
Embedded multi-media card data migration method, system layer and embedded device Download PDFInfo
- Publication number
- CN102866863B CN102866863B CN201210302702.6A CN201210302702A CN102866863B CN 102866863 B CN102866863 B CN 102866863B CN 201210302702 A CN201210302702 A CN 201210302702A CN 102866863 B CN102866863 B CN 102866863B
- Authority
- CN
- China
- Prior art keywords
- media card
- update times
- threshold value
- equal
- embedded
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a kind of embedded multi-media card data migration method, system layer and embedded device, its method includes: the system layer of embedded device is when judging that embedded multi-media card meets default transition condition, and in inquiry embedded multi-media card, update times is less than or equal to the data block presetting update times threshold value;The system layer of embedded device sends and migrates control instruction to the controller of embedded multi-media card, control the controller backup updating number of times of embedded multi-media card less than or equal to the data in the data block presetting update times threshold value, and discharging the update times memory space less than or equal to the data block presetting update times threshold value, the data block making update times be less than or equal to preset update times threshold value participates in writing equilibrium.The present invention starts with from the system layer of embedded device, effectively extends the service life of embedded multi-media card, promotes embedded device entirety service life, improves product quality, reduces after service cost.
Description
Technical field
The present invention relates to embedded system technology field, be related specifically to embedded multi-media card data
Moving method, system layer and embedded device.
Background technology
Along with the renewal of flash technology, EMMC(Embedded MultiMedia Card occurs, embedding
Entering formula multimedia card) this capacity is bigger, and the flash device of cheaper, in embedded system
System has started to large-scale use.But the ratio in service life of embedded multi-media card is relatively low, erasable
Write number of times to be theoretically 3000 times, far below nand flash, need by improving total capacity, with
And in using embedded multi-media card controller to guarantee embedded multi-media card according to certain algorithm
That holds writes equilibrium.But in embedded systems, due to the restriction of cost, it is impossible to use Large Copacity
Embedded multi-media card, and only with the equalization algorithm of writing of embedded multi-media card controller,
The service life that can not make embedded multi-media card obtains bigger raising.
Summary of the invention
The main object of the present invention is effectively improved the embedding of embedded multi-media card service life for providing a kind of
Enter formula multimedia card data migration method, system layer and embedded device.
The present invention proposes the embedded multi-media card data migration method of the system layer of a kind of embedded device
, including step:
The system layer of embedded device, when judging that embedded multi-media card meets default transition condition, is looked into
Ask update times in described embedded multi-media card and be less than or equal to preset the number of update times threshold value
According to block;
The system layer of described embedded device sends and migrates control instruction to described embedded multi-media card
Controller, control described embedded multi-media card controller back up described update times less than or
Equal to the data in the data block presetting update times threshold value, and discharge described update times and be less than
Or the memory space equal to the data block presetting update times threshold value, make described update times be less than
Or participate in writing equilibrium equal to the data block presetting update times threshold value.
Preferably, the system layer of described embedded device is judging that described embedded multi-media card meets in advance
If
During transition condition, inquire about update times in described embedded multi-media card and be less than or equal to preset more
The step of the data block of new frequency threshold value specifically includes:
The system layer of described embedded device is freed data blocks in judging described embedded multi-media card
Remaining space summation, less than or equal to when presetting remaining space threshold value, inquires about described embedded many matchmakers
In body card, update times is less than or equal to the data block presetting update times threshold value.
Preferably, the system layer of described embedded device is idle in judging described embedded multi-media card
The remaining space summation of data block, less than or equal to when presetting remaining space threshold value, is inquired about described embedding
Enter update times in formula multimedia card and be less than or equal to preset the step of the data block of update times threshold value
Also include before rapid:
The system layer of described embedded device is judging that described the embedded of embedded multi-media card place sets
Standby start number of times is more than or equal to when presetting start frequency threshold value, it is judged that described embedded many matchmakers
In body card, whether the remaining space summation of freed data blocks is less than or equal to presetting remaining space threshold value
。
Preferably, the system layer of described embedded device is judging that described embedded multi-media card meets in advance
If during transition condition, inquire about update times in described embedded multi-media card and be less than or equal to preset
Also include before the step of the data block of update times threshold value:
The system layer of described embedded device adds up the start number of times of described embedded device and described embedding
The update times of each data block in formula multimedia card.
The present invention also proposes the system layer of a kind of embedded device, including:
Micro-processor MCV, for when judging that embedded multi-media card meets default transition condition, inquiring about
In described embedded multi-media card, update times is less than or equal to the data presetting update times threshold value
Block;
Instruction sending module, for sending the control migrating control instruction extremely described embedded multi-media card
Device, the described update times of controller backup controlling described embedded multi-media card is less than or equal to
Preset update times threshold value data block in data, and discharge described update times less than or etc.
In the memory space of the data block of default update times threshold value, make described update times less than or etc.
Data block in default update times threshold value participates in writing equilibrium.
Preferably, described Micro-processor MCV specifically for:
In judging described embedded multi-media card, the remaining space summation of freed data blocks is less than or equal to
When presetting remaining space threshold value, inquire about in described embedded multi-media card update times less than or etc.
Data block in default update times threshold value.
Preferably, described Micro-processor MCV is specifically additionally operable to:
Start number of times at the embedded device judging described embedded multi-media card place is more than or equal to
In advance
If during start frequency threshold value, it is judged that in described embedded multi-media card, the residue of freed data blocks is empty
Between summation whether less than or equal to presetting remaining space threshold value.
Preferably, the system layer of described embedded device also includes:
Statistical module, for adding up the start number of times of described embedded device and described built-in multimedia
The update times of each data block in card.
The present invention also proposes a kind of embedded device, including the system layer of embedded device and embedded many
Media card, described embedded multi-media card includes controller, described controller specifically for:
Receive the migration control instruction that the system layer of described embedded device sends, back up described renewal time
Number is less than or equal to the data in the data block presetting update times threshold value, and discharges described renewal
Number of times, less than or equal to the memory space of the data block presetting update times threshold value, makes described renewal
Number of times participates in writing equilibrium less than or equal to the data block presetting update times threshold value;
The system layer of described embedded device includes:
Micro-processor MCV, is used for when judging that described embedded multi-media card meets default transition condition,
Inquire about update times in described embedded multi-media card to be less than or equal to preset update times threshold value
Data block;
Instruction sending module, for sending the control migrating control instruction extremely described embedded multi-media card
Device, the described update times of controller backup controlling described embedded multi-media card is less than or equal to
Preset update times threshold value data block in data, and discharge described update times less than or etc.
In the memory space of the data block of default update times threshold value, make described update times less than or etc.
Data block in default update times threshold value participates in writing equilibrium.
The present invention starts with from the system layer of embedded device, effectively extends the use of embedded multi-media card
In the life-span, promote embedded device entirety service life, improve product quality, reduce after-sale service
Cost.
Accompanying drawing explanation
Fig. 1 is the flow chart of the first embodiment of embedded multi-media card data migration method of the present invention;
Fig. 2 is the flow chart of the second embodiment of embedded multi-media card data migration method of the present invention;
Fig. 3 is the flow chart of the 3rd embodiment of embedded multi-media card data migration method of the present invention;
Fig. 4 is the flow chart of the 4th embodiment of embedded multi-media card data migration method of the present invention;
Fig. 5 is the structural representation of the system layer first embodiment of embedded device of the present invention;
Fig. 6 is the structural representation of system layer second embodiment of embedded device of the present invention;
Fig. 7 is the structural representation of embedded device one embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings into one
Step explanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to
Limit the present invention.
As it is shown in figure 1, the first embodiment that Fig. 1 is embedded multi-media card data migration method of the present invention
Flow chart, the embedded multi-media card data migration method that this embodiment is mentioned, including:
Step S101, the system layer of embedded device is judging that embedded multi-media card meets default migration
During condition, in inquiry embedded multi-media card, update times is less than or equal to presetting update times threshold
The data block of value;
In embedded multi-media card, a part of data block is owing to repeatedly carrying out data renewal, its erasable
Write number of times close to ultimate value;In another part data block, the data update times of storage is less,
Its remaining erasable number of times is more.But owing to the controller of embedded multi-media card can not count
Have in the case of data according to block storage and write other data to data block, meanwhile, controller also without
Method judges the frequent degree that in data block, data update, and the present embodiment utilizes embedded device
System layer can solve the problem that this problem just.
Step S102, the system layer of embedded device sends and migrates control instruction to embedded multi-media card
Controller, control the controller backup updating number of times of embedded multi-media card less than or equal to pre-
If the data in the data block of update times threshold value, and discharge update times less than or equal to presetting
The memory space of the data block of update times threshold value, makes update times be less than or equal to preset renewal
The data block of frequency threshold value participates in writing equilibrium.
The present embodiment is when meeting transition condition, by the embedded device at embedded multi-media card place
System layer search and remain the more data block of erasable number of times, notify embedded multi-media card
Controller discharge the memory space of this part data block, allow this part data block participate in and write all
Weighing apparatus, it is ensured that in embedded multi-media card, the erasable number of times of each data block obtains abundant profit
With, it is effectively improved the whole service life of embedded multi-media card.
As in figure 2 it is shown, the second embodiment that Fig. 2 is embedded multi-media card data migration method of the present invention
Flow chart.
Step S201, the system layer of embedded device is freed data blocks in judging embedded multi-media card
Remaining space summation less than or equal to preset remaining space threshold value time, inquire about built-in multimedia
In card, update times is less than or equal to the data block presetting update times threshold value.
Data, when storing data, are stored in freed data blocks by embedded multi-media card.The present embodiment with
Preset remaining space threshold ratio compared with freed data blocks, should be and remain the more sky of erasable number of times
Not busy data block.The freed data blocks that the system layer of embedded device is more to remaining erasable number of times
Remaining space add up, remaining space less than or equal to preset remaining space threshold value time,
The system layer of embedded device can determine that this embedded multi-media card meets and presets transition condition, and
The storage that the controller of notice embedded multi-media card discharges the more data block of erasable number of times is empty
Between.
Step S202, the system layer of embedded device sends and migrates control instruction to embedded multi-media card
Controller, control the controller backup updating number of times of embedded multi-media card less than or equal to pre-
If the data in the data block of update times threshold value, and discharge update times less than or equal to presetting
The memory space of the data block of update times threshold value, makes update times be less than or equal to preset renewal
The data block of frequency threshold value participates in writing equilibrium.
The present embodiment passes through the system layer of embedded multi-media card place embedded device by freed data blocks
Remaining space summation and default remaining space threshold ratio relatively, and as one of transition condition
.System layer at embedded device judges, when the remaining space of freed data blocks is inadequate, to use this
The data transference package of embodiment, the data block making the erasable number of times of residue more participates in be write all
Weighing apparatus, is effectively improved the whole service life of embedded multi-media card.Freed data blocks is remained
The embedded multi-media card that complementary space is more, still according to original mode, is set by embedded
Preparation controller realizes writing equilibrium, reduces Data Migration flow process, effectively saves the time, improve
Data storage efficiency.
As it is shown on figure 3, the 3rd embodiment that Fig. 3 is embedded multi-media card data migration method of the present invention
Flow chart.
Step S301, the system layer of embedded device is judging the embedded of embedded multi-media card place
The start number of times of equipment is more than or equal to when presetting start frequency threshold value, it is judged that built-in multimedia
In card, whether the remaining space summation of freed data blocks is less than or equal to presetting remaining space threshold value.
Embedded device can be television set or other be provided with embedded multi-media card based on embedded
System
The equipment of system.Embedded device after powering, can carry out reading and writing data.Embedded device is opened
Machine number of times is the fewest, in embedded multi-media card data block carry out erasable number of times may be the fewest;Embedding
Enter formula device power-up number of times the most, in embedded multi-media card data block carry out erasable number of times can
Can be the most.
Step S302, the system layer of embedded device is freed data blocks in judging embedded multi-media card
Remaining space summation less than or equal to preset remaining space threshold value time, inquire about built-in multimedia
In card, update times is less than or equal to the data block presetting update times threshold value.
Step S303, the system layer of embedded device sends and migrates control instruction to embedded multi-media card
Controller, control the controller backup updating number of times of embedded multi-media card less than or equal to pre-
If the data in the data block of update times threshold value, and discharge update times less than or equal to presetting
The memory space of the data block of update times threshold value, makes update times be less than or equal to preset renewal
The data block of frequency threshold value participates in writing equilibrium.
The present embodiment using the start number of times of embedded device as one of transition condition, for start number of times
Meet or exceed the embedded device presetting start frequency threshold value, freed data blocks residue can be carried out
Space judges;Otherwise, still according to original mode, realized by embedded device controller
Write equilibrium, reduce Data Migration flow process, effectively save the time, improve data storage efficiency
。
As shown in Figure 4, Fig. 4 is the 4th embodiment of embedded multi-media card data migration method of the present invention
Flow chart.
Step S401, the system layer statistics start number of times of embedded device of embedded device and embedded
The update times of each data block in multimedia card.
Owing to the controller of embedded multi-media card cannot judge the frequent degree that in data block, data update
, therefore, the work of the update times adding up each data block is completed by the system layer of embedded device
.Meanwhile, the system layer of embedded device also adds up the start number of times of embedded device self.System
Meter result is stored in the system layer of embedded device, for micro-place of the system layer of embedded device
Reason device MCU does follow-up judgement and processes.
Step S402, the system layer of embedded device is judging the embedded of embedded multi-media card place
The start number of times of equipment, more than or equal to when presetting start frequency threshold value, determines whether embedded
In multimedia card, whether the remaining space summation of freed data blocks is less than or equal to presetting remaining space
Threshold value.
Preset start frequency threshold value to be configured according to the specific performance parameter of embedded multi-media card,
Erasable number of times maximum referring for example to embedded multi-media card.The present embodiment is by default start
Frequency threshold value
It is set as 200 times.
Step S403, the system layer of embedded device is freed data blocks in judging embedded multi-media card
Remaining space summation less than or equal to preset remaining space threshold value time, inquire about built-in multimedia
In card, update times is less than or equal to the data block presetting update times threshold value.
Preset remaining space threshold value to be configured according to the specific performance parameter of embedded multi-media card,
Memory space maximum referring for example to embedded multi-media card.The present embodiment is by default residue sky
Between threshold value be set as 100M.
Step S404, the system layer of embedded device sends and migrates control instruction to embedded multi-media card
Controller, control the controller backup updating number of times of embedded multi-media card less than or equal to pre-
If the data in the data block of update times threshold value, and discharge update times less than or equal to presetting
The memory space of the data block of update times threshold value, makes update times be less than or equal to preset renewal
The data block of frequency threshold value participates in writing equilibrium.
Preset update times threshold value and predetermined limit update threshold value can concrete according to embedded multi-media card
Performance parameter is configured, referring for example to the erasable number of times maximum of embedded multi-media card.
Default update times threshold value is set as 30 times by the present embodiment.
The present embodiment sets by the system layer statistics of embedded multi-media card place embedded device is embedded
Standby start number of times and the remaining space summation of freed data blocks, and as transition condition it
One;When meeting transition condition, use the data transference package of the present embodiment, allow residue erasable
Write the more data block of number of times to participate in and write equilibrium, be effectively improved the entirety of embedded multi-media card
Service life;Otherwise, still according to original mode, realized by embedded device controller
Write equilibrium, reduce Data Migration flow process, effectively save the time, improve data storage efficiency
。
As it is shown in figure 5, the structural representation of the system layer first embodiment that Fig. 5 is embedded device of the present invention
Figure, the system layer 100 of the embedded device that this embodiment is mentioned includes:
Micro-processor MCV 110, for when judging that embedded multi-media card meets default transition condition
, in inquiry embedded multi-media card, update times is less than or equal to the number presetting update times threshold value
According to block;
Instruction sending module 120, migrates control instruction to the controller of embedded multi-media card for sending
, control the controller backup updating number of times of embedded multi-media card less than or equal to presetting renewal time
Data in the data block of number threshold value, and discharge update times less than or equal to presetting update times
The memory space of the data block of threshold value, makes update times be less than or equal to preset update times threshold value
Data block participate in write equilibrium.
In the present embodiment embedded multi-media card, a part of data block owing to repeatedly carrying out data renewal,
Its erasable number of times is close to ultimate value;The data update times of storage in another part data block
Less, its remaining erasable number of times is more.But due to embedded multi-media card controller not
In the case of data block storage has data, other data can be write to data block, control meanwhile
Device also cannot judge the frequent degree that in data block, data update, and the present embodiment utilizes embedded
The system layer 100 of equipment can solve the problem that this problem just.The present embodiment is when meeting transition condition
, by the Micro-processor MCV of the system layer 100 of the embedded device at embedded multi-media card place
110 search the data block that the erasable number of times of residue is more, instruction sending module 120 notify
The controller of embedded multi-media card discharges the memory space of this part data block, allows this part number
Participate according to block and write equilibrium, it is ensured that in embedded multi-media card, each data block is erasable secondary
Number is all fully used, and is effectively improved the whole service life of embedded multi-media card.
In the embodiment of the present invention, Micro-processor MCV 110 specifically for:
In judging embedded multi-media card, the remaining space summation of freed data blocks is less than or equal to presetting
During remaining space threshold value, in inquiry embedded multi-media card, update times is less than or equal to presetting more
The data block of new frequency threshold value.
Data, when storing data, are stored in freed data blocks by the present embodiment embedded multi-media card.This
Embodiment and default remaining space threshold ratio compared with freed data blocks, should be the erasable number of times of residue
More freed data blocks.The Micro-processor MCV 110 of the system layer 100 of embedded device is to surplus
The remaining space of the freed data blocks that remaining erasable number of times is more compares, little at remaining space
In or equal to preset remaining space threshold value time, Micro-processor MCV 110 can determine that these are embedded many
Media card meets presets transition condition, and is notified embedded multi-media card by instruction sending module 120
Controller discharge the memory space of the more data block of erasable number of times.The present embodiment is by micro-
Processor MCU 110 is by the remaining space summation of freed data blocks and default remaining space threshold ratio
Relatively, and as one of transition condition.Freed data blocks is judged at Micro-processor MCV 110
Remaining space inadequate time, use the data transference package of the present embodiment, make residue erasable time
The more data block of number participates in writes equilibrium, is effectively improved the overall use of embedded multi-media card
Life-span.For the embedded multi-media card that the remaining space of freed data blocks is more, still according to
Original mode, realizes writing equilibrium by embedded device controller, reduces Data Migration flow process
, effectively save the time, improve data storage efficiency.
In the embodiment of the present invention, Micro-processor MCV 110 is specifically additionally operable to:
Start number of times at the embedded device judging embedded multi-media card place is more than or equal to preset
During start frequency threshold value, it is judged that the remaining space summation of freed data blocks in embedded multi-media card
Whether less than or equal to presetting remaining space threshold value.
The present embodiment embedded device can be television set or other base of embedded multi-media card is installed
Equipment in embedded system.Embedded device after powering, can carry out reading and writing data.Embedding
Enter formula device power-up number of times the fewest, in embedded multi-media card data block carry out erasable number of times can
Can be the fewest;Embedded device start number of times is the most, and in embedded multi-media card, data block is wiped
The number of times write may be the most.The present embodiment using the start number of times of embedded device as transition condition
One of, start number of times is met or exceeded to the embedded device presetting start frequency threshold value, can
Carry out freed data blocks remaining space judgement;Otherwise, still according to original mode, by embedding
Enter formula device controller and realize writing equilibrium, reduce Data Migration flow process, effectively save the time,
Improve data storage efficiency.
As shown in Figure 6, Fig. 6 is the structural representation of system layer the second embodiment of embedded device of the present invention
Figure.The system layer 100 of embedded device also includes:
Statistical module 130, each in the start number of times adding up embedded device and embedded multi-media card
The update times of data block.
In the present embodiment, owing to the controller of embedded multi-media card cannot judge that in data block, data are more
New frequent degree, therefore, adds up the work of update times of each data block by embedded device
The statistical module 130 of system layer 100 complete.Meanwhile, statistical module 130 also adds up embedded setting
Start number of times for self.Statistical result is stored in statistical module 130, for embedded device
The Micro-processor MCV 110 of system layer 100 does follow-up judgement and processes.Additionally, preset start time
Number threshold value, default remaining space threshold value and default update times threshold value can be according to built-in multimedias
The specific performance parameter of card is configured, referring for example to the erasable number of times of embedded multi-media card
Maximum arranges and presets start frequency threshold value, presets update times threshold value and predetermined limit renewal threshold
Value, the memory space maximum with reference to embedded multi-media card arranges default remaining space threshold value.
Default start frequency threshold value is set as 200 times by the present embodiment, default remaining space threshold value is set
For 100M, default update times threshold value is set as 30 times.The present embodiment passes through embedded many matchmakers
The statistical module 130 of the system layer 100 of body card place embedded device adds up opening of embedded device
The remaining space of machine number of times and freed data blocks is total, and as one of transition condition;Micro-
When processor MCU 110 judges to meet transition condition, use the data transference package of the present embodiment
, allow
Remain the more data block of erasable number of times to participate in and write equilibrium, be effectively improved built-in multimedia
The whole service life of card;Otherwise, still according to original mode, by embedded device control
Device processed realizes writing equilibrium, reduces Data Migration flow process, effectively saves the time, improve data
Storage efficiency.
As it is shown in fig. 7, the structural representation that Fig. 7 is embedded device one embodiment of the present invention, this enforcement
The embedded device that example is mentioned, including system layer 100 and the embedded multi-media card of embedded device
200:
Embedded multi-media card 200 includes controller 210, controller 210 specifically for:
Receiving the migration control instruction that the system layer 100 of embedded device sends, backup updating number of times is less than
Or equal to preset update times threshold value data block in data, and discharge update times less than or
Equal to the memory space of the data block presetting update times threshold value, update times is made to be less than or equal to
The data block presetting update times threshold value participates in writing equilibrium;
The system layer 100 of embedded device includes:
Micro-processor MCV 110, for judging that embedded multi-media card 200 meets default transition condition
Time, in inquiry embedded multi-media card 200, update times is less than or equal to presetting update times threshold value
Data block;
Instruction sending module 120, migrates control instruction to the control of embedded multi-media card 200 for sending
Device 210 processed, control embedded multi-media card 200 controller 210 backup updating number of times less than or etc.
Data in the data block of default update times threshold value, and discharge update times and be less than or equal to
Preset the memory space of the data block of update times threshold value, make update times be less than or equal to preset
The data block of update times threshold value participates in writing equilibrium.
Embedded device of the present invention includes the system layer 100 of embedded device, the system of this embedded device
Layer 100 can include all technical schemes in earlier figures 5 and embodiment illustrated in fig. 6, and its detailed operation is former
Reason can refer to previous embodiment, and therefore not to repeat here.Due to use aforementioned embedded device it is
The scheme of system layer 100, for the most existing embedded device of embedded device of the present invention, has
Effect extends the service life of embedded multi-media card, promotes embedded device entirety service life,
Improve product quality, reduce after service cost.
The foregoing is only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention
, every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process conversion
, or directly or indirectly it is used in other relevant technical fields, the most in like manner it is included in the present invention's
In scope of patent protection.
Claims (7)
1. an embedded multi-media card data migration method, it is characterised in that include step:
The system layer of embedded device has the sky of residue update times in judging described embedded multi-media card
The remaining space summation of not busy data block, less than or equal to when presetting remaining space threshold value, is inquired about described embedded
In multimedia card, update times is less than or equal to the data block presetting update times threshold value;
The system layer of described embedded device sends the control migrating control instruction extremely described embedded multi-media card
Device processed, the controller controlling described embedded multi-media card backs up described update times less than or equal to presetting
Data in the data block of update times threshold value, and discharge described update times less than or equal to presetting renewal
The memory space of the data block of frequency threshold value, makes described update times less than or equal to presetting update times threshold
The data block of value participates in writing equilibrium.
Embedded multi-media card data migration method the most according to claim 1, it is characterised in that
The system layer of described embedded device has the sky of residue update times in judging described embedded multi-media card
The remaining space summation of not busy data block, less than or equal to when presetting remaining space threshold value, is inquired about described embedded
Multimedia card also wraps before the update times step less than or equal to the data block presetting update times threshold value
Include:
The system layer of described embedded device is judging the embedded device at described embedded multi-media card place
Start number of times more than or equal to preset start frequency threshold value time, it is judged that described embedded multi-media card hollow
Whether the remaining space summation of not busy data block is less than or equal to presetting remaining space threshold value.
Embedded multi-media card data migration method the most according to claim 2, it is characterised in that
Opening of the system layer of the described embedded device embedded device at the described embedded multi-media card place of judgement
Machine number of times is more than or equal to when presetting start frequency threshold value, it is judged that idle number in described embedded multi-media card
Also included whether be less than or equal to the step of default remaining space threshold value according to the remaining space summation of block before:
The system layer of described embedded device adds up the start number of times of described embedded device and described embedded
The update times of each data block in multimedia card.
4. the system layer of an embedded device, it is characterised in that including:
Micro-processor MCV, for there being the free time of residue update times in judging embedded multi-media card
The remaining space summation of data block, less than or equal to when presetting remaining space threshold value, is inquired about described embedded many
In media card, update times is less than or equal to the data block presetting update times threshold value;
Instruction sending module, for sending the controller migrating control instruction extremely described embedded multi-media card,
The controller controlling described embedded multi-media card backs up described update times less than or equal to presetting renewal time
Data in the data block of number threshold value, and discharge described update times less than or equal to presetting update times threshold
The memory space of the data block of value, makes described update times less than or equal to the number presetting update times threshold value
Participate in writing equilibrium according to block.
The system layer of embedded device the most according to claim 4, it is characterised in that described micro-place
Reason device MCU is specifically additionally operable to:
Start number of times at the embedded device judging described embedded multi-media card place is more than or equal to pre-
If during start frequency threshold value, it is judged that described embedded multi-media card has the idle data of residue update times
Whether the remaining space summation of block is less than or equal to presetting remaining space threshold value.
The system layer of embedded device the most according to claim 5, it is characterised in that also include:
Statistical module, for adding up the start number of times of described embedded device and described embedded multi-media card
In the update times of each data block.
7. an embedded device, it is characterised in that include embedded multi-media card and such as claim 4
To the system layer of the embedded device described in 6 any one, wherein, described embedded multi-media card includes control
Device processed, described controller specifically for:
Receive the migration control instruction that the system layer of described embedded device sends, back up described update times
Less than or equal to the data in the data block presetting update times threshold value, and discharge described update times and be less than
Or the memory space equal to the data block presetting update times threshold value, make described update times be less than or equal to
The data block presetting update times threshold value participates in writing equilibrium.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210302702.6A CN102866863B (en) | 2012-08-23 | 2012-08-23 | Embedded multi-media card data migration method, system layer and embedded device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210302702.6A CN102866863B (en) | 2012-08-23 | 2012-08-23 | Embedded multi-media card data migration method, system layer and embedded device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102866863A CN102866863A (en) | 2013-01-09 |
CN102866863B true CN102866863B (en) | 2016-09-21 |
Family
ID=47445750
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210302702.6A Expired - Fee Related CN102866863B (en) | 2012-08-23 | 2012-08-23 | Embedded multi-media card data migration method, system layer and embedded device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102866863B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108897492B (en) * | 2018-05-30 | 2021-06-29 | 新华三技术有限公司 | Data writing method and device |
CN111427511B (en) * | 2020-03-10 | 2023-10-27 | 青岛小鸟看看科技有限公司 | Data storage method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6230233B1 (en) * | 1991-09-13 | 2001-05-08 | Sandisk Corporation | Wear leveling techniques for flash EEPROM systems |
CN1701389A (en) * | 2002-10-28 | 2005-11-23 | 桑迪士克股份有限公司 | Maintaining an average erase count in a non-volatile storage system |
CN101477492A (en) * | 2009-01-21 | 2009-07-08 | 华中科技大学 | Circulating rewriting flash memory equalization method used for solid state disk |
CN101667160A (en) * | 2009-09-27 | 2010-03-10 | 浪潮电子信息产业股份有限公司 | Method for prolonging service life of Nand Flash chip |
CN102063941A (en) * | 2010-12-07 | 2011-05-18 | 中国电力科学研究院 | EEPROM (Electrically Erasable Programmable Read-Only Memory) loss balancing method for prolonging life of electric energy meter |
-
2012
- 2012-08-23 CN CN201210302702.6A patent/CN102866863B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6230233B1 (en) * | 1991-09-13 | 2001-05-08 | Sandisk Corporation | Wear leveling techniques for flash EEPROM systems |
CN1701389A (en) * | 2002-10-28 | 2005-11-23 | 桑迪士克股份有限公司 | Maintaining an average erase count in a non-volatile storage system |
CN101477492A (en) * | 2009-01-21 | 2009-07-08 | 华中科技大学 | Circulating rewriting flash memory equalization method used for solid state disk |
CN101667160A (en) * | 2009-09-27 | 2010-03-10 | 浪潮电子信息产业股份有限公司 | Method for prolonging service life of Nand Flash chip |
CN102063941A (en) * | 2010-12-07 | 2011-05-18 | 中国电力科学研究院 | EEPROM (Electrically Erasable Programmable Read-Only Memory) loss balancing method for prolonging life of electric energy meter |
Also Published As
Publication number | Publication date |
---|---|
CN102866863A (en) | 2013-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106484331B (en) | A kind of data processing method, device and flash memory device | |
CN102375788B (en) | Method and device for dynamic allocation of power budget for a system having non-volatile memory | |
US9405670B2 (en) | Wear leveling method and apparatus | |
CN103902333A (en) | Method for automatically unloading application of mobile terminal and mobile terminal | |
EP2921963B1 (en) | Memory recycling method and device | |
CN102347078B (en) | Methods and systems for dynamically controlling operations in a non-volatile memory | |
CN102044295B (en) | Nonvolatile memory system and in the method for during power interruption save data | |
US8051265B2 (en) | Apparatus for managing memory in real-time embedded system and method of allocating, deallocating and managing memory in real-time embedded system | |
US20170153848A1 (en) | Enhanced multi-stream operations | |
CN103645955A (en) | Running management method and device for application program | |
CN103678144A (en) | Data storage device and flash memory control method | |
CN100474271C (en) | Multi-level buffering type memory system and method therefor | |
CN102273281A (en) | A method, apparatus and computer program for conserving battery charge | |
WO2019076381A1 (en) | Terminal memory recycling processing method and device | |
CN103049287A (en) | Mobile terminal and method for installing application programs of mobile terminal | |
CN102866863B (en) | Embedded multi-media card data migration method, system layer and embedded device | |
CN103365392B (en) | Internal storage management system | |
CN104375944B (en) | A kind of date storage method and device | |
CN102609218A (en) | Method for implementing parallel-flash translation layer and parallel-flash translation layer system | |
CN109976898B (en) | SPI and Eeprom asynchronous communication method of hierarchical task system | |
CN106649654A (en) | Data updating method and device | |
CN102236530A (en) | System for realizing mobile phone buffer memory mechanism and method for loading mobile phone operation system | |
CN102204165A (en) | Method for controlling backup device, primary device and backup device | |
CN104750425A (en) | Storage system and control method for nonvolatile memory of storage system | |
JP4839749B2 (en) | Computer, portable terminal device, power control method, power control program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160921 |