CN102866863B - Embedded multimedia card data migration method, system layer and embedded devices - Google Patents

Embedded multimedia card data migration method, system layer and embedded devices Download PDF

Info

Publication number
CN102866863B
CN102866863B CN 201210302702 CN201210302702A CN102866863B CN 102866863 B CN102866863 B CN 102866863B CN 201210302702 CN201210302702 CN 201210302702 CN 201210302702 A CN201210302702 A CN 201210302702A CN 102866863 B CN102866863 B CN 102866863B
Authority
CN
Grant status
Grant
Patent type
Application number
CN 201210302702
Other languages
Chinese (zh)
Other versions
CN102866863A (en )
Inventor
朱海明
刘茂林
Original Assignee
深圳Tcl新技术有限公司
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
Grant date

Links

Abstract

本发明公开了一种嵌入式多媒体卡数据迁移方法、系统层和嵌入式设备,其方法包括:嵌入式设备的系统层在判定嵌入式多媒体卡满足预设迁移条件时,查询嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块;嵌入式设备的系统层发送迁移控制指令至嵌入式多媒体卡的控制器,控制嵌入式多媒体卡的控制器备份更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放更新次数小于或等于预设更新次数阈值的数据块的存储空间,使更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 The present invention discloses an embedded multimedia card data migration method, system layer and embedded devices, the method comprising: a system layer embedded device embedded multimedia card when it is determined the preset migration conditions are satisfied, the query embedded multimedia card less than or equal to a predetermined update times to update the data block number threshold; embedded system layer device transmits a control command to the controller to migrate embedded multimedia card, the controller controls the number of backup update embedded multimedia card is smaller than or equal Scheduled update a threshold number of data blocks in, and release times is less than or equal to a preset update update memory block the number of times the threshold value, the update number equal to or less than a preset threshold number of blocks of the update data involved in the write equalization. 本发明从嵌入式设备的系统层入手,有效延长嵌入式多媒体卡的使用寿命,提升嵌入式设备整体使用年限,提高产品质量,减少售后服务成本。 The present invention starts from a system layer embedded devices, effectively extending the life of an embedded multimedia card, embedded enhance overall equipment life, improve product quality, reduce service costs.

Description

嵌入式多媒体卡数据迁移方法、系统层和嵌入式设备 Embedded multimedia card data migration method, system layer and embedded devices

技术领域 FIELD

[0001]本发明涉及到嵌入式系统技术领域,特别涉及到嵌入式多媒体卡数据迀移方法、系统层和嵌入式设备。 [0001] The present invention relates to the technical field of embedded systems, and in particular to an embedded multimedia card data Gan shift method, system layer and embedded devices.

背景技术 Background technique

[0002] 随着fIash技术的更新,出现EMMC(Embedded MultiMedia Card,嵌入式多媒体卡)这种容量更大,价格更便宜的flash器件,在嵌入式系统中已开始大规模使用。 [0002] With the update fIash technology, there EMMC (Embedded MultiMedia Card, embedded multimedia card) this larger capacity, cheaper flash devices, has begun large-scale use in embedded systems. 但嵌入式多媒体卡的使用寿命比较低,可擦写次数理论上为3000次,远低于nand flash,需要靠提高总容量,以及采用嵌入式多媒体卡控制器根据一定算法来确保嵌入式多媒体卡内容的写均衡。 But the life of an embedded multimedia card is relatively low, Endurance theoretically 3000, well below the nand flash, need to rely on to increase the total capacity, as well as embedded multimedia card controller according to certain algorithms to ensure an embedded multimedia card write leveling content. 但在嵌入式系统中,由于成本的限制,不能使用大容量的嵌入式多媒体卡,而仅采用嵌入式多媒体卡控制器的写均衡算法,并不能使嵌入式多媒体卡的使用寿命得到较大提高。 However, in embedded systems, due to cost constraints, can not use high-capacity embedded multimedia card, but only write-balancing algorithm embedded multimedia card controller, does not make the life of an embedded multimedia card has been improved greatly .

发明内容 SUMMARY

[0003]本发明的主要目的为提供一种有效提高嵌入式多媒体卡使用寿命的嵌入式多媒体卡数据迀移方法、系统层和嵌入式设备。 [0003] The main object of the present invention to provide an effective increase embedded multimedia card data embedded multimedia card lifetime Gan shift method, system layer and embedded devices.

[0004]本发明提出一种嵌入式设备的系统层的嵌入式多媒体卡数据迀移方法,包括步骤: [0004] The present invention proposes a device embedded layer embedded multimedia card system Gan data shift method, comprising the steps of:

[0005]嵌入式设备的系统层在判定嵌入式多媒体卡满足预设迀移条件时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块; System [0005] The device layers embedded in an embedded multimedia card is determined to satisfy a preset condition shift Gan, querying the update frequency is less than or equal to a preset threshold number of update blocks embedded multimedia card;

[0006]所述嵌入式设备的系统层发送迀移控制指令至所述嵌入式多媒体卡的控制器,控制所述嵌入式多媒体卡的控制器备份所述更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放所述更新次数小于或等于预设更新次数阈值的数据块的存储空间,使所述更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 [0006] The embedded device transmitting system layer Gan shift control command to the embedded multimedia card controller, the controller controlling the backup of the embedded multimedia card updates the number of updates threshold value or equal to a preset number is less than data in the data block, and releasing the update frequency and scheduled update is less than or equal to the number of blocks of data storage space threshold, the update number equal to or less than a predetermined threshold number of blocks of the update data involved in the write equalization.

[0007]优选地,所述嵌入式设备的系统层在判定所述嵌入式多媒体卡满足预设迀移条件时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块的步骤具体包括: [0007] Preferably, the embedded device upon determining that the layer system embedded multimedia card satisfies a preset condition shift Gan, querying the embedded multimedia card data update frequency is less than or equal to a preset threshold value update times step blocks comprises:

[0008]所述嵌入式设备的系统层在判定所述嵌入式多媒体卡中空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块。 [0008] The embedded device system layer when determining the embedded multimedia card space left free data blocks is less than or equal to the sum of a preset threshold value the remaining space, the number of queries to update the embedded multimedia card less than or equal Scheduled update data block number threshold value.

[0009]优选地,所述嵌入式设备的系统层在判定所述嵌入式多媒体卡中空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块的步骤之前还包括: [0009] Preferably, the embedded device is determined when the system layer embedded multimedia card space left free data blocks is less than or equal to the sum of the remaining space preset threshold, the query to update the embedded multimedia card number or less than before the step of updating the number of data blocks equal to a preset threshold value further comprises:

[0010]所述嵌入式设备的系统层在判定所述嵌入式多媒体卡所在的嵌入式设备的开机次数大于或等于预设开机次数阈值时,判断所述嵌入式多媒体卡中空闲数据块的剩余空间总和是否小于或等于预设剩余空间阈值。 [0010] The layer system embedded in the boot device embedded device determines the number of times an embedded multimedia card is located is greater than or equal to a preset number of power threshold values, determining the embedded multimedia card remaining free data blocks spatial sum is less than or equal to a preset threshold remaining space.

[0011]优选地,所述嵌入式设备的系统层在判定所述嵌入式多媒体卡满足预设迀移条件时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块的步骤之前还包括: [0011] Preferably, the embedded device upon determining that the layer system embedded multimedia card satisfies a preset condition shift Gan, querying the embedded multimedia card data update frequency is less than or equal to a preset threshold value update times further comprising before the step of block:

[0012]所述嵌入式设备的系统层统计所述嵌入式设备的开机次数和所述嵌入式多媒体卡中各数据块的更新次数。 The number of updates [0012] Statistics of the number of power devices embedded devices embedded system layer and the embedded multimedia card of each data block.

[0013]本发明还提出一种嵌入式设备的系统层,包括: [0013] The present invention further provides a system layer of an embedded device, comprising:

[0014]微处理器M⑶,用于在判定嵌入式多媒体卡满足预设迀移条件时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块; [0014] microprocessor M⑶, less than or equal to the number of updates for updating the preset threshold number of data blocks is determined in an embedded multimedia card satisfies a predetermined shift condition Gan, querying the embedded multimedia card;

[0015]指令发送模块,用于发送迀移控制指令至所述嵌入式多媒体卡的控制器,控制所述嵌入式多媒体卡的控制器备份所述更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放所述更新次数小于或等于预设更新次数阈值的数据块的存储空间,使所述更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 [0015] The instruction sending module, configured to send a control instruction to the shift controller Gan the embedded multimedia card, multimedia card controlling the embedded controller of the backup update times less than or equal to a preset threshold number of updated data data block, and releasing the update frequency and scheduled update is less than or equal to the number of blocks of data storage space threshold, the update frequency is less than or equal to a preset threshold number of blocks of the update data involved in the write equalization.

[0016] 优选地,所述微处理器M⑶具体用于: [0016] Preferably, the microprocessor M⑶ specifically configured to:

[0017]在判定所述嵌入式多媒体卡中空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块。 When [0017] the remaining space is the sum of free data blocks is less than or equal to a preset threshold value in the remaining space is determined that the embedded multimedia card, an embedded multimedia card querying the update frequency and the data block is less than or equal to a preset threshold value update times .

[0018] 优选地,所述微处理器M⑶具体还用于: [0018] Preferably, the microprocessor further configured M⑶ specifically:

[0019]在判定所述嵌入式多媒体卡所在的嵌入式设备的开机次数大于或等于预设开机次数阈值时,判断所述嵌入式多媒体卡中空闲数据块的剩余空间总和是否小于或等于预设剩余空间阈值。 [0019] When the number of power embedded device determines the embedded multimedia card is located is greater than or equal to a preset number of power threshold values, determines the sum of the remaining space of the embedded multimedia card free data blocks is less than or equal to a preset The remaining space thresholds.

[0020]优选地,所述嵌入式设备的系统层还包括: System layer [0020] Preferably, the embedded device further comprises:

[0021 ]统计模块,用于统计所述嵌入式设备的开机次数和所述嵌入式多媒体卡中各数据块的更新次数。 [0021] Statistics module, for updating the number of times the statistical power of the embedded device and the embedded multimedia card of each data block.

[0022]本发明还提出一种嵌入式设备,包括嵌入式设备的系统层和嵌入式多媒体卡,所述嵌入式多媒体卡包括控制器,所述控制器具体用于: [0022] The present invention also provides an embedded device, comprising a system layer and an embedded multimedia card embedded device, the embedded multimedia card comprises a controller configured to:

[0023]接收所述嵌入式设备的系统层发送的迀移控制指令,备份所述更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放所述更新次数小于或等于预设更新次数阈值的数据块的存储空间,使所述更新次数小于或等于预设更新次数阈值的数据块参与写均衡; [0023] The embedded device receiving the transmitted system layer Gan shift control command, the backup update times less than or equal to a predetermined number of block data updating threshold value, and the release of the update frequency is less than or equal to a preset update threshold number of storage data blocks, updating the number of times equal to or less than a preset threshold number of blocks of the update data involved in the write equalization;

[0024]所述嵌入式设备的系统层包括: [0024] The embedded device layer system comprising:

[0025]微处理器M⑶,用于在判定所述嵌入式多媒体卡满足预设迀移条件时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块; [0025] microprocessor M⑶, for determining the embedded multimedia card satisfies a predetermined shift condition Gan, querying the update frequency is less than or equal to a preset threshold number of update blocks embedded multimedia card;

[0026]指令发送模块,用于发送迀移控制指令至所述嵌入式多媒体卡的控制器,控制所述嵌入式多媒体卡的控制器备份所述更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放所述更新次数小于或等于预设更新次数阈值的数据块的存储空间,使所述更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 [0026] The instruction sending module, configured to send a control instruction to the shift controller Gan the embedded multimedia card, multimedia card controlling the embedded controller of the backup update times less than or equal to a preset threshold number of updated data data block, and releasing the update frequency and scheduled update is less than or equal to the number of blocks of data storage space threshold, the update frequency is less than or equal to a preset threshold number of blocks of the update data involved in the write equalization.

[0027]本发明从嵌入式设备的系统层入手,有效延长嵌入式多媒体卡的使用寿命,提升嵌入式设备整体使用年限,提高产品质量,减少售后服务成本。 [0027] The present invention starts from a system layer embedded devices, effectively extending the life of an embedded multimedia card, embedded enhance overall equipment life, improve product quality, reduce service costs.

附图说明 BRIEF DESCRIPTION

[0028]图1为本发明嵌入式多媒体卡数据迀移方法的第一实施例的流程图; [0028] FIG. 1 of the present invention, an embedded multimedia card data shift Gan flowchart of a method of the first embodiment;

[0029]图2为本发明嵌入式多媒体卡数据迀移方法的第二实施例的流程图; [0029] FIG. 2 of the present invention, an embedded multimedia card data shift Gan flowchart of a method of the second embodiment;

[0030]图3为本发明嵌入式多媒体卡数据迀移方法的第三实施例的流程图; [0030] FIG. 3 embedded multimedia card data shift method of the present invention Gan flowchart of a third embodiment;

[0031 ]图4为本发明嵌入式多媒体卡数据迀移方法的第四实施例的流程图; A flowchart of a fourth embodiment [0031] FIG. 4 an embedded multimedia card data shift method of the present invention Gan;

[0032]图5为本发明嵌入式设备的系统层第一实施例的结构示意图; [0032] FIG. 5 is a schematic system configuration example of a first embodiment of an embedded device layer of the present invention;

[0033]图6为本发明嵌入式设备的系统层第二实施例的结构示意图; [0033] FIG. 6 illustrates an embodiment of the system configuration of the embedded device a second layer of the present invention;

[0034]图7为本发明嵌入式设备一实施例的结构示意图。 [0034] Figure 7 is a schematic structural diagram of the embodiment of the invention embedded device.

[0035]本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。 The object of the invention is achieved [0035] present, features and advantages of the embodiments in conjunction with embodiments, with reference to the drawings further described.

具体实施方式 detailed description

[0036]应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 [0036] It should be understood that the specific embodiments described herein are only intended to illustrate the present invention and are not intended to limit the present invention.

[0037]如图1所示,图1为本发明嵌入式多媒体卡数据迀移方法的第一实施例的流程图,该实施例提到的嵌入式多媒体卡数据迀移方法,包括: [0037] As shown in FIG. 1, FIG. 1 is a flowchart of an embedded multimedia card Gan data shift method of the first embodiment of the invention, an embedded multimedia card data of the embodiment mentioned embodiment Gan shift method, comprising:

[0038]步骤SlOl,嵌入式设备的系统层在判定嵌入式多媒体卡满足预设迀移条件时,查询嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块; [0038] the SLOL step, the system determines the embedded device layers embedded multimedia card satisfies a predetermined condition Gan shift, update query or equal to a preset number of times is less than a threshold number of update blocks embedded multimedia card;

[0039]在嵌入式多媒体卡中,一部分数据块由于多次进行数据更新,其可擦写次数已接近极限值;另一部分数据块中存储的数据更新次数较少,其剩余的可擦写次数较多。 [0039] In an embedded multimedia card, a portion of the data due to multiple blocks of data update, which is close to the limit Endurance; less frequently updated data stored in another portion of the data block, its remaining rewritable times more. 但由于嵌入式多媒体卡的控制器不能在数据块存储有数据的情况下向数据块写入其他数据,同时,控制器也无法判断数据块中数据更新的频繁程度,而本实施例利用嵌入式设备的系统层恰好能够解决这一问题。 However, due to the embedded multimedia card controller block of data can not be written in the case where data is stored to the other data blocks, at the same time, the controller can not determine how often to update the data in the data block, while the present embodiment utilizes an embedded system layer devices just to solve this problem.

[0040]步骤S102,嵌入式设备的系统层发送迀移控制指令至嵌入式多媒体卡的控制器,控制嵌入式多媒体卡的控制器备份更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放更新次数小于或等于预设更新次数阈值的数据块的存储空间,使更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 [0040] The layer system step S102, the embedded device transmits a control command to the controller Gan shift embedded multimedia card, an embedded multimedia card controller controls updating backup data block number is less than or equal to a preset threshold value update times in data, update and release times is less than or equal to a preset update data storage block number threshold value, the update number equal to or less than a preset threshold number of blocks of the update data involved in the write equalization.

[0041]本实施例在满足迀移条件时,通过嵌入式多媒体卡所在的嵌入式设备的系统层来查找剩余可擦写次数较多的数据块,通知嵌入式多媒体卡的控制器释放该部分数据块的存储空间,让该部分数据块参与到写均衡,确保嵌入式多媒体卡中每一个数据块的可擦写次数都得到充分利用,有效提高嵌入式多媒体卡的整体使用寿命。 Controller [0041] In the present embodiment, when the shift condition, the system Gan layer satisfies the embedded device via the embedded multimedia card where to find the remaining rewritable times more data blocks, embedded multimedia card notifies the release of the portion storage of data blocks, so that part of the data block to participate in the write leveling to ensure an embedded multimedia card endurance each data block are fully utilized, effectively improve the overall service life of embedded multimedia card.

[0042]如图2所示,图2为本发明嵌入式多媒体卡数据迀移方法的第二实施例的流程图。 Flowchart of a second embodiment [0042] As shown, FIG. 22 embedded multimedia card data shift method of the present invention Gan.

[0043]步骤S201,嵌入式设备的系统层在判定嵌入式多媒体卡中空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块。 When the [0043] step S201, the system layer of the sum of the embedded device space left free data blocks is less than or equal to a preset threshold value in the remaining space is determined in an embedded multimedia card, an embedded multimedia card queries the update frequency and scheduled update or less data block number threshold.

[0044]嵌入式多媒体卡在存储数据时,将数据存入空闲数据块。 [0044] When an embedded multimedia card for storing data, stores the data in the free data block. 本实施例与预设剩余空间阈值比较的空闲数据块,应为剩余可擦写次数较多的空闲数据块。 Free data blocks according to the present embodiment, the remaining space with a preset threshold value, should the number of remaining rewritable more free data blocks. 嵌入式设备的系统层对剩余可擦写次数较多的空闲数据块的剩余空间进行统计,在剩余空间小于或等于预设剩余空间阈值时,嵌入式设备的系统层可判定该嵌入式多媒体卡满足预设迀移条件,并通知嵌入式多媒体卡的控制器释放可擦写次数较多的数据块的存储空间。 System layer embedded device remaining rewritable times more free block count of the remaining space, when the remaining space is less than or equal to a preset threshold value the remaining space, the system may determine the level of the embedded device embedded MultiMediaCard Gan shift satisfies a preset condition, and notifies the controller of the release of the embedded multimedia card rewritable times more storage space block.

[0045]步骤S202,嵌入式设备的系统层发送迀移控制指令至嵌入式多媒体卡的控制器,控制嵌入式多媒体卡的控制器备份更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放更新次数小于或等于预设更新次数阈值的数据块的存储空间,使更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 [0045] The layer system step S202, the embedded device transmits a control command to the controller Gan shift embedded multimedia card, an embedded multimedia card controller controls updating backup data block number is less than or equal to a preset threshold value update times in data, update and release times is less than or equal to a preset update data storage block number threshold value, the update number equal to or less than a preset threshold number of blocks of the update data involved in the write equalization.

[0046]本实施例通过嵌入式多媒体卡所在嵌入式设备的系统层将空闲数据块的剩余空间总和与预设剩余空间阈值比较,并将其作为迀移条件之一。 One embodiment of the sum of the conditions of free data blocks remaining space with the remaining space comparing a preset threshold value by an embedded layer embedded multimedia card system where the device, and move it as Gan [0046] present. 在嵌入式设备的系统层判定空闲数据块的剩余空间不够时,采用本实施例的数据迀移方案,让剩余可擦写次数较多的数据块参与到写均衡,有效提高嵌入式多媒体卡的整体使用寿命。 When the system layer embedded device determines the remaining space is insufficient free data blocks, using the data of the present embodiment Gan shift program, so that the number of remaining rewritable more involved in the write data block equalization, to effectively improve the embedded multimedia card whole life. 对于空闲数据块的剩余空间较多的嵌入式多媒体卡,仍然按照原有的方式,通过嵌入式设备控制器实现写均衡,减少数据迀移流程,有效节省了时间,提高了数据存储效率。 For more space left free data blocks embedded multimedia card, still under the original way, implemented by the embedded device controller write a balanced, reducing data Gan shift process, saving time and increasing the efficiency of data storage.

[0047]如图3所示,图3为本发明嵌入式多媒体卡数据迀移方法的第三实施例的流程图。 [0047] As shown in FIG. 3, FIG. 3 is a flowchart of an embedded multimedia card Gan data shift method of the third embodiment of the present invention.

[0048]步骤S301,嵌入式设备的系统层在判定嵌入式多媒体卡所在的嵌入式设备的开机次数大于或等于预设开机次数阈值时,判断嵌入式多媒体卡中空闲数据块的剩余空间总和是否小于或等于预设剩余空间阈值。 The sum of the remaining space [0048] step S301, the system layer embedded device determines the number of times the boot embedded devices embedded multimedia card where power is greater than or equal to a preset threshold number, determines an embedded multimedia card free data blocks is less than or equal to a preset threshold remaining space.

[0049]嵌入式设备可以为电视机或其他安装有嵌入式多媒体卡的基于嵌入式系统的设备。 [0049] embedded devices can be fitted with a television or other device embedded multimedia cards based on embedded system. 嵌入式设备在开机后,即可进行数据读写。 Embedded in the boot device, you can read and write data. 嵌入式设备开机次数越少,嵌入式多媒体卡中数据块进行擦写的次数可能越少;嵌入式设备开机次数越多,嵌入式多媒体卡中数据块进行擦写的次数可能越多。 The fewer number of power embedded device, an embedded multimedia card number of data blocks may be erasure fewer; embedded device is turned more times, the number of embedded multimedia card data blocks may be erasure more.

[0050]步骤S302,嵌入式设备的系统层在判定嵌入式多媒体卡中空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块。 When the [0050] step S302, the system layer of the sum of the embedded device space left free data blocks is less than or equal to a preset threshold value in the remaining space is determined in an embedded multimedia card, an embedded multimedia card queries the update frequency and scheduled update or less data block number threshold.

[0051]步骤S303,嵌入式设备的系统层发送迀移控制指令至嵌入式多媒体卡的控制器,控制嵌入式多媒体卡的控制器备份更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放更新次数小于或等于预设更新次数阈值的数据块的存储空间,使更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 [0051] The layer system step S303, the embedded device transmits a control command to the controller Gan shift embedded multimedia card, an embedded multimedia card controller controls updating backup data block number is less than or equal to a preset threshold value update times in data, update and release times is less than or equal to a preset update data storage block number threshold value, the update number equal to or less than a preset threshold number of blocks of the update data involved in the write equalization.

[0052]本实施例将嵌入式设备的开机次数作为迀移条件之一,对于开机次数达到或超过预设开机次数阈值的嵌入式设备,可进行空闲数据块剩余空间判断;否则,仍然按照原有的方式,通过嵌入式设备控制器实现写均衡,减少数据迀移流程,有效节省了时间,提高了数据存储效率。 [0052] The present embodiment as the number of power devices embedded Gan shift one of the conditions for the number of power reaches or exceeds a preset number of power threshold of the embedded device, can be determined space left free data blocks; otherwise, still according to the original some way, through the embedded device controllers write leveling, reduce data Gan shift process, saving time and increasing the efficiency of data storage.

[0053]如图4所示,图4为本发明嵌入式多媒体卡数据迀移方法的第四实施例的流程图。 A flowchart of a fourth embodiment [0053] As shown, FIG. 44 Gan embedded multimedia card data shift method of the present invention.

[0054]步骤S401,嵌入式设备的系统层统计嵌入式设备的开机次数和嵌入式多媒体卡中各数据块的更新次数。 [0054] step S401, the system updates the number of times power level statistics embedded device embedded devices and embedded multimedia card of each data block.

[0055]由于嵌入式多媒体卡的控制器无法判断数据块中数据更新的频繁程度,因此,统计各数据块的更新次数的工作由嵌入式设备的系统层完成。 [0055] Because an embedded multimedia card controller can not determine how often to update the data in the data block, and therefore, the number of updates statistics data blocks is done by the system layer embedded devices. 同时,嵌入式设备的系统层还统计嵌入式设备自身的开机次数。 At the same time, system-level embedded devices embedded devices also count the number of times the boot itself. 统计结果被存储在嵌入式设备的系统层,供嵌入式设备的系统层的微处理器MCU做后续的判断处理。 At the system level statistics are embedded devices, microprocessor MCU system layers for embedded devices do subsequent storage determination processing.

[0056]步骤S402,嵌入式设备的系统层在判定嵌入式多媒体卡所在的嵌入式设备的开机次数大于或等于预设开机次数阈值时,进一步判断嵌入式多媒体卡中空闲数据块的剩余空间总和是否小于或等于预设剩余空间阈值。 When the sum of the remaining space [0056] step S402, the system layer embedded device determines the number of times the boot embedded devices embedded multimedia card is located is greater than or equal to a preset number of power threshold, further determines whether the embedded multimedia card free data blocks is less than or equal to a preset threshold remaining space.

[0057]预设开机次数阈值可根据嵌入式多媒体卡的具体性能参数进行设置,例如参照嵌入式多媒体卡的可擦写次数最大值。 [0057] predetermined number of power threshold may be set according to the specific performance parameters of an embedded multimedia card, for example, reference to an embedded multimedia card maximum number of erasable. 本实施例将预设开机次数阈值设定为200次。 This embodiment will preset number of power threshold is set to 200 times.

[0058]步骤S403,嵌入式设备的系统层在判定嵌入式多媒体卡中空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块。 When the [0058] step S403, the system layer of the sum of the embedded device space left free data blocks is less than or equal to a preset threshold value in the remaining space is determined in an embedded multimedia card, an embedded multimedia card queries the update frequency and scheduled update or less data block number threshold.

[0059]预设剩余空间阈值可根据嵌入式多媒体卡的具体性能参数进行设置,例如参照嵌入式多媒体卡的存储空间最大值。 [0059] The remaining space preset threshold may be set according to the specific performance parameters of an embedded multimedia card, for example, reference to an embedded multimedia card storage space maximum. 本实施例将预设剩余空间阈值设定为100M。 This embodiment will preset threshold value is set to the remaining space 100M.

[0060]步骤S404,嵌入式设备的系统层发送迀移控制指令至嵌入式多媒体卡的控制器,控制嵌入式多媒体卡的控制器备份更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放更新次数小于或等于预设更新次数阈值的数据块的存储空间,使更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 [0060] step S404, the embedded device transmitting system layer Gan shift control command to the controller embedded multimedia card, an embedded multimedia card controller controls updating backup data block number is less than or equal to a preset threshold value update times in data, update and release times is less than or equal to a preset update data storage block number threshold value, the update number equal to or less than a preset threshold number of blocks of the update data involved in the write equalization.

[0061]预设更新次数阈值和预设极限更新阈值可根据嵌入式多媒体卡的具体性能参数进行设置,例如参照嵌入式多媒体卡的可擦写次数最大值。 [0061] The predetermined threshold value and update times to update a preset limit threshold can be set according to the specific performance parameters of an embedded multimedia card, for example, reference to an embedded multimedia card maximum number of erasable. 本实施例将预设更新次数阈值设定为30次。 The present embodiment updates the preset threshold number is set to 30 times.

[0062]本实施例通过嵌入式多媒体卡所在嵌入式设备的系统层统计嵌入式设备的开机次数和空闲数据块的剩余空间总和,并将其作为迀移条件之一;在满足迀移条件时,采用本实施例的数据迀移方案,让剩余可擦写次数较多的数据块参与到写均衡,有效提高嵌入式多媒体卡的整体使用寿命;否则,仍然按照原有的方式,通过嵌入式设备控制器实现写均衡,减少数据迀移流程,有效节省了时间,提高了数据存储效率。 [0062] In this embodiment, the total remaining free space and number of power system data blocks statistical embedded layer embedded multimedia card device where embedded device, and as a condition for shifting Gan; time-shifting condition is satisfied Gan , according to this embodiment of a data Gan shift program, so that the remaining rewritable times more data blocks involved in the write leveling, effectively improve the overall service life of embedded multimedia card; otherwise, still under the original way, through the embedded write device controller to achieve balance, reduce data Gan shift process, saving time and increasing the efficiency of data storage.

[0063]如图5所示,图5为本发明嵌入式设备的系统层第一实施例的结构示意图,该实施例提到的嵌入式设备的系统层100包括: The system layer structure schematic view [0063] FIG. 5, FIG. 5 embedded system layer device of the first embodiment of the invention, the embedded device mentioned embodiment 100 of the embodiment comprises:

[0064]微处理器M⑶110,用于在判定嵌入式多媒体卡满足预设迀移条件时,查询嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块; [0064] microprocessor M⑶110, for determining an embedded multimedia card satisfies a predetermined condition Gan shift, update query or equal to a preset number of times is less than a threshold number of update blocks embedded multimedia card;

[0065]指令发送模块120,用于发送迀移控制指令至嵌入式多媒体卡的控制器,控制嵌入式多媒体卡的控制器备份更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放更新次数小于或等于预设更新次数阈值的数据块的存储空间,使更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 [0065] The instruction sending module 120, configured to send a control instruction to the shift controller Gan embedded multimedia card, an embedded multimedia card controller controls backup update times less than or equal to a preset data block update data in the threshold number, and releases less than or equal to the predetermined update times to update the data storage block number threshold value, the update number equal to or less than a preset threshold number of blocks of the update data involved in the write equalization.

[0066]本实施例嵌入式多媒体卡中,一部分数据块由于多次进行数据更新,其可擦写次数已接近极限值;另一部分数据块中存储的数据更新次数较少,其剩余的可擦写次数较多。 [0066] Example embedded multimedia card according to the present embodiment, a portion of the data due to multiple blocks of data update, which is close to the limit Endurance; less frequently updated data stored in another portion of the data block, the remaining erasable more write cycles. 但由于嵌入式多媒体卡的控制器不能在数据块存储有数据的情况下向数据块写入其他数据,同时,控制器也无法判断数据块中数据更新的频繁程度,而本实施例利用嵌入式设备的系统层100恰好能够解决这一问题。 However, due to the embedded multimedia card controller block of data can not be written in the case where data is stored to the other data blocks, at the same time, the controller can not determine how often to update the data in the data block, while the present embodiment utilizes an embedded equipment system layer 100 just to solve this problem. 本实施例在满足迀移条件时,通过嵌入式多媒体卡所在的嵌入式设备的系统层100的微处理器MCU 110来查找剩余可擦写次数较多的数据块,由指令发送模块120通知嵌入式多媒体卡的控制器释放该部分数据块的存储空间,让该部分数据块参与到写均衡,确保嵌入式多媒体卡中每一个数据块的可擦写次数都得到充分利用,有效提高嵌入式多媒体卡的整体使用寿命。 In this embodiment, when the shift conditions are satisfied Gan, microprocessor MCU embedded device via the embedded multimedia card system layer 100 where to find the 110 remaining rewritable times more data blocks, an instruction sending module 120 notifies the embedded multimedia card controller releases the storage space of the portion of the data block, so that part of the data block to participate in the write leveling, to ensure that each block of data can be embedded multimedia card number of erasure are fully utilized, effectively improve the embedded multimedia overall service life of the card.

[0067]本发明实施例中,微处理器M⑶110具体用于: [0067] Example embodiments of the present invention, particularly for a microprocessor M⑶110:

[0068]在判定嵌入式多媒体卡中空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块。 When [0068] the sum of the space left free data blocks is less than or equal to a preset threshold value in the remaining space is determined in an embedded multimedia card, or less than the number of queries to update the update data blocks equal to a preset threshold number of embedded multimedia card.

[0069]本实施例嵌入式多媒体卡在存储数据时,将数据存入空闲数据块。 [0069] When the present embodiment, an embedded multimedia card for storing data, stores the data in the free data block. 本实施例与预设剩余空间阈值比较的空闲数据块,应为剩余可擦写次数较多的空闲数据块。 Free data blocks according to the present embodiment, the remaining space with a preset threshold value, should the number of remaining rewritable more free data blocks. 嵌入式设备的系统层100的微处理器M⑶110对剩余可擦写次数较多的空闲数据块的剩余空间进行比较,在剩余空间小于或等于预设剩余空间阈值时,微处理器MCU 110可判定该嵌入式多媒体卡满足预设迀移条件,并由指令发送模块120通知嵌入式多媒体卡的控制器释放可擦写次数较多的数据块的存储空间。 M⑶110 embedded system microprocessor device layer 100 remaining rewritable times more space left free data blocks are compared, when the remaining space is less than or equal to a preset threshold value the remaining space, the microprocessor MCU 110 may determine the embedded multimedia card satisfies a preset condition Gan shift by transmitting release instruction from the controller module 120 notifies an embedded multimedia card rewritable times more storage space block. 本实施例通过微处理器MCU 110将空闲数据块的剩余空间总和与预设剩余空间阈值比较,并将其作为迀移条件之一。 In this embodiment, the microprocessor MCU 110 to the sum of free data blocks remaining space remaining space with a preset threshold value, and as a condition Gan shift. 在微处理器M⑶110判定空闲数据块的剩余空间不够时,采用本实施例的数据迀移方案,让剩余可擦写次数较多的数据块参与到写均衡,有效提高嵌入式多媒体卡的整体使用寿命。 When the microprocessor determines M⑶110 free data blocks is not enough free space, using the data of the present embodiment shifts embodiment Gan embodiment, so that the number of remaining rewritable more data blocks to the write equalization participate effectively improve the overall use of the embedded multimedia card life. 对于空闲数据块的剩余空间较多的嵌入式多媒体卡,仍然按照原有的方式,通过嵌入式设备控制器实现写均衡,减少数据迀移流程,有效节省了时间,提高了数据存储效率。 For more space left free data blocks embedded multimedia card, still under the original way, implemented by the embedded device controller write a balanced, reducing data Gan shift process, saving time and increasing the efficiency of data storage.

[0070]本发明实施例中,微处理器M⑶110具体还用于: [0070] Example embodiments of the present invention, specifically a microprocessor M⑶110 further configured to:

[0071]在判定嵌入式多媒体卡所在的嵌入式设备的开机次数大于或等于预设开机次数阈值时,判断嵌入式多媒体卡中空闲数据块的剩余空间总和是否小于或等于预设剩余空间阈值。 The sum of the remaining space [0071] In determining the number of power-embedded devices embedded multimedia card where power is greater than or equal to a preset threshold number, determines an embedded multimedia card free data blocks is less than or equal to a preset threshold remaining space.

[0072]本实施例嵌入式设备可以为电视机或其他安装有嵌入式多媒体卡的基于嵌入式系统的设备。 [0072] Example of the present embodiment may be an embedded device-based embedded system mounted television or other device embedded multimedia card. 嵌入式设备在开机后,即可进行数据读写。 Embedded in the boot device, you can read and write data. 嵌入式设备开机次数越少,嵌入式多媒体卡中数据块进行擦写的次数可能越少;嵌入式设备开机次数越多,嵌入式多媒体卡中数据块进行擦写的次数可能越多。 The fewer number of power embedded device, an embedded multimedia card number of data blocks may be erasure fewer; embedded device is turned more times, the number of embedded multimedia card data blocks may be erasure more. 本实施例将嵌入式设备的开机次数作为迀移条件之一,对于开机次数达到或超过预设开机次数阈值的嵌入式设备,可进行空闲数据块剩余空间判断;否则,仍然按照原有的方式,通过嵌入式设备控制器实现写均衡,减少数据迀移流程,有效节省了时间,提高了数据存储效率。 The number of power according to the present embodiment, the embedded device as one of the conditions Gan shifted for a predetermined number of power reaches or exceeds a threshold number of power embedded devices, may be determined space left free data blocks; otherwise, still under the original manner , written by the embedded device controller to achieve balance, reduce data Gan shift process, saving time and increasing the efficiency of data storage.

[0073]如图6所示,图6为本发明嵌入式设备的系统层第二实施例的结构示意图。 As shown in [0073] FIG. 6, FIG. 6 is a schematic structure of a second embodiment of the system layer of the present invention is an embedded device. 嵌入式设备的系统层100还包括: The system layer 100 embedded device further comprises:

[0074]统计模块130,用于统计嵌入式设备的开机次数和嵌入式多媒体卡中各数据块的更新次数。 [0074] The statistics module 130 for updating the number of times the statistical power of the embedded device and an embedded multimedia card of each data block.

[0075]本实施例中,由于嵌入式多媒体卡的控制器无法判断数据块中数据更新的频繁程度,因此,统计各数据块的更新次数的工作由嵌入式设备的系统层100的统计模块130完成。 [0075] In this embodiment, since the embedded multimedia card controller can not determine how often to update the data in the data block, and therefore, the number of updates statistics of each data block by the statistical module system 100 of the embedded device layer 130 carry out. 同时,统计模块130还统计嵌入式设备自身的开机次数。 Meanwhile, statistics module 130 also count the number of embedded devices boot itself. 统计结果被存储在统计模块130,供嵌入式设备的系统层100的微处理器MCU 110做后续的判断处理。 Statistics are statistics module 130, for the embedded microprocessor MCU 110 system device layer 100 to make the determination process subsequent storage. 此外,预设开机次数阈值、预设剩余空间阈值和预设更新次数阈值可根据嵌入式多媒体卡的具体性能参数进行设置,例如参照嵌入式多媒体卡的可擦写次数最大值设置预设开机次数阈值、预设更新次数阈值和预设极限更新阈值,参照嵌入式多媒体卡的存储空间最大值设置预设剩余空间阈值。 Further, the preset number of power threshold value, the preset threshold value and a preset remaining space update times threshold may be set according to the specific performance parameters of an embedded multimedia card, for example, reference to an embedded multimedia card number rewritable preset maximum number of power provided threshold, predetermined update times to update the threshold and preset limit threshold value, referring to the storage space provided embedded multimedia card preset maximum threshold remaining space. 本实施例将预设开机次数阈值设定为200次,将预设剩余空间阈值设定为100M,将预设更新次数阈值设定为30次。 This embodiment will preset number of power threshold is set at 200 times, the predetermined threshold is set to the remaining space 100M, update the preset threshold number is set to 30 times. 本实施例通过嵌入式多媒体卡所在嵌入式设备的系统层100的统计模块130统计嵌入式设备的开机次数和空闲数据块的剩余空间总,并将其作为迀移条件之一;在微处理器MCU 110判定满足迀移条件时,采用本实施例的数据迀移方案,让剩余可擦写次数较多的数据块参与到写均衡,有效提高嵌入式多媒体卡的整体使用寿命;否则,仍然按照原有的方式,通过嵌入式设备控制器实现写均衡,减少数据迀移流程,有效节省了时间,提高了数据存储效率。 In this embodiment, the total number of power remaining space of free data blocks and system statistics module embedded layer embedded multimedia card device 100 where statistical embedded device 130, and as a condition for shifting Gan; microprocessor MCU 110 determines that conditions are satisfied Gan time shift using the data of the present embodiment Gan shift program, so that the number of remaining rewritable more data blocks to the write equalization participate effectively improve the overall life of the embedded multimedia card; otherwise, according to still original way through the embedded device controllers write leveling, reduce data Gan shift process, saving time and increasing the efficiency of data storage.

[0076]如图7所示,图7为本发明嵌入式设备一实施例的结构示意图,该实施例提到的嵌入式设备,包括嵌入式设备的系统层100和嵌入式多媒体卡200: [0076] As shown in FIG. 7, FIG. 7 is a schematic structural diagram of an embodiment of an embedded device of the present invention, an embedded device according to the mentioned embodiment, the system comprises an embedded multimedia card layer 100 and embedded device 200:

[0077]嵌入式多媒体卡200包括控制器210,控制器210具体用于: [0077] The embedded multimedia card 200 includes a controller 210, controller 210 is configured to:

[0078]接收嵌入式设备的系统层100发送的迀移控制指令,备份更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放更新次数小于或等于预设更新次数阈值的数据块的存储空间,使更新次数小于或等于预设更新次数阈值的数据块参与写均衡; [0078] The embedded device receiving the transmitted Gan shift control command system layer 100, or less than the number of updating the backup update data equal to a preset threshold number of data blocks in, and release the data update frequency is less than or equal to a preset threshold value update times storage block, the update to update the preset number of times is less than or equal to a threshold number of blocks involved in the write equalization;

[0079]嵌入式设备的系统层100包括: [0079] The embedded device 100 includes a system layer:

[0080] 微处理器M⑶110,用于在判定嵌入式多媒体卡200满足预设迀移条件时,查询嵌入式多媒体卡200中更新次数小于或等于预设更新次数阈值的数据块; [0080] microprocessor M⑶110, for determining an embedded multimedia card 200 satisfies a predetermined condition shift Gan, query embedded multimedia card 200 updates the number of times equal to or less than a predetermined number of update data block threshold;

[0081]指令发送模块120,用于发送迀移控制指令至嵌入式多媒体卡200的控制器210,控制嵌入式多媒体卡200的控制器210备份更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放更新次数小于或等于预设更新次数阈值的数据块的存储空间,使更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 [0081] The instruction sending module 120, configured to send a control instruction to shift Gan embedded multimedia card 210 of the controller 200, the controller 200 controls the embedded multimedia card 210 of the backup update times less than or equal to a preset threshold number of updated data block data, update and release times is less than or equal to a preset update data storage block number threshold value, the update number equal to or less than a preset threshold number of blocks of the update data involved in the write equalization.

[0082]本发明嵌入式设备包括嵌入式设备的系统层100,该嵌入式设备的系统层100可包括前述图5和图6所示实施例中所有技术方案,其详细工作原理可参照前述实施例,在此不作赘述。 [0082] The embedded device according to the present invention includes an embedded system device layer 100, the embedded system device layer 100 may include all the technical solutions in the foregoing embodiment shown in FIGS. 5 and 6 embodiment, a detailed reference to the foregoing embodiments may be works embodiment, this will not be repeated herein. 由于采用前述嵌入式设备的系统层100的方案,本发明的嵌入式设备相对现有的嵌入式设备而言,有效延长嵌入式多媒体卡的使用寿命,提升嵌入式设备整体使用年限,提高产品质量,减少售后服务成本。 Due to the system level program embedded device 100, the embedded device of the present invention is relatively conventional embedded devices, effectively extending the life of an embedded multimedia card, embedded enhance overall equipment life, improve product quality and reduce service costs.

[0083]以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 [0083] The above are only preferred embodiments of the present invention, not intended to limit the scope of the present invention, all utilize the present specification and drawings taken equivalent structures or equivalent process, or applied directly or indirectly other related technical fields shall fall within the scope of protection of the present invention.

Claims (7)

  1. 1.一种嵌入式多媒体卡数据迀移方法,其特征在于,包括步骤: 嵌入式设备的系统层在判定所述嵌入式多媒体卡中有剩余更新次数的空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块; 所述嵌入式设备的系统层发送迀移控制指令至所述嵌入式多媒体卡的控制器,控制所述嵌入式多媒体卡的控制器备份所述更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放所述更新次数小于或等于预设更新次数阈值的数据块的存储空间,使所述更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 An embedded multimedia card data Gan shift method, characterized by comprising the steps of: a system layer embedded devices are the sum of the remaining space remaining number of free data blocks is determined less than or equal to update the embedded multimedia card remaining space preset threshold, querying the update frequency is less than or equal to a preset threshold number of update blocks embedded multimedia card; the system layer embedded device transmits a control command to the shift Gan embedded multimedia card a controller, the controller controlling the backup of the updated embedded multimedia card number is less than or equal to a predetermined number of block data updating threshold value, and to release the data block number is less than or equal to a preset threshold update times the updated storage, the update frequency is less than or equal to a preset threshold number of blocks of the update data involved in the write equalization.
  2. 2.根据权利要求1所述的嵌入式多媒体卡数据迀移方法,其特征在于,所述嵌入式设备的系统层在判定所述嵌入式多媒体卡中有剩余更新次数的空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块的步骤之前还包括: 所述嵌入式设备的系统层在判定所述嵌入式多媒体卡所在的嵌入式设备的开机次数大于或等于预设开机次数阈值时,判断所述嵌入式多媒体卡中空闲数据块的剩余空间总和是否小于或等于预设剩余空间阈值。 The data of the embedded multimedia card as claimed in claim 1, Gan shift method, wherein said layer system embedded device space left free data blocks remaining number of times the determination in updating the embedded multimedia card before the step of updating the number of times is less than or equal to a preset threshold number of data blocks of updating the embedded multimedia card when the sum is less than or equal to a preset threshold value the remaining space, the query further comprising: a layer of said system said embedded device is determined when the number of power of the embedded device embedded multimedia card is located is greater than or equal to a preset number of power threshold values, determines the sum of the remaining space of the embedded multimedia card free data blocks is less than or equal to a preset threshold remaining space.
  3. 3.根据权利要求2所述的嵌入式多媒体卡数据迀移方法,其特征在于,所述嵌入式设备的系统层在判定所述嵌入式多媒体卡所在的嵌入式设备的开机次数大于或等于预设开机次数阈值时,判断所述嵌入式多媒体卡中空闲数据块的剩余空间总和是否小于或等于预设剩余空间阈值的步骤之前还包括: 所述嵌入式设备的系统层统计所述嵌入式设备的开机次数和所述嵌入式多媒体卡中各数据块的更新次数。 Embedded multimedia card according to claim 2, wherein the data shift method Gan, characterized in that the number of power of the embedded device in the system layer embedded device determines the embedded multimedia card is located equal to or greater than a pre- when the number of power previously set threshold value, determining the sum of the remaining space of the embedded multimedia card free data blocks or steps is less than the remaining space is equal to a predetermined threshold further comprising: said statistics of said layer system embedded device embedded device update times each data block and the number of power-embedded multimedia card.
  4. 4.一种嵌入式设备的系统层,其特征在于,包括: 微处理器MCU,用于在判定嵌入式多媒体卡中有剩余更新次数的空闲数据块的剩余空间总和小于或等于预设剩余空间阈值时,查询所述嵌入式多媒体卡中更新次数小于或等于预设更新次数阈值的数据块; 指令发送模块,用于发送迀移控制指令至所述嵌入式多媒体卡的控制器,控制所述嵌入式多媒体卡的控制器备份所述更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放所述更新次数小于或等于预设更新次数阈值的数据块的存储空间,使所述更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 An embedded system device layer, wherein, comprising: a microprocessor MCU, the remaining space for the sum of free data blocks have updated remaining number of times an embedded multimedia card is determined equal to or less than a predetermined residual space threshold, the query to update the embedded multimedia card number is less than or equal to a preset number of updated data block threshold; instruction sending module, configured to send a control instruction to the shift Gan embedded multimedia card controller controls the the backup controller embedded multimedia card update frequency is less than or equal to a predetermined number of block data updating threshold value, and the release of the update frequency is less than or equal to a preset threshold number of update data storage block, so that the updating said predetermined number is less than or equal to the threshold number of blocks of the update data involved in the write equalization.
  5. 5.根据权利要求4所述的嵌入式设备的系统层,其特征在于,所述微处理器MCU具体还用于: 在判定所述嵌入式多媒体卡所在的嵌入式设备的开机次数大于或等于预设开机次数阈值时,判断所述嵌入式多媒体卡中有剩余更新次数的空闲数据块的剩余空间总和是否小于或等于预设剩余空间阈值。 The system layer of the embedded device as claimed in claim 4, wherein said microprocessor is further configured to MCU specifically: the frequency and power of the embedded device determines the embedded multimedia card is located greater than or equal when the preset number of power threshold values, determining the sum of the embedded multimedia card with a space left free data blocks remaining number of times is less than or equal to a preset update the remaining space threshold.
  6. 6.根据权利要求5所述的嵌入式设备的系统层,其特征在于,还包括: 统计模块,用于统计所述嵌入式设备的开机次数和所述嵌入式多媒体卡中各数据块的更新次数。 6. The system layer embedded device as claimed in claim 5, characterized in that, further comprising: a statistics module, for updating the statistics of the number of power of the embedded device and an embedded multimedia card in each data block frequency.
  7. 7.一种嵌入式设备,其特征在于,包括嵌入式多媒体卡和如权利要求4至6任一项所述的嵌入式设备的系统层,其中,所述嵌入式多媒体卡包括控制器,所述控制器具体用于: 接收所述嵌入式设备的系统层发送的迀移控制指令,备份所述更新次数小于或等于预设更新次数阈值的数据块中的数据,并释放所述更新次数小于或等于预设更新次数阈值的数据块的存储空间,使所述更新次数小于或等于预设更新次数阈值的数据块参与写均衡。 An embedded device, characterized in that the layer system comprises an embedded device according to any one of 4 to 6 and embedded multimedia card as claimed in claim, wherein the controller comprises an embedded multimedia card, the said controller configured to: receive the system layer embedded device Gan transmission shift control command, the backup update times less than or equal to a predetermined number of block data updating threshold value, and the release of the update times of less than updating the storage space or equal to a preset threshold number of data blocks of the update frequency is less than or equal to a preset threshold number of blocks of the update data involved in the write equalization.
CN 201210302702 2012-08-23 2012-08-23 Embedded multimedia card data migration method, system layer and embedded devices CN102866863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210302702 CN102866863B (en) 2012-08-23 2012-08-23 Embedded multimedia card data migration method, system layer and embedded devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210302702 CN102866863B (en) 2012-08-23 2012-08-23 Embedded multimedia card data migration method, system layer and embedded devices

Publications (2)

Publication Number Publication Date
CN102866863A true 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
CN 201210302702 CN102866863B (en) 2012-08-23 2012-08-23 Embedded multimedia card data migration method, system layer and embedded devices

Country Status (1)

Country Link
CN (1) CN102866863B (en)

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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 Type
CN102866863A (en) 2013-01-09 application

Similar Documents

Publication Publication Date Title
US8788779B1 (en) Non-volatile storage subsystem with energy-based performance throttling
US20110153916A1 (en) Hybrid memory architectures
US8429436B2 (en) Apparatus, system, and method for power reduction in a storage device
US20130132972A1 (en) Thermally driven workload scheduling in a heterogeneous multi-processor system on a chip
Mutlu Memory scaling: A systems architecture perspective
US20120117304A1 (en) Managing memory with limited write cycles in heterogeneous memory systems
US20130073875A1 (en) System and method for managing thermal energy generation in a heterogeneous multi-core processor
US20140185376A1 (en) Method and system for asynchronous die operations in a non-volatile memory
Mutlu et al. Research problems and opportunities in memory systems
US20110246597A1 (en) Remote direct storage access
US20140189210A1 (en) Memory system having an unequal number of memory die
US20080244035A1 (en) Remote copy system and remote copy method
US20130073795A1 (en) Memory device and method of controlling the same
US20130007488A1 (en) Power management of a storage device including multiple processing cores
US20160041596A1 (en) Power efficient method and system for executing host data processing tasks during data retention operations in a storage device
CN1722106A (en) Method for internal memory allocation in the embedded real-time operation system
US20140019677A1 (en) Storing data in presistent hybrid memory
US20140189205A1 (en) Method and system for managing program cycles in a multi-layer memory
US8010764B2 (en) Method and system for decreasing power consumption in memory arrays having usage-driven power management
US20140304542A1 (en) Report updated threshold level based on parameter
US20140189207A1 (en) Method and system for managing background operations in a multi-layer memory
US20140189208A1 (en) Method and system for program scheduling in a multi-layer memory
US20160210060A1 (en) Dynamic resource allocation within storage devices
US20110271032A1 (en) Access device and memory controller
US20140189206A1 (en) Method and system for managing block reclaim operations in a multi-layer memory

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model