CN106646021B - A kind of Kato detection method and device - Google Patents
A kind of Kato detection method and device Download PDFInfo
- Publication number
- CN106646021B CN106646021B CN201610910697.5A CN201610910697A CN106646021B CN 106646021 B CN106646021 B CN 106646021B CN 201610910697 A CN201610910697 A CN 201610910697A CN 106646021 B CN106646021 B CN 106646021B
- Authority
- CN
- China
- Prior art keywords
- level information
- mobile terminal
- gpio
- card
- card support
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 46
- 238000000034 method Methods 0.000 claims abstract description 30
- 238000003780 insertion Methods 0.000 claims description 8
- 230000037431 insertion Effects 0.000 claims description 8
- 238000004519 manufacturing process Methods 0.000 abstract description 8
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000004904 shortening Methods 0.000 abstract description 2
- 238000000605 extraction Methods 0.000 abstract 1
- 230000008569 process Effects 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000002950 deficient Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of Kato detection methods, belong to mobile terminal detection field.This method comprises: obtaining the second electrical level information of GPIO when the first level information of universal input output GPIO and the Kato extract the mobile terminal when Kato is inserted into mobile terminal;Determine whether the Kato is normal according to first level information and the second electrical level information.The second electrical level information of GPIO when the first level information of GPIO and the Kato extract the mobile terminal when present invention is inserted into mobile terminal by obtaining Kato, and the 4th level information of third level information when first level information and the second electrical level information are inserted into the mobile terminal with normal Kato respectively and normal Kato when extracting the mobile terminal is compared, so that it is determined that whether Kato is normal.In this way, shortening detection duration compared to whether there is using detection card in the related technology and monitor extraction event come the method for detecting Kato, improving production efficiency.
Description
Technical Field
The invention relates to the field of mobile terminal detection, in particular to a card support detection method and device.
Background
With the development of mobile communication technology and devices, in order to meet the requirements of people on lightness, thinness and simplicity of operation of mobile terminals, more and more mobile terminals adopt independent card holders to mount SIM (Subscriber identity module) cards, SD (Secure Digital Memory) cards and the like. In order to avoid the installation of a defective card holder in a mobile terminal when the mobile terminal is manufactured, it is necessary to detect a card holder to be installed in the mobile terminal to detect and remove the defective card holder.
In the related art, the detection method of the card holder mainly comprises the following steps: a technician firstly loads a card into a card holder and inserts the card into a mobile terminal, wherein the card can be an SIM card or an SD card, and then the mobile terminal is used for detecting the card; when the card is detected, the technician pulls out the card holder with the card, and after the card holder is pulled out, if the mobile terminal detects a card pulling-out event, the card holder is determined to be normal.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the method is used for detecting the card support in the production process, and the mobile terminal needs to spend long time when detecting the card pulling-out event, so that the testing process consumes long time, and the improvement of the production efficiency is not facilitated.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for detecting a card holder. The technical scheme is as follows:
in one aspect, a method for detecting a card holder is provided, the method including:
acquiring first level information of GPIO (General Purpose Input Output) when a card holder is inserted into a mobile terminal and second level information of the GPIO when the card holder is pulled out of the mobile terminal, wherein the GPIO is a pin used for connecting the card holder by a processor of the mobile terminal;
and determining whether the card holder is normal or not according to the first level information and the second level information.
Optionally, the determining whether the card tray is normal according to the first level information and the second level information includes:
judging whether the first level information and the third level information are the same, wherein the third level information is preset level information of GPIO when a normal card holder is inserted into the mobile terminal; when the first level information is the same as the third level information, judging whether the second level information is the same as fourth level information, wherein the fourth level information is preset level information of the GPIO when the mobile terminal is pulled out of a normal card support; when the second level information and the fourth level information are the same, determining that the card holder is normal; or,
judging whether the second level information and the fourth level information are the same; when the second level information is the same as the fourth level information, judging whether the first level information is the same as the third level information; and when the first level information and the third level information are the same, determining that the card holder is normal.
Optionally, the method further comprises:
and acquiring the third level information and the fourth level information of the GPIO from an MP (Modem processor) of the mobile terminal through a first interface.
Optionally, the method further comprises:
acquiring identification information of the GPIO;
the obtaining of the third level information and the fourth level information of the GPIO from the modem processor MP of the mobile terminal through the first interface includes:
and acquiring third level information and fourth level information of the GPIO from the MP of the mobile terminal through a first interface according to the identification information of the GPIO.
In another aspect, a card holder detection apparatus is provided, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first level information of General Purpose Input and Output (GPIO) when a card support is inserted into a mobile terminal and second level information of the GPIO when the card support is pulled out of the mobile terminal, the GPIO is a pin used for connecting the card support of a processor of the mobile terminal, and the first level information is different from the second level information;
and the judging module is used for determining whether the card support is normal or not according to the first level information and the second level information.
Optionally, the determining module determines whether the card holder is normal according to the first level information and the second level information, including:
judging whether the first level information and the third level information acquired by the first acquisition module are the same, wherein the third level information is preset level information of GPIO when a normal card holder is inserted into the mobile terminal; when the first level information and the third level information acquired by the first acquisition module are the same, judging whether the second level information and the fourth level information are the same, wherein the fourth level information is preset level information of the GPIO when the mobile terminal is pulled out of a normal card holder; when the second level information and the fourth level information acquired by the first acquisition module are the same, determining that the card holder is normal; or,
judging whether the second level information and the fourth level information acquired by the first acquisition module are the same; when the second level information and the fourth level information acquired by the first acquisition module are the same, judging whether the first level information and the third level information are the same; and when the first level information and the third level information acquired by the first acquisition module are the same, determining that the card tray is normal.
Optionally, the apparatus further comprises:
and the second obtaining module is configured to obtain the third level information and the fourth level information of the GPIO from the modem processor MP of the mobile terminal through the first interface.
Optionally, the apparatus further comprises:
a third obtaining module, configured to obtain identification information of the GPIO;
the second obtaining module obtains the third level information and the fourth level information of the GPIO from the modem processor MP of the mobile terminal through the first interface, and includes:
and acquiring third level information and fourth level information of the GPIO from the MP of the mobile terminal through a first interface according to the identification information of the GPIO acquired by the third acquisition module.
The embodiment of the invention has the following beneficial technical effects: when the card support is detected, the mobile terminal obtains first level information of general purpose input and output GPIO when the card support is inserted into the mobile terminal and second level information of the GPIO when the card support is pulled out of the mobile terminal, compares the first level information and the second level information with third level information when a normal card support is inserted into the mobile terminal and fourth level information when the normal card support is pulled out of the mobile terminal respectively, and determines that the card support is normal if the first level information is the same as the third level information and the second level information is the same as the fourth level information. Compared with the method for detecting the card support by monitoring the card pulling-out event in the related art, the method shortens the detection time and improves the production efficiency.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a card support detection method according to an embodiment of the present invention;
fig. 2 is a flowchart of a card support detection method according to an embodiment of the present invention;
fig. 3A is a schematic structural diagram of a card holder detection device according to an embodiment of the present invention;
fig. 3B is a schematic structural diagram of a card holder detection device according to an embodiment of the present invention;
fig. 3C is a schematic structural diagram of a card holder detection device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention will be described. For a mobile terminal adopting an independent card holder, in order to avoid installing a faulty card holder in the mobile terminal during production, the card holder to be installed in the mobile terminal needs to be detected to detect and remove the faulty card holder. For this purpose, the present invention detects whether the card holder is normal through any of the following embodiments.
The embodiment of the invention provides a card holder detection method, and referring to fig. 1, the method comprises the following steps:
in step 101, first level information of a GPIO when a card holder is inserted into a mobile terminal and second level information of the GPIO when the card holder is removed from the mobile terminal are obtained, where the GPIO is a pin used by a processor of the mobile terminal to connect to the card holder, and the first level information is different from the second level information;
in step 102, whether the card tray is normal is determined according to the first level information and the second level information.
In the embodiment of the invention, when the card holder is detected, the mobile terminal acquires first level information of general purpose input and output GPIO when the card holder is inserted into the mobile terminal and second level information of the GPIO when the card holder is pulled out of the mobile terminal, compares the first level information and the second level information with third level information when a normal card holder is inserted into the mobile terminal and fourth level information when the normal card holder is pulled out of the mobile terminal respectively, and determines that the card holder is normal if the first level information is the same as the third level information and the second level information is the same as the fourth level information. In the related art, after a technician pulls out a card tray, a mobile terminal determines whether the card tray is pulled out by detecting a card pull-out event. In the process of detecting the card removal event, after monitoring the card removal event, the mobile terminal reports the event to an MP for processing, and then uploads the information of the card removal obtained by MP processing to an Application Processor (AP), where the time taken for the MP to process the card removal event is too long, which is about 5 seconds or more. By adopting the method of the invention, the mobile terminal can directly determine the state of the card support by detecting the level information of the GPIO without processing the card pulling event, thereby shortening the detection time and improving the production efficiency compared with the method for detecting the card support in the related technology.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the disclosure, which is not described in detail in the embodiments of the present invention.
The embodiment of the invention provides a card holder detection method, and referring to fig. 2, the method comprises the following steps:
in step 201, first level information of a GPIO connected to a card receptacle slot in which a card receptacle is located when the card receptacle is inserted into a mobile terminal is obtained.
Optionally, when detecting the card holder, the technician first inserts the card holder into the card holder slot of the mobile terminal, the card holder slot of the mobile terminal is connected to the GPIO on the processor of the mobile terminal, and the mobile terminal can detect the card holder slot when the card holder is inserted into the card holder slot on the mobile terminal. And then, the technician inputs a card support insertion detection instruction, wherein the card support insertion detection instruction is used for indicating whether the card support is normal when the mobile terminal detects that the card support is inserted into the mobile terminal. And the mobile terminal receives the card support insertion detection instruction, and acquires first level information of the GPIO connected with the card support slot according to the instruction of the card support insertion detection instruction.
The mobile terminal can be inserted with a plurality of card holders, the mobile terminal can be provided with a plurality of card support grooves, and each card support groove is connected with a GPIO on a processor of the mobile terminal. Or, a card holder can be inserted into the mobile terminal, and the mobile terminal is provided with a card holder groove. Therefore, the first level information of the GPIO may be one or a plurality of, and the first level information may be high level information or low level information.
Optionally, when the mobile terminal includes a plurality of GPIOs, the mobile terminal may acquire the identification information of the GPIOs while acquiring the first level information. And the identification information of the GPIO is used for uniquely identifying the GPIO.
When only one card bracket is arranged on the mobile terminal, only one GPIO can be connected with the card bracket, so that the first level information can be directly read from the GPIO without acquiring the first level information according to the identification information of the GPIO in the scene.
In step 202, the third level information and the fourth level information of the GPIO are acquired from the MP of the mobile terminal through the first interface.
Since the third level information and the fourth level information of the GPIO are stored in the MP of the mobile terminal in advance and the detection of the card tray is performed in the AP of the mobile terminal, the AP of the mobile terminal acquires the third level information and the fourth level information from the MP. In the related art, when the AP acquires the third level information and the fourth level information from the MP, no existing interface is available for calling, and manual participation and confirmation are required. In order to solve the problem, the embodiment of the invention automatically expands the first interface, and the third level information and the fourth level information are acquired through the first interface, so that the human participation is reduced, the acquisition speed is increased, and the error rate is reduced.
The first interface may include a qcrilhook object, and the qcrilhook object includes an information sending interface and a user identification module task interface.
The third level information is the preset level information of the GPIO when the normal card holder is inserted into the mobile terminal, and the fourth level information is the preset level information of the GPIO when the normal card holder is pulled out of the mobile terminal, i.e., the third level information and the fourth level information are the level information pre-stored in the mobile terminal MP.
When the mobile terminal only has one card bracket, the mobile terminal can only have the third level information and the fourth level information of one GPIO connected with the card bracket; when the mobile terminal is provided with a plurality of card bracket grooves, the mobile terminal stores the corresponding relation of the identification information of the GPIO, the third level information and the fourth level information, and the corresponding information stores the identification information of the GPIO, the third level information and the fourth level information corresponding to the GPIO connected with each card bracket groove.
Optionally, this step may be: when the mobile terminal only has one card bracket, the AP of the mobile terminal calls an information sending interface included in the first interface, and sends an information acquisition request to the MP of the mobile terminal through the information sending interface; and the MP of the mobile terminal receives the information acquisition request, calls a task interface of a user identification module included in the first interface to acquire the third level information and the fourth level information of the GPIO, and sends the acquired third level information and the acquired fourth level information to the AP of the mobile terminal. When the mobile terminal has a plurality of card support grooves, the AP of the mobile terminal can call an information sending interface included in the first interface to send an information obtaining request to the MP of the mobile terminal, wherein the information obtaining request carries the GPIO identification information; and the MP of the mobile terminal receives the information acquisition request, calls a user identification module task interface included by the first interface, acquires the third level information and the fourth level information of the GPIO through the user identification module task interface according to the GPIO identification information, and returns the acquired third level information and the acquired fourth level information to the AP of the mobile terminal through the first interface.
Wherein, it is required to be noted that: the MP of the mobile terminal may obtain the corresponding relationship between the entire GPIO identification information, the third level information, and the fourth level information according to the acquisition request, and send the obtained corresponding relationship to the AP; the mobile terminal searches for the identification information identical to the identification information of the GPIO in the correspondence received by the AP according to the identification information of the GPIO acquired in step 201, and acquires the third level information and the fourth level information of the GPIO corresponding to the identification information.
The third level information and the fourth level information may be high level information or low level information; when the third level information is low level information, the fourth level information is low level information; when the third level information is high level information, the fourth level information is low level information.
In step 203, it is determined whether the first level information is the same as the third level information.
The third level information is preset level information when a normal card holder is inserted into the mobile terminal, that is, the level information when the normal card holder is inserted into the mobile terminal and the third level information are configured to be the same. Therefore, when the acquired first level information and the acquired third level information when the card holder is inserted into the mobile terminal are different, the card holder is a fault card holder, and the mobile terminal stops testing; when the first level information and the third level information are the same, it may be determined that the card tray is normal in the state of being inserted into the mobile terminal, and then the mobile terminal may perform a test in the state of being pulled out of the mobile terminal on the card tray through steps 204 and 205.
In step 204, second level information of the GPIO is obtained when the card holder is pulled out of the mobile terminal.
Optionally, the technician pulls the card holder out of the mobile terminal and inputs a card holder pull-out detection instruction, where the card holder pull-out detection instruction is used to instruct the mobile terminal to detect whether the card holder is normal when the card holder is pulled out of the mobile terminal. And the mobile terminal acquires the second level information of the GPIO through a processor of the mobile terminal according to the card support pulling-out detection instruction. The second level information may be high level information or low level information.
In step 205, it is determined whether the second level information is the same as the fourth level information.
The fourth level information is preset level information when the normal card holder is pulled out of the mobile terminal, namely the level information when the GPIO is configured to be the same as the fourth level information when the normal card holder is pulled out of the mobile terminal. If the second level information and the fourth level information obtained when the card support is pulled out of the mobile terminal are the same, and the first level information and the third level information are also the same, it can be determined that the card support is normal when the card support is inserted into the mobile terminal and pulled out of the mobile terminal, so that the card support can be determined to be normal.
In the embodiment of the present invention, when detecting the card holder, the detection may be performed first when the card holder is inserted into the mobile terminal, or may be performed first when the card holder is removed from the mobile terminal, that is, the execution sequence of the above steps may also be step 204, step 202, step 205, step 201, and step 203 in sequence.
In the embodiment of the invention, the mobile terminal determines whether the card holder is normal by acquiring first level information of general purpose input and output GPIO when the card holder is inserted into the mobile terminal and second level information of the GPIO when the card holder is pulled out of the mobile terminal, and comparing the first level information and the second level information with third level information when a normal card holder is inserted into the mobile terminal and fourth level information when the normal card holder is pulled out of the mobile terminal respectively. Therefore, compared with the method for detecting the card support by detecting whether the card exists or not and monitoring the pulling-out event in the related art, the method shortens the detection time and improves the production efficiency. Meanwhile, due to the fact that preset information of the GPIO in different projects is inconsistent and no interface between the MP and the AP of the mobile terminal can be called, the preset information of the GPIO needs to be confirmed manually in the related technology; in order to solve the problem, according to the technical scheme, the first interface is automatically expanded in the mobile terminal, and the third level information and the fourth level information are obtained through the first interface, so that the human participation is reduced, and the error rate in detection is reduced.
Referring to fig. 3A, an embodiment of the present invention provides a card holder detection apparatus, including:
the first obtaining module 301 is configured to obtain first level information of a general purpose input/output GPIO when a card holder is inserted into a mobile terminal and second level information of the GPIO when the card holder is pulled out of the mobile terminal, where the GPIO is a pin of the mobile terminal, where a processor of the mobile terminal is used to connect the card holder, and the first level information is different from the second level information;
the judging module 302 is configured to determine whether the card tray is normal according to the first level information and the second level information.
Optionally, the determining module 302 determines whether the card tray is normal according to the first level information and the second level information, including:
judging whether the first level information and the third level information acquired by the first acquisition module are the same, wherein the third level information is preset level information of GPIO when a normal card holder is inserted into the mobile terminal; when the first level information and the third level information acquired by the first acquisition module are the same, judging whether the second level information and the fourth level information are the same, wherein the fourth level information is preset level information of the GPIO when the mobile terminal is pulled out of a normal card holder; when the second level information and the fourth level information acquired by the first acquisition module are the same, determining that the card holder is normal; or,
judging whether the second level information and the fourth level information acquired by the first acquisition module are the same; when the second level information and the fourth level information acquired by the first acquisition module are the same, judging whether the first level information and the third level information are the same; and when the first level information and the third level information acquired by the first acquisition module are the same, determining that the card tray is normal.
Optionally, referring to fig. 3B, the apparatus further comprises:
a second obtaining module 303, configured to obtain the third level information and the fourth level information of the GPIO from the modem processor MP of the mobile terminal through the first interface.
Optionally, referring to fig. 3C, the apparatus further comprises:
a third obtaining module 304, configured to obtain identification information of the GPIO;
the second obtaining module 303 obtains the third level information and the fourth level information of the GPIO from the modem processor MP of the mobile terminal through the first interface, including:
and acquiring third level information and fourth level information of the GPIO from the MP of the mobile terminal through the first interface according to the identification information of the GPIO acquired by the third acquisition module.
In summary, in the embodiment of the present invention, the mobile terminal obtains the first level information of the GPIO when the card holder is inserted into the mobile terminal and the second level information of the GPIO when the card holder is pulled out of the mobile terminal, and compares the first level information and the second level information with the third level information when the normal card holder is inserted into the mobile terminal and the fourth level information when the normal card holder is pulled out of the mobile terminal, respectively, so as to determine whether the card holder is normal. Therefore, compared with the method for detecting the card support by detecting whether the card exists or not and monitoring the pulling-out event in the related art, the method shortens the detection time and improves the production efficiency. Meanwhile, due to the fact that preset information of the GPIO in different projects is inconsistent and no interface between the MP and the AP of the mobile terminal can be called, the preset information of the GPIO needs to be confirmed manually in the related technology; in order to solve the problem, according to the technical scheme, the first interface is automatically expanded in the mobile terminal, and the third level information and the fourth level information are obtained through the first interface, so that the human participation is reduced, and the error rate in detection is reduced.
It should be noted that: in the card tray detection apparatus provided in the above embodiment, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the card support detection method of the card support detection device provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the embodiments of the method and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (8)
1. A method of card holder detection, the method comprising:
when a card support insertion detection instruction is received, acquiring first level information of General Purpose Input Output (GPIO) when a card support is inserted into a mobile terminal, wherein the card support insertion detection instruction is used for indicating whether the card support is normal when the card support is inserted into the mobile terminal, and the GPIO is a pin used for connecting the card support by a processor of the mobile terminal;
when a card support pulling-out detection instruction is received, second level information of the GPIO is obtained when the card support is pulled out of the mobile terminal, and the card support pulling-out detection instruction is used for indicating whether the card support is normal when the mobile terminal detects that the card support is pulled out of the mobile terminal;
comparing the first level information with third level information, and comparing the second level information with fourth level information, wherein the third level information is preset level information of a GPIO when a normal card holder is inserted into the mobile terminal, and the fourth level information is preset level information of the GPIO when the normal card holder is pulled out of the mobile terminal;
when the first level information is the same as the third level information and the second level information is the same as the fourth level information, determining that the card holder is normal;
and when the first level information is different from the third level information, or when the second level information is different from the fourth level information, determining that the card support is a fault card support.
2. The method of claim 1, wherein comparing the first level information and third level information and comparing the second level information and fourth level information comprises:
judging whether the first level information and the third level information are the same; when the first level information and the third level information are the same, judging whether the second level information and the fourth level information are the same; or,
judging whether the second level information and the fourth level information are the same; and when the second level information and the fourth level information are the same, judging whether the first level information and the third level information are the same.
3. The method of claim 2, further comprising:
and acquiring the third level information and the fourth level information of the GPIO from a modulation and demodulation processor (MP) of the mobile terminal through a first interface.
4. The method of claim 3, wherein the method further comprises:
acquiring identification information of the GPIO;
the obtaining of the third level information and the fourth level information of the GPIO from the modem processor MP of the mobile terminal through the first interface includes:
and acquiring third level information and fourth level information of the GPIO from the MP of the mobile terminal through a first interface according to the identification information of the GPIO.
5. A card holder detection device, the device comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first level information of General Purpose Input and Output (GPIO) when a card support is inserted into a mobile terminal when receiving a card support insertion detection instruction, the card support insertion detection instruction is used for indicating whether the card support is normal when the card support is inserted into the mobile terminal, and the GPIO is a pin used for connecting the card support by a processor of the mobile terminal;
the first obtaining module is further used for obtaining second level information of the GPIO when the card support is pulled out of the mobile terminal when a card support pulling-out detection instruction is received, and the card support pulling-out detection instruction is used for indicating whether the card support is normal when the mobile terminal detects that the card support is pulled out of the mobile terminal;
the judging module is used for comparing the first level information with third level information and comparing the second level information with fourth level information, wherein the third level information is preset level information of a GPIO (general purpose input/output) when a normal card support is inserted into the mobile terminal, and the fourth level information is preset level information of the GPIO when the normal card support is pulled out of the mobile terminal; when the first level information is the same as the third level information and the second level information is the same as the fourth level information, determining that the card holder is normal; and when the first level information is different from the third level information, or when the second level information is different from the fourth level information, determining that the card support is a fault card support.
6. The apparatus of claim 5, wherein the determining module is specifically configured to:
judging whether the first level information and the third level information acquired by the first acquisition module are the same; when the first level information and the third level information acquired by the first acquisition module are the same, judging whether the second level information and the fourth level information are the same; or,
judging whether the second level information and the fourth level information acquired by the first acquisition module are the same; and when the second level information and the fourth level information acquired by the first acquisition module are the same, judging whether the first level information and the third level information are the same.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the second obtaining module is configured to obtain the third level information and the fourth level information of the GPIO from the modem processor MP of the mobile terminal through the first interface.
8. The apparatus of claim 7, wherein the apparatus further comprises:
a third obtaining module, configured to obtain identification information of the GPIO;
the second obtaining module obtains the third level information and the fourth level information of the GPIO from the modem processor MP of the mobile terminal through the first interface, and includes:
and acquiring third level information and fourth level information of the GPIO from the MP of the mobile terminal through a first interface according to the identification information of the GPIO acquired by the third acquisition module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610910697.5A CN106646021B (en) | 2016-10-19 | 2016-10-19 | A kind of Kato detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610910697.5A CN106646021B (en) | 2016-10-19 | 2016-10-19 | A kind of Kato detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106646021A CN106646021A (en) | 2017-05-10 |
CN106646021B true CN106646021B (en) | 2019-09-20 |
Family
ID=58856330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610910697.5A Active CN106646021B (en) | 2016-10-19 | 2016-10-19 | A kind of Kato detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106646021B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402234B (en) * | 2017-07-28 | 2020-12-01 | 青岛海信移动通信技术股份有限公司 | Method for detecting impurities in card holder with SIM card installed in terminal and terminal |
CN108227008B (en) * | 2017-12-28 | 2020-07-03 | 东莞华贝电子科技有限公司 | Metal card tray detection device |
CN113079249B (en) * | 2021-03-25 | 2022-07-08 | 惠州Tcl移动通信有限公司 | Prompting method, prompting device, storage medium and mobile terminal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103235584A (en) * | 2013-04-26 | 2013-08-07 | 中国科学院微电子研究所 | Intelligent home control method, device, MCU and system |
CN104243650A (en) * | 2014-09-16 | 2014-12-24 | 广东欧珀移动通信有限公司 | User identification module card hot plug detection method and device applied to mobile terminal |
CN104702784A (en) * | 2015-03-05 | 2015-06-10 | 惠州Tcl移动通信有限公司 | Method and system for detecting multi-SIM hot plug of mobile terminal |
CN104714912A (en) * | 2015-03-04 | 2015-06-17 | 惠州Tcl移动通信有限公司 | Multi-card detection device, multi-card detection system and method thereof |
CN105573884A (en) * | 2015-12-28 | 2016-05-11 | 惠州Tcl移动通信有限公司 | Multi-TF-card plugging and unplugging detection method and system |
CN105611020A (en) * | 2016-03-04 | 2016-05-25 | 努比亚技术有限公司 | SIM (Subscriber Identity Module) card detection system and method |
CN105786146A (en) * | 2016-03-02 | 2016-07-20 | 惠州Tcl移动通信有限公司 | Mobile terminal and method for preventing power cross short circuit |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102002927B1 (en) * | 2012-12-20 | 2019-07-23 | 삼성전자주식회사 | Device and method for detecting insertion direction of sim card in terminal |
-
2016
- 2016-10-19 CN CN201610910697.5A patent/CN106646021B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103235584A (en) * | 2013-04-26 | 2013-08-07 | 中国科学院微电子研究所 | Intelligent home control method, device, MCU and system |
CN104243650A (en) * | 2014-09-16 | 2014-12-24 | 广东欧珀移动通信有限公司 | User identification module card hot plug detection method and device applied to mobile terminal |
CN104714912A (en) * | 2015-03-04 | 2015-06-17 | 惠州Tcl移动通信有限公司 | Multi-card detection device, multi-card detection system and method thereof |
CN104702784A (en) * | 2015-03-05 | 2015-06-10 | 惠州Tcl移动通信有限公司 | Method and system for detecting multi-SIM hot plug of mobile terminal |
CN105573884A (en) * | 2015-12-28 | 2016-05-11 | 惠州Tcl移动通信有限公司 | Multi-TF-card plugging and unplugging detection method and system |
CN105786146A (en) * | 2016-03-02 | 2016-07-20 | 惠州Tcl移动通信有限公司 | Mobile terminal and method for preventing power cross short circuit |
CN105611020A (en) * | 2016-03-04 | 2016-05-25 | 努比亚技术有限公司 | SIM (Subscriber Identity Module) card detection system and method |
Also Published As
Publication number | Publication date |
---|---|
CN106646021A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106937273B (en) | HD icon display control method and device | |
CN106646021B (en) | A kind of Kato detection method and device | |
CN105611020B (en) | A kind of SIM card detection system and method | |
CN106201783B (en) | A kind of data reconstruction method and device | |
CN101656974A (en) | SIM card compatibility automated test method and device | |
US20170359844A1 (en) | Switching-on method, base station, base station controller, switching-on system and storage medium | |
CN111143150A (en) | Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit | |
CN104765664A (en) | PCI (Peripheral Component Interface) equipment detection system and method | |
CN111554219A (en) | Display equipment testing method and device, electronic product and storage medium | |
CN108519935B (en) | Board card testing method and device, readable storage medium and computer equipment | |
CN115407116A (en) | Method and device for determining charging current | |
CN107423196B (en) | Multi-card-slot state detection method, detection equipment and mobile terminal | |
CN103905470B (en) | A kind of resource downloading method, device and mobile terminal | |
CN109246280B (en) | Address book cloud processing method and device, computer equipment and readable storage medium | |
CN111355505B (en) | SIM card seat type identification method, device and computer readable medium | |
CN110308712B (en) | Fault detection method of electronic equipment, electronic equipment and terminal equipment | |
CN107179972A (en) | For the method for calculation machine, microcontroller, test equipment and test system | |
CN105682217B (en) | Network registration method, network registration device and terminal | |
CN109525698B (en) | SIM card identification configuration method, storage medium and mobile phone | |
CN110235394B (en) | Method for realizing high-frequency carrier synchronization and related device | |
CN114244423B (en) | Method for processing measurement and control data and multi-star measurement and control system | |
CN113613239B (en) | Network mode switching method, network mode switching device, medium, and electronic device | |
CN112887161B (en) | Mobile network detection method and device | |
CN104679625A (en) | Computer system and method for testing computer system | |
CN103914423B (en) | A kind of information processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Shandong City, Qingdao Province, Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Country or region after: China Address before: Shandong City, Qingdao Province, Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |