CN107526814B - Mobile terminal file storage method and device - Google Patents

Mobile terminal file storage method and device Download PDF

Info

Publication number
CN107526814B
CN107526814B CN201710740696.5A CN201710740696A CN107526814B CN 107526814 B CN107526814 B CN 107526814B CN 201710740696 A CN201710740696 A CN 201710740696A CN 107526814 B CN107526814 B CN 107526814B
Authority
CN
China
Prior art keywords
memory card
external memory
preset
file
level
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.)
Active
Application number
CN201710740696.5A
Other languages
Chinese (zh)
Other versions
CN107526814A (en
Inventor
王鹏程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710740696.5A priority Critical patent/CN107526814B/en
Publication of CN107526814A publication Critical patent/CN107526814A/en
Application granted granted Critical
Publication of CN107526814B publication Critical patent/CN107526814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • 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/0683Plurality of storage devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a mobile terminal file storage method and device, and belongs to the field of storage. The method comprises the following steps: when a file to be stored which needs to be stored in an external storage card is detected, judging whether the external storage card meets the storage requirement of the file to be stored; when the external memory card does not meet the storage requirement, displaying prompt information, wherein the prompt information is used for indicating that specified operation is executed on the external memory card, and the specified operation comprises replacement operation or formatting operation; and after the specified operation on the external storage card is detected, storing the file to be stored in the external storage card. The invention solves the problems of file storage failure and poor reliability of the stored file caused by that the external memory card inserted into the mobile terminal does not meet the storage requirement of the file to be stored, realizes the effect of improving the reliability of the stored file, and is used for storing the file.

Description

Mobile terminal file storage method and device
Technical Field
The invention relates to the field of storage, in particular to a mobile terminal file storage method and device.
Background
With the popularization of mobile terminals such as mobile phones and tablet computers, users often download high-definition movies, television shows, or other files with large data volumes by using the mobile terminals, or perform operations such as recording and video recording for a long time by using the mobile terminals, and these operations also generate files with large data volumes. The mobile terminal is provided with an internal Memory Card and an external Memory Card (such as a Secure Digital Memory Card (SD)), and the internal Memory Card has a small storage space and is not expandable, and is easily occupied by a file to influence the operating speed of the mobile terminal, so that the file can be stored in the external Memory Card.
In the related art, in order to store a file in an external memory card, the external memory card is usually inserted into a mobile terminal, and then an initialization operation is performed on the external memory card to complete the mounting of the external memory card. The file may then be stored in the external memory card.
However, when the external memory card inserted into the mobile terminal does not meet the storage requirement of the file to be stored, the file storage fails, and the reliability of the stored file is poor.
Disclosure of Invention
The invention provides a mobile terminal file storage method and device, which can solve the problems that in the related art, an external memory card inserted into a mobile terminal does not meet the storage requirement of a file to be stored, so that the file storage fails and the reliability of the stored file is poor. The technical scheme is as follows:
in a first aspect, a method for storing a file of a mobile terminal is provided, where the method includes:
when a file to be stored which needs to be stored in an external storage card is detected, judging whether the external storage card meets the storage requirement of the file to be stored;
when the external memory card does not meet the storage requirement, displaying prompt information, wherein the prompt information is used for indicating that specified operation is executed on the external memory card, and the specified operation comprises replacement operation or formatting operation;
and after the specified operation on the external storage card is detected, storing the file to be stored in the external storage card.
Optionally, the determining whether the external memory card meets the storage requirement of the file to be stored includes:
acquiring a target protocol level of the external storage card;
inquiring a corresponding relation between a preset protocol grade and a storage requirement according to the preset protocol grade corresponding to the target protocol grade to obtain the storage requirement of the target protocol grade;
and judging whether the external storage card meets the storage requirement of the target protocol level.
Optionally, when a preset protocol level corresponding to a target protocol level of the external memory card is a preset first level, the determining whether the external memory card meets a storage requirement of the target protocol level includes:
when the input/output IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first grade, determining that the external memory card does not meet the storage requirement of the target protocol grade, wherein the prompt information is used for indicating to execute replacement operation on the external memory card;
or when the IO voltage of the external memory card belongs to the preset voltage range corresponding to the first level and the value of a file cluster set when the external memory card is formatted is smaller than a preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, where the prompt information is used to instruct the external memory card to perform a formatting operation to increase the value of the file cluster.
Optionally, when a preset protocol level corresponding to a target protocol level of the external memory card is a preset second level, the determining whether the external memory card meets a storage requirement of the target protocol level includes:
when the writing speed of the external storage card is lower than the preset speed corresponding to the second grade, determining that the external storage card does not meet the storage requirement of the target protocol grade, wherein the prompt information is used for indicating to execute replacement operation on the external storage card;
or when the writing speed of the external memory card is not less than the preset speed corresponding to the second level and the value of a file cluster set when the external memory card is formatted is less than a preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, wherein the prompt information is used for indicating that the external memory card is formatted to increase the value of the file cluster.
Optionally, the determining whether the external memory card meets the storage requirement of the target protocol level includes:
and when the preset protocol grade corresponding to the target protocol grade of the external storage card is a preset third grade, determining that the external storage card does not meet the storage requirement of the target protocol grade, wherein the prompt information is used for indicating to execute replacement operation on the external storage card.
In a second aspect, a mobile terminal file storage apparatus is provided, the apparatus comprising:
the judging module is used for judging whether the external storage card meets the storage requirement of the file to be stored when the file to be stored which needs to be stored in the external storage card is detected;
the prompting module is used for displaying prompting information when the external memory card does not meet the storage requirement, wherein the prompting information is used for indicating that specified operation is executed on the external memory card, and the specified operation comprises replacement operation or formatting operation;
and the storage module is used for storing the file to be stored in the external storage card after detecting that the specified operation is executed on the external storage card.
Optionally, the determining module includes:
the acquisition submodule is used for acquiring the target protocol level of the external storage card;
the query submodule is used for querying the corresponding relation between the preset protocol level and the storage requirement according to the preset protocol level corresponding to the target protocol level to obtain the storage requirement of the target protocol level;
and the judging submodule is used for judging whether the external storage card meets the storage requirement of the target protocol level.
Optionally, when the preset protocol level corresponding to the target protocol level of the external memory card is a preset first level, the determining submodule is configured to:
when the input/output IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first grade, determining that the external memory card does not meet the storage requirement of the target protocol grade, wherein the prompt information is used for indicating to execute replacement operation on the external memory card;
or when the IO voltage of the external memory card belongs to the preset voltage range corresponding to the first level and the value of a file cluster set when the external memory card is formatted is smaller than a preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, where the prompt information is used to instruct the external memory card to perform a formatting operation to increase the value of the file cluster.
Optionally, when the preset protocol level corresponding to the target protocol level of the external memory card is a preset second level, the determining submodule is configured to:
when the writing speed of the external storage card is lower than the preset speed corresponding to the second grade, determining that the external storage card does not meet the storage requirement of the target protocol grade, wherein the prompt information is used for indicating to execute replacement operation on the external storage card;
or when the writing speed of the external memory card is not less than the preset speed corresponding to the second level and the value of a file cluster set when the external memory card is formatted is less than a preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, wherein the prompt information is used for indicating that the external memory card is formatted to increase the value of the file cluster.
In a third aspect, a file storage device for a mobile terminal is provided, which includes:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
when a file to be stored which needs to be stored in an external storage card is detected, judging whether the external storage card meets the storage requirement of the file to be stored;
when the external memory card does not meet the storage requirement, displaying prompt information, wherein the prompt information is used for indicating that specified operation is executed on the external memory card, and the specified operation comprises replacement operation or formatting operation;
and after the specified operation on the external storage card is detected, storing the file to be stored in the external storage card.
In a fourth aspect, a storage medium is provided, in which instructions are executed by a processor of a mobile terminal to enable the mobile terminal to execute the file storage method of the first aspect.
The invention provides a mobile terminal file storage method and a device, wherein when a file to be stored which needs to be stored in an external storage card is detected, whether the external storage card meets the storage requirement of the file to be stored is judged, and when the external storage card does not meet the storage requirement, prompt information is displayed and used for indicating the external storage card to execute appointed operation, wherein the appointed operation comprises replacement operation or formatting operation, and then the file to be stored is stored in the external storage card after the appointed operation is detected to be executed on the external storage card, so that file storage failure when the external storage card inserted into a mobile terminal does not meet the storage requirement of the file to be stored is avoided, and the reliability of the stored file is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a file storage method of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a flowchart of another mobile terminal file storage method according to an embodiment of the present invention;
fig. 3 is a schematic interface diagram of a prompt message displayed by a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a file storage device of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a determining module according to an embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
An embodiment of the present invention provides a mobile terminal file storage method, which is used for a mobile terminal, and as shown in fig. 1, the method includes:
step 101, when a file to be stored which needs to be stored in an external memory card is detected, judging whether the external memory card meets the storage requirement of the file to be stored.
And 102, when the external memory card does not meet the storage requirement, displaying prompt information, wherein the prompt information is used for indicating to execute specified operation on the external memory card, and the specified operation comprises replacement operation or formatting operation.
And 103, after detecting that the specified operation is executed on the external memory card, storing the file to be stored in the external memory card.
In summary, according to the file storage method of the mobile terminal provided in the embodiment of the present invention, when a to-be-stored file that needs to be stored in the external memory card is detected, it is determined whether the external memory card meets a storage requirement of the to-be-stored file, and when the external memory card does not meet the storage requirement, a prompt message is displayed, where the prompt message is used to instruct the external memory card to perform a specified operation, where the specified operation includes a replacement operation or a formatting operation.
An embodiment of the present invention provides another mobile terminal file storage method, which is used for a mobile terminal, and as shown in fig. 2, the method includes:
step 201, when detecting that a file to be stored needs to be stored in the external memory card, acquiring a target protocol level of the external memory card.
By way of example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, or the like. In order to store the file to be stored in the external memory card, the external memory card needs to be inserted into the mobile terminal first. Then, the mobile terminal performs an initialization operation on the external memory card, for example, an input-output (IO) voltage of the external memory card. And then, carrying out mounting operation on the external memory card through the mobile terminal. After the external memory card is successfully mounted, memory card data of the external memory card can be accessed through the mobile terminal, and the memory card data can include protocol levels, IO voltages, values of file clusters set when the external memory card is formatted, and the like.
In the embodiment of the present invention, the target protocol level of the external memory card may be 3.0, 2.0, or 1.0, and correspondingly, the external memory card may be SD3.0, SD2.0, or SD 1.0. Wherein the 3.0 is higher than the 2.0, and the 2.0 is higher than the 1.0.
Step 202, inquiring a corresponding relation between a preset protocol level and a storage requirement according to the preset protocol level corresponding to the target protocol level to obtain the storage requirement of the target protocol level.
Table 1 exemplarily shows a correspondence between the protocol level and the storage requirement, referring to table 1, where the storage requirement corresponding to the first level is a, for example, when the first level is 3.0, a may be that an IO voltage of the external memory card belongs to a preset voltage range corresponding to the first level, and a value of a file cluster set when the external memory card is formatted is not less than a preset cluster value. The storage requirement corresponding to the second level is B, for example, when the second level is 2.0, B may be that the writing speed of the external memory card is not less than the preset speed corresponding to the second level, and the value of the file cluster set when the external memory card is formatted is not less than the preset cluster value. Assuming that the preset protocol level corresponding to the target protocol level of the external memory card obtained in step 201 is 2.0, the storage requirement of the target protocol level obtained after the mobile terminal queries table 1 is B: the writing speed of the external memory card is not less than the preset speed corresponding to the second level, and the value of the file cluster set when the external memory card is formatted is not less than the preset cluster value.
TABLE 1
Protocol level Storage requirements
First class A
Second level B
Step 203, judging whether the external memory card meets the storage requirement of the target protocol level.
The preset protocol levels corresponding to the target protocol level of the external memory card are different, and the mode that the mobile terminal judges whether the external memory card meets the storage requirement of the target protocol level is different.
For example, when the preset protocol level corresponding to the target protocol level of the external memory card is a preset first level, step 203 may include:
when the IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first grade, determining that the external memory card does not meet the storage requirement of the target protocol grade; or when the IO voltage of the external memory card belongs to the preset voltage range corresponding to the first level and the value of the file cluster set when the external memory card is formatted is smaller than the preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level. Wherein the first rating is 3.0. After the external memory card is successfully mounted, memory card data of the external memory card can be accessed through the mobile terminal, and the memory card data can include IO voltage, a value of a file cluster set when the external memory card is formatted, and the like. The preset voltage range corresponding to the first level may be (V1- Δ V, V1+ Δ V), and V1 may be 1.8V (volts), and Δ V is greater than 0. For example, if Δ V is 0.5V, the preset voltage range is (1.3,2.3), and if the IO voltage of the external memory card is 3.3V, the mobile terminal may determine that the IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first class. Assuming that the IO voltage of the external memory card is 1.9V, the mobile terminal may determine that the IO voltage of the external memory card belongs to a preset voltage range corresponding to the first class.
In the related art, a file cluster is the minimum unit used by a file system of a mobile terminal to complete data operations, and files are all accessed in units of file clusters. The larger the value of a file cluster, the smaller the number of logical blocks of a file of a fixed size, the fewer the number of addressing times required, the shorter the addressing time required, and the greater the speed at which data can be manipulated. It is generally necessary to set a value of a file cluster when performing a formatting operation for an external memory card. Therefore, in the method, it may be further determined whether the external memory card meets the storage requirement of the target protocol level based on whether a value of a file cluster set when the external memory card is formatted is smaller than a preset cluster value. Illustratively, the preset cluster value is 32K (1K equals 1024 bytes). Assuming that the IO voltage of the external memory card is 1.9V and the value of the file cluster set when the external memory card is formatted is 30K, since 1.9V belongs to the preset voltage range (1.3,2.3), and 30K is less than 32K, the mobile terminal can determine that the external memory card does not meet the storage requirement of the target protocol level, and then prompt the user to increase the value of the file cluster.
For another example, when the preset protocol level corresponding to the target protocol level of the external memory card is a preset second level, step 203 may include:
when the writing speed of the external storage card is lower than the preset speed corresponding to the second grade, determining that the external storage card does not meet the storage requirement of the target protocol grade; or, when the writing speed of the external memory card is not less than the preset speed corresponding to the second level, and the value of the file cluster set when the external memory card is formatted is less than the preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level. Wherein the second rating is 2.0. In order to determine the writing speed of the external memory card, a file with a specified size may be written into the external memory card, the writing duration of the file is recorded, the writing speed of the external memory card is calculated according to the size of the file and the writing duration, and then it is determined whether the calculated writing speed is less than the preset speed corresponding to the second level. For example, the preset speed for the second level may be 10MB/s (mega/second). Assuming that the calculated writing speed of the external memory card is 9MB/s, the mobile terminal may determine that the external memory card does not meet the storage requirement of the target protocol level because 9MB/s is less than 10 MB/s. Further, whether the external memory card meets the storage requirement of the target protocol level may also be determined based on whether a value of a file cluster set when the external memory card is formatted is smaller than a preset cluster value. Illustratively, the preset cluster value is 32K. Assuming that the calculated writing speed of the external memory card is 12MB/s and the value of the file cluster set when the external memory card is formatted is 30K, the mobile terminal can determine that the external memory card does not meet the storage requirement of the target protocol level because 12MB/s is greater than 10MB/s and 30K is less than 32K, and then prompt the user to increase the value of the file cluster.
When the writing speed of the external memory card is not less than the preset speed corresponding to the second level and the value of the file cluster set when the external memory card is formatted is not less than the preset cluster value, the mobile terminal may determine that the external memory card meets the storage requirement of the target protocol level.
For another example, when the preset protocol level corresponding to the target protocol level of the external memory card is the preset third level, the mobile terminal may directly determine that the external memory card does not meet the storage requirement of the target protocol level. Wherein the third rating is 1.0.
And step 204, when the external memory card does not meet the storage requirement of the target protocol level, displaying prompt information.
The prompt message is used for indicating to execute a specified operation on the external memory card, and the specified operation comprises a replacement operation or a formatting operation.
For example, when the preset protocol level corresponding to the target protocol level of the external memory card is a preset first level, the first level is 3.0, and on one hand, when the IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first level, the prompt information displayed by the mobile terminal may be used to instruct to perform a replacement operation on the external memory card. If a user uses the mobile terminal to record a video, if the IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first level, a pause phenomenon may occur in the video recording process. If the user uses the mobile terminal to take a picture, if the IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first level, a pause phenomenon may occur in the process of taking a picture. Therefore, when the IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first level, the prompt information displayed by the mobile terminal can be used for indicating to execute replacement operation on the external memory card, prompting a user to replace the external memory card in time, and avoiding the occurrence of a pause phenomenon. For example, the mobile terminal may display the prompt message 30 in a pop-up window manner, as shown in fig. 3. On the other hand, when the IO voltage of the external memory card belongs to the preset voltage range corresponding to the first level and the value of the file cluster set when the external memory card is formatted is smaller than the preset cluster value, the prompt message displayed by the mobile terminal is used to instruct the external memory card to perform formatting operation to increase the value of the file cluster, thereby reducing the number of addressing times required for operating data, shortening the required addressing time, and increasing the speed of operating data.
For example, when the preset protocol level corresponding to the target protocol level of the external memory card is a preset second level, the second level is 2.0, and on one hand, when the writing speed of the external memory card is lower than the preset speed corresponding to the second level, the prompt information displayed by the mobile terminal may be used to instruct to perform a replacement operation on the external memory card. If the user uses the mobile terminal to record a video, if the writing speed of the external storage card is less than the preset speed corresponding to the second level and the writing speed of the external storage card is low, the video cannot be recorded into the external storage card in real time, a pause phenomenon can occur in the video recording process, and finally the video recording fails and the video is damaged. If the writing speed of the external memory card is lower than the preset speed corresponding to the second level, a pause phenomenon may occur during the photographing process. Therefore, when the writing speed of the external memory card is lower than the preset speed corresponding to the second level, the prompt information displayed by the mobile terminal can be used for indicating to execute the replacement operation on the external memory card, and prompting the user to replace the external memory card in time. On the other hand, when the writing speed of the external memory card is not less than the preset speed corresponding to the second level and the value of the file cluster set when the external memory card is formatted is less than the preset cluster value, the prompt message displayed by the mobile terminal is used for indicating that the formatting operation is executed on the external memory card to increase the value of the file cluster, so that the number of addressing times required by data operation is reduced, the required addressing time is shortened, and the speed of data operation is increased.
For example, when the preset protocol level corresponding to the target protocol level of the external memory card is a preset third level, the third level is 1.0, and the prompt information displayed by the mobile terminal is used for instructing to execute a replacement operation on the external memory card and prompting the user to use the external memory card of another protocol level.
In addition, when the mobile terminal determines that the external memory card meets the storage requirement of the target protocol level, the mobile terminal does not display corresponding prompt information, so that the effect of saving electric quantity is achieved.
Step 205, after detecting that the specified operation is executed on the external memory card, storing the file to be stored in the external memory card.
And after detecting that the specified operation is executed on the external memory card, the mobile terminal stores the file to be stored in the external memory card. Because the external memory card which does not meet the storage requirement of the file to be stored has executed the replacement operation or the formatting operation, after the external memory card is detected to execute the specified operation, the file to be stored is stored in the external memory card, so that the file storage failure can be avoided.
It should be noted that, the sequence of the steps of the file storage method for a mobile terminal provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily changed by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention, and therefore, no further description is given.
In summary, according to the file storage method of the mobile terminal provided in the embodiment of the present invention, when a to-be-stored file that needs to be stored in the external memory card is detected, it is determined whether the external memory card meets a storage requirement of the to-be-stored file, and when the external memory card does not meet the storage requirement, a prompt message is displayed, where the prompt message is used to instruct the external memory card to perform a specified operation, where the specified operation includes a replacement operation or a formatting operation.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
An embodiment of the present invention provides a mobile terminal file storage apparatus, which is used for a mobile terminal, and as shown in fig. 4, the file storage apparatus 400 includes:
the determining module 410 is configured to determine whether the external memory card meets a storage requirement of a file to be stored when the file to be stored that needs to be stored in the external memory card is detected.
And the prompt module 420 is configured to display prompt information when the external memory card does not meet the storage requirement. The prompt message is used for indicating to execute a specified operation on the external memory card, and the specified operation comprises a replacement operation or a formatting operation.
The storage module 430 is configured to store the file to be stored in the external memory card after detecting that a specified operation is performed on the external memory card.
Optionally, as shown in fig. 5, the determining module 410 includes:
the obtaining sub-module 411 is configured to obtain a target protocol level of the external memory card.
The query submodule 412 is configured to query a corresponding relationship between a preset protocol level and a storage requirement according to the preset protocol level corresponding to the target protocol level, so as to obtain the storage requirement of the target protocol level.
The determining submodule 413 is configured to determine whether the external memory card meets the storage requirement of the target protocol level.
Optionally, when the preset protocol level corresponding to the target protocol level of the external memory card is a preset first level, the determining submodule 413 is configured to:
when the IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first grade, determining that the external memory card does not meet the storage requirement of the target protocol grade, wherein corresponding prompt information is used for indicating to execute replacement operation on the external memory card; or when the IO voltage of the external memory card belongs to the preset voltage range corresponding to the first level and the value of the file cluster set when the external memory card is formatted is smaller than the preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, wherein the corresponding prompt information is used for instructing to execute a formatting operation on the external memory card to increase the value of the file cluster.
Optionally, when the preset protocol level corresponding to the target protocol level of the external memory card is a preset second level, the determining submodule 413 is configured to:
when the writing speed of the external memory card is lower than the preset speed corresponding to the second level, determining that the external memory card does not meet the storage requirement of the target protocol level, wherein the corresponding prompt information is used for indicating to execute replacement operation on the external memory card; or when the writing speed of the external memory card is not less than the preset speed corresponding to the second level and the value of the file cluster set when the external memory card is formatted is less than the preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, wherein the corresponding prompt information is used for indicating that the external memory card is executed with formatting operation to increase the value of the file cluster.
Optionally, the determining submodule 413 is further configured to:
and when the preset protocol grade corresponding to the target protocol grade of the external memory card is a preset third grade, determining that the external memory card does not meet the storage requirement of the target protocol grade, wherein the corresponding prompt information is used for indicating to execute replacement operation on the external memory card.
To sum up, in the file storage device of the mobile terminal provided in the embodiment of the present invention, when detecting a to-be-stored file that needs to be stored in an external memory card, a determining module determines whether the external memory card meets a storage requirement of the to-be-stored file, and when the external memory card does not meet the storage requirement, a prompting module displays a prompting message, where the prompting message is used to instruct the external memory card to perform a specified operation, where the specified operation includes a replacement operation or a formatting operation.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiment of the invention provides a mobile terminal file storage device, which comprises:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
when a file to be stored which needs to be stored in the external storage card is detected, judging whether the external storage card meets the storage requirement of the file to be stored;
when the external memory card does not meet the storage requirement, displaying prompt information, wherein the prompt information is used for indicating to execute specified operation on the external memory card, and the specified operation comprises replacement operation or formatting operation;
and after detecting that the specified operation is executed on the external memory card, storing the file to be stored in the external memory card.
An embodiment of the present invention provides a storage medium, and when an instruction in the storage medium is executed by a processor of a mobile terminal, the mobile terminal is enabled to execute the mobile terminal file storage method shown in fig. 2.
An embodiment of the present invention further provides a computer program product including instructions, which, when running on a computer, causes the computer to execute the mobile terminal file storage method shown in fig. 2.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (3)

1. A mobile terminal file storage method is applied to a mobile terminal, and comprises the following steps:
when detecting a file to be stored which needs to be stored in an external storage card, acquiring a target protocol level of the external storage card;
inquiring a corresponding relation between a preset protocol grade and a storage requirement according to the preset protocol grade corresponding to the target protocol grade to obtain the storage requirement of the target protocol grade;
if the preset protocol level corresponding to the target protocol level of the external storage card is a preset first level, when the input/output (IO) voltage of the external storage card does not belong to a preset voltage range corresponding to the first level, determining that the external storage card does not meet the storage requirement of the target protocol level, and displaying prompt information, wherein the prompt information is used for indicating that the external storage card is to be replaced; or when the IO voltage of the external memory card belongs to the preset voltage range corresponding to the first level and the value of a file cluster set when the external memory card is formatted is smaller than a preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, and displaying a prompt message, wherein the prompt message is used for instructing the external memory card to perform formatting operation to increase the value of the file cluster, and the value of the file cluster is in direct proportion to the speed of operating data;
if the preset protocol level corresponding to the target protocol level of the external storage card is a preset second level, when the writing speed of the external storage card is lower than the preset speed corresponding to the second level, determining that the external storage card does not meet the storage requirement of the target protocol level, and displaying prompt information, wherein the prompt information is used for indicating to execute replacement operation on the external storage card; or when the writing speed of the external memory card is not less than the preset speed corresponding to the second level and the value of a file cluster set when the external memory card is formatted is less than a preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, and displaying prompt information, wherein the prompt information is used for indicating that the external memory card is formatted to increase the value of the file cluster; the writing speed of the external memory card is calculated according to the file size and writing time length of a file written into the external memory card;
if the preset protocol grade corresponding to the target protocol grade of the external storage card is a preset third grade, determining that the external storage card does not meet the storage requirement of the target protocol grade, and displaying prompt information, wherein the prompt information is used for indicating to execute replacement operation on the external storage card;
and after detecting that the replacement operation or the formatting operation is executed on the external storage card, storing the file to be stored in the external storage card.
2. A mobile terminal file storage device is applied to a mobile terminal, and the device comprises:
the judging module is used for acquiring the target protocol grade of the external storage card when detecting a file to be stored which needs to be stored in the external storage card;
the judging module is further configured to query a corresponding relationship between a preset protocol level and a storage requirement according to the preset protocol level corresponding to the target protocol level, so as to obtain the storage requirement of the target protocol level;
the judging module is further configured to determine that the external memory card does not meet the storage requirement of the target protocol level when the input/output IO voltage of the external memory card does not belong to the preset voltage range corresponding to the first level if the preset protocol level corresponding to the target protocol level of the external memory card is the preset first level, and trigger the prompting module to display prompting information, where the prompting information is used to instruct to perform a replacement operation on the external memory card; or when the IO voltage of the external memory card belongs to the preset voltage range corresponding to the first level and the value of a file cluster set when the external memory card is formatted is smaller than a preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, and triggering a prompt module to display prompt information, wherein the prompt information is used for instructing to execute formatting operation on the external memory card to increase the value of the file cluster, and the value of the file cluster is in direct proportion to the speed of operation data;
the judging module is further configured to determine that the external memory card does not meet the storage requirement of the target protocol level when the writing speed of the external memory card is lower than the preset speed corresponding to the second level if the preset protocol level corresponding to the target protocol level of the external memory card is a preset second level, and trigger a prompting module to display prompting information, where the prompting information is used to instruct to execute a replacement operation on the external memory card; or when the writing speed of the external memory card is not less than the preset speed corresponding to the second level and the value of a file cluster set when the external memory card is formatted is less than a preset cluster value, determining that the external memory card does not meet the storage requirement of the target protocol level, and triggering a prompt module to display prompt information, wherein the prompt information is used for indicating that the external memory card is formatted to increase the value of the file cluster;
the judging module is further configured to determine that the external memory card does not meet the storage requirement of the target protocol level if a preset protocol level corresponding to the target protocol level of the external memory card is a preset third level, and trigger a prompting module to display prompting information, where the prompting information is used to instruct to execute a replacement operation on the external memory card;
and the storage module is used for storing the file to be stored in the external storage card after detecting that the replacement operation or the formatting operation is executed on the external storage card.
3. A mobile terminal file storage device is applied to a mobile terminal and comprises:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of claim 1.
CN201710740696.5A 2017-08-25 2017-08-25 Mobile terminal file storage method and device Active CN107526814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710740696.5A CN107526814B (en) 2017-08-25 2017-08-25 Mobile terminal file storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710740696.5A CN107526814B (en) 2017-08-25 2017-08-25 Mobile terminal file storage method and device

Publications (2)

Publication Number Publication Date
CN107526814A CN107526814A (en) 2017-12-29
CN107526814B true CN107526814B (en) 2020-11-03

Family

ID=60682213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710740696.5A Active CN107526814B (en) 2017-08-25 2017-08-25 Mobile terminal file storage method and device

Country Status (1)

Country Link
CN (1) CN107526814B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941843B (en) * 2019-11-22 2022-03-29 北京明略软件系统有限公司 Encryption implementation method, device, equipment and storage medium
CN111538536B (en) * 2020-04-03 2021-09-21 深圳市沃特沃德信息有限公司 Method for formatting intelligent terminal, intelligent terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156259A (en) * 2013-05-15 2014-11-19 中兴通讯股份有限公司 Stored information sending method and device for memory cards
CN104765576A (en) * 2015-04-28 2015-07-08 广东欧珀移动通信有限公司 Data storage method and data storage device
CN105740425A (en) * 2016-01-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 File storage method and apparatus
CN106126534A (en) * 2016-06-14 2016-11-16 乐视控股(北京)有限公司 Formatting method and device
WO2016183868A1 (en) * 2015-05-21 2016-11-24 宇龙计算机通信科技(深圳)有限公司 Storage space allocation method and apparatus, and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156259A (en) * 2013-05-15 2014-11-19 中兴通讯股份有限公司 Stored information sending method and device for memory cards
CN104765576A (en) * 2015-04-28 2015-07-08 广东欧珀移动通信有限公司 Data storage method and data storage device
WO2016183868A1 (en) * 2015-05-21 2016-11-24 宇龙计算机通信科技(深圳)有限公司 Storage space allocation method and apparatus, and electronic device
CN105740425A (en) * 2016-01-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 File storage method and apparatus
CN106126534A (en) * 2016-06-14 2016-11-16 乐视控股(北京)有限公司 Formatting method and device

Also Published As

Publication number Publication date
CN107526814A (en) 2017-12-29

Similar Documents

Publication Publication Date Title
CN110888521B (en) Mobile terminal and application program running method thereof
CN102087575A (en) Electronic device and method for dynamic arrangement of icons
CN106951521B (en) Method, device and system for reading and writing log file
CN114051145B (en) Video compression processing method, device and medium
CN109800181B (en) Disk-based data writing method, data writing device and terminal equipment
US20200278806A1 (en) Universal flash storage memory module, controller and electronic device with advanced turbo write buffer and method for operating the memory module
CN103399865A (en) Method and device for multi-media file generation
CN107526814B (en) Mobile terminal file storage method and device
US20190107929A1 (en) Method and device for loading content of page, and electronic device
CN113419679A (en) Storage device, system-on-chip, electronic equipment and storage method
CN112711387A (en) Method and device for adjusting capacity of buffer area, electronic equipment and readable storage medium
CN111104178A (en) Dynamic library loading method, terminal device and storage medium
US20170345428A1 (en) Docking device for providing computing service and method for providing the same
US20160154545A1 (en) Electronic device and method for managing and displaying application icons
CN103425539A (en) Information processing method and information processing device
CN105100384B (en) The default storage device selection method and device of mobile terminal, mobile terminal
CN106470351B (en) Page display method and page display device
US20190220948A1 (en) Method and associated processor for buffer swap
CN109726166B (en) Electronic book display method and device, computer equipment and readable storage medium
CN104424306A (en) Method, device and terminal equipment for recording log
CN114638742A (en) Scene picture processing method and electronic equipment
CN113272785A (en) Method for mounting file system, terminal equipment and storage medium
EP2955621B1 (en) Electronic device and file storing method thereof
CN114527907A (en) Menu data processing method and device, computer equipment and storage medium
CN116009969A (en) Application program control method, device, electronic equipment, chip and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder