[go: up one dir, main page]

CN201063703Y - Intelligent card communication circuit of set up box - Google Patents

Intelligent card communication circuit of set up box Download PDF

Info

Publication number
CN201063703Y
CN201063703Y CNU2007201211043U CN200720121104U CN201063703Y CN 201063703 Y CN201063703 Y CN 201063703Y CN U2007201211043 U CNU2007201211043 U CN U2007201211043U CN 200720121104 U CN200720121104 U CN 200720121104U CN 201063703 Y CN201063703 Y CN 201063703Y
Authority
CN
China
Prior art keywords
smart card
card
mouth
pin
resistor
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.)
Expired - Fee Related
Application number
CNU2007201211043U
Other languages
Chinese (zh)
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.)
SHENZHEN KEYBRIDGE COMMUNICATIONS CO Ltd
Original Assignee
SHENZHEN KEYBRIDGE COMMUNICATIONS 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 SHENZHEN KEYBRIDGE COMMUNICATIONS CO Ltd filed Critical SHENZHEN KEYBRIDGE COMMUNICATIONS CO Ltd
Priority to CNU2007201211043U priority Critical patent/CN201063703Y/en
Application granted granted Critical
Publication of CN201063703Y publication Critical patent/CN201063703Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

A set-top box smart card communication circuit comprises a logic device (U10), wherein a pin 2 of the U10 is connected with a triode (Q1) through a pull-up resistor (R71) and a resistor (R72), and a Q1 emitter is connected with a high level smart card detection port through a resistor R69; a pin 4 of the U10 is connected with a smart card reset port through a resistor (R73); a pin 6 of the U10 is connected with a smart card clock port through a pull-up resistor (R70) and a resistor (R75); pins 12, 10 of the U10 are connected with a smart card signal line respectively through pull-up resistors (R142, R141) and resistors (R143, R144); wherein R73, R75, R143, R144 respectively bridge between diodes (D23) and (D24), (D21) and (D22), (D4)and (D5), (D2) and (D3); Pins 1, 3, 5, 13, 11 of the U10 are respectively a smart card activation port, a system reset port, a sampling clock port and a subsidiary signal port.

Description

The intelligent card of set-top box telecommunication circuit
Technical field
The utility model relates to the master chip in the set-top box and the interfacing of smart card communications, mainly is meant a kind of intelligent card of set-top box telecommunication circuit of forming with discrete device.
Background technology
When utilizing top box of digital machine to watch digital television program, in order to satisfy the needs of different user, guarantee each user's interests, need to adopt the authority of condition receiving system leading subscriber and guarantee normally watching of user.And in set-top box, use the smart card techniques realization condition to receive usually.Smart card has microprocessor, memory and the interface of communicating by letter with set-top box of oneself.The advantage that adopts the smart card realization condition to receive is: it has the fail safe and the confidentiality of height, is mainly used in storage user's information such as private key, control mandate, secret algorithm, can guarantee the safety of whole digital television system.But there are defectives such as cost height, reliability are low, transmission instability simultaneously in smart card.
Summary of the invention
The purpose of this utility model provides a kind of intelligent card of set-top box telecommunication circuit, replaces smart card by planting the communication interface circuit of forming with discrete device, has overcome the deficiency that prior art exists preferably.
The realization the technical solution of the utility model is: sort circuit comprises logical device (U10), and this U10 pin 2 connects triode (Q1) through pull-up resistor (R71), resistance (R72), and the Q1 emitter connects high level smart card detection mouth through resistance R 69; U10 pin 4 connects the smart card mouth that resets through resistance (R73); U10 pin 6 connects smart card clock mouth through pull-up resistor (R70), resistance (R75); U10 pin 12,10 connects the smart card holding wire through pull-up resistor (R142, R141), resistance (R143, R144) respectively; Wherein R73, R75, R143, R144 be connected across respectively diode (D23) and (D24), (D21) and (D22), (D4) and (D5), (D2) and (D3) between; U10 pin 1,3,5,13,11 is respectively smart card and activates mouth, system reset mouth, sampling clock mouth, auxiliary signal mouth.
This technical scheme also comprises:
Described circuit also comprises triode (Q12), and this Q12 base stage connects high level smart card detection mouth through resistance (R153), and its collector electrode connects low level smart card detection mouth through resistance (R152, R151).
Described U10 comprises 74LVC07 or 74HC07 (CMOS) or 74LS17.
The beneficial effect that the utlity model has: at the traditional intelligence card need an external interface chip could with the existing deficiency of smart card communications, the change-over circuit that this discrete set of devices becomes has realized that cost is low, reliability is high, the effect of stable transfer.
Description of drawings
Fig. 1 is the activation sequential chart of IC-card.
Fig. 2 is the release sequential chart of IC-card.
Fig. 3 is circuit theory diagrams of the present utility model.
Fig. 4 is U10 (74LVC07) the input-output characteristic figure of Fig. 3.
Fig. 5 is the 74LVC07 pin Pareto diagram of Fig. 3.
Fig. 6 is the data format figure of Fig. 3.
Fig. 7 is the flow chart of set-top box and smart card communications.
Embodiment
Below in conjunction with accompanying drawing the utility model is described further:
As shown in the figure, IC-card (Integrated Circuit Card, integrated circuit card) is another the novel information instrument that occurs after magnetic card.IC-card also claims smart card (smartcard), smart card (intelligent card), microcircuit card (microcircuit card) or chip card etc. in some countries and regions.It is a microelectronic chip to be embedded meet in the card base of ISO 7816 standards, makes card form; Very be widely used in and comprised a lot of fields such as finance, traffic, social security.
The IC-card read write line is the bridge between IC-card and application system, is referred to as interface equipment IFD (Interface Device) in the ISO international standard.CPU in the IFD links to each other with IC-card by an interface circuit and communicates.
1, Contact Type Ic Card interfacing principle
The IC-card read write line is wanted to read and write the IC-card that meets the ISO7816 standard.Unique passage that the IC-card interface circuit communicates as the CPU in IC-card and the IFD, for the safety that guarantees communication and exchanges data with reliably, the signal of telecommunication of its generation must satisfy following particular requirement.
1.1 finishing IC-card inserts and the identifying operation that withdraws from
The IC-card interface circuit inserts and the identification of withdrawing from IC-card, i.e. Ka activation and release has very strict sequential requirement.If can not satisfy corresponding requirement, IC-card just can not normally be operated; To damage IC-card or IC-card read write line when serious.
(1) activation (see figure 1)
Be to start the operation to card, interface circuit should be by order active circuit shown in Figure 1:
◇ RST is in the L state;
◇ powers up category-A or category-B according to the type of selected card to VCC, and the electrical characteristics of VCC are seen Fig. 1 under the normal operating condition;
◇ VPP rises to idle condition;
The I/O of ◇ interface circuit should place accepting state;
◇ provides clock signal (category-A card 1~5MHz, category-B card 1~4MHz) to the CLK of IC-card.
As shown in Figure 1, in t ' a time CLK of IC-card is added the clock signal.The I/O circuit should be placed in high-impedance state Z (the ta time is after t ' a) in clock signal is added on 200 clock cycle (ta) of CLK.After clock was added on CLK, keeping RST was that state L at least 400 cycles (tb) makes card reset (tb is after t ' a).At time t ' b, RST is placed in state H.Should promise on the I/O begins (tc is after t ' b) in 400 ~ 40 000 clock cycle (tc) after the signal rising edge on RST.
Be at RST under the situation of state H, if answer signal does not begin in 40 000 clock cycle yet, the signal on the RST will turn back to state L, and the IC-card interface circuit discharges according to shown in Figure 2 IC-card is produced.
(2) dispose procedure (see figure 2)
When information exchange end or failure (for example, the nothing card responds or blocks and is moved out of), interface circuit should discharge circuit by sequential shown in Figure 2:
◇ RST should be changed to state L;
◇ CLK should be changed to state L (unless clock stops) on state L;
◇ VPP should discharge (if it is activated);
◇ I/O should be changed to state A (being not specifically defined in the time at td);
◇ VCC should discharge.
The set-top-box chip of present technique adopts STM5105.Because the intelligent card interface that STM5105 provides needs external interface module ability and smart card communications.Generally use an interface chip and finish this communication, but interface chip is expensive, can improve the design cost of product.Present technique is commonly used with one, and cheap logical device 74LVC07 adds some peripheral resistance, and the circuit that devices such as triode are formed is realized.Whole hardware as shown in Figure 3.
STM5105 supports intelligent card interface
STM5105 supports intelligent card interface---asynchronous receiving-transmitting controller (UART) is used to realize communicating by letter of STM5105 and two smart card controllers.The asynchronous receiving-transmitting controller is supported full duplex asynchronous communication, and receiver uses identical data format and baud rate with transmitter.The transmission of data and reception can be two BUFFER, also can be 16 FIFO.Parity check bit, data bit, position of rest all are programmable in the communication process.Simultaneously, in transmission and the mistake in receiving perceive and strengthened stability of data transmission, the Handshake Protocol of UART and smart card has been guaranteed safety of data transmission.
STM5105 has a smart card clock generator, offers clock signal of smart card.Smart card uses this clock to drive communicating by letter between smart card and the UART.This clock also is used for the smart card cpu clock.The intelligent card interface operation requires the clock of card to adjust, and baud rate can change like this, and the adjustment of clock can be according to the ISO7816 standard.The intelligent card interface that STM5105 provides is supported T=0, T=1 agreement.
The introduction of 74LVC07
74LVC07 is six high pressure output buffer/drivers.It is used to change the driving force of input and output level and raising circuit the output of buffer and input signal same-phase (as Fig. 4).Fig. 5 is an open collector output driven in phase device 74LS07 pin Pareto diagram.The efferent duct of this device is withstand voltage to be 30V, and absorption current can reach about 40mA.Jian Rong device has 74HC07 (CMOS), 74LS17 with it.Wherein: H is a high potential among Fig. 4; The L electronegative potential; Z high impedance ON state.
Communication protocol
In the communication process of Sti5516 and smart card, this paper has adopted the T=0 agreement.
The T=0 agreement is an asynchronous half-duplex byte host-host protocol [2], and promptly the handled least unit of agreement is single byte.Communications command is always started by interface equipment, what is done with order header announcement card, and allows transmitted data byte under the control of the process byte that card sends.The order header is made up of 5 continuous bytes, and these 5 bytes are appointed as CLA, INS, P1, P2, P3.Wherein CLA is a classes of instructions, and INS is the instruction code in the classes of instructions, and P1, P2 are a reference symbol (for example address) of finishing instruction code, and P3 is made up of the object of condition of a variable-length.The object of condition comprises the maximum length byte Le that order data length of field byte Lc, order data territory and response are returned.According to different orders, the composition of the object of condition is also inequality.
Like this, after one 5 byte command transmission of preamble, interface equipment is waited for one or two process bytes.The value of process byte will indicate the action of interface equipment request.If the value of process byte is identical with the INS byte, the expression interface equipment is received all data to the card transmission or from clamping; If identical with the complement code of INS byte, the expression interface equipment is received next byte to the card transmission or from clamping; If be 0x60, expression prolongs the stand-by period; If be 0x61, the expression interface equipment is waited for second process byte, and fetches data according to second process byte transmission order; If be 0x6c, the expression interface equipment is waited for second process byte, and according to order on second process retransmission of bytes.If the process byte is 0x90,0x00, expression communication completes successfully [2~3].
Realization of Communication
In the practical communication process, this paper is decided to be 3.57MHz with operating frequency, guarantees that the baud rate of transfer of data is 9600bps.Data format adopts 8 data bit and 2 position of rests of tape parity check, as shown in Figure 6.
Send in the process of data and reception data in set-top box and smart card, used the driving of Sti5516 intelligent card interface UART.Therefore at first will be before communicating to the UART initialization.After the initialization, the reset answer of blocking is if reply correct ability and cartoon letters.
According to the definition of T=0 agreement, the flow chart of set-top box and smart card communications as shown in Figure 7.
Set-top box with the PNX8300 master chip is an example, and in smart card (smart card) module, the output pin port is respectively:
PNX-SMC-DATA: data I/O mouth
PNX-SMC-C4/PNX-SMC-C8: auxiliary signal line
PNX-SCO-CCK: sampling clock mouth
PNX-SCO-CMDVCC: smart card (smart card) activates mouth
PNX-SCO-RST: system reset mouth
PNX-SCO-OFF: smart card (smart card) detects mouth, and low level is effective.
The port of smart card (smart card) deck is:
SMC-PRES: smart card (smart card) detects mouth, and high level is effective.
As shown in the figure, when smart card insertion deck, whether the SMC-PRES signal very first time can remove to detect smart card and exist.As effectively, the SMC-PRES signal can place high level, and at this time Q12 can be in conducting state, PNX-SCO-OFF signal place low level state, CPU confirms as card and exists and carry out the operation of next step Card Reader.
Signals such as SMC-DA/SMC-RST/SMC-CLK/SMC-C4/SMC-8 add the synchronous output of more peripheral treatment circuits by 74LVC07.

Claims (3)

1. an intelligent card of set-top box telecommunication circuit is characterized in that described circuit comprises logical device (U10), and this U10 pin 2 connects triode (Q1) through pull-up resistor (R71), resistance (R72), and the Q1 emitter connects high level smart card detection mouth through resistance R 69; U10 pin 4 connects the smart card mouth that resets through resistance (R73); U10 pin 6 connects smart card clock mouth through pull-up resistor (R70), resistance (R75); U10 pin 12,10 connects the smart card holding wire through pull-up resistor (R142, R141), resistance (R143, R144) respectively; Wherein R73, R75, R143, R144 be connected across respectively diode (D23) and (D24), (D21) and (D22), (D4) and (D5), (D2) and (D3) between; U10 pin 1,3,5,13,11 is respectively smart card and activates mouth, system reset mouth, sampling clock mouth, auxiliary signal mouth.
2. intelligent card of set-top box telecommunication circuit as claimed in claim 1, it is characterized in that described circuit also comprises triode (Q12), this Q12 base stage connects high level smart card detection mouth through resistance (R153), and its collector electrode connects low level smart card detection mouth through resistance (R152, R151).
3. intelligent card of set-top box telecommunication circuit as claimed in claim 1 is characterized in that described U10 comprises 74LVC07 or 74HC07 (CMOS) or 74LS17.
CNU2007201211043U 2007-06-26 2007-06-26 Intelligent card communication circuit of set up box Expired - Fee Related CN201063703Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2007201211043U CN201063703Y (en) 2007-06-26 2007-06-26 Intelligent card communication circuit of set up box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2007201211043U CN201063703Y (en) 2007-06-26 2007-06-26 Intelligent card communication circuit of set up box

Publications (1)

Publication Number Publication Date
CN201063703Y true CN201063703Y (en) 2008-05-21

Family

ID=39452090

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2007201211043U Expired - Fee Related CN201063703Y (en) 2007-06-26 2007-06-26 Intelligent card communication circuit of set up box

Country Status (1)

Country Link
CN (1) CN201063703Y (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639897B (en) * 2009-08-31 2011-08-17 北京飞天诚信科技有限公司 Method, device and system of operating overrange frequency conversion factor smart card
CN105429623A (en) * 2015-11-30 2016-03-23 青岛海尔科技有限公司 A signal sending circuit, receiving circuit, communication port and power supply module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639897B (en) * 2009-08-31 2011-08-17 北京飞天诚信科技有限公司 Method, device and system of operating overrange frequency conversion factor smart card
CN105429623A (en) * 2015-11-30 2016-03-23 青岛海尔科技有限公司 A signal sending circuit, receiving circuit, communication port and power supply module

Similar Documents

Publication Publication Date Title
US6581122B1 (en) Smart card which operates with the USB protocol
US7685328B2 (en) Generic universal serial bus device operable at low and full speed and adapted for use in a smart card device
CN101719054A (en) Method and device for realizing multi-card slot access
CN101587533B (en) Card reader and card reading method thereof
CN203673508U (en) Adapter
KR20040033157A (en) Wireless communication medium and method for operation thereof
CN201063703Y (en) Intelligent card communication circuit of set up box
CN100589067C (en) A kind of interface device for SIM card and USIM card
EP1650696B1 (en) Integrated circuit card selective power control
EP1721406A1 (en) Reset circuit, data carrier and communication device
KR20030030000A (en) Multiport card
KR101803286B1 (en) Smartcard Interface Conversion Device, Embedded system having the same device and Method used in the same device
CN101354752B (en) Method and system for transmitting information by smart card module
CN102549605B (en) For the electronic circuit of the intelligent card chip that interconnects
US5428813A (en) Special function micro controller integrated circuit programmed to selectively perform one of at least two different and unrelated functions
CN201004233Y (en) A RF card reading device with RS485 interface
CN202422288U (en) Coin-feeding type game machine multi-standard radio-frequency card controller with 485 interface
CN101131666B (en) Contact smart card simulation card
CN201181976Y (en) A viewing card holder for a digital TV receiving terminal
CN202383708U (en) Smart card adapter used for memory interface smart key
Swastika et al. Design and implementation of smart card interface device on Zynq-7000 system-on-chip
CN204242190U (en) Card reading device
CN106778397B (en) A control device and control method for improving the capture rate of active cards
CN201465148U (en) Radio-frequency card read/write device
CN104899622A (en) Device and method compatible with different contact type IC card read-write

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080521

Termination date: 20120626