Method, device and equipment for detecting SD card of mobile terminal and storage medium

文档序号:570125 发布日期:2021-05-18 浏览:23次 中文

阅读说明:本技术 一种移动终端sd卡检测方法、装置、设备及存储介质 (Method, device and equipment for detecting SD card of mobile terminal and storage medium ) 是由 俞斌 于 2021-01-28 设计创作,主要内容包括:本发明提供了一种移动终端SD卡检测方法、装置、设备及存储介质,所述方法包括以下步骤:中央处理器与多SD卡模块相连接;多SD卡模块输出SD卡状态识别码;中央处理器获取并识别SD卡状态识别码,所述SD卡状态识别码由二进制代码组成。本发明提供的移动终端SD卡检测方法,在移动终端支持多个SD卡时,无需多个中央处理器的引脚来检测;多个SD卡的检测方式均相同且具有较强的可扩展性,甚至可以扩展至移动终端能够支持数十个SD卡;该检测方法提升了检测速度,节省了移动终端的资源,极大的方便了用户使用。(The invention provides a method, a device, equipment and a storage medium for detecting a mobile terminal SD card, wherein the method comprises the following steps: the central processing unit is connected with the multiple SD card modules; the multi-SD card module outputs an SD card state identification code; the central processing unit acquires and identifies the SD card state identification code, and the SD card state identification code is composed of binary codes. According to the method for detecting the SD card of the mobile terminal, when the mobile terminal supports a plurality of SD cards, the detection is carried out without pins of a plurality of central processing units; the detection modes of the multiple SD cards are the same, the expandability is strong, and even the detection modes can be expanded to the condition that a mobile terminal can support dozens of SD cards; the detection method improves the detection speed, saves the resources of the mobile terminal and greatly facilitates the use of users.)

1. A method for detecting a mobile terminal SD card is characterized by comprising the following steps:

the central processing unit is connected with the multiple SD card modules;

the multi-SD card module outputs an SD card state identification code;

the central processing unit acquires and identifies the SD card state identification code, and the SD card state identification code is composed of binary codes.

2. The method for detecting the SD card of the mobile terminal according to claim 1, wherein the connection between the CPU and the multiple SD card modules comprises: and the central processing unit is connected with an OUT pin of the multi-SD card module through a GPIO pin.

3. The method for detecting the SD card of the mobile terminal according to claim 1, wherein the SD card status identification code outputted by the multi-SD card module comprises: a start identification code, one or more SD identification codes, an end identification code; the start identification code, the SD identification code and the end identification code are composed of binary codes and are different from each other.

4. The method for detecting the SD card of the mobile terminal according to claim 3, wherein the step of outputting the SD card status identification code by the multi-SD card module comprises:

defining a unique SD identification code for each SD card on the multi-SD card module;

defining a start identification code and an end identification code;

if an SD card is put in the multi-SD card module, the multi-SD card module outputs an SD card state identification code; or, if a plurality of SD cards are put in the multi-SD-card module, the multi-SD-card module outputs a plurality of SD-card status identification codes.

5. The method as claimed in claim 4, wherein the step of outputting a status identification code of the SD card by the multiple SD card module comprises:

one SD card in the multiple SD card modules is put in;

the multi-SD card module sends an initial identification code through an OUT pin;

the multi-SD card module sends the SD identification code of the SD card through an OUT pin;

the multi-SD card module sends the end identification code through the OUT pin.

6. The SD card detection method of claim 4, wherein the step of outputting a plurality of SD card status identification codes by the multi-SD card module comprises:

a plurality of SD cards in the multi-SD card module are put in;

the multi-SD card module sends an initial identification code through an OUT pin;

the multiple SD card modules sequentially send the SD identification codes of the multiple SD cards according to any sequence through the OUT pins;

the multi-SD card module sends the end identification code through the OUT pin.

7. The method for detecting the SD card of the mobile terminal according to claim 1, wherein the step of the central processing unit acquiring and recognizing the SD card status identification code comprises:

the GPIO of the central processing unit is configured to be in an input state;

the level acquisition module acquires the level of the GPIO and transmits the level to the conversion module;

the conversion module converts the level into a binary code;

recognizing the binary code and converting the binary code into a corresponding recognition code;

and judging the placing state of the SD card in the multi-SD card module according to the identification code.

8. A mobile terminal SD card detection device is characterized by comprising:

the system comprises a multi-SD card module and a central processing unit, wherein a GPIO pin of the central processing unit is connected with an OUT pin of the multi-SD card module;

wherein, many SD card modules include:

the SD card detection module is used for detecting the putting state of the SD cards on the multiple SD card modules;

the conversion module is used for converting the primary multi-SD card module operation into a corresponding SD card state identification code;

the output module is used for outputting the SD card state identification codes through an OUT pin in sequence;

the central processing unit includes:

a timer for setting a level duration;

a configuration module to configure the GPIO into an input state;

the level acquisition module is used for acquiring the level state of the GPIO;

and the conversion module is used for converting the level state of the GPIO into a corresponding SD card state identification code and judging the placing state of the SD card according to the SD card state identification code.

9. A mobile terminal device comprises a central processing unit and a cache connected with the central processing unit; the cache stores program instructions which, when executed by the central processing unit, implement the steps of the mobile terminal SD card detection method according to any one of claims 1 to 7; the central processing unit is configured to execute the program instructions in the cache, and when the central processing unit executes the program instructions, the steps in the method according to any one of claims 1 to 7 are implemented.

10. A storage medium, characterized in that it stores program instructions which, when operated by a central processing unit, implement the steps of the mobile terminal SD card detection method according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of mobile terminals, in particular to a method, a device, equipment and a storage medium for detecting a Secure Digital (SD) card of a mobile terminal.

Background

At present, the technology of the mobile terminal is rapidly developed, particularly software is updated at a very high speed, and the software needs to be updated frequently in order to meet various new requirements of users and solve the original problems. For example, some minor problems remain in the product of a certain mobile terminal manufacturer, but in order to sell the product on the market early to take up a favorable position, the manufacturer puts the product on the market first with the minor problems. These problems are then solved by publishing the update package. Therefore, the product is guaranteed to be on the market as soon as possible, development time is shortened, and meanwhile, software can be updated to the product purchased by the user in subsequent development to solve the problem. Based on the above, the mobile terminal is convenient for a user to use a larger storage space, and multiple mobile terminals support double SD cards, even three SD cards and four SD cards to work simultaneously. However, since each SD card is a physically independent interface in the mobile terminal, the number of SD card detection pins needs to be determined by the number of SD cards, that is, how many SD cards are supported by the mobile terminal, and how many pins need to be allocated by the central processing unit for detecting the SD cards in principle.

Therefore, there are drawbacks to the prior art, and improvements and developments are needed.

Disclosure of Invention

Aiming at the problems in the prior art, the invention provides a method, a device, equipment and a storage medium for detecting a mobile terminal SD card, aiming at detecting without pins of a plurality of central processing units when the mobile terminal supports a plurality of SD cards; the detection modes of the multiple SD cards are the same, the expandability is strong, and even the detection modes can be expanded to the condition that a mobile terminal can support dozens of SD cards; the detection method improves the detection speed, saves the resources of the mobile terminal and greatly facilitates the use of users.

The technical scheme of the invention is as follows:

in a first aspect, the present invention provides a method for detecting a mobile terminal SD card, including the steps of:

the central processing unit is connected with the multiple SD card modules;

the multi-SD card module outputs an SD card state identification code;

the central processing unit acquires and identifies the SD card state identification code, and the SD card state identification code is composed of binary codes.

The mobile terminal SD card detection method comprises the following steps that the central processing unit is connected with the multiple SD card modules in a mode that: and the central processing unit is connected with an OUT pin of the multi-SD card module through a GPIO pin.

The method for detecting the SD card of the mobile terminal comprises the following steps that the SD card state identification code output by the multi-SD card module comprises: a start identification code, one or more SD identification codes, an end identification code; the start identification code, the SD identification code and the end identification code are composed of binary codes and are different from each other.

The method for detecting the SD card of the mobile terminal comprises the following steps that the multi-SD card module outputs the SD card state identification code:

defining a unique SD identification code for each SD card on the multi-SD card module;

defining a start identification code and an end identification code;

if an SD card is put in the multi-SD card module, the multi-SD card module outputs an SD card state identification code; or, if a plurality of SD cards are put in the multi-SD-card module, the multi-SD-card module outputs a plurality of SD-card status identification codes.

The method for detecting the SD card of the mobile terminal comprises the following steps that:

one SD card in the multiple SD card modules is put in;

the multi-SD card module sends an initial identification code through an OUT pin;

the multi-SD card module sends the SD identification code of the SD card through an OUT pin;

the multi-SD card module sends the end identification code through the OUT pin.

The method for detecting the SD card of the mobile terminal comprises the following steps that the multi-SD card module outputs a plurality of SD card state identification codes:

a plurality of SD cards in the multi-SD card module are put in;

the multi-SD card module sends an initial identification code through an OUT pin;

the multiple SD card modules sequentially send the SD identification codes of the multiple SD cards according to any sequence through the OUT pins;

the multi-SD card module sends the end identification code through the OUT pin.

The method for detecting the SD card of the mobile terminal comprises the following steps that the central processing unit acquires and identifies the state identification code of the SD card:

the GPIO of the central processing unit is configured to be in an input state;

the level acquisition module acquires the level of the GPIO and transmits the level to the conversion module;

the conversion module converts the level into a binary code;

recognizing the binary code and converting the binary code into a corresponding recognition code;

and judging the placing state of the SD card in the multi-SD card module according to the identification code.

In a second aspect, an embodiment of the present invention further provides a device for detecting an SD card of a mobile terminal, including:

the system comprises a multi-SD card module and a central processing unit, wherein a GPIO pin of the central processing unit is connected with an OUT pin of the multi-SD card module;

wherein, many SD card modules include:

the SD card detection module is used for detecting the putting state of the SD cards on the multiple SD card modules;

the conversion module is used for converting the primary multi-SD card module operation into a corresponding SD card state identification code;

the output module is used for outputting the SD card state identification codes through an OUT pin in sequence;

the central processing unit includes:

a timer for setting a level duration;

a configuration module to configure the GPIO into an input state;

the level acquisition module is used for acquiring the level state of the GPIO;

and the conversion module is used for converting the level state of the GPIO into a corresponding SD card state identification code and judging the placing state of the SD card according to the SD card state identification code.

In a third aspect, an embodiment of the present invention further provides a mobile terminal device, including a central processing unit and a cache connected to the central processing unit; the cache stores program instructions, and the program instructions are executed by the central processing unit to realize the steps of the mobile terminal SD card detection method according to any one of the above items; the central processing unit is configured to execute the program instructions in the cache, and when the central processing unit executes the program instructions, the steps of the method according to any one of the above embodiments are implemented.

In a fourth aspect, an embodiment of the present invention further provides a storage medium, where the storage medium stores program instructions, and the program instructions, when operated by a central processing unit, implement the steps of the mobile terminal SD card detection method according to any one of the foregoing items.

Has the advantages that: the invention provides a method for detecting a mobile terminal SD card, which comprises the following steps: the central processing unit is connected with the multiple SD card modules; the multi-SD card module outputs an SD card state identification code; the central processing unit acquires and identifies the SD card state identification code. The SD card state identification code consists of binary codes. According to the method for detecting the SD card of the mobile terminal, when the mobile terminal supports a plurality of SD cards, the detection is carried out without pins of a plurality of central processing units; the detection modes of the multiple SD cards are the same, the expandability is strong, and even the detection modes can be expanded to the condition that a mobile terminal can support dozens of SD cards; the detection method improves the detection speed, saves the resources of the mobile terminal and greatly facilitates the use of users.

Drawings

In order to more clearly illustrate the technical solution in the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.

Fig. 1 is a flowchart of a specific implementation of a method for detecting an SD card of a mobile terminal according to an embodiment of the present invention.

Fig. 2 is a flowchart of a specific implementation of acquiring and identifying an SD card status identification code by a central processing unit according to an embodiment of the present invention.

Fig. 3 is a schematic diagram illustrating a connection manner of functional modules of a mobile terminal SD card detection apparatus according to an embodiment of the present invention.

Fig. 4 is a schematic diagram of a multi-SD card module of a mobile terminal SD card detection apparatus according to an embodiment of the present invention.

Fig. 5 is a schematic diagram of a cpu module of a mobile terminal SD card detection apparatus according to an embodiment of the present invention.

Detailed Description

In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

At present, a mobile terminal is convenient for a user to use a larger storage space, and a plurality of mobile terminals support double SD cards, even three SD cards and four SD cards work simultaneously. However, since each SD card is a physically independent interface in the mobile terminal, the number of SD card detection pins needs to be determined by the number of SD cards, that is, how many SD cards are supported by the mobile terminal, and how many pins need to be allocated by the central processing unit for detecting the SD cards in principle.

In order to solve the above problems in the prior art, the invention provides a method for detecting a mobile terminal SD card, which does not need pins of a plurality of central processing units for detection when the mobile terminal supports a plurality of SD cards; the detection modes of the multiple SD cards are the same, the expandability is strong, and even the detection modes can be expanded to the condition that a mobile terminal can support dozens of SD cards; the detection method improves the detection speed, saves the resources of the mobile terminal and greatly facilitates the use of users. When in specific implementation, the method comprises the following steps: the central processing unit is connected with the multiple SD card modules; the multi-SD card module outputs an SD card state identification code; the central processing unit acquires and identifies the SD card state identification code. The SD card state identification code consists of binary codes.

Specifically, as shown in fig. 1, the method for detecting an SD card of a mobile terminal according to a preferred embodiment of the present invention includes the following steps:

and S100, connecting the central processing unit with the multiple SD card modules.

The mode that central processing unit and many SD card modules are connected includes: and the central processing unit is connected with an OUT pin of the multi-SD card module through a GPIO pin.

The multi-SD card module utilizes an OUT pin, and has the main function of output, wherein the OUT pin outputs a high level to represent a character 1, and the OUT pin outputs a low level to represent a character 0; the central processing unit adopts a General-purpose input/output (GPIO) pin, and can be used for input and output. For input, the pin potential can be determined by reading a certain register; for the output, a register may be written to make the pin output a high or low potential.

And step S200, the multi-SD-card module outputs the SD card state identification code.

The SD card status identification code comprises: a start identification code, one or more SD identification codes, an end identification code. The SD card status identification code is a binary number, and is composed of a number of characters 0 or 1. Firstly, defining a unique SD identification code for each SD card on a multi-SD card module, and requiring that the number of SD identification code characters corresponding to each SD card is equal; secondly, besides the SD identification codes, a starting identification code and an ending identification code are defined, wherein the starting identification code and the ending identification code are different from the SD identification codes of all SD cards, and the number of characters is the same as that of the SD identification codes of all SD cards; to illustrate this section more pictorially, for example: assuming that the mobile terminal multi-SD-card module has three SD cards in total, the SD identification code of SD card 1 is 1010, the SD identification code of SD card 2 is 0001, the SD identification code of SD card 3 is 1011, and the start identification code is 1000 and the end identification code is 1101.

If an SD card is put in the multi-SD card module, the multi-SD card module outputs an SD card state identification code; or, if a plurality of SD cards are put in the multi-SD-card module, the multi-SD-card module outputs a plurality of SD-card status identification codes.

In some specific embodiments, the step of outputting a SD card status identification code by the multi-SD card module includes:

one SD card in the multiple SD card modules is put in;

the multi-SD card module sends an initial identification code through an OUT pin;

the multi-SD card module sends the SD identification code of the SD card through an OUT pin;

the multi-SD card module sends the end identification code through the OUT pin.

To illustrate this section more pictorially, for example: assuming that the mobile terminal multi-SD-card module has three SD cards in total, the SD identification code of SD card 1 is 1010, the SD identification code of SD card 2 is 0001, the SD identification code of SD card 3 is 1011, and the start identification code is 1000 and the end identification code is 1101. If the SD card 2 is detected to be put in, the multi-SD card module sends the following data through an OUT pin: 1000,0001,1101.

In some specific embodiments, the step of outputting a plurality of SD card status identification codes by the multi-SD card module includes:

a plurality of SD cards in the multi-SD card module are put in;

the multi-SD card module sends an initial identification code through an OUT pin;

the multiple SD card modules sequentially send the SD identification codes of the multiple SD cards according to any sequence through the OUT pins;

the multi-SD card module sends the end identification code through the OUT pin.

To illustrate this section more pictorially, for example: assuming that the mobile terminal multi-SD-card module has three SD cards in total, the SD identification code of SD card 1 is 1010, the SD identification code of SD card 2 is 0001, the SD identification code of SD card 3 is 1011, and the start identification code is 1000 and the end identification code is 1101. If the SD card 1 and the SD card 2 are detected to be put in, the multi-SD card module sends the following data through an OUT pin: 1000,1010,0001,1101, respectively; or 1000,0001,1010,1011.

And step S300, the central processing unit acquires and identifies the SD card state identification code, wherein the SD card state identification code consists of binary codes.

In some embodiments, the step of acquiring and recognizing the SD card status identification code by the central processor includes the following steps, as shown in fig. 2:

s301, configuring the GPIO of the central processing unit into an input state;

when the mobile terminal is powered on, the GPIO is configured to be in an input state and used for inputting level values (high level or low level) which are sequentially output through the OUT pin.

S302, a level acquisition module acquires the level of the GPIO and transmits the level to a conversion module;

and the level value (high level or low level) output by the OUT pin is input to the GPIO of the central processing unit in sequence. And at regular intervals, the trigger level acquisition module acquires the level value (high level or low level) of the GPIO and transmits the level value to the conversion module.

Preferably, the level acquisition module is triggered every 1 millisecond.

S303, converting the level into a binary code by the conversion module;

if the GPIO is high level, the character transmitted in is 1; if the GPIO is low, then the incoming character is passed to 0.

S304, identifying the binary code and converting the binary code into a corresponding identification code;

assuming that the mobile terminal multi-SD-card module has three SD cards in total, the SD identification code of SD card 1 is 1010, the SD identification code of SD card 2 is 0001, the SD identification code of SD card 3 is 1011, and the start identification code is 1000 and the end identification code is 1101. Continuously acquiring four characters, and if the four continuous characters form 1000, determining the characters as an initial identification code; if the four continuous characters constitute 1101, the end identification code is obtained; if the four continuous characters form 1010, the SD card is the SD identification code of the SD card 1; if the continuous four characters form 0001, the SD identification code of the SD card 2 is obtained; if these continuous four characters constitute 1011, it is the SD identification code of SD card 3.

S305, judging the placing state of the SD card in the multi-SD card module according to the identification code.

After the central processing unit detects that the starting identification code is input on the GPIO pin, the identification code after the starting identification code is obtained, if the identification code is the SD identification code, which SD card on the multi-SD card module is put in is known according to the SD identification code, and if the identification code is the ending identification code, one operation on the multi-SD card module is ended.

To illustrate this section more pictorially, for example: assuming that the mobile terminal multi-SD-card module has three SD cards in total, the SD identification code of SD card 1 is 1010, the SD identification code of SD card 2 is 0001, the SD identification code of SD card 3 is 1011, and the start identification code is 1000 and the end identification code is 1101. If the identification code input on the GPIO pin is detected to be: 1000,1010,0001,1101, then following the start identification code 1000 are the SD identification code 1010 of SD card 1, the SD identification code 0001 of SD card 2, and the finish identification code 1101, indicating that SD card 1, SD card 2 are being placed on the multi-SD card module.

It should be understood that, the size of the serial number of each step in this embodiment does not mean the execution sequence of the step, and the execution sequence of each step should be determined by its function and inherent logic, and should not be limited uniquely to the implementation process of the embodiment of the present application.

The present invention also provides a mobile terminal SD card detection device, as shown in fig. 3, including: the device comprises a multi-SD card module 100 and a central processing unit 200, wherein a GPIO pin of the central processing unit is connected with an OUT pin of the multi-SD card module.

Wherein, the multi SD card module 100 includes: an SD card detection module 110, a conversion module 120, and an output module 130, as shown in fig. 4;

an SD card detection module 110 for detecting which SD card or cards on the multi-SD card module is/are put in;

a conversion module 120, configured to convert one-time multi-SD-card module operation (one or more SD cards put in the multi-SD-card module at one time is called one-time multi-SD-card module operation) into a corresponding string of identification codes, where the string of identification codes is composed of a start identification code, one or more SD identification codes, and an end identification code in sequence; the starting identification code, the SD identification code and the ending identification code consist of a plurality of 0 or 1, one SD identification code corresponds to one SD card, the number of characters of the starting identification code, the SD identification code and the ending identification code is equal, and the starting identification code, the SD identification code and the ending identification code are different;

the output module 130 outputs the string of identification codes obtained by conversion by the conversion module 120 through an OUT pin in sequence, wherein the OUT pin outputs a high level to represent a character 1, and the OUT pin outputs a low level to represent a character 0; the level represented by each character lasts the same time and is a fixed value.

Preferably, each character represents a level that lasts 1 millisecond.

To illustrate this section more pictorially, for example: assuming that the mobile terminal multi-SD-card module has three SD cards in total, the SD identification code of SD card 1 is 1010, the SD identification code of SD card 2 is 0001, the SD identification code of SD card 3 is 1011, and the start identification code is 1000 and the end identification code is 1101. When it is detected that the SD card 2 is inserted, the output module 130 sequentially outputs corresponding waveforms according to high level-low level-high level-low level-high level.

The cpu 200 includes: a timer 210, a configuration module 220, a level obtaining module 230, and a conversion module 240, as shown in fig. 5;

a timer 210 whose timeout and OUT pin represent the level duration of a word 0 or a word 1;

preferably, the timeout time of the timer 210 is 1 millisecond;

a configuration module 220, configured to configure the GPIO to an input state when the mobile terminal is powered on;

a level obtaining module 230, configured to obtain a level state (high level or low level) of the GPIO;

the conversion module 240 is configured to convert the GPIO level state obtained by the level obtaining module 230 into a corresponding identification code (a start identification code, an end identification code, or an SD identification code), so as to further obtain which SD card or SD cards on the multi-SD-card module 100 are placed in.

To illustrate this section more pictorially, for example: assuming that the mobile terminal multi-SD-card module has three SD cards in total, the SD identification code of SD card 1 is 1010, the SD identification code of SD card 2 is 0001, the SD identification code of SD card 3 is 1011, and the start identification code is 1000 and the end identification code is 1101.

According to the multi-SD-card module input detection method of the mobile terminal multi-SD-card module connection mode, the SD card detection specifically comprises the following steps:

step S1, the timer 210 triggers the level obtaining module 230 to obtain the level of GPIO every 1 millisecond, and transmits the level value to the converting module 240, if the GPIO is high level, 1 is transmitted to the converting module, and if the GPIO is low level, 0 is transmitted to the converting module;

step S2, the converting module 240, according to the character 0 or 1, continuously obtains four characters, and then executes step S3;

step S3, if the four continuous characters constitute 1000 (start identification code), execute step S4, otherwise execute step S2;

step S4, acquiring four characters consecutively, and then executing step S5;

step S5, if the continuous four characters constitute 1101 (end identification code), executing step S6, otherwise executing step S7;

step S6, when the operation of the current multi-SD card module is detected (the last time one or more SD cards are put into the multi-SD card module is called a multi-SD card module operation), reporting all the SD cards detected in the temporary variables, emptying the temporary variables, and then executing step S2;

in step S7, the SD card corresponding to the SD identification code composed of the four characters is loaded, and the loaded SD card is recorded in the temporary variable, followed by execution of step S4.

The temporary variable is a storage area in which a plurality of values can be stored, and step S7 is used to store the detected inserted SD card.

The invention also provides mobile terminal equipment which comprises a central processing unit and a cache connected with the central processing unit; the cache stores program instructions, and the program instructions are executed by the central processing unit to realize the steps of the mobile terminal SD card detection method according to any one of the above items; the central processing unit is configured to execute the program instructions in the cache, and when the central processing unit executes the program instructions, the steps of the method according to any one of the above embodiments are implemented.

In some embodiments, the mobile terminal device may be a mobile phone or a tablet computer.

The present invention further provides a storage medium, which may be disposed in the electronic device in each of the above embodiments, where the storage medium stores program instructions, and the program instructions, when operated by the central processing unit, implement the steps of the mobile terminal SD card detection method according to any one of the foregoing embodiments.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.

Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.

In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.

The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in the form of a software product, stored in a readable storage medium, including instructions for causing a mobile terminal (which may be a mobile phone or a tablet computer) to perform all or part of the steps of the method of the embodiments of the present application.

It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In view of the above description of the setting item processing method, device and computer readable storage medium provided by the present application, those skilled in the art will be able to change the concept of the embodiments of the present application in terms of the detailed description and the application scope, and in summary, the content of the present specification should not be construed as limiting the present application.

In summary, the present invention provides a method, an apparatus, a device and a storage medium for detecting a mobile terminal SD card, where the detection method includes: the central processing unit is connected with an OUT pin of the multiple SD card modules through a GPIO pin, the multiple SD card modules output SD card state identification codes of actual multiple SD card states through the OUT pin, the GPIO of the central processing unit is configured to be in an input state, and the SD card state identification codes are obtained through level change on the GPIO pin; if one or more SD cards are simultaneously put in the multi-SD card module, the multi-SD card module sends the state identification code of the put-in SD card to the central processing unit through the OUT pin; the central processing unit is used for obtaining the SD card state identification code sent by the multiple SD card modules by detecting the change of high and low levels on the GPIO pins; after the central processing unit detects that the starting identification code is input on the GPIO pin, the identification code after the starting identification code is obtained, if the identification code is the SD identification code, which SD card on the multi-SD card module is put in is known according to the SD identification code, and if the identification code is the ending identification code, one operation on the multi-SD card module is ended. According to the method for detecting the SD card of the mobile terminal, when the mobile terminal supports a plurality of SD cards, the detection is carried out without pins of a plurality of central processing units; the detection modes of the multiple SD cards are the same, the expandability is strong, and even the detection modes can be expanded to the condition that a mobile terminal can support dozens of SD cards; the detection method improves the detection speed, saves the resources of the mobile terminal and greatly facilitates the use of users.

It should be understood that the above-mentioned embodiments are merely preferred examples of the present invention, and not restrictive, but rather, all the changes, substitutions, alterations and modifications that come within the spirit and scope of the invention as described above may be made by those skilled in the art, and all the changes, substitutions, alterations and modifications that fall within the scope of the appended claims should be construed as being included in the present invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于多重蛋白质网络脉冲动力学过程的疾病基因预测方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!