Ok, quick runthrough of how the cc's initialise and update a subscribed card !
; Card initialisation sequence for TW cards.
; The following Emm's are addressed to a particular card
; and will only be acted upon by that one card whose CAM No
; matches that transmitted in the Emm
;
; Emms are transmitted using PK1 keys which are unique to
; a particular group of cards. No other cards can decrypt
; these Emm's !
;
; Please note the CamId has bee doctored to protect the
; keyset used !
--------------------------------------------------------
; Create a tier 0C with spending limits of £105. Call home @ £100
; Rights Id on this tier is FFFFFF
00 -> Filter: CAM #
5B01 PROVIDER ID (Telewest Cable2 (UK))
2CD17423 CAM #
10 -> CREATE DT $0C (EXPENDINGS limit)
FFFFFF ID RIGHTS
0069 EXPENDINGS LIMIT UNITS (HEX)
00 EXPENDINGS LIMIT 1/100 (BCD)
0064 CALL THRESHOLD
00 -> EMM END
--------------------------------------------------------
; Validate the tier withrights Id of FFFFFF (ie our Tier 0C)
;
00 -> Filter: CAM #
5B01 PROVIDER ID (Telewest Cable2 (UK))
2CD17423 CAM #
22 -> VALIDATE DT $01,$02,$06,$08..$0B
00 TD=$08..$0B, COMPARE SYSTEM ID & RIGHTS ID
FFFFFF ID RIGHTS
00 -> EMM END
--------------------------------------------------------
; Update spending limits on Tier 0C to £105
; This makes sure date is set properly for this tier !
;
00 -> Filter: CAM #
5B01 PROVIDER ID (Telewest Cable2 (UK))
2CD17423 CAM #
25 -> UPDATE PPV EXPENDINGS LIMITS
FFFFFF ID RIGHTS
03 DEBT <- VALUE & CREDIT <- 0
006900 VALUE
1E7E UPDATE DATE: 30/03/2007
00 -> EMM END
---------------------------------------------------------
; Update the phone home threshold in the tier 0C to £100
;
00 -> Filter: CAM #
5B01 PROVIDER ID (Telewest Cable2 (UK))
2CD17423 CAM #
2F -> UPDATE DATA IN DT $08..$0C
FFFFFF ID RIGHTS
10 OFFSET
02 DATA LENGTH. DATA TO WRITE:
0064
00 -> EMM END
----------------------------------------------------------
; Update the callback phone number in Tier 06 (sec prov)
; In cable systems this is used as a reference number
;
00 -> Filter: CAM #
5B01 PROVIDER ID (Telewest Cable2 (UK))
2CD17423 CAM #
63 -> UPDATE CALLBACK PHONE NUMBER
A010000034015020 PHONE NUMBER
02FF
00 -> EMM END
----------------------------------------------------------