Summary of the invention
In view of this, be necessary for above-mentioned smart card disappearance or damage the problem causing paying customer cannot continue to watch program, a kind of program authorization method and system are provided.
A kind of program authorization method provided by the invention, comprises the steps:
S10: whether the smart card of monitoring audio-video terminal exception occurs, if occur abnormal, then produces one group of identifying code and notifies that identifying code is sent to front end by user;
S20: verify identifying code in front end and be verified, after sending interim authorization message, resolves the interim authorization message of acquisition and carries out mandate broadcasting to scrambled program to the audio-video terminal that identifying code is corresponding;
S30: whether monitor interim authorization message expired, if expired, then stop carrying out mandate to scrambled program and plays.
A kind of program authoring system provided by the invention, comprising:
Smart card monitoring means, whether the smart card of monitoring audio-video terminal there is exception, if occur abnormal, then produces one group of identifying code and notifies that identifying code is sent to front end by user;
Temporary Authorization unit, verifies identifying code in front end and is verified, and after sending interim authorization message, resolves the interim authorization message of acquisition and carries out mandate broadcasting to scrambled program to the audio-video terminal that identifying code is corresponding;
Time limit monitoring means, whether expired, if expired, then stop carrying out mandate to scrambled program and play if monitoring interim authorization message.
Program authorization method of the present invention and system, when smart card occurs abnormal, produce identifying code and be sent to front end by user, front end receiver is also verified identifying code, be verified the authorization message that rear transmission is interim, make user that interim authorization message can be used to carry out mandate to scrambled program when smart card occurs abnormal to play, thus make user within application new smart card period, can continue to watch scrambled program, do not affect user and watch scrambled program, bring great convenience to user, greatly ensure that the experience effect of paying customer.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 is the flow chart of the program authorization method in an embodiment, and as shown in Figure 1, this program authorization method comprises the steps:
S10: whether the smart card of monitoring audio-video terminal exception occurs, if occur abnormal, then produces one group of identifying code and notifies that identifying code is sent to front end by user.
When user uses audio-video terminal to watch scrambled program, if smart card occurs abnormal (disappearance or damage), user cannot continue to watch scrambled program.Therefore in this embodiment, need Real-Time Monitoring smart card whether exception to occur, process when smart card is abnormal.
In further execution mode, this step S10 is specially: communicate with smart card in real time, if all cannot communicate with smart card in the given time, then smart card occurs abnormal.If all cannot communicate in the given time, then illustrate that smart card does not have plug-in card for a long time or is damaged, and abnormal conditions occurs, avoids user in the short time not have the situation of plug-in card like this.
If smart card occurs abnormal, then produce one group of identifying code and notify that identifying code is sent to front end by user.Notify that the mode that identifying code is sent to front end by user can be: on mobile terminal identifying code being sent to user's binding or show on the display interfaces such as television set and notify user.
For protection scrambled program copyright and operator's rights and interests; need the uniqueness and the fail safe that ensure identifying code; consider that front end can send different ECM (Entitlement Control Message) to every platform audio-video terminal; CW (control word) scrambling is formed by front end by ECM; smart card obtains CW after resolving ECM, and CW completes the descrambling to scrambled program.CW is change, has very high fail safe.A CW is made up of ODDkey (strange key) and EVENkey (even key) two part.And ODDkey with EVENkey of adjacent two CW always has a part identical, the EVENkey of EVENkey and CW1 of such as CW2 is identical, and the ODDkey of ODDkey and CW2 of CW3 is identical.In this embodiment, step S10 is specially: preserve in a period of time the CW parsed by smart card, and selects two adjacent CW to be encrypted combination, produces one group of identifying code.Due to the corresponding unique audio-video terminal of CW itself and fail safe is higher, the mode adopting two CW to combine produces the fail safe that identifying code effectively can ensure identifying code.
Meanwhile, for preventing the CW preserved to be stolen, uniqueness and the fail safe of identifying code is protected further; this step is specially: preserve the CW parsed by smart card in a period of time; select the CW that two adjacent, and the different piece of two CW is encrypted combination, produce one group of identifying code.So only choose the different piece of two CW, even if CW is stolen also effectively can ensure the fail safe of identifying code.
S20: verify identifying code in front end and be verified, after sending interim authorization message, resolves the interim authorization message of acquisition and carries out mandate broadcasting to scrambled program to the audio-video terminal that identifying code is corresponding.
After identifying code is sent to front end by the mode such as network or mobile terminal by user, by front end, the uniqueness of identifying code and legitimacy are verified.If the verification passes, then send interim authorization message according to the uniqueness of identifying code to the audio-video terminal of correspondence, then resolve the interim authorization message of acquisition and can carry out mandate broadcasting to scrambled program, also can watch scrambled program to enable user when smart card exception.
In further execution mode, this step S20 is specially: by front end receiver identifying code, and be decrypted identifying code, obtains two CW, judges whether two CW are two adjacent C W that front end produces, if be then verified, otherwise do not pass through.
Further, this step S20 is specially: by front end receiver identifying code, and be decrypted identifying code, obtains two parts, judges that whether two parts are the parts of two CW that front end produces, if be then verified, otherwise does not pass through.
Like this by the legal checking of effective and safe, the correctness to audio-video terminal mandate can be ensured.
After being verified, front end sends interim authorization message, concrete, interim authorization message uses identifying code to be encrypted by front end, generate enciphered data to add in CA (condition controls) private data and to be sent to audio-video terminal by transport stream, the CA private data then in filter transport stream, increase newly if find that there is and add data segment, then add data segment with identifying code be decrypted newly-increased, obtain interim authorization message.
S30: whether monitor interim authorization message expired, if expired, then stop carrying out mandate to scrambled program and plays.
Due to the temporary Authorization that this authorization message is when smart card occurs abnormal, interim authorization message comprises licensing term, only ensures can normally watch in user more change card process, exceeds the time limit to continue viewing.Monitor interim authorization message, in licensing term, this authorization message is effective, exceedes, and stops authorizing, so both ensure user have enough time more change card, user can not be affected again in more change card process, watch scrambled program.
This program authorization method, when smart card occurs abnormal, produce identifying code and be sent to front end by user, front end receiver is also verified identifying code, be verified the authorization message that rear transmission is interim, make user that interim authorization message can be used to carry out mandate to scrambled program when smart card occurs abnormal to play, thus make user within application new smart card period, can continue to watch scrambled program, do not affect user and watch scrambled program, bring great convenience to user, greatly ensure that the experience effect of paying customer.
Meanwhile, the present invention also provides a kind of program authoring system, and as shown in Figure 2, this program authoring system comprises:
Smart card monitoring means 100, whether the smart card of monitoring audio-video terminal there is exception, if occur abnormal, then produces one group of identifying code and notifies that identifying code is sent to front end by user.
When user uses audio-video terminal to watch scrambled program, if smart card occurs abnormal (disappearance or damage), user cannot continue to watch scrambled program.Therefore in this embodiment, need Real-Time Monitoring smart card whether exception to occur, process when smart card is abnormal.
In further execution mode, smart card monitoring means 100 communicates with smart card in real time, if all cannot communicate with smart card in the given time, then smart card occurs abnormal.If all cannot communicate in the given time, then illustrate that smart card does not have plug-in card for a long time or is damaged, and abnormal conditions occurs, avoids user in the short time not have the situation of plug-in card like this.
If smart card occurs abnormal, smart card monitoring means 100 produces one group of identifying code and notifies that identifying code is sent to front end by user.Smart card monitoring means 100 notifies that the mode that identifying code is sent to front end by user can be: on the mobile terminal that identifying code is sent to user's binding by smart card monitoring means 100 or show on the display interfaces such as television set and notify user.
For protection scrambled program copyright and operator's rights and interests; need the uniqueness and the fail safe that ensure identifying code; consider that front end can send different ECM (Entitlement Control Message) to every platform audio-video terminal; CW (control word) scrambling is formed by front end by ECM; smart card obtains CW after resolving ECM, and CW completes the descrambling to scrambled program.CW is change, has very high fail safe.A CW is made up of ODDkey (strange key) and EVENkey (even key) two part.And ODDkey with EVENkey of adjacent two CW always has a part identical, the EVENkey of EVENkey and CW1 of such as CW2 is identical, and the ODDkey of ODDkey and CW2 of CW3 is identical.In this embodiment, smart card monitoring means 100 preserves in a period of time the CW parsed by smart card, and selects two adjacent CW to be encrypted combination, produces one group of identifying code.Due to the corresponding unique audio-video terminal of CW itself and fail safe is higher, the mode adopting two CW to combine produces the fail safe that identifying code effectively can ensure identifying code.
Meanwhile, for preventing the CW preserved to be stolen, uniqueness and the fail safe of identifying code is protected further; smart card monitoring means 100 preserves the CW parsed by smart card in a period of time; select the CW that two adjacent, and the different piece of two CW is encrypted combination, produce one group of identifying code.So only choose the different piece of two CW, even if CW is stolen also effectively can ensure the fail safe of identifying code.
Temporary Authorization unit 200, verifies identifying code in front end and is verified, and after sending interim authorization message, resolves the interim authorization message of acquisition and carries out mandate broadcasting to scrambled program to the audio-video terminal that identifying code is corresponding.
After identifying code is sent to front end by the mode such as network or mobile terminal by user, by front end, the uniqueness of identifying code and legitimacy are verified.If the verification passes, then send interim authorization message according to the uniqueness of identifying code to the audio-video terminal of correspondence, then the authorization message that temporary Authorization unit 200 parsing acquisition is interim can be carried out mandate to scrambled program and be play, and also can watch scrambled program to enable user when smart card exception.
In further execution mode, by front end receiver identifying code, and identifying code is decrypted, obtains two CW, judge whether two CW are two adjacent C W that front end produces, if be then verified, otherwise do not pass through.
Further, by front end receiver identifying code, and identifying code is decrypted, obtains two parts, judge that whether two parts are the parts of two CW that front end produces, if be then verified, otherwise do not pass through.
Like this by the legal checking of effective and safe, the correctness to audio-video terminal mandate can be ensured.
After being verified, front end sends interim authorization message, concrete, identifying code is used to be encrypted interim authorization message by front end, generate enciphered data to add in CA (condition controls) private data and to be sent to audio-video terminal by transport stream, the CA private data then in temporary Authorization unit 200 filter transport stream, increase newly if find that there is and add data segment, then add data segment with identifying code be decrypted newly-increased, obtain interim authorization message.
Time limit monitoring means 300, whether expired, if expired, then stop carrying out mandate to scrambled program and play if monitoring interim authorization message.
Due to the temporary Authorization that this authorization message is when smart card occurs abnormal, interim authorization message comprises licensing term, only ensures can normally watch in user more change card process, exceeds the time limit to continue viewing.Monitor interim authorization message, in licensing term, this authorization message is effective, exceedes, and stops authorizing, so both ensure user have enough time more change card, user can not be affected again in more change card process, watch scrambled program.
This program authoring system, when smart card occurs abnormal, produce identifying code and be sent to front end by user, front end receiver is also verified identifying code, be verified the authorization message that rear transmission is interim, make user that interim authorization message can be used to carry out mandate to scrambled program when smart card occurs abnormal to play, thus make user within application new smart card period, can continue to watch scrambled program, do not affect user and watch scrambled program, bring great convenience to user, greatly ensure that the experience effect of paying customer.
Program authorization method of the present invention and system, when smart card occurs abnormal, produce identifying code and be sent to front end by user, front end receiver is also verified identifying code, be verified the authorization message that rear transmission is interim, make user that interim authorization message can be used to carry out mandate to scrambled program when smart card occurs abnormal to play, thus make user within application new smart card period, can continue to watch scrambled program, do not affect user and watch scrambled program, bring great convenience to user, greatly ensure that the experience effect of paying customer.
These are only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.