CN110007878B - Memory card processing method, memory card processing device and mobile terminal - Google Patents

Memory card processing method, memory card processing device and mobile terminal Download PDF

Info

Publication number
CN110007878B
CN110007878B CN201910308661.3A CN201910308661A CN110007878B CN 110007878 B CN110007878 B CN 110007878B CN 201910308661 A CN201910308661 A CN 201910308661A CN 110007878 B CN110007878 B CN 110007878B
Authority
CN
China
Prior art keywords
memory card
processor
transmission
transmission speed
file
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
CN201910308661.3A
Other languages
Chinese (zh)
Other versions
CN110007878A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910308661.3A priority Critical patent/CN110007878B/en
Publication of CN110007878A publication Critical patent/CN110007878A/en
Application granted granted Critical
Publication of CN110007878B publication Critical patent/CN110007878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • 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/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more 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/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of communication, and provides a memory card processing method, a memory card processing device, a mobile terminal and a computer readable storage medium, which comprise the following steps: acquiring the times that the transmission speed of the memory card is lower than a first threshold value in N times of file transmission, wherein N is an integer greater than 1; judging whether the number of times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceeds a preset number of times or not; and if the times that the transmission speed of the memory card is lower than the first threshold in N times of file transmission exceed the preset times, the transmission speed of the memory card is increased according to the state of the memory card. By the method and the device, the transmission speed of the memory card can be increased when the transmission performance of the memory card is low, and the memory card of the mobile terminal is ensured to be maintained at high transmission performance.

Description

Memory card processing method, memory card processing device and mobile terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a memory card processing method, a memory card processing apparatus, a mobile terminal, and a computer-readable storage medium.
Background
With the development of mobile terminal technology, in order to meet the personalized requirements of users on the Memory of the mobile terminal, the mobile terminal is usually provided with a Memory Card, such as a T-Card (T-Flash Card), a Secure Digital Card (SD Card), and the like, and the Memory Card can be used for storing data information such as songs, movies, electronic books, and the like. However, in the prior art, a detection mechanism for the transmission performance of the memory card is lacked, and after the memory card is used for a period of time, the transmission performance of the memory card is reduced, which easily causes the mobile terminal to suffer from aging problems such as card pause.
Disclosure of Invention
In view of the above, the present application provides a memory card processing method, a memory card processing apparatus, a mobile terminal and a computer-readable storage medium, so as to increase the transmission speed of a memory card when the transmission performance of the memory card is low, and ensure that the memory card of the mobile terminal maintains high transmission performance.
A first aspect of the present application provides a memory card processing method, including:
acquiring the times that the transmission speed of the memory card is lower than a first threshold value in N times of file transmission, wherein N is an integer greater than 1;
judging whether the number of times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceeds a preset number of times or not;
and if the times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceed the preset times, the transmission speed of the memory card is increased according to the state of the memory card.
A second aspect of the present application provides a memory card processing apparatus comprising:
the device comprises a frequency acquisition module, a transmission speed acquisition module and a transmission speed acquisition module, wherein the frequency acquisition module is used for acquiring the frequency of a first threshold value of the transmission speed u of the memory card in N times of file transmission, and N is an integer greater than 1;
the number judgment module is used for judging whether the number of times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceeds a preset number of times;
and the speed increasing module is used for increasing the transmission speed of the memory card according to the state of the memory card if the number of times that the transmission speed of the memory card is lower than the first threshold value in N file transmissions exceeds the preset number of times.
A third aspect of the present application provides a mobile terminal, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the memory card processing method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the memory card processing method according to the first aspect described above.
A fifth aspect of the present application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the memory card processing method as described in the first aspect above.
Therefore, the method and the device for transmitting the file of the memory card have the advantages that the times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission are obtained, whether the times that the transmission speed of the memory card is lower than the first threshold value in the N times of file transmission exceeds the preset times or not is judged, and when the times exceed the preset times, the transmission speed of the memory card is improved according to the state of the memory card. According to the method and the device, whether the storage card carries out low-performance transmission for a long time is detected by acquiring the times that the transmission speed is lower than the first threshold value when the storage card carries out N-time file transmission, the transmission speed of the storage card is improved when the storage card carries out low-performance transmission for a long time, the using time of the storage card can be prolonged, and therefore the storage card of the mobile terminal is ensured to be maintained at high transmission performance.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments or the prior art description will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings may be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic flow chart illustrating an implementation of a memory card processing method according to an embodiment of the present application;
fig. 2 is a schematic implementation flow diagram of a memory card processing method provided in the second embodiment of the present application;
fig. 3 is a schematic implementation flow diagram of a processing method of a memory card according to a third embodiment of the present application;
fig. 4 is a schematic diagram of a memory card processing apparatus according to a fourth embodiment of the present application;
fig. 5 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present application;
fig. 6 is a schematic diagram of a mobile terminal according to a sixth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a mobile terminal is described that includes a display and a touch-sensitive surface. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical means described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic view of an implementation flow of a memory card processing method provided in an embodiment of the present application, as shown in the figure, the memory card processing method may include the following steps:
step S101, acquiring the times that the transmission speed of the memory card is lower than a first threshold value in N times of file transmission.
Wherein N is an integer greater than 1.
In this embodiment of the present application, an initial value of the number of times that the transmission speed is lower than the first threshold may be set to zero in advance, and when the memory card performs file transmission each time, it is detected whether the transmission speed of the memory card in the file transmission is lower than the first threshold, if the transmission speed is lower than the first threshold, 1 is added to the number of times that the transmission speed is lower than the first threshold (that is, the number of times that the transmission performance is low), and if the transmission speed is not lower than the first threshold, 1 is not added to the number of times that the transmission speed is lower than the first threshold. The first threshold is used for judging whether the file transmission of the memory card is low-performance transmission or not when the memory card performs the file transmission of one time.
In the embodiment of the application, whether the transmission speed of the memory card needs to be increased or not can be detected by taking N times of file transmission as a period, the memory card acquires the times that the transmission speed in the N times of file transmission is lower than a first threshold value every time the memory card performs the N times of file transmission, whether the transmission speed of the memory card needs to be increased or not is judged according to the times that the transmission speed in the N times of file transmission is lower than the first threshold value, and if the transmission speed of the memory card does not need to be increased, the detection of the next N times of file transmission period is continued until the transmission speed of the memory card needs to be increased.
Because the transmission performance of the memory card is reduced after the memory card is used for a period of time, a timer can be started to time after the mobile terminal is detected to be inserted into the memory card so as to obtain the use duration of the memory card, and when the use duration of the memory card reaches the preset duration, the performance detection function of the memory card is started. The performance detection function may be a function of detecting whether the transmission speed of the memory card needs to be increased according to the number of times that the transmission speed of the memory card is lower than the first threshold in the N file transmissions. Optionally, because the time for the transmission performance of the memory cards of different brands and materials to start to decrease may be different, the corresponding relationship between the attribute information of the memory card and the preset duration may be pre-established, so that the preset duration matched with the memory card may be obtained according to the attribute information of the memory card.
In the embodiment of the present application, when the transmission speed of the memory card is obtained each time, the size of the file to be transmitted, the start time point and the end time point of the file transmission may be obtained first; and calculating the transmission speed of the memory card according to the size of the transmitted file, the starting time point and the ending time point of the file transmission. Specifically, when the memory card is in the file transfer state, the start time point start _ time and the end time point end _ time of the file transfer are intercepted by burying points in the bottom layer of the system, the size file _ size of the transferred file is captured, and the transfer speed of the memory card is calculated according to the formula v = file _ size/(end _ time-start _ time), where v is the transfer speed of the memory card. The memory card being in the file transfer state may refer to the memory card performing file transfer.
Step S102, judging whether the times of the storage card with the transmission speed lower than the first threshold value in N times of file transmission exceed the preset times.
In the embodiment of the application, the number of times that the transmission speed of the memory card is lower than a first threshold in N times of file transmission is compared with a preset number of times to judge whether the transmission speed of the memory card is lower than the first threshold in the N times of file transmission and exceeds the preset number of times, and if the number of times that the transmission speed of the memory card is lower than the first threshold in the N times of file transmission exceeds the preset number of times, the mobile terminal is determined to need to improve the transmission speed of the memory card; if the number of times that the transmission speed of the memory card is lower than the first threshold value in the N times of file transmission does not exceed the preset number of times, it is determined that the mobile terminal does not need to improve the transmission speed of the memory card. Wherein the preset times are less than N.
Step S103, if the number of times that the transmission speed of the memory card is lower than the first threshold in N times of file transmission exceeds the preset number of times, the transmission speed of the memory card is increased according to the state of the memory card.
In the embodiment of the present application, the state of the memory card includes, but is not limited to, an idle state, a file transfer state, and the like, and different ways for increasing the transfer speed of the memory card may be set for different states in advance.
Optionally, the number of times that the transmission speed of the memory card is lower than the first threshold in N file transmissions is: and the number of times that the transmission speed of the memory card is lower than a first threshold value and the difference value between the first threshold value and the transmission speed exceeds a second threshold value in N times of file transmission.
In this embodiment of the present application, it may also be determined whether the transmission of the memory card is low-performance transmission according to the transmission speed of the memory card and the difference between the first threshold and the transmission speed of the memory card, specifically, if the transmission speed of the memory card is lower than the first threshold and the difference between the first threshold and the transmission speed of the memory card exceeds the second threshold, it is determined that the file transmission is low-performance transmission, and the number of times of the low-performance transmission is increased by 1; and if the transmission speed of the memory card is lower than the first threshold value and the difference value between the first threshold value and the transmission speed of the memory card does not exceed the second threshold value, determining that the file transmission is not low-performance transmission, and adding 1 to the number of times of the low-performance transmission.
According to the embodiment of the application, whether the storage card carries out low-performance transmission for a long time is detected by acquiring the times that the transmission speed is lower than the first threshold when the storage card carries out N times of file transmission, the transmission speed of the storage card is improved when the storage card carries out low-performance transmission for a long time, the service life of the storage card can be prolonged, and therefore the storage card of the mobile terminal is ensured to be maintained at high transmission performance.
Referring to fig. 2, it is a schematic diagram of an implementation flow of a memory card processing method provided in the second embodiment of the present application, and as shown in the figure, the memory card processing method may include the following steps:
step S201, obtaining the number of times that the transmission speed of the memory card is lower than the first threshold in N file transmissions.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S202, judging whether the times of the transmission speed of the memory card being lower than the first threshold value in N times of file transmission exceeds a preset time.
The step is the same as step S102, and reference may be made to the related description of step S102, which is not repeated herein.
Optionally, the embodiment of the present application further includes:
and acquiring the first threshold according to the attribute information of the memory card.
In the embodiment of the application, when the mobile terminal is detected to be inserted into a memory card, the attribute information of the inserted memory card is acquired, and a first threshold corresponding to the attribute information is acquired according to the attribute information. The attribute information includes, but is not limited to, a brand, a material, and/or a Class grade of the memory card. The corresponding relationship between the attribute information of the memory card and the first threshold value may be preset, and the first threshold value may be acquired in a self-adaptive manner according to the attribute information of the memory card.
Step S203, when the state of the memory card is idle, performing defragmentation on the memory card.
In the embodiment of the application, the fragmentation sorting of the memory card includes but is not limited to fast file retrieval and infrequent file compression of the memory card, and the fragmentation space of the disk partition can be integrated by performing fragmentation sorting of the memory card, so that disk fragmentation is reduced, the available space is increased, and the transmission speed of the memory card is improved. The fast file retrieval of the memory card includes that the content and the type of the file in the memory card are not limited to detection. The uncommon file can be a file with unused duration exceeding a duration threshold, and the duration threshold is used for judging whether the file is the uncommon file.
And step S204, when the state of the memory card is a file transmission state, improving the main frequency of the processor and/or increasing the core number of the processor.
Optionally, before increasing the main frequency of the processor and/or increasing the number of cores of the processor, the embodiment of the present application further includes:
acquiring the fragmentation degree, the number of types of storage files, the bad sector ratio and the service life of the storage card;
acquiring a health value of the memory card according to the fragmentation degree of the memory card, the number of types of stored files, the bad sector ratio and the service life of the memory card;
correspondingly, the increasing the main frequency of the processor and/or the increasing the number of cores of the processor comprises:
and according to the health value of the memory card, increasing the main frequency of the processor and/or increasing the core number of the processor.
In the embodiment of the present application, the fragmentation degree of the memory card may be calculated according to the formula P =1- (L/a), where P represents the fragmentation degree of the memory card, L represents the size of the maximum free batched memory block, and a represents the size of the total free memory. The number of stored file types may refer to the number of file types stored in the memory card. The bad sector ratio may be a proportion of the bad sectors in all sectors of the memory card. The usage duration of the memory card may be a duration from a time when the memory card is inserted into the mobile terminal to a current time.
The health value of the memory card is in inverse proportion to the fragmentation degree of the memory card, the number of types of storage files, the ratio of bad sectors and the use time of the memory card, the health value of the memory card is lower as the fragmentation degree of the memory card is higher, the number of types of storage files is higher, the ratio of bad sectors is higher and the use time of the memory card is longer, the health value of the memory card can be calculated according to a formula, health _ value = X/(break _ file _ sum _ bad _ base _ sector _ use _ time), wherein health _ value represents the health value of the memory card, X represents a coefficient of a relation (namely the relation between the health value and the four parameters), break represents the fragmentation degree, file _ sum represents the number of types of storage files, bad _ sector represents the ratio of bad sectors, and use _ time represents the use time of the memory card. Optionally, the user may set X (e.g. 1) by himself or herself according to actual needs, which is not limited herein.
The method comprises the steps that the corresponding relation between the health value of a storage card and the target main frequency and/or the target core number of a processor can be preset, after the health value of the storage card is obtained, the target main frequency and/or the target core number of the processor corresponding to the health value is obtained from the corresponding relation, the obtained target main frequency and/or the target core number of the processor is compared with the current main frequency and/or the current core number of the processor, if the target main frequency is larger than the current main frequency and/or the current core number of the processor, the current main frequency of the processor is increased to the target main frequency and/or the current core number of the processor is increased to the target core number, and therefore the transmission speed of the storage card is increased and the service life of the storage card is prolonged by increasing the main frequency and/or the core number of the processor; and if the target main frequency is less than or equal to the current main frequency of the processor and/or the target core number is less than or equal to the current core number of the processor, controlling the current main frequency of the processor and/or the current core number of the processor to be kept unchanged so as to ensure that the processor processes data with higher main frequency and/or more cores.
Optionally, according to the health value of the memory card, increasing the dominant frequency of the processor and/or increasing the number of cores of the processor includes:
acquiring a scene of file transmission;
and according to the scene of the file transmission and the health value of the memory card, improving the main frequency of the processor and/or increasing the core number of the processor.
In the embodiment of the present application, when the memory card is in a file transfer state, a scene recognition function may be started, and a scene of the file transfer at this time is recognized by the scene recognition function. The file transfer scenario may refer to a scenario in which a file transfer is performed through a memory card, for example, a scenario in which a transfer operation such as copying, cutting, or the like is performed through the memory card. The corresponding relationship between the scene of file transmission and the health value of the memory card and the target dominant frequency and/or the target core number of the processor can be pre-established, and after the scene of file transmission and the health value of the memory card are obtained, the target dominant frequency and/or the target core number of the processor corresponding to the scene of file transmission and the health value of the memory card are obtained according to the corresponding relationship.
According to the embodiment of the application, the storage card is subjected to fragmentation sorting or the dominant frequency of the processor is improved and/or the core number of the processor is increased, so that the transmission speed of the storage card can be improved, the service life of the storage card can be prolonged by improving the transmission speed of the storage card, and the storage card of the mobile terminal can be maintained at high transmission performance.
Referring to fig. 3, it is a schematic diagram of an implementation flow of a memory card processing method provided in the third embodiment of the present application, and as shown in the figure, the memory card processing method may include the following steps:
step S301, acquiring the times that the transmission speed of the memory card is lower than a first threshold value in N times of file transmission.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S302, judging whether the times of the transmission speed of the memory card being lower than the first threshold value in N times of file transmission exceeds a preset time.
The step is the same as step S102, and reference may be made to the related description of step S102, which is not repeated herein.
Step S303, if the number of times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceeds the preset number of times, the transmission speed of the memory card is increased according to the state of the memory card.
The step is the same as step S103, and reference may be made to the related description of step S103, which is not described herein again.
Step S304, when the memory card is in a file transmission state, acquiring the transmission speed of the memory card.
Step S305, if the transmission speed of the memory card is lower than the first threshold, reminding the memory card to be replaced.
In the embodiment of the application, after the transmission speed of the memory card is increased according to the state of the memory card, if the memory card is detected to perform file transmission, the transmission speed of the memory card can be acquired, the transmission speed is compared with a first threshold value to judge whether the transmission speed of the memory card after the transmission speed is increased is still lower than the first threshold value, if the transmission speed of the memory card is still lower than the first threshold value, it is determined that the memory card after the transmission speed is increased still can not be maintained at a higher transmission performance, the mobile terminal needs to replace the memory card to remind a user of replacing the memory card, and if the transmission speed of the memory card is not lower than the first threshold value, it is determined that the memory card after the transmission speed is increased can be maintained at the higher transmission performance without replacing the memory card.
According to the embodiment of the application, after the transmission speed of the memory card is increased, whether the transmission speed of the memory card is still lower than a first threshold value during subsequent file transmission is detected, and when the transmission speed of the memory card is lower than the first threshold value, it is determined that the memory card with the increased transmission speed still cannot maintain higher transmission performance, the mobile terminal needs to replace the memory card, a user is reminded to replace the memory card, and the memory card of the mobile terminal is ensured to maintain higher transmission performance by replacing the memory card.
Fig. 4 is a schematic diagram of a memory card processing apparatus provided in the fourth embodiment of the present application, and for convenience of description, only the parts related to the fourth embodiment of the present application are shown.
The memory card processing apparatus includes:
the number obtaining module 401 is configured to obtain the number of times that the transmission speed of the memory card is lower than a first threshold in N file transmissions, where N is an integer greater than 1;
a number judgment module 402, configured to judge whether the number of times that the transmission speed of the memory card is lower than the first threshold in N file transmissions exceeds a preset number of times;
a speed increasing module 403, configured to increase the transmission speed of the memory card according to the state of the memory card if the number of times that the transmission speed of the memory card is lower than the first threshold in N file transmissions exceeds the preset number of times.
Optionally, the number of times that the transmission speed of the memory card is lower than the first threshold in N file transmissions refers to: and the number of times that the transmission speed of the memory card is lower than a first threshold value and the difference value between the first threshold value and the transmission speed exceeds a second threshold value in N times of file transmission.
Optionally, the memory card processing apparatus further includes:
a threshold obtaining module 404, configured to obtain the first threshold according to the attribute information of the memory card.
Optionally, the speed increasing module 403 includes:
the fragmentation sorting unit is used for performing fragmentation sorting on the memory card when the memory card is in an idle state;
and the processing unit is used for improving the main frequency of the processor and/or increasing the core number of the processor when the state of the memory card is a file transmission state.
Optionally, the speed increasing module 403 further includes:
the parameter acquisition unit is used for acquiring the fragmentation degree, the number of types of storage files, the bad sector ratio and the service time of the storage card;
the health value acquisition unit is used for acquiring the health value of the memory card according to the fragmentation degree of the memory card, the number of types of stored files, the bad sector ratio and the service duration of the memory card;
and the processing unit is specifically used for improving the main frequency of the processor and/or increasing the core number of the processor according to the health value of the memory card.
Optionally, the processing unit is specifically configured to:
acquiring a scene of file transmission;
and according to the scene of the file transmission and the health value of the memory card, improving the main frequency of the processor and/or increasing the core number of the processor.
Optionally, the memory card processing apparatus further includes:
a speed obtaining module 405, configured to obtain a transmission speed of the memory card when the memory card is in a file transmission state;
a reminding module 406, configured to remind to replace the memory card if the transmission speed of the memory card is lower than the first threshold.
The memory card processing apparatus provided in the embodiment of the present application may be applied to the first method embodiment, the second method embodiment, and the third method embodiment, and for details, reference is made to the description of the first method embodiment, the second method embodiment, and the third method embodiment, and details are not repeated here.
Fig. 5 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present application. The mobile terminal as shown in the figure may include: one or more processors 501 (only one shown); one or more input devices 502 (only one shown), one or more output devices 503 (only one shown), and a memory 504. The processor 501, the input device 502, the output device 503, and the memory 504 are connected by a bus 505. The memory 504 is used for storing instructions and the processor 501 is used for executing the instructions stored by the memory 504. Wherein:
the processor 501 is configured to obtain the number of times that a transmission speed of the memory card is lower than a first threshold in N file transmissions, where N is an integer greater than 1; judging whether the times of the transmission speed of the memory card being lower than the first threshold value in N times of file transmission exceed a preset time or not; and if the times that the transmission speed of the memory card is lower than the first threshold in N times of file transmission exceed the preset times, the transmission speed of the memory card is increased according to the state of the memory card.
Optionally, the number of times that the transmission speed of the memory card is lower than the first threshold in N file transmissions is: and the number of times that the transmission speed of the memory card is lower than a first threshold value and the difference value between the first threshold value and the transmission speed exceeds a second threshold value in N times of file transmission.
Optionally, the processor 501 is further configured to:
and acquiring the first threshold according to the attribute information of the memory card.
Optionally, the processor 501 is specifically configured to:
when the state of the memory card is an idle state, performing fragmentation sorting on the memory card;
or when the state of the memory card is a file transmission state, improving the main frequency of the processor and/or increasing the core number of the processor.
Optionally, the processor 501 is further configured to:
acquiring the fragmentation degree, the number of types of storage files, the bad sector ratio and the service life of the storage card;
acquiring a health value of the memory card according to the fragmentation degree of the memory card, the number of types of stored files, the bad sector ratio and the service life of the memory card;
the processor 501 is specifically configured to:
and according to the health value of the memory card, increasing the main frequency of the processor and/or increasing the core number of the processor.
Optionally, the processor 501 is specifically configured to:
acquiring a scene of file transmission;
and according to the scene of the file transmission and the health value of the memory card, improving the main frequency of the processor and/or increasing the core number of the processor.
Optionally, the processor 501 is further configured to:
when the memory card is in a file transmission state, acquiring the transmission speed of the memory card;
and if the transmission speed of the memory card is lower than the first threshold value, reminding to replace the memory card.
It should be understood that, in the embodiment of the present Application, the Processor 501 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 502 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a data receiving interface, and the like. The output device 503 may include a display (LCD, etc.), a speaker, a data transmission interface, and the like.
The memory 504 may include a read-only memory and a random access memory, and provides instructions and data to the processor 501. A portion of the memory 504 may also include non-volatile random access memory. For example, the memory 504 may also store device type information.
In a specific implementation, the processor 501, the input device 502, the output device 503, and the memory 504 described in this embodiment of the present application may execute the implementation described in the embodiment of the memory card processing method provided in this embodiment of the present application, or may execute the implementation described in the memory card processing apparatus described in the fourth embodiment of the present application, which is not described herein again.
Fig. 6 is a schematic diagram of a mobile terminal according to a sixth embodiment of the present application. As shown in fig. 6, the mobile terminal 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps in the various memory card processing method embodiments described above, such as steps S101 to S103 shown in fig. 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the modules/units in the above-described device embodiments, such as the modules 401 to 406 shown in fig. 4.
Illustratively, the computer program 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the mobile terminal 6. For example, the computer program 62 may be divided into an event number obtaining module, a number judging module, a speed increasing module, a threshold obtaining module, a speed obtaining module and a reminding module, and the specific functions of the modules are as follows:
the device comprises a frequency acquisition module, a data transmission module and a data transmission module, wherein the frequency acquisition module is used for acquiring the frequency of the memory card of which the transmission speed is lower than a first threshold value in N times of file transmission, and N is an integer greater than 1;
the number judgment module is used for judging whether the number of times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceeds a preset number of times or not;
and the speed increasing module is used for increasing the transmission speed of the memory card according to the state of the memory card if the number of times that the transmission speed of the memory card is lower than the first threshold value in N file transmissions exceeds the preset number of times.
Optionally, the number of times that the transmission speed of the memory card is lower than the first threshold in N file transmissions refers to: and the number of times that the transmission speed of the memory card is lower than a first threshold value and the difference value between the first threshold value and the transmission speed exceeds a second threshold value in N times of file transmission.
Optionally, the threshold obtaining module is configured to obtain the first threshold according to the attribute information of the memory card.
Optionally, the speed increasing module includes:
the fragmentation sorting unit is used for performing fragmentation sorting on the memory card when the memory card is in an idle state;
and the processing unit is used for improving the main frequency of the processor and/or increasing the core number of the processor when the state of the memory card is a file transmission state.
Optionally, the speed increasing module further includes:
the parameter acquisition unit is used for acquiring the fragmentation degree, the number of types of storage files, the bad sector ratio and the service time of the storage card;
a health value obtaining unit, configured to obtain a health value of the memory card according to the fragmentation degree of the memory card, the number of types of storage files, the bad sector ratio, and a duration of use of the memory card;
and the processing unit is specifically used for improving the main frequency of the processor and/or increasing the core number of the processor according to the health value of the memory card.
Optionally, the processing unit is specifically configured to:
acquiring a scene of file transmission;
and according to the scene of the file transmission and the health value of the memory card, improving the main frequency of the processor and/or increasing the core number of the processor.
Optionally, the speed obtaining module is configured to obtain a transmission speed of the memory card when the memory card is in a file transmission state;
and the reminding module is used for reminding the memory card to be replaced if the transmission speed of the memory card is lower than the first threshold value.
The mobile terminal 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The mobile terminal may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of a mobile terminal 6 and does not constitute a limitation of the mobile terminal 6, and may include more or fewer components than shown, or some of the components may be combined, or different components, e.g., the mobile terminal may also include input-output devices, network access devices, buses, etc.
The processor 60 may be a central processing unit CPU, but may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the mobile terminal 6, such as a hard disk or a memory of the mobile terminal 6. The memory 61 may also be an external storage device of the mobile terminal 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the mobile terminal 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the mobile terminal 6. The memory 61 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 61 may also be used to temporarily store data that has been output or is to be output. It should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the apparatus may be divided into different functional units or modules to perform all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/mobile terminal and method may be implemented in other ways. For example, the above-described apparatus/mobile terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A memory card processing method, characterized in that the memory card processing method comprises:
acquiring the times that the transmission speed of the memory card is lower than a first threshold value in N times of file transmission, wherein N is an integer greater than 1;
judging whether the number of times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceeds a preset number of times or not;
if the number of times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceeds the preset number of times, the transmission speed of the memory card is increased according to the state of the memory card, wherein the state of the memory card comprises an idle state and a file transmission state.
2. The memory card processing method of claim 1, wherein the number of times the transfer speed of the memory card is lower than the first threshold in the N file transfers is: and the number of times that the transmission speed of the memory card is lower than a first threshold value and the difference value between the first threshold value and the transmission speed exceeds a second threshold value in N times of file transmission.
3. The memory card processing method of claim 1, further comprising:
and acquiring the first threshold according to the attribute information of the memory card.
4. The memory card processing method of claim 1, wherein the increasing the transfer speed of the memory card according to the state of the memory card comprises:
when the state of the memory card is an idle state, performing fragmentation sorting on the memory card;
or when the state of the memory card is a file transmission state, improving the main frequency of the processor and/or increasing the core number of the processor.
5. The memory card processing method of claim 4, further comprising, before increasing a dominant frequency of a processor and/or increasing a number of cores of the processor:
acquiring the fragmentation degree, the number of types of storage files, the bad sector ratio and the service life of the storage card;
acquiring a health value of the memory card according to the fragmentation degree of the memory card, the number of types of stored files, the bad sector ratio and the service life of the memory card;
correspondingly, the increasing the main frequency of the processor and/or the increasing the number of cores of the processor comprises:
and according to the health value of the memory card, increasing the main frequency of the processor and/or increasing the core number of the processor.
6. The memory card processing method of claim 5, wherein the increasing the dominant frequency of the processor and/or increasing the number of cores of the processor according to the health value of the memory card comprises:
acquiring a scene of file transmission;
and according to the scene of the file transmission and the health value of the memory card, improving the main frequency of the processor and/or increasing the core number of the processor.
7. The memory card processing method of claim 1, further comprising, after increasing the transfer speed of the memory card according to the state of the memory card:
when the memory card is in a file transmission state, acquiring the transmission speed of the memory card;
and if the transmission speed of the memory card is lower than the first threshold value, reminding to replace the memory card.
8. A memory card processing apparatus, characterized by comprising:
the device comprises a frequency acquisition module, a data transmission module and a data transmission module, wherein the frequency acquisition module is used for acquiring the frequency of the memory card of which the transmission speed is lower than a first threshold value in N times of file transmission, and N is an integer greater than 1;
the number judgment module is used for judging whether the number of times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceeds a preset number of times or not;
and the speed increasing module is used for increasing the transmission speed of the memory card according to the state of the memory card if the number of times that the transmission speed of the memory card is lower than the first threshold value in N times of file transmission exceeds the preset number of times, wherein the state of the memory card comprises an idle state and a file transmission state.
9. A mobile terminal comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the memory card processing method according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the memory card processing method according to any one of claims 1 to 7.
CN201910308661.3A 2019-04-17 2019-04-17 Memory card processing method, memory card processing device and mobile terminal Active CN110007878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910308661.3A CN110007878B (en) 2019-04-17 2019-04-17 Memory card processing method, memory card processing device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910308661.3A CN110007878B (en) 2019-04-17 2019-04-17 Memory card processing method, memory card processing device and mobile terminal

Publications (2)

Publication Number Publication Date
CN110007878A CN110007878A (en) 2019-07-12
CN110007878B true CN110007878B (en) 2023-01-31

Family

ID=67172464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910308661.3A Active CN110007878B (en) 2019-04-17 2019-04-17 Memory card processing method, memory card processing device and mobile terminal

Country Status (1)

Country Link
CN (1) CN110007878B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943605A (en) * 2017-11-14 2018-04-20 青岛海信移动通信技术股份有限公司 A kind of storage card processing method and processing device
CN109040231A (en) * 2018-07-31 2018-12-18 优视科技新加坡有限公司 Data transmission method, device, equipment/terminal/server and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6306833B2 (en) * 2012-07-06 2018-04-04 アディダス アーゲー Group performance monitoring system and method
CN107450854B (en) * 2017-08-07 2020-09-18 苏州浪潮智能科技有限公司 Method and system for determining maximum thread number under expected speed
CN107728948A (en) * 2017-10-18 2018-02-23 郑州云海信息技术有限公司 A kind of memory performance optimization method and device, computer equipment
CN108052279B (en) * 2017-11-23 2020-06-19 深圳市江波龙电子股份有限公司 Method, device, equipment and storage medium for improving performance of flash memory
CN108228876A (en) * 2018-01-19 2018-06-29 维沃移动通信有限公司 A kind of method and mobile terminal for reading file data
CN108984589A (en) * 2018-05-29 2018-12-11 努比亚技术有限公司 A kind of method for writing data and server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943605A (en) * 2017-11-14 2018-04-20 青岛海信移动通信技术股份有限公司 A kind of storage card processing method and processing device
CN109040231A (en) * 2018-07-31 2018-12-18 优视科技新加坡有限公司 Data transmission method, device, equipment/terminal/server and computer readable storage medium

Also Published As

Publication number Publication date
CN110007878A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108900770B (en) Method and device for controlling rotation of camera, smart watch and mobile terminal
CN108038112B (en) File processing method, mobile terminal and computer readable storage medium
CN110225104B (en) Data acquisition method and device and terminal equipment
CN107193598B (en) Application starting method, mobile terminal and computer readable storage medium
CN110059273B (en) Method for displaying rich media on mobile terminal and mobile terminal
CN107181858B (en) Method and terminal for displaying notification message
EP3404538A1 (en) Data processing method, and data processing apparatus
US20190107929A1 (en) Method and device for loading content of page, and electronic device
CN111142650B (en) Screen brightness adjusting method, screen brightness adjusting device and terminal
CN109358927B (en) Application program display method and device and terminal equipment
CN107679222B (en) Picture processing method, mobile terminal and computer readable storage medium
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN108536512B (en) Interface switching method and device and terminal equipment
CN109271266B (en) File transmission method and device and terminal equipment
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN109298956B (en) File transmission method and device and terminal equipment
CN108521460B (en) Information pushing method and device, mobile terminal and computer readable storage medium
CN110007878B (en) Memory card processing method, memory card processing device and mobile terminal
CN109492249B (en) Rapid generation method and device of design drawing and terminal equipment
CN110874729A (en) Switching method and switching device for electronic red packet identification strategy and mobile terminal
CN110688035B (en) Photo album processing method, photo album processing device and mobile terminal
CN108595569B (en) File path copying method, file path copying device and mobile terminal
CN108509111B (en) Application notification method and device and terminal equipment
CN110874723B (en) Electronic red envelope detection method, electronic red envelope detection device and mobile terminal

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