CN107526814A - Mobile terminal document storage method and device - Google Patents

Mobile terminal document storage method and device Download PDF

Info

Publication number
CN107526814A
CN107526814A CN201710740696.5A CN201710740696A CN107526814A CN 107526814 A CN107526814 A CN 107526814A CN 201710740696 A CN201710740696 A CN 201710740696A CN 107526814 A CN107526814 A CN 107526814A
Authority
CN
China
Prior art keywords
storage card
external storage
grade
memory requirement
stored
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
Application number
CN201710740696.5A
Other languages
Chinese (zh)
Other versions
CN107526814B (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

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 kind of mobile terminal document storage method and device, belong to field of storage.Methods described includes:When detect need the file to be stored for being stored in external storage card when, judge whether the external storage card meets the memory requirement of the file to be stored;When the external storage card is unsatisfactory for the memory requirement, display reminding information, the prompt message is used to indicate to perform assigned operation to the external storage card, and the assigned operation includes replacement operation or format manipulation;After detecting to the external storage card execution assigned operation, the file to be stored is stored in the external storage card.The problem of external storage card that the present invention solves in insertion mobile terminal is unsatisfactory for the memory requirement of file to be stored and causes file storage failure, and the reliability of storage file is poor, the effect for the reliability for improving storage file is realized, is stored for file.

Description

Mobile terminal document storage method and device
Technical field
The present invention relates to field of storage, more particularly to a kind of mobile terminal document storage method and device.
Background technology
With the popularization of the mobile terminals such as mobile phone, tablet personal computer, user often using mobile terminal download high-definition movie, TV play either the larger file of other data volumes or using mobile terminal carry out for a long time record, record a video etc. operation, this A little operations can also generate the larger file of data volume.Mobile terminal is provided with embedded memory card and external storage card (such as safe number Code card (Secure Digital Memory Card, SD)), because the memory space of embedded memory card is smaller, and it is not expansible, It is easy to be taken by file, influences the speed of service of mobile terminal, it is possible to which file is stored in external storage card.
In correlation technique, in order to which file is stored in external storage card, it usually needs first insert external storage card and move Dynamic terminal, then carries out initialization operation to external storage card, completes the carry of external storage card.Afterwards can be so that file to be deposited Storage is in external storage card.
But when inserting the external storage card in mobile terminal and being unsatisfactory for the memory requirement of file to be stored, text can be caused Part storage failure, the reliability of storage file are poor.
The content of the invention
The invention provides a kind of mobile terminal document storage method and device, can solve to insert movement in correlation technique External storage card in terminal be unsatisfactory for the memory requirement of file to be stored and cause file storage failure, storage file it is reliable The problem of property is poor.The technical scheme is as follows:
First aspect, there is provided a kind of mobile terminal document storage method, methods described include:
When detect need the file to be stored for being stored in external storage card when, judge whether the external storage card meets The memory requirement of the file to be stored;
When the external storage card is unsatisfactory for the memory requirement, display reminding information, the prompt message is used to refer to Show and assigned operation is performed to the external storage card, the assigned operation includes replacement operation or format manipulation;
After detecting to the external storage card execution assigned operation, the file to be stored is stored in described External storage card.
Optionally, it is described to judge whether the external storage card meets the memory requirement of the file to be stored, including:
Obtain the target protocol grade of the external storage card;
The default protocol level of preset protocol ranked queries and memory requirement according to corresponding to the target protocol grade Corresponding relation, obtain the memory requirement of the target protocol grade;
Judge whether the external storage card meets the memory requirement of the target protocol grade.
Optionally, when the preset protocol grade corresponding to the target protocol grade of the external storage card is default first It is described to judge whether the external storage card meets the memory requirement of the target protocol grade during grade, including:
When the input and output IO voltages of the external storage card are not belonging to predetermined voltage range corresponding to described the first estate When, determine that the external storage card is unsatisfactory for the memory requirement of the target protocol grade, the prompt message is used for instruction pair The external storage card performs replacement operation;
Or when the IO voltages of the external storage card belong to predetermined voltage range corresponding to described the first estate, and institute When stating the value of the document cluster set when external storage card is formatted less than default cluster value, determine that the external storage card is unsatisfactory for The memory requirement of the target protocol grade, the prompt message are used to indicate to perform format manipulation to the external storage card To increase the value of the document cluster.
Optionally, when the preset protocol grade corresponding to the target protocol grade of the external storage card is default second It is described to judge whether the external storage card meets the memory requirement of the target protocol grade during grade, including:
When the writing speed of the external storage card is less than pre-set velocity corresponding to second grade, determine described outer The memory requirement that storage card is unsatisfactory for the target protocol grade is put, the prompt message is used to indicate to the external storage card Perform replacement operation;
Or when the writing speed of the external storage card is not less than pre-set velocity corresponding to second grade, and institute When stating the value of the document cluster set when external storage card is formatted less than default cluster value, determine that the external storage card is unsatisfactory for The memory requirement of the target protocol grade, the prompt message are used to indicate to perform format manipulation to the external storage card To increase the value of the document cluster.
Optionally, it is described to judge whether the external storage card meets the memory requirement of the target protocol grade, including:
When the preset protocol grade corresponding to the target protocol grade of the external storage card is the default tertiary gradient, Determine that the external storage card is unsatisfactory for the memory requirement of the target protocol grade, the prompt message is used to indicate to described External storage card performs replacement operation.
Second aspect, there is provided a kind of mobile terminal document storage device, described device include:
Judge module, for detect need the file to be stored for being stored in external storage card when, judge described external Whether storage card meets the memory requirement of the file to be stored;
Reminding module, for when the external storage card is unsatisfactory for the memory requirement, display reminding information to be described to carry Show information be used for indicate to the external storage card perform assigned operation, the assigned operation include replacement operation or format grasp Make;
Memory module, will be described to be stored for after detecting and performing the assigned operation to the external storage card File is stored in the external storage card.
Optionally, the judge module, including:
Acquisition submodule, for obtaining the target protocol grade of the external storage card;
Submodule is inquired about, for the default agreement of preset protocol ranked queries according to corresponding to the target protocol grade The corresponding relation of grade and memory requirement, obtain the memory requirement of the target protocol grade;
Judging submodule, for judging whether the external storage card meets the memory requirement of the target protocol grade.
Optionally, when the preset protocol grade corresponding to the target protocol grade of the external storage card is default first During grade, the judging submodule is used for:
When the input and output IO voltages of the external storage card are not belonging to predetermined voltage range corresponding to described the first estate When, determine that the external storage card is unsatisfactory for the memory requirement of the target protocol grade, the prompt message is used for instruction pair The external storage card performs replacement operation;
Or when the IO voltages of the external storage card belong to predetermined voltage range corresponding to described the first estate, and institute When stating the value of the document cluster set when external storage card is formatted less than default cluster value, determine that the external storage card is unsatisfactory for The memory requirement of the target protocol grade, the prompt message are used to indicate to perform format manipulation to the external storage card To increase the value of the document cluster.
Optionally, when the preset protocol grade corresponding to the target protocol grade of the external storage card is default second During grade, the judging submodule is used for:
When the writing speed of the external storage card is less than pre-set velocity corresponding to second grade, determine described outer The memory requirement that storage card is unsatisfactory for the target protocol grade is put, the prompt message is used to indicate to the external storage card Perform replacement operation;
Or when the writing speed of the external storage card is not less than pre-set velocity corresponding to second grade, and institute When stating the value of the document cluster set when external storage card is formatted less than default cluster value, determine that the external storage card is unsatisfactory for The memory requirement of the target protocol grade, the prompt message are used to indicate to perform format manipulation to the external storage card To increase the value of the document cluster.
The third aspect, there is provided a kind of mobile terminal document storage device, including:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
When detect need the file to be stored for being stored in external storage card when, judge whether the external storage card meets The memory requirement of the file to be stored;
When the external storage card is unsatisfactory for the memory requirement, display reminding information, the prompt message is used to refer to Show and assigned operation is performed to the external storage card, the assigned operation includes replacement operation or format manipulation;
After detecting to the external storage card execution assigned operation, the file to be stored is stored in described External storage card.
Fourth aspect, there is provided a kind of storage medium, when the instruction in the storage medium is by the processor of mobile terminal During execution so that the mobile terminal is able to carry out the file memory method described in first aspect.
The invention provides a kind of mobile terminal document storage method and device, needs to be stored in external storage when detecting During the file to be stored of card, judge whether external storage card meets the memory requirement of file to be stored, and work as external storage card not When meeting memory requirement, display reminding information, the prompt message is used to indicate to perform assigned operation to external storage card, and this is specified Operation includes replacement operation or format manipulation, afterwards, will be to be stored after detecting to external storage card execution assigned operation File is stored in external storage card, avoids the storage that the external storage card in mobile terminal is inserted is unsatisfactory for file to be stored It is required that when file storage failure, improve the reliability of storage file.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not Can the limitation present invention.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of flow chart of mobile terminal document storage method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another mobile terminal document storage method provided in an embodiment of the present invention;
Fig. 3 is the interface schematic diagram for the prompt message that mobile terminal provided in an embodiment of the present invention is shown;
Fig. 4 is a kind of structural representation of mobile terminal document storage device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of judge module provided in an embodiment of the present invention.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the present invention, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope of present inventive concept by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate idea of the invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
The embodiments of the invention provide a kind of mobile terminal document storage method, for mobile terminal, as shown in figure 1, should Method includes:
Step 101, when detect need the file to be stored for being stored in external storage card when, whether judge external storage card Meet the memory requirement of file to be stored.
Step 102, when external storage card is unsatisfactory for memory requirement, display reminding information, the prompt message be used for indicate Assigned operation is performed to external storage card, the assigned operation includes replacement operation or format manipulation.
Step 103, detect to external storage card perform assigned operation after, file to be stored is stored in external storage Card.
In summary, mobile terminal document storage method provided in an embodiment of the present invention, outside detecting that needs are stored in When putting the file to be stored of storage card, judge whether external storage card meets the memory requirement of file to be stored, and external ought deposit When card storage is unsatisfactory for memory requirement, display reminding information, the prompt message is used to indicate to perform assigned operation to external storage card, The assigned operation includes replacement operation or format manipulation, afterwards, will after detecting to external storage card execution assigned operation File to be stored is stored in external storage card, and the external storage card avoided in mobile terminal is inserted is unsatisfactory for file to be stored Memory requirement when file storage failure, improve the reliability of storage file.
The embodiments of the invention provide another mobile terminal document storage method, for mobile terminal, as shown in Fig. 2 This method includes:
Step 201, when detect need the file to be stored for being stored in external storage card when, obtain the mesh of external storage card Mark protocol level.
Example, the mobile terminal can be mobile phone, tablet personal computer or notebook etc..In order to which file to be stored is stored in External storage card by external storage card, it is necessary to first insert mobile terminal.Then external storage card is performed just by mobile terminal Beginningization operates, such as, input and output (input-output, IO) voltage to external storage card carries out initialization operation.Afterwards, Carry is performed to external storage card by mobile terminal again to operate.After the success of external storage card carry, mobile terminal can be passed through The storing card data of external storage card is accessed, the storing card data can include protocol level, IO voltages and external storage card quilt Value of the document cluster set during formatting etc..
In embodiments of the present invention, the target protocol grade of external storage card can be 3.0,2.0 or 1.0, accordingly, outside It can be SD3.0, SD2.0 or SD 1.0 to put storage card.Wherein, 3.0 grades represented are higher than 2.0 grades represented, and 2.0 represent Grade be higher than 1.0 represent grades.
Step 202, the default protocol level of preset protocol ranked queries according to corresponding to target protocol grade and storage It is required that corresponding relation, obtain the memory requirement of target protocol grade.
Table 1 illustrates the corresponding relation of protocol level and memory requirement, referring to table 1, is deposited corresponding to the first estate It is A that storage, which requires, for example when the first estate is 3.0, A can be that the IO voltages of external storage card belong to pre- corresponding to the first estate If voltage range, and the value of the document cluster set when external storage card is formatted is not less than default cluster value.Second grade is corresponding Memory requirement be B, such as when the second grade be 2.0 when, B can be external storage card writing speed be not less than the second grade Corresponding pre-set velocity, and the value of the document cluster set when external storage card is formatted is not less than default cluster value.Assuming that step Preset protocol grade corresponding to the target protocol grade of the external storage card obtained in 201 is 2.0, then mobile terminal enquiry The memory requirement of the target protocol grade obtained after table 1 is B:The writing speed of external storage card is not less than corresponding to the second grade Pre-set velocity, and the value of the document cluster set when external storage card is formatted is not less than default cluster value.
Table 1
Protocol level Memory requirement
The first estate A
Second grade B
Step 203, judge whether external storage card meets the memory requirement of target protocol grade.
Preset protocol grade corresponding to the target protocol grade of external storage card is different, and mobile terminal judges external storage Whether card meets that the mode of the memory requirement of target protocol grade is then different.
Such as when the preset protocol grade corresponding to the target protocol grade of external storage card is default the first estate When, step 203 can include:
When the IO voltages of external storage card are not belonging to predetermined voltage range corresponding to the first estate, external storage card is determined It is unsatisfactory for the memory requirement of target protocol grade;Or preset when the IO voltages of external storage card belong to corresponding to the first estate Voltage range, and when the value of the document cluster set when external storage card is formatted is less than default cluster value, determine external storage card It is unsatisfactory for the memory requirement of target protocol grade.Wherein, the first estate 3.0.After the success of external storage card carry, pass through movement Terminal can access the storing card data of external storage card, and the storing card data can include IO voltages and external storage card by lattice Value of the document cluster set during formula etc..Predetermined voltage range corresponding to the first estate can be that (V1- Δs v, V1+ Δ v), V1 can Think that 1.8V (volt), Δ v are more than 0.Example, Δ v is 0.5V, then the predetermined voltage range is (1.3,2.3), it is assumed that current The IO voltages of external storage card are 3.3V, then mobile terminal can determine that the IO voltages of the external storage card are not belonging to first etc. Predetermined voltage range corresponding to level.Assuming that the IO voltages of current external storage card are 1.9V, then mobile terminal can determine this The IO voltages of external storage card belong to predetermined voltage range corresponding to the first estate.
In correlation technique, document cluster is the least unit that the file system of mobile terminal uses for completion data manipulation, File is accessed in units of document cluster.The value of document cluster is bigger, and the logic block number of the file of a fixed size is got over Few, required addressing number is fewer, and the required addressing time is shorter, and the speed of operation data is bigger.Generally external Put when storage card performs format manipulation, it is necessary to set the value of document cluster.Therefore, in the method, can further be based on Whether the value of the document cluster set when external storage card is formatted is less than default cluster value to judge whether external storage card meets The memory requirement of target protocol grade.Example, it is 32K to preset cluster value (1K is equal to 1024 bytes).Assuming that external storage card IO voltages are 1.9V, and the value of the document cluster set when external storage card is formatted is 30K, because 1.9V belongs to predeterminated voltage Scope (1.3,2.3), 30K are less than 32K, so mobile terminal can determine that external storage card is unsatisfactory for depositing for target protocol grade Storage requires, and then prompts user's value for increasing document cluster.
Again for example, when the preset protocol grade corresponding to the target protocol grade of external storage card is default second grade When, step 203 can include:
When the writing speed of external storage card is less than pre-set velocity corresponding to the second grade, determine that external storage card is discontented with The memory requirement of foot-eye protocol level;Or when the writing speed of external storage card is preset not less than corresponding to the second grade Speed, and when the value of the document cluster set when external storage card is formatted is less than default cluster value, determine that external storage card is discontented with The memory requirement of foot-eye protocol level.Wherein, the second grade is 2.0., can be with order to determine the writing speed of external storage card The file of a specified size is write to external storage card, and records the write-in duration of this document, then according to the big of this document Whether writing speed that is small and writing the duration calculation external storage card, the writing speed for then judging to calculate are less than the second grade Corresponding pre-set velocity.Example, pre-set velocity corresponding to the second grade can be 10MB/s (million/second).Assuming that what is calculated is outer The writing speed for putting storage card is 9MB/s, because 9MB/s is less than 10MB/s, so mobile terminal can determine external storage card It is unsatisfactory for the memory requirement of target protocol grade.Further, the text set when can also be formatted based on external storage card Whether the value of part cluster is less than default cluster value to judge whether external storage card meets the memory requirement of target protocol grade.Example , it is 32K to preset cluster value.Assuming that the writing speed of the external storage card calculated is 12MB/s, and external storage card is formatted When the value of document cluster that sets be 30K, because 12MB/s is more than 10MB/s, 30K is less than 32K, so mobile terminal can determine External storage card is unsatisfactory for the memory requirement of target protocol grade, and then prompts user's value for increasing document cluster.
When the writing speed of external storage card is not less than pre-set velocity corresponding to the second grade, and external storage card is by form When the value of the document cluster set during change is not less than default cluster value, mobile terminal can determine that external storage card meets target protocol etc. The memory requirement of level.
For another example, when the preset protocol grade corresponding to the target protocol grade of external storage card is the default tertiary gradient When, mobile terminal can directly determine that external storage card is unsatisfactory for the memory requirement of target protocol grade.Wherein, the tertiary gradient is 1.0。
Step 204, when external storage card is unsatisfactory for the memory requirement of target protocol grade, display reminding information.
The prompt message is used to indicate to include replacement operation or lattice to external storage card execution assigned operation, the assigned operation Formulaization operates.
Example, the preset protocol grade corresponding to the target protocol grade in external storage card is default the first estate In the case of, the first estate 3.0, on the one hand, when the IO voltages of external storage card are not belonging to preset electricity corresponding to the first estate When pressing scope, the prompt message that mobile terminal is shown can serve to indicate that to external storage card execution replacement operation.Assuming that user Recorded a video using mobile terminal, if the IO voltages of external storage card are not belonging to predetermined voltage range corresponding to the first estate, Caton phenomenon occurs in video process.Assuming that user is taken pictures using mobile terminal, if the IO voltages of external storage card do not belong to In predetermined voltage range corresponding to the first estate, then Caton phenomenon also occurs during taking pictures.So work as external storage card IO voltages when being not belonging to predetermined voltage range corresponding to the first estate, the prompt message that mobile terminal is shown can serve to indicate that Replacement operation is performed to external storage card, prompts user to replace the external storage card in time, avoids the occurrence of Caton phenomenon.Example , mobile terminal can show the prompt message 30 by the way of pop-up, as shown in Figure 3.On the other hand, when external storage The IO voltages of card belong to predetermined voltage range corresponding to the first estate, and the document cluster set when external storage card is formatted When value is less than default cluster value, the prompt message that mobile terminal is shown is used to indicate to perform format manipulation to external storage card to increase The value of big document cluster, and then the addressing number needed for operation data is reduced, shorten the required addressing time, improve operation data Speed.
Example, the preset protocol grade corresponding to the target protocol grade in external storage card is default second grade In the case of, the second grade is 2.0, on the one hand when the writing speed of external storage card is less than pre-set velocity corresponding to the second grade When, the prompt message that mobile terminal is shown can serve to indicate that to external storage card execution replacement operation.Assuming that user utilizes shifting Dynamic terminal video recording, if the writing speed of external storage card is less than pre-set velocity corresponding to the second grade, external storage card is write It is relatively low to enter speed, then by real-time recording into external storage card Caton phenomenon can not occurs, finally in video in video process Video record is caused to fail, video damage.Assuming that user is taken pictures using mobile terminal, if the writing speed of external storage card is small In pre-set velocity corresponding to the second grade, then Caton phenomenon also occurs during taking pictures.So writing when external storage card Enter speed to be less than corresponding to the second grade during pre-set velocity, the prompt message that mobile terminal is shown can serve to indicate that deposits to external Card storage performs replacement operation, prompts user to replace the external storage card in time.On the other hand, when the write-in speed of external storage card Degree be not less than pre-set velocity corresponding to the second grade, and the value of the document cluster set when external storage card is formatted is less than and preset During cluster value, the prompt message that mobile terminal is shown is used to indicate to perform format manipulation to external storage card to increase document cluster Value, and then the addressing number needed for operation data is reduced, shorten the required addressing time, improve the speed of operation data.
Example, the preset protocol grade corresponding to the target protocol grade in external storage card is the default tertiary gradient In the case of, the tertiary gradient 1.0, the prompt message that mobile terminal is shown is used to indicate to perform external storage card to change behaviour Make, prompt user to use the external storage card of another protocol level.
In addition, when mobile terminal determines that external storage card meets the memory requirement of target protocol grade, mobile terminal can Not show corresponding prompt message, so as to reach the effect for saving electricity.
Step 205, detect to external storage card perform assigned operation after, file to be stored is stored in external storage Card.
File to be stored is stored in external storage by mobile terminal after detecting to external storage card execution assigned operation Card.Because the external storage card for the memory requirement for being unsatisfactory for file to be stored has been performed replacement operation, or format manipulation, Therefore, after detecting to external storage card execution assigned operation, file to be stored is stored in into external storage card to avoid File storage failure.
It should be noted that the sequencing of mobile terminal document storage method step provided in an embodiment of the present invention can be with Suitably adjusted, step according to circumstances can also accordingly be increased and decreased, and any one skilled in the art is at this Invent in the technical scope disclosed, the method that change can be readily occurred in, should all be included within the scope of the present invention, therefore Repeat no more.
In summary, mobile terminal document storage method provided in an embodiment of the present invention, outside detecting that needs are stored in When putting the file to be stored of storage card, judge whether external storage card meets the memory requirement of file to be stored, and external ought deposit When card storage is unsatisfactory for memory requirement, display reminding information, the prompt message is used to indicate to perform assigned operation to external storage card, The assigned operation includes replacement operation or format manipulation, afterwards, will after detecting to external storage card execution assigned operation File to be stored is stored in external storage card, and the external storage card avoided in mobile terminal is inserted is unsatisfactory for file to be stored Memory requirement when file storage failure, improve the reliability of storage file.
Following is apparatus of the present invention embodiment, can be used for performing the inventive method embodiment.It is real for apparatus of the present invention The details not disclosed in example is applied, refer to the inventive method embodiment.
The embodiments of the invention provide a kind of mobile terminal document storage device, for mobile terminal, as shown in figure 4, should File storage device 400 includes:
Judge module 410, for detect need the file to be stored for being stored in external storage card when, judge external deposit Whether card storage meets the memory requirement of file to be stored.
Reminding module 420, for when external storage card is unsatisfactory for memory requirement, display reminding information.The prompt message For indicating to perform assigned operation to external storage card, the assigned operation includes replacement operation or format manipulation.
Memory module 430, for after detecting to external storage card execution assigned operation, file to be stored to be stored in External storage card.
Optionally, as shown in figure 5, judge module 410, including:
Acquisition submodule 411, for obtaining the target protocol grade of external storage card.
Submodule 412 is inquired about, for the default agreement of preset protocol ranked queries according to corresponding to target protocol grade The corresponding relation of grade and memory requirement, obtain the memory requirement of target protocol grade.
Judging submodule 413, for judging whether external storage card meets the memory requirement of target protocol grade.
Optionally, when the preset protocol grade corresponding to the target protocol grade of external storage card is default the first estate When, judging submodule 413 is used for:
When the IO voltages of external storage card are not belonging to predetermined voltage range corresponding to the first estate, external storage card is determined The memory requirement of target protocol grade is unsatisfactory for, corresponding prompt message is used to indicate to perform replacement operation to external storage card; Or when the IO voltages of external storage card belong to predetermined voltage range corresponding to the first estate, and external storage card is formatted When the value of document cluster that sets when being less than default cluster value, determine that external storage card is unsatisfactory for the memory requirement of target protocol grade, Corresponding prompt message is used to indicate to perform format manipulation to external storage card to increase the value of document cluster.
Optionally, when the preset protocol grade corresponding to the target protocol grade of external storage card is default second grade When, judging submodule 413 is used for:
When the writing speed of external storage card is less than pre-set velocity corresponding to the second grade, determine that external storage card is discontented with The memory requirement of foot-eye protocol level, corresponding prompt message are used to indicate to perform replacement operation to external storage card;Or Set when the writing speed of external storage card is not less than pre-set velocity corresponding to the second grade, and external storage card is formatted The value of document cluster when being less than default cluster value, determine that external storage card is unsatisfactory for the memory requirement of target protocol grade, accordingly Prompt message is used to indicate to perform format manipulation to external storage card to increase the value of document cluster.
Optionally, judging submodule 413, it is additionally operable to:
When the preset protocol grade corresponding to the target protocol grade of external storage card is the default tertiary gradient, it is determined that External storage card is unsatisfactory for the memory requirement of target protocol grade, and corresponding prompt message is used to indicate to perform external storage card Replacement operation.
In summary, mobile terminal document storage device provided in an embodiment of the present invention, judge module are detecting needs When being stored in the file to be stored of external storage card, judge whether external storage card meets the memory requirement of file to be stored, carry Show module when external storage card is unsatisfactory for memory requirement, display reminding information, the prompt message is used to indicate to external storage Card performs assigned operation, and the assigned operation includes replacement operation or format manipulation, and afterwards, memory module is being detected to external After storage card performs assigned operation, file to be stored is stored in external storage card, avoided outer in mobile terminal is inserted Put storage card and be unsatisfactory for file storage failure during the memory requirement of file to be stored, improve the reliability of storage file.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description With the specific work process of module, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
The embodiments of the invention provide a kind of mobile terminal document storage device, including:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
When detect need the file to be stored for being stored in external storage card when, judge whether external storage card meets to wait to deposit Store up the memory requirement of file;
When external storage card is unsatisfactory for memory requirement, display reminding information, the prompt message is used to indicate to deposit to external Card storage performs assigned operation, and assigned operation includes replacement operation or format manipulation;
After detecting to external storage card execution assigned operation, file to be stored is stored in external storage card.
The embodiments of the invention provide a kind of storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device performs so that the mobile terminal is able to carry out the mobile terminal document storage method shown in Fig. 2.
The embodiment of the present invention additionally provides a kind of computer program product for including instruction, when the computer program product exists When being run on computer so that computer performs the mobile terminal document storage method shown in Fig. 2.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (10)

1. a kind of mobile terminal document storage method, it is characterised in that methods described includes:
When detect need the file to be stored for being stored in external storage card when, it is described to judge whether the external storage card meets The memory requirement of file to be stored;
When the external storage card is unsatisfactory for the memory requirement, display reminding information, the prompt message is used for instruction pair The external storage card performs assigned operation, and the assigned operation includes replacement operation or format manipulation;
After detecting to the external storage card execution assigned operation, the file to be stored is stored in described external Storage card.
2. according to the method for claim 1, it is characterised in that described to judge whether the external storage card meets described treat The memory requirement of storage file, including:
Obtain the target protocol grade of the external storage card;
Pair of the default protocol level of preset protocol ranked queries and memory requirement according to corresponding to the target protocol grade It should be related to, obtain the memory requirement of the target protocol grade;
Judge whether the external storage card meets the memory requirement of the target protocol grade.
3. according to the method for claim 2, it is characterised in that when corresponding to the target protocol grade of the external storage card Preset protocol grade when being default the first estate, it is described to judge whether the external storage card meets described target protocol etc. The memory requirement of level, including:
When the input and output IO voltages of the external storage card are not belonging to predetermined voltage range corresponding to described the first estate, really The fixed external storage card is unsatisfactory for the memory requirement of the target protocol grade, and the prompt message is used to indicate to described outer Put storage card and perform replacement operation;
Or when the IO voltages of the external storage card belong to predetermined voltage range corresponding to described the first estate, and it is described outer When putting the value of the document cluster set when storage card is formatted less than default cluster value, it is described to determine that the external storage card is unsatisfactory for The memory requirement of target protocol grade, the prompt message are used to indicate to perform format manipulation to the external storage card to increase The value of the big document cluster.
4. according to the method for claim 2, it is characterised in that when corresponding to the target protocol grade of the external storage card Preset protocol grade when being default second grade, it is described to judge whether the external storage card meets described target protocol etc. The memory requirement of level, including:
When the writing speed of the external storage card is less than pre-set velocity corresponding to second grade, described external deposit is determined Card storage is unsatisfactory for the memory requirement of the target protocol grade, and the prompt message is used to indicate to perform the external storage card Replacement operation;
Or when the writing speed of the external storage card is not less than pre-set velocity corresponding to second grade, and it is described outer When putting the value of the document cluster set when storage card is formatted less than default cluster value, it is described to determine that the external storage card is unsatisfactory for The memory requirement of target protocol grade, the prompt message are used to indicate to perform format manipulation to the external storage card to increase The value of the big document cluster.
5. according to the method for claim 2, it is characterised in that described to judge whether the external storage card meets the mesh The memory requirement of protocol level is marked, including:
When the preset protocol grade corresponding to the target protocol grade of the external storage card is the default tertiary gradient, it is determined that The external storage card is unsatisfactory for the memory requirement of the target protocol grade, and the prompt message is used to indicate to described external Storage card performs replacement operation.
6. a kind of mobile terminal document storage device, it is characterised in that described device includes:
Judge module, for detect need the file to be stored for being stored in external storage card when, judge the external storage Whether card meets the memory requirement of the file to be stored;
Reminding module, for when the external storage card is unsatisfactory for the memory requirement, display reminding information, the prompting to be believed Cease for indicating to perform assigned operation to the external storage card, the assigned operation includes replacement operation or format manipulation;
Memory module, for after detecting and performing the assigned operation to the external storage card, by the file to be stored It is stored in the external storage card.
7. device according to claim 6, it is characterised in that the judge module, including:
Acquisition submodule, for obtaining the target protocol grade of the external storage card;
Submodule is inquired about, for the default protocol level of preset protocol ranked queries according to corresponding to the target protocol grade With the corresponding relation of memory requirement, the memory requirement of the target protocol grade is obtained;
Judging submodule, for judging whether the external storage card meets the memory requirement of the target protocol grade.
8. device according to claim 7, it is characterised in that when corresponding to the target protocol grade of the external storage card Preset protocol grade when being default the first estate, the judging submodule is used for:
When the input and output IO voltages of the external storage card are not belonging to predetermined voltage range corresponding to described the first estate, really The fixed external storage card is unsatisfactory for the memory requirement of the target protocol grade, and the prompt message is used to indicate to described outer Put storage card and perform replacement operation;
Or when the IO voltages of the external storage card belong to predetermined voltage range corresponding to described the first estate, and it is described outer When putting the value of the document cluster set when storage card is formatted less than default cluster value, it is described to determine that the external storage card is unsatisfactory for The memory requirement of target protocol grade, the prompt message are used to indicate to perform format manipulation to the external storage card to increase The value of the big document cluster.
9. device according to claim 7, it is characterised in that when corresponding to the target protocol grade of the external storage card Preset protocol grade when being default second grade, the judging submodule is used for:
When the writing speed of the external storage card is less than pre-set velocity corresponding to second grade, described external deposit is determined Card storage is unsatisfactory for the memory requirement of the target protocol grade, and the prompt message is used to indicate to perform the external storage card Replacement operation;
Or when the writing speed of the external storage card is not less than pre-set velocity corresponding to second grade, and it is described outer When putting the value of the document cluster set when storage card is formatted less than default cluster value, it is described to determine that the external storage card is unsatisfactory for The memory requirement of target protocol grade, the prompt message are used to indicate to perform format manipulation to the external storage card to increase The value of the big document cluster.
A kind of 10. mobile terminal document storage device, it is characterised in that including:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
When detect need the file to be stored for being stored in external storage card when, it is described to judge whether the external storage card meets The memory requirement of file to be stored;
When the external storage card is unsatisfactory for the memory requirement, display reminding information, the prompt message is used for instruction pair The external storage card performs assigned operation, and the assigned operation includes replacement operation or format manipulation;
After detecting to the external storage card execution assigned operation, the file to be stored is stored in described external Storage card.
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 true CN107526814A (en) 2017-12-29
CN107526814B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941843A (en) * 2019-11-22 2020-03-31 北京明略软件系统有限公司 Encryption implementation method, device, equipment and storage medium
CN111538536A (en) * 2020-04-03 2020-08-14 深圳市沃特沃德股份有限公司 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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜永生: "《多媒体技术与应用》", 31 January 2017 *

Cited By (4)

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

Also Published As

Publication number Publication date
CN107526814B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN104166561B (en) Electronic apparatus system starts method and electronic equipment
CN106095261B (en) Method and device for adding notes to electronic equipment
US10802750B2 (en) Universal flash storage memory module, controller and electronic device with advanced turbo write buffer and method for operating the memory module
CN100437504C (en) Hard disc data backup system and method
CN104699417A (en) Data storage device and data access method thereof
CN103984781A (en) Webpage loading method and device
CN100458736C (en) NAND flash information extraction method and NAND flash automatic identification method
US20120117347A1 (en) Initializing of a memory area
KR102337157B1 (en) Electronic blackboard apparatus and the controlling method thereof
CN107479834A (en) A kind of file memory method and device based on COS
CN107526814A (en) Mobile terminal document storage method and device
CN105446848B (en) The test method and device of the data processing performance of electronic equipment
CN106371950B (en) Method and device for realizing RAID level conversion
CN113282239A (en) Data migration method, memory and controller
CN106686457A (en) Intelligent television upgrading method and apparatus
CN106991083A (en) A kind of method and device of electronic document processing
CN101308474A (en) Storage system and storage device
CN206431605U (en) A kind of device of online read-write network interface card Nonvolatile memory
US20190087102A1 (en) Method, apparatus, storage medium, and terminal for optimizing memory card performance
US20100077112A1 (en) Data storage management system and method thereof
CN105830067A (en) Document information processing method, apparatus, and document processing apparatus and system
CN109299018B (en) Method and device for reading historical data in Flash memory
CN104965799A (en) Data caching device and method
CN103838608A (en) Method and device for page self-adaption of NAND Flash
CN103853670A (en) Information processing method and electronic device

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
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.