CN105376619A - Communication method and device of set top box and intelligent card and set top box - Google Patents
Communication method and device of set top box and intelligent card and set top box Download PDFInfo
- Publication number
- CN105376619A CN105376619A CN201510703388.6A CN201510703388A CN105376619A CN 105376619 A CN105376619 A CN 105376619A CN 201510703388 A CN201510703388 A CN 201510703388A CN 105376619 A CN105376619 A CN 105376619A
- Authority
- CN
- China
- Prior art keywords
- smart card
- top box
- set top
- communication
- data
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 117
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000011022 operating instruction Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 49
- 230000008569 process Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 241000218691 Cupressaceae Species 0.000 description 3
- 238000005314 correlation function Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 241000931705 Cicada Species 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000009545 invasion Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012559 user support system Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/418—External card to be used in combination with the client device, e.g. for conditional access
- H04N21/4181—External card to be used in combination with the client device, e.g. for conditional access for conditional access
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4367—Establishing a secure communication between the client and a peripheral device or smart card
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a communication method and device of a set top box and an intelligent card and the set top box, relates to the field of digital television broadcast, and aims at providing a scheme compatible with different intelligent card protocols. When the set top box needs to communicate with the inserted intelligent card, the type of communication protocol employed by the intelligent card is determined according to the identification, which is obtained in advance, of the intelligent card; and the set top box communicates with the intelligent card according to a data structure that matches the type of the communication protocol employed by the intelligent card.
Description
Technical field
The present invention relates to digital television broadcasting field, particularly relate to the means of communication of a kind of Set Top Box and smart card, device and Set Top Box.
Background technology
Condition receiving system (ConditionalAccessSystem, CAS) be the core technology that pay-TV is broadcasted, its major function stops illegal invasion digital broadcast network, and allow authorized user watch specific program and uncommitted user cannot be watched.The main task of CAS is the problem stoping user to receive uncommitted program and how to charge from user, and in radio data system, transmitting terminal to program carry out scrambling (Scrambling), encryption (Encrypting), receiving terminal to user carry out addressing control and authorize deciphering, descrambling.CAS is made up of front end (broadcast) and two, terminal (reception) part: front end completes the scrambling of broadcast data and generates authorization message and complete the encrypted work of descramble key, thus become password by by the program data transmitted from plain code, data after scrambling are useless to undelegated user, and the information of descrambling is provided to authorized user, these information are multiplexed in the transmission class of MPEG-2 (moving image standard) in an encrypted form, descramble key can be obtained after authorized user is decrypted it, also can be described as control word (ControlWord, CW), and the descrambling realized signal and MEPG-2 decoding.Terminal completes deciphering and descrambling by smart card (or other CA cards) and descrambler.On the whole, CAS is the technical guarantee realizing pay television broadcast.
But, because domestic CAS standard exists the characteristic of height privatization, the operator of regional have employed different smart card (SmartCard, SC) agreement, such as T0, T1, T14 agreement, but, because the communication function interface defined in different CA manufacturer is all not identical, therefore, current terminal (as Set Top Box) cannot realize the function of compatible variant smart card protocol.
Wherein, T0, T1 (PacketIdentifier) are ISO7816 host-host protocol; T14 is proprietary protocol.
Summary of the invention
The embodiment of the present invention provides the means of communication of a kind of Set Top Box and smart card, device and Set Top Box, in order to provide a kind of can the scheme of compatible various smart card protocol.
The embodiment of the present invention provides the means of communication of a kind of Set Top Box and smart card, and the method comprises:
When Set Top Box needs to carry out communication with the smart card inserted, according to the mark of the described smart card got in advance, determine the type of the communications protocol that described smart card adopts;
According to the data structure that the communication protocol type adopted with described smart card matches, carry out communication with described smart card.
The embodiment of the present invention also provides the communication device of a kind of Set Top Box and smart card, and this device comprises:
Recognition unit, during for needing to carry out communication with the smart card inserted in Set Top Box, according to the mark of the described smart card got in advance, determines the type of the communications protocol that described smart card adopts;
Communication unit, for according to and the data structure that matches of the communication protocol type that adopts of described smart card, carry out communication with described smart card.
The embodiment of the present invention also provides a kind of Set Top Box, and this Set Top Box comprises communication device, the smart card of Set Top Box and smart card.
As can be seen from technique scheme, the invention provides one can compatible multi-protocols (as current T0, T1, the agreements such as T14) the scheme of smart card communication, Set Top Box in embodiments of the present invention can adopt various chip platform to realize, by calling the mode of the data structure that the communication protocol type that adopts with smart card adapts, the application program be applied on various chip platform all can utilize modulated data structure, be converted to needing the data of communication and can be carried out communication by the data of smartcard identification and smart card, same, the data that smart card returns can also be converted to the data that can be employed procedure identification, and then to realize and smart card carries out the object of communication, like this, the embodiment of the present invention is without the need to changing smart card communication correlation function interface, can realize can the scheme of compatible various smart card protocol, accelerate the transplanting speed of set-top box application program.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the means of communication of a kind of Set Top Box that Fig. 1 provides for the embodiment of the present invention and smart card;
The schematic flow sheet of the smart card communication scheme of a kind of compatible different agreement that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the communication device of a kind of Set Top Box that Fig. 3 provides for the embodiment of the present invention and smart card;
The structural representation of a kind of Set Top Box that Fig. 4 provides for the embodiment of the present invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention can be applied in the terminal of various types of digital television broadcasting, and the embodiment of the present invention can preferably be applicable in various Set Top Box.
At present, the CAS adopted due to the digital-TV operator in different provinces and cities region is not identical, the smart card communication protocol that different CA manufacturer adopts is also different, in order to make Set Top Box (digital television signal receiving terminal) that many smart card communication protocols can be supported, just need for Set Top Box provide a kind of can the scheme of compatible various smart card communication protocol standard.
Fig. 1 shows the schematic flow sheet of the means of communication of a kind of Set Top Box that the embodiment of the present invention provides and smart card, and as shown in Figure 1, this flow process can comprise:
Step 11: when Set Top Box needs to carry out communication with the smart card inserted, according to the mark of the above-mentioned smart card got in advance, determine the type of the communications protocol that above-mentioned smart card adopts.
Step 12: the data structure that the communication protocol type adopted according to above-mentioned smart card matches, carries out communication with above-mentioned smart card.
Optionally, in above-mentioned steps 11, obtain the mark of above-mentioned smart card as follows:
When detecting that having smart card inserts, send the instruction being used to indicate this intelligent card initialization to the smart card that inserted, and receive the feedback information carrying the mark of this smart card that above-mentioned smart card returns.
Optionally, in above-mentioned steps 11, after sending to the smart card that inserted and being used to indicate the instruction of this intelligent card initialization, if do not receive the feedback information that above-mentioned smart card returns, then export smart card inserting error information.
Optionally, in above-mentioned steps, in the data structure that the communication protocol type that above-mentioned and above-mentioned smart card adopts matches, at least define following information: mark, the smart card operating instruction of smart card identify, write data length and reply data length; Wherein, above-mentionedly data are write and reply data all adopts non-type pointer type.
Optionally, in above-mentioned steps, when above-mentioned Set Top Box need to adopt communication protocol type be the smart card of T1 or T14 carry out write operation time, directly the header writing data and valid data that need to be written to this smart card are transferred to this smart card; When above-mentioned Set Top Box needs carry out write operation to the smart card that employing communication protocol type is T0, judge to need the valid data length writing data be written in this smart card whether to be zero, if so, then above-mentioned data of writing directly are transferred to this smart card; Otherwise, the header writing data in this smart card and valid data are written to by needing, the data length of writing defined in the data structure matched according to the communication protocol type adopted with this smart card splits, and the data after splitting are transferred to this smart card.
Optionally, in above-mentioned steps, when above-mentioned Set Top Box needs carry out read operation to the smart card that employing communication protocol type is T1 or T14, the reply data length directly returned by above-mentioned smart card and reply data are transferred to above-mentioned Set Top Box; When above-mentioned Set Top Box needs carry out read operation to the smart card that employing communication protocol type is T0, judge whether the valid data length of the reply data read from this smart card is zero, if so, then return designated state word directly to above-mentioned Set Top Box; Otherwise, by the reply data read out from this smart card, the reply data length defined in the data structure matched according to the communication protocol type adopted with this smart card combines, and the reply data length after combination and reply data are transferred to above-mentioned Set Top Box.
Optionally, in above-mentioned steps, if above-mentioned Set Top Box and above-mentioned smart card communication are believed unsuccessfully, then outputting communication failure information, and send reset instruction to above-mentioned smart card, to indicate above-mentioned smart card resetting successfully, carry out normal communication with above-mentioned Set Top Box.
Below the embodiment of the present invention is described in detail.
There is many families in current digital television CA S, such as Yongxin looks rich, digital video signal, it cypress, irdeto etc., the smart card protocol of every CAS use is not quite similar, such as T0, T1, T14 agreement, to realize smart card communication function interface in the Set Top Box of different platform respectively, due to smart card communication function interface inconsistent of different platform bottom, set-top box application program cannot be grafted directly to, all need again to develop a set of software to dock the smart card communication function interface of different platform bottom, expend the time and efforts of software developer, transplant time is longer.On the other hand, prior art is when transplanting CA system, only consider the smart card communication interface of native system, make set-top box application program also need to adopt different software to process respectively for often kind of cartoon communication interface at same hardware platform, reduce the speed that card communication function is transplanted.In order to solve the problem, embodiments provide a kind of can the method for cross-platform compatible multi-protocols smart card communication, so that when transplanting the multiple smart card communication protocol of different platform, set-top box application program does not need replacing to call smart card correlation function interface, accelerates transplanting and development rate.
The present invention is between application software and smart card driver in Set Top Box program, a set of general-purpose interface function is set according to the interface function that dissimilar, the communication of different agreement smart card will be transplanted, be supplied to set-top box application program, can the type of automatic decision current smart cards and agreement, call the smart card driver module used required for general-purpose interface function pair and current smart cards and carry out initialization, the data structure of setting general-purpose, communication data that is dissimilar, agreement is converted to common data structure respectively, is supplied to set-top box application program.The method that the embodiment of the present invention is above-mentioned, can improve the compatibility that smart card communication interface is transplanted, and simplifies set top box side software development flow, improves cross-platform transplanting speed.
In embodiments of the present invention, the power function being specifically supplied to set-top box application program can be mainly as follows:
1, initialization function: for providing intelligent card initialization function interface, its function calls smart card driver module according to the number of the smart card (SmartCard, SC) of platform support to carry out SC initializing resource.
2, the function of smart card resource quantity is obtained: for being supplied to the resource ID of all smart cards of User support.
3, application uses smart card resource function: for registering a call back function, wherein the packets of information of call back function contains the resource ID of smart card, current smart cards state, smartcard identification (looking rich, digital video signal, sky cypress, irdeto etc. as Yongxin), further, application program carries out function of application process according to this call back function information.The return information of call back function also uses pointer, such benefit is that function interface parameter has defined without the need to amendment, if later release callback information changes, only need revise to application program definition information structure, application software is to using smart card resource function adaptable interface without the need to amendment.
4, smart card closes function, provides and closes SC resource function, call smart card driver module function, release used resource.
5, smart card management function: this function performance contains cartoon communication function, card reset function, provides Card Type to application.Wherein, the parameter of smart card management function can comprise: smart card resource ID, smart card operating instruction, the card data that will write, the data that read.
Wherein, smart card operating instruction comprises: the operations such as smart card reset, smart card communication, acquisition smartcard types.
Concrete, the operation of smart card reset function is used for calling smart card driver module reset function, and distinguish acquisition smart card protocol type (T0, T1, T14), protocol type can not be supplied to application program, uses for the smart card communication internal control in the embodiment of the present invention.
Concrete, smart card communications operation carries out corresponding T0, T1, T14 protocol instructions read operation for the smart card communication protocol identified that resets according to smart card.
Wherein, cartoon letters writes data, pointer can be abstracted into, and reality defines the actual data structure of each smart card communication respectively to application program, data structure that what such as irdeto was corresponding write comprises the header (header) of card transfer instruction and payload (valid data) data and corresponding data length, and the transport protocol type according to the card of correspondence does respective handling.
For example, for the situation of T=1 (i.e. T1 agreement) or T=14 (i.e. T14 agreement), itself header and payload is that integrally data carry out card transmission.
For T=0 (i.e. T0 agreement), then need to process in two kinds of situation:
The first situation: if payload data length is 0, then directly carry out card transmission.
The second situation: if payload data length is not 0, needs header and payload again to assemble, and then carries out card transmission process.
And be use T0 agreement for Tongfang and digital video signal, therefore, needing to applying the data structure provided is card communication data and length.
Again for example, the card data that will read are defined as common data structure pointer, the data structure that such as irdeto is corresponding, for T=0 (i.e. T0 agreement), need to process in two kinds of situation:
The first situation: if payload data length is 0, direct return state word SW1 and SW2.
The second situation: the first situation: if payload data length is not 0, then need to return answer byte and reply data.
For the situation of T=1 (i.e. T1 agreement) or T=14 (i.e. T14 agreement), then directly return answer byte and reply data.
And be use T0 agreement for Yongxin depending on rich and digital video signal, therefore, need to applying the combination that the data structure provided is answer byte and reply data.
The like, be no matter the smart card for which kind of CA producer, only need define the data structure of CA producer smart card requirement transmission to application program.Like this, after exploitation completes, can be transplanted to all chip platforms, set-top box application program, without the need to changing, accelerates development rate.
Set Top Box in the embodiment of the present invention can utilize the compatible scheme of above-mentioned defined power function realization to various agreement, Fig. 2 shows the schematic flow sheet of the smart card communication scheme of a kind of compatible different agreement that the embodiment of the present invention provides, as shown in Figure 2, this flow process can comprise:
Step 21: program initialization.
Step 22: insert smart card, calls smart card and drives reseting module to carry out card reset operation.
During specific implementation, initialization SC related resource, calls smart card driver module and carries out initialization (namely initially change smart card device, and carry out smart card reset operation), obtains the number of the SC that platform is supported simultaneously.
Step 23: judge whether card resets successful, unsuccessfully if resetted (namely reset and report an error), then perform step 24; Successfully (namely reset correct) if resetted, then perform step 25.
During specific implementation, the card reset success returned according to smart card or failed message, judge whether card resets successful, unsuccessfully (namely reset and report an error), then perform step 24 if resetted; Successfully (namely reset correct) if resetted, then perform step 25.
Step 24: report an error if resetted, then use the call back function of smart card resource function registration to reply to the message of application program smart card inserting error by application.
After execution step 24, terminate this flow process.
Step 25: if it is correct to reset, then further according to the answer byte of smart card, the type (Tongfang, digital video signal, sky cypress, irdeto etc.) of identification intelligent card and protocol type.
Step 26: use the call back function of smart card resource function registration to reply to application program by application program, inform the smartcard types that application program Set Top Box is current, carry out card management function data structure for user according to Card Type and use, use the operations such as corresponding CA system.
During specific implementation, application for registration resource function (call back function packets of information contains: the information such as SCID, card-like state, smartcard types), judge whether registration function is NULL (sky), if registration function is NULL, then registration failure process ends; If registration function is non-NULL, then return information, comprising information such as available smart card ID, smartcard types.
Step 27: when application program needs and smart card communication, call smart card management function and carry out corresponding smart card communication.
During specific implementation, call smart card management function, communication data that is dissimilar, agreement is converted to respectively the communication data of the data structure adopting the protocol type adopted with current smart cards to match, is supplied to set-top box application program.
For example, for the write operation instruction to smart card, when Set Top Box need to adopt communication protocol type be the smart card of T1 or T14 carry out write operation time, directly the header writing data and valid data that need to be written to this smart card are transferred to this smart card.
Or, when Set Top Box needs carry out write operation to the smart card that employing communication protocol type is T0, judge to need the valid data length writing data be written in this smart card whether to be zero, if so, then will write data and directly be transferred to this smart card; Otherwise, the header writing data in this smart card and valid data are written to by needing, the data length of writing defined in the data structure matched according to the communication protocol type adopted with this smart card splits, and the data after splitting are transferred to this smart card.
Again for example, for the read operation instruction to smart card, when Set Top Box needs carry out read operation to the smart card that employing communication protocol type is T1 or T14, the reply data length directly returned by smart card and reply data are transferred to Set Top Box.
Or, when Set Top Box needs carry out read operation to the smart card that employing communication protocol type is T0, judge whether the valid data length of the reply data read from this smart card is zero, if so, then return designated state word directly to Set Top Box; Otherwise, by the reply data read out from this smart card, the reply data length defined in the data structure matched according to the communication protocol type adopted with this smart card combines, and the reply data length after combination and reply data are transferred to Set Top Box.
Further, if communication makes mistakes, then need to call smart card reset operation, and terminate this flow process.
As can be seen from technique scheme, the invention provides one can compatible multi-protocols (as current T0, T1, the agreements such as T14) the scheme of smart card communication, Set Top Box in embodiments of the present invention can adopt various chip platform to realize, by calling the mode of the data structure that the communication protocol type that adopts with smart card adapts, the application program be applied on various chip platform all can utilize modulated data structure, be converted to needing the data of communication and can be carried out communication by the data of smartcard identification and smart card, same, the data that smart card returns can also be converted to the data that can be employed procedure identification, and then to realize and smart card carries out the object of communication, like this, the embodiment of the present invention is without the need to changing smart card communication correlation function interface, can realize can the scheme of compatible various smart card protocol, accelerate the transplanting speed of set-top box application program.
Based on identical technical conceive, the embodiment of the present invention also provides the communication device of a kind of Set Top Box and smart card, and Fig. 3 shows the structural representation of the communication device of a kind of Set Top Box that the embodiment of the present invention provides and smart card, and as shown in Figure 3, this device comprises:
Recognition unit 31, during for needing to carry out communication with the smart card inserted in Set Top Box, according to the mark of the described smart card got in advance, determines the type of the communications protocol that described smart card adopts;
Communication unit 32, for calling the data structure that the communication protocol type that adopts with described smart card matches, carries out communication with described smart card.
Based on identical technical conceive, the embodiment of the present invention also provides a kind of Set Top Box, Fig. 4 shows the structural representation of a kind of Set Top Box that the embodiment of the present invention provides, and as shown in Figure 4, this Set Top Box comprises: the communication device 41 of Set Top Box and smart card, smart card 42.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device, make the function that the instruction that performed by the processor of this computer or other programmable data processing device can be specified in a flow process in realization flow figure or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in a flow process of flow chart or a square frame of multiple flow process and/or block diagram or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (9)
1. means of communication for Set Top Box and smart card, is characterized in that, the method comprises:
When Set Top Box needs to carry out communication with the smart card inserted, according to the mark of the described smart card got in advance, determine the type of the communications protocol that described smart card adopts;
The data structure that the communication protocol type adopted according to described smart card matches, carries out communication with described smart card.
2. the method for claim 1, is characterized in that, obtains the mark of described smart card as follows:
When detecting that having smart card inserts, send the instruction being used to indicate this intelligent card initialization to the smart card that inserted, and receive the feedback information carrying the mark of this smart card that described smart card returns.
3. method as claimed in claim 2, is characterized in that, after sending to the smart card inserted and being used to indicate the instruction of this intelligent card initialization, if do not receive the feedback information that described smart card returns, then exports smart card inserting error information.
4. the method according to any one of claim 1-3, it is characterized in that, in the data structure that the communication protocol type that described and described smart card adopts matches, at least define following information: mark, the smart card operating instruction of smart card identify, write data length and reply data length; Wherein, write data and reply data all adopt non-type pointer type.
5. method as claimed in claim 4, is characterized in that the data structure that the communication protocol type that described basis adopts with described smart card matches is carried out communication with described smart card, specifically comprised:
When described Set Top Box need to adopt communication protocol type be the smart card of T1 or T14 carry out write operation time, directly the header writing data and valid data that need to be written to this smart card are transferred to this smart card;
When described Set Top Box needs carry out write operation to the smart card that employing communication protocol type is T0, judge to need the valid data length writing data be written in this smart card whether to be zero, if so, then write data are directly transferred to this smart card; Otherwise, the header writing data in this smart card and valid data are written to by needing, the data length of writing defined in the data structure matched according to the communication protocol type adopted with this smart card splits, and the data after splitting are transferred to this smart card.
6. method as claimed in claim 4, is characterized in that the data structure that the communication protocol type that described basis adopts with described smart card matches is carried out communication with described smart card, specifically comprised:
When described Set Top Box needs carry out read operation to the smart card that employing communication protocol type is T1 or T14, the reply data length directly returned by described smart card and reply data are transferred to described Set Top Box;
When described Set Top Box needs carry out read operation to the smart card that employing communication protocol type is T0, judge whether the valid data length of the reply data read from this smart card is zero, if so, then return designated state word directly to described Set Top Box; Otherwise, by the reply data read out from this smart card, the reply data length defined in the data structure matched according to the communication protocol type adopted with this smart card combines, and the reply data length after combination and reply data are transferred to described Set Top Box.
7. the method according to any one of claim 1-3 or 5-6, it is characterized in that, if described Set Top Box and described smart card communication are believed unsuccessfully, then outputting communication failure information, and send reset instruction to described smart card, to indicate described smart card resetting successfully, carry out normal communication with described Set Top Box.
8. a communication device for Set Top Box and smart card, is characterized in that, this device comprises:
Recognition unit, during for needing to carry out communication with the smart card inserted in Set Top Box, according to the mark of the described smart card got in advance, determines the type of the communications protocol that described smart card adopts;
Communication unit, for calling the data structure that the communication protocol type that adopts with described smart card matches, carries out communication with described smart card.
9. a Set Top Box, is characterized in that, this Set Top Box comprises communication device, the smart card of Set Top Box as claimed in claim 8 and smart card.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510703388.6A CN105376619B (en) | 2015-10-26 | 2015-10-26 | A kind of set-top box and the means of communication with smart card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510703388.6A CN105376619B (en) | 2015-10-26 | 2015-10-26 | A kind of set-top box and the means of communication with smart card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105376619A true CN105376619A (en) | 2016-03-02 |
CN105376619B CN105376619B (en) | 2019-03-19 |
Family
ID=55378354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510703388.6A Active CN105376619B (en) | 2015-10-26 | 2015-10-26 | A kind of set-top box and the means of communication with smart card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105376619B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106028100A (en) * | 2016-05-13 | 2016-10-12 | 深圳智英电子有限公司 | Embedded type identification encryption card of Beidou satellite communication based digital set-top box |
CN108683930A (en) * | 2018-04-27 | 2018-10-19 | 青岛海信传媒网络技术有限公司 | DTV, the initial method of its interface, device and readable storage medium |
CN108989862A (en) * | 2018-08-02 | 2018-12-11 | 深圳市茁壮网络股份有限公司 | A kind of processing method and processing device when smart card is operating abnormally |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102012887A (en) * | 2010-11-30 | 2011-04-13 | 广东星海数字家庭产业技术研究院有限公司 | Multi-hardware compatible card swiping driving system |
CN102098575A (en) * | 2010-12-31 | 2011-06-15 | 青岛海信宽带多媒体技术有限公司 | Migration method compatible with multiple conditional access (CA) systems and CA method |
CN202035111U (en) * | 2011-03-30 | 2011-11-09 | 深圳市九洲电器有限公司 | Software upgrading device and upgrading system for set top box |
CN102572580A (en) * | 2012-01-31 | 2012-07-11 | 福建创频数码科技有限公司 | Method for descrambling set top box through network |
-
2015
- 2015-10-26 CN CN201510703388.6A patent/CN105376619B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102012887A (en) * | 2010-11-30 | 2011-04-13 | 广东星海数字家庭产业技术研究院有限公司 | Multi-hardware compatible card swiping driving system |
CN102098575A (en) * | 2010-12-31 | 2011-06-15 | 青岛海信宽带多媒体技术有限公司 | Migration method compatible with multiple conditional access (CA) systems and CA method |
CN202035111U (en) * | 2011-03-30 | 2011-11-09 | 深圳市九洲电器有限公司 | Software upgrading device and upgrading system for set top box |
CN102572580A (en) * | 2012-01-31 | 2012-07-11 | 福建创频数码科技有限公司 | Method for descrambling set top box through network |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106028100A (en) * | 2016-05-13 | 2016-10-12 | 深圳智英电子有限公司 | Embedded type identification encryption card of Beidou satellite communication based digital set-top box |
CN106028100B (en) * | 2016-05-13 | 2018-12-21 | 深圳智英电子有限公司 | Based on Beidou satellite communication, the top box of digital machine embedded with identification encrypted card |
CN108683930A (en) * | 2018-04-27 | 2018-10-19 | 青岛海信传媒网络技术有限公司 | DTV, the initial method of its interface, device and readable storage medium |
CN108683930B (en) * | 2018-04-27 | 2020-09-25 | 青岛海信传媒网络技术有限公司 | Digital television, initialization method and device of interface of digital television and readable storage medium |
CN108989862A (en) * | 2018-08-02 | 2018-12-11 | 深圳市茁壮网络股份有限公司 | A kind of processing method and processing device when smart card is operating abnormally |
CN108989862B (en) * | 2018-08-02 | 2021-02-26 | 深圳市茁壮网络股份有限公司 | Processing method and device for abnormal operation of smart card |
Also Published As
Publication number | Publication date |
---|---|
CN105376619B (en) | 2019-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU747142B2 (en) | Downloading of applications in a digital decoder | |
EP1309182B1 (en) | A method of providing a code upgrade to a host device having a smart card interface | |
CN101689160B (en) | Memory interface card with sim functions | |
EP1632848A1 (en) | Method of providing patches for software | |
CN1255266A (en) | Method and apparatus for preventing fraudulent access in conditional access system | |
JPH01220925A (en) | broadcast receiver | |
CN105376619A (en) | Communication method and device of set top box and intelligent card and set top box | |
WO2017140426A1 (en) | Method and device for writing data into intelligent card | |
EP3414911B1 (en) | Method and device for identifying a peripheral device from a digital content | |
KR100564709B1 (en) | Interface Modules and Decoders for Hosts | |
CN103997678A (en) | Multi-CAS seamless switching method and multi-CAS seamless switching system | |
US20210232708A1 (en) | Method for protecting encrypted control word, hardware security module, main chip and terminal | |
CN102572580B (en) | Method for descrambling set top box through network | |
CN103037255A (en) | Automatic adaptive method for conditional access module (CAM) card | |
CN103532965A (en) | Message call-back method and device | |
CN107077542A (en) | Common interface main frame and common interface conditional access module | |
CN104883594A (en) | Method and system for switching card CA (conditional access) and card-free CA of set-top box | |
KR20040047865A (en) | Smartcard uart for minimizing processor demands in a conditional access system | |
CN102611934A (en) | System and method coexisting card CA (Conditional Access) and cardless CA | |
CN101355642A (en) | Digital television receiving terminal | |
CN105516797A (en) | Control method and device supporting multi-CA (Certification Authority) of cable set-top box | |
KR101404713B1 (en) | SYSTEM FOR MANAGING FINANCE Micro SD | |
KR100950596B1 (en) | Broadcasting receiving apparatus based on downloadable conditional access system and method for reinforcing security thereof | |
CN115857980A (en) | Security chip upgrading method and device, cloud platform, terminal equipment and security chip | |
WO2006016181A1 (en) | Encryption in communications systems using over - the - air rekeying |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190124 Address after: 529000 Area A, Haixin Avenue, Tangxia Town, Pengjiang District, Jiangmen City, Guangdong Province Applicant after: Guangdong Hisense Broadband Technology Co., Ltd. Address before: 266555 No. 218, Qian Wan Gang Road, Qingdao economic and Technological Development Zone, Shandong Applicant before: Hisense Broadband Multimedia Technology |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |