Summary of the invention
The embodiment of the present invention provides a kind of release identification circuit and terminal, solves existing user and obscures card inserting mouth,
Lead to the problem of plug-in card mistake.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the present invention provides a kind of release identification circuit, comprising: the selection of deck, N × 1 switch, N
A information card control chip and controller;The N is the integer more than or equal to 2;The selection of the N × 1, which switchs, includes:
Control terminal, common end, N number of selection end, the control terminal are connect with the controller, the common end and the first of the deck
End connection, N number of selection end is connect with N number of information card control chip respectively;The controller connects the deck
Second end and N number of information card control chip;
Wherein, the deck, for loading release;
The release, for sending response data to the information card control chip;
The information card control chip, for after determination is connected to the release, receiving the response data, and will
The response data is sent to the controller;
The controller, for detecting whether there is the release to be loaded into the deck, when having detected the information
After clamping is loaded in the deck, successively to the control terminal output control signal of the selection switch of the N × 1, until the controller
After receiving the response data, the information card control chip phase that the release is currently connected to the release is determined
Timing terminates to control terminal and sends control signal;
The selection switch of the N × 1, for will be loaded on the deck according to from the received control signal of the control terminal
Release be connected to an information card control chip in N number of information card control chip.
The first in first aspect can be in realization mode, and with reference to first aspect, the controller is successively to N × 1
The control terminal output control signal of selection switch is specifically, the controller is used for:
First control signal is exported to the control terminal of the selection switch of the N × 1, the first control signal is used to indicate institute
It states the selection switch of N × 1 to be connected to the common end with first choice end, the first choice end and first information card control chip
Connection;
Determine whether the release matches with the first information card control chip;
If matching, stop the control terminal output control signal that switch is selected to the N × 1;If mismatching, Xiang Suoshu
The selection switch of N × 1 sends second control signal, and the second control signal is used to indicate the selection of the N × 1 switch for the public affairs
End is connected to the second selection end altogether, and second selection end is connect with the second information card control chip.
In second of achievable mode of first aspect, with reference to first aspect the first can realize mode, the control
Device processed is used for, and determines whether the release matches with the first information card control chip specifically, the controller is used for:
Instruction message successively is sent to the first information card control chip, until receiving the first information card control
When the response data that chip returns, terminates to the first information card control chip and send instruction message;The instruction message is used
Power supply signal, reset signal and clock signal are sent to the release in the instruction first information card control chip;
Obtain the attribute information of the release;The attribute information is for identifying the release;
Inquire preset release control planning table;The release control planning table is for storing: information card control core
The corresponding relationship for the release that piece and the information card control chip are controlled;
If the release is corresponding with the first information card control chip, it is determined that the release and first letter
Breath card control chip matches;
If the release and the first information card control chip be not corresponding, it is determined that the release and described first
Information card control chip mismatches.
The third in first aspect can be in realization mode, the achievable mode of second with reference to first aspect, the control
Device processed is used for, and successively sends instruction message specifically, the controller is used for the first information card control chip:
The first instruction message, first instruction are sent to the first information card control chip according to default power supply order
Message is used to indicate the first information card control chip and sends the first power supply signal, reset signal and clock to the release
Signal;
If within a preset time, not receiving the response data that the first information card control chip returns, then Xiang Suoshu
First information card control chip sends the second instruction message, and second instruction message is used to indicate the first information card control
Chip sends the second power supply signal, reset signal and clock signal to the release.
In the 4th kind of achievable mode of first aspect, the third to first aspect can the side of realization with reference to first aspect
Any achievable mode in formula, the connection controller is provided on the deck is stuck in a circuit for detecting;
The controller is used for, and has detected whether that the release is loaded into the deck specifically, the controller is used
In:
According to the voltage value for being stuck in a circuit for detecting, it is determined whether there is the release to be loaded into the deck.
Second aspect, the embodiment of the present invention provides a kind of terminal, comprising at least one such as first aspect to first aspect
Release identification circuit described in any achievable mode in 4th kind of achievable mode.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of release identification circuit, comprising: deck, the selection of N × 1 switch, N
A information card control chip and controller;The deck, for loading release, the selection switch of the N × 1 is used for basis
The control signal of the controller input, will be in the release that loaded on the deck and N number of information card control chip
One chip connection;N number of information card control chip, for controlling N kind release correspondingly;The controller is used
In having detected whether that release is loaded into the deck, after having detected that release is loaded into the deck, successively to the N
× 1 selection switch M control signal of input, until the controller after receiving the response data, determines the information
When card matches with the information card control chip that the release is currently connected to, terminates to control terminal and send control signal.In this way,
In release identification circuit provided in an embodiment of the present invention, after release is loaded into card slot by user, pass through controller
It is successively switched to selection and sends control signal, make the connection for selecting switching release and information card control chip chamber, until
The matched information card control chip of release is connected, for a user, without having to worry about release mistake, is improved
User experience solves existing user and obscures SIM card interface and intelligent card interface, leads to the problem of plug-in card mistake.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of structure chart of release identification circuit 10 provided in an embodiment of the present invention, as shown in Figure 1, the letter
Breath card identification circuit may include: deck 101, and N × 1 selects switch 102, N number of information card control chip 103 and controller
104, the N are the integer more than or equal to 2.
Wherein, the deck 101, for loading release.
The release can be with are as follows: client identification module (Subscriber Identity Module, SIM) card or
Smart card, in the successful situation of power itself, Xiang Suoshu information card control chip to send response data;The number of responses
According to the I/O communication clock frequency that can be release.
It may include: control terminal, common end and N number of selection end that the N × 1, which selects switch 102,;The common end connection
The first end of the deck 101, the control terminal connect the controller 104, N number of selection end distinguish correspondingly with
N number of information card control chip 103 connects;For basis from the received control signal of the control terminal, by the common end
It is connected to a selection end in N number of selection end, i.e., by the release loaded on deck and N number of information card control core
Information card control chip connection in piece.
The controller 104 can be thought as a central processing unit (central processing unit, CPU), connect
The second end of the deck 101 and N number of information card control chip;For detecting whether there is the release to be loaded into
The deck, after having detected that the release is loaded into the deck, successively to the control terminal of the selection switch of the N × 1
Output control signal determines the release and the release until the controller is after receiving the response data
When the information card control chip being currently connected to matches, terminates to control terminal and send control signal.
Wherein, matching described in the embodiment of the present invention can refer to: the information control being currently connected to the release
Coremaking piece is the control chip for controlling the release.
In this way, in release identification circuit provided in an embodiment of the present invention, when user by release be loaded into card slot it
Afterwards, it is successively switched to selection by controller and sends control signal, make to select switching release and information card control chip
Between connection, until the matched information card control chip of release is connected, for a user, without having to worry about information
Card mistake, improves user experience, solves existing user and obscures SIM card interface and intelligent card interface, leads to plug-in card mistake
Problem.
Specifically, following ISO7816 protocol specification, usually needed on the existing release including smart card or SIM card
Functional metal pins there are four being arranged, such as: supply voltage (Volt Current Condenser, VCC) pin, reset
(Reset, RST) pin, input and output (Input Output, IO) pin, clock (Clock, CLK) pin are to carry out data biography
Therefore defeated pin in order to be loaded in release on deck 101, and is connected to information card control chip, it is logical to complete data
Letter, the first end of the deck 101, the N × 1 select the common end of switch 102, the N × 1 to select each of switch 102
Be required to be correspondingly arranged on selection end and information card control chip: VCC pin, RST pin, I/O pin and CLK draw
Four pins of foot;Also, it is specifically as follows as shown in Figure 1, the first end of the deck 101 is connect with the common end:
Four pins that four pins and N × 1 of the first end select the common end of switch 102 to be arranged: VCC pin,
RST pin, I/O pin and CLK pin connect one by one, form four interface channels.
The selection end is connect with the information card control chip to be specifically as follows:
Four pins being arranged on four pins and information card control chip at the selection end: VCC pin, RST pin,
I/O pin and CLK pin connect one by one, form four interface channels.
Specifically, in order to easily detect whether that clamping is loaded in the deck 101, in the embodiment of the present invention, institute
It states and is also provided on deck 101: being stuck in a circuit for detecting;The circuit for detecting that is stuck in is connect with the controller;
Wherein, described to be stuck in a case where circuit for detecting be loaded into or extract deck 101 according to release, be in
Existing different voltage value;
The controller can be used for the voltage value being stuck on a circuit for detecting according to, it is determined whether have release
It is loaded into the deck 101.
For example, Fig. 2 is the structure chart of deck 101 described in Fig. 1 provided in an embodiment of the present invention, as shown in Fig. 2, the deck
The peripheral circuit pulled up comprising 13 metal pins and a 3.3V+10K resistance, wherein the 9th pin is detection pin, with
Peripheral circuit connection, composition is stuck in a circuit for detecting, and controller is stuck in a circuit for detecting with this and connect, and can such as draw with the 9th
Foot connection, can also connect with the test point of the circuit;After being loaded into release in deck, the pin inner portions and ground are disconnected,
External pin (i.e. at test point) is high voltage;When being loaded in deck without clamping, pin inner portions ground connection, external pin (detection
At point) it is low-voltage.It should be noted that the pin that deck shown in Fig. 2 includes is merely illustrative pin, do not constitute to this
The limitation of deck self structure.
Specifically, controller 104 can be used in the embodiment of the present invention:
First control signal is exported to the control terminal of the selection switch of the N × 1, the first control signal is used to indicate institute
It states the selection switch of N × 1 to be connected to the common end with first choice end, the first choice end and first information card control chip
Connection;
Determine whether the release matches with the first information card control chip;
If matching, stop the control terminal output control signal that switch is selected to the N × 1;
If mismatching, selects switch to send second control signal to the N × 1, redefine the release and institute
It states whether first information card control chip matches, stop sending control signal according to match condition or continues to send next
Information is controlled, until the selection of the N × 1 switchs the information card control chip gone out according to control signal behavior and the release phase
Matching.
Wherein, the second control signal is used to indicate the selection of the N × 1 switch for the common end and the second selection end
Connection, second selection end are connect with the second information card control chip.
It should be noted that control signal described in the embodiment of the present invention can be with can indicate that N × 1 will be public
Holding the signal for any form being connected to a selection end indicates, comparison of the embodiment of the present invention is without limiting;Such as: as N=2,
The control signal can be high voltage signal or low voltage signal, be indicated with high voltage signal by release and an information control
The connection of coremaking piece indicates for release to be connected to another information card control chip with low voltage signal;As N=4, can be set
The control signal of following 4 kinds of forms: 00,01,10,11, instruction is respectively corresponded by release and first information card control chip, the
Two information card control chips, third information card control chip, the connection of the 4th information card control chip.
For example, Fig. 3 shows a kind of structure chart of 2 × 1 selection switch provided in an embodiment of the present invention, for according to control
Release and SIM are controlled chip or intelligent card control chip gating by signal, wherein control signal can be high voltage, low electricity
Press two kinds of signals;As shown in figure 3, selection switch includes 8 three state buffers, it is divided into two groups and controls chip, intelligence with SIM respectively
Energy card control chip connection, wherein the three state buffer is in the conductive state under high voltages, at low voltage in cut-off
State, and the input terminal for one group of three state buffer connecting with SIM control chip is connected with phase inverter, the phase inverter can
High (low) voltage is converted to low (height) voltage;In this way, when control signal CONTROL_EN is high voltage signal, with smart card
The three state buffer for controlling chip connection is in the conductive state, and then is connected to release with intelligent card control chip, and passes through
It is low-voltage that phase inverter, which is output to one group of three state buffer connecting with SIM control chip, so that controlling chip with SIM card
The three state buffer of connection is in off state, and release cannot be connected to SIM card control chip.It should be noted that Fig. 3 institute
2 × 1 selection switches shown are only embodiment structure chart, and in actual application, selection switch can also include voltage
The circuits such as conversion, are not described in detail herein.
Specifically, the controller 104 can determine release and release by following methods in the embodiment of the present invention
Whether control chip matches, such as:
Instruction message successively is sent to the first information card control chip, until receiving the first information card control
When the response data that chip returns, terminates to the first information card control chip and send instruction message;The instruction message is used
Power supply signal, reset signal and clock signal are sent to the release in the instruction first information card control chip;
Obtain the attribute information of the release;The attribute information is for identifying the release;
Inquire preset release control planning table;The release control planning table is for storing: information card control core
The corresponding relationship for the release that piece and the information card control chip are controlled;
If the release is corresponding with the first information card control chip, it is determined that the release and first letter
Breath card control chip matches;
If the release and the first information card control chip be not corresponding, it is determined that the release and described first
Information card control chip mismatches.
For example, as shown in table 1 below, for the release control planning table prestored, if first information card control chip are as follows: SIM
Chip is controlled, the release attribute information got identifies the release are as follows: smart card can then be determined according to table 1 described
First information card control chip and the release mismatch;If the mark for the first information card control chip that controller is got
Chip is controlled described in message identification are as follows: SIM controls chip, and the release attribute information got identifies the release are as follows: SIM
Card, then can determine that the first information control coremaking and the release are matched according to table 1.
Table 1
Information card control chip |
Release |
SIM controls chip |
SIM card |
Intelligent card control chip |
Smart card |
Specifically, the normal work in order to guarantee release, the controller 104 is specifically used for:
The first instruction message, first instruction are sent to the first information card control chip according to default power supply order
Message is used to indicate the first information card control chip and sends the first power supply signal, reset signal and clock to the release
Signal;
If within a preset time, not receiving the response data that the first information card control chip returns, then Xiang Suoshu
First information card control chip sends the second instruction message, and second instruction message is used to indicate the first information card control
Chip sends the second power supply signal, reset signal and clock signal to the release.
Wherein, the power supply signal is used to power to the release, and the reset signal initializes release,
The clock signal is used to carry out clock to the release to synchronize, and release and information card control chip is allowed to complete number
According to communication.
The preset time is set as needed, and comparison of the embodiment of the present invention is without limiting.
The default power supply order can be with are as follows: power supply order from low to high, to avoid directly high electricity is carried out to release
The problem of pressure is powered, and release is caused to be burned;Such as, it then follows ISO7816 agreement regulation, existing information card supply voltage are general
Have: 1.8V, 3.3V, if smart card supply voltage is 3.3V, SIM card supply voltage is 1.8V and two kinds of 3.3V, therefore, unknown
When the release loaded in card slot is which kind of blocks, 3.3V high voltage supply not directly is carried out to release, but first indicates information
Card control chip carries out 1.8V power supply to the release, if without response, then it represents that the release is not operate at 1.8V, and then to finger
Show that information card control chip carries out 3.3V power supply to the release;If returning response data, then it represents that the release is in the voltage
Value is lower to be worked normally, its attribute information can be read directly.
Below with N=2,2 information card control chips are respectively as follows: SIM card control chip, intelligent card control chip, the N
For × 1 is 2 × 1 selection switch as shown in Figure 3, how release identification circuit provided by the invention will be loaded into automatically
The matched control chip connection of the SIM card or smart card of deck is described in detail, wherein the supply voltage of SIM card
Supply voltage for 1.8V and 3.3V, smart card is 1.8V:
1, after SIM card insertion deck, controller has detected that card insertion enters by card circuit for detecting.
2, card is connected to by controller to 2 × 1 selection switch high input voltages, control selections switch with SIM card control chip.
3, controller sends the first instruction information to SIM card control chip, makes SIM control chip to card 1.8V voltage, again
Position signal, clock signal.
If 4, controller receives card and controls the response data (such as ATR data) that chip returns by SIM, information is obtained
The attribute information of card, if the attribute information indicates: the card is SIM card, and card is successfully controlled chip with it and is connected to, and stops hair
Send control signal;If the attribute information indicates: the card is smart card, to 2 × 1 selection switch input low-voltages, control choosing
Switch is selected to be connected to card with intelligent card control chip.
If 5, controller cannot get response data within a preset time, chip can be controlled to SIM card and sends the second instruction
Information makes SIM control chip to card 3.3V voltage, reset signal, clock signal, and repeats the above steps 4.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of release identification circuit, comprising: deck, the selection of N × 1 switch, N
A information card control chip and controller;The deck, for loading release, the selection switch of the N × 1 is used for basis
The control signal of the controller input, will be in the release that loaded on the deck and N number of information card control chip
One chip connection;N number of information card control chip, for controlling N kind release correspondingly;The controller is used
In having detected whether that release is loaded into the deck, after having detected that release is loaded into the deck, successively to the N
× 1 selection switch M control signal of input, until the controller after receiving the response data, determines the information
When card matches with the information card control chip that the release is currently connected to, terminates to control terminal and send control signal.In this way,
In release identification circuit provided in an embodiment of the present invention, after release is loaded into card slot by user, pass through controller
It is successively switched to selection and sends control signal, make the connection for selecting switching release and information card control chip chamber, until
The matched information card control chip of release is connected, for a user, without having to worry about release mistake, is improved
User experience solves existing user and obscures SIM card interface and intelligent card interface, leads to the problem of plug-in card mistake.
On the other hand, the embodiment of the invention also provides a kind of terminals, as shown in figure 4, the terminal may include at least
One above-mentioned release identification circuit 10.
Wherein, the terminal can be with are as follows: the supports such as set-top box block the communication equipment used more;The release identification circuit
The 10 release identification circuit as described in embodiment one is identical, and details are not described herein.
It should be noted that each release identification circuit can carry same release, different letters can also be carried
Breath card realizes the shared or reuse plan of release.In addition, each release identification circuit may include a controller,
Same controller can be shared with multiple release identification circuits, comparison of the embodiment of the present invention is without limiting.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of terminal, including at least one release identification circuit.Each information
Card identification circuit includes: deck, the selection of N × 1 switch, N number of information card control chip and controller;The deck, for filling
Information-bearing card, the selection switch of the N × 1, the control signal for being inputted according to the controller, by what is loaded on the deck
Release is connected to a chip in N number of information card control chip;N number of information card control chip, for one by one
Corresponding control N kind release;The controller, for detecting whether there is release to be loaded into the deck, when having detected
After release is loaded into the deck, switch M control signal of input successively is selected to the N × 1, until the controller exists
After receiving the response data, determine that the release matches with the information card control chip that the release is currently connected to
When, it terminates to control terminal and sends control signal.In this way, in terminal provided in an embodiment of the present invention, when user clamps information
It is loaded in after card slot, is successively switched to selection by the controller in release identification circuit and send control signal, open selection
Concern changes the connection of release Yu information card control chip chamber, until the matched information card control chip of release is connected
It is logical, for a user, without having to worry about release mistake, user experience is improved, solves existing user and obscure SIM card interface
And intelligent card interface, lead to the problem of plug-in card mistake.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.