A kind of release identification circuit and terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of release identification circuit and terminal.
Background technology
With the development of multimedia technology, diversified development is presented in set-top box functionality, and smart card and client identification module (Subscriber Identity Module, SIM) can be supported to block simultaneously, realizes that double card is inserted.
But, according to International Organization for standardization (International Organization for Standardization, ISO) in 7816 agreements the design size of smart card and SIM card regulation, many production firms are when designing set top box, as the SIM interface of design is with the appearance and size of intelligent card interface, this allows for many users during insertion SIM card and smart card, easily obscures the two interfaces, cause plug-in card mistake, Consumer's Experience extreme difference.
The content of the invention
Embodiments of the invention provide a kind of release identification circuit and terminal, solve existing user and obscure card inserting mouth, the problem of causing plug-in card mistake.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
In a first aspect, the embodiment of the present invention provides a kind of release identification circuit, including:The selecting switch of deck, N × 1, N number of release control chip and controller;The N is the integer more than or equal to 2;The selecting switch of the N × 1 includes:Control end, common port, N number of selection end, the control end is connected with the controller, and the common port is connected with the first end of the deck, and N number of selection end is connected with N number of release control chip respectively;The controller connects the second end of the deck and N number of release control chip;
Wherein, the deck, for loading release;
Described information card, for sending response data to described information card control chip;
Described information card control chip, for after it is determined that being connected with described information card, receiving the response data, and the response data is sent to the controller;
The controller, for detecting whether there is the release to be loaded into the deck, after having detected the release and being loaded into the deck, successively to the control end output control signal of the selecting switch of the N × 1, until the controller is after the response data is received, when determining that described information card matches with the release control chip that described information card is currently connected, terminate to control end and send control signal;
The selecting switch of the N × 1, for according to the control signal received from the control end, the release loaded on the deck to be connected with a release control chip in N number of release control chip.
The first in first aspect can realize mode, with reference in a first aspect, the controller is successively to the control end output control signal of the selecting switch of the N × 1 specifically, the controller is used for:
The first control signal is exported to the control end of the selecting switch of the N × 1, and first control signal is used to indicating that the selecting switch of the N × 1 to connect the common port with first choice end, and the first choice end is connected with first information card control chip;
Determine whether described information card matches with the first information card control chip;
If matching, stop the control end output control signal to the selecting switch of the N × 1;If mismatching, the second control signal is sent to the selecting switch of the N × 1, second control signal is used to indicating that the selecting switch of the N × 1 to connect the common port with the second selection end, and described second selects end to be connected with the second release control chip.
In second of achievable mode of first aspect, the first with reference to first aspect can realize mode, and the controller is used for, and determine whether described information card is matched specifically, the controller is used for the first information card control chip:
Sent successively to the first information card control chip and indicate message, until when receiving the response data that the first information card control chip is returned, terminating to first information card control chip transmission and indicating message;The instruction message is used to indicate that the first information card control chip sends power supply signal, reset signal and clock signal to described information card;
Obtain the attribute information of described information card;The attribute information is used to identify described information
Card;
Inquire about default release control planning table;Described information card control relation table is used to store:The corresponding relation for the release that release control chip is controlled with described information card control chip;
If described information card is corresponding with the first information card control chip, it is determined that described information card matches with the first information card control chip;
If described information card and the first information card control chip be not corresponding, it is determined that described information card is mismatched with the first information card control chip.
The third in first aspect can realize mode, mode can be achieved second with reference to first aspect, and the controller is used for, sent to the first information card control chip indicate message specifically, the controller is used for successively:
First being sent to the first information card control chip according to default power supply order and indicating message, the first instruction message is used to indicate that the first information card control chip sends the first power supply signal, reset signal and clock signal to described information card;
If in preset time, the response data that the first information card control chip is returned is not received, then second being sent to the first information card control chip and indicating message, the second instruction message is used to indicate that the first information card control chip sends the second power supply signal, reset signal and clock signal to described information card.
In the 4th kind of achievable mode of first aspect, the third with reference to first aspect to first aspect can realize that any of mode can be achieved to be provided with mode, the deck:Connect the controller 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 for:
According to the magnitude of voltage 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 the release identification circuit described in any achievable mode in a kind of terminal, the 4th kind of achievable mode comprising at least one such as first aspect to first aspect.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of release identification circuit, including:Card
Seat, the selecting switch of N × 1, N number of release control chip and controller;The deck, for loading release, the selecting switch of the N × 1, for the control signal inputted according to the controller, the release loaded on the deck is connected with a chip in N number of release control chip;N number of release control chip, for controlling N kind releases correspondingly;The controller, for detecting whether there is release to be loaded into the deck, after having detected release and being loaded into the deck, successively M control signal is inputted to the selecting switch of the N × 1, until the controller is after the response data is received, when determining that described information card matches with the release control chip that described information card is currently connected, terminate to control end and send control signal.So, in release identification circuit provided in an embodiment of the present invention, after release is loaded into neck by user, control signal is sent to selecting switch by controller successively, make the connection between selecting switch handover information card and release control chip, until the matched release control chip of release is connected, for a user, without having to worry about release mistake, improve Consumer's Experience, solve existing user and obscure SIM card interface and intelligent card interface, the problem of causing plug-in card mistake.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of structure chart of release identification circuit provided in an embodiment of the present invention;
Fig. 2 is a kind of structure chart of deck provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of 2 × 1 selecting switch provided in an embodiment of the present invention;
Fig. 4 is a kind of structure chart of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the 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, described information card identification circuit can include:Deck 101, the selecting switch 102 of N × 1, N number of release control chip 103 and controller 104, the N are the integer more than or equal to 2.
Wherein, the deck 101, for loading release.
Described information card can be:Client identification module (Subscriber Identity Module, SIM) blocks or smart card, in the case of power itself is successful, response data to be sent to described information card control chip;The response data can be the I/O communication clock frequency of release.
The selecting switch 102 of the N × 1 can include:Control end, common port and N number of selection end;The common port connects the first end of the deck 101, and the control end connects the controller 104, and N number of selection end is connected with N number of release control chip 103 correspondingly respectively;For according to the control signal received from the control end, the common port being connected with a selection end in N number of selection end, i.e., connected the release loaded on deck with a release control chip in N number of release control chip.
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 release control chip;For detecting whether there is the release to be loaded into the deck, after having detected the release and being loaded into the deck, successively to the control end output control signal of the selecting switch of the N × 1, until the controller is after the response data is received, when determining that described information card matches with the release control chip that described information card is currently connected, terminate to control end and send control signal.
Wherein, matching described in the embodiment of the present invention can refer to:With the control chip that the release control chip that described information card is currently connected is control described information card.
So, in release identification circuit provided in an embodiment of the present invention, after release is loaded into neck by user, control signal is sent to selecting switch by controller successively, make the connection between selecting switch handover information card and release control chip, until by release
Matched release control chip is connected, for a user, without having to worry about release mistake, improves Consumer's Experience, solves existing user and obscures SIM card interface and intelligent card interface, the problem of causing plug-in card mistake.
Specifically, following ISO7816 protocol specifications, usually require to be provided with four functional metal pins on the existing release including including smart card or SIM card, such as:Supply voltage (Volt Current Condenser, VCC) pin, reset (Reset, RST) pin, input and output (Input Output, IO) pin, clock (Clock, CLK) pin of the pin to carry out data transmission, therefore, in order that release is loaded on deck 101, and connected with release control chip, complete data communication, be required to be correspondingly arranged on each selection end of the selecting switch 102 of the common port of the selecting switch 102 of the first end of the deck 101, the N × 1, the N × 1 and release control chip:VCC pin, RST pins, four pins of I/O pin and CLK pin;Also, it is specifically as follows as shown in figure 1, the first end of the deck 101 is connected with the common port:
Four pins that the common port of the selecting switch 102 of four pins of the first end and N × 1 is set:VCC pin, RST pins, I/O pin and CLK pin are connected one by one, form four interface channels.
The selection end is connected with described information card control chip to be specifically as follows:
Four pins at the selection end and four pins set on release control chip:VCC pin, RST pins, I/O pin and CLK pin are connected one by one, form four interface channels.
Specifically, in order to easily detect whether that clamp is loaded in the deck 101, in the embodiment of the present invention, being also provided with the deck 101:It is stuck in a circuit for detecting;A circuit for detecting that is stuck in is connected with the controller;
Wherein, a circuit for detecting that is stuck in can be loaded into or extract the situation of the deck 101 according to release, and different magnitudes of voltage are presented;
The controller, can be used for the magnitude of voltage being stuck in according on a circuit for detecting, it is determined whether have release to be 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 includes 13 metal pins, and a 3.3V+10K resistance
The peripheral circuit of pull-up, wherein, the 9th pin is detection pin, is connected with peripheral circuit, and composition is stuck in a circuit for detecting, and controller is stuck in a circuit for detecting with this and is connected, and can such as be connected, can also be connected with the test point of the circuit with the 9th pin;After release is loaded into deck, the pin inner portions disconnect with ground, and external pin (i.e. at test point) is high voltage;When being loaded in deck without clamp, pin inner portions ground connection, external pin (at test point) is low-voltage.It should be noted that the pin that the deck shown in Fig. 2 is included is merely illustrative pin, the limitation to the deck self structure is not constituted.
Specifically, in the embodiment of the present invention, controller 104 can be used for:
The first control signal is exported to the control end of the selecting switch of the N × 1, and first control signal is used to indicating that the selecting switch of the N × 1 to connect the common port with first choice end, and the first choice end is connected with first information card control chip;
Determine whether described information card matches with the first information card control chip;
If matching, stop the control end output control signal to the selecting switch of the N × 1;
If mismatching, then the second control signal is sent to the selecting switch of the N × 1, redefine whether described information card matches with the first information card control chip, stop sending control signal according to match condition or continue to send next control information, until the N × 1 the release control chip selected according to control signal of selecting switch match with described information card.
Wherein, second control signal is used to indicate that the selecting switch of the N × 1 connects the common port with the second selection end, and described second selects end to be connected with the second release control chip.
It should be noted that the control signal described in the embodiment of the present invention can represent that contrast of the embodiment of the present invention is without limiting with the signal that can indicate any form that N × 1 connects common port with a selection end;Such as:As N=2, the control signal can be high voltage signal or low voltage signal, be indicated to connect release with a release control chip with high voltage signal, be indicated to connect release with another release control chip with low voltage signal;As N=4, the control signal of following 4 kinds of forms can be set:00th, 01,10,11, correspond to indicate to connect release with first information card control chip, the second release control chip, the 3rd release control chip, the 4th release control chip respectively.
For example, Fig. 3 shows a kind of structure chart of 2 × 1 selecting switch provided in an embodiment of the present invention, for release and SIM control chips or smart card control chip to be gated according to control signal, wherein, control signal can be high voltage, two kinds of signals of low-voltage;As shown in Figure 3, the selecting switch includes 8 three state buffers, it is divided into two groups to be connected with SIM control chips, smart card control chip respectively, wherein, the three state buffer is in the conduction state under high voltages, cut-off state is at lower voltages, and the input for one group of three state buffer being connected with the SIM control chips is connected with phase inverter, high (low) voltage conversion can be low (height) voltage by the phase inverter;So, when control signal CONTROL_EN is high voltage signal, the three state buffer being connected with smart card control chip is in the conduction state, and then release is connected with smart card control chip, and it is low-voltage that one group of three state buffer being connected with the SIM control chips is output to by phase inverter, so that the three state buffer being connected with SIM card control chip is in cut-off state, release can not be connected with SIM card control chip.It should be noted that 2 × 1 selecting switch shown in Fig. 3 are only embodiment structure chart, in actual application, the selecting switch can also be herein not described in detail comprising circuits such as voltage conversions.
Specifically, in the embodiment of the present invention, the controller 104 can determine whether release matches with release control chip by following methods, such as:
Sent successively to the first information card control chip and indicate message, until when receiving the response data that the first information card control chip is returned, terminating to first information card control chip transmission and indicating message;The instruction message is used to indicate that the first information card control chip sends power supply signal, reset signal and clock signal to described information card;
Obtain the attribute information of described information card;The attribute information is used to identify described information card;
Inquire about default release control planning table;Described information card control relation table is used to store:The corresponding relation for the release that release control chip is controlled with described information card control chip;
If described information card is corresponding with the first information card control chip, it is determined that described information card matches with the first information card control chip;
If described information card and the first information card control chip be not corresponding, it is determined that described
Release is mismatched with the first information card control chip.
For example, as shown in table 1 below, for the release control planning table prestored, if first information card control chip is:SIM control chips, the release attribute information got identifies described information card and is:Smart card, then can determine that the first information card control chip is mismatched with described information card according to table 1;If the identification information for the first information card control chip that controller is got identifies the control chip:SIM control chips, the release attribute information got identifies described information card and is:SIM card, then can determine that the first information control coremaking is matched with described information card according to table 1.
Table 1
Release control chip |
Release |
SIM control chips |
SIM card |
Smart card control chip |
Smart card |
Specifically, the normal work in order to ensure release, the controller 104 specifically for:
First being sent to the first information card control chip according to default power supply order and indicating message, the first instruction message is used to indicate that the first information card control chip sends the first power supply signal, reset signal and clock signal to described information card;
If in preset time, the response data that the first information card control chip is returned is not received, then second being sent to the first information card control chip and indicating message, the second instruction message is used to indicate that the first information card control chip sends the second power supply signal, reset signal and clock signal to described information card.
Wherein, the power supply signal is used to power to described information card, and the reset signal is initialized to release, and the clock signal is used to stick into described information row clock synchronization so that release and release control chip can complete data communication.
The preset time is set as needed, and contrast of the embodiment of the present invention is without limiting.
The default power supply order can be:Power supply order from low to high, to avoid directly carrying out High Voltage Power Supply to release, causes the problem of release is burned;For example, it then follows ISO7816 agreements provide that existing information card supply voltage typically has:1.8V, 3.3V, such as
Smart card supply voltage is 3.3V, SIM card supply voltage is 1.8V and two kinds of 3.3V, therefore, when which kind of the release loaded in unknown neck block for, 3.3V high voltage supplies are not directly carried out to release, but first configured information card control chip is powered to release progress 1.8V, if without response, then represent that the release is not operate at 1.8V, and then configured information card control chip is powered to release progress 3.3V;If returning to response data, then it represents that release normal work under the magnitude of voltage, its attribute information can be directly read.
Below with N=2,2 release control chips are respectively:SIM card control chip, smart card control chip, exemplified by 2 × 1 selecting switch as shown in Figure 3 is in N × 1, the how automatic control chip connection that the SIM card or smart card of being loaded into deck is matched of the release identification circuit provided the present invention is described in detail, wherein, the supply voltage of SIM card is 1.8V and 3.3V, and the supply voltage of smart card is 1.8V:
1st, after SIM card insertion deck, controller has detected card by card circuit for detecting and inserted.
2nd, controller is to 2 × 1 selecting switch high input voltages, and control selections switch connects card with SIM card control chip.
3rd, controller sends the first configured information to SIM card control chip, makes SIM control chips to card 1.8V voltages, reset signal, clock signal.
If the 4, controller receives the response data (such as ATR data) that card is returned by SIM control chips, the attribute information of release is obtained, if the attribute information is represented:The card is SIM card, then successfully connects card with its control chip, stops sending control signal;If the attribute information is represented:The card is smart card, then inputs low-voltage to 2 × 1 selecting switch, and control selections switch connects card with smart card control chip.
If the 5, controller cannot get response data in preset time, the second configured information can be sent to SIM card control chip, make SIM control chips to card 3.3V voltages, reset signal, clock signal, and repeat 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, including:Deck, the selecting switch of N × 1, N number of release control chip and controller;The deck, for loading release, the selecting switch of the N × 1, for the control signal inputted according to the controller, the release loaded on the deck is connected with a chip in N number of release control chip;N number of release control chip, for controlling correspondingly
N kinds release processed;The controller, for detecting whether there is release to be loaded into the deck, after having detected release and being loaded into the deck, successively M control signal is inputted to the selecting switch of the N × 1, until the controller is after the response data is received, when determining that described information card matches with the release control chip that described information card is currently connected, terminate to control end and send control signal.So, in release identification circuit provided in an embodiment of the present invention, after release is loaded into neck by user, control signal is sent to selecting switch by controller successively, make the connection between selecting switch handover information card and release control chip, until the matched release control chip of release is connected, for a user, without having to worry about release mistake, improve Consumer's Experience, solve existing user and obscure SIM card interface and intelligent card interface, the problem of causing plug-in card mistake.
On the other hand, the embodiment of the present invention additionally provides a kind of terminal, as shown in figure 4, the terminal can include at least one above-mentioned release identification circuit 10.
Wherein, the terminal can be:Set top box etc. supports to block the communication equipment used more;Release identification circuit of the described information card identification circuit 10 as described in embodiment one is identical, will not be repeated here.
It should be noted that each release identification circuit can carry same release, different releases can also be carried, sharing or reuse plan for release is realized.In addition, each release identification circuit can comprising a controller, can also multiple release identification circuits share same controller, contrast 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 release identification circuit includes:Deck, the selecting switch of N × 1, N number of release control chip and controller;The deck, for loading release, the selecting switch of the N × 1, for the control signal inputted according to the controller, the release loaded on the deck is connected with a chip in N number of release control chip;N number of release control chip, for controlling N kind releases correspondingly;The controller, for detecting whether there is release to be loaded into the deck, after having detected release and being loaded into the deck, successively M control signal is inputted to the selecting switch of the N × 1, until the controller is after the response data is received, when determining that described information card matches with the release control chip that described information card is currently connected, terminate to send to control end and control
Signal processed.So, in terminal provided in an embodiment of the present invention, after release is loaded into neck by user, control signal is sent to selecting switch by the controller in release identification circuit successively, make the connection between selecting switch handover information card and release control chip, until the matched release control chip of release is connected, for a user, without having to worry about release mistake, improve Consumer's Experience, solve existing user and obscure SIM card interface and intelligent card interface, the problem of causing plug-in card mistake.
It is described above; only embodiment of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; change or replacement can be readily occurred in, should be all included within the scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.