WO2018014423A1 - Data storage method and apparatus - Google Patents

Data storage method and apparatus Download PDF

Info

Publication number
WO2018014423A1
WO2018014423A1 PCT/CN2016/097470 CN2016097470W WO2018014423A1 WO 2018014423 A1 WO2018014423 A1 WO 2018014423A1 CN 2016097470 W CN2016097470 W CN 2016097470W WO 2018014423 A1 WO2018014423 A1 WO 2018014423A1
Authority
WO
WIPO (PCT)
Prior art keywords
sim card
storage space
storage
data
usage
Prior art date
Application number
PCT/CN2016/097470
Other languages
French (fr)
Chinese (zh)
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 宇龙计算机通信科技(深圳)有限公司
Publication of WO2018014423A1 publication Critical patent/WO2018014423A1/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
    • 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/0608Saving storage space on 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/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Definitions

  • the present invention relates to the field of storage technologies, and in particular, to a data storage method and apparatus.
  • the e-SIM card comes into being. Compared with the traditional SIM card, which can only support a single carrier service, the e-SIM card can support multiple different carrier services; and the e-SIM card is a built-in SIM card, which can be used in the terminal production process. Neutralize the terminal integration settings without opening a card slot on the terminal.
  • the storage capacity of the traditional external SIM card is smaller than that of the traditional external SIM card, and the storage capacity of the e-SIM card is much larger than that of the conventional external SIM card.
  • the embodiment of the invention provides a data storage method and device, which can effectively utilize the storage space of the e-SIM card.
  • the present invention provides a data storage method, which is applied to a terminal including an e-SIM card, the method comprising: detecting a usage state of a storage space corresponding to the e-SIM card; determining whether the usage state is satisfied a first preset condition; if the usage state satisfies the first preset condition, importing preset data into a storage space of the e-SIM card.
  • the present invention provides a data storage device, which is applied to a terminal that includes an e-SIM card, and the device includes: a detecting module, configured to detect a usage state of a storage space corresponding to the e-SIM card; a determining module, configured to determine whether the usage state meets a first preset condition, and a processing module, configured to import preset data into the e-SIM card when the usage state satisfies the first preset condition storage.
  • the data storage method and device provided by the present invention detects the usage state of the storage space of the e-SIM card, and determines whether the usage state satisfies the first preset condition, and when the first preset condition is met, the preset data is imported.
  • the storage space of the e-SIM card Therefore, the present invention provides a specific implementation that enables data storage by using an e-SIM card according to the state of use of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
  • FIG. 1 is a schematic flowchart of a first data storage method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a second data storage method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of a third data storage method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic flowchart diagram of a fourth data storage method according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic flowchart diagram of a fifth data storage method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic flowchart diagram of a sixth data storage method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a first data storage device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a second data storage device according to an embodiment of the present invention.
  • Embodiments of the present invention provide a data storage method, which is applied to a terminal including an e-SIM card.
  • the terminal may be a mobile phone, and may be any other electronic device capable of using an e-SIM card.
  • the execution body of the method may be the terminal, and the method includes:
  • the usage status includes at least one of an occupancy rate and a usage frequency of the storage space.
  • the occupancy of the storage space is a ratio of the size of the storage space occupied by the stored data to the size of the entire storage space of the e-SIM card.
  • the storage space of the e-SIM card is 2G, and when the 1G is occupied, that is, the data is stored, the storage space of the e-SIM card is 50%.
  • the frequency of use of the storage space is the number of times the storage space is used for a period of time. Whether the storage space is used and the number of uses can be determined by the change of the occupied storage capacity in the storage space. For example, the usage status of the e-SIM card is detected every one hour. If the storage space of the e-SIM card is within 1 hour, the occupied storage space is reduced from 1G to 500M, and from 500M to 800M. It can be determined that the number of uses is 2 times during the test.
  • the terminal may periodically detect the usage status of the storage space corresponding to the e-SIM card, or perform the step triggered by a specific event, such as the e-SIM card of the terminal device.
  • a specific event such as the e-SIM card of the terminal device.
  • the first preset condition is whether the occupation rate of the storage space corresponding to the e-SIM card is smaller than the first occupancy threshold; when the usage status is the storage corresponding to the e-SIM card, when the usage status is the occupancy of the storage space.
  • the first preset condition is whether the frequency of use of the storage space corresponding to the e-SIM card is less than the first use frequency threshold.
  • the usage state includes the occupancy rate and the usage frequency
  • the first preset condition is whether the occupation rate of the storage space corresponding to the e-SIM card is less than the first occupancy threshold. The value and the frequency of use of the storage space corresponding to the e-SIM card is less than the first usage frequency threshold.
  • the preset data is data located in a storage space other than the storage space of the e-SIM card in the terminal.
  • the preset data is data that is used infrequently.
  • the infrequently used data may be some photos, documents, and the like that are used less frequently. It can be determined by counting the frequency of use of each data by the user over a period of time. If the frequency of use of certain data by the user is low, the data can be determined as data that the user does not frequently use.
  • the usage state satisfies the first preset condition, it indicates that there is more unoccupied storage space in the storage space corresponding to the e-SIM card, and the data of the other storage space is imported into the e-SIM card to effectively utilize the e-SIM card. Storage space.
  • the data storage method provided by the embodiment of the present invention detects the usage state of the storage space of the e-SIM card, and determines whether the usage state satisfies the first preset condition. When the first preset condition is met, the preset data is imported.
  • the storage space of the e-SIM card Therefore, the embodiment of the present invention provides a specific implementation manner that can implement data storage by using an e-SIM card according to the usage state of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
  • the embodiment of the present invention further provides a specific implementation process when the usage status is the occupancy rate of the storage space.
  • an embodiment of the present invention further provides a data storage method, including:
  • step 101 For the specific implementation process of this step, refer to step 101, and details are not described herein again.
  • the first occupancy threshold may be preset or may be changed by the user according to requirements.
  • step 202 it is determined whether the occupancy of the storage space corresponding to the e-SIM card is less than 10%.
  • step 203 if the e-SIM card corresponds to the storage. If the occupancy of the space is less than 10%, the preset data is imported into the storage space of the e-SIM card.
  • the data storage method provided by the embodiment of the present invention detects the occupancy rate of the storage space of the e-SIM card, and determines whether the occupancy rate is less than the first occupancy rate threshold. When less than, the preset data is imported into the storage of the e-SIM card. space. Therefore, the embodiment of the present invention provides a specific implementation manner that can implement data storage by using an e-SIM card according to the occupancy rate of the storage space of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
  • the embodiment of the present invention further provides a specific implementation process when the usage state is the usage frequency of the storage space.
  • an embodiment of the present invention provides a data storage method, including:
  • step 101 For the specific implementation process of this step, refer to step 101, and details are not described herein again.
  • the first usage frequency threshold may be preset or may be changed by the user according to requirements.
  • step 302 it is determined whether the usage time of the storage space corresponding to the e-SIM card is less than 5 times.
  • step 303 if the number of uses of the storage space corresponding to the e-SIM card is less than 5 times in the period of time, the preset data is imported into the storage space of the e-SIM card.
  • the data storage method provided by the embodiment of the present invention detects the frequency of use of the storage space of the e-SIM card, and determines whether the frequency of use is less than the first use frequency threshold, and when it is less than the first use frequency threshold, Import preset data into the storage space of the e-SIM card. Therefore, the embodiment of the present invention provides a specific implementation manner that can implement data storage by using an e-SIM card according to the usage frequency of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
  • the embodiment of the present invention further provides a specific implementation process when the usage state includes the occupancy rate and the usage frequency of the storage space.
  • an embodiment of the present invention provides a data storage method, including:
  • step 101 For the specific implementation process of this step, refer to step 101, and details are not described herein again.
  • the preset data is imported into the storage space of the e-SIM card.
  • the first occupancy threshold is 10%
  • the first usage frequency threshold is 5 times in a period of time.
  • step 402 it is determined whether the occupancy of the storage space corresponding to the e-SIM card is less than 10%, and the usage number of the storage space corresponding to the e-SIM card is less than 5 times in a period of time.
  • step 403 if the storage space corresponding to the e-SIM card is less than 10%, and the number of uses is If it is less than 5 times in this period of time, the preset data is imported into the storage space of the e-SIM card.
  • the data storage method provided by the embodiment of the present invention detects the occupancy rate and the usage frequency of the storage space of the e-SIM card, and determines whether the occupancy rate is less than the first occupancy threshold and whether the frequency of use is less than the first usage frequency threshold.
  • the occupancy rate is less than the first occupancy threshold and the usage frequency is less than the first usage frequency threshold
  • the preset data is imported into the storage space of the e-SIM card. Therefore, the embodiment of the present invention provides a specific implementation manner that can implement data storage by using an e-SIM card according to the occupancy rate and the frequency of use of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
  • the terminal after determining that the usage state of the storage space corresponding to the e-SIM card meets the first preset condition, the terminal automatically imports the preset data into the e- The storage space corresponding to the SIM card. In this case, the user may not know that the data has been moved. In order to facilitate the user to find the preset data after the movement, the embodiment of the present invention further provides a data storage method.
  • the method includes:
  • the usage status includes at least one of an occupancy rate and a usage frequency of the storage space.
  • steps 501 to 503 For the specific implementation process of the steps 501 to 503, refer to the foregoing steps 101 to 103, step 201 to step 203, and step 301 to step 303, and details are not described herein again.
  • the first storage path is a storage path of the preset data before the preset data is imported into the storage space of the e-SIM card
  • the second storage path is to import preset data into the e- The storage path of the preset data after the storage space of the SIM card.
  • the corresponding relationship is saved in the first storage path.
  • the storage path for storing the preset data is the storage path 1; after the preset data is imported into the e-SIM card, the preset data is used for storing the preset data.
  • the storage path is storage path 2. Then, the correspondence between the storage path 1 and the storage path 2 is saved in the storage path 1. In this way, when the user searches for the preset data in the storage path 1, if the user cannot find the preset data, the preset data can be obtained from the storage path 2 according to the corresponding relationship.
  • a shortcut of the second storage path is generated in the first storage path.
  • the function of the shortcut is to facilitate the user to quickly find and use the preset data, and the user can jump to the second storage path by clicking the shortcut, and find the preset data in the second storage path.
  • the data storage method provided by the embodiment of the present invention after importing the preset data into the e-SIM, saves the correspondence between the storage path of the preset data before the import and the storage path of the preset data after the import, so that The user can find the moved preset data in time according to the corresponding relationship, and reduce the inconvenience caused by the movement process that the user does not know the preset data.
  • the embodiment of the present invention provides a storage space corresponding to the SIM card.
  • the method includes:
  • the usage status includes at least one of an occupancy rate and a usage frequency of the storage space.
  • the specified data is the preset data, that is, after the preset data is imported into the e-SIM card, if the usage state of the e-SIM card meets the second preset condition in the subsequent detection process, The previously imported preset data is then exported.
  • the specified data may also be other data that is used less frequently in the e-SIM card.
  • the correspondence between the first storage path and the second storage path of the specified data is saved.
  • the first storage path is a storage path of the specified data before the designated data is exported to the storage space of the e-SIM card, and the second storage path is used to export the specified data to the e-SIM card.
  • the storage path of the specified data after the storage space.
  • a shortcut of the second storage path is generated in the first storage path.
  • the function of the shortcut is to facilitate the user to quickly find and use the specified data, and the user can jump to the second storage path by clicking the shortcut, and find the specified data in the second storage path.
  • the steps 602 and 603 have different implementation manners according to different implementation states of the usage state in step 601.
  • the specific implementation process of step 602 includes: determining whether the occupancy rate of the storage space corresponding to the e-SIM card is greater than the second occupancy rate threshold.
  • the specific implementation process of step 603 includes: if the occupation rate of the storage space corresponding to the e-SIM card is greater than the second occupancy threshold, the specified data located in the storage space of the e-SIM card is derived.
  • the value of the second occupancy threshold may be automatically set by the terminal or set by the user, and the value is different from the first occupancy threshold, for example, may be 90%.
  • the specific implementation process of step 602 includes: determining whether the usage frequency of the storage space corresponding to the e-SIM card is greater than the second usage frequency threshold.
  • the specific implementation process of step 603 includes: if the usage frequency of the storage space corresponding to the e-SIM card is greater than the second usage frequency threshold, the specified data located in the storage space of the e-SIM card is derived.
  • the value of the second usage frequency threshold may be automatically set by the terminal or set by the user, and the value is different from the first usage frequency threshold, for example, 10 times in a certain period of time.
  • the specific implementation process of step 602 includes: determining whether the occupancy rate of the storage space corresponding to the e-SIM card is greater than the second occupancy rate threshold and the storage space corresponding to the e-SIM card. Whether the frequency of use is greater than the second usage frequency threshold.
  • the specific implementation process of step 603 includes: if the usage rate of the storage space corresponding to the e-SIM card is greater than the second occupancy threshold, and the usage frequency of the storage space corresponding to the e-SIM card is greater than the second usage frequency threshold, Export the specified data located in the e-SIM card storage space.
  • the data storage method provided by the embodiment of the present invention detects the usage state of the storage space of the e-SIM card, and determines whether the usage state satisfies the second preset condition. When the second preset condition is met, the e is located in the e - The specified data of the SIM card storage space is exported. Therefore, the present invention provides a specific implementation that enables data storage by using an e-SIM card according to the state of use of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
  • the embodiment of the present invention further provides a data storage device, which is applied to a terminal including an e-SIM card, for performing the method in any of the embodiments of FIG. 1 to FIG. 6.
  • the device includes:
  • the detecting module 701 is configured to detect a usage state of the storage space corresponding to the e-SIM card.
  • the usage state includes at least one of an occupancy rate and a usage frequency of the storage space.
  • the determining module 702 is configured to determine whether the usage state meets the first preset condition.
  • the processing module 703 is configured to import preset data into a storage space of the e-SIM card when the usage state satisfies the first preset condition.
  • the detecting module detects the usage state of the storage space of the e-SIM card, and the determining module determines whether the usage state satisfies the second preset condition, and when the second preset condition is met, the processing module
  • the specified data located in the e-SIM card storage space is derived. Therefore, the data storage device provided by the embodiment of the present invention can implement data storage by using an e-SIM card according to the use state of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
  • the determining module 702 is specifically configured to determine, when the usage status is the occupancy rate of the storage space, whether the occupancy rate is less than a first occupancy rate threshold.
  • the processing module 703 is specifically configured to import preset data into a storage space of the e-SIM card when the occupancy rate is less than the first occupancy threshold.
  • the determining module 702 is specifically configured to determine, when the usage state is a use frequency of the storage space, whether the usage frequency is less than a first usage frequency threshold.
  • the processing module 703 is specifically configured to import preset data into a storage space of the e-SIM card when the usage frequency is less than the first usage frequency threshold.
  • the embodiment of the present invention further provides a device for storing data, and the device further includes a saving module 801, specifically configured to save between the first storage path and the second storage path of the preset data.
  • the first storage path is a storage path of the preset data before the preset data is imported into the storage space of the e-SIM card
  • the second storage path is to import preset data into the e - a storage path of the preset data after the storage space of the SIM card.
  • the processing module 703 is further configured to generate a shortcut of the second storage path in the first storage path.
  • the saving module saves the correspondence between the storage path of the preset data before the import and the storage path of the preset data after the import, so that the user can According to the corresponding relationship, the moved preset data is found in time, and the inconvenience caused by the movement process that the user does not know the preset data is reduced.
  • the determining module 702 is further configured to determine whether the usage state meets a second preset condition.
  • the processing module 703 is further configured to: when the usage state meets the second preset condition, export specified data located in the e-SIM card storage space.
  • the detecting module detects the usage state of the storage space of the e-SIM card, and the determining module determines whether the usage state satisfies the second preset condition, and when the second preset condition is met, the processing module
  • the specified data located in the e-SIM card storage space is derived. Therefore, the data storage device provided by the embodiment of the present invention can implement data storage by using an e-SIM card according to the use state of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk, etc. includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.

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)
  • Telephone Function (AREA)

Abstract

A data storage method and apparatus, wherein same relate to the technical field of storage and involve a technical solution proposed for solving the problem in the prior art of lacking a storage space for effectively using an e-SIM card. The method is applied to a terminal containing an e-SIM card, and the method comprises: detecting a use state of a storage space corresponding to an e-SIM card (101); determining whether the use state satisfies a first pre-set condition (102); and if the use state satisfies the first pre-set condition, importing pre-set data into the storage space of the e-SIM card (103). The method is applied to a process where a terminal performs data storage.

Description

数据存储方法及装置Data storage method and device
本申请要求于2016年7月19日提交中国专利局,申请号为201610575418.4、发明名称为“数据存储方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. PCT Application No. No. No. No. No. No. No. No. No. No.
技术领域Technical field
本发明涉及存储技术领域,尤其涉及一种数据存储方法及装置。The present invention relates to the field of storage technologies, and in particular, to a data storage method and apparatus.
背景技术Background technique
随着移动互联网的发展,手机等终端也在不断改进以适应互联网时代下的用户需求。e-SIM卡应运而生,与传统SIM卡仅能支持单一运营商业务相比,e-SIM卡能够支持多个不同运营商业务;且e-SIM卡为内置SIM卡,可以在终端生产过程中和终端集成设置,而不需要在终端上开设卡槽。此外,与传统外置SIM卡的存储容量较小,仅能保存数百条电话号码相比,e-SIM卡的存储容量远远大于传统外置SIM卡的存储容量。With the development of the mobile Internet, terminals such as mobile phones are constantly improving to meet the needs of users in the Internet era. The e-SIM card comes into being. Compared with the traditional SIM card, which can only support a single carrier service, the e-SIM card can support multiple different carrier services; and the e-SIM card is a built-in SIM card, which can be used in the terminal production process. Neutralize the terminal integration settings without opening a card slot on the terminal. In addition, the storage capacity of the traditional external SIM card is smaller than that of the traditional external SIM card, and the storage capacity of the e-SIM card is much larger than that of the conventional external SIM card.
现有技术中缺乏有效利用e-SIM卡的存储空间的技术方案。In the prior art, there is a lack of a technical solution for effectively utilizing the storage space of the e-SIM card.
发明内容Summary of the invention
本发明实施例提供一种数据存储方法及装置,能够有效利用e-SIM卡的存储空间。The embodiment of the invention provides a data storage method and device, which can effectively utilize the storage space of the e-SIM card.
为满足上述目的,本发明的实施例采用如下技术方案:To meet the above objectives, embodiments of the present invention adopt the following technical solutions:
第一方面,本发明提供一种数据存储方法,应用于包含e-SIM卡的终端,所述方法包括:检测所述e-SIM卡对应的存储空间的使用状态;判断所述使用状态是否满足第一预设条件;如果所述使用状态满足所述第一预设条件,则将预设数据导入所述e-SIM卡的存储空间。In a first aspect, the present invention provides a data storage method, which is applied to a terminal including an e-SIM card, the method comprising: detecting a usage state of a storage space corresponding to the e-SIM card; determining whether the usage state is satisfied a first preset condition; if the usage state satisfies the first preset condition, importing preset data into a storage space of the e-SIM card.
第二方面,本发明提供一种数据存储装置,应用于包含e-SIM卡的终端,所述装置包括:检测模块,用于检测所述e-SIM卡对应的存储空间的使用状态; 判断模块,用于判断所述使用状态是否满足第一预设条件;处理模块,用于当所述使用状态满足所述第一预设条件时,将预设数据导入所述e-SIM卡的存储空间。In a second aspect, the present invention provides a data storage device, which is applied to a terminal that includes an e-SIM card, and the device includes: a detecting module, configured to detect a usage state of a storage space corresponding to the e-SIM card; a determining module, configured to determine whether the usage state meets a first preset condition, and a processing module, configured to import preset data into the e-SIM card when the usage state satisfies the first preset condition storage.
本发明提供的数据存储方法及装置,检测e-SIM卡的存储空间的使用状态,并判断其使用状态是否满足第一预设条件,当满足该第一预设条件时,将预设数据导入e-SIM卡的存储空间。因此,本发明提供了一种能够根据e-SIM卡的使用状态利用e-SIM卡实现数据存储的具体实现方式,能够有效利用e-SIM卡的存储空间。The data storage method and device provided by the present invention detects the usage state of the storage space of the e-SIM card, and determines whether the usage state satisfies the first preset condition, and when the first preset condition is met, the preset data is imported. The storage space of the e-SIM card. Therefore, the present invention provides a specific implementation that enables data storage by using an e-SIM card according to the state of use of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1为本发明实施例提供的第一种数据存储方法的流程示意图;1 is a schematic flowchart of a first data storage method according to an embodiment of the present invention;
图2为本发明实施例提供的第二种数据存储方法的流程示意图;2 is a schematic flowchart of a second data storage method according to an embodiment of the present invention;
图3为本发明实施例提供的第三种数据存储方法的流程示意图;FIG. 3 is a schematic flowchart diagram of a third data storage method according to an embodiment of the present disclosure;
图4为本发明实施例提供的第四种数据存储方法的流程示意图;FIG. 4 is a schematic flowchart diagram of a fourth data storage method according to an embodiment of the present disclosure;
图5为本发明实施例提供的第五种数据存储方法的流程示意图;FIG. 5 is a schematic flowchart diagram of a fifth data storage method according to an embodiment of the present disclosure;
图6为本发明实施例提供的第六种数据存储方法的流程示意图;FIG. 6 is a schematic flowchart diagram of a sixth data storage method according to an embodiment of the present disclosure;
图7为本发明实施例提供的第一种数据存储装置的结构示意图;FIG. 7 is a schematic structural diagram of a first data storage device according to an embodiment of the present disclosure;
图8为本发明实施例提供的第二种数据存储装置的结构示意图。FIG. 8 is a schematic structural diagram of a second data storage device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本实施例中的附图,对本实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实 施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in this embodiment will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of them. Example. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供一种数据存储方法,应用于包含e-SIM卡的终端。Embodiments of the present invention provide a data storage method, which is applied to a terminal including an e-SIM card.
其中,该终端可以为手机,还可以为其他任意能够使用e-SIM卡的电子设备。The terminal may be a mobile phone, and may be any other electronic device capable of using an e-SIM card.
如图1所示,该方法的执行主体可以为所述终端,该方法包括:As shown in FIG. 1, the execution body of the method may be the terminal, and the method includes:
101:检测e-SIM卡对应的存储空间的使用状态。101: Detect the usage status of the storage space corresponding to the e-SIM card.
其中,所述使用状态包括所述存储空间的占用率和使用频率中的至少一种。The usage status includes at least one of an occupancy rate and a usage frequency of the storage space.
具体的,存储空间的占用率为已经存储数据的所占用的存储空间的大小与e-SIM卡整个存储空间的大小的比值。例如:e-SIM卡的存储空间的大小为2G,其中,1G被占用也即存储了数据,则该e-SIM卡的存储空间的占用率为50%。Specifically, the occupancy of the storage space is a ratio of the size of the storage space occupied by the stored data to the size of the entire storage space of the e-SIM card. For example, the storage space of the e-SIM card is 2G, and when the 1G is occupied, that is, the data is stored, the storage space of the e-SIM card is 50%.
存储空间的使用频率为存储空间在一段时间内被使用的次数,存储空间是否被使用以及使用次数可通过存储空间中被占用存储容量的变化情况来确定。例如:每隔1小时检测e-SIM卡的使用状态,如果e-SIM卡的存储空间在这1小时内,其被占用的存储空间由1G减小到500M,又由500M增加到800M,则可以确定在此次检测过程中其使用次数为2次。The frequency of use of the storage space is the number of times the storage space is used for a period of time. Whether the storage space is used and the number of uses can be determined by the change of the occupied storage capacity in the storage space. For example, the usage status of the e-SIM card is detected every one hour. If the storage space of the e-SIM card is within 1 hour, the occupied storage space is reduced from 1G to 500M, and from 500M to 800M. It can be determined that the number of uses is 2 times during the test.
可选的,在本步骤的具体执行过程中,终端可周期性的检测e-SIM卡对应的存储空间的使用状态,也可以在特定事件触发下执行该步骤,如终端设备除e-SIM卡之外的其他存储空间的占用率较高时,触发检测e-SIM卡对应的存储空间的使用状态。Optionally, in the specific implementation process of the step, the terminal may periodically detect the usage status of the storage space corresponding to the e-SIM card, or perform the step triggered by a specific event, such as the e-SIM card of the terminal device. When the occupancy rate of other storage spaces is higher, the usage status of the storage space corresponding to the e-SIM card is triggered.
102:判断所述使用状态是否满足第一预设条件。102: Determine whether the usage state satisfies a first preset condition.
其中,当使用状态为存储空间的占用率时,该第一预设条件为e-SIM卡对应的存储空间的占用率是否小于第一占用率阈值;当使用状态为e-SIM卡对应的存储空间的使用频率时,该第一预设条件为e-SIM卡对应的存储空间的使用频率是否小于第一使用频率阈值。当使用状态既包括占用率又包括使用频率时,该第一预设条件为e-SIM卡对应的存储空间的占用率是否小于第一占用率阈 值且e-SIM卡对应的存储空间的使用频率是否小于第一使用频率阈值。The first preset condition is whether the occupation rate of the storage space corresponding to the e-SIM card is smaller than the first occupancy threshold; when the usage status is the storage corresponding to the e-SIM card, when the usage status is the occupancy of the storage space. When the frequency of use of the space is used, the first preset condition is whether the frequency of use of the storage space corresponding to the e-SIM card is less than the first use frequency threshold. When the usage state includes the occupancy rate and the usage frequency, the first preset condition is whether the occupation rate of the storage space corresponding to the e-SIM card is less than the first occupancy threshold. The value and the frequency of use of the storage space corresponding to the e-SIM card is less than the first usage frequency threshold.
该步骤的具体实现方式可见后文详述。The specific implementation of this step can be seen in detail later.
103:如果所述使用状态满足所述第一预设条件,则将预设数据导入所述e-SIM卡的存储空间。103: If the usage status satisfies the first preset condition, import preset data into a storage space of the e-SIM card.
其中,预设数据为位于终端中除e-SIM卡的存储空间以外的其他存储空间中的数据。The preset data is data located in a storage space other than the storage space of the e-SIM card in the terminal.
可选的,该预设数据为不经常使用的数据。具体的,所述不经常使用的数据可以为一些使用频率较低的照片、文档等数据。可通过统计一段时间内用户对各个数据的使用频率来确定,如果用户对某些数据的使用频率较低,则可将这些数据确定为用户不经常使用的数据。Optionally, the preset data is data that is used infrequently. Specifically, the infrequently used data may be some photos, documents, and the like that are used less frequently. It can be determined by counting the frequency of use of each data by the user over a period of time. If the frequency of use of certain data by the user is low, the data can be determined as data that the user does not frequently use.
如果使用状态满足第一预设条件,则表明e-SIM卡对应的存储空间中存在较多未被占用的存储空间,则将其他存储空间的数据导入e-SIM卡以有效利用e-SIM卡的存储空间。If the usage state satisfies the first preset condition, it indicates that there is more unoccupied storage space in the storage space corresponding to the e-SIM card, and the data of the other storage space is imported into the e-SIM card to effectively utilize the e-SIM card. Storage space.
本发明实施例提供的数据存储方法,检测e-SIM卡的存储空间的使用状态,并判断其使用状态是否满足第一预设条件,当满足该第一预设条件时,将预设数据导入e-SIM卡的存储空间。因此,本发明实施例提供了一种能够根据e-SIM卡的使用状态利用e-SIM卡实现数据存储的具体实现方式,能够有效利用e-SIM卡的存储空间。The data storage method provided by the embodiment of the present invention detects the usage state of the storage space of the e-SIM card, and determines whether the usage state satisfies the first preset condition. When the first preset condition is met, the preset data is imported. The storage space of the e-SIM card. Therefore, the embodiment of the present invention provides a specific implementation manner that can implement data storage by using an e-SIM card according to the usage state of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
作为图1所示实施例的具体应用,本发明实施例还给出了当所述使用状态为所述存储空间的占用率的具体实现过程。As a specific application of the embodiment shown in FIG. 1, the embodiment of the present invention further provides a specific implementation process when the usage status is the occupancy rate of the storage space.
如图2所示,本发明实施例还提供一种数据存储方法,包括:As shown in FIG. 2, an embodiment of the present invention further provides a data storage method, including:
201:检测e-SIM卡对应的存储空间的占用率。201: Detect an occupancy rate of a storage space corresponding to the e-SIM card.
该步骤的具体实现过程可参考步骤101,此处不再赘述。For the specific implementation process of this step, refer to step 101, and details are not described herein again.
202:判断所述占用率是否小于第一占用率阈值。202: Determine whether the occupancy rate is less than a first occupancy threshold.
其中,该第一占用率阈值可以为预先设定好的,也可以由用户根据需求更改。 The first occupancy threshold may be preset or may be changed by the user according to requirements.
203:如果所述占用率小于所述第一占用率阈值,则将预设数据导入所述e-SIM卡的存储空间。203: If the occupancy rate is less than the first occupancy threshold, import preset data into a storage space of the e-SIM card.
示例性的,第一占用率阈值为10%,则在步骤202中,判断e-SIM卡对应的存储空间的占用率是否小于10%,在该步骤203中,如果e-SIM卡对应的存储空间的占用率小于10%,则将预设数据导入e-SIM卡的存储空间。Exemplarily, if the first occupancy threshold is 10%, then in step 202, it is determined whether the occupancy of the storage space corresponding to the e-SIM card is less than 10%. In this step 203, if the e-SIM card corresponds to the storage. If the occupancy of the space is less than 10%, the preset data is imported into the storage space of the e-SIM card.
本发明实施例提供的数据存储方法,检测e-SIM卡的存储空间的占用率,并判断其占用率是否小于第一占用率阈值,当小于时,将预设数据导入e-SIM卡的存储空间。因此,本发明实施例提供了一种能够根据e-SIM卡的存储空间的占用率利用e-SIM卡实现数据存储的具体实现方式,能够有效利用e-SIM卡的存储空间。The data storage method provided by the embodiment of the present invention detects the occupancy rate of the storage space of the e-SIM card, and determines whether the occupancy rate is less than the first occupancy rate threshold. When less than, the preset data is imported into the storage of the e-SIM card. space. Therefore, the embodiment of the present invention provides a specific implementation manner that can implement data storage by using an e-SIM card according to the occupancy rate of the storage space of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
作为图1所示实施例的具体应用,本发明实施例还给出了当所述使用状态为所述存储空间的使用频率的具体实现过程。As a specific application of the embodiment shown in FIG. 1, the embodiment of the present invention further provides a specific implementation process when the usage state is the usage frequency of the storage space.
如图3所示,本发明实施例提供了一种数据存储方法,包括:As shown in FIG. 3, an embodiment of the present invention provides a data storage method, including:
301:检测e-SIM卡对应的存储空间的使用频率。301: Detect the frequency of use of the storage space corresponding to the e-SIM card.
其中,该步骤的具体实现过程可参考步骤101,此处不再赘述。For the specific implementation process of this step, refer to step 101, and details are not described herein again.
302:判断所述使用频率是否小于第一使用频率阈值。302: Determine whether the used frequency is less than a first usage frequency threshold.
其中,该第一使用频率阈值可以为预先设定好的,也可以由用户根据需求更改。The first usage frequency threshold may be preset or may be changed by the user according to requirements.
303:如果所述使用频率小于所述第一使用频率阈值,则将预设数据导入所述e-SIM卡的存储空间。303: If the used frequency is less than the first usage frequency threshold, import preset data into a storage space of the e-SIM card.
示例性的:第一使用频率阈值为在一段时间内其使用次数为5次,则在步骤302中,判断在该一段时间内,e-SIM卡对应的存储空间的使用次数是否小于5次,在该步骤303中,如果e-SIM卡对应的存储空间的使用次数在该一段时间内小于5次,则将预设数据导入e-SIM卡的存储空间。For example, if the first usage frequency threshold is 5 times in a period of time, then in step 302, it is determined whether the usage time of the storage space corresponding to the e-SIM card is less than 5 times. In this step 303, if the number of uses of the storage space corresponding to the e-SIM card is less than 5 times in the period of time, the preset data is imported into the storage space of the e-SIM card.
本发明实施例提供的数据存储方法,检测e-SIM卡的存储空间的使用频率,并判断其使用频率是否小于第一使用频率阈值,当小于该第一使用频率阈值时, 将预设数据导入e-SIM卡的存储空间。因此,本发明实施例提供了一种能够根据e-SIM卡的使用频率利用e-SIM卡实现数据存储的具体实现方式,能够有效利用e-SIM卡的存储空间。The data storage method provided by the embodiment of the present invention detects the frequency of use of the storage space of the e-SIM card, and determines whether the frequency of use is less than the first use frequency threshold, and when it is less than the first use frequency threshold, Import preset data into the storage space of the e-SIM card. Therefore, the embodiment of the present invention provides a specific implementation manner that can implement data storage by using an e-SIM card according to the usage frequency of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
作为图1所示实施例的具体应用,本发明实施例还给出了当所述使用状态包括所述存储空间的占用率和使用频率的具体实现过程。As a specific application of the embodiment shown in FIG. 1, the embodiment of the present invention further provides a specific implementation process when the usage state includes the occupancy rate and the usage frequency of the storage space.
如图4所示,本发明实施例提供了一种数据存储方法,包括:As shown in FIG. 4, an embodiment of the present invention provides a data storage method, including:
401:检测e-SIM卡对应的存储空间的占用率和使用频率。401: Detect the occupancy rate and usage frequency of the storage space corresponding to the e-SIM card.
该步骤的具体实现过程可参考步骤101,此处不再赘述。For the specific implementation process of this step, refer to step 101, and details are not described herein again.
402:判断所述使用频率是否小于第一使用频率阈值以及所述占用率是否小于第一占用率阈值。402: Determine whether the used frequency is less than a first usage frequency threshold and whether the occupancy is less than a first occupancy threshold.
403:如果所述使用频率小于所述第一使用频率阈值,且所述占用率小于第一占用率阈值,则将预设数据导入所述e-SIM卡的存储空间。403: If the used frequency is less than the first usage frequency threshold, and the occupancy rate is less than the first occupancy threshold, the preset data is imported into the storage space of the e-SIM card.
示例性的,第一占用率阈值为10%,第一使用频率阈值为在一段时间内其使用次数为5次,则在步骤402中,判断e-SIM卡对应的存储空间的占用率是否小于10%,且在一段时间内,e-SIM卡对应的存储空间的使用次数是否小于5次,在该步骤403中,如果e-SIM卡对应的存储空间的占用率小于10%,且使用次数在该一段时间内小于5次,则将预设数据导入e-SIM卡的存储空间。Exemplarily, the first occupancy threshold is 10%, and the first usage frequency threshold is 5 times in a period of time. In step 402, it is determined whether the occupancy of the storage space corresponding to the e-SIM card is less than 10%, and the usage number of the storage space corresponding to the e-SIM card is less than 5 times in a period of time. In this step 403, if the storage space corresponding to the e-SIM card is less than 10%, and the number of uses is If it is less than 5 times in this period of time, the preset data is imported into the storage space of the e-SIM card.
本发明实施例提供的数据存储方法,检测e-SIM卡的存储空间的占用率和使用频率,并判断其占用率是否小于第一占用率阈值以及其使用频率是否小于第一使用频率阈值,当占用率小于第一占用率阈值且使用频率小于第一使用频率阈值时,将预设数据导入e-SIM卡的存储空间。因此,本发明实施例提供了一种能够根据e-SIM卡的占用率和使用频率,利用e-SIM卡实现数据存储的具体实现方式,能够有效利用e-SIM卡的存储空间。The data storage method provided by the embodiment of the present invention detects the occupancy rate and the usage frequency of the storage space of the e-SIM card, and determines whether the occupancy rate is less than the first occupancy threshold and whether the frequency of use is less than the first usage frequency threshold. When the occupancy rate is less than the first occupancy threshold and the usage frequency is less than the first usage frequency threshold, the preset data is imported into the storage space of the e-SIM card. Therefore, the embodiment of the present invention provides a specific implementation manner that can implement data storage by using an e-SIM card according to the occupancy rate and the frequency of use of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
可选的,作为图1至图4任意实施例所述方法的补充,终端在判断e-SIM卡对应的存储空间的使用状态满足第一预设条件后,会自动将预设数据导入e-SIM卡对应的存储空间。在这种情况下,用户可能并不知道数据进行了移动。 为了便于用户查找移动后的预设数据,本发明实施例还提供了一种数据存储方法。Optionally, as a supplement to the method in any of the embodiments of FIG. 1 to FIG. 4, after determining that the usage state of the storage space corresponding to the e-SIM card meets the first preset condition, the terminal automatically imports the preset data into the e- The storage space corresponding to the SIM card. In this case, the user may not know that the data has been moved. In order to facilitate the user to find the preset data after the movement, the embodiment of the present invention further provides a data storage method.
如图5所示,该方法包括:As shown in FIG. 5, the method includes:
501:检测e-SIM卡对应的存储空间的使用状态。501: Detect the usage status of the storage space corresponding to the e-SIM card.
其中,所述使用状态包括所述存储空间的占用率和使用频率中的至少一种。The usage status includes at least one of an occupancy rate and a usage frequency of the storage space.
502:判断所述使用状态是否满足第一预设条件。502: Determine whether the usage state meets a first preset condition.
503:如果所述使用状态满足所述第一预设条件,则将预设数据导入所述e-SIM卡的存储空间。503: If the usage status satisfies the first preset condition, import preset data into a storage space of the e-SIM card.
其中,步骤501至步骤503的具体实现过程可参考前述步骤101至103、步骤201至步骤203以及步骤301至步骤303,此处不再赘述。For the specific implementation process of the steps 501 to 503, refer to the foregoing steps 101 to 103, step 201 to step 203, and step 301 to step 303, and details are not described herein again.
504:保存所述预设数据的第一存储路径和第二存储路径之间的对应关系。504: Save a correspondence between the first storage path and the second storage path of the preset data.
其中,所述第一存储路径为将预设数据导入所述e-SIM卡的存储空间前,所述预设数据的存储路径,所述第二存储路径为将预设数据导入所述e-SIM卡的存储空间后,所述预设数据的存储路径。The first storage path is a storage path of the preset data before the preset data is imported into the storage space of the e-SIM card, and the second storage path is to import preset data into the e- The storage path of the preset data after the storage space of the SIM card.
可选的,在第一存储路径中保存所述对应关系。Optionally, the corresponding relationship is saved in the first storage path.
示例性的,在将预设数据导入e-SIM卡之前,用于存储该预设数据的存储路径为存储路径1;在将预设数据导入e-SIM卡之后,用于存储该预设数据的存储路径为存储路径2。则在存储路径1中保存存储路径1和存储路径2的对应关系。这样,用户在存储路径1中查找该预设数据时,如果查找不到,则可根据该对应关系从存储路径2中获取该预设数据。Exemplarily, before the preset data is imported into the e-SIM card, the storage path for storing the preset data is the storage path 1; after the preset data is imported into the e-SIM card, the preset data is used for storing the preset data. The storage path is storage path 2. Then, the correspondence between the storage path 1 and the storage path 2 is saved in the storage path 1. In this way, when the user searches for the preset data in the storage path 1, if the user cannot find the preset data, the preset data can be obtained from the storage path 2 according to the corresponding relationship.
可选的,在所述第一存储路径中生成所述第二存储路径的快捷方式。Optionally, a shortcut of the second storage path is generated in the first storage path.
其中,快捷方式的作用为便于用户快速查找和使用预设数据,用户可通过点击该快捷方式跳转到第二存储路径下,并在该第二存储路径下查找到预设数据。The function of the shortcut is to facilitate the user to quickly find and use the preset data, and the user can jump to the second storage path by clicking the shortcut, and find the preset data in the second storage path.
本发明实施例提供的数据存储方法,在将预设数据导入e-SIM后,保存导入前预设数据的存储路径和导入后预设数据的存储路径之间的对应关系,使得 用户能够根据该对应关系及时找到经过移动了的预设数据,减少因用户不知道预设数据的移动过程带来的不便。The data storage method provided by the embodiment of the present invention, after importing the preset data into the e-SIM, saves the correspondence between the storage path of the preset data before the import and the storage path of the preset data after the import, so that The user can find the moved preset data in time according to the corresponding relationship, and reduce the inconvenience caused by the movement process that the user does not know the preset data.
作为图1至图5任一实施例所述方法的补充,本发明实施例除了提供一种将数据导入SIM卡对应的存储空间的实现方式,还提供了一种将SIM卡对应的存储空间中存储的部分数据导出的具体实现方式。In addition to the method for importing data into the storage space corresponding to the SIM card, the embodiment of the present invention provides a storage space corresponding to the SIM card. The specific implementation of the stored partial data export.
如图6所示,该方法包括:As shown in FIG. 6, the method includes:
601:检测e-SIM卡对应的存储空间的使用状态。601: Detect the usage status of the storage space corresponding to the e-SIM card.
其中,所述使用状态包括所述存储空间的占用率和使用频率中的至少一种。The usage status includes at least one of an occupancy rate and a usage frequency of the storage space.
602:判断所述使用状态是否满足第二预设条件。602: Determine whether the usage state meets a second preset condition.
603:如果所述使用状态满足所述第二预设条件,则将位于所述e-SIM卡存储空间的指定数据导出。603: Export the specified data located in the e-SIM card storage space if the usage state satisfies the second preset condition.
可选的,该指定数据为前文所述预设数据,也即在将预设数据导入e-SIM卡后,如果在后续检测过程中,e-SIM卡的使用状态满足第二预设条件,则将之前导入的预设数据再导出。Optionally, the specified data is the preset data, that is, after the preset data is imported into the e-SIM card, if the usage state of the e-SIM card meets the second preset condition in the subsequent detection process, The previously imported preset data is then exported.
可选的,该指定数据还可以为e-SIM卡中其他使用频率较低的数据。Optionally, the specified data may also be other data that is used less frequently in the e-SIM card.
可选的,在将指定数据导出后,保存所述指定数据的第一存储路径和第二存储路径之间的对应关系。Optionally, after the specified data is exported, the correspondence between the first storage path and the second storage path of the specified data is saved.
其中,所述第一存储路径为将指定数据导出所述e-SIM卡的存储空间前,所述指定数据的存储路径,所述第二存储路径为将指定数据导出所述e-SIM卡的存储空间后,所述指定数据的存储路径。The first storage path is a storage path of the specified data before the designated data is exported to the storage space of the e-SIM card, and the second storage path is used to export the specified data to the e-SIM card. The storage path of the specified data after the storage space.
可选的,在所述第一存储路径中生成所述第二存储路径的快捷方式。Optionally, a shortcut of the second storage path is generated in the first storage path.
其中,快捷方式的作用为便于用户快速查找和使用指定数据,用户可通过点击该快捷方式跳转到第二存储路径下,并在该第二存储路径下查找到指定数据。The function of the shortcut is to facilitate the user to quickly find and use the specified data, and the user can jump to the second storage path by clicking the shortcut, and find the specified data in the second storage path.
与前文所述将预设数据导入e-SIM卡的存储空间的实现过程类似,根据步骤601中使用状态的不同实现方式,步骤602和步骤603也有不同的实现方式。 Similar to the implementation process of importing the preset data into the storage space of the e-SIM card, the steps 602 and 603 have different implementation manners according to different implementation states of the usage state in step 601.
方式一:当使用状态为占用率时,步骤602的具体实现过程包括:判断e-SIM卡对应的存储空间的占用率是否大于第二占用率阈值。相应的,步骤603的具体实现过程包括:如果e-SIM卡对应的存储空间的占用率大于第二占用率阈值,则将位于e-SIM卡存储空间的指定数据导出。Manner 1: When the usage status is the occupancy rate, the specific implementation process of step 602 includes: determining whether the occupancy rate of the storage space corresponding to the e-SIM card is greater than the second occupancy rate threshold. Correspondingly, the specific implementation process of step 603 includes: if the occupation rate of the storage space corresponding to the e-SIM card is greater than the second occupancy threshold, the specified data located in the storage space of the e-SIM card is derived.
可选的,该第二占用率阈值的取值可以由终端自动设定或用户设定,其取值与第一占用率阈值不同,例如可以为90%。Optionally, the value of the second occupancy threshold may be automatically set by the terminal or set by the user, and the value is different from the first occupancy threshold, for example, may be 90%.
方式二:当使用状态为使用频率时,步骤602的具体实现过程包括:判断e-SIM卡对应的存储空间的使用频率是否大于第二使用频率阈值。相应的,步骤603的具体实现过程包括:如果e-SIM卡对应的存储空间的使用频率大于第二使用频率阈值,则将位于e-SIM卡存储空间的指定数据导出。Manner 2: When the usage state is the usage frequency, the specific implementation process of step 602 includes: determining whether the usage frequency of the storage space corresponding to the e-SIM card is greater than the second usage frequency threshold. Correspondingly, the specific implementation process of step 603 includes: if the usage frequency of the storage space corresponding to the e-SIM card is greater than the second usage frequency threshold, the specified data located in the storage space of the e-SIM card is derived.
可选的,该第二使用频率阈值的取值可以由终端自动设定或用户设定,其取值与第一使用频率阈值不同,例如可以为一定时间内10次。Optionally, the value of the second usage frequency threshold may be automatically set by the terminal or set by the user, and the value is different from the first usage frequency threshold, for example, 10 times in a certain period of time.
方式三:当使用状态包括占用率和使用频率时,步骤602的具体实现过程包括:判断e-SIM卡对应的存储空间的占用率是否大于第二占用率阈值以及e-SIM卡对应的存储空间的使用频率是否大于第二使用频率阈值。相应的,步骤603的具体实现过程包括:如果e-SIM卡对应的存储空间的占用率大于第二占用率阈值,且e-SIM卡对应的存储空间的使用频率大于第二使用频率阈值,则将位于e-SIM卡存储空间的指定数据导出。Manner 3: When the usage status includes the occupancy rate and the usage frequency, the specific implementation process of step 602 includes: determining whether the occupancy rate of the storage space corresponding to the e-SIM card is greater than the second occupancy rate threshold and the storage space corresponding to the e-SIM card. Whether the frequency of use is greater than the second usage frequency threshold. Correspondingly, the specific implementation process of step 603 includes: if the usage rate of the storage space corresponding to the e-SIM card is greater than the second occupancy threshold, and the usage frequency of the storage space corresponding to the e-SIM card is greater than the second usage frequency threshold, Export the specified data located in the e-SIM card storage space.
本发明实施例提供的数据存储方法,检测e-SIM卡的存储空间的使用状态,并判断其使用状态是否满足第二预设条件,当满足该第二预设条件时,将位于所述e-SIM卡存储空间的指定数据导出。因此,本发明提供了一种能够根据e-SIM卡的使用状态利用e-SIM卡实现数据存储的具体实现方式,能够有效利用e-SIM卡的存储空间。The data storage method provided by the embodiment of the present invention detects the usage state of the storage space of the e-SIM card, and determines whether the usage state satisfies the second preset condition. When the second preset condition is met, the e is located in the e - The specified data of the SIM card storage space is exported. Therefore, the present invention provides a specific implementation that enables data storage by using an e-SIM card according to the state of use of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
本发明实施例还提供了一种数据存储装置,应用于包含e-SIM卡的终端,用于执行图1至图6任意实施例所述方法。The embodiment of the present invention further provides a data storage device, which is applied to a terminal including an e-SIM card, for performing the method in any of the embodiments of FIG. 1 to FIG. 6.
如图7所示,所述装置包括: As shown in FIG. 7, the device includes:
检测模块701,用于检测所述e-SIM卡对应的存储空间的使用状态。The detecting module 701 is configured to detect a usage state of the storage space corresponding to the e-SIM card.
可选的,所述使用状态包括所述存储空间的占用率和使用频率中的至少一种。Optionally, the usage state includes at least one of an occupancy rate and a usage frequency of the storage space.
判断模块702,用于判断所述使用状态是否满足第一预设条件。The determining module 702 is configured to determine whether the usage state meets the first preset condition.
处理模块703,用于当所述使用状态满足所述第一预设条件时,将预设数据导入所述e-SIM卡的存储空间。The processing module 703 is configured to import preset data into a storage space of the e-SIM card when the usage state satisfies the first preset condition.
本发明实施例提供的数据存储装置,检测模块检测e-SIM卡的存储空间的使用状态,判断模块判断其使用状态是否满足第二预设条件,当满足该第二预设条件时,处理模块将位于所述e-SIM卡存储空间的指定数据导出。因此,本发明实施例提供的数据存储装置能够根据e-SIM卡的使用状态利用e-SIM卡实现数据存储,能够有效利用e-SIM卡的存储空间。In the data storage device provided by the embodiment of the present invention, the detecting module detects the usage state of the storage space of the e-SIM card, and the determining module determines whether the usage state satisfies the second preset condition, and when the second preset condition is met, the processing module The specified data located in the e-SIM card storage space is derived. Therefore, the data storage device provided by the embodiment of the present invention can implement data storage by using an e-SIM card according to the use state of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
进一步的,所述判断模块702,具体用于当所述使用状态为所述存储空间的占用率时,判断所述占用率是否小于第一占用率阈值。Further, the determining module 702 is specifically configured to determine, when the usage status is the occupancy rate of the storage space, whether the occupancy rate is less than a first occupancy rate threshold.
所述处理模块703,具体用于当所述占用率小于所述第一占用率阈值时,将预设数据导入所述e-SIM卡的存储空间。The processing module 703 is specifically configured to import preset data into a storage space of the e-SIM card when the occupancy rate is less than the first occupancy threshold.
进一步的,所述判断模块702,具体用于当所述使用状态为所述存储空间的使用频率时,判断所述使用频率是否小于第一使用频率阈值。Further, the determining module 702 is specifically configured to determine, when the usage state is a use frequency of the storage space, whether the usage frequency is less than a first usage frequency threshold.
所述处理模块703,具体用于当所述使用频率小于所述第一使用频率阈值时,将预设数据导入所述e-SIM卡的存储空间。The processing module 703 is specifically configured to import preset data into a storage space of the e-SIM card when the usage frequency is less than the first usage frequency threshold.
如图8所示,本发明实施例还提供了一种数据存储的装置,该装置还包括保存模块801,具体用于保存所述预设数据的第一存储路径和第二存储路径之间的对应关系,所述第一存储路径为将预设数据导入所述e-SIM卡的存储空间前,所述预设数据的存储路径,所述第二存储路径为将预设数据导入所述e-SIM卡的存储空间后,所述预设数据的存储路径。As shown in FIG. 8, the embodiment of the present invention further provides a device for storing data, and the device further includes a saving module 801, specifically configured to save between the first storage path and the second storage path of the preset data. Corresponding relationship, the first storage path is a storage path of the preset data before the preset data is imported into the storage space of the e-SIM card, and the second storage path is to import preset data into the e - a storage path of the preset data after the storage space of the SIM card.
可选的,所述处理模块703,还用于在所述第一存储路径中生成所述第二存储路径的快捷方式。 Optionally, the processing module 703 is further configured to generate a shortcut of the second storage path in the first storage path.
本发明实施例提供的数据存储装置,在将预设数据导入e-SIM后,保存模块保存导入前预设数据的存储路径和导入后预设数据的存储路径之间的对应关系,使得用户能够根据该对应关系及时找到经过移动了的预设数据,减少因用户不知道预设数据的移动过程带来的不便。In the data storage device provided by the embodiment of the present invention, after the preset data is imported into the e-SIM, the saving module saves the correspondence between the storage path of the preset data before the import and the storage path of the preset data after the import, so that the user can According to the corresponding relationship, the moved preset data is found in time, and the inconvenience caused by the movement process that the user does not know the preset data is reduced.
进一步的,所述判断模块702,还用于判断所述使用状态是否满足第二预设条件。Further, the determining module 702 is further configured to determine whether the usage state meets a second preset condition.
所述处理模块703,还用于当所述使用状态满足所述第二预设条件时,将位于所述e-SIM卡存储空间的指定数据导出。The processing module 703 is further configured to: when the usage state meets the second preset condition, export specified data located in the e-SIM card storage space.
本发明实施例提供的数据存储装置,检测模块检测e-SIM卡的存储空间的使用状态,判断模块判断其使用状态是否满足第二预设条件,当满足该第二预设条件时,处理模块将位于所述e-SIM卡存储空间的指定数据导出。因此,本发明实施例提供的数据存储装置能够根据e-SIM卡的使用状态利用e-SIM卡实现数据存储,能够有效利用e-SIM卡的存储空间。In the data storage device provided by the embodiment of the present invention, the detecting module detects the usage state of the storage space of the e-SIM card, and the determining module determines whether the usage state satisfies the second preset condition, and when the second preset condition is met, the processing module The specified data located in the e-SIM card storage space is derived. Therefore, the data storage device provided by the embodiment of the present invention can implement data storage by using an e-SIM card according to the use state of the e-SIM card, and can effectively utilize the storage space of the e-SIM card.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. . Based on the understanding, the technical solution of the present invention, which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. A hard disk or optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到 变化或替换,都应涵盖在本发明的保护范围之内。 The above description is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of within the technical scope disclosed by the present invention. Variations or substitutions are intended to be covered by the scope of the invention.

Claims (12)

  1. 一种数据存储方法,其特征在于,应用于包含e-SIM卡的终端,所述方法包括:A data storage method, which is applied to a terminal including an e-SIM card, the method comprising:
    检测所述e-SIM卡对应的存储空间的使用状态;Detecting a usage status of a storage space corresponding to the e-SIM card;
    判断所述使用状态是否满足第一预设条件;Determining whether the usage state satisfies a first preset condition;
    如果所述使用状态满足所述第一预设条件,则将预设数据导入所述e-SIM卡的存储空间。If the usage status satisfies the first preset condition, the preset data is imported into the storage space of the e-SIM card.
  2. 根据权利要求1所述的方法,其特征在于,所述使用状态为所述存储空间的占用率,所述判断所述使用状态是否满足第一预设条件,包括:The method according to claim 1, wherein the usage status is an occupancy rate of the storage space, and the determining whether the usage status satisfies a first preset condition comprises:
    判断所述占用率是否小于第一占用率阈值;Determining whether the occupancy rate is less than a first occupancy threshold;
    所述如果所述使用状态满足第一预设条件,则将预设数据导入所述e-SIM卡的存储空间,包括:And if the usage status meets the first preset condition, the preset data is imported into the storage space of the e-SIM card, including:
    如果所述占用率小于所述第一占用率阈值,则将预设数据导入所述e-SIM卡的存储空间。If the occupancy rate is less than the first occupancy threshold, the preset data is imported into the storage space of the e-SIM card.
  3. 根据权利要求1所述的方法,其特征在于,所述使用状态为所述存储空间的使用频率,所述判断所述使用状态是否满足第一预设条件,包括:The method according to claim 1, wherein the usage status is a frequency of use of the storage space, and the determining whether the usage status satisfies a first preset condition comprises:
    判断所述使用频率是否小于第一使用频率阈值;Determining whether the used frequency is less than a first use frequency threshold;
    所述如果所述使用状态满足所述第一预设条件,则将预设数据导入所述e-SIM卡的存储空间,包括:And if the usage status meets the first preset condition, importing the preset data into the storage space of the e-SIM card, including:
    如果所述使用频率小于所述第一使用频率阈值,则将预设数据导入所述e-SIM卡的存储空间。If the usage frequency is less than the first usage frequency threshold, the preset data is imported into the storage space of the e-SIM card.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述将预设数据导入所述e-SIM卡的存储空间之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein after the importing the preset data into the storage space of the e-SIM card, the method further comprises:
    保存所述预设数据的第一存储路径和第二存储路径之间的对应关系,所述第一存储路径为将预设数据导入所述e-SIM卡的存储空间前,所述预设数据的 存储路径,所述第二存储路径为将预设数据导入所述e-SIM卡的存储空间后,所述预设数据的存储路径。Preserving a correspondence between the first storage path and the second storage path of the preset data, where the first storage path is before importing preset data into a storage space of the e-SIM card, the preset data of a storage path, where the second storage path is a storage path of the preset data after the preset data is imported into the storage space of the e-SIM card.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    在所述第一存储路径中生成所述第二存储路径的快捷方式。Generating a shortcut of the second storage path in the first storage path.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    判断所述使用状态是否满足第二预设条件;Determining whether the usage state satisfies a second preset condition;
    如果所述使用状态满足所述第二预设条件,则将位于所述e-SIM卡存储空间的指定数据导出。If the usage status satisfies the second preset condition, the specified data located in the e-SIM card storage space is derived.
  7. 一种数据存储装置,其特征在于,应用于包含e-SIM卡的终端,所述装置包括:A data storage device, which is applied to a terminal including an e-SIM card, the device comprising:
    检测模块,用于检测所述e-SIM卡对应的存储空间的使用状态;a detecting module, configured to detect a usage state of a storage space corresponding to the e-SIM card;
    判断模块,用于判断所述使用状态是否满足第一预设条件;a determining module, configured to determine whether the usage state meets a first preset condition;
    处理模块,用于当所述使用状态满足所述第一预设条件时,将预设数据导入所述e-SIM卡的存储空间。And a processing module, configured to import preset data into a storage space of the e-SIM card when the usage state satisfies the first preset condition.
  8. 根据权利要求7所述的装置,其特征在于,The device of claim 7 wherein:
    所述判断模块,具体用于当所述使用状态为所述存储空间的占用率时,判断所述占用率是否小于第一占用率阈值;The determining module is specifically configured to determine, when the usage status is the occupancy rate of the storage space, whether the occupancy rate is less than a first occupancy rate threshold;
    所述处理模块,具体用于当所述占用率小于所述第一占用率阈值时,将预设数据导入所述e-SIM卡的存储空间。The processing module is specifically configured to import preset data into a storage space of the e-SIM card when the occupancy rate is less than the first occupancy threshold.
  9. 根据权利要求7所述的装置,其特征在于,所述判断模块,具体用于当所述使用状态为所述存储空间的使用频率时,判断所述使用频率是否小于第一使用频率阈值;The device according to claim 7, wherein the determining module is configured to determine whether the used frequency is less than a first use frequency threshold when the usage state is a use frequency of the storage space;
    所述处理模块,具体用于当所述使用频率小于所述第一使用频率阈值时,将预设数据导入所述e-SIM卡的存储空间。The processing module is configured to import preset data into a storage space of the e-SIM card when the usage frequency is less than the first usage frequency threshold.
  10. 根据权利要求7至9任一项所述的装置,其特征在于,所述装置还包括保存模块,具体用于保存所述预设数据的第一存储路径和第二存储路径之间 的对应关系,所述第一存储路径为将预设数据导入所述e-SIM卡的存储空间前,所述预设数据的存储路径,所述第二存储路径为将预设数据导入所述e-SIM卡的存储空间后,所述预设数据的存储路径。The device according to any one of claims 7 to 9, wherein the device further comprises a saving module, specifically configured to save between the first storage path and the second storage path of the preset data. Corresponding relationship, the first storage path is a storage path of the preset data before the preset data is imported into the storage space of the e-SIM card, and the second storage path is to import preset data into the The storage path of the preset data after the storage space of the e-SIM card.
  11. 根据权利要求10所述的装置,其特征在于,所述处理模块,还用于在所述第一存储路径中生成所述第二存储路径的快捷方式。The device according to claim 10, wherein the processing module is further configured to generate a shortcut of the second storage path in the first storage path.
  12. 根据权利要求7所述的装置,其特征在于,The device of claim 7 wherein:
    所述判断模块,还用于判断所述使用状态是否满足第二预设条件;The determining module is further configured to determine whether the usage state meets a second preset condition;
    所述处理模块,还用于当所述使用状态满足所述第二预设条件时,将位于所述e-SIM卡存储空间的指定数据导出。 The processing module is further configured to: when the usage state meets the second preset condition, export specified data located in the e-SIM card storage space.
PCT/CN2016/097470 2016-07-19 2016-08-31 Data storage method and apparatus WO2018014423A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610575418.4A CN106250056A (en) 2016-07-19 2016-07-19 Date storage method and device
CN201610575418.4 2016-07-19

Publications (1)

Publication Number Publication Date
WO2018014423A1 true WO2018014423A1 (en) 2018-01-25

Family

ID=57613513

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097470 WO2018014423A1 (en) 2016-07-19 2016-08-31 Data storage method and apparatus

Country Status (2)

Country Link
CN (1) CN106250056A (en)
WO (1) WO2018014423A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655818A (en) * 2009-09-10 2010-02-24 深圳华为通信技术有限公司 Storage method and equipment
CN101778359A (en) * 2010-01-22 2010-07-14 华为终端有限公司 Method, device and communication terminal for receiving short message
CN105260140A (en) * 2015-10-21 2016-01-20 浪潮(北京)电子信息产业有限公司 Disk size monitoring method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655818A (en) * 2009-09-10 2010-02-24 深圳华为通信技术有限公司 Storage method and equipment
CN101778359A (en) * 2010-01-22 2010-07-14 华为终端有限公司 Method, device and communication terminal for receiving short message
CN105260140A (en) * 2015-10-21 2016-01-20 浪潮(北京)电子信息产业有限公司 Disk size monitoring method and apparatus

Also Published As

Publication number Publication date
CN106250056A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN106569585B (en) A kind of method and terminal managing program process
EP3336677B1 (en) Method and apparatus for controlling touch screen of terminal, and terminal
US9823945B2 (en) Method and apparatus for managing application program
EP3001290A1 (en) Data reporting method, apparatus and terminal device
US9639399B2 (en) Method, apparatus and terminal for releasing memory
CN106681581B (en) Application icon arrangement method and device
CN103135903B (en) A kind of chart gallery display method and device
WO2013182157A1 (en) Application program processing method and device
US20140240261A1 (en) Method for determining touch input object and electronic device thereof
WO2019007248A1 (en) Recommendation method and apparatus, device, and storage medium
WO2016008260A1 (en) Setup method, device and apparatus for terminal and non-volatile computer storage medium
US9451423B2 (en) Method and apparatus for recording information during a call
CN103197931B (en) A kind of quick interface arrangement method based on touch screen and device
WO2017206901A1 (en) Process control method and related device
CN104283765A (en) Information display method and device and terminal equipment
CN104750589B (en) A kind of memory parameter adjusting method and mobile terminal
WO2015172283A1 (en) Method, device and mobile terminal for reducing power consumption
CN105760259A (en) Data backup method and device and electronic equipment
RU2649945C2 (en) Method for improving touch recognition and electronic device thereof
CN105630352A (en) Mistaken touch prevention method and device
CN106227413A (en) A kind of application based on mobile terminal starts detection method and system
CN104834553B (en) Service concurrent processing method of user terminal and user terminal
WO2018014423A1 (en) Data storage method and apparatus
WO2017166640A1 (en) Application calling method and terminal

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: 16909350

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16909350

Country of ref document: EP

Kind code of ref document: A1