Nothing Special   »   [go: up one dir, main page]

WO2017024459A1 - Memory card authentication method and mobile terminal thereof, and terminal device - Google Patents

Memory card authentication method and mobile terminal thereof, and terminal device Download PDF

Info

Publication number
WO2017024459A1
WO2017024459A1 PCT/CN2015/086452 CN2015086452W WO2017024459A1 WO 2017024459 A1 WO2017024459 A1 WO 2017024459A1 CN 2015086452 W CN2015086452 W CN 2015086452W WO 2017024459 A1 WO2017024459 A1 WO 2017024459A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory card
data
storage capacity
mobile terminal
identification information
Prior art date
Application number
PCT/CN2015/086452
Other languages
French (fr)
Chinese (zh)
Inventor
田晓媚
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201580082092.5A priority Critical patent/CN107851456B/en
Priority to PCT/CN2015/086452 priority patent/WO2017024459A1/en
Publication of WO2017024459A1 publication Critical patent/WO2017024459A1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation

Definitions

  • the invention belongs to the technical field of mobile device memory card authentication, and particularly relates to a memory card authentication method for a mobile terminal and a mobile terminal thereof, and to a terminal device.
  • a memory card is a commonly used method of expanding mobile devices (such as mobile phones, MP3s, etc.), but the variety of memory cards on the market is difficult to distinguish between true and false.
  • a fake memory card not only does not have enough calibration storage capacity, but may also result in greatly reduced storage performance.
  • the read/write speed of such a memory card generally does not meet the standard requirements, and is slower than the calibration speed. The memory card with slow read/write speed may even affect the performance of the entire mobile device.
  • the methods for identifying a memory card in the prior art generally have the following types. 1) By observing the appearance and material of the memory card to distinguish, this kind of need to accumulate considerable experience, and the appearance and material of the memory card produced by different manufacturers are not the same, the identification is difficult and the accuracy is low; 2) by scanning storage The security code or anti-counterfeit label attached to the card is distinguished. This method requires special equipment to scan the anti-counterfeit code or anti-counterfeit mark, and the operation is relatively complicated. 3) The software on the computer is used for identification. This method requires computer-aided completion, although the accuracy is high. However, the portability of the computer is not strong, so it is difficult to ensure the timeliness of the authentication.
  • embodiments of the present invention provide a memory card authentication method for a mobile terminal, and a mobile terminal and a terminal device thereof, to solve the technical problem that the memory card is inaccurately identified and the authentication process is complicated.
  • the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of a calibration storage capacity of the memory card;
  • the step of filling the memory card with a predetermined amount of data and determining whether the predetermined amount and the calibration storage capacity of the memory card meet a predetermined condition is specifically: filling the storage card with the storage The card calibrates data of a predetermined proportion of the storage capacity, and determines whether the storage space of the memory card has a remaining capacity; if it is determined that the storage space has a remaining capacity, continuing to fill the predetermined proportion of the remaining capacity of the memory card; if it is determined that the storage space is not The remaining capacity is judged whether the amount of data filled to the memory card is the same as the predetermined number.
  • the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of a calibration storage capacity of the memory card;
  • the step of filling the memory card with a predetermined amount of data and determining whether the predetermined amount and the calibration storage capacity of the memory card meet a predetermined condition is specifically: continuously filling data into the memory card to Filling the storage space of the memory card; determining whether the amount of data filled to the memory card is the same as the predetermined number.
  • the method further includes: acquiring the The actual read/write speed of the memory card; notifying the user of the actual read/write speed information or querying the calibration read/write speed information corresponding to the memory card identification information through the network to determine the detection and comparison result of the read/write speed of the memory card;
  • the identification information of the memory card is recorded in the mobile terminal, wherein the identification information includes a name of the memory card, an actual storage capacity after the authentication, and/or the actual read/write speed information.
  • the memory card when the predetermined condition is not met, the memory card The determining method further comprises: determining the actual storage capacity of the memory card according to the amount of data filled to the memory card after the step of determining that the predetermined condition is not satisfied, and notifying the user of the actual storage capacity information of the memory card.
  • the method after the step of notifying the user of the actual storage capacity information of the memory card, and/or the obtaining The step of describing the actual read/write speed of the memory card further includes: clearing data filled in the memory card.
  • the method further includes: And the identification information of the obtained memory card is matched with the stored memory card identification information in the mobile terminal; if the matching result is determined to be yes, the matched memory card identification information is notified to the user; Otherwise, a step of filling a predetermined amount of data into the memory card and determining whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card is performed.
  • the second aspect of the present application further provides a mobile terminal, where the mobile terminal includes: an identification information detecting module, configured to detect identification information of a memory card of the access mobile terminal to obtain a calibration storage capacity of the memory card; a module for filling a predetermined number of data into the memory card; and a judging module for judging whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card, and when the predetermined condition is met, determining the calibration storage of the memory card The capacity is correct.
  • an identification information detecting module configured to detect identification information of a memory card of the access mobile terminal to obtain a calibration storage capacity of the memory card
  • a module for filling a predetermined number of data into the memory card and a judging module for judging whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card, and when the predetermined condition is met, determining the calibration storage of the memory card The capacity is correct.
  • the data filling module fills the memory card with the predetermined data of the storage capacity of the storage card, and the determining module determines whether the storage space of the memory card has a remaining capacity, and if the storage space is determined to be The remaining capacity continues to fill the data of the predetermined proportion of the remaining capacity of the memory card; if it is determined that the storage space has no remaining capacity, it continues to determine whether the amount of data filled to the memory card is the same as the predetermined number; wherein the predetermined condition is filled in the The predetermined number of data of the memory card reaches a certain percentage of the memory capacity of the memory card.
  • the data filling module is configured to fill the memory card with the storage space filled with the full memory card, and the determining module determines whether the amount of data filled to the memory card is the same as the predetermined number;
  • the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of the memory storage capacity of the memory card.
  • the mobile terminal further includes a notification module, the determining module determines an actual storage capacity of the memory card according to the amount of data filled to the memory card, and the notification module stores the actual storage capacity information of the memory card. Notify the user.
  • the mobile terminal further includes an obtaining module, a query module, and a comparing module, where the acquiring module is configured to obtain an actual reading of the memory card.
  • the query module queries the calibration read/write speed information corresponding to the memory card identification information through the network
  • the comparison module compares the calibration read/write speed corresponding to the memory card identification information with the actual read/write speed obtained by the acquisition module to determine the memory card read. The detection result of the writing speed is compared; the notification module is further used to notify the user of the actual reading and writing speed information.
  • the mobile terminal further includes a data clearing module and a data recording module, where the data clearing module is configured to clear data filled in the memory card;
  • the module is configured to record the identification information of the memory card in the mobile terminal, wherein the identification information includes a name of the memory card, an actual storage capacity after the authentication, and/or actual read/write speed information.
  • the mobile terminal further includes a matching module, and the matching module is configured to obtain the obtained memory card The identification information is matched with the stored memory card identification information in the mobile terminal; the determining module determines the result of the matching, and if it is determined that the matching result is yes, the matching memory card identification information is notified to the user; if the matching result is negative, the The memory card is filled with a predetermined amount of data, and it is judged whether or not a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card.
  • the third aspect of the present application further provides a terminal device, where the terminal device includes a processor and a display; the processor is configured to perform identification information detection on the memory card accessed by the mobile terminal to obtain a calibration storage capacity of the memory card. And filling a predetermined amount of data into the memory card, and determining whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card; when the predetermined condition is satisfied, determining that the calibration storage capacity of the memory card is correct; the display is for displaying Prompt information and detection result information during the detection process.
  • the processor is specifically configured to: fill the memory card with data of a predetermined proportion of a storage capacity of the memory card, and determine a storage space of the memory card. Whether there is remaining capacity, if it is judged that the storage space has remaining capacity, it continues to fill the data of the predetermined proportion of the remaining capacity of the memory card; if it is determined that there is no remaining capacity in the storage space, it continues to determine whether the amount of data filled to the memory card is The predetermined number is the same, wherein the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of the memory storage capacity of the memory card.
  • the processor is specifically configured to: fill the memory card with data to fill a storage space of the memory card, and determine data padding to the memory card. Whether the quantity is the same as the predetermined number, wherein the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of the memory storage capacity of the memory card.
  • the processor is further configured to: obtain an actual read/write speed of the memory card, and query the network through the network. Determining the calibration read/write speed information corresponding to the memory card identification information, comparing the calibration read/write speed corresponding to the memory card identification information with the obtained actual read/write speed, to determine the detection and comparison result of the read/write speed of the memory card, Notifying the user of the actual read and write speed information.
  • the processor is further configured to: clear data that is filled in the memory card; and identify information of the memory card Recorded in the mobile terminal, wherein the identification information includes a name of the memory card, an actual storage capacity after authentication, and/or actual read/write speed information.
  • the calibration storage capacity of the memory card is obtained by detecting the identification information of the memory card, and then filling the memory card with a predetermined amount of data, and determining the predetermined amount of data filled in the memory card and the calibration storage capacity of the memory card.
  • the predetermined storage condition is met to determine the actual storage capacity of the memory card, and the mobile terminal can be used to authenticate the memory card conveniently, quickly, and accurately.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention
  • FIG. 3 is a schematic flow chart of a third embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention.
  • FIG. 4 is a schematic structural diagram of a first embodiment of a mobile terminal according to the present invention.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a mobile terminal according to the present invention.
  • FIG. 6 is a schematic structural diagram of an embodiment of a terminal device of the present invention.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention.
  • a method for authenticating a memory card of a mobile terminal includes, but is not limited to, the following steps.
  • Step S100 The mobile terminal performs identification information detection on the memory card connected thereto to obtain a calibration storage capacity of the memory card.
  • the method for authenticating the memory card of the mobile terminal provided by the present invention is based on the premise that the memory card can be correctly loaded. If the loading cannot be successfully performed, that is, the mobile terminal cannot identify the memory card, the authentication of the embodiment of the present invention is not involved. method. Therefore, before the step S100, the mobile terminal is generally further included to detect the insertion of the memory card. It is also worth mentioning that the mobile terminal in the various embodiments of the present invention is preferably a portable device such as a mobile phone or a tablet computer, so that the memory card can be easily and timely identified.
  • step S100 after the memory card is recognized and loaded, the identification information of the identified memory card needs to be performed (Card Identification, in the process of detecting the identification information, the manufacturer, model, calibration storage capacity and the like of the memory card can be identified by the binary identification code of the memory card, wherein the binary identification code of the memory card is The memory card is unique to distinguish it from the different binary codes of other memory cards.
  • the calibration storage capacity is the memory capacity indicated by the memory card. For example, if the manufacturer indicates that the memory capacity of the memory card is 8G by the binary identification code, the calibration storage capacity of the memory card is 8G. However, the calibration storage capacity may be the real memory capacity of the memory card, or the real memory capacity of the memory card may be less than or far less than the calibration storage capacity.
  • the mobile terminal memory card authentication method provided by the present invention is to identify the calibration of the memory card. Whether the storage capacity is its real memory capacity.
  • Step S110 the mobile terminal fills the memory card with a predetermined amount of data, and determines whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card.
  • step S110 the method for the mobile terminal to fill the memory card with a predetermined amount of data may be respectively performed in two ways, one of which is to fill the memory card with a predetermined proportion of data, and the other is to use a predetermined unit number of data to the memory card. Fill it up.
  • the difference between the two methods of filling data will be described in detail in the following embodiments.
  • determining whether the predetermined condition between the predetermined amount of data filled in the memory card and the calibration storage capacity of the memory card meets the predetermined condition determining whether the predetermined amount of data filled in the memory card reaches a certain percentage of the calibration storage capacity of the memory card Quantity.
  • step S120 when the predetermined condition is met, it is determined that the calibration storage capacity of the memory card is correct.
  • step S120 when it is judged that the predetermined condition is satisfied, for example, when it is judged that the predetermined amount of data filled in the memory card reaches 95% of the memory storage capacity of the memory card, it can be determined that the calibration storage capacity of the memory card is correct.
  • the user can set the judgment standard of the percentage of the storage capacity of different memory cards, and can calibrate the memory card to 90%, 99% or 80% of the storage capacity. This is not specifically limited.
  • the data filled in the memory card needs to be cleared to ensure that the authenticated memory card is a clean empty card.
  • the calibration storage capacity of the memory card is obtained by detecting the identification information of the memory card, and then filling the memory card with a predetermined amount of data, and determining the predetermined number of the memory card by filling in The predetermined condition is met between the data and the calibration storage capacity of the memory card to determine whether the calibration storage capacity of the memory card is correct, and the memory card can be conveniently, quickly, and accurately used to authenticate the memory card.
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention.
  • a method for authenticating a memory card of a mobile terminal includes, but is not limited to, the following steps.
  • Step S201 The mobile terminal performs identification information detection on the memory card connected thereto to obtain a calibration storage capacity of the memory card.
  • the identification information of the identified memory card needs to be detected.
  • information such as the manufacturer, model, and calibration storage capacity of the memory card can be identified by the binary identification code of the memory card.
  • Step S202 matching the obtained identification information of the memory card with the stored memory card identification information in the mobile terminal.
  • Step S203 determining whether the identification information of the memory card matches the memory card identification information stored in the mobile terminal. If yes, go to step S204, otherwise, go to step S205.
  • steps S202 and S203 after the identification information of the memory card obtained by the mobile terminal is matched, the identification information is matched with the memory card identification information stored in the mobile terminal, and the memory card identification information stored in the mobile terminal is generally the mobile terminal. Detecting the data obtained and saved in the process of the memory card, when the mobile terminal recognizes that the memory card is detected twice in the process of judging the matching result, that is, the identification information of the memory card exists in the mobile terminal, then enters The next step.
  • Step S204 notifying the user of the matched memory card identification information. Then the process ends.
  • the mobile terminal will remind the user that the information of the memory card already exists in the historical search result of the mobile terminal, and the historical search record information for the memory card identification information is presented to the user to remind the user whether to perform the detection again.
  • the prompt is no longer performed, and the user can use the mobile phone normally while stopping the authentication process of the memory card.
  • Step S205 filling the memory card with the memory card to calibrate the data of a predetermined proportion of the storage capacity.
  • the memory card is filled with data according to the calibration storage capacity corresponding to the detected memory card identification information. For example, if the detected storage card identification information corresponds to a calibration storage capacity of 8 GB, the memory card is firstly used once.
  • the data of the predetermined storage capacity is filled with a predetermined proportion of the storage capacity, which may be 50% of the storage capacity of 8 GB, that is, 4 GB of data is filled at a time.
  • the predetermined ratio data is not limited in this embodiment, and may be based on the computing power of the mobile terminal.
  • the size of the memory card calibration storage capacity, etc. can be set to 30%, 60%, etc. of the calibration storage capacity, and will not be enumerated here.
  • Step S206 determining whether the storage space of the memory card has a remaining capacity. If it is determined that the storage space of the memory card has a remaining capacity, the process proceeds to step S207, and if it is determined that the storage space of the memory card has no remaining capacity, the process proceeds to step S208.
  • Step S207 continuing to fill the data of the predetermined proportion of the remaining capacity of the memory card.
  • the predetermined ratio of the remaining capacity data may be the same as or different from the predetermined ratio in the previous step. Similarly, the predetermined ratio data may also be based on the computing power of the mobile terminal, the size of the storage capacity of the memory card, and the like. Make specific settings.
  • the process returns to step S206 to continue to determine whether the memory card has a remaining storage space.
  • the steps S207 and S206 are cyclically performed until step S206 determines that the storage space of the memory card no longer has a remaining capacity.
  • step S208 it is determined whether the amount of data filled to the memory card is the same as the predetermined number. If yes, go to step S209, otherwise, go to step S214.
  • step S208 the total amount of data to be filled with data to the memory card through steps S205, 207 is determined, and it is determined whether the total amount of data is the same as the predetermined number.
  • the predetermined quantity may be 95% of the storage capacity of the memory card.
  • the user may set the judgment standard of the percentage of the storage capacity of the different memory cards, which may be 90%, 99% or 80 of the storage capacity of the memory card. %Wait. There is no specific limit here.
  • step S209 it is determined that the actual storage capacity of the memory card is correct.
  • step S209 the actual storage capacity of the memory card that the user can be prompted to be correct is correct, and the manner in which the data capacity of the memory card is prompted to be correct may be a prompt box, a voice or a vibration.
  • step S210 the data filled in the memory card is cleared.
  • Step S211 obtaining an actual read/write speed of the memory card.
  • the actual read/write speed of the memory card may be obtained by filling a large unit data into the memory card, and then acquiring the actual read/write speed of the memory card during the process of filling the data.
  • Step S212 notifying the user of the actual read/write speed information or querying the calibration read/write speed information corresponding to the memory card identification information through the network to determine the detection comparison result of the memory card read/write speed.
  • step S212 the mobile terminal notifies the user of the obtained actual read/write speed information of the memory card, and the notification manner may be displayed on the display screen by the prompt information, or prompted by voice.
  • the mobile terminal can also query the calibration read/write speed of the memory card on the official website of the manufacturer corresponding to the memory card identification information through the network, and then compare the calibration read/write speed with the obtained actual read/write speed, thereby Comparing the results, it is clear from the comparison results whether the actual read/write speed of the memory card meets the requirements.
  • Step S213 the actual read/write speed of the memory card and the storage actual storage capacity information are recorded in the mobile terminal. Then the process ends.
  • the mobile terminal itself includes a storage device, and the actual read/write speed including the memory card and the storage actual storage capacity information and the like can be recorded in the mobile terminal.
  • Step S214 determining the actual storage capacity of the memory card according to the amount of data filled to the memory card, and notifying the user of the actual storage capacity information of the memory card. Then, it returns to step S210.
  • step S214 the actual storage capacity information of the memory card is notified to the user to remind the user that the storage capacity of the memory card is unsatisfactory.
  • the notification mode may be displayed on the display screen by prompt information, or prompted by voice.
  • the memory card can be quickly and accurately checked by filling the memory card with a predetermined proportion of data each time; the recognized memory card is recognized before the process of authenticating the storage capacity The information is matched with the information stored in the mobile terminal to prevent duplicate identification of the same memory card, and the authentication method can also identify the memory card read/write speed information.
  • FIG. 3 is a schematic flowchart of a third embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention.
  • a method for authenticating a memory card of a mobile terminal includes, but is not limited to, the following steps.
  • Step S301 the mobile terminal performs identification information detection on the memory card connected thereto to obtain a calibration storage capacity of the memory card.
  • the identification information of the identified memory card needs to be detected.
  • information such as the manufacturer, model, and calibration storage capacity of the memory card can be identified by the binary identification code of the memory card.
  • Step S302 matching the obtained identification information of the memory card with the stored memory card identification information in the mobile terminal.
  • Step S303 determining whether the identification information of the memory card matches the memory card identification information stored in the mobile terminal. If yes, go to step S304, otherwise, go to step S305.
  • steps S302 and S303 after the identification information of the memory card obtained by the mobile terminal is matched, the identification information is matched with the memory card identification information stored in the mobile terminal, and the memory card identification information stored in the mobile terminal is generally the mobile terminal. Detecting the data obtained and saved in the process of the memory card, when the mobile terminal recognizes that the memory card is detected twice in the process of judging the matching result, that is, the identification information of the memory card exists in the mobile terminal, then enters The next step.
  • Step S304 notifying the user of the matched memory card identification information. Then the process ends.
  • the mobile terminal will remind the user that the information of the memory card already exists in the historical search result of the mobile terminal, and the historical search record information for the memory card identification information is presented to the user to remind the user whether to perform the detection again.
  • the prompt is no longer performed, and the user can use the mobile phone normally while stopping the authentication process of the memory card.
  • step S305 the data is continuously filled with data in a predetermined unit until the full memory card is filled.
  • the data is continuously filled with data in a predetermined unit of data, wherein the predetermined unit of data may be 1M, that is, filled in units of 1M each time.
  • the predetermined unit is not limited to 1M, and may be set according to factors such as the computing power of the mobile terminal, and may be 2M, 3M, 10M, etc., and will not be enumerated here.
  • step S306 it is determined whether the amount of data filled to the memory card is the same as the predetermined number.
  • step S307 it is determined that the actual storage capacity of the memory card is correct.
  • step S307 the manner of prompting the user that the actual storage capacity of the memory card is correct may be displaying a prompt box, emitting a voice or vibrating, or the like.
  • step S308 the data filled in the memory card is cleared.
  • Step S309 obtaining an actual read/write speed of the memory card.
  • the actual read/write speed of the memory card may be obtained by filling a large unit of data into the memory card, thereby obtaining the actual read/write speed of the memory card during the process of filling the data.
  • Step S310 notifying the user of the actual read/write speed information or querying the calibration read/write speed information corresponding to the memory card identification information through the network to determine the detection comparison result of the read/write speed of the memory card.
  • step S310 the mobile terminal notifies the user of the obtained actual read/write speed information of the memory card, and the notification mode may be displayed on the display screen by the prompt information, or prompted by voice.
  • the mobile terminal can also query the calibration read/write speed of the memory card on the official website of the manufacturer corresponding to the memory card identification information through the network, and then compare the calibration read/write speed with the obtained actual read/write speed, thereby Comparing the results, it is clear from the comparison results whether the actual read/write speed of the memory card meets the requirements.
  • Step S311 the actual read/write speed of the memory card and the storage actual storage capacity information are recorded in the mobile terminal.
  • the mobile terminal itself includes a storage device, and the actual read/write speed including the memory card and the storage actual storage capacity information and the like can be recorded in the mobile terminal. Then the process ends.
  • Step S312 determining the actual storage capacity of the memory card according to the amount of data filled to the memory card, and notifying the user of the actual storage capacity information of the memory card.
  • step S312 the actual storage capacity information of the memory card is notified to the user and the user is reminded that the storage capacity of the memory card is unsatisfactory.
  • the notification mode may be displayed on the display screen by prompt information, or prompted by voice.
  • step S313 the data filled in the memory card is cleared.
  • step S313 the process proceeds to step S311, where the stored actual storage capacity information of the memory card is recorded in the mobile terminal.
  • the mobile terminal memory card authentication method in the present embodiment ends.
  • the mobile terminal memory card authentication method in this embodiment can quickly and accurately check the memory card capacity by filling the memory card with predetermined unit data; and identifying the recognized memory card identification information and moving before the process of authenticating the storage capacity
  • the information stored in the terminal is matched to prevent duplicate identification of the same memory card; and the authentication method can also identify the memory card read/write speed information.
  • FIG. 4 is a schematic block diagram of a first embodiment of a mobile terminal according to the present invention.
  • the mobile terminal 400 includes but is not limited to the following modules: an identification information detecting module 401, a data filling module 402, and a determining module 403.
  • the identification information detecting module 401 is configured to detect the identification information of the memory card of the mobile terminal to obtain the calibration storage capacity of the memory card.
  • the mobile terminal provided by the embodiment of the present invention is premised on the fact that the memory card can be correctly loaded by the mobile terminal. If the mobile terminal cannot successfully load, that is, the mobile terminal cannot identify the memory card, the embodiment of the present invention is not involved. Mobile terminal. It is also worth mentioning that the mobile terminal in the various embodiments of the present invention is preferably a portable device such as a mobile phone or a tablet computer, so that the memory card can be easily and timely identified.
  • the identification information detecting module 401 needs to perform identification information on the identified memory card (Card Identification, in the process of detecting the identification information, the manufacturer, model, calibration storage capacity and the like of the memory card can be identified by the binary identification code of the memory card, wherein the binary identification code of the memory card is Unique to the memory card to distinguish the binary code from other memory cards.
  • the calibration storage capacity is the memory capacity indicated by the memory card. For example, if the manufacturer indicates that the memory capacity of the memory card is 8G by the binary identification code, the calibration storage capacity of the memory card is 8G. However, the calibration storage capacity may be the real memory capacity of the memory card, or the real memory capacity of the memory card may be less than or far less than the calibration storage capacity.
  • the mobile terminal memory card authentication method provided by the present invention is to identify the calibration of the memory card. Whether the storage capacity is its real memory capacity.
  • the data filling module 402 is configured to fill a predetermined amount of data into the memory card, and the manner of filling the memory card with a predetermined amount of data may be respectively performed in two ways, one of which is to fill the memory card with a predetermined ratio of data, and the second The memory card is filled with a predetermined number of units of data.
  • the judging module 403 determines whether the predetermined condition is satisfied with the calibration storage capacity of the memory card, and determines whether the predetermined amount of data filled in the memory card reaches a certain percentage of the calibration storage capacity of the memory card.
  • the predetermined condition for example, when it is judged that the predetermined amount of data filled in the memory card reaches 95% of the memory storage capacity of the memory card, it can be determined that the actual storage capacity of the memory card is correct.
  • the user can set the judgment standard of the percentage of the storage capacity of different memory cards, and can calibrate the memory card to 90%, 99% or 80% of the storage capacity. This is not specifically limited.
  • the mobile terminal in the embodiment obtains the calibration storage capacity of the memory card by detecting the identification information of the memory card by the identification information detecting module, and then fills the memory card with a predetermined amount of data through the data filling module, and finally determines the padding by using the determining module.
  • the predetermined storage condition between the predetermined number of data entering the memory card and the calibration storage capacity of the memory card satisfies a predetermined condition to determine the actual storage capacity of the memory card, and the mobile terminal can be used to authenticate the memory card conveniently, quickly, and accurately.
  • FIG. 5 is a schematic block diagram of a second embodiment of a mobile terminal according to the present invention.
  • the mobile terminal 500 includes but is not limited to the following modules: an identification information detecting module 501, a data filling module 502, a determining module 503, and a notification module 504.
  • the identification information detecting module 501 is configured to detect the identification information of the memory card of the mobile terminal to obtain the calibration storage capacity of the memory card.
  • the identification information detecting module 501 performs identification information on the recognized memory card (Card).
  • the manufacturer, model, calibration storage capacity and the like of the memory card can be identified by the binary identification code of the memory card, wherein the binary identification code of the memory card is unique to each memory card. To distinguish between binary codes that are different from other memory cards.
  • the calibration storage capacity is the memory capacity indicated by the memory card. For example, if the manufacturer indicates that the memory capacity of the memory card is 8G by the binary identification code, the calibration storage capacity of the memory card is 8G.
  • the calibration storage capacity may be the real memory capacity of the memory card, or the real memory capacity of the memory card may be less than or far less than the calibration storage capacity.
  • the mobile terminal memory card authentication method provided by the present invention is to identify the calibration of the memory card. Whether the storage capacity is its real memory capacity.
  • the matching module 505 is configured to match the obtained identification information of the memory card with the stored memory card identification information stored in the mobile terminal, and the determining module 503 determines whether the identification information of the memory card matches the stored memory card identification information stored in the mobile terminal. After the identification information of the memory card obtained by the information detecting module 501 is identified, the matching module 505 matches the identification information with the memory card identification information stored in the mobile terminal, and the memory card identification information stored in the mobile terminal is generally detected by the mobile terminal.
  • the notification module 504 notifies the user of the matched memory card identification information. At this time, the notification module 504 will remind the user that the information of the memory card already exists in the historical search result of the mobile terminal. At the same time, the historical search record information for the memory card identification information is presented to the user to remind the user whether to perform the detection again. When the user chooses not to re-detect, the user no longer prompts, the user can use the mobile phone normally, and stop the memory card at the same time. Identification process.
  • the data filling module 502 is used on the one hand to fill the memory card with the memory card to calibrate the predetermined amount of data of the storage capacity.
  • the data filling module 502 fills the memory card with the calibration storage capacity corresponding to the detected memory card identification information. For example, if the detected storage card corresponding to the memory card identification information has a nominal storage capacity of 8 GB, the memory card is firstly used in the memory card. Filling the data of the predetermined proportion of the calibration storage capacity at a time, may be 50% of the calibration storage capacity of 8 GB, that is, 4 GB of data is filled at a time.
  • the predetermined ratio data is not limited in this embodiment, and may be based on the computing capability of the mobile terminal.
  • the size of the memory card calibration storage capacity, etc. can be set to 30%, 60%, etc. of the calibration storage capacity, and will not be enumerated here.
  • the determining module 503 determines whether the memory card has a remaining storage space. If it is determined that there is a remaining storage space, the data filling module 502 continues to fill the data of the predetermined ratio of the remaining capacity of the memory card, and if the determining module 503 determines that there is no storage space remaining. Then, it is determined whether the amount of data filled to the memory card is the same as the predetermined number.
  • the predetermined quantity may be 95% of the storage capacity of the memory card.
  • the user may set the judgment standard of the percentage of the storage capacity of the different memory cards, which may be 90%, 99% or 80% of the storage capacity of the memory card. Wait. There is no specific limit here.
  • the data filling module 502 can also continuously fill the data with the data in a predetermined unit of data, wherein the predetermined unit of data can be 1M, that is, each time the data is filled with 1M as a predetermined unit.
  • the predetermined unit is not limited to 1M, and may be set according to factors such as the computing power of the mobile terminal, and may be 2M, 3M, 10M, and the like.
  • the determination module 503 determines whether the amount of data filled to the memory card is the same as the predetermined number.
  • the obtaining module 506 is configured to obtain the actual read/write speed of the memory card.
  • the manner in which the obtaining module 506 obtains the actual read/write speed of the memory card may be that the data filling module 502 fills a large unit of data into the memory card, and then fills the data.
  • the actual read and write speed of the memory card is obtained during the data process.
  • the querying module 507 is configured to query the calibration read/write speed information corresponding to the memory card identification information through the network. Specifically, the query module 507 can query the corresponding website of the manufacturer on the official website of the manufacturer corresponding to the memory card identification information through the network. Calibrate the read and write speed.
  • the comparison module 508 is configured to compare the calibration read/write speed queried by the query module 507 with the actual read/write speed obtained by the acquisition module 506, thereby obtaining a comparison result, and the actual read/write speed of the memory card can be clearly known through the comparison result. Whether the requirements are met.
  • the notification module 504 is further configured to notify the user of the actual storage capacity of the memory card and the actual read/write speed, and notify the user whether the memory card meets the requirements and the detection result.
  • the notification mode of the notification module 504 may be displayed on the display screen by the prompt information, or prompted by voice, vibration, or the like.
  • the data clearing module 509 is configured to clear data filled in the memory card during the capacity and read/write speed detection process to ensure that the internal memory card after the authentication is empty.
  • the data recording module 510 is configured to record the identification information of the memory card in the mobile terminal, wherein the identification information includes information such as a name of the memory card and an actual storage capacity and an actual read/write speed after the authentication.
  • the memory card is filled with the predetermined unit data and the predetermined ratio data by the data filling module, so that the memory card capacity can be quickly and accurately checked; the recognized storage will be recognized before the process of authenticating the storage capacity.
  • the card identification information is matched with the information stored in the mobile terminal, which can prevent duplicate identification of the same memory card; and can also identify the memory card read/write speed information.
  • FIG. 6 is a schematic structural diagram of an embodiment of a terminal device according to the present invention.
  • the terminal device in this embodiment may be a mobile phone or a portable computer or the like.
  • the terminal device 600 includes a processor 601, a receiver 602, a transmitter 603, a read only memory 604, a random access memory 605, and a bus 606.
  • the receiver 602 is configured to receive data.
  • the processor 601 controls the operation of the terminal device repairing device, and the processor 601 can also become a CPU (Central Processing Unit, central processing unit).
  • the processor 601 may be an integrated circuit chip with signal processing capabilities.
  • the processor 601 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the transmitter 603 is for transmitting data.
  • the memory can include read only memory 604 and random access memory 605 and provides instructions and data to processor 601.
  • a portion of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • bus 606 can include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like.
  • bus 606 can include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like.
  • various buses are labeled as bus 606 in the figure.
  • the memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 601 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
  • the processor 601 is configured to detect identification information of a memory card of the mobile terminal to obtain a calibration storage capacity of the memory card. It should be noted that the terminal device provided by the embodiment of the present invention is premised on the fact that the memory card can be correctly loaded by the terminal device. If the device cannot be successfully loaded, that is, the terminal device cannot identify the memory card, the embodiment of the present invention is not involved. Terminal equipment.
  • the processor 601 needs to perform identification information on the identified memory card (Card Identification, in the process of detecting the identification information, the manufacturer, model, calibration storage capacity and the like of the memory card can be identified by the binary identification code of the memory card, wherein the binary identification code of the memory card is Unique to the memory card to distinguish the binary code from other memory cards.
  • the processor 601 is further configured to fill a predetermined amount of data into the memory card, and the manner of filling the memory card with a predetermined amount of data may be respectively performed in two manners, one of which is to fill the memory card with a predetermined ratio of data, and the second The memory card is filled with a predetermined number of units of data.
  • the processor 601 is further configured to match the obtained identification information of the memory card with the stored memory card identification information in the mobile terminal. After the identification information of the obtained memory card is obtained, the processor 601 matches the identification information with the memory card identification information stored in the mobile terminal, and the memory card identification information stored in the terminal device is generally obtained by the terminal device during the process of detecting the memory card. And save the data. In the process of judging the matching result, when it is recognized that the memory card is detected twice, that is, if the identification information of the memory card exists in the terminal device, the matching memory card identification information is notified to the user. At this time, the processor 601 will remind the user that the information of the memory card already exists in the historical search result of the terminal device.
  • the historical search record information for the memory card identification information is presented to the user to remind the user whether to perform the detection again.
  • the user chooses not to re-detect, the user no longer prompts, the user can use the mobile phone normally, and stop the memory card at the same time. Identification process.
  • the processor 601 is used on the one hand to fill the memory card with the memory card to calibrate the predetermined amount of data of the storage capacity.
  • the processor 601 fills the memory card with the calibration storage capacity corresponding to the detected memory card identification information. For example, if the detected storage card identification information corresponds to a calibration storage capacity of 8 GB, the memory card is firstly used in the memory card. Filling the data of the predetermined proportion of the calibration storage capacity at a time can be 50% of the storage capacity of the calibration, that is, 4 GB of data is filled at a time.
  • the data of the remaining proportion of the remaining capacity of the memory card is continuously filled, and if it is determined that there is no remaining space, it is determined whether the amount of data filled to the memory card is predetermined or not.
  • the predetermined quantity may be 95% of the storage capacity of the memory card.
  • the user may set the judgment standard of the percentage of the storage capacity of the different memory cards, which may be 90%, 99% or 80% of the storage capacity of the memory card. Wait. There is no specific limit here.
  • the processor 601 can continuously fill the memory card with data in a predetermined unit, wherein the predetermined unit of data can be 1M, that is, each time the data is filled with a predetermined unit of 1M. . And determine whether the amount of data filled to the memory card is the same as the predetermined number.
  • the processor 601 determines whether the predetermined condition is met between the predetermined number and the calibration storage capacity of the memory card, and may determine whether the predetermined amount of data filled in the memory card reaches a certain percentage of the calibration storage capacity of the memory card. When it is judged that the predetermined condition is satisfied, for example, when it is judged that the predetermined amount of data filled in the memory card reaches 95% of the memory storage capacity of the memory card, it can be determined that the actual storage capacity of the memory card is correct.
  • the processor 601 is further configured to obtain an actual read/write speed of the memory card, where the method may be: acquiring a large unit data into the memory card, thereby acquiring the actual read and write of the memory card during the process of filling the data. speed.
  • the processor 601 is configured to query the calibration read/write speed information corresponding to the memory card identification information through the network. Specifically, the calibration and read/write corresponding to the memory card can be queried on the official website of the manufacturer corresponding to the memory card identification information through the network. speed.
  • the processor 601 compares the calibrated calibration read/write speed with the obtained actual read/write speed, thereby obtaining a comparison result, and the comparison result can clearly know whether the actual read/write speed of the memory card satisfies the requirement.
  • the mobile device 600 further includes a display (not shown).
  • the processor 601 is further configured to notify the user of the actual storage capacity of the memory card and the actual read/write speed, and simultaneously determine whether the memory card meets the requirements and the detection result notification. user.
  • the notification method may be displayed on the display by the prompt information, or prompted by voice, vibration, or the like.
  • the processor 601 is further configured to clear data that is filled into the memory card during the capacity and read/write speed detection process, so as to ensure that the internal memory card after the authentication is empty.
  • the processor 601 records the identification information of the memory card in the read-only memory 604 of the terminal device, wherein the identification information includes information such as the name of the memory card and the actual storage capacity and the actual read/write speed corresponding to the authentication.
  • the display is also used to display prompt information and detection result information during the detection process.
  • the terminal device in this embodiment obtains the calibration storage capacity of the memory card by detecting the identification information of the memory card by the processor, and then fills the memory card with a predetermined amount of data, and finally determines a predetermined amount of data and storage filled in the memory card.
  • the predetermined storage condition between the card's calibration storage capacity is determined to determine the actual storage capacity of the memory card, and the memory card can be authenticated conveniently, quickly, and accurately using the terminal device.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device implementations described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a management server, or a network device, etc.) or a processor to perform all or part of the steps of the methods of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.

Landscapes

  • Telephone Function (AREA)

Abstract

Provided in the embodiment of the present invention are a memory card authentication method and a mobile terminal thereof, and a terminal device. The authentication method comprises: the mobile terminal performing an identification information detection on a memory card connected thereto to obtain a nominal memory capacity of the memory card; the mobile terminal filling the memory card with a predetermined amount of data and judging whether the predetermined amount and the nominal memory capacity of the memory card meet a predetermined condition; and determining that the nominal memory capacity of the memory card is correct when the predetermined condition is met. According to the present application, an identification information detection is performed on a memory card to obtain a nominal memory capacity of the memory card and the memory card is then filled with a predetermined amount of data, an actual memory capacity of the memory card is determined by judging whether the predetermined amount of data filled in the memory card and the nominal memory capacity of the memory card meet a predetermined condition, and in this way the memory card can be authenticated using the mobile terminal in a convenient, fast and accurate way.

Description

存储卡的鉴别方法及其移动终端、终端设备 Method for identifying memory card and mobile terminal and terminal device thereof
【技术领域】[Technical Field]
本发明属于移动设备存储卡鉴别的技术领域,具体涉及一种移动终端的存储卡鉴别方法及其移动终端,还涉及一种终端设备。The invention belongs to the technical field of mobile device memory card authentication, and particularly relates to a memory card authentication method for a mobile terminal and a mobile terminal thereof, and to a terminal device.
【背景技术】 【Background technique】
使用存储卡是一种常用的移动设备(譬如手机、MP3等)内存扩展方法,但市面上的存储卡种类繁多、难分真假。假的存储卡不仅没有足够的标定存储容量,还可能会导致存储性能大大降低。这种存储卡的读写速度一般也不满足标准要求,会比标定速度慢,读写速度慢的存储卡甚至会影响整个移动设备的性能。The use of a memory card is a commonly used method of expanding mobile devices (such as mobile phones, MP3s, etc.), but the variety of memory cards on the market is difficult to distinguish between true and false. A fake memory card not only does not have enough calibration storage capacity, but may also result in greatly reduced storage performance. The read/write speed of such a memory card generally does not meet the standard requirements, and is slower than the calibration speed. The memory card with slow read/write speed may even affect the performance of the entire mobile device.
现有技术中鉴别存储卡的方法一般有以下几种。1)通过观察存储卡的外观和材质来辨别,这种需要积累相当的经验,并且不同厂商生产的存储卡外观和材质不尽相同,鉴别难度较大,且准确性低;2)通过扫描存储卡上贴的防伪码或者防伪标识辨别,该方法需要使用专用设备来扫描防伪码或者防伪标识,操作相对复杂;3)通过电脑上的软件进行辨别,该方法需要电脑辅助完成,虽然精准度高,但是电脑的便携性不强,因此难以确保鉴别的及时性。The methods for identifying a memory card in the prior art generally have the following types. 1) By observing the appearance and material of the memory card to distinguish, this kind of need to accumulate considerable experience, and the appearance and material of the memory card produced by different manufacturers are not the same, the identification is difficult and the accuracy is low; 2) by scanning storage The security code or anti-counterfeit label attached to the card is distinguished. This method requires special equipment to scan the anti-counterfeit code or anti-counterfeit mark, and the operation is relatively complicated. 3) The software on the computer is used for identification. This method requires computer-aided completion, although the accuracy is high. However, the portability of the computer is not strong, so it is difficult to ensure the timeliness of the authentication.
【发明内容】 [Summary of the Invention]
有鉴于此,本发明实施例提供一种移动终端的存储卡鉴别方法及其移动终端、终端设备,以解决存储卡鉴别不准确以及鉴别过程复杂的技术问题。In view of this, embodiments of the present invention provide a memory card authentication method for a mobile terminal, and a mobile terminal and a terminal device thereof, to solve the technical problem that the memory card is inaccurately identified and the authentication process is complicated.
为解决上述技术问题,本申请第一方面提供一种移动终端的存储卡鉴别方法,存储卡鉴别方法包括:移动终端检测与其连接的存储卡的识别信息以获得所述存储卡的标定存储容量;移动终端向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件;以及当满足所述预定条件时,则确定所述存储卡的标定存储容量正确。In order to solve the above technical problem, a first aspect of the present application provides a memory card authentication method for a mobile terminal, where the memory card authentication method includes: the mobile terminal detects identification information of a memory card connected thereto to obtain a calibration storage capacity of the memory card; The mobile terminal fills the memory card with a predetermined amount of data, and determines whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card; and when the predetermined condition is satisfied, determining the storage The card's calibration storage capacity is correct.
结合第一方面,在第一种可能的实现方式中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量;With reference to the first aspect, in a first possible implementation, the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of a calibration storage capacity of the memory card;
所述向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件的步骤具体为:向所述存储卡中填充所述存储卡标定存储容量预定比例的数据,并判断所述存储卡的存储空间是否有剩余容量;如果确定存储空间有剩余容量,则继续填充所述存储卡剩余容量预定比例的数据;如果确定存储空间没有剩余容量,则判断填充至所述存储卡的数据数量是否与所述预定数量相同。The step of filling the memory card with a predetermined amount of data and determining whether the predetermined amount and the calibration storage capacity of the memory card meet a predetermined condition is specifically: filling the storage card with the storage The card calibrates data of a predetermined proportion of the storage capacity, and determines whether the storage space of the memory card has a remaining capacity; if it is determined that the storage space has a remaining capacity, continuing to fill the predetermined proportion of the remaining capacity of the memory card; if it is determined that the storage space is not The remaining capacity is judged whether the amount of data filled to the memory card is the same as the predetermined number.
结合第一方面,在第二种可能的实现方式中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量;With reference to the first aspect, in a second possible implementation, the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of a calibration storage capacity of the memory card;
所述向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件的步骤具体为:向所述存储卡中持续填充数据至填充满所述存储卡的存储空间;判断填充至所述存储卡的数据数量是否与所述预定数量相同。The step of filling the memory card with a predetermined amount of data and determining whether the predetermined amount and the calibration storage capacity of the memory card meet a predetermined condition is specifically: continuously filling data into the memory card to Filling the storage space of the memory card; determining whether the amount of data filled to the memory card is the same as the predetermined number.
结合第一方面的第一种或者第二种可能实施方式,在第三种可能的实现方式中,在确定所述存储卡的标定存储容量正确的步骤之后,所述方法还包括:获取所述存储卡的实际读写速度;将所述实际读写速度信息通知用户或者通过网络查询所述存储卡识别信息对应的标定读写速度信息,以确定所述存储卡读写速度的检测对比结果;将所述存储卡的识别信息记录在所述移动终端内,其中,所述识别信息包括所述存储卡的名称、鉴别后的实际存储容量和/或所述实际读写速度信息。With reference to the first or second possible implementation manner of the first aspect, in a third possible implementation, after the step of determining that the calibration storage capacity of the memory card is correct, the method further includes: acquiring the The actual read/write speed of the memory card; notifying the user of the actual read/write speed information or querying the calibration read/write speed information corresponding to the memory card identification information through the network to determine the detection and comparison result of the read/write speed of the memory card; The identification information of the memory card is recorded in the mobile terminal, wherein the identification information includes a name of the memory card, an actual storage capacity after the authentication, and/or the actual read/write speed information.
结合第一方面或第一方面的第一种可能实现方式或第一方面的第二种可能实现方式,在第四种可能的实现方式中,当不满足所述预定条件时,所述存储卡鉴别方法在判断不满足所述预定条件的步骤之后还包括:根据填充至所述存储卡的数据数量确定所述存储卡的实际存储容量,并将所述存储卡的实际存储容量信息通知用户。With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a fourth possible implementation manner, when the predetermined condition is not met, the memory card The determining method further comprises: determining the actual storage capacity of the memory card according to the amount of data filled to the memory card after the step of determining that the predetermined condition is not satisfied, and notifying the user of the actual storage capacity information of the memory card.
结合第一方面的第四种可能实现方式,在第五种可能的实现方式中,所述方法在所述将所述存储卡的实际存储容量信息通知用户的步骤之后和/或所述获取所述存储卡的实际读写速度的步骤之前还包括:清除填充入所述存储卡内的数据。With reference to the fourth possible implementation of the first aspect, in a fifth possible implementation, the method, after the step of notifying the user of the actual storage capacity information of the memory card, and/or the obtaining The step of describing the actual read/write speed of the memory card further includes: clearing data filled in the memory card.
结合第一方面,在第六种可能的实现方式中,所述移动终端对与其连接的存储卡进行识别信息检测以获得所述存储卡的标定存储容量的步骤之后,所述方法还包括:将所述获得的存储卡的识别信息与所述移动终端内已存储的存储卡识别信息进行匹配;如果判断匹配结果为是,则将匹配的所述存储卡识别信息通知用户;如果判断匹配结果为否,则执行向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件的步骤。With reference to the first aspect, in a sixth possible implementation, after the step of the mobile terminal performing identification information detection on a memory card connected thereto to obtain a calibration storage capacity of the memory card, the method further includes: And the identification information of the obtained memory card is matched with the stored memory card identification information in the mobile terminal; if the matching result is determined to be yes, the matched memory card identification information is notified to the user; Otherwise, a step of filling a predetermined amount of data into the memory card and determining whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card is performed.
为解决上述技术问题,本申请第二方面还提供一种移动终端,移动终端包括:识别信息检测模块,用于检测接入移动终端存储卡的识别信息以获得存储卡的标定存储容量;数据填充模块,用于向存储卡中填充预定数量的数据;以及判断模块,用于判断预定数量与存储卡的标定存储容量之间是否满足预定条件,当满足预定条件时,则确定存储卡的标定存储容量正确。In order to solve the above technical problem, the second aspect of the present application further provides a mobile terminal, where the mobile terminal includes: an identification information detecting module, configured to detect identification information of a memory card of the access mobile terminal to obtain a calibration storage capacity of the memory card; a module for filling a predetermined number of data into the memory card; and a judging module for judging whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card, and when the predetermined condition is met, determining the calibration storage of the memory card The capacity is correct.
结合第二方面,在第一种可能实现方式中,数据填充模块向存储卡中填充存储卡标定存储容量预定比例的数据,判断模块判断存储卡的存储空间是否有剩余容量,如果判断存储空间有剩余容量,则继续填充存储卡剩余容量预定比例的数据;如果判断存储空间没有剩余容量,则继续判断填充至存储卡的数据数量是否与预定数量相同;其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量。With reference to the second aspect, in a first possible implementation manner, the data filling module fills the memory card with the predetermined data of the storage capacity of the storage card, and the determining module determines whether the storage space of the memory card has a remaining capacity, and if the storage space is determined to be The remaining capacity continues to fill the data of the predetermined proportion of the remaining capacity of the memory card; if it is determined that the storage space has no remaining capacity, it continues to determine whether the amount of data filled to the memory card is the same as the predetermined number; wherein the predetermined condition is filled in the The predetermined number of data of the memory card reaches a certain percentage of the memory capacity of the memory card.
结合第二方面,在第二种可能实现方式中,数据填充模块用于向存储卡填充数据至填充满存储卡的存储空间,判断模块判断填充至存储卡的数据数量是否与预定数量相同;其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量。With reference to the second aspect, in a second possible implementation manner, the data filling module is configured to fill the memory card with the storage space filled with the full memory card, and the determining module determines whether the amount of data filled to the memory card is the same as the predetermined number; The predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of the memory storage capacity of the memory card.
结合第二方面,在第四种可能的实现方式中,移动终端还包括通知模块,判断模块根据填充至存储卡的数据数量确定存储卡的实际存储容量,通知模块将存储卡的实际存储容量信息通知用户。With reference to the second aspect, in a fourth possible implementation manner, the mobile terminal further includes a notification module, the determining module determines an actual storage capacity of the memory card according to the amount of data filled to the memory card, and the notification module stores the actual storage capacity information of the memory card. Notify the user.
结合第二方面或第二方面的第一种可能的实现方式,在第五种可能的实现方式中,移动终端还包括获取模块、查询模块以及对比模块,获取模块用于获取存储卡的实际读写速度,查询模块通过网络查询存储卡识别信息对应的标定读写速度信息,对比模块将存储卡识别信息对应的标定读写速度与获取模块获取的实际读写速度进行对比,以确定存储卡读写速度的检测对比结果;通知模块还用于将实际读写速度信息通知用户。With reference to the second aspect, or the first possible implementation manner of the second aspect, in a fifth possible implementation, the mobile terminal further includes an obtaining module, a query module, and a comparing module, where the acquiring module is configured to obtain an actual reading of the memory card. Write speed, the query module queries the calibration read/write speed information corresponding to the memory card identification information through the network, and the comparison module compares the calibration read/write speed corresponding to the memory card identification information with the actual read/write speed obtained by the acquisition module to determine the memory card read. The detection result of the writing speed is compared; the notification module is further used to notify the user of the actual reading and writing speed information.
结合第二方面的第五种可能实现方式,在第六种可能的实现方式中,移动终端还包括数据清除模块和数据记录模块,数据清除模块用于清除填充入存储卡内的数据;数据记录模块用于将存储卡的识别信息记录在移动终端内,其中,识别信息包括存储卡的名称、鉴别后的实际存储容量和/或实际读写速度信息。In conjunction with the fifth possible implementation of the second aspect, in a sixth possible implementation, the mobile terminal further includes a data clearing module and a data recording module, where the data clearing module is configured to clear data filled in the memory card; The module is configured to record the identification information of the memory card in the mobile terminal, wherein the identification information includes a name of the memory card, an actual storage capacity after the authentication, and/or actual read/write speed information.
结合第二方面至第二方面的第三种可能实现方式中任一种可能实现方式,在第七种可能的实现方式中,移动终端还包括匹配模块;匹配模块用于将获得的存储卡的识别信息与移动终端内已存储的存储卡识别信息进行匹配;判断模块判断匹配的结果,如果判断匹配结果为是,则将匹配的存储卡识别信息通知用户;如果判断匹配结果为否,则向存储卡中填充预定数量的数据,并判断预定数量与存储卡的标定存储容量之间是否满足预定条件。With reference to the second aspect, the possible implementation manner of the third possible implementation manner of the second aspect, in a seventh possible implementation, the mobile terminal further includes a matching module, and the matching module is configured to obtain the obtained memory card The identification information is matched with the stored memory card identification information in the mobile terminal; the determining module determines the result of the matching, and if it is determined that the matching result is yes, the matching memory card identification information is notified to the user; if the matching result is negative, the The memory card is filled with a predetermined amount of data, and it is judged whether or not a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card.
为解决上述技术问题,本申请第三方面又提供了一种终端设备,终端设备包括处理器和显示器;处理器用于对移动终端接入的存储卡进行识别信息检测以获得存储卡的标定存储容量,以及向存储卡中填充预定数量的数据,并判断预定数量与存储卡的标定存储容量之间是否满足预定条件;当满足预定条件时,则确定存储卡的标定存储容量正确;显示器用于显示检测过程中的提示信息以及检测结果信息。In order to solve the above technical problem, the third aspect of the present application further provides a terminal device, where the terminal device includes a processor and a display; the processor is configured to perform identification information detection on the memory card accessed by the mobile terminal to obtain a calibration storage capacity of the memory card. And filling a predetermined amount of data into the memory card, and determining whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card; when the predetermined condition is satisfied, determining that the calibration storage capacity of the memory card is correct; the display is for displaying Prompt information and detection result information during the detection process.
结合第三方面,在第一种可能的实现方式中,所述处理器具体用于:向所述存储卡中填充所述存储卡标定存储容量预定比例的数据,判断所述存储卡的存储空间是否有剩余容量,如果判断存储空间有剩余容量,则继续填充所述存储卡剩余容量预定比例的数据;如果判断存储空间没有剩余容量,则继续判断填充至所述存储卡的数据数量是否与所述预定数量相同,其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量。With reference to the third aspect, in a first possible implementation, the processor is specifically configured to: fill the memory card with data of a predetermined proportion of a storage capacity of the memory card, and determine a storage space of the memory card. Whether there is remaining capacity, if it is judged that the storage space has remaining capacity, it continues to fill the data of the predetermined proportion of the remaining capacity of the memory card; if it is determined that there is no remaining capacity in the storage space, it continues to determine whether the amount of data filled to the memory card is The predetermined number is the same, wherein the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of the memory storage capacity of the memory card.
结合第三方面,在第二种可能的实现方式中,所述处理器具体用于:向所述存储卡填充数据至填充满所述存储卡的存储空间,判断填充至所述存储卡的数据数量是否与所述预定数量相同,其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量。With reference to the third aspect, in a second possible implementation, the processor is specifically configured to: fill the memory card with data to fill a storage space of the memory card, and determine data padding to the memory card. Whether the quantity is the same as the predetermined number, wherein the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of the memory storage capacity of the memory card.
结合第三方面或者第三方面的第一种可能的实现方式,在第三种可能的实现方式中,所述处理器还用于:获取所述存储卡的实际读写速度,通过网络查询所述存储卡识别信息对应的标定读写速度信息,将所述存储卡识别信息对应的标定读写速度与获取的实际读写速度进行对比,以确定所述存储卡读写速度的检测对比结果,将所述实际读写速度信息通知用户。With reference to the third aspect, or the first possible implementation manner of the third aspect, in a third possible implementation, the processor is further configured to: obtain an actual read/write speed of the memory card, and query the network through the network. Determining the calibration read/write speed information corresponding to the memory card identification information, comparing the calibration read/write speed corresponding to the memory card identification information with the obtained actual read/write speed, to determine the detection and comparison result of the read/write speed of the memory card, Notifying the user of the actual read and write speed information.
结合第三方面的第三种可能的实现方式,在第四种可能的实现方式中,所述处理器进一步用于:清除填充入所述存储卡内的数据;将所述存储卡的识别信息记录在所述移动终端内,其中,所述识别信息包括所述存储卡的名称、鉴别后的实际存储容量和/或实际读写速度信息。In conjunction with the third possible implementation of the third aspect, in a fourth possible implementation, the processor is further configured to: clear data that is filled in the memory card; and identify information of the memory card Recorded in the mobile terminal, wherein the identification information includes a name of the memory card, an actual storage capacity after authentication, and/or actual read/write speed information.
上述方案中,通过对存储卡进行识别信息检测而获得存储卡的标定存储容量,然后向存储卡中填充预定数量的数据,并通过判断填充入存储卡的预定数量数据与存储卡的标定存储容量之间满足预定条件来确定存储卡的实际存储容量,可以方便、快捷、准确的利用移动终端对存储卡进行鉴别。In the above solution, the calibration storage capacity of the memory card is obtained by detecting the identification information of the memory card, and then filling the memory card with a predetermined amount of data, and determining the predetermined amount of data filled in the memory card and the calibration storage capacity of the memory card. The predetermined storage condition is met to determine the actual storage capacity of the memory card, and the mobile terminal can be used to authenticate the memory card conveniently, quickly, and accurately.
【附图说明】 [Description of the Drawings]
图1是本发明移动终端存储卡鉴别方法第一实施方式的流程示意图;1 is a schematic flow chart of a first embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention;
图2是本发明移动终端存储卡鉴别方法第二实施方式的流程示意图;2 is a schematic flow chart of a second embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention;
图3是本发明移动终端存储卡鉴别方法第三实施方式的流程示意图;3 is a schematic flow chart of a third embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention;
图4是本发明移动终端第一种实施方式的结构示意图;4 is a schematic structural diagram of a first embodiment of a mobile terminal according to the present invention;
图5是本发明移动终端第二种实施方式的结构示意图;5 is a schematic structural diagram of a second embodiment of a mobile terminal according to the present invention;
图6是本发明终端设备的一种实施方式的结构示意图。FIG. 6 is a schematic structural diagram of an embodiment of a terminal device of the present invention.
【具体实施方式】【detailed description】
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透切理解本申请。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施方式中也可以实现本申请。在其它情况中,省略对众所周知的装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for purposes of explanation and description, reference, However, it will be apparent to those skilled in the art that the present invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the application.
下面结合附图和具体的实施方式进行说明。The following description will be made with reference to the accompanying drawings and specific embodiments.
请参阅图1,图1是本发明移动终端存储卡鉴别方法第一实施方式的流程示意图,在本实施方式中,移动终端的存储卡鉴别方法包括但不限于以下步骤。Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a first embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention. In this embodiment, a method for authenticating a memory card of a mobile terminal includes, but is not limited to, the following steps.
步骤S100,移动终端对与其连接的存储卡进行识别信息检测以获得存储卡的标定存储容量。Step S100: The mobile terminal performs identification information detection on the memory card connected thereto to obtain a calibration storage capacity of the memory card.
需要说明的是,本发明提供的动终端存储卡鉴别方法是以存储卡可以被正确加载为前提的,如不能加载成功,即移动终端无法识别到存储卡,则不涉及本发明实施例的鉴别方法。因此,在步骤S100之前一般还包括移动终端检测有存储卡插入的步骤。另外值得一提的是,在本发明各个实施例中的移动终端优选为手机、平板电脑等便携设备,以使存储卡可以被方便、及时的鉴别。It should be noted that the method for authenticating the memory card of the mobile terminal provided by the present invention is based on the premise that the memory card can be correctly loaded. If the loading cannot be successfully performed, that is, the mobile terminal cannot identify the memory card, the authentication of the embodiment of the present invention is not involved. method. Therefore, before the step S100, the mobile terminal is generally further included to detect the insertion of the memory card. It is also worth mentioning that the mobile terminal in the various embodiments of the present invention is preferably a portable device such as a mobile phone or a tablet computer, so that the memory card can be easily and timely identified.
在步骤S100中,当存储卡被识别并加载完后,需要对识别到的存储卡进行识别信息(Card Identification)检测,在识别信息检测的过程中可以通过该存储卡的二进制身份识别码识别出该存储卡的制造商、型号、标定存储容量等信息,其中,该存储卡的二进制身份识别码为每个存储卡独有的,以区别于其他存储卡不同的二进制编码。该标定存储容量为该存储卡标示出来的内存容量,例如,制造商通过二进制身份识别码标示出存储卡的内存容量为8G,则该存储卡的标定存储容量为8G。但是,标定存储容量有可能是存储卡的真实内存容量,也可能存储卡的真实内存容量小于或远远小于其标定存储容量,本发明提供的动终端存储卡鉴别方法就是为了鉴别存储卡的标定存储容量是否为其真实的内存容量。In step S100, after the memory card is recognized and loaded, the identification information of the identified memory card needs to be performed (Card Identification, in the process of detecting the identification information, the manufacturer, model, calibration storage capacity and the like of the memory card can be identified by the binary identification code of the memory card, wherein the binary identification code of the memory card is The memory card is unique to distinguish it from the different binary codes of other memory cards. The calibration storage capacity is the memory capacity indicated by the memory card. For example, if the manufacturer indicates that the memory capacity of the memory card is 8G by the binary identification code, the calibration storage capacity of the memory card is 8G. However, the calibration storage capacity may be the real memory capacity of the memory card, or the real memory capacity of the memory card may be less than or far less than the calibration storage capacity. The mobile terminal memory card authentication method provided by the present invention is to identify the calibration of the memory card. Whether the storage capacity is its real memory capacity.
步骤S110,移动终端向存储卡中填充预定数量的数据,并判断预定数量与存储卡的标定存储容量之间是否满足预定条件。Step S110, the mobile terminal fills the memory card with a predetermined amount of data, and determines whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card.
在步骤S110中,移动终端向存储卡中填充预定数量的数据的方法可以分别采用两种方式,其一为以预定比例数据对存储卡进行填充,其二为以预定单位数量的数据对存储卡进行填充。而两种填充数据方式的区别,将在后续实施例中做详细介绍。In step S110, the method for the mobile terminal to fill the memory card with a predetermined amount of data may be respectively performed in two ways, one of which is to fill the memory card with a predetermined proportion of data, and the other is to use a predetermined unit number of data to the memory card. Fill it up. The difference between the two methods of filling data will be described in detail in the following embodiments.
而判断填充入存储卡中的预定数量的数据与存储卡的标定存储容量之间是否满足预定条件可以为:判断填充入存储卡预定数量的数据是否达到了该存储卡标定存储容量的一定百分比的数量。And determining whether the predetermined condition between the predetermined amount of data filled in the memory card and the calibration storage capacity of the memory card meets the predetermined condition: determining whether the predetermined amount of data filled in the memory card reaches a certain percentage of the calibration storage capacity of the memory card Quantity.
步骤S120,当满足预定条件时,则确定存储卡的标定存储容量正确。In step S120, when the predetermined condition is met, it is determined that the calibration storage capacity of the memory card is correct.
在步骤S120中,在判断满足预定条件时,譬如,当判断填充入存储卡预定数量的数据达到了存储卡标定存储容量的95%,可以确定该存储卡的标定存储容量是正确。当然,用户可以自行设定不同存储卡标定存储容量百分比的判断标准,可以为存储卡标定存储容量的90%、99%或者80%等。此处不做具体限定。In step S120, when it is judged that the predetermined condition is satisfied, for example, when it is judged that the predetermined amount of data filled in the memory card reaches 95% of the memory storage capacity of the memory card, it can be determined that the calibration storage capacity of the memory card is correct. Of course, the user can set the judgment standard of the percentage of the storage capacity of different memory cards, and can calibrate the memory card to 90%, 99% or 80% of the storage capacity. This is not specifically limited.
当然,在通过填充数据的方式检测完毕存储卡容量后,还需要清除掉填充入存储卡的数据,以保证鉴别后的存储卡为干净的空卡。Of course, after the memory card capacity is detected by filling the data, the data filled in the memory card needs to be cleared to ensure that the authenticated memory card is a clean empty card.
本实施方式中的移动终端存储卡鉴别方法,通过对存储卡进行识别信息检测而获得存储卡的标定存储容量,然后向存储卡中填充预定数量的数据,并通过判断填充入存储卡的预定数量数据与存储卡的标定存储容量之间满足预定条件来确定存储卡的标定存储容量是否正确,可以方便、快捷、准确的利用移动终端对存储卡进行鉴别。In the mobile terminal memory card authentication method of the present embodiment, the calibration storage capacity of the memory card is obtained by detecting the identification information of the memory card, and then filling the memory card with a predetermined amount of data, and determining the predetermined number of the memory card by filling in The predetermined condition is met between the data and the calibration storage capacity of the memory card to determine whether the calibration storage capacity of the memory card is correct, and the memory card can be conveniently, quickly, and accurately used to authenticate the memory card.
请参阅图2,图2是本发明移动终端存储卡鉴别方法第二实施方式的流程示意图,在本实施方式中,移动终端的存储卡鉴别方法包括但不限于以下步骤。Referring to FIG. 2, FIG. 2 is a schematic flowchart of a second embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention. In this embodiment, a method for authenticating a memory card of a mobile terminal includes, but is not limited to, the following steps.
步骤S201,移动终端对与其连接的存储卡进行识别信息检测以获得存储卡的标定存储容量。Step S201: The mobile terminal performs identification information detection on the memory card connected thereto to obtain a calibration storage capacity of the memory card.
其中,需要对识别到的存储卡进行识别信息检测,在识别信息检测的过程中可以通过该存储卡的二进制身份识别码识别出该存储卡的制造商、型号、标定存储容量等信息。The identification information of the identified memory card needs to be detected. In the process of detecting the identification information, information such as the manufacturer, model, and calibration storage capacity of the memory card can be identified by the binary identification code of the memory card.
步骤S202,将获得的存储卡的识别信息与移动终端内已存储的存储卡识别信息进行匹配。Step S202, matching the obtained identification information of the memory card with the stored memory card identification information in the mobile terminal.
步骤S203,判断存储卡的识别信息与移动终端内已存储的存储卡识别信息是否匹配。若是,则进入步骤S204,否则,进入步骤S205。Step S203, determining whether the identification information of the memory card matches the memory card identification information stored in the mobile terminal. If yes, go to step S204, otherwise, go to step S205.
在步骤S202和S203中,移动终端获得的存储卡的识别信息后,将该识别信息与移动终端内存储的存储卡识别信息进行匹配,而移动终端内存储的存储卡识别信息一般为移动终端在检测存储卡过程中获得并保存的数据,当移动终端在判断匹配结果过程中,识别到存储卡被二次检测时,即:该存储卡的识别信息在移动终端内有记录存在,则进入到下一步骤。In steps S202 and S203, after the identification information of the memory card obtained by the mobile terminal is matched, the identification information is matched with the memory card identification information stored in the mobile terminal, and the memory card identification information stored in the mobile terminal is generally the mobile terminal. Detecting the data obtained and saved in the process of the memory card, when the mobile terminal recognizes that the memory card is detected twice in the process of judging the matching result, that is, the identification information of the memory card exists in the mobile terminal, then enters The next step.
步骤S204,将匹配的存储卡识别信息通知用户。然后,流程结束。Step S204, notifying the user of the matched memory card identification information. Then the process ends.
此时,移动终端会提醒用户,该存储卡的信息已经存在于移动终端的历史检索结果内,同时将针对该存储卡识别信息的历史检索记录信息呈现给用户,以提醒用户是否再次进行检测,当用户选择不再重新检测时,则不再进行提示,用户可以正常使用手机,同时停止存储卡的鉴别过程。At this time, the mobile terminal will remind the user that the information of the memory card already exists in the historical search result of the mobile terminal, and the historical search record information for the memory card identification information is presented to the user to remind the user whether to perform the detection again. When the user chooses not to re-detect, the prompt is no longer performed, and the user can use the mobile phone normally while stopping the authentication process of the memory card.
步骤S205,向存储卡中填充存储卡标定存储容量预定比例的数据。Step S205, filling the memory card with the memory card to calibrate the data of a predetermined proportion of the storage capacity.
在步骤S205中,根据检测到的存储卡识别信息对应的标定存储容量对存储卡进行填充数据,譬如,检测到的存储卡识别信息对应的标定存储容量为8GB,则首先向该存储卡中一次填充该标定存储容量预定比例的数据,可以为该标定存储容量8GB的50%,即一次填充4GB的数据,当然,该实施方式中并不限定该预定比例数据,可以根据移动终端的运算能力、存储卡标定存储容量的大小等进行设置,可以为标定存储容量的30%、60%等,此处不再一一列举。In step S205, the memory card is filled with data according to the calibration storage capacity corresponding to the detected memory card identification information. For example, if the detected storage card identification information corresponds to a calibration storage capacity of 8 GB, the memory card is firstly used once. The data of the predetermined storage capacity is filled with a predetermined proportion of the storage capacity, which may be 50% of the storage capacity of 8 GB, that is, 4 GB of data is filled at a time. Of course, the predetermined ratio data is not limited in this embodiment, and may be based on the computing power of the mobile terminal. The size of the memory card calibration storage capacity, etc., can be set to 30%, 60%, etc. of the calibration storage capacity, and will not be enumerated here.
步骤S206,判断该存储卡的存储空间是否有剩余容量。如果判断存储卡的存储空间有剩余容量,则进入步骤S207,如果判断存储卡的存储空间没有剩余容量,则进入步骤S208。Step S206, determining whether the storage space of the memory card has a remaining capacity. If it is determined that the storage space of the memory card has a remaining capacity, the process proceeds to step S207, and if it is determined that the storage space of the memory card has no remaining capacity, the process proceeds to step S208.
步骤S207,继续填充存储卡剩余容量预定比例的数据。Step S207, continuing to fill the data of the predetermined proportion of the remaining capacity of the memory card.
在该步骤中,剩余容量预定比例的数据可以与上一步骤中的预定比例相同,也可以不同,同样的,该预定比例数据也可以根据移动终端的运算能力、存储卡标定存储容量的大小等进行具体设置。填充一次完成后,返回到步骤S206,继续判断存储卡是否有存储空间剩余,步骤S207与S206之间循环进行,直到步骤S206判断存储卡的存储空间不再有剩余容量。In this step, the predetermined ratio of the remaining capacity data may be the same as or different from the predetermined ratio in the previous step. Similarly, the predetermined ratio data may also be based on the computing power of the mobile terminal, the size of the storage capacity of the memory card, and the like. Make specific settings. After the filling is completed once, the process returns to step S206 to continue to determine whether the memory card has a remaining storage space. The steps S207 and S206 are cyclically performed until step S206 determines that the storage space of the memory card no longer has a remaining capacity.
步骤S208,判断填充至存储卡的数据数量是否与预定数量相同。若是,则进入步骤S209,否则,进入步骤S214。In step S208, it is determined whether the amount of data filled to the memory card is the same as the predetermined number. If yes, go to step S209, otherwise, go to step S214.
在步骤S208中,确定通过步骤S205、207的向存储卡填充数据的数据总量,并判断该数据总量是否和该预定数量相同。其中,该预定数量可以为存储卡标定存储容量的95%,当然,用户可以自行设定不同存储卡标定存储容量百分比的判断标准,具体可以为存储卡标定存储容量的90%、99%或者80%等。此处亦不做具体限定。当判断填充至存储卡的数据数量与预定数量相同时,则进入步骤S209。In step S208, the total amount of data to be filled with data to the memory card through steps S205, 207 is determined, and it is determined whether the total amount of data is the same as the predetermined number. The predetermined quantity may be 95% of the storage capacity of the memory card. Of course, the user may set the judgment standard of the percentage of the storage capacity of the different memory cards, which may be 90%, 99% or 80 of the storage capacity of the memory card. %Wait. There is no specific limit here. When it is judged that the number of data filled to the memory card is the same as the predetermined number, the process proceeds to step S209.
步骤S209,确定存储卡实际存储容量正确。In step S209, it is determined that the actual storage capacity of the memory card is correct.
在步骤S209中,可以提示用户鉴别的存储卡实际存储容量正确,提示用户存储卡数据容量正确的方式可以为显示提示框、发出语音或者振动等。In step S209, the actual storage capacity of the memory card that the user can be prompted to be correct is correct, and the manner in which the data capacity of the memory card is prompted to be correct may be a prompt box, a voice or a vibration.
步骤S210,清除填充入存储卡内的数据。In step S210, the data filled in the memory card is cleared.
步骤S211,获取存储卡的实际读写速度。Step S211, obtaining an actual read/write speed of the memory card.
在步骤S211中,获取存储卡的实际读写速度的方式可以为向存储卡内填充一较大单位数据,进而在填充数据的过程中获取存储卡的实际读写速度。In step S211, the actual read/write speed of the memory card may be obtained by filling a large unit data into the memory card, and then acquiring the actual read/write speed of the memory card during the process of filling the data.
步骤S212,将实际读写速度信息通知用户或者通过网络查询存储卡识别信息对应的标定读写速度信息,以确定存储卡读写速度的检测对比结果。Step S212, notifying the user of the actual read/write speed information or querying the calibration read/write speed information corresponding to the memory card identification information through the network to determine the detection comparison result of the memory card read/write speed.
在步骤S212中,移动终端会将获取到的存储卡实际读写速度信息通知用户,通知方式可以为通过提示信息显示在显示屏上,或者通过语音进行提示等。另外,移动终端还可以通过网络在该存储卡识别信息对应的制造商的官方网站上查询该存储卡的标定读写速度,然后将该标定读写速度与获取的实际读写速度进行对比,从而得到对比结果,通过对比结果可以清楚地得知该存储卡的实际读写速度是否满足要求。In step S212, the mobile terminal notifies the user of the obtained actual read/write speed information of the memory card, and the notification manner may be displayed on the display screen by the prompt information, or prompted by voice. In addition, the mobile terminal can also query the calibration read/write speed of the memory card on the official website of the manufacturer corresponding to the memory card identification information through the network, and then compare the calibration read/write speed with the obtained actual read/write speed, thereby Comparing the results, it is clear from the comparison results whether the actual read/write speed of the memory card meets the requirements.
步骤S213,将存储卡的实际读写速度和存储实际存储容量信息记录在移动终端内。然后,流程结束。Step S213, the actual read/write speed of the memory card and the storage actual storage capacity information are recorded in the mobile terminal. Then the process ends.
移动终端自身包括存储装置,可以将包括存储卡的实际读写速度和存储实际存储容量信息等记录在移动终端内。The mobile terminal itself includes a storage device, and the actual read/write speed including the memory card and the storage actual storage capacity information and the like can be recorded in the mobile terminal.
步骤S214,根据填充至存储卡的数据数量确定存储卡的实际存储容量,并将存储卡的实际存储容量信息通知用户。然后,返回步骤S210。Step S214, determining the actual storage capacity of the memory card according to the amount of data filled to the memory card, and notifying the user of the actual storage capacity information of the memory card. Then, it returns to step S210.
在步骤S214中,将存储卡的实际存储容量信息通知用户提醒用户该存储卡的存储容量不合格。同样的,通知方式可以为通过提示信息显示在显示屏上,或者通过语音进行提示等。In step S214, the actual storage capacity information of the memory card is notified to the user to remind the user that the storage capacity of the memory card is unsatisfactory. Similarly, the notification mode may be displayed on the display screen by prompt information, or prompted by voice.
本实施例中的移动终端存储卡鉴别方法,通过每次填充预定比例的数据对存储卡进行填充,可快速、准确检验出存储卡容量;在鉴别存储容量的过程之前将识别到的存储卡识别信息与移动终端内部存储的信息进行匹配,可以防止对同一存储卡的重复鉴别,同时该鉴别方法还可以鉴别存储卡读写速度信息。In the mobile terminal memory card authentication method in this embodiment, the memory card can be quickly and accurately checked by filling the memory card with a predetermined proportion of data each time; the recognized memory card is recognized before the process of authenticating the storage capacity The information is matched with the information stored in the mobile terminal to prevent duplicate identification of the same memory card, and the authentication method can also identify the memory card read/write speed information.
请参阅图3,图3是本发明移动终端存储卡鉴别方法第三实施方式的流程示意图,在本实施方式中,移动终端的存储卡鉴别方法包括但不限于以下步骤。Referring to FIG. 3, FIG. 3 is a schematic flowchart of a third embodiment of a method for authenticating a memory card of a mobile terminal according to the present invention. In this embodiment, a method for authenticating a memory card of a mobile terminal includes, but is not limited to, the following steps.
步骤S301,移动终端对与其连接的存储卡进行识别信息检测以获得存储卡的标定存储容量。Step S301, the mobile terminal performs identification information detection on the memory card connected thereto to obtain a calibration storage capacity of the memory card.
其中,需要对识别到的存储卡进行识别信息检测,在识别信息检测的过程中可以通过该存储卡的二进制身份识别码识别出该存储卡的制造商、型号、标定存储容量等信息。The identification information of the identified memory card needs to be detected. In the process of detecting the identification information, information such as the manufacturer, model, and calibration storage capacity of the memory card can be identified by the binary identification code of the memory card.
步骤S302,将获得的存储卡的识别信息与移动终端内已存储的存储卡识别信息进行匹配。Step S302, matching the obtained identification information of the memory card with the stored memory card identification information in the mobile terminal.
步骤S303,判断存储卡的识别信息与移动终端内已存储的存储卡识别信息是否匹配。若是,则进入步骤S304,否则,进入步骤S305。Step S303, determining whether the identification information of the memory card matches the memory card identification information stored in the mobile terminal. If yes, go to step S304, otherwise, go to step S305.
在步骤S302和S303中,移动终端获得的存储卡的识别信息后,将该识别信息与移动终端内存储的存储卡识别信息进行匹配,而移动终端内存储的存储卡识别信息一般为移动终端在检测存储卡过程中获得并保存的数据,当移动终端在判断匹配结果过程中,识别到存储卡被二次检测时,即:该存储卡的识别信息在移动终端内有记录存在,则进入到下一步骤。In steps S302 and S303, after the identification information of the memory card obtained by the mobile terminal is matched, the identification information is matched with the memory card identification information stored in the mobile terminal, and the memory card identification information stored in the mobile terminal is generally the mobile terminal. Detecting the data obtained and saved in the process of the memory card, when the mobile terminal recognizes that the memory card is detected twice in the process of judging the matching result, that is, the identification information of the memory card exists in the mobile terminal, then enters The next step.
步骤S304,将匹配的存储卡识别信息通知用户。然后,流程结束。Step S304, notifying the user of the matched memory card identification information. Then the process ends.
此时,移动终端会提醒用户,该存储卡的信息已经存在于移动终端的历史检索结果内,同时将针对该存储卡识别信息的历史检索记录信息呈现给用户,以提醒用户是否再次进行检测,当用户选择不再重新检测时,则不再进行提示,用户可以正常使用手机,同时停止存储卡的鉴别过程。At this time, the mobile terminal will remind the user that the information of the memory card already exists in the historical search result of the mobile terminal, and the historical search record information for the memory card identification information is presented to the user to remind the user whether to perform the detection again. When the user chooses not to re-detect, the prompt is no longer performed, and the user can use the mobile phone normally while stopping the authentication process of the memory card.
步骤S305,以预定单位的数据持续地向存储卡填充数据,直至填充满存储卡。In step S305, the data is continuously filled with data in a predetermined unit until the full memory card is filled.
在步骤S305中,以预定单位的数据持续地向存储卡填充数据,其中,该预定单位的数据可以为1M,即每次以1M为单位进行填充 。当然预定单位并不限于1M,可以根据移动终端的运算能力等因素进行设置,可以为2M、3M、10M等,此处不再一一列举。In step S305, the data is continuously filled with data in a predetermined unit of data, wherein the predetermined unit of data may be 1M, that is, filled in units of 1M each time. . Of course, the predetermined unit is not limited to 1M, and may be set according to factors such as the computing power of the mobile terminal, and may be 2M, 3M, 10M, etc., and will not be enumerated here.
步骤S306,判断填充至存储卡的数据数量是否与预定数量相同。In step S306, it is determined whether the amount of data filled to the memory card is the same as the predetermined number.
在步骤S306中,预定数量可以为存储卡标定存储容量的95%,当然,用户可以自行设定不同存储卡标定存储容量百分比的判断标准,具体可以为存储卡标定存储容量的90%、99%或者80%等。此处亦不做具体限定。当判断填充至存储卡的数据数量与预定数量相同时,则进入步骤S307。In step S306, the predetermined number may be 95% of the storage capacity of the memory card. Of course, the user may set the judgment standard of the percentage of the storage capacity of the different memory cards, which may be 90% and 99% of the storage capacity of the memory card. Or 80%, etc. There is no specific limit here. When it is judged that the number of data filled to the memory card is the same as the predetermined number, the flow proceeds to step S307.
步骤S307,确定存储卡实际存储容量正确。In step S307, it is determined that the actual storage capacity of the memory card is correct.
在步骤S307中,提示用户存储卡实际存储容量正确的方式可以为显示提示框、发出语音或者振动等。In step S307, the manner of prompting the user that the actual storage capacity of the memory card is correct may be displaying a prompt box, emitting a voice or vibrating, or the like.
步骤S308,清除填充入存储卡内的数据。In step S308, the data filled in the memory card is cleared.
步骤S309,获取存储卡的实际读写速度。Step S309, obtaining an actual read/write speed of the memory card.
在步骤309中,获取存储卡的实际读写速度的方式可以为向存储卡内填充一较大单位数据,进而在填充数据的过程中获取存储卡的实际读写速度。In step 309, the actual read/write speed of the memory card may be obtained by filling a large unit of data into the memory card, thereby obtaining the actual read/write speed of the memory card during the process of filling the data.
步骤S310,将实际读写速度信息通知用户或者通过网络查询存储卡识别信息对应的标定读写速度信息,以确定存储卡读写速度的检测对比结果。Step S310, notifying the user of the actual read/write speed information or querying the calibration read/write speed information corresponding to the memory card identification information through the network to determine the detection comparison result of the read/write speed of the memory card.
在步骤S310中,移动终端会将获取到的存储卡实际读写速度信息通知用户,通知方式可以为通过提示信息显示在显示屏上,或者通过语音进行提示等。另外,移动终端还可以通过网络在该存储卡识别信息对应的制造商的官方网站上查询该存储卡的标定读写速度,然后将该标定读写速度与获取的实际读写速度进行对比,从而得到对比结果,通过对比结果可以清楚地得知该存储卡的实际读写速度是否满足要求。In step S310, the mobile terminal notifies the user of the obtained actual read/write speed information of the memory card, and the notification mode may be displayed on the display screen by the prompt information, or prompted by voice. In addition, the mobile terminal can also query the calibration read/write speed of the memory card on the official website of the manufacturer corresponding to the memory card identification information through the network, and then compare the calibration read/write speed with the obtained actual read/write speed, thereby Comparing the results, it is clear from the comparison results whether the actual read/write speed of the memory card meets the requirements.
步骤S311,将存储卡的实际读写速度和存储实际存储容量信息记录在移动终端内。移动终端自身包括存储装置,可以将包括存储卡的实际读写速度和存储实际存储容量信息等记录在移动终端内。然后,流程结束。Step S311, the actual read/write speed of the memory card and the storage actual storage capacity information are recorded in the mobile terminal. The mobile terminal itself includes a storage device, and the actual read/write speed including the memory card and the storage actual storage capacity information and the like can be recorded in the mobile terminal. Then the process ends.
步骤S312,根据填充至存储卡的数据数量确定存储卡的实际存储容量,并将存储卡的实际存储容量信息通知用户。Step S312, determining the actual storage capacity of the memory card according to the amount of data filled to the memory card, and notifying the user of the actual storage capacity information of the memory card.
在步骤S312中,将存储卡的实际存储容量信息通知用户并提醒用户该存储卡的存储容量不合格。同样的,通知方式可以为通过提示信息显示在显示屏上,或者通过语音进行提示等。In step S312, the actual storage capacity information of the memory card is notified to the user and the user is reminded that the storage capacity of the memory card is unsatisfactory. Similarly, the notification mode may be displayed on the display screen by prompt information, or prompted by voice.
步骤S313,清除填充入存储卡内的数据。In step S313, the data filled in the memory card is cleared.
在步骤S313之后则进入到步骤S311,将存储卡的存储实际存储容量信息记录在移动终端内。本实施方式中的移动终端存储卡鉴别方法结束。After step S313, the process proceeds to step S311, where the stored actual storage capacity information of the memory card is recorded in the mobile terminal. The mobile terminal memory card authentication method in the present embodiment ends.
本实施例中的移动终端存储卡鉴别方法,通过以预定单位数据对存储卡进行填充,可快速、准确检验出存储卡容量;在鉴别存储容量的过程之前将识别到的存储卡识别信息与移动终端内部存储的信息进行匹配,可以防止对同一存储卡的重复鉴别;同时该鉴别方法还可以鉴别存储卡读写速度信息。The mobile terminal memory card authentication method in this embodiment can quickly and accurately check the memory card capacity by filling the memory card with predetermined unit data; and identifying the recognized memory card identification information and moving before the process of authenticating the storage capacity The information stored in the terminal is matched to prevent duplicate identification of the same memory card; and the authentication method can also identify the memory card read/write speed information.
请参阅图4,图4是本发明移动终端第一种实施方式的示意框图,该移动终端400包括但不限于以下模块:识别信息检测模块401、数据填充模块402以及判断模块403。Please refer to FIG. 4. FIG. 4 is a schematic block diagram of a first embodiment of a mobile terminal according to the present invention. The mobile terminal 400 includes but is not limited to the following modules: an identification information detecting module 401, a data filling module 402, and a determining module 403.
具体而言,识别信息检测模块401用于检测接入移动终端存储卡的识别信息以获得存储卡的标定存储容量。其中,需要说明的是,本发明实施方式提供的移动终端是以存储卡可以被移动终端正确加载为前提的,如不能加载成功,即移动终端无法识别到存储卡,则不涉及本发明实施例的移动终端。另外值得一提的是,在本发明各个实施例中的移动终端优选为手机、平板电脑等便携设备,以使存储卡可以被方便、及时的鉴别。Specifically, the identification information detecting module 401 is configured to detect the identification information of the memory card of the mobile terminal to obtain the calibration storage capacity of the memory card. It should be noted that the mobile terminal provided by the embodiment of the present invention is premised on the fact that the memory card can be correctly loaded by the mobile terminal. If the mobile terminal cannot successfully load, that is, the mobile terminal cannot identify the memory card, the embodiment of the present invention is not involved. Mobile terminal. It is also worth mentioning that the mobile terminal in the various embodiments of the present invention is preferably a portable device such as a mobile phone or a tablet computer, so that the memory card can be easily and timely identified.
识别信息检测模块401需要对识别到的存储卡进行识别信息(Card Identification)检测,在识别信息检测的过程中可以通过该存储卡的二进制身份识别码识别出该存储卡的制造商、型号、标定存储容量等信息,其中,该存储卡的二进制身份识别码为每个存储卡独有的,以区别与其他存储卡不同的二进制编码。该标定存储容量为该存储卡标示出来的内存容量,例如,制造商通过二进制身份识别码标示出存储卡的内存容量为8G,则该存储卡的标定存储容量为8G。但是,标定存储容量有可能是存储卡的真实内存容量,也可能存储卡的真实内存容量小于或远远小于其标定存储容量,本发明提供的动终端存储卡鉴别方法就是为了鉴别存储卡的标定存储容量是否为其真实的内存容量。The identification information detecting module 401 needs to perform identification information on the identified memory card (Card Identification, in the process of detecting the identification information, the manufacturer, model, calibration storage capacity and the like of the memory card can be identified by the binary identification code of the memory card, wherein the binary identification code of the memory card is Unique to the memory card to distinguish the binary code from other memory cards. The calibration storage capacity is the memory capacity indicated by the memory card. For example, if the manufacturer indicates that the memory capacity of the memory card is 8G by the binary identification code, the calibration storage capacity of the memory card is 8G. However, the calibration storage capacity may be the real memory capacity of the memory card, or the real memory capacity of the memory card may be less than or far less than the calibration storage capacity. The mobile terminal memory card authentication method provided by the present invention is to identify the calibration of the memory card. Whether the storage capacity is its real memory capacity.
数据填充模块402用于向存储卡中填充预定数量的数据,而向存储卡中填充预定数量的数据的方式可以分别采用两种方式,其一为以预定比例数据对存储卡进行填充,其二为以预定单位数量的数据对存储卡进行填充。The data filling module 402 is configured to fill a predetermined amount of data into the memory card, and the manner of filling the memory card with a predetermined amount of data may be respectively performed in two ways, one of which is to fill the memory card with a predetermined ratio of data, and the second The memory card is filled with a predetermined number of units of data.
判断模块403在判断预定数量与存储卡的标定存储容量之间是否满足预定条件可以为:判断填充入存储卡预定数量的数据是否达到了该存储卡标定存储容量的一定百分比的数量。The judging module 403 determines whether the predetermined condition is satisfied with the calibration storage capacity of the memory card, and determines whether the predetermined amount of data filled in the memory card reaches a certain percentage of the calibration storage capacity of the memory card.
在判断满足预定条件时,譬如,当判断填充入存储卡预定数量的数据达到了存储卡标定存储容量的95%,可以确定该存储卡的实际存储容量正确。当然,用户可以自行设定不同存储卡标定存储容量百分比的判断标准,可以为存储卡标定存储容量的90%、99%或者80%等。此处不做具体限定。When it is judged that the predetermined condition is satisfied, for example, when it is judged that the predetermined amount of data filled in the memory card reaches 95% of the memory storage capacity of the memory card, it can be determined that the actual storage capacity of the memory card is correct. Of course, the user can set the judgment standard of the percentage of the storage capacity of different memory cards, and can calibrate the memory card to 90%, 99% or 80% of the storage capacity. This is not specifically limited.
本实施方式中的移动终端,通过识别信息检测模块对存储卡进行识别信息检测而获得存储卡的标定存储容量,然后通过数据填充模块向存储卡中填充预定数量的数据,最后利用判断模块判断填充入存储卡的预定数量数据与存储卡的标定存储容量之间满足预定条件来确定存储卡的实际存储容量,可以方便、快捷、准确的利用移动终端对存储卡进行鉴别。The mobile terminal in the embodiment obtains the calibration storage capacity of the memory card by detecting the identification information of the memory card by the identification information detecting module, and then fills the memory card with a predetermined amount of data through the data filling module, and finally determines the padding by using the determining module. The predetermined storage condition between the predetermined number of data entering the memory card and the calibration storage capacity of the memory card satisfies a predetermined condition to determine the actual storage capacity of the memory card, and the mobile terminal can be used to authenticate the memory card conveniently, quickly, and accurately.
请参阅图5,图5是本发明移动终端第二种实施方式的示意框图,该移动终端500包括但不限于以下模块:识别信息检测模块501、数据填充模块502、判断模块503、通知模块504、匹配模块505、获取模块506、查询模块507、对比模块508、数据清除模块509以及数据记录模块510。Referring to FIG. 5, FIG. 5 is a schematic block diagram of a second embodiment of a mobile terminal according to the present invention. The mobile terminal 500 includes but is not limited to the following modules: an identification information detecting module 501, a data filling module 502, a determining module 503, and a notification module 504. The matching module 505, the obtaining module 506, the querying module 507, the comparing module 508, the data clearing module 509, and the data recording module 510.
具体而言,识别信息检测模块501用于检测接入移动终端存储卡的识别信息以获得存储卡的标定存储容量。识别信息检测模块501在对识别到的存储卡进行识别信息(Card Identification)检测时,可以通过该存储卡的二进制身份识别码识别出该存储卡的制造商、型号、标定存储容量等信息,其中,该存储卡的二进制身份识别码为每个存储卡独有的,以区别与其他存储卡不同的二进制编码。该标定存储容量为该存储卡标示出来的内存容量,例如,制造商通过二进制身份识别码标示出存储卡的内存容量为8G,则该存储卡的标定存储容量为8G。但是,标定存储容量有可能是存储卡的真实内存容量,也可能存储卡的真实内存容量小于或远远小于其标定存储容量,本发明提供的动终端存储卡鉴别方法就是为了鉴别存储卡的标定存储容量是否为其真实的内存容量。Specifically, the identification information detecting module 501 is configured to detect the identification information of the memory card of the mobile terminal to obtain the calibration storage capacity of the memory card. The identification information detecting module 501 performs identification information on the recognized memory card (Card When the identification is detected, the manufacturer, model, calibration storage capacity and the like of the memory card can be identified by the binary identification code of the memory card, wherein the binary identification code of the memory card is unique to each memory card. To distinguish between binary codes that are different from other memory cards. The calibration storage capacity is the memory capacity indicated by the memory card. For example, if the manufacturer indicates that the memory capacity of the memory card is 8G by the binary identification code, the calibration storage capacity of the memory card is 8G. However, the calibration storage capacity may be the real memory capacity of the memory card, or the real memory capacity of the memory card may be less than or far less than the calibration storage capacity. The mobile terminal memory card authentication method provided by the present invention is to identify the calibration of the memory card. Whether the storage capacity is its real memory capacity.
匹配模块505用于将获得的存储卡的识别信息与移动终端内已存储的存储卡识别信息进行匹配,判断模块503判断存储卡的识别信息与移动终端内已存储的存储卡识别信息是否匹配。识别信息检测模块501获得的存储卡的识别信息后,匹配模块505将该识别信息与移动终端内存储的存储卡识别信息进行匹配,而移动终端内存储的存储卡识别信息一般为移动终端在检测存储卡过程中获得并保存的数据,当判断模块503在判断匹配结果过程中,识别到存储卡被二次检测时,即:该存储卡的识别信息在移动终端内有记录存在,则通知模块504将匹配的存储卡识别信息通知用户。此时,通知模块504会提醒用户,该存储卡的信息已经存在于移动终端的历史检索结果内。同时将针对该存储卡识别信息的历史检索记录信息呈现给用户,以提醒用户是否再次进行检测,当用户选择不再重新检测时,则不再进行提示,用户可以正常使用手机,同时停止存储卡的鉴别过程。The matching module 505 is configured to match the obtained identification information of the memory card with the stored memory card identification information stored in the mobile terminal, and the determining module 503 determines whether the identification information of the memory card matches the stored memory card identification information stored in the mobile terminal. After the identification information of the memory card obtained by the information detecting module 501 is identified, the matching module 505 matches the identification information with the memory card identification information stored in the mobile terminal, and the memory card identification information stored in the mobile terminal is generally detected by the mobile terminal. The data obtained and saved in the process of the memory card, when the judging module 503 recognizes that the memory card is detected twice in the process of judging the matching result, that is, the identification information of the memory card has a record in the mobile terminal, the notification module 504 notifies the user of the matched memory card identification information. At this time, the notification module 504 will remind the user that the information of the memory card already exists in the historical search result of the mobile terminal. At the same time, the historical search record information for the memory card identification information is presented to the user to remind the user whether to perform the detection again. When the user chooses not to re-detect, the user no longer prompts, the user can use the mobile phone normally, and stop the memory card at the same time. Identification process.
数据填充模块502一方面用于向存储卡中填充存储卡标定存储容量预定比例的数据。其中,数据填充模块502根据检测到的存储卡识别信息对应的标定存储容量对存储卡进行填充数据,譬如,检测到的存储卡识别信息对应的标定存储容量为8GB,则首先向该存储卡中一次填充该标定存储容量预定比例的数据,可以为该标定存储容量8GB的50%,即一次填充4GB的数据,当然,该实施方式中并不限定该预定比例数据,可以根据移动终端的运算能力、存储卡标定存储容量的大小等进行设置,可以为标定存储容量的30%、60%等,此处不再一一列举。The data filling module 502 is used on the one hand to fill the memory card with the memory card to calibrate the predetermined amount of data of the storage capacity. The data filling module 502 fills the memory card with the calibration storage capacity corresponding to the detected memory card identification information. For example, if the detected storage card corresponding to the memory card identification information has a nominal storage capacity of 8 GB, the memory card is firstly used in the memory card. Filling the data of the predetermined proportion of the calibration storage capacity at a time, may be 50% of the calibration storage capacity of 8 GB, that is, 4 GB of data is filled at a time. Of course, the predetermined ratio data is not limited in this embodiment, and may be based on the computing capability of the mobile terminal. The size of the memory card calibration storage capacity, etc., can be set to 30%, 60%, etc. of the calibration storage capacity, and will not be enumerated here.
在第一方面中,判断模块503判断存储卡是否有存储空间剩余,如果判断有存储空间剩余,则数据填充模块502继续填充存储卡剩余容量预定比例的数据,如果判断模块503判断没有存储空间剩余,则继续判断填充至存储卡的数据数量是否与预定数量相同。其中,预定数量可以为存储卡标定存储容量的95%,当然,用户可以自行设定不同存储卡标定存储容量百分比的判断标准,具体可以为存储卡标定存储容量的90%、99%或者80%等。此处亦不做具体限定。In the first aspect, the determining module 503 determines whether the memory card has a remaining storage space. If it is determined that there is a remaining storage space, the data filling module 502 continues to fill the data of the predetermined ratio of the remaining capacity of the memory card, and if the determining module 503 determines that there is no storage space remaining. Then, it is determined whether the amount of data filled to the memory card is the same as the predetermined number. The predetermined quantity may be 95% of the storage capacity of the memory card. Of course, the user may set the judgment standard of the percentage of the storage capacity of the different memory cards, which may be 90%, 99% or 80% of the storage capacity of the memory card. Wait. There is no specific limit here.
另一方面,数据填充模块502还可以以预定单位的数据持续地向存储卡填充数据,其中,该预定单位的数据可以为1M,即每次以1M为预定单位的数据进行填充 。当然预定单位并不限于1M,可以根据移动终端的运算能力等因素进行设置,可以为2M、3M、10M等。当存储卡被填充满时,判断模块503判断填充至存储卡的数据数量是否与预定数量相同。On the other hand, the data filling module 502 can also continuously fill the data with the data in a predetermined unit of data, wherein the predetermined unit of data can be 1M, that is, each time the data is filled with 1M as a predetermined unit. . Of course, the predetermined unit is not limited to 1M, and may be set according to factors such as the computing power of the mobile terminal, and may be 2M, 3M, 10M, and the like. When the memory card is filled, the determination module 503 determines whether the amount of data filled to the memory card is the same as the predetermined number.
获取模块506用于获取存储卡的实际读写速度,其中,获取模块506获取存储卡的实际读写速度的方式可以为通过数据填充模块502向存储卡内填充一较大单位数据,进而在填充数据的过程中获取存储卡的实际读写速度。The obtaining module 506 is configured to obtain the actual read/write speed of the memory card. The manner in which the obtaining module 506 obtains the actual read/write speed of the memory card may be that the data filling module 502 fills a large unit of data into the memory card, and then fills the data. The actual read and write speed of the memory card is obtained during the data process.
查询模块507用于通过网络查询存储卡识别信息对应的标定读写速度信息,具体而言,查询模块507可以通过网络在该存储卡识别信息对应的制造商的官方网站上查询该存储卡对应的标定读写速度。The querying module 507 is configured to query the calibration read/write speed information corresponding to the memory card identification information through the network. Specifically, the query module 507 can query the corresponding website of the manufacturer on the official website of the manufacturer corresponding to the memory card identification information through the network. Calibrate the read and write speed.
对比模块508用于将查询模块507查询到的标定读写速度与获取模块506获取的实际读写速度进行对比,从而得到对比结果,通过对比结果可以清楚地得知该存储卡的实际读写速度是否满足要求。The comparison module 508 is configured to compare the calibration read/write speed queried by the query module 507 with the actual read/write speed obtained by the acquisition module 506, thereby obtaining a comparison result, and the actual read/write speed of the memory card can be clearly known through the comparison result. Whether the requirements are met.
通知模块504还用于通知用户鉴别的存储卡实际存储容量和实际读写速度,同时将存储卡是否满足要求以及检测结果通知用户。通知模块504的通知方式可以为通过提示信息显示在显示屏上,或者通过语音、振动等进行提示。The notification module 504 is further configured to notify the user of the actual storage capacity of the memory card and the actual read/write speed, and notify the user whether the memory card meets the requirements and the detection result. The notification mode of the notification module 504 may be displayed on the display screen by the prompt information, or prompted by voice, vibration, or the like.
数据清除模块509则用于清除在容量和读写速度检测过程中填充入存储卡的数据,以保证鉴别后的存储卡内部为空。数据记录模块510用于将存储卡的识别信息记录在移动终端内,其中,该识别信息包括存储卡的名称以及与之对应的鉴别后的实际存储容量和实际读写速度等信息。The data clearing module 509 is configured to clear data filled in the memory card during the capacity and read/write speed detection process to ensure that the internal memory card after the authentication is empty. The data recording module 510 is configured to record the identification information of the memory card in the mobile terminal, wherein the identification information includes information such as a name of the memory card and an actual storage capacity and an actual read/write speed after the authentication.
本实施方式中的移动终端,通过数据填充模块分别以以预定单位数据和预定比例数据对存储卡进行填充,可快速、准确检验出存储卡容量;在鉴别存储容量的过程之前将识别到的存储卡识别信息与移动终端内部存储的信息进行匹配,可以防止对同一存储卡的重复鉴别;同时还可以鉴别存储卡读写速度信息。In the mobile terminal in this embodiment, the memory card is filled with the predetermined unit data and the predetermined ratio data by the data filling module, so that the memory card capacity can be quickly and accurately checked; the recognized storage will be recognized before the process of authenticating the storage capacity. The card identification information is matched with the information stored in the mobile terminal, which can prevent duplicate identification of the same memory card; and can also identify the memory card read/write speed information.
请参阅图6,是本发明终端设备的一种实施方式的结构示意图。该实施方式中的终端设备可以是手机或者便携式计算机等。该终端设备600包括处理器601、接收器602、发送器603、只读存储器604、随机存取存储器605以及总线606。Please refer to FIG. 6, which is a schematic structural diagram of an embodiment of a terminal device according to the present invention. The terminal device in this embodiment may be a mobile phone or a portable computer or the like. The terminal device 600 includes a processor 601, a receiver 602, a transmitter 603, a read only memory 604, a random access memory 605, and a bus 606.
该接收器602用于接收数据。The receiver 602 is configured to receive data.
该处理器601控制终端设备修复装置的操作,该处理器601还可以成为CPU(Central Processing Unit,中央处理单元)。该处理器601可能是一种集成电路芯片,具有信号的处理能力。处理器601还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 601 controls the operation of the terminal device repairing device, and the processor 601 can also become a CPU (Central Processing Unit, central processing unit). The processor 601 may be an integrated circuit chip with signal processing capabilities. The processor 601 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. . The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该发送器603用于发送数据。The transmitter 603 is for transmitting data.
存储器可以包括只读存储器604和随机存取存储器605,并向处理器601提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory can include read only memory 604 and random access memory 605 and provides instructions and data to processor 601. A portion of the memory may also include non-volatile random access memory (NVRAM).
终端设备修复装置的各个组件通过总线606耦合在一起,其中,总线606除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线606。The various components of the terminal device repair device are coupled together via a bus 606, wherein the bus 606 can include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 606 in the figure.
存储器存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器601通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 601 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
该处理器601用于检测接入移动终端存储卡的识别信息以获得存储卡的标定存储容量。其中,需要说明的是,本发明实施方式提供的终端设备是以存储卡可以被终端设备正确加载为前提的,如不能加载成功,即终端设备无法识别到存储卡,则不涉及本发明实施例的终端设备。The processor 601 is configured to detect identification information of a memory card of the mobile terminal to obtain a calibration storage capacity of the memory card. It should be noted that the terminal device provided by the embodiment of the present invention is premised on the fact that the memory card can be correctly loaded by the terminal device. If the device cannot be successfully loaded, that is, the terminal device cannot identify the memory card, the embodiment of the present invention is not involved. Terminal equipment.
处理器601需要对识别到的存储卡进行识别信息(Card Identification)检测,在识别信息检测的过程中可以通过该存储卡的二进制身份识别码识别出该存储卡的制造商、型号、标定存储容量等信息,其中,该存储卡的二进制身份识别码为每个存储卡独有的,以区别与其他存储卡不同的二进制编码。处理器601还用于向存储卡中填充预定数量的数据,而向存储卡中填充预定数量的数据的方式可以分别采用两种方式,其一为以预定比例数据对存储卡进行填充,其二为以预定单位数量的数据对存储卡进行填充。The processor 601 needs to perform identification information on the identified memory card (Card Identification, in the process of detecting the identification information, the manufacturer, model, calibration storage capacity and the like of the memory card can be identified by the binary identification code of the memory card, wherein the binary identification code of the memory card is Unique to the memory card to distinguish the binary code from other memory cards. The processor 601 is further configured to fill a predetermined amount of data into the memory card, and the manner of filling the memory card with a predetermined amount of data may be respectively performed in two manners, one of which is to fill the memory card with a predetermined ratio of data, and the second The memory card is filled with a predetermined number of units of data.
处理器601还用于将获得的存储卡的识别信息与移动终端内已存储的存储卡识别信息进行匹配。获得的存储卡的识别信息后,处理器601将该识别信息与移动终端内存储的存储卡识别信息进行匹配,而终端设备内存储的存储卡识别信息一般为终端设备在检测存储卡过程中获得并保存的数据。在判断匹配结果过程中,识别到存储卡被二次检测时,即:该存储卡的识别信息在终端设备内有记录存在,则将匹配的存储卡识别信息通知用户。此时,处理器601会提醒用户,该存储卡的信息已经存在于终端设备的历史检索结果内。同时将针对该存储卡识别信息的历史检索记录信息呈现给用户,以提醒用户是否再次进行检测,当用户选择不再重新检测时,则不再进行提示,用户可以正常使用手机,同时停止存储卡的鉴别过程。The processor 601 is further configured to match the obtained identification information of the memory card with the stored memory card identification information in the mobile terminal. After the identification information of the obtained memory card is obtained, the processor 601 matches the identification information with the memory card identification information stored in the mobile terminal, and the memory card identification information stored in the terminal device is generally obtained by the terminal device during the process of detecting the memory card. And save the data. In the process of judging the matching result, when it is recognized that the memory card is detected twice, that is, if the identification information of the memory card exists in the terminal device, the matching memory card identification information is notified to the user. At this time, the processor 601 will remind the user that the information of the memory card already exists in the historical search result of the terminal device. At the same time, the historical search record information for the memory card identification information is presented to the user to remind the user whether to perform the detection again. When the user chooses not to re-detect, the user no longer prompts, the user can use the mobile phone normally, and stop the memory card at the same time. Identification process.
处理器601一方面用于向存储卡中填充存储卡标定存储容量预定比例的数据。其中,处理器601会根据检测到的存储卡识别信息对应的标定存储容量对存储卡进行填充数据,譬如,检测到的存储卡识别信息对应的标定存储容量为8GB,则首先向该存储卡中一次填充该标定存储容量预定比例的数据,可以为该标定存储容量8GB的50%,即一次填充4GB的数据。在判断存储卡是否有存储空间剩余时,如果判断有存储空间剩余,则继续填充存储卡剩余容量预定比例的数据,如果判断没有存储空间剩余,则继续判断填充至存储卡的数据数量是否与预定数量相同。其中,预定数量可以为存储卡标定存储容量的95%,当然,用户可以自行设定不同存储卡标定存储容量百分比的判断标准,具体可以为存储卡标定存储容量的90%、99%或者80%等。此处亦不做具体限定。The processor 601 is used on the one hand to fill the memory card with the memory card to calibrate the predetermined amount of data of the storage capacity. The processor 601 fills the memory card with the calibration storage capacity corresponding to the detected memory card identification information. For example, if the detected storage card identification information corresponds to a calibration storage capacity of 8 GB, the memory card is firstly used in the memory card. Filling the data of the predetermined proportion of the calibration storage capacity at a time can be 50% of the storage capacity of the calibration, that is, 4 GB of data is filled at a time. When it is judged whether there is any storage space remaining on the memory card, if it is determined that there is remaining storage space, the data of the remaining proportion of the remaining capacity of the memory card is continuously filled, and if it is determined that there is no remaining space, it is determined whether the amount of data filled to the memory card is predetermined or not. The same amount. The predetermined quantity may be 95% of the storage capacity of the memory card. Of course, the user may set the judgment standard of the percentage of the storage capacity of the different memory cards, which may be 90%, 99% or 80% of the storage capacity of the memory card. Wait. There is no specific limit here.
另一方面,处理器601还可以以预定单位的数据持续地向存储卡填充数据,其中,该预定单位的数据可以为1M,即每次以1M为预定单位的数据进行填充 。并判断填充至存储卡的数据数量是否与预定数量相同。On the other hand, the processor 601 can continuously fill the memory card with data in a predetermined unit, wherein the predetermined unit of data can be 1M, that is, each time the data is filled with a predetermined unit of 1M. . And determine whether the amount of data filled to the memory card is the same as the predetermined number.
处理器601在判断预定数量与存储卡的标定存储容量之间是否满足预定条件可以为:判断填充入存储卡预定数量的数据是否达到了该存储卡标定存储容量的一定百分比的数量。在判断满足预定条件时,譬如,当判断填充入存储卡预定数量的数据达到了存储卡标定存储容量的95%,可以确定该存储卡的实际存储容量正确。The processor 601 determines whether the predetermined condition is met between the predetermined number and the calibration storage capacity of the memory card, and may determine whether the predetermined amount of data filled in the memory card reaches a certain percentage of the calibration storage capacity of the memory card. When it is judged that the predetermined condition is satisfied, for example, when it is judged that the predetermined amount of data filled in the memory card reaches 95% of the memory storage capacity of the memory card, it can be determined that the actual storage capacity of the memory card is correct.
可选的,处理器601还用于获取存储卡的实际读写速度,其中,方式可以为通过向存储卡内填充一较大单位数据,进而在填充数据的过程中获取存储卡的实际读写速度。处理器601用于通过网络查询存储卡识别信息对应的标定读写速度信息,具体而言,可以通过网络在该存储卡识别信息对应的制造商的官方网站上查询该存储卡对应的标定读写速度。处理器601将查询到的标定读写速度与获取的实际读写速度进行对比,从而得到对比结果,通过对比结果可以清楚地得知该存储卡的实际读写速度是否满足要求。Optionally, the processor 601 is further configured to obtain an actual read/write speed of the memory card, where the method may be: acquiring a large unit data into the memory card, thereby acquiring the actual read and write of the memory card during the process of filling the data. speed. The processor 601 is configured to query the calibration read/write speed information corresponding to the memory card identification information through the network. Specifically, the calibration and read/write corresponding to the memory card can be queried on the official website of the manufacturer corresponding to the memory card identification information through the network. speed. The processor 601 compares the calibrated calibration read/write speed with the obtained actual read/write speed, thereby obtaining a comparison result, and the comparison result can clearly know whether the actual read/write speed of the memory card satisfies the requirement.
可选的,该移动设备600还包括显示器(图中未示),处理器601还用于通知用户鉴别的存储卡实际存储容量和实际读写速度,同时将存储卡是否满足要求以及检测结果通知用户。通知方式可以为通过提示信息显示在显示器上,或者通过语音、振动等进行提示。Optionally, the mobile device 600 further includes a display (not shown). The processor 601 is further configured to notify the user of the actual storage capacity of the memory card and the actual read/write speed, and simultaneously determine whether the memory card meets the requirements and the detection result notification. user. The notification method may be displayed on the display by the prompt information, or prompted by voice, vibration, or the like.
可选的,处理器601进一步用于清除在容量和读写速度检测过程中填充入存储卡的数据,以保证鉴别后的存储卡内部为空。处理器601将存储卡的识别信息记录在终端设备的只读存储器604中,其中,该识别信息包括存储卡的名称以及与之对应的鉴别后的实际存储容量和实际读写速度等信息。Optionally, the processor 601 is further configured to clear data that is filled into the memory card during the capacity and read/write speed detection process, so as to ensure that the internal memory card after the authentication is empty. The processor 601 records the identification information of the memory card in the read-only memory 604 of the terminal device, wherein the identification information includes information such as the name of the memory card and the actual storage capacity and the actual read/write speed corresponding to the authentication.
显示器还用于显示检测过程中的提示信息以及检测结果信息。The display is also used to display prompt information and detection result information during the detection process.
本实施方式中的终端设备,通过处理器对存储卡进行识别信息检测而获得存储卡的标定存储容量,然后向存储卡中填充预定数量的数据,最后判断填充入存储卡的预定数量数据与存储卡的标定存储容量之间满足预定条件来确定存储卡的实际存储容量,可以方便、快捷、准确的利用终端设备对存储卡进行鉴别。The terminal device in this embodiment obtains the calibration storage capacity of the memory card by detecting the identification information of the memory card by the processor, and then fills the memory card with a predetermined amount of data, and finally determines a predetermined amount of data and storage filled in the memory card. The predetermined storage condition between the card's calibration storage capacity is determined to determine the actual storage capacity of the memory card, and the memory card can be authenticated conveniently, quickly, and accurately using the terminal device.
在本发明所提供的几个实施方式中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device implementations described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
另外,在本发明各个实施方式中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,管理服务器,或者网络设备等)或处理器(processor)执行本发明各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. The instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a management server, or a network device, etc.) or a processor to perform all or part of the steps of the methods of the various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.
以上所述仅为本发明的实施方式,并非因此限制本发明的保护范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only the embodiments of the present invention, and is not intended to limit the scope of the present invention. The equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.

Claims (19)

  1. 一种移动终端的存储卡鉴别方法,其中,所述方法包括:A memory card authentication method for a mobile terminal, wherein the method includes:
    移动终端检测与其连接的存储卡的识别信息以获得所述存储卡的标定存储容量;The mobile terminal detects identification information of the memory card connected thereto to obtain a calibration storage capacity of the memory card;
    移动终端向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件;以及The mobile terminal fills the memory card with a predetermined amount of data, and determines whether a predetermined condition is satisfied between the predetermined number and a calibration storage capacity of the memory card;
    当满足所述预定条件时,则确定所述存储卡的标定存储容量正确。When the predetermined condition is satisfied, it is determined that the calibration storage capacity of the memory card is correct.
  2. 根据权利要求1所述的存储卡鉴别方法,其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量;The memory card authentication method according to claim 1, wherein said predetermined condition is that a predetermined amount of data filled in said memory card reaches a certain percentage of a calibration storage capacity of said memory card;
    所述向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件的步骤具体为:The step of filling the memory card with a predetermined amount of data and determining whether the predetermined number and the calibration storage capacity of the memory card meet a predetermined condition is specifically:
    向所述存储卡中填充所述存储卡标定存储容量预定比例的数据,并判断所述存储卡的存储空间是否有剩余容量;Filling the memory card with the memory card to calibrate data of a predetermined proportion of the storage capacity, and determining whether the storage space of the memory card has a remaining capacity;
    如果确定存储空间有剩余容量,则继续填充所述存储卡剩余容量预定比例的数据;如果确定存储空间没有剩余容量,则判断填充至所述存储卡的数据数量是否与所述预定数量相同。If it is determined that the storage space has a remaining capacity, the data of the remaining ratio of the remaining capacity of the memory card is continuously filled; if it is determined that the storage space has no remaining capacity, it is determined whether the amount of data filled to the memory card is the same as the predetermined number.
  3. 根据权利要求1所述的存储卡鉴别方法,其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量;The memory card authentication method according to claim 1, wherein said predetermined condition is that a predetermined amount of data filled in said memory card reaches a certain percentage of a calibration storage capacity of said memory card;
    所述向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件的步骤具体为:The step of filling the memory card with a predetermined amount of data and determining whether the predetermined number and the calibration storage capacity of the memory card meet a predetermined condition is specifically:
    向所述存储卡中持续填充数据至填充满所述存储卡的存储空间;Continuously filling data into the memory card to fill a storage space filled with the memory card;
    判断填充至所述存储卡的数据数量是否与所述预定数量相同。It is judged whether the amount of data filled to the memory card is the same as the predetermined number.
  4. 根据权利要求2或3所述的存储卡鉴别方法,其中,在确定所述存储卡的标定存储容量正确的步骤之后,所述方法还包括:The memory card authentication method according to claim 2 or 3, wherein after the step of determining that the calibration storage capacity of the memory card is correct, the method further comprises:
    获取所述存储卡的实际读写速度;Obtaining an actual read/write speed of the memory card;
    将所述实际读写速度信息通知用户或者通过网络查询所述存储卡识别信息对应的标定读写速度信息,以确定所述存储卡读写速度的检测对比结果;Notifying the user of the actual read/write speed information or querying the calibration read/write speed information corresponding to the memory card identification information through a network to determine a detection comparison result of the read/write speed of the memory card;
    将所述存储卡的识别信息记录在所述移动终端内,其中,所述识别信息包括所述存储卡的名称、鉴别后的实际存储容量和/或所述实际读写速度信息。The identification information of the memory card is recorded in the mobile terminal, wherein the identification information includes a name of the memory card, an actual storage capacity after the authentication, and/or the actual read/write speed information.
  5. 根据权利要求1至3任一项所述的存储卡鉴别方法,其中,当不满足所述预定条件时,所述存储卡鉴别方法在判断不满足所述预定条件的步骤之后还包括:The memory card discriminating method according to any one of claims 1 to 3, wherein, when the predetermined condition is not satisfied, the memory card discriminating method further comprises: after the step of judging that the predetermined condition is not satisfied:
    根据填充至所述存储卡的数据数量确定所述存储卡的实际存储容量,并将所述存储卡的实际存储容量信息通知用户。The actual storage capacity of the memory card is determined according to the amount of data filled to the memory card, and the actual storage capacity information of the memory card is notified to the user.
  6. 根据权利要求5所述的存储卡鉴别方法,其中,所述方法在所述将所述存储卡的实际存储容量信息通知用户的步骤之后和/或所述获取所述存储卡的实际读写速度的步骤之前还包括:The memory card authentication method according to claim 5, wherein said method acquires an actual read/write speed of said memory card after said step of notifying said user of actual storage capacity information of said memory card Before the steps include:
    清除填充入所述存储卡内的数据。Clear the data that is filled into the memory card.
  7. 根据权利要求1所述的存储卡鉴别方法,其中,所述移动终端对与其连接的存储卡进行识别信息检测以获得所述存储卡的标定存储容量的步骤之后,所述方法还包括:The memory card authentication method according to claim 1, wherein after the step of the mobile terminal performing identification information detection on the memory card connected thereto to obtain the calibration storage capacity of the memory card, the method further includes:
    将所述获得的存储卡的识别信息与所述移动终端内已存储的存储卡识别信息进行匹配;Matching the obtained identification information of the memory card with the stored memory card identification information in the mobile terminal;
    如果判断匹配结果为是,则将匹配的所述存储卡识别信息通知用户;如果判断匹配结果为否,则执行向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件的步骤。If it is determined that the matching result is yes, the matched memory card identification information is notified to the user; if it is determined that the matching result is no, performing filling of the predetermined number of data into the memory card, and determining the predetermined quantity and the A step of determining whether a predetermined condition is met between the calibration storage capacities of the memory card.
  8. 一种移动终端,其中,所述移动终端包括:A mobile terminal, wherein the mobile terminal comprises:
    识别信息检测模块,用于检测接入移动终端存储卡的识别信息以获得所述存储卡的标定存储容量;An identification information detecting module, configured to detect identification information of the memory card of the mobile terminal, to obtain a calibration storage capacity of the memory card;
    数据填充模块,用于向所述存储卡中填充预定数量的数据;以及a data filling module, configured to fill the memory card with a predetermined amount of data;
    判断模块,用于判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件,当满足所述预定条件时,则确定所述存储卡的标定存储容量正确。The determining module is configured to determine whether a predetermined condition is met between the predetermined quantity and the calibration storage capacity of the memory card, and when the predetermined condition is met, determining that the calibration storage capacity of the memory card is correct.
  9. 根据权利要求8所述的移动终端,其中,所述数据填充模块向所述存储卡中填充所述存储卡标定存储容量预定比例的数据,所述判断模块判断所述存储卡的存储空间是否有剩余容量,如果判断存储空间有剩余容量,则继续填充所述存储卡剩余容量预定比例的数据;如果判断存储空间没有剩余容量,则继续判断填充至所述存储卡的数据数量是否与所述预定数量相同,其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量。The mobile terminal according to claim 8, wherein the data filling module fills the memory card with data of a predetermined proportion of the storage capacity of the memory card, and the determining module determines whether the storage space of the memory card has Remaining capacity, if it is determined that the storage space has a remaining capacity, continuing to fill data of a predetermined proportion of the remaining capacity of the memory card; if it is determined that the storage space has no remaining capacity, proceeding to determine whether the amount of data filled to the memory card is different from the predetermined The number is the same, wherein the predetermined condition is that a predetermined amount of data filled into the memory card reaches a certain percentage of the memory storage capacity of the memory card.
  10. 根据权利要求8所述的移动终端,其中,所述数据填充模块用于向所述存储卡填充数据至填充满所述存储卡的存储空间,所述判断模块判断填充至所述存储卡的数据数量是否与所述预定数量相同,其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量。The mobile terminal of claim 8, wherein the data filling module is configured to fill the memory card with data to fill a storage space of the memory card, and the determining module determines data padding to the memory card Whether the quantity is the same as the predetermined number, wherein the predetermined condition is that a predetermined amount of data filled in the memory card reaches a certain percentage of the memory storage capacity of the memory card.
  11. 根据权利要求8所述的移动终端,其中,所述移动终端还包括通知模块,所述判断模块根据填充至所述存储卡的数据数量确定所述存储卡的实际存储容量,所述通知模块将所述存储卡的实际存储容量信息通知用户。The mobile terminal of claim 8, wherein the mobile terminal further comprises a notification module, the determining module determining an actual storage capacity of the memory card according to the amount of data filled to the memory card, the notification module The actual storage capacity information of the memory card notifies the user.
  12. 根据权利要求8或9所述的移动终端,其中,所述移动终端还包括获取模块、查询模块以及对比模块,所述获取模块用于获取所述存储卡的实际读写速度,所述查询模块通过网络查询所述存储卡识别信息对应的标定读写速度信息,所述对比模块将所述存储卡识别信息对应的标定读写速度与所述获取模块获取的实际读写速度进行对比,以确定所述存储卡读写速度的检测对比结果;所述通知模块还用于将所述实际读写速度信息通知用户。The mobile terminal according to claim 8 or 9, wherein the mobile terminal further comprises an obtaining module, a query module, and a comparison module, wherein the obtaining module is configured to acquire an actual read/write speed of the memory card, and the query module Querying, by the network, the calibration read/write speed information corresponding to the memory card identification information, the comparison module compares the calibration read/write speed corresponding to the memory card identification information with an actual read/write speed obtained by the acquisition module to determine The detection and comparison result of the read/write speed of the memory card; the notification module is further configured to notify the user of the actual read/write speed information.
  13. 根据权利要求12所述的移动终端,其中,所述移动终端还包括数据清除模块和数据记录模块,所述数据清除模块用于清除填充入所述存储卡内的数据;所述数据记录模块用于将所述存储卡的识别信息记录在所述移动终端内,其中,所述识别信息包括所述存储卡的名称、鉴别后的实际存储容量和/或实际读写速度信息。The mobile terminal according to claim 12, wherein the mobile terminal further comprises a data clearing module and a data recording module, wherein the data clearing module is configured to clear data filled in the memory card; The identification information of the memory card is recorded in the mobile terminal, wherein the identification information includes a name of the memory card, an actual storage capacity after authentication, and/or actual read/write speed information.
  14. 根据权利要求8-11任一项所述的移动终端,其中,所述移动终端还包括匹配模块;所述匹配模块用于将所述获得的存储卡的识别信息与所述移动终端内已存储的存储卡识别信息进行匹配;所述判断模块判断所述匹配的结果,如果判断匹配结果为是,则将匹配的所述存储卡识别信息通知用户;如果判断匹配结果为否,则向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件。The mobile terminal according to any one of claims 8 to 11, wherein the mobile terminal further comprises a matching module; the matching module is configured to store the identification information of the obtained memory card with the mobile terminal The memory card identification information is matched; the determining module determines the result of the matching, and if it is determined that the matching result is yes, the matching memory card identification information is notified to the user; if the matching result is negative, the The memory card is filled with a predetermined amount of data, and it is judged whether a predetermined condition is satisfied between the predetermined number and the calibration storage capacity of the memory card.
  15. 一种终端设备,其中,所述终端设备包括处理器和显示器;所述处理器用于对移动终端接入的存储卡进行识别信息检测以获得所述存储卡的标定存储容量,以及向所述存储卡中填充预定数量的数据,并判断所述预定数量与所述存储卡的标定存储容量之间是否满足预定条件;当满足所述预定条件时,则确定所述存储卡的标定存储容量正确;所述显示器用于显示检测过程中的提示信息以及检测结果信息。A terminal device, wherein the terminal device includes a processor and a display; the processor is configured to perform identification information detection on a memory card accessed by the mobile terminal to obtain a calibration storage capacity of the memory card, and to the storage Filling the card with a predetermined amount of data, and determining whether a predetermined condition is met between the predetermined number and the calibration storage capacity of the memory card; when the predetermined condition is met, determining that the calibration storage capacity of the memory card is correct; The display is used to display prompt information and detection result information during the detection process.
  16. 根据权利要求15所述的终端设备,其中,所述处理器具体用于:向所述存储卡中填充所述存储卡标定存储容量预定比例的数据,判断所述存储卡的存储空间是否有剩余容量,如果判断存储空间有剩余容量,则继续填充所述存储卡剩余容量预定比例的数据;如果判断存储空间没有剩余容量,则继续判断填充至所述存储卡的数据数量是否与所述预定数量相同,其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量。The terminal device according to claim 15, wherein the processor is specifically configured to: fill the memory card with data of a predetermined proportion of a storage capacity of the memory card, and determine whether the storage space of the memory card has a remaining space. Capacity, if it is determined that the storage space has a remaining capacity, continuing to fill data of a predetermined proportion of the remaining capacity of the memory card; if it is determined that the storage space has no remaining capacity, proceeding to determine whether the amount of data filled to the memory card is equal to the predetermined amount The same, wherein the predetermined condition is that a predetermined amount of data filled into the memory card reaches a certain percentage of the memory storage capacity of the memory card.
  17. 根据权利要求15所述的终端设备,其中,所述处理器具体用于:向所述存储卡填充数据至填充满所述存储卡的存储空间,判断填充至所述存储卡的数据数量是否与所述预定数量相同,其中,所述预定条件为填充入所述存储卡预定数量的数据达到了该存储卡标定存储容量的一定百分比的数量。The terminal device according to claim 15, wherein the processor is specifically configured to: fill the memory card with data to fill a storage space filled with the memory card, and determine whether the amount of data filled to the memory card is The predetermined number is the same, wherein the predetermined condition is that a predetermined amount of data filled into the memory card reaches a certain percentage of the memory storage capacity of the memory card.
  18. 根据权利要求16或17所述的终端设备,其中,所述处理器还用于:获取所述存储卡的实际读写速度,通过网络查询所述存储卡识别信息对应的标定读写速度信息,将所述存储卡识别信息对应的标定读写速度与获取的实际读写速度进行对比,以确定所述存储卡读写速度的检测对比结果,将所述实际读写速度信息通知用户。The terminal device according to claim 16 or 17, wherein the processor is further configured to: obtain an actual read/write speed of the memory card, and query, by using a network, calibration calibration speed information corresponding to the memory card identification information, Comparing the calibration read/write speed corresponding to the memory card identification information with the obtained actual read/write speed to determine a detection comparison result of the memory card read/write speed, and notifying the user of the actual read/write speed information.
  19. 根据权利要求18所述的终端设备,其中,所述处理器进一步用于:清除填充入所述存储卡内的数据;将所述存储卡的识别信息记录在所述移动终端内,其中,所述识别信息包括所述存储卡的名称、鉴别后的实际存储容量和/或实际读写速度信息。The terminal device according to claim 18, wherein the processor is further configured to: clear data embedded in the memory card; record identification information of the memory card in the mobile terminal, wherein The identification information includes the name of the memory card, the actual storage capacity after authentication, and/or actual read/write speed information.
PCT/CN2015/086452 2015-08-10 2015-08-10 Memory card authentication method and mobile terminal thereof, and terminal device WO2017024459A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580082092.5A CN107851456B (en) 2015-08-10 2015-08-10 Memory card authentication method, mobile terminal and terminal equipment
PCT/CN2015/086452 WO2017024459A1 (en) 2015-08-10 2015-08-10 Memory card authentication method and mobile terminal thereof, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/086452 WO2017024459A1 (en) 2015-08-10 2015-08-10 Memory card authentication method and mobile terminal thereof, and terminal device

Publications (1)

Publication Number Publication Date
WO2017024459A1 true WO2017024459A1 (en) 2017-02-16

Family

ID=57982875

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/086452 WO2017024459A1 (en) 2015-08-10 2015-08-10 Memory card authentication method and mobile terminal thereof, and terminal device

Country Status (2)

Country Link
CN (1) CN107851456B (en)
WO (1) WO2017024459A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598473B (en) * 2019-09-18 2022-08-16 深圳市网心科技有限公司 Mobile storage medium management method, device and equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060195650A1 (en) * 2005-02-25 2006-08-31 Su Zhiqiang J Method to detect NAND-flash parameters by hardware automatically
CN201796608U (en) * 2010-09-15 2011-04-13 深圳市江波龙电子有限公司 Storage device quality detector
CN103116536A (en) * 2013-02-25 2013-05-22 杭州华澜微科技有限公司 Method for detecting capacity of storage device
CN103366830A (en) * 2012-03-30 2013-10-23 点序科技股份有限公司 Testing device of memory card
CN103500586A (en) * 2013-09-26 2014-01-08 北京奇虎科技有限公司 Method and device for detecting capacity of storage device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2345163A (en) * 1998-12-24 2000-06-28 Inventec Corp Detecting capacity of cache memories
CN1797610A (en) * 2004-12-30 2006-07-05 英保达股份有限公司 System for displaying residual capacity connected to external data storage device
CN101477837B (en) * 2009-01-21 2011-10-19 炬力集成电路设计有限公司 Detection method and apparatus for memory capacity
CN102306503B (en) * 2010-07-30 2014-03-12 深圳市江波龙电子有限公司 Method and system for detecting false capacity memory
US8572466B2 (en) * 2011-06-06 2013-10-29 Micron Technology, Inc. Apparatuses, systems, devices, and methods of replacing at least partially non-functional portions of memory

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060195650A1 (en) * 2005-02-25 2006-08-31 Su Zhiqiang J Method to detect NAND-flash parameters by hardware automatically
CN201796608U (en) * 2010-09-15 2011-04-13 深圳市江波龙电子有限公司 Storage device quality detector
CN103366830A (en) * 2012-03-30 2013-10-23 点序科技股份有限公司 Testing device of memory card
CN103116536A (en) * 2013-02-25 2013-05-22 杭州华澜微科技有限公司 Method for detecting capacity of storage device
CN103500586A (en) * 2013-09-26 2014-01-08 北京奇虎科技有限公司 Method and device for detecting capacity of storage device

Also Published As

Publication number Publication date
CN107851456B (en) 2021-02-09
CN107851456A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
WO2018174528A1 (en) Electronic device and method for identifying falsification of biometric information
WO2018070691A1 (en) Electronic device and manufacturing method therefor
WO2010068073A2 (en) Method for providing service using device-identification data, device for same, and computer-readable medium on which program for same is recorded
WO2019144738A1 (en) Financial service verification method, apparatus and device, and computer storage medium
WO2015126135A1 (en) Method and apparatus for processing biometric information in electronic device
WO2014189265A1 (en) Method and apparatus for using electronic device
WO2020085636A1 (en) Electronic device for displaying list of executable applications on split screen and operating method thereof
WO2017122980A1 (en) Electronic device and method for authenticating identification information thereof
WO2020231177A1 (en) Electronic device and method for receiving push message stored in blockchain
WO2020213933A1 (en) Method for duplicating near field communication card and electronic device therefor
WO2019164183A1 (en) Electronic device for acquiring biometric information by using electrode selected from electrodes of biometric sensor, and method for controlling same
EP3673467A1 (en) Electronic device and method of controlling electronic device
WO2019164079A1 (en) Method for performing biometric authentication according to display of object related to biometric authentication and electronic device therefor
WO2021010732A1 (en) Electronic device for outputting audio through usb port and method thereof
WO2019041356A1 (en) Method, apparatus, and computer readable storage medium for handling power loss of terminal
WO2018066850A1 (en) Electronic device for preventing overvoltage
WO2017024459A1 (en) Memory card authentication method and mobile terminal thereof, and terminal device
WO2019194579A1 (en) Display device comprising wiring for detecting cracks formed on area adjacent to opening formed on display, and electronic device comprising same
WO2019039706A1 (en) Electronic device and data management method thereof
WO2021040395A1 (en) Electronic device for controlling access to device resource and operation method thereof
WO2020149555A1 (en) Electronic device for selecting key to be used for encryption on basis of amount of information of data to be encrypted, and operation method of electronic device
WO2021060722A1 (en) Electronic device and method for controlling reset of control ic
WO2018014581A1 (en) Value transfer record verification method, device, server and storage medium
WO2021049681A1 (en) Electronic device for performing authentication on basis of cloud server and control method therefor
WO2019172659A1 (en) Electronic device for performing booting, and operating method therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15900657

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15900657

Country of ref document: EP

Kind code of ref document: A1