CN104714912A - Multi-card detection device, multi-card detection system and method thereof - Google Patents

Multi-card detection device, multi-card detection system and method thereof Download PDF

Info

Publication number
CN104714912A
CN104714912A CN201510095806.8A CN201510095806A CN104714912A CN 104714912 A CN104714912 A CN 104714912A CN 201510095806 A CN201510095806 A CN 201510095806A CN 104714912 A CN104714912 A CN 104714912A
Authority
CN
China
Prior art keywords
card
voltage
draw
groove
divider resistance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510095806.8A
Other languages
Chinese (zh)
Other versions
CN104714912B (en
Inventor
俞斌
杨维琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Reliable Intellectual Property Service Co ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201510095806.8A priority Critical patent/CN104714912B/en
Publication of CN104714912A publication Critical patent/CN104714912A/en
Application granted granted Critical
Publication of CN104714912B publication Critical patent/CN104714912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Force Measurement Appropriate To Specific Purposes (AREA)
  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

The invention discloses a multi-card detection device, multi-car detection system and method thereof. The multi-card detection device is connected with a central processing unit and comprises a pull-up resistor, a plurality of parallely connected card slots and divider resistors with the number matched with the number of the card slots; one end of each divider resistor is connected with a corresponding card slot, the other end of each divider resistor is connected with one end of the pull-up resistor and the central processing unit, and the other end of the pull-up resistor is connected with the power end; the divider resistors form a plurality of connection groups and generate dividing voltages of different voltage values through configuring a corresponding divider resistor for each card slot and a plurality of drawing-inserting ways of cards; the drawing-inserting station of a card can be recognized through obtaining the voltage diving value and inquiring a prestored card state corresponding table by the central processing unit based on the fact that one voltage value of the dividing voltage corresponds to one card drawing-inserting state, the hot drawing-inserting detection of the card slots can be achieved by using only one GPIO foot of the central processing, the detection is very convenient and the structure is simple, and the use ratio of the GPIO foot is improved.

Description

A kind of many card detection apparatus, many cards detection system and method thereof
Technical field
The present invention relates to card detection technique field, in particular a kind of many card detection apparatus, many cards detection system and method thereof.
Background technology
Mobile terminal uses often can the various card of hot plug, as SIM card, and SD card.Some mobile terminals support multiple SIM card or SD card, and user on mobile terminals can hot plug more multiple cards.All adopt the detection port that a GPIO pin inserts as a card or extracts in prior art, judge the insertion of card by the voltage detected on GPIO pin or extract.If the voltage on GPIO pin when card does not insert is high level, after card inserts, become low level; Or the voltage when card does not insert on GPIO pin is low level, after card inserts, become high level.
As shown in Figure 1, it is existing card hot plug pick-up unit schematic diagram.When card does not insert, the voltage on GPIO pin is high level VDD, and after card inserts, GPIO pin is dragged down and becomes low level.Because the hot plug blocked in each draw-in groove detects the GPIO pin needing configuration one independent, when draw-in groove is more, existing card hot plug detection mode needs multiple GPIO pin accordingly.But the number of the GPIO pin that central processing unit is arranged is limited, if arrange more meeting to take more pin spaces, therefore each GPIO pin needs reasonable employment.Some central processing units even cannot provide more GPIO pin to support the hot-swappable detection of the card of multiple draw-in groove.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of many card detection apparatus, many cards detection system and method thereof, and being intended to solve the hot-swappable detection of existing card needs each draw-in groove to configure the problem of an independent GPIO pin.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of many card detection apparatus, are connected with central processing unit, and it comprises pull-up resistor, the draw-in groove of several parallel connections and the divider resistance that mates with draw-in groove number; One end of each divider resistance connects the draw-in groove to its correspondence, and the other end of each divider resistance all connects one end and the central processing unit of pull-up resistor, and the other end of described pull-up resistor connects power end.
In described many card detection apparatus, the resistance size of each divider resistance described is different, and also not identical with the total resistance value after combination in any parallel connection between each divider resistance, and total resistance value is not identical with the resistance of single divider resistance yet.
In described many card detection apparatus, described draw-in groove and divider resistance are 3, are respectively the first draw-in groove, the second draw-in groove, the 3rd draw-in groove, the first divider resistance, the second divider resistance and the 3rd divider resistance; One end of described first divider resistance connects one end of the first draw-in groove, and one end of the second divider resistance connects one end of the second draw-in groove, and one end of the 3rd divider resistance connects one end of the 3rd draw-in groove; The other end of the other end of the first divider resistance, the other end of the second divider resistance, the 3rd divider resistance all connects one end and the central processing unit of pull-up resistor, and the other end of described pull-up resistor connects power end; The equal ground connection of the other end of the other end of the first draw-in groove, the other end of the second draw-in groove, the 3rd draw-in groove.
In described many card detection apparatus, the resistance of described first divider resistance is 2k ohm, and the resistance of the second divider resistance is 3k ohm, and the resistance of the 3rd divider resistance is 5k ohm.
A kind of many cards detection system, it comprises central processing unit and described many card detection apparatus, and described many card detection apparatus connect central processing unit; The branch pressure voltage that many card detection apparatus are corresponding according to card plugging and unplugging State-output, central processing unit is inquired about according to this branch pressure voltage the card-like state correspondence prestored and is shown with the plug state of identification card.
In described many cards detection system, described central processing unit comprises:
Comparer, for judging whether the branch pressure voltage inputted is more than or equal to the voltage on the second input end, or is less than or equal to the voltage on the 3rd input end; Export look-at-me control voltage acquiring unit and start, otherwise do not export;
Voltage acquisition unit, for being transferred to draw-in groove state recognition unit and interrupting setting unit by the branch pressure voltage of acquisition;
Draw-in groove state recognition unit, for storage card state correspondence table, according to the plug state of described branch pressure voltage inquirying card state correspondence table identification card;
Interrupt setting unit, for searching first voltage adjacent with branch pressure voltage and the second voltage according to branch pressure voltage from card-like state correspondence table, by the first voltage-drop loading to the second input end of comparer, by the second voltage-drop loading to the 3rd input end of comparer;
The first input end of described comparer is the GPIO pin of central processing unit, it connects the other end of pull-up resistor and the other end of each divider resistance, second input end of comparer and the 3rd input end disconnecting setting unit, the output terminal of comparer connects voltage acquisition unit, described voltage acquisition unit Connection Card groove state recognition unit and interruption setting unit, described draw-in groove state recognition unit disconnecting setting unit.
In described many cards detection system, described first voltage is greater than branch pressure voltage, and the second voltage is less than branch pressure voltage.
In described many cards detection system, the corresponding relation list of the pressure value that described card-like state correspondence table is all card plugging and unplugging states and branch pressure voltage corresponding to often kind of state.
Adopt many card test methods of described many cards detection system, it comprises:
The branch pressure voltage that A, many card detection apparatus are corresponding according to card plugging and unplugging State-output;
B; Central processing unit inquires about according to this branch pressure voltage the plug state that the card-like state correspondence table prestored identifies card release.
In described many card test methods, described step B specifically comprises:
B1, comparer judge whether branch pressure voltage is more than or equal to the voltage on the second input end, or are less than or equal to the voltage on the 3rd input end: be perform step B2; Otherwise perform step B5;
B2, comparer export look-at-me control voltage acquiring unit and start, and the branch pressure voltage of acquisition is transferred to draw-in groove state recognition unit and interrupts setting unit by voltage acquisition unit;
B3, draw-in groove state recognition unit, according to described branch pressure voltage inquirying card state correspondence table, identify the plug state of blocking in now each draw-in groove;
B4, interrupt setting unit and from card-like state correspondence table, search first voltage adjacent with branch pressure voltage and the second voltage according to branch pressure voltage, by the first voltage-drop loading to the second input end of comparer, by the second voltage-drop loading to the 3rd input end of comparer;
B5, comparer continue the size judging branch pressure voltage, until terminate after shutdown
Compared to prior art, many card detection apparatus provided by the invention, many cards detection system and method thereof, many card detection apparatus are connected with central processing unit, comprise pull-up resistor, the draw-in groove of several parallel connections and the divider resistance that mates with draw-in groove number; One end of each divider resistance connects the draw-in groove to its correspondence, and the other end of each divider resistance all connects one end and the central processing unit of pull-up resistor, and the other end of described pull-up resistor connects power end; By configuring a divider resistance to each draw-in groove, the multiple pluggable mode of card makes divider resistance form multiple connection combination, produces the branch pressure voltage of different pressure value; The corresponding a kind of card plugging and unplugging state of a kind of magnitude of voltage based on branch pressure voltage, obtain this branch pressure voltage by central processing unit and also inquire about the plug state that the card-like state correspondence table prestored can identify card release, only central processing unit GPIO pin need be used just to realize the hot-swappable detection of multiple draw-in groove, detect very convenient and structure simple, improve the utilization factor of GPIO pin.
Accompanying drawing explanation
Fig. 1 is existing card hot plug pick-up unit schematic diagram.
Fig. 2 is the structured flowchart of many cards detection system provided by the invention preferred embodiment.
Fig. 3 is the schematic diagram of many card detection apparatus provided by the invention.
Fig. 4 is the schematic diagram of many card detection apparatus Application Example provided by the invention.
Fig. 5 is the structured flowchart of central processing unit in many cards detection system provided by the invention.
Fig. 6 is many card test methods process flow diagram provided by the invention.
Embodiment
The invention provides a kind of many card detection apparatus, many cards detection system and method thereof, for each draw-in groove configures a divider resistance, when there being card to insert in draw-in groove, corresponding divider resistance parallel connection forms all-in resistance group, only need GPIO pin detects the voltage in all-in resistance group, can identify which draw-in groove insert or extract card according to this magnitude of voltage.For making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Please refer to Fig. 2 and Fig. 3, many cards detection system provided by the invention comprises many card detection apparatus 10 and central processing unit 20.Described many card detection apparatus 10 connect central processing unit 20.When the card of different number inserts mobile terminal, form different resistance in described many card detection apparatus 10 and connect combination, and different resistance connects the branch pressure voltage Vgpio that combination produces different pressure value.In other words, the corresponding a kind of card plugging and unplugging state of a kind of magnitude of voltage of branch pressure voltage Vgpio, namely inserts card in which draw-in groove.Therefore, when mobile terminal-opening, many card detection apparatus 10 test card plug states also export corresponding branch pressure voltage Vgpio(and that is to say the voltage that the GPIO pin of central processing unit detects), central processing unit 20 inquires about according to this branch pressure voltage Vgpio the plug state that the card-like state correspondence table prestored can identify card release.The corresponding relation list of the pressure value that described card-like state correspondence table is all card plugging and unplugging states and branch pressure voltage Vgpio corresponding to often kind of state.After start, if many card detection apparatus test card plug state changes, then export the branch pressure voltage Vgpio after change.The card-like state correspondence table prestored inquired about by central processing unit according to the branch pressure voltage Vgpio after change, the more plug state of neocaine.
Please continue to refer to Fig. 3, described many card detection apparatus 10 comprise pull-up resistor R0, several parallel connections draw-in groove (namely draw-in groove 1, draw-in groove 2 ..., draw-in groove n) and the divider resistance that mates with draw-in groove number, each draw-in groove configures a divider resistance (namely the first divider resistance R1, the second divider resistance R2 ..., the n-th divider resistance Rn); Namely one end of each divider resistance connects the draw-in groove of its correspondence, and the other end of each divider resistance all connects one end of pull-up resistor R0 and the GPIO pin of central processing unit, and the other end of described pull-up resistor R0 connects power end VDD.
When there being card to insert in draw-in groove, pull-up resistor R0, divider resistance, draw-in groove are formed into ground circuit.When several cards insert, connect with pull-up resistor R0 after several divider resistance parallel connections that its draw-in groove is corresponding, form dividing potential drop mode.When inserting without card in draw-in groove, corresponding divider resistance is unsettled, is not formed into ground circuit, and namely the branch pressure voltage Vgpio that now other end of pull-up resistor R0 exports is the high pressure that power end VDD exports.It can thus be appreciated that, whether insert card in draw-in groove, the parallel way of each divider resistance can be affected, thus make many card detection apparatus produce different total resistance values.
Suppose n draw-in groove configure respectively n mutual unequal divider resistance be R1, R2, R3 ..., R n-1, Rn; Its parallel way capable of being combined comprises:
The draw-in groove 1 of R1-only has card to insert, and the draw-in groove 2 of R2-only has card to insert, and the draw-in groove 3 of R3-only has card to insert, and by that analogy, the draw-in groove n of Rn-only has card to insert;
R1//R2-draw-in groove 1 and draw-in groove 2 have card to insert, and R1//R3-draw-in groove 1 and draw-in groove 3 have card to insert, and R1//R4-draw-in groove 1 and draw-in groove 4 have card to insert, and by that analogy, R1//Rn-draw-in groove 1 and draw-in groove n have card to insert;
R2//R3-draw-in groove 2 and draw-in groove 3 have card to insert, and R2//R4-draw-in groove 2 and draw-in groove 4 have card to insert, and R2//R5-draw-in groove 2 and draw-in groove 5 have card to insert, and by that analogy, R2//Rn-draw-in groove 2 and draw-in groove n have card to insert;
R3//R4-draw-in groove 3 and draw-in groove 4 have card to insert, and R3//R5-draw-in groove 3 and draw-in groove 5 have card to insert, and R3//R6-draw-in groove 3 and draw-in groove 6 have card to insert, and by that analogy, R3//Rn-draw-in groove 3 and draw-in groove n have card to insert;
By that analogy, R n-1// Rn-draw-in groove n-1 and draw-in groove n has card to insert;
R1//R2//R3-draw-in groove 1, draw-in groove 2, draw-in groove 3 have card to insert; R1//R2//R4-draw-in groove 1, draw-in groove 2, draw-in groove 4 have card to insert; R1//R2//R5-draw-in groove 1, draw-in groove 2, draw-in groove 5 have card to insert, and by that analogy, R1//R2//Rn-draw-in groove 1, draw-in groove 2, draw-in groove n have card to insert;
R2//R3//R4-draw-in groove 2, draw-in groove 3, draw-in groove 4 have card to insert; R2//R3//R5-draw-in groove 2, draw-in groove 3, draw-in groove 5 have card to insert; R2//R3//R6-draw-in groove 2, draw-in groove 3, draw-in groove 4 have card to insert, and by that analogy, R2//R3//Rn-draw-in groove 2, draw-in groove 3, draw-in groove n have card to insert;
R3//R4//R5-draw-in groove 3, draw-in groove 4, draw-in groove 5 have card to insert, R3//R4//R6-draw-in groove 3, draw-in groove 4, draw-in groove 6 have card to insert, R3//R4//R7-draw-in groove 3, draw-in groove 4, draw-in groove 7 have card to insert, and by that analogy, R3//R4//Rn-draw-in groove 3, draw-in groove 4, draw-in groove n have card to insert;
By that analogy, R1//R2//R3//... //R n-1//Rn-all draw-in grooves have card to insert.
It is to be appreciated that R x//R yresistance after expression resistance X is in parallel with resistance Y, R x//R y=(R x× R y)/(R x+ R y).Computing the resistor value formula after resistor coupled in parallel is prior art, is not described further herein.
Identification error is caused in order to avoid total resistance value is identical, in the present embodiment, the resistance size of each divider resistance is different, and also not identical with the total resistance value after combination in any parallel connection between each divider resistance, and total resistance value is not identical with the resistance of single divider resistance yet.
Such as, suppose there are 3 draw-in grooves, the corresponding first divider resistance R1 of draw-in groove 1, the corresponding second divider resistance R2 of draw-in groove 2, the corresponding 3rd divider resistance R3 of draw-in groove 3.Make R1=2k ohm, R2=3k ohm, R3=5k ohm.Then the resistance of three divider resistances is different.R1//R2=1.2k ohm,R1//R3=1.429k ohm,R2//R3=1.875k ohm,R1//R2//R3=0.968k ohm 。The total resistance value obtained with parallel way in above-mentioned 4 between these three divider resistances is not identical yet, and these total resistance values are not identical with the resistance of three divider resistances yet.Therefore R1=2k ohm, R2=3k ohm, R3=5k ohm can respectively as the resistances of the divider resistance of three draw-in grooves.
If suppose R1=2k ohm, R2=3k ohm, R3=1.2k ohm.Although the resistance of three divider resistances is different.But the resistance of R1//R2=1.2k ohm and R3 is equal, therefore R1=2k ohm, R2=3k ohm, R3=5k ohm can not as the resistances of the divider resistance of three draw-in grooves.
Can be learnt by the above-mentioned requirement to divider resistance resistance, in many card detection apparatus, the corresponding unique total resistance value of a kind of plug state of card.The all-in resistance group that each divider resistance parallel connection is formed afterwards is connected with pull-up resistor R0, can calculate total resistance value (i.e. total resistance value) by the voltage obtained in all-in resistance group.When VDD-Vgpio is not equal to zero, total resistance value .When VDD-Vgpio equals zero, total resistance value Rcard is infinitely great, i.e. all non-plug-in card in all draw-in grooves.
The embodiment of 3 draw-in grooves as shown in Figure 4, many card detection apparatus comprise pull-up resistor R0, the first draw-in groove 1, second draw-in groove 2, the 3rd draw-in groove 3, first divider resistance R1, the second divider resistance R2 and the 3rd divider resistance R3; One end of described first divider resistance R1 connects one end of the first draw-in groove 1, and one end of the second divider resistance R2 connects one end of the second draw-in groove 2, and one end of the 3rd divider resistance R3 connects one end of the 3rd draw-in groove 3; The other end of the other end of the first divider resistance R1, the other end of the second divider resistance R2, the 3rd divider resistance R3 all connects one end and the central processing unit of pull-up resistor R0, and the other end of described pull-up resistor R0 connects power end VDD; The equal ground connection of the other end of the other end of the first draw-in groove 1, the other end of the second draw-in groove 2, the 3rd draw-in groove 3.
For the resistance of the first divider resistance R1 be 2k ohm, the resistance of the second divider resistance R2 is 3k ohm, the resistance of the 3rd divider resistance R3 is for 5k ohm.Based on these resistances, the plug state of blocking in three draw-in grooves that each resistance value is corresponding can be determined when mobile terminal is produced, as shown in table 1 below.
Table 1
Due to the branch pressure voltage that total resistance value correspondence generation one is unique, and the pressure value of branch pressure voltage Vgpio can directly obtain.If computation process and difficulty in computation can be increased using total resistance value as the Rule of judgment of card plugging and unplugging state.In order to convenient judgement, the present embodiment adopts and replaces total resistance value Rcard as Rule of judgment using branch pressure voltage Vgpio, namely .
During concrete enforcement, first the resistance of divider resistance and the resistance of pull-up resistor R0 are set according to the number of draw-in groove before dispatching from the factory, the total resistance value under various card plugging and unplugging state is calculated according to the parallel connection of divider resistance, go out the pressure value of branch pressure voltage Vgpio again according to the formulae discovery of branch pressure voltage Vgpio, finally the pressure value of each branch pressure voltage Vgpio to be stored in central processing unit in the corresponding mode shown of card-like state with card plugging and unplugging state one_to_one corresponding.During mobile terminal-opening, central processing unit directly obtains branch pressure voltage Vgpio, then inquirying card state correspondence shows can identify in each draw-in groove whether have card to insert, and Query Result can be fed back to user.In use, if there is card insert or extract, then total resistance value can change mobile terminal, thus the pressure value of branch pressure voltage Vgpio is changed.If the pressure value that central processing unit detects branch pressure voltage Vgpio changes, then the plug state of blocking in each draw-in groove after going out to change according to the branch pressure voltage Vgpio after change again inquirying card state correspondence table identifiable design.
See also Fig. 5, in the present embodiment, described central processing unit comprises comparer 201, voltage acquisition unit 202, draw-in groove state recognition unit 203 and interrupts setting unit 204.The first input end INM of described comparer 201 is the GPIO pin of central processing unit, it connects the other end of pull-up resistor R0 and the other end of each divider resistance, second input end INH of comparer 201 and the 3rd input end INL disconnecting setting unit 204, the output terminal out of comparer 201 connects voltage acquisition unit 202, described voltage acquisition unit 202 Connection Card groove state recognition unit 203 and interruption setting unit 204, described draw-in groove state recognition unit 203 disconnecting setting unit 204.
During initialization, second input end INH of comparer 201 and the 3rd input end INL is unsettled or be high-impedance state, first time is when branch pressure voltage Vgpio being detected, the output terminal out of comparer directly exports look-at-me control voltage acquiring unit 202 and starts, and the branch pressure voltage Vgpio of acquisition is transferred to draw-in groove state recognition unit 203 and interrupts setting unit 204 by voltage acquisition unit 202.Store card-like state correspondence table in draw-in groove state recognition unit 203, it, according to described branch pressure voltage Vgpio inquirying card state correspondence table, obtains the plug state of blocking in each draw-in groove.
Interrupt the voltage of setting unit 204 on the second input end INH that comparer 201 is set and the 3rd input end INL, be specially: interrupt setting unit 204 and from the card-like state correspondence table of draw-in groove state recognition unit 203, search the first voltage V1 adjacent with branch pressure voltage Vgpio and the second voltage V2 according to branch pressure voltage Vgpio, and the first voltage V1 is greater than branch pressure voltage Vgpio, the second voltage V2 is less than branch pressure voltage Vgpio.Make the voltage on the second input end INH equal the first voltage V1, the voltage on the 3rd input end INL equals the second voltage V2.
Afterwards, mobile terminal in use, if comparer 201 judges that branch pressure voltage Vgpio is more than or equal to the voltage on the second input end INH, or when being less than or equal to the voltage on the 3rd input end INL, shows that the card-like state in now draw-in groove changes.The output terminal out of comparer exports look-at-me control voltage acquiring unit 202 and starts, and the branch pressure voltage Vgpio of acquisition is transferred to draw-in groove state recognition unit 203 and interrupts setting unit 204 by voltage acquisition unit 202.Draw-in groove state recognition unit 203 is according to described branch pressure voltage Vgpio inquirying card state correspondence table, thus the plug state of blocking in identifying now each draw-in groove, recognition result can be fed back to user.Interrupt setting unit 204 according to branch pressure voltage Vgpio search from card-like state correspondence table with change after adjacent the first voltage V1 of branch pressure voltage Vgpio and the second voltage V2, to upgrade the voltage on the second input end INH and the voltage on the 3rd input end INL.
If card-like state is unchanged in draw-in groove, branch pressure voltage Vgpio also keeps can not, then comparer 201 judges that branch pressure voltage Vgpio is less than the voltage on the second input end INH, and the voltage be greater than on the 3rd input end INL, now comparer 201 can not export any signal, voltage acquisition unit 202, draw-in groove state recognition unit 203, interruption setting unit 204 do not work, and in draw-in groove, card-like state keeps standing state.
Based on above-mentioned many cards detection system, the present invention also provides a kind of many card test methods, refers to Fig. 6, and described many card test methods comprise:
The branch pressure voltage that S100, many card detection apparatus are corresponding according to card plugging and unplugging State-output;
S200, central processing unit inquire about according to this branch pressure voltage the plug state that the card-like state correspondence table prestored identifies card release.
Wherein, described step S200 specifically comprises:
Step 21, comparer judge whether branch pressure voltage is more than or equal to the voltage on the second input end, or are less than or equal to the voltage on the 3rd input end: be perform step 22; Otherwise perform step 25.
Step 22, comparer export look-at-me control voltage acquiring unit and start, and the branch pressure voltage of acquisition is transferred to draw-in groove state recognition unit and interrupts setting unit by voltage acquisition unit.
Step 23, draw-in groove state recognition unit, according to described branch pressure voltage inquirying card state correspondence table, identify the plug state of blocking in now each draw-in groove.
Step 24, interrupt setting unit and from card-like state correspondence table, search first voltage adjacent with branch pressure voltage and the second voltage according to branch pressure voltage, by the first voltage-drop loading to the second input end of comparer, by the second voltage-drop loading to the 3rd input end of comparer.
Wherein, the first voltage is greater than branch pressure voltage, and the second voltage is less than branch pressure voltage.
Step 25, comparer continue the size judging branch pressure voltage, until terminate after shutdown.
In sum, the present invention is by configuring a divider resistance to each draw-in groove, and the multiple pluggable mode of card makes divider resistance form multiple connection combination, produces the branch pressure voltage of different pressure value; The corresponding a kind of card plugging and unplugging state of a kind of magnitude of voltage based on branch pressure voltage, obtain this branch pressure voltage and also inquire about the plug state that the card-like state correspondence table prestored can identify card release, only central processing unit GPIO pin need be used just to realize the hot-swappable detection of multiple draw-in groove, detect very convenient and structure simple, improve the utilization factor of GPIO pin.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.

Claims (10)

1. a card detection apparatus more than, is connected with central processing unit, it is characterized in that, comprises pull-up resistor, the draw-in groove of several parallel connections and the divider resistance that mates with draw-in groove number; One end of each divider resistance connects the draw-in groove to its correspondence, and the other end of each divider resistance all connects one end and the central processing unit of pull-up resistor, and the other end of described pull-up resistor connects power end.
2. many card detection apparatus according to claim 1, it is characterized in that, the resistance size of each divider resistance described is different, and also not identical with the total resistance value after combination in any parallel connection between each divider resistance, and total resistance value is not identical with the resistance of single divider resistance yet.
3. many card detection apparatus according to claim 1, is characterized in that, described draw-in groove and divider resistance are 3, are respectively the first draw-in groove, the second draw-in groove, the 3rd draw-in groove, the first divider resistance, the second divider resistance and the 3rd divider resistance; One end of described first divider resistance connects one end of the first draw-in groove, and one end of the second divider resistance connects one end of the second draw-in groove, and one end of the 3rd divider resistance connects one end of the 3rd draw-in groove; The other end of the other end of the first divider resistance, the other end of the second divider resistance, the 3rd divider resistance all connects one end and the central processing unit of pull-up resistor, and the other end of described pull-up resistor connects power end; The equal ground connection of the other end of the other end of the first draw-in groove, the other end of the second draw-in groove, the 3rd draw-in groove.
4. many card detection apparatus according to claim 3, is characterized in that, the resistance of described first divider resistance is 2k ohm, and the resistance of the second divider resistance is 3k ohm, and the resistance of the 3rd divider resistance is 5k ohm.
5. the detection system of card more than, is characterized in that, comprises central processing unit and the many card detection apparatus as described in any one of claim 1-4, and described many card detection apparatus connect central processing unit; The branch pressure voltage that many card detection apparatus are corresponding according to card plugging and unplugging State-output, central processing unit is inquired about according to this branch pressure voltage the card-like state correspondence prestored and is shown with the plug state of identification card.
6. many cards detection system according to claim 5, is characterized in that, described central processing unit comprises:
Comparer, for judging whether the branch pressure voltage inputted is more than or equal to the voltage on the second input end, or is less than or equal to the voltage on the 3rd input end; Export look-at-me control voltage acquiring unit and start, otherwise do not export;
Voltage acquisition unit, for being transferred to draw-in groove state recognition unit and interrupting setting unit by the branch pressure voltage of acquisition;
Draw-in groove state recognition unit, for storage card state correspondence table, according to the plug state of described branch pressure voltage inquirying card state correspondence table identification card;
Interrupt setting unit, for searching first voltage adjacent with branch pressure voltage and the second voltage according to branch pressure voltage from card-like state correspondence table, by the first voltage-drop loading to the second input end of comparer, by the second voltage-drop loading to the 3rd input end of comparer;
The first input end of described comparer is the GPIO pin of central processing unit, it connects the other end of pull-up resistor and the other end of each divider resistance, second input end of comparer and the 3rd input end disconnecting setting unit, the output terminal of comparer connects voltage acquisition unit, described voltage acquisition unit Connection Card groove state recognition unit and interruption setting unit, described draw-in groove state recognition unit disconnecting setting unit.
7. many cards detection system according to claim 6, is characterized in that, described first voltage is greater than branch pressure voltage, and the second voltage is less than branch pressure voltage.
8. many cards detection system according to claim 6, is characterized in that, the corresponding relation list of the pressure value that described card-like state correspondence table is all card plugging and unplugging states and branch pressure voltage corresponding to often kind of state.
9. adopt many card test methods of many cards detection system according to claim 5, it is characterized in that, comprising:
The branch pressure voltage that A, many card detection apparatus are corresponding according to card plugging and unplugging State-output;
B; Central processing unit inquires about according to this branch pressure voltage the plug state that the card-like state correspondence table prestored identifies card release.
10. many card test methods according to claim 9, is characterized in that, described step B specifically comprises:
B1, comparer judge whether branch pressure voltage is more than or equal to the voltage on the second input end, or are less than or equal to the voltage on the 3rd input end: be perform step B2; Otherwise perform step B5;
B2, comparer export look-at-me control voltage acquiring unit and start, and the branch pressure voltage of acquisition is transferred to draw-in groove state recognition unit and interrupts setting unit by voltage acquisition unit;
B3, draw-in groove state recognition unit, according to described branch pressure voltage inquirying card state correspondence table, identify the plug state of blocking in now each draw-in groove;
B4, interrupt setting unit and from card-like state correspondence table, search first voltage adjacent with branch pressure voltage and the second voltage according to branch pressure voltage, by the first voltage-drop loading to the second input end of comparer, by the second voltage-drop loading to the 3rd input end of comparer;
B5, comparer continue the size judging branch pressure voltage, until terminate after shutdown.
CN201510095806.8A 2015-03-04 2015-03-04 A kind of more card detection apparatus, more card detecting systems and its method Active CN104714912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510095806.8A CN104714912B (en) 2015-03-04 2015-03-04 A kind of more card detection apparatus, more card detecting systems and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510095806.8A CN104714912B (en) 2015-03-04 2015-03-04 A kind of more card detection apparatus, more card detecting systems and its method

Publications (2)

Publication Number Publication Date
CN104714912A true CN104714912A (en) 2015-06-17
CN104714912B CN104714912B (en) 2017-11-10

Family

ID=53414261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510095806.8A Active CN104714912B (en) 2015-03-04 2015-03-04 A kind of more card detection apparatus, more card detecting systems and its method

Country Status (1)

Country Link
CN (1) CN104714912B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338150A (en) * 2015-10-08 2016-02-17 Tcl移动通信科技(宁波)有限公司 Multi-card detection device and method for mobile terminal
CN105611020A (en) * 2016-03-04 2016-05-25 努比亚技术有限公司 SIM (Subscriber Identity Module) card detection system and method
CN106443161A (en) * 2016-08-18 2017-02-22 中国电子科技集团公司第四十研究所 Power measuring apparatus and method supporting hot swap of power probe
CN106527607A (en) * 2016-10-12 2017-03-22 惠州Tcl移动通信有限公司 Configuration method and system of mobile terminal pin
CN106610913A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Processing method and device of card pool, and card pool system
CN106646021A (en) * 2016-10-19 2017-05-10 青岛海信移动通信技术股份有限公司 Card support detection method and device
CN107423196A (en) * 2017-07-07 2017-12-01 Tcl移动通信科技(宁波)有限公司 A kind of more neck condition detection method, detection device and mobile terminals
CN108255747A (en) * 2017-12-28 2018-07-06 深圳市泛海三江科技发展有限公司 A kind of method and system of identification memory card
CN108414870A (en) * 2017-02-10 2018-08-17 深圳市理邦精密仪器股份有限公司 More battery detection circuit for access and electronic equipment
CN109741557A (en) * 2019-03-04 2019-05-10 明艳 A kind of nursing communication call system
CN109738690A (en) * 2019-01-03 2019-05-10 展鹏科技股份有限公司 A kind of method and apparatus detecting power configuration grade
CN109884554A (en) * 2019-04-01 2019-06-14 上海移为通信技术股份有限公司 A kind of LED light automatic recognition system and method applied to production line
CN111241022A (en) * 2020-01-19 2020-06-05 惠州Tcl移动通信有限公司 GPIO state query method, device and storage medium
WO2020134035A1 (en) * 2018-12-24 2020-07-02 华为技术有限公司 Method for identifying function card and mobile device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459693A (en) * 2002-05-23 2003-12-03 联想(北京)有限公司 Reusing method of hand held information equipment wire controlling button
KR20060062758A (en) * 2004-12-06 2006-06-12 엘지전자 주식회사 Apparatus and method for improving of key recognition accuracy in multi key demanded terminal
CN101102348A (en) * 2007-06-28 2008-01-09 中兴通讯股份有限公司 A keyboard circuit and method for recognizing hand-held mobile device
CN101483528A (en) * 2009-02-23 2009-07-15 福建星网锐捷网络有限公司 Modular communication device and management module
CN101493728A (en) * 2008-01-24 2009-07-29 中兴通讯股份有限公司 Line control push-button detecting and recognizing device and method capable of identifying combined key
CN101910973A (en) * 2008-03-07 2010-12-08 密克罗奇普技术公司 Automatic detection of a cmos device in a latch-up and cycling of a power thereto

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459693A (en) * 2002-05-23 2003-12-03 联想(北京)有限公司 Reusing method of hand held information equipment wire controlling button
KR20060062758A (en) * 2004-12-06 2006-06-12 엘지전자 주식회사 Apparatus and method for improving of key recognition accuracy in multi key demanded terminal
CN101102348A (en) * 2007-06-28 2008-01-09 中兴通讯股份有限公司 A keyboard circuit and method for recognizing hand-held mobile device
CN101493728A (en) * 2008-01-24 2009-07-29 中兴通讯股份有限公司 Line control push-button detecting and recognizing device and method capable of identifying combined key
CN101910973A (en) * 2008-03-07 2010-12-08 密克罗奇普技术公司 Automatic detection of a cmos device in a latch-up and cycling of a power thereto
CN101483528A (en) * 2009-02-23 2009-07-15 福建星网锐捷网络有限公司 Modular communication device and management module

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338150A (en) * 2015-10-08 2016-02-17 Tcl移动通信科技(宁波)有限公司 Multi-card detection device and method for mobile terminal
CN105338150B (en) * 2015-10-08 2019-03-26 Tcl移动通信科技(宁波)有限公司 A kind of more card detection apparatus and its method of mobile terminal
CN106610913A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Processing method and device of card pool, and card pool system
CN105611020A (en) * 2016-03-04 2016-05-25 努比亚技术有限公司 SIM (Subscriber Identity Module) card detection system and method
CN105611020B (en) * 2016-03-04 2019-05-24 努比亚技术有限公司 A kind of SIM card detection system and method
CN106443161B (en) * 2016-08-18 2019-01-18 中国电子科技集团公司第四十一研究所 A kind of power-measuring device that supporting power probe hot plug and method
CN106443161A (en) * 2016-08-18 2017-02-22 中国电子科技集团公司第四十研究所 Power measuring apparatus and method supporting hot swap of power probe
CN106527607A (en) * 2016-10-12 2017-03-22 惠州Tcl移动通信有限公司 Configuration method and system of mobile terminal pin
CN106527607B (en) * 2016-10-12 2019-10-29 Tcl移动通信科技(宁波)有限公司 A kind of configuration method and system of mobile terminal pin
CN106646021A (en) * 2016-10-19 2017-05-10 青岛海信移动通信技术股份有限公司 Card support detection method and device
CN106646021B (en) * 2016-10-19 2019-09-20 青岛海信移动通信技术股份有限公司 A kind of Kato detection method and device
CN108414870A (en) * 2017-02-10 2018-08-17 深圳市理邦精密仪器股份有限公司 More battery detection circuit for access and electronic equipment
CN107423196A (en) * 2017-07-07 2017-12-01 Tcl移动通信科技(宁波)有限公司 A kind of more neck condition detection method, detection device and mobile terminals
CN107423196B (en) * 2017-07-07 2021-09-14 Tcl移动通信科技(宁波)有限公司 Multi-card-slot state detection method, detection equipment and mobile terminal
CN108255747A (en) * 2017-12-28 2018-07-06 深圳市泛海三江科技发展有限公司 A kind of method and system of identification memory card
WO2020134035A1 (en) * 2018-12-24 2020-07-02 华为技术有限公司 Method for identifying function card and mobile device
CN109738690A (en) * 2019-01-03 2019-05-10 展鹏科技股份有限公司 A kind of method and apparatus detecting power configuration grade
CN109741557A (en) * 2019-03-04 2019-05-10 明艳 A kind of nursing communication call system
CN109884554A (en) * 2019-04-01 2019-06-14 上海移为通信技术股份有限公司 A kind of LED light automatic recognition system and method applied to production line
CN111241022A (en) * 2020-01-19 2020-06-05 惠州Tcl移动通信有限公司 GPIO state query method, device and storage medium
CN111241022B (en) * 2020-01-19 2023-12-29 广东博迩科技有限公司 GPIO state query method, device and storage medium

Also Published As

Publication number Publication date
CN104714912B (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN104714912A (en) Multi-card detection device, multi-card detection system and method thereof
US9606953B2 (en) Method, apparatus, and computer program product for entering accessory docking mode in USB type C
CN106291210B (en) USB interface detector, USB interface detection method, USB connector and electronic equipment
EP2589206B1 (en) Detection of cable connections for electronic devices
CN104063296B (en) Veneer condition detection method in place and device
US20080010406A1 (en) Apparatus and method for discerning a host interface
CN104502683A (en) Switch quantity signal detection method and detection circuit
CN112986689B (en) Detection circuit and method for chip configuration pins
CN106330467A (en) Ethernet power supply method, power supply device and power supply equipment
CN111666240A (en) Trans-driver for autonomously detecting cable orientation
US20200132768A1 (en) SAS Connector Conduction Detecting System And Method Thereof
US20160132448A1 (en) Hub module with a single bridge shared among multiple connection ports to support role reversal
CN106549459B (en) Determination method of charging voltage and mobile terminal
US20200132769A1 (en) SAS Connector Conduction Detecting System And Method Thereof
CN107210744B (en) Connector element information detection
CN106708429A (en) Detection circuit
CN110347435A (en) Automatically configure the BIOS and method of PCIe slot
CN108920399A (en) Data line identifying system and method
US10467165B2 (en) USB-C port connections based on multi-level straps
CN116148627A (en) Detection system and method for PCIe CEM connection interface in circuit board
CN115878523A (en) Network card adapting circuit, network card adapting method and related device
CN107995000B (en) Power supply detection method and equipment
CN108196137B (en) Three-phase electricity detection circuit and method
CN106790751B (en) Communication system and method for acquiring physical position information of sub-equipment
CN105528049A (en) Configuration method for driving current of CMD pin of SD card, and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231121

Address after: Room 501, 85 Xiaguang Dongli, Haicang District, Xiamen City, Fujian Province, 361000

Patentee after: Xiamen reliable intellectual property service Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.