CN104765576A - Data storage method and data storage device - Google Patents
Data storage method and data storage device Download PDFInfo
- Publication number
- CN104765576A CN104765576A CN201510208031.0A CN201510208031A CN104765576A CN 104765576 A CN104765576 A CN 104765576A CN 201510208031 A CN201510208031 A CN 201510208031A CN 104765576 A CN104765576 A CN 104765576A
- Authority
- CN
- China
- Prior art keywords
- memory card
- data
- flash memory
- built
- written
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明涉及存储领域,具体涉及一种数据存储方法和数据存储装置。The invention relates to the storage field, in particular to a data storage method and a data storage device.
背景技术Background technique
随着科技的发展,手机的功能也越来越强大。With the development of technology, the functions of mobile phones are becoming more and more powerful.
目前,大多数手机都配置有高像素的摄像头,有的手机还带有原画引擎,通过该原画引擎将几张高像素的相片合成在一起成为一张高清原画,虽然高像素的摄像头能够拍出非常清晰的照片,然而,这类照片的占用空间也非常大,这使得一些快闪存储器卡(例如TF卡)由于本身的硬件限制导致写入速度远远小于拍照需求,从而在使用高像素的摄像头拍照(例如连拍)时,容易出现卡顿、甚至出现数据积压导致系统奔溃死机的现象。另外,长期演进(LTE,Long Term Evolution)下载速率理论值会达到20兆每秒,以后将会更高,通常,手机会将数据下载到其快闪存储器卡中,由于下载速度决定了写入速度,这也使得在将数据下载到上述快闪存储器卡时,容易出现卡顿、甚至出现数据积压导致系统奔溃死机的现象。At present, most mobile phones are equipped with high-resolution cameras, and some mobile phones also have an original image engine, through which several high-resolution photos are synthesized into a high-definition original image, although a high-resolution camera can capture Very clear photos, however, this kind of photos also take up a lot of space, which makes some flash memory cards (such as TF cards) due to their own hardware limitations, the writing speed is much lower than the photo requirements, so when using high-pixel When the camera takes pictures (such as continuous shooting), it is prone to stuttering, or even data backlogs that cause the system to crash and crash. In addition, the theoretical value of the long-term evolution (LTE, Long Term Evolution) download rate will reach 20 megabits per second, and it will be higher in the future. Usually, the mobile phone will download data to its flash memory card, because the download speed determines the write rate. Speed, which also makes it easy to get stuck when downloading data to the above-mentioned flash memory card, or even cause the system to crash due to a backlog of data.
目前并没有相关方案能够防止因快闪存储卡读写速度慢而导致手机卡顿死机的问题。At present, there is no relevant solution to prevent the problem of the mobile phone freezing and crashing due to the slow reading and writing speed of the flash memory card.
发明内容Contents of the invention
本发明提供一种数据存储方法和数据存储装置,用于提高数据存储的可靠性。The invention provides a data storage method and a data storage device, which are used to improve the reliability of data storage.
本发明第一方面提供一种数据存储方法,应用于包含外置存储卡和内置存储卡的移动终端,所述外置存储卡具体为快闪存储器卡,所述数据存储方法包括:在数据写入所述移动终端的快闪存储器卡的过程中,检测所述快闪存储器卡的写入速度;若所述快闪存储器卡的写入速度超过预设的门限值,则将本次的数据写入位置从所述快闪存储器卡修改为所述内置存储卡;将本次已写入所述内置存储卡的数据转存到所述快闪存储器卡中,并使得所述转存到所述快闪存储器卡中的数据与本次已写入所述快闪存储器卡中的数据拼接。The first aspect of the present invention provides a data storage method, which is applied to a mobile terminal including an external memory card and a built-in memory card. The external memory card is specifically a flash memory card. The data storage method includes: In the process of entering the flash memory card of the mobile terminal, the writing speed of the flash memory card is detected; if the writing speed of the flash memory card exceeds the preset threshold value, the current The data writing location is modified from the flash memory card to the built-in memory card; the data that has been written into the built-in memory card is transferred to the flash memory card, and the transfer is made to The data in the flash memory card is spliced with the data written in the flash memory card this time.
本发明第二方面提供一种数据存储装置,应用于包含外置存储卡和内置存储卡的移动终端,所述外置存储卡具体为快闪存储器卡,所述数据存储装置包括:第一检测单元,用于在数据写入所述移动终端的快闪存储器卡的过程中,检测所述快闪存储器卡的写入速度;修改单元,用于当所述第一检测单元检测到所述快闪存储器卡的写入速度超过预设的门限值时,将本次的数据写入位置从所述快闪存储器卡修改为所述内置存储卡;转存单元,用于将本次已写入所述内置存储卡的数据转存到所述快闪存储器卡中,并使得所述转存到所述快闪存储器卡中的数据与本次已写入所述快闪存储器卡中的数据拼接。The second aspect of the present invention provides a data storage device, which is applied to a mobile terminal including an external memory card and a built-in memory card, the external memory card is specifically a flash memory card, and the data storage device includes: a first detection A unit for detecting the writing speed of the flash memory card during data writing into the flash memory card of the mobile terminal; a modifying unit for detecting the fast When the writing speed of the flash memory card exceeds the preset threshold value, the data writing position of this time is changed from the flash memory card to the built-in memory card; The data stored in the built-in memory card is transferred to the flash memory card, and the data transferred to the flash memory card is the same as the data that has been written in the flash memory card this time. stitching.
由上可见,本发明中在数据写入移动终端的快闪存储器卡的过程中检测该快闪存储器卡的写入速度,如果发现该快闪存储器卡的写入速度超过预设的门限值时,修改数据写入位置,使得后面的数据放到该移动终端的内置存储卡里,之后再将本次写入该内置存储卡里的数据转存到该快闪存储器卡并与之前的数据拼接起来,从而能够避免直接写入快闪存储器卡时写入速度跟不上导致的移动终端死机、卡顿等问题,有效防止了因快闪存储卡读写速度慢而导致移动终端卡顿、死机,进而提高了数据存储的可靠性。As can be seen from the above, in the present invention, the writing speed of the flash memory card is detected during the process of data writing into the flash memory card of the mobile terminal, if the writing speed of the flash memory card is found to exceed the preset threshold value When modifying the data writing position, the following data is placed in the built-in memory card of the mobile terminal, and then the data written in the built-in memory card is transferred to the flash memory card and compared with the previous data Splicing together, so as to avoid problems such as mobile terminal crashes and freezes caused by the slow writing speed when directly writing to the flash memory card, and effectively prevent the mobile terminal from being stuck and stuck due to the slow read and write speed of the flash memory card. Crash, thereby improving the reliability of data storage.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明提供的一种数据存储方法一个实施例流程示意图;Fig. 1 is a schematic flow chart of an embodiment of a data storage method provided by the present invention;
图2为本发明提供的一种数据存储装置一个实施例结构示意图。FIG. 2 is a schematic structural diagram of an embodiment of a data storage device provided by the present invention.
具体实施方式detailed description
为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例提供一种数据存储方法,应用于包含外置存储卡和内置存储卡的移动终端,其中,所述外置存储卡具体为快闪存储器卡,具体的,所述数据存储方法包括:在数据写入所述移动终端的快闪存储器卡的过程中,检测所述快闪存储器卡的写入速度;若所述快闪存储器卡的写入速度超过预设的门限值,则将本次的数据写入位置从所述快闪存储器卡修改为所述内置存储卡;将本次已写入所述内置存储卡的数据转存到所述快闪存储器卡中,并使得所述转存到所述快闪存储器卡中的数据与本次已写入所述快闪存储器卡中的数据拼接。本发明实施例还提供相应的数据存储装置,以下分别进行详细说明。An embodiment of the present invention provides a data storage method, which is applied to a mobile terminal including an external memory card and a built-in memory card, wherein the external memory card is specifically a flash memory card, and specifically, the data storage method includes : in the process of writing data into the flash memory card of the mobile terminal, detecting the writing speed of the flash memory card; if the writing speed of the flash memory card exceeds a preset threshold value, then Modify the data writing position this time from the flash memory card to the built-in memory card; dump the data written into the built-in memory card this time into the flash memory card, and make all The data transferred to the flash memory card is spliced with the data written in the flash memory card this time. Embodiments of the present invention also provide corresponding data storage devices, which will be described in detail below.
下面对本发明实施例提供的一种数据存储方法进行描述,请参阅图1,本发明实施例中的数据存储方法包括:A data storage method provided by an embodiment of the present invention is described below. Please refer to FIG. 1. The data storage method in the embodiment of the present invention includes:
101、在数据写入上述移动终端的快闪存储器卡的过程中,检测上述快闪存储器卡的写入速度;101. During the process of writing data into the flash memory card of the mobile terminal, detect the writing speed of the flash memory card;
本发明实施例中,上述移动终端包含外置存储卡和内置存储卡,其中,该外置存储卡具体为快闪存储器卡(例如TF卡、SD卡等)。可选的,该内置存储卡具体为:内置多媒体卡(EMMC,Embedded Multi Media Card)。In the embodiment of the present invention, the above-mentioned mobile terminal includes an external memory card and a built-in memory card, wherein the external memory card is specifically a flash memory card (such as a TF card, SD card, etc.). Optionally, the built-in memory card is specifically: a built-in multimedia card (EMMC, Embedded Multi Media Card).
在数据写入上述移动终端的快闪存储器卡的过程中(例如,在使用移动终端录像、拍照或下载且数据写入位置为该快闪存储器卡时),数据存储装置检测该快闪存储器卡的写入速度。In the process of writing data into the flash memory card of the above-mentioned mobile terminal (for example, when using the mobile terminal to record video, take pictures or download and the data writing location is the flash memory card), the data storage device detects the flash memory card write speed.
102、若该快闪存储器卡的写入速度超过预设的门限值,则将本次的数据写入位置从该快闪存储器卡修改为内置存储卡;102. If the writing speed of the flash memory card exceeds the preset threshold value, modify the data writing location from the flash memory card to the built-in memory card;
本发明实施例中,预先设置一门限值,当数据存储装置检测到该快闪存储器卡的写入速度超过该门限值时,将本次的数据写入位置从该快闪存储器卡修改为该移动终端的内置存储卡,以便后续将本次未写入的数据写入到该内置存储卡中。In the embodiment of the present invention, a threshold value is preset, and when the data storage device detects that the writing speed of the flash memory card exceeds the threshold value, the current data writing location is modified from the flash memory card It is the built-in memory card of the mobile terminal, so that the data not written this time can be written into the built-in memory card later.
具体的,数据存储装置可在步骤101之前(例如移动终端上电启动时)检测移动终端的快闪存储器卡的最大写入速度,并将上述门限值设置为该快闪存储器卡的最大写入速度的百分之N,其中,上述N的取值范围为[80,100]。当然,上述门限值也可以根据实际情况进行设定,此处不作限定。Specifically, the data storage device may detect the maximum writing speed of the flash memory card of the mobile terminal before step 101 (for example, when the mobile terminal is powered on and started), and set the above-mentioned threshold value as the maximum writing speed of the flash memory card. N percent of the input speed, where the value range of the above N is [80, 100]. Certainly, the above threshold value may also be set according to actual conditions, which is not limited here.
需要说明的是,本发明实施例中将一次连续的数据生成和存储过程视为一次数据写入过程,例如,当触发移动终端录像时,将开始录像到停止录像的过程视为一次录像的数据写入过程,当触发移动终端连拍时,将开始连拍到停止连拍的过程视为一次录像连拍的数据写入过程,以此类推。It should be noted that in the embodiment of the present invention, a continuous data generation and storage process is regarded as a data writing process. For example, when the mobile terminal is triggered to record, the process from the start of recording to the stop of recording is regarded as the data of one recording In the writing process, when the continuous shooting of the mobile terminal is triggered, the process from the start of the continuous shooting to the stop of the continuous shooting is regarded as the data writing process of a video continuous shooting, and so on.
103、将本次已写入上述内置存储卡的数据转存到上述快闪存储器卡中,并使得转存到上述快闪存储器卡中的数据与本次已写入上述快闪存储器卡中的数据拼接;103. Transfer the data that has been written into the above-mentioned built-in memory card this time to the above-mentioned flash memory card, and make the data transferred to the above-mentioned flash memory card and the data that has been written in the above-mentioned flash memory card this time data splicing;
本发明实施例中,数据存储装置将本次已写入上述内置存储卡的数据转存到上述快闪存储器卡中,并且,为了保证一次数据写入过程的数据完整性和连续性,数据存储装置需要将转存到上述快闪存储器卡中的数据与本次已写入上述快闪存储器卡中的数据拼接,举例说明,假设在步骤102触发时,本次已写入上述快闪存储器卡中的最后一个数据为A,在步骤102中将本次的数据写入位置从该快闪存储器卡修改为内置存储卡后,本次写入上述内置存储卡的首个数据为B,则在步骤103中,数据存储装置将本次已写入上述内置存储卡的数据转存到上述快闪存储器卡中,并使得数据B与数据A拼接,从而保证本次数据的完整性和连续性。In the embodiment of the present invention, the data storage device transfers the data that has been written into the above-mentioned built-in memory card to the above-mentioned flash memory card, and, in order to ensure the data integrity and continuity of a data writing process, the data storage The device needs to splicing the data transferred to the above-mentioned flash memory card with the data that has been written into the above-mentioned flash memory card this time. The last data in is A, in step 102, after modifying the data writing location this time from the flash memory card to the built-in memory card, the first data written into the above-mentioned built-in memory card this time is B, then in In step 103, the data storage device transfers the data written into the built-in memory card to the flash memory card, and splices data B and data A, so as to ensure the integrity and continuity of the data.
本发明实施例中,数据存储装置可以实时或者周期性的触发步骤103的执行,或者,数据存储装置也可以等待预设事件发生时触发步骤103的执行,此处不作限定。In the embodiment of the present invention, the data storage device may trigger the execution of step 103 in real time or periodically, or the data storage device may also wait for a preset event to trigger the execution of step 103, which is not limited herein.
可选的,在步骤102之后,数据存储装置检测本次已写入所述内置存储卡的数据的大小,当检测到本次已写入所述内置存储卡的数据的大小超过所述快闪存储器卡的剩余存储空间时,执行步骤103。进一步,当数据存储装置检测到到本次已写入所述内置存储卡的数据的大小未超过所述快闪存储器卡的剩余存储空间且本次数据写入过程已完成时,执行步骤103。Optionally, after step 102, the data storage device detects the size of the data that has been written into the built-in memory card this time, and when it detects that the size of the data that has been written into the built-in memory card this time exceeds the size of the flash memory When there is no remaining storage space on the memory card, step 103 is performed. Further, when the data storage device detects that the size of the data written into the built-in memory card does not exceed the remaining storage space of the flash memory card and the data writing process has been completed, step 103 is executed.
可选的,当数据存储装置检测到本次已写入所述内置存储卡的数据的大小超过所述快闪存储器卡的剩余存储空间时,停止本次向上述内置存储卡写入数据的操作,并输出提醒信息,其中,上述提醒信息用于指示所述快闪存储器卡空间已满,以便用户通过上述提醒信息获知上述快闪存储器卡空间已满。Optionally, when the data storage device detects that the size of the data that has been written into the built-in memory card this time exceeds the remaining storage space of the flash memory card, stop the operation of writing data to the above-mentioned built-in memory card this time , and output reminder information, wherein the reminder information is used to indicate that the space of the flash memory card is full, so that the user can know that the space of the flash memory card is full through the reminder information.
需要说明的是,本发明实施例中的移动终端可以为手机或其它包含外置存储卡和内置存储卡的移动终端,本发明实施例中的数据存储装置可以集成在上述移动终端中,或者,也可以独立于上述移动终端,并能够通过有线或无线方式与上述移动终端进行通讯的装置,此处不作限定。It should be noted that the mobile terminal in the embodiment of the present invention may be a mobile phone or other mobile terminal including an external memory card and a built-in memory card, and the data storage device in the embodiment of the present invention may be integrated in the above mobile terminal, or, It may also be a device that is independent of the above-mentioned mobile terminal and capable of communicating with the above-mentioned mobile terminal in a wired or wireless manner, which is not limited here.
由上可见,本发明中在数据写入移动终端的快闪存储器卡的过程中检测该快闪存储器卡的写入速度,如果发现该快闪存储器卡的写入速度超过预设的门限值时,修改数据写入位置,使得后面的数据放到该移动终端的内置存储卡里,之后再将本次写入该内置存储卡里的数据转存到该快闪存储器卡并与之前的数据拼接起来,从而能够避免直接写入快闪存储器卡时写入速度跟不上导致的移动终端死机、卡顿等问题,有效防止了因快闪存储卡读写速度慢而导致移动终端卡顿、死机,进而提高了数据存储的可靠性。As can be seen from the above, in the present invention, the writing speed of the flash memory card is detected during the process of data writing into the flash memory card of the mobile terminal, if the writing speed of the flash memory card is found to exceed the preset threshold value When modifying the data writing position, the following data is placed in the built-in memory card of the mobile terminal, and then the data written in the built-in memory card is transferred to the flash memory card and compared with the previous data Splicing together, so as to avoid problems such as mobile terminal crashes and freezes caused by the slow writing speed when directly writing to the flash memory card, and effectively prevent the mobile terminal from being stuck and stuck due to the slow read and write speed of the flash memory card. Crash, thereby improving the reliability of data storage.
下面以手机为例,以一具体应用场景对本发明实施例中的数据存储方法进行说明。本发明实施例中的数据存储装置集成在手机中,该手机配置有高清摄像头,且包含TF卡和EMMC,其中,TF卡为外置存储卡,EMMC为内置存储卡,设该TF卡的最大写入速度为6兆每秒,预设一门限值,该门限值等于该TF卡的最大写入速度乘以80%,即4.8,设手机在摄像时数据的默认存储位置为TF卡。当用户使用该手机的高清摄像头以16兆每秒的速度摄像时,此时TF卡的写入速度也为16兆每秒,手机检测到TF卡的写入速度超过4.8,则将后面摄像数据直接存储到手机的EMMC中,之后手机检测本次摄像存入EMMC的数据的大小和TF卡的剩余存储空间,当检测到本次摄像存入EMMC的数据的大小超过该TF卡的剩余存储空间时,手机停止摄像并输出指示该TF卡空间已满的提醒信息,之后将本次摄像已写入EMMC的数据转存到该TF卡中,将转存的数据与本次摄像已写入该TF卡的数据进行拼接。或者,当本次摄像结束且未检测到本次摄像存入EMMC的数据的大小超过该TF卡的剩余存储空间时,手机将本次摄像已写入EMMC的数据转存到该TF卡中,将转存的数据与本次摄像已写入该TF卡的数据进行拼接。The following uses a mobile phone as an example to illustrate the data storage method in the embodiment of the present invention with a specific application scenario. The data storage device in the embodiment of the present invention is integrated in the mobile phone, and the mobile phone is equipped with a high-definition camera, and includes a TF card and an EMMC, wherein the TF card is an external memory card, and the EMMC is a built-in memory card, and the maximum size of the TF card is set The writing speed is 6 megabits per second, and a threshold value is preset. The threshold value is equal to the maximum writing speed of the TF card multiplied by 80%, which is 4.8. The default storage location of the data when the mobile phone is taking pictures is the TF card . When the user uses the high-definition camera of the mobile phone to take pictures at a speed of 16 megabits per second, the writing speed of the TF card is also 16 megabits per second. Store directly in the EMMC of the mobile phone, and then the mobile phone detects the size of the data stored in the EMMC for this camera and the remaining storage space of the TF card. When it detects that the size of the data stored in the EMMC for this camera exceeds the remaining storage space of the TF card , the mobile phone stops recording and outputs a reminder message indicating that the TF card space is full, and then transfers the data that has been written into the EMMC for this recording to the TF card, and combines the dumped data and the data that has been written into the The data of the TF card is spliced. Or, when this shooting is over and it is not detected that the size of the data stored in EMMC in this shooting exceeds the remaining storage space of the TF card, the mobile phone will transfer the data written in EMMC to the TF card for this shooting, Splice the dumped data with the data that has been written to the TF card in this shooting.
下面以另一实施例对本发明实施例中的数据存储装置进行描述,本发明实施例中的应用存储装置应用于包含外置存储卡和内置存储卡的移动终端,且上述外置存储卡具体为快闪存储器卡(例如TF卡、SD卡),请参阅图2,本发明实施例中的数据存储装置200包括:The following uses another embodiment to describe the data storage device in the embodiment of the present invention. The application storage device in the embodiment of the present invention is applied to a mobile terminal including an external memory card and a built-in memory card, and the above-mentioned external memory card is specifically Flash memory card (such as TF card, SD card), referring to Fig. 2, the data storage device 200 in the embodiment of the present invention comprises:
第一检测单元201,用于在数据写入所述移动终端的快闪存储器卡的过程中,检测所述快闪存储器卡的写入速度;The first detection unit 201 is used to detect the writing speed of the flash memory card during the process of writing data into the flash memory card of the mobile terminal;
修改单元202,用于当第一检测单元201检测到所述快闪存储器卡的写入速度超过预设的门限值时,将本次的数据写入位置从所述快闪存储器卡修改为所述内置存储卡;The modifying unit 202 is configured to modify the current data writing location from the flash memory card to the built-in memory card;
转存单元203,用于将本次已写入所述内置存储卡的数据转存到所述快闪存储器卡中,并使得所述转存到所述快闪存储器卡中的数据与本次已写入所述快闪存储器卡中的数据拼接。Dumping unit 203, configured to dump the data written into the built-in memory card this time into the flash memory card, and make the data dumped into the flash memory card the same as this time The data that has been written to the flash memory card is concatenated.
可选的,本发明实施例中的数据存储装置还包括:第二检测单元,用于检测本次已写入所述内置存储卡的数据的大小;所述转存单元在所述第二检测单元检测到本次已写入所述内置存储卡的数据的大小超过所述快闪存储器卡的剩余存储空间时触发。Optionally, the data storage device in the embodiment of the present invention further includes: a second detection unit, configured to detect the size of the data that has been written into the built-in memory card this time; Triggered when the unit detects that the size of the data written into the built-in memory card this time exceeds the remaining storage space of the flash memory card.
可选的,转存单元203在本次数据写入过程已完成,且所述第二检测单元检测到本次已写入所述内置存储卡的数据的大小未超过所述快闪存储器卡的剩余存储空间时触发。Optionally, the transfer unit 203 has completed the data writing process this time, and the second detection unit detects that the size of the data that has been written to the built-in memory card this time does not exceed the size of the flash memory card. Triggered when storage space is left.
可选的,本发明实施例中的数据存储装置还包括:停止单元,用于当所述第二检测单元检测到本次已写入所述内置存储卡的数据的大小超过所述快闪存储器卡的剩余存储空间时,停止本次向所述内置存储卡写入数据的操作;输出单元,用于输出提醒信息,所述提醒信息用于指示所述快闪存储器卡空间已满。Optionally, the data storage device in the embodiment of the present invention further includes: a stop unit, configured to be used when the second detection unit detects that the size of the data written to the built-in memory card this time exceeds the size of the flash memory When there is remaining storage space in the card, stop the operation of writing data to the built-in memory card this time; the output unit is used to output reminder information, and the reminder information is used to indicate that the space of the flash memory card is full.
可选的,本发明实施例中的数据存储装置还包括:第三检测单元,用于检测所述快闪存储器卡的最大写入速度;设置单元,用于将所述门限值设置为所述快闪存储器卡的最大写入速度的百分之N,所述N的取值范围为[80,100]。Optionally, the data storage device in the embodiment of the present invention further includes: a third detection unit, configured to detect the maximum writing speed of the flash memory card; a setting unit, configured to set the threshold value to the specified N percent of the maximum writing speed of the flash memory card, and the value range of N is [80, 100].
需要说明的是,本发明实施例中的移动终端可以为手机或其它包含外置存储卡和内置存储卡的移动终端,本发明实施例中的数据存储装置可以集成在上述移动终端中,或者,也可以独立于上述移动终端,并能够通过有线或无线方式与上述移动终端进行通讯的装置,此处不作限定。It should be noted that the mobile terminal in the embodiment of the present invention may be a mobile phone or other mobile terminal including an external memory card and a built-in memory card, and the data storage device in the embodiment of the present invention may be integrated in the above mobile terminal, or, It may also be a device that is independent of the above-mentioned mobile terminal and capable of communicating with the above-mentioned mobile terminal in a wired or wireless manner, which is not limited here.
应理解,本发明实施例中的数据存储装置可以如上述方法实施例中提及的数据存储装置,可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实施例中的相关描述,此处不再赘述。It should be understood that the data storage device in the embodiment of the present invention can be the same as the data storage device mentioned in the above-mentioned method embodiment, and can be used to realize all the technical solutions in the above-mentioned method embodiment, and the functions of each functional module can be based on the above-mentioned method The methods in the embodiments are specifically implemented, and the specific implementation process may refer to the relevant descriptions in the above embodiments, and details are not repeated here.
由上可见,本发明中在数据写入移动终端的快闪存储器卡的过程中检测该快闪存储器卡的写入速度,如果发现该快闪存储器卡的写入速度超过预设的门限值时,修改数据写入位置,使得后面的数据放到该移动终端的内置存储卡里,之后再将本次写入该内置存储卡里的数据转存到该快闪存储器卡并与之前的数据拼接起来,从而能够避免直接写入快闪存储器卡时写入速度跟不上导致的移动终端死机、卡顿等问题,有效防止了因快闪存储卡读写速度慢而导致移动终端卡顿、死机,进而提高了数据存储的可靠性。As can be seen from the above, in the present invention, the writing speed of the flash memory card is detected during the process of data writing into the flash memory card of the mobile terminal, if the writing speed of the flash memory card is found to exceed the preset threshold value When modifying the data writing position, the following data is placed in the built-in memory card of the mobile terminal, and then the data written in the built-in memory card is transferred to the flash memory card and compared with the previous data Splicing together, so as to avoid problems such as mobile terminal crashes and freezes caused by the slow writing speed when directly writing to the flash memory card, and effectively prevent the mobile terminal from being stuck and stuck due to the slow read and write speed of the flash memory card. Crash, thereby improving the reliability of data storage.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
以上为对本发明所提供的一种数据存储方法和数据存储装置的描述,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a description of a data storage method and a data storage device provided by the present invention. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as limiting the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510208031.0A CN104765576B (en) | 2015-04-28 | 2015-04-28 | Data storage method and data storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510208031.0A CN104765576B (en) | 2015-04-28 | 2015-04-28 | Data storage method and data storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104765576A true CN104765576A (en) | 2015-07-08 |
CN104765576B CN104765576B (en) | 2017-10-31 |
Family
ID=53647440
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510208031.0A Active CN104765576B (en) | 2015-04-28 | 2015-04-28 | Data storage method and data storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104765576B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107077514A (en) * | 2016-05-23 | 2017-08-18 | 深圳市大疆创新科技有限公司 | A kind of method and apparatus of data storage |
CN107526814A (en) * | 2017-08-25 | 2017-12-29 | 青岛海信移动通信技术股份有限公司 | Mobile terminal document storage method and device |
CN107728948A (en) * | 2017-10-18 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of memory performance optimization method and device, computer equipment |
WO2018076710A1 (en) * | 2016-10-28 | 2018-05-03 | 中兴通讯股份有限公司 | Method and device for smart photographing and storage medium |
CN108683811A (en) * | 2018-05-14 | 2018-10-19 | Oppo广东移动通信有限公司 | Mobile terminal, biological information identification method, unlocking method and storage medium thereof |
CN109768926A (en) * | 2019-01-10 | 2019-05-17 | 维沃移动通信有限公司 | A data processing method, terminal device and computer-readable storage medium |
CN111930571A (en) * | 2020-08-17 | 2020-11-13 | 国网青海省电力公司海西供电公司 | Data recording method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6553468B1 (en) * | 2000-06-26 | 2003-04-22 | International Buisness Machines Corporation | Storage method for personal digital devices |
CN101576865A (en) * | 2009-06-03 | 2009-11-11 | 福建星网锐捷网络有限公司 | Method, device and central processing unit for ensuring reading transaction bandwidth of memory |
CN103077121A (en) * | 2013-01-07 | 2013-05-01 | 深圳市江波龙电子有限公司 | Method and device for managing data in flash memory equipment |
CN103678149A (en) * | 2013-12-19 | 2014-03-26 | 华为技术有限公司 | Data processing method and device |
-
2015
- 2015-04-28 CN CN201510208031.0A patent/CN104765576B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6553468B1 (en) * | 2000-06-26 | 2003-04-22 | International Buisness Machines Corporation | Storage method for personal digital devices |
CN101576865A (en) * | 2009-06-03 | 2009-11-11 | 福建星网锐捷网络有限公司 | Method, device and central processing unit for ensuring reading transaction bandwidth of memory |
CN103077121A (en) * | 2013-01-07 | 2013-05-01 | 深圳市江波龙电子有限公司 | Method and device for managing data in flash memory equipment |
CN103678149A (en) * | 2013-12-19 | 2014-03-26 | 华为技术有限公司 | Data processing method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107077514A (en) * | 2016-05-23 | 2017-08-18 | 深圳市大疆创新科技有限公司 | A kind of method and apparatus of data storage |
WO2018076710A1 (en) * | 2016-10-28 | 2018-05-03 | 中兴通讯股份有限公司 | Method and device for smart photographing and storage medium |
CN107526814A (en) * | 2017-08-25 | 2017-12-29 | 青岛海信移动通信技术股份有限公司 | Mobile terminal document storage method and device |
CN107526814B (en) * | 2017-08-25 | 2020-11-03 | 青岛海信移动通信技术股份有限公司 | Mobile terminal file storage method and device |
CN107728948A (en) * | 2017-10-18 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of memory performance optimization method and device, computer equipment |
CN108683811A (en) * | 2018-05-14 | 2018-10-19 | Oppo广东移动通信有限公司 | Mobile terminal, biological information identification method, unlocking method and storage medium thereof |
CN109768926A (en) * | 2019-01-10 | 2019-05-17 | 维沃移动通信有限公司 | A data processing method, terminal device and computer-readable storage medium |
CN109768926B (en) * | 2019-01-10 | 2021-07-20 | 维沃移动通信有限公司 | Data processing method, terminal equipment and computer readable storage medium |
CN111930571A (en) * | 2020-08-17 | 2020-11-13 | 国网青海省电力公司海西供电公司 | Data recording method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104765576B (en) | 2017-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104765576B (en) | Data storage method and data storage device | |
TWI533132B (en) | Initialization method and initialization system for storage device | |
JP6107965B2 (en) | Data storage device, data storage method, and data storage program | |
CN105320602A (en) | Testing method and device for application starting speed | |
US20190087283A1 (en) | Aircraft aerial photography data backup method, apparatus and device, and computer readable storage medium | |
CN104731530A (en) | Mobile terminal and file management method applied to same | |
CN104777891A (en) | A kind of OTG connection control method and connection control device applied to intelligent terminal | |
CN103942126B (en) | Electronic equipment and its data back up method | |
CN106709063A (en) | Method for viewing pictures and mobile terminal | |
CN106569913A (en) | Method and device for terminal backup data | |
CN104902093B (en) | A method and device for preventing a mobile terminal from freezing and crashing | |
CN104202522B (en) | A kind of continuous photo storage method and mobile terminal applied to mobile terminal | |
CN104731577A (en) | Multisystem and method of booting the same | |
CN108762983A (en) | Multi-medium data restoration methods and device | |
KR101031291B1 (en) | Voice photographing device and method | |
US9753933B2 (en) | Electronic device and method for mounting file system using virtual block device | |
US20150109464A1 (en) | Apparatus for and method of managing image files by using thumbnail images | |
JP5975005B2 (en) | Image processing apparatus, information processing apparatus, and image transfer method | |
CN106527851A (en) | Information previewing method and mobile terminal | |
CN110336804B (en) | Multimedia file recovery method, device and equipment | |
TW201303888A (en) | Method for storing data and electronic apparatus using the same | |
US8386691B1 (en) | Multimedia storage card system | |
CN109426589B (en) | File repair method and device | |
CN105224561B (en) | Cache storage method and device based on paging file | |
KR20130023579A (en) | Multimedia storage card system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CP03 | Change of name, title or address |