WO2016023276A1 - 一种存储卡的数据处理方法及装置 - Google Patents

一种存储卡的数据处理方法及装置 Download PDF

Info

Publication number
WO2016023276A1
WO2016023276A1 PCT/CN2014/090117 CN2014090117W WO2016023276A1 WO 2016023276 A1 WO2016023276 A1 WO 2016023276A1 CN 2014090117 W CN2014090117 W CN 2014090117W WO 2016023276 A1 WO2016023276 A1 WO 2016023276A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage space
memory card
capacity
systems
area
Prior art date
Application number
PCT/CN2014/090117
Other languages
English (en)
French (fr)
Inventor
陈历伟
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Priority to EP14899753.9A priority Critical patent/EP3166009A1/en
Publication of WO2016023276A1 publication Critical patent/WO2016023276A1/zh
Priority to US15/425,627 priority patent/US20170147247A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0605Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device

Definitions

  • the present invention relates to the field of electronic device applications, and in particular, to a data processing method and apparatus for a memory card.
  • the data storage of the secure digital card does not have a certain rule, the data of multiple systems is cross-stored, and the data is stored in a secure digital card.
  • the inventor has found that at least the following problems exist in the prior art: when the smart terminal has multiple systems running, since the data is stored in the secure digital card, there is no certain rule, when one When the system accesses the secure digital card, there may be a phenomenon of access crossover, accessing data of other systems, causing data misreading, and reducing the rate and correct rate of data processing by the smart terminal to the secure digital card.
  • the embodiment of the invention provides a data processing method and device for a memory card, which can solve the problem that the rate and the correct rate of data processing by the smart terminal on the secure digital card are reduced when the intelligent terminal has multiple systems running.
  • the present invention provides a method of data processing of a memory card, the method comprising:
  • a mapping relationship between the divided regions and the system is established to facilitate each system to store or read data from a corresponding memory card region.
  • the present invention also provides an apparatus for data processing of a memory card, the apparatus comprising:
  • a determining unit configured to determine a number of systems used by the terminal and a capacity of a storage space required by each system
  • a dividing unit configured to perform area division on a storage space of the memory card according to the number of the systems and the capacity
  • the establishing unit is configured to establish a mapping relationship between the divided area and the system, so that each system stores or reads data from a corresponding memory card area.
  • a third aspect is a terminal for data processing of a memory card, the terminal comprising the apparatus of the second aspect.
  • the data processing method and device for a memory card provided by the present invention can determine the number of systems used by the terminal and the capacity of the storage space required by each system, and divide the storage space of the memory card according to the number of systems and the capacity, and establish The mapping relationship between the divided areas and the system, so that each system stores or reads data from the corresponding memory card area.
  • the rate and accuracy rate of the data processing by the smart terminal to the secure digital card are reduced.
  • each system can store or read data from a corresponding memory card area, and an area that is not mapped to the system or an area that does not correspond to the system cannot be stored or read, that is, each system
  • the storage and reading of data do not affect each other, avoiding the intersection of accessing other system data, and improving the rate and accuracy of intelligent terminal data processing for secure digital cards.
  • FIG. 1 is a flowchart of a data processing method of a memory card according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a data processing method of another memory card according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a data processing apparatus of a first memory card according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a data processing apparatus of a second memory card according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a data processing apparatus of a third memory card according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a data processing apparatus of a fourth memory card according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a data processing terminal of a memory card according to an embodiment of the present invention.
  • An embodiment of the present invention provides a data processing method for a memory card. As shown in FIG. 1, the method includes:
  • Step 101 Determine the number of systems used by the terminal and the capacity of the storage space required by each system.
  • the sum of the capacity of the storage space required by each system does not exceed the capacity of the space of the memory card itself.
  • Step 102 Perform area division on a storage space of the memory card according to the number of the systems and the capacity.
  • the memory card may include an SD (Secure Digital) card, an MMC (Multimedia Card) multimedia card, and a TF (Trans Flash) card.
  • SD Secure Digital
  • MMC Multimedia Card
  • TF Trans Flash
  • the area division can be implemented in the following two ways:
  • the storage space of the memory card is equally distributed according to the number of systems, and the allocated areas are the same size, and the capacity of the storage space required for each system is assigned to each area in a one-to-one correspondence.
  • the storage space required by the system is larger than the corresponding area, the storage space that is not allocated to each system is divided into the area or the storage space of the infrequent system is divided into the area until the area is not less than that required by the corresponding system. Storage space so far.
  • the storage space of the memory card is divided into regions.
  • Each divided area has a one-to-one correspondence with the storage space capacity required by each system, and each area is not less than the capacity of the storage space required by its corresponding system.
  • Step 103 Establish a mapping relationship between the divided area and the system, so that each system stores or reads data from a corresponding memory card area.
  • the mapping relationship means that the divided memory card areas are in one-to-one correspondence with the system, and each system only stores or reads data from its corresponding memory card area, and does not access areas corresponding to other systems.
  • the data processing method of the memory card can determine the number of systems used by the terminal and the capacity of the storage space required by each system, and divide the storage space of the memory card according to the number of systems and the capacity. Establish a mapping relationship between the divided regions and the system so that each system can Data is stored or read in the corresponding memory card area.
  • the rate and accuracy rate of the data processing by the smart terminal to the secure digital card are reduced.
  • each system can store or read data from a corresponding memory card area, and an area that is not mapped to the system or an area that does not correspond to the system cannot be stored or read, thereby avoiding access.
  • the intersection of other system data improves the rate and accuracy of intelligent terminal data processing for secure digital cards.
  • the embodiment of the present invention further provides a method for data processing of a memory card.
  • step 103 establishing a mapping relationship between the divided area and the system, so that each system can Store or read data in the corresponding memory card area, including:
  • a memory card is detected to determine whether the memory card has completed the allocation of the area. If the allocation of the area is completed, the physical address range of each area is mapped to the corresponding system, and each system logically maps according to the physical address range, and stores or reads data in the corresponding area. Parts that are not mapped to the system, including parts that are not mapped to all systems and parts that are mapped to systems outside the system, have no access rights to store or read data. If the storage card does not complete the allocation of the area, the area allocation command of the memory card is executed. After the area allocation is completed, the mapping relationship is established by referring to the above steps.
  • the hot plug detects that there is a memory card, prompts the user not to allocate the area according to the system, needs to restart the allocation of the mobile phone execution area, and then restarts, and then performs the mapping relationship according to the above startup step.
  • a method for processing data of a memory card by establishing a mapping relationship between a physical address of a divided area and a corresponding system, each system can only store or read data from the corresponding area, outside the system.
  • the area corresponding to the system and the area outside the corresponding area of all systems do not have access rights. It avoids the intersection of accessing other system data, reduces the complexity of storing or reading data, and improves the rate and accuracy of intelligent terminal data processing for secure digital cards.
  • the embodiment of the present invention further provides a method for processing data of a memory card.
  • step 102 according to the number of the system and the capacity of the memory card Before the storage space is divided into regions, the method further includes:
  • Step 201 Determine whether a sum of capacities of the storage spaces required by the system is greater than a total capacity of a storage space of the memory card.
  • Step 202 When the sum of the capacities of the storage spaces required by the system is greater than the total capacity of the storage space of the memory card, reduce the sum of the capacity of the storage space required by each system until the required storage space of the system The sum of the capacities is not greater than the total capacity of the storage space of the memory card.
  • the area division refers to dividing a storage space of the memory card according to the number of the systems and the capacity corresponding to each system.
  • the number of the systems does not exceed the number of divided regions.
  • the system only corresponds to one of the regions.
  • the capacity of the storage space of the corresponding area of the system is not less than the capacity of the storage space required by the system.
  • the method for processing data of a memory card determines whether the sum of the capacity of the storage space required by the system is greater than the total capacity of the storage space of the memory card, and if it is greater than, reduces the storage space required by each system.
  • the sum of the capacities until the sum of the capacity of the storage space required by the system is not greater than the total storage space of the memory card ensures that the sum of the capacity of the storage space required by the system is not greater than the total capacity of the storage space of the memory card.
  • the embodiment of the present invention further provides a data processing method for a memory card.
  • a data processing method for a memory card As a specific description of the method shown in FIG. 2, in step 202, when the sum of the required storage spaces of the system is greater than the storage of the memory card. When the total capacity of the space is reduced, the sum of the capacities of the storage spaces required by the systems is reduced until the sum of the capacities of the storage spaces required by the system is not greater than the total capacity of the storage space of the memory card, including:
  • the method for processing data of a memory card ensures that the sum of the capacity of the storage space required by the system is not greater than that by reducing the number of systems used by the terminal or reducing the capacity of the storage space required by at least one system.
  • the total storage capacity of the memory card ensures that the sum of the capacity of the storage space required by the system is not greater than that by reducing the number of systems used by the terminal or reducing the capacity of the storage space required by at least one system.
  • the embodiment of the present invention further provides an apparatus for processing data of a memory card, where the apparatus is used to implement the foregoing method.
  • the apparatus includes:
  • the determining unit 31 is configured to determine the number of systems used by the terminal and the capacity of the storage space required by each system.
  • the dividing unit 32 is configured to perform area division on the storage space of the memory card according to the number of the systems and the capacity.
  • the establishing unit 33 is configured to establish a mapping relationship between the divided area and the system, so that each system stores or reads data from the corresponding memory card area.
  • the device for processing data of the memory card provided by the embodiment of the present invention can determine the number of systems used by the terminal and the capacity of the storage space required by each system, and divide the storage space of the memory card according to the number of systems and the capacity. Establish a mapping relationship between the divided regions and the system, so that each system stores or reads data from the corresponding memory card region.
  • the rate and accuracy rate of the data processing by the smart terminal to the secure digital card are reduced.
  • each system can store or read data from a corresponding memory card area, and an area that is not mapped to the system or an area that does not correspond to the system cannot be stored or read, thereby avoiding access.
  • the intersection of other system data improves the rate and accuracy of intelligent terminal data processing for secure digital cards.
  • the embodiment of the present invention further provides a device for processing data of a memory card.
  • the number of divided regions is greater than or equal to the number of the systems, and the system and the Corresponding to one of the divided regions, the storage space capacity of the corresponding region of the system is greater than or equal to the capacity of the storage space required by the system.
  • the device for processing data of the memory card provided by the embodiment of the present invention can realize that the number of divided regions is greater than or equal to the number of systems, and the system corresponds to one of the divided regions, and the storage space capacity of the corresponding region of the system is greater than or equal to The amount of storage space required by the system. It ensures that each system can be allocated to the corresponding area, and each system can store or read data from the corresponding memory card area, avoiding the phenomenon of not accessing data or the intersection of other system data, reducing storage or The complexity of reading data improves the rate and accuracy of intelligent terminal data processing for secure digital cards.
  • the embodiment of the present invention further provides a device for processing data of a memory card.
  • the establishing unit 33 further includes:
  • the establishing subunit 331 is configured to establish a mapping relationship between the physical address of the divided area and the corresponding system.
  • An apparatus for processing data of a memory card by establishing a mapping relationship between a physical address of a divided area and a corresponding system, each system can store or read data from a corresponding memory card, outside the system.
  • the area corresponding to the system and the area outside the corresponding area of all systems do not have access rights. Avoids the intersection of accessing other system data, reducing the storage or reading of data
  • the complexity increases the rate and accuracy of intelligent terminal data processing for secure digital cards.
  • the embodiment of the present invention further provides a device for processing data of a memory card.
  • a device for processing data of a memory card As a specific description of the device shown in FIG. 3, as shown in FIG. 5, before the dividing unit 32, the device further includes:
  • the determining unit 34 is configured to determine whether a sum of capacities of the storage spaces required by the system is greater than a total capacity of a storage space of the memory card;
  • a reducing unit 35 configured to reduce a sum of capacities of the storage spaces required by the systems when the sum of the capacities of the storage spaces required by the system is greater than the total storage capacity of the storage cards, until the system The sum of the capacities of the storage spaces is not greater than the total capacity of the storage space of the memory card.
  • An apparatus for processing data of a memory card determines whether a sum of capacities of a storage space required by the system is greater than a total capacity of a storage space of the memory card, and if larger, reduces a storage space required by each system. The sum of the capacities until the sum of the capacity of the storage space required by the system is not greater than the total amount of storage space of the memory card. It is ensured that each system can be allocated to the corresponding area, and each area is not less than the capacity of the storage space required by the corresponding system.
  • the embodiment of the present invention further provides a device for processing data of a memory card.
  • the reducing unit 35 further includes:
  • Sub-unit 351 for reducing the number of systems used by the terminal or
  • the reduction subunit 351 is also used to reduce the capacity of at least one of the storage spaces required by the system.
  • the device for processing data of a memory card provided by the embodiment of the present invention reduces the number of systems used by the terminal or reduces the capacity of the storage space required by at least one system until the sum of the capacities of the required storage space of the system is not greater than the storage.
  • the total storage capacity of the card ensures that the sum of the storage capacity required by the system is not greater than the total storage capacity of the memory card.
  • the embodiment of the present invention further provides a terminal for data processing of a memory card.
  • the terminal includes the data processing device of any one of the foregoing memory cards as shown in FIG. 3, 4, 5, and 6. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种存储卡的数据处理方法及装置,涉及电子设备应用领域,用于解决当智能终端有多个系统运行时,智能终端对安全数码卡数据处理的速率和正确率降低的问题。所述方法包括:确定终端使用的系统个数和各系统所需存储空间的容量;根据所述系统个数和所述容量对存储卡的存储空间进行区域划分;建立划分的区域与所述系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据。所示方法主要应用于智能终端对安全数码卡的数据处理。

Description

一种存储卡的数据处理方法及装置 技术领域
本发明涉及电子设备应用领域,尤其涉及一种存储卡的数据处理方法及装置。
背景技术
随着电子设备应用的不断发展,数码相机、多媒体播放器等便携式装置的用户日益增多,用户对便携式装置,如智能终端,存储卡的数据处理要求也越来越高。现有技术提供了一种安全数码卡数据的处理技术,其方法如下:
在一台智能终端有多个系统运行的情况下,安全数码卡的数据存储没有一定的规律,多个系统的数据交叉存储,数据杂乱地存储在安全数码卡中。
在实现上述安全数码卡数据处理的过程中,发明人发现现有技术中至少存在如下问题:当智能终端有多个系统运行时,由于数据在安全数码卡中的存储没有一定的规律,当一个系统访问安全数码卡时,有可能出现访问交叉的现象,访问到其他系统的数据,造成数据误读,使智能终端对安全数码卡数据处理的速率和正确率降低。
发明内容
本发明的实施例提供一种存储卡的数据处理方法及装置,能够解决当智能终端有多个系统运行时,智能终端对安全数码卡数据处理的速率和正确率降低的问题。
第一方面,本发明提供了一种存储卡的数据处理的方法,所述方法包括:
确定终端使用的系统个数和各系统所需存储空间的容量;
根据所述系统个数和所述容量对存储卡的存储空间进行区域划分;
建立划分的区域与所述系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据。
第二方面,本发明还提供了一种存储卡的数据处理的装置,所述装置包括:
确定单元,用于确定终端使用的系统个数和各系统所需存储空间的容量;
划分单元,用于根据所述系统个数和所述容量对存储卡的存储空间进行区域划分;
建立单元,用于建立划分的区域与所述系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据。
第三方面,存储卡的数据处理的终端,所述终端包括如第二方面所述的装置。
本发明提供的一种存储卡的数据处理方法及装置,能够确定终端使用的系统个数和各系统所需存储空间的容量,根据系统个数和容量对存储卡的存储空间进行区域划分,建立划分的区域与系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据。现有技术中,当智能终端有多个系统运行时,智能终端对安全数码卡数据处理的速率和正确率降低。与现有技术相比,本发明中,各系统能够从对应的存储卡区域中存储或读取数据,未映射到系统的区域或者与系统不对应的区域不能被存储或读取,即各系统之间数据的存储和读取互不影响,避免了访问到其它系统数据的交叉现象,提高了智能终端对安全数码卡数据处理的速率和正确率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例中一个存储卡的数据处理方法的流程图;
图2为本发明实施例中另一个存储卡的数据处理方法的流程图;
图3为本发明实施例中第一个存储卡的数据处理装置的结构示意图;
图4为本发明实施例中第二个存储卡的数据处理装置的结构示意图;
图5为本发明实施例中第三个存储卡的数据处理装置的结构示意图;
图6为本发明实施例中第四个存储卡的数据处理装置的结构示意图;
图7为本发明实施例中一个存储卡的数据处理终端的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供了一种存储卡的数据处理的方法,如图1所示,所述方法包括:
步骤101、确定终端使用的系统个数和各系统所需存储空间的容量。
所述各系统所需存储空间的容量总和不超过存储卡本身空间的容量大小。
步骤102、根据所述系统个数和所述容量对存储卡的存储空间进行区域划分。
所述存储卡可以包括SD(Secure Digital,安全数码)卡、MMC(Multimedia Card,)多媒体卡和TF(Trans Flash,内存)卡等。
所述区域划分可以通过以下两种方式来实现:
根据系统个数将存储卡的存储空间平均分配,分配后的各区域大小相同,将各系统所需的存储空间的容量一一对应的分配到各区域。当系统所需的存储空间大于对应的区域时,将未分配到各系统的存储空间划分到该区域或将不常用系统的存储空间划分到该区域,直到该区域不小于其对应的系统所需的存储空间为止。
或,根据各系统所需存储空间的容量,对存储卡的存储空间进行区域划分。划分后的各区域与各系统所需的存储空间容量一一对应,且每一个区域均不小于其对应的系统所需的存储空间的容量。
步骤103、建立划分的区域与所述系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据。
所述映射关系是指划分的存储卡区域与所述系统一一对应,各系统只从其对应的存储卡区域中存储或读取数据,不会访问到其它系统对应的区域。
本发明实施例提供的一种存储卡的数据处理的方法,能够确定终端使用的系统个数和各系统所需存储空间的容量,根据系统个数和容量对存储卡的存储空间进行区域划分,建立划分的区域与系统之间的映射关系,以便于各系统从 对应的存储卡区域中存储或读取数据。现有技术中,当智能终端有多个系统运行时,智能终端对安全数码卡数据处理的速率和正确率降低。与现有技术相比,本发明中,各系统能够从对应的存储卡区域中存储或读取数据,未映射到系统的区域或者与系统不对应的区域不能被存储或读取,避免了访问到其它系统数据的交叉现象,提高了智能终端对安全数码卡数据处理的速率和正确率。
本发明实施例还提供了一种存储卡的数据处理的方法,作为对图1所示方法的具体说明,步骤103、建立划分的区域与所述系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据,包括:
建立所述划分的区域的物理地址与对应系统的映射关系。
下面通过一个使用场景来说明该映射关系:
在一个智能终端中,如手机,开机启动过程中,检测到有存储卡,判断存储卡是否已经完成了区域的分配。如果完成了区域的分配,则将各区域的物理地址范围映射到相应的系统,各系统根据物理地址范围进行逻辑映射,并在对应的区域存储或读取数据。未映射到系统的部分,包括未映射到所有系统的部分和映射到该系统以外的系统的部分,该系统均没有访问权限,无法存储或读取数据。若存储卡未完成区域的分配,则执行存储卡的区域分配命令,区域分配完成后,参照上述步骤执行映射关系的建立。
或者在使用过程中,热插拔检测到有存储卡,提示用户没有按照系统进行区域的分配,需要重启手机执行区域的分配,则重新开机,接下来按照上述开机启动步骤执行映射关系的建立。
本发明实施例提供的一种存储卡的数据处理的方法,通过建立划分的区域的物理地址与对应系统的映射关系,各系统只能从对应的区域中存储或读取数据,对该系统以外的系统所对应的区域和所有系统对应区域以外的区域没有访问权限。避免了访问到其它系统数据的交叉现象,降低了存储或读取数据的复杂度,提高了智能终端对安全数码卡数据处理的速率和正确率。
本发明实施例还提供了一种存储卡的数据处理的方法,作为对图1所示方法的具体说明,如图2所示,步骤102、根据所述系统个数和所述容量对存储卡的存储空间进行区域划分之前,所述方法还包括:
步骤201、判断所述系统所需存储空间的容量之和是否大于所述存储卡的存储空间的总容量。
步骤202、当所述系统所需存储空间的容量之和大于所述存储卡的存储空间的总容量时,减少所述各系统所需存储空间的容量之和,直到所述系统所需存储空间的容量之和不大于所述存储卡的存储空间的总容量。
可选的,所述区域划分是指,按照所述系统个数和每个系统对应的容量对存储卡的存储空间进行划分。所述系统个数不超过划分后的区域个数。所述系统只与所述区域中的一个对应。所述系统对应区域的存储空间的容量不小于所述系统所需的存储空间的容量。
本发明实施例提供的一种存储卡的数据处理的方法,通过判断系统所需存储空间的容量之和是否大于存储卡的存储空间的总容量,如果大于,则减少各系统所需存储空间的容量之和,直到系统所需存储空间的容量之和不大于存储卡的存储空间的总量,保证了系统所需存储空间的容量之和不大于存储卡的存储空间的总容量。
本发明实施例还提供了一种存储卡的数据处理的方法,作为对图2所示方法的具体说明,步骤202、当所述系统所需存储空间的容量之和大于所述存储卡的存储空间的总容量时,减少所述各系统所需存储空间的容量之和,直到所述系统所需存储空间的容量之和不大于所述存储卡的存储空间的总容量,包括:
减少所述终端使用系统的个数;或者,
减少至少一个所述系统所需存储空间的容量。
本发明实施例提供的一种存储卡的数据处理的方法,通过减少终端使用系统的个数,或者减少至少一个系统所需存储空间的容量,保证了系统所需存储空间的容量之和不大于存储卡的存储空间的总容量。
本发明实施例还提供了一种存储卡的数据处理的装置,所述装置用于实现上述方法,如图3所示,所述装置包括:
确定单元31,用于确定终端使用的系统个数和各系统所需存储空间的容量。
划分单元32,用于根据所述系统个数和所述容量对存储卡的存储空间进行区域划分。
建立单元33,用于建立划分的区域与所述系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据。
本发明实施例提供的一种存储卡的数据处理的装置,能够确定终端使用的系统个数和各系统所需存储空间的容量,根据系统个数和容量对存储卡的存储空间进行区域划分,建立划分的区域与系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据。现有技术中,当智能终端有多个系统运行时,智能终端对安全数码卡数据处理的速率和正确率降低。与现有技术相比,本发明中,各系统能够从对应的存储卡区域中存储或读取数据,未映射到系统的区域或者与系统不对应的区域不能被存储或读取,避免了访问到其它系统数据的交叉现象,提高了智能终端对安全数码卡数据处理的速率和正确率。
本发明实施例还提供了一种存储卡的数据处理的装置,作为对图3所示装置的具体说明,所述划分的区域个数大于或等于所述系统个数,所述系统与所述划分的区域中的一个对应,与所述系统对应区域的存储空间容量大于或等于所述系统所需存储空间的容量。
本发明实施例提供的一种存储卡的数据处理的装置,能够实现划分的区域个数大于或等于系统个数,系统与划分的区域中的一个对应,系统对应区域的存储空间容量大于或等于系统所需存储空间的容量。保证了各系统均能分配到对应的区域,各系统能够从对应的存储卡区域中存储或读取数据,避免了访问不到数据的现象或访问到其它系统数据的交叉现象,降低了存储或读取数据的复杂度,提高了智能终端对安全数码卡数据处理的速率和正确率。
本发明实施例还提供了一种存储卡的数据处理的装置,作为对图3所示装置的具体说明,如图4所示,所述建立单元33还包括:
建立子单元331,用于建立所述划分的区域的物理地址与对应系统的映射关系。
本发明实施例提供的一种存储卡的数据处理的装置,通过建立划分的区域的物理地址与对应系统的映射关系,各系统能够从对应的存储卡中存储或读取数据,对该系统以外的系统所对应的区域和所有系统对应区域以外的区域没有访问权限。避免了访问到其它系统数据的交叉现象,降低了存储或读取数据的 复杂度,提高了智能终端对安全数码卡数据处理的速率和正确率。
本发明实施例还提供了一种存储卡的数据处理的装置,作为对图3所示装置的具体说明,如图5所示,在所述划分单元32之前,所述装置还包括:
判断单元34,用于判断所述系统所需存储空间的容量之和是否大于所述存储卡的存储空间的总容量;
减少单元35,用于当所述系统所需存储空间的容量之和大于所述存储卡的存储空间的总容量时,减少所述各系统所需存储空间的容量之和,直到所述系统所需存储空间的容量之和不大于所述存储卡的存储空间的总容量。
本发明实施例提供的一种存储卡的数据处理的装置,通过判断系统所需存储空间的容量之和是否大于存储卡的存储空间的总容量,如果大于,则减少各系统所需存储空间的容量之和,直到系统所需存储空间的容量之和不大于存储卡的存储空间的总量。保证了各系统均能分配到对应的区域,且各区域不小于对应的系统所需的存储空间的容量。
本发明实施例还提供了一种存储卡的数据处理的装置,作为对图5所示装置的具体说明,如图6所示,所述减少单元35还包括:
减少子单元351,用于减少所述终端使用系统的个数;或者,
所述减少子单元351还用于减少至少一个所述系统所需存储空间的容量。
本发明实施例提供的一种存储卡的数据处理的装置,通过减少终端使用系统的个数,或者减少至少一个系统所需存储空间的容量,直到系统所需存储空间的容量之和不大于存储卡的存储空间的总容量,保证了系统所需存储空间的容量之和不大于存储卡的存储空间的总容量。
本发明实施例还提供了一种存储卡的数据处理的终端,如图7所示,所述终端包括上述如图3、4、5、6所示的任一项存储卡的数据处理的装置。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。

Claims (11)

  1. 一种存储卡的数据处理的方法,其特征在于,包括:
    确定终端使用的系统个数和各系统所需存储空间的容量;
    根据所述系统个数和所述容量对存储卡的存储空间进行区域划分;
    建立划分的区域与所述系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据。
  2. 根据权利要求1所述的方法,其特征在于,所述划分的区域个数大于或等于所述系统个数,所述系统与所述划分的区域中的一个对应,所述系统对应区域的存储空间容量大于或等于所述系统所需存储空间的容量。
  3. 根据权利要求1所述的方法,其特征在于,建立划分的区域与所述系统之间的映射关系包括:
    建立所述划分的区域的物理地址与对应系统的映射关系。
  4. 根据权利要求1所述的方法,其特征在于,在所述根据所述系统个数和所述容量对存储卡的存储空间进行区域划分之前,所述方法还包括:
    判断所述系统所需存储空间的容量之和是否大于所述存储卡的存储空间的总容量;
    当所述系统所需存储空间的容量之和大于所述存储卡的存储空间的总容量时,减少所述各系统所需存储空间的容量之和,直到所述系统所需存储空间的容量之和不大于所述存储卡的存储空间的总容量。
  5. 根据权利要求4所述的方法,其特征在于,所述减少所述系统所需存储空间的容量之和包括:
    减少所述终端使用系统的个数;或者,
    减少至少一个所述系统所需存储空间的容量。
  6. 一种存储卡的数据处理的装置,其特征在于,包括:
    确定单元,用于确定终端使用的系统个数和各系统所需存储空间的容量;
    划分单元,用于根据所述系统个数和所述容量对存储卡的存储空间进行区域划分;
    建立单元,用于建立划分的区域与所述系统之间的映射关系,以便于各系统从对应的存储卡区域中存储或读取数据。
  7. 根据权利要求6所述的装置,其特征在于,所述划分的区域个数大于或等于所述系统个数,所述系统与所述划分的区域中的一个对应,与所述系统对应区域的存储空间容量大于或等于所述系统所需存储空间的容量。
  8. 根据权利要求6所述的装置,其特征在于,所述建立单元还包括:
    建立子单元,用于建立所述划分的区域的物理地址与对应系统的映射关系。
  9. 根据权利要求6所述的装置,其特征在于,在所述划分单元之前,所述装置还包括:
    判断单元,用于判断所述系统所需存储空间的容量之和是否大于所述存储卡的存储空间的总容量;
    减少单元,用于当所述系统所需存储空间的容量之和大于所述存储卡的存储空间的总容量时,减少所述各系统所需存储空间的容量之和,直到所述系统所需存储空间的容量之和不大于所述存储卡的存储空间的总容量。
  10. 根据权利要求9所述的装置,其特征在于,所述减少单元还包括:
    减少子单元,用于减少所述终端使用系统的个数;或者,
    所述减少子单元还用于减少至少一个所述系统所需存储空间的容量。
  11. 一种存储卡的数据处理的终端,其特征在于,包括如权利要求6-10任一项所述的装置。
PCT/CN2014/090117 2014-08-15 2014-10-31 一种存储卡的数据处理方法及装置 WO2016023276A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14899753.9A EP3166009A1 (en) 2014-08-15 2014-10-31 Data processing method and device for storage card
US15/425,627 US20170147247A1 (en) 2014-08-15 2017-02-06 Data Processing Method and Device for Storage Card

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410403635.6 2014-08-15
CN201410403635.6A CN104182181A (zh) 2014-08-15 2014-08-15 一种存储卡的数据处理方法、装置及终端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/425,627 Continuation-In-Part US20170147247A1 (en) 2014-08-15 2017-02-06 Data Processing Method and Device for Storage Card

Publications (1)

Publication Number Publication Date
WO2016023276A1 true WO2016023276A1 (zh) 2016-02-18

Family

ID=51963269

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090117 WO2016023276A1 (zh) 2014-08-15 2014-10-31 一种存储卡的数据处理方法及装置

Country Status (4)

Country Link
US (1) US20170147247A1 (zh)
EP (1) EP3166009A1 (zh)
CN (1) CN104182181A (zh)
WO (1) WO2016023276A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023115529A1 (zh) * 2021-12-24 2023-06-29 华为技术有限公司 芯片内的数据处理方法及芯片

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977273A (zh) * 2016-10-25 2018-05-01 郑州云海信息技术有限公司 一种机柜中结点信息采集内存共享的内存优化方法
CN109308163A (zh) * 2017-07-26 2019-02-05 英业达科技有限公司 非挥发性记忆体磁区规划方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520854A (zh) * 2008-02-29 2009-09-02 凤凰微电子(中国)有限公司 一种智能存储卡及其数据安全控制系统和方法
CN101650690A (zh) * 2009-09-21 2010-02-17 中兴通讯股份有限公司 大容量存储卡的应用方法及移动终端
CN101799786A (zh) * 2009-02-11 2010-08-11 三星电子株式会社 管理动态存储器的嵌入式系统和动态存储器管理方法
CN102902488A (zh) * 2012-08-06 2013-01-30 广东欧珀移动通信有限公司 一种手持设备的存储卡及其动态挂载方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2514954B2 (ja) * 1987-03-13 1996-07-10 三菱電機株式会社 Icカ−ド

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520854A (zh) * 2008-02-29 2009-09-02 凤凰微电子(中国)有限公司 一种智能存储卡及其数据安全控制系统和方法
CN101799786A (zh) * 2009-02-11 2010-08-11 三星电子株式会社 管理动态存储器的嵌入式系统和动态存储器管理方法
CN101650690A (zh) * 2009-09-21 2010-02-17 中兴通讯股份有限公司 大容量存储卡的应用方法及移动终端
CN102902488A (zh) * 2012-08-06 2013-01-30 广东欧珀移动通信有限公司 一种手持设备的存储卡及其动态挂载方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023115529A1 (zh) * 2021-12-24 2023-06-29 华为技术有限公司 芯片内的数据处理方法及芯片

Also Published As

Publication number Publication date
US20170147247A1 (en) 2017-05-25
EP3166009A1 (en) 2017-05-10
CN104182181A (zh) 2014-12-03

Similar Documents

Publication Publication Date Title
US9489293B2 (en) Techniques for opportunistic data storage
CN106354656B (zh) 用于存储管理的方法和系统
US20160018990A1 (en) Electronic device and method for managing memory of electronic device
WO2017084565A1 (zh) 存储数据访问方法及相关的控制器、设备、主机和系统
US11010079B2 (en) Concept for storing file system metadata within solid-stage storage devices
US10402222B2 (en) Task migration method and apparatus
US11106574B2 (en) Memory allocation method, apparatus, electronic device, and computer storage medium
KR102077149B1 (ko) 메모리 관리 방법 및 장치
CN107506309B (zh) 终端及闪存数据写入方法和计算机可读存储介质
CN111240601B (zh) 一种分区空间的超级块确定方法、装置、设备及存储介质
US9116820B2 (en) Dynamic central cache memory
US20160313927A1 (en) Method for dynamically storing data of translation layer in solid state disk
WO2016023276A1 (zh) 一种存储卡的数据处理方法及装置
CN106155910B (zh) 一种实现内存访问的方法、装置和系统
CN104123188A (zh) 一种资源分配方法及相关装置
CN110399166B (zh) ME Nonce值的保存方法、装置、设备及存储介质
KR20160004728A (ko) 메모리 시스템 및 데이터 저장 장치
KR20150116627A (ko) 컨트롤러 및 그것을 포함하는 데이터 저장 장치
CN115151902A (zh) 集群扩容方法、装置、存储介质及电子设备
JP4703753B2 (ja) 情報処理装置、半導体記憶装置、及びプログラム
CN111444117A (zh) 存储空间碎片化实现方法、装置、存储介质及电子设备
US11182329B2 (en) Data processing system and operating method thereof
KR101175355B1 (ko) 스토리지 제어 장치, 이를 포함하는 모바일 장치 및 스토리지 제어 방법
CN101533373B (zh) 数据存取系统
KR20170000516A (ko) 동적 프로파일러를 통한 객체의 특성을 이용한 dram과 플래시 하이브리드 기억장치에서의 가비지 컬렉션 수행 방법 및 그를 위한 시스템

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14899753

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014899753

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014899753

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE