Professional Documents
Culture Documents
This manual introduces the basic conception and structure of CAS, including
Attention
Please use the cable with good quality and confirm the connector is in
good condition.
1
CONTENT
2
CHAPTER1 Introduction
1.1Brief
purpose.
1.2Architecture
CAS NETWORK MANAGEMENT --- Config, manage and monitor the core
module of CAS
ECMG --- Entitlement Control Message Generator, which produces the ECM
EMM messages and repeatedly plays them out at the appropriate times.
EIS --- The functional unit in charge of holding all the schedule information,
all the configurations and CA specific information required for the complete
system. It is the overall database store for the whole head-end system.
ENCRYPT CONTROL SYSTEM --- Control the ECMG, EMMG, EIS of CAS
SMS INTERFACE --- Receive the data from SMS. Transform it into the right
3
format required by CAS and save it for EMMG using.
CAS EVENT INTERFACE --- Receive PMS data and transform it into CAS
CLOCK SYNCHRONIZER --- Contains clock server and client and bring the
EPG SIG
STB+
EIS ECMG
CAS CA_core
Event
Interface CAS
Encrypt system
Smartcard
Database
SMS
interface EMMG
RECEIVER CAS-CORE SYSTEM --- Receive and process ECMs and EMMs
4
1.3 Function and Principle
and IRD through unique address, group address, region address and all
address.
Encrypt Control --- Encrypt ECM, CW, EMM etc by optional encryption
arithmetic.
IC STB Match --- One STB has its own unique IC.
Multiple Broadcasters --- Every broadcaster use its own key and
Mature Control --- Classify programs into different level to control viewing of
specified people.
Before digital video/audio stream sent into MUX / SCR by ASI standard
5
done in MUX / SCR so that the communication connection between CAS
and MUX / SCR could be done including creating correlative PMT, CAT table
etc. When MUX / SCR start scrambling TS, it will pre-generate control word
(CW) and transport CW to ECMG before scrambling, which can return ECM
information that contains CW, AC and system time encrypted etc. When
MUX / SCR receives ECM information packet, it will be inserted into TS with
insert EMM, SI into TS. In the end, the TS with ECM, EMM, SI, Video, Audio
After STB receives the scrambled TS through cable, ECM and EMM will be
When smartcard gets this information, the entitlement from EMM will be
decrypted according to entitlement and specified key. When STB get CW, if
1.4 Security
key (CW) is usually changed every 5 ---10 seconds one time randomly. It is
strongly effective to defend against the attack from Hacker. Because of DVB
specified entitlement.
6
symmetry cryptographic key arithmetic. Therein to, programs are scrambled
and SK, PDK and IK are encrypted by PDK, IK and PPK correspondingly
and transported through EMM. At receiver, smartcard decrypts IK, PDK, SK,
achieved.
smartcard one time. Meanwhile SK, PDK and IK also be saved in the same
area and configured its alteration and transporting time according to demand
1.5 Features
1.5.1 Parameters
Max provider 8
1.5.2 Reference
7
Title: DVB specification for data broadcasting
Recommendation H.222.0
1.6 Abbreviations
SI Service Information
8
CHAPTER2 Operation Manual
9
2. Draw out CA event
information from the CAS
database, and classify the
events, and generate
changed AC condition
automatically.
3. Send AC information packets
to ECMG.
6 DBDataConvert CAS database interface Receive user information and
convert entitlement information from
SMS,and store them in the
CAS database after converted
process.
7 CA_menu CAS database Configure main parameters for
configuration CAS, and ensure the system
running accurately.
8 AC_edit AC information editor Edit AC conditions for
scrambler.
3) Startup SNMP service in operation system, and the ECMG and EMMG
configure and scout ECMG and EMMG system with the network manager.
5) Startup EIS on condition that the PPV and IPPV must be supported..
10
2.2 Operation
There will be displayed like fig2-3 if the username and password you
input was right. If you don’t want to change the username or password,
choose Cancel key, otherwise press OK to change the username or
password.
fig2-1
fig2-2
fig2-3
The wiretap window of the Encryption Control System will display EMM
License (displayed like fig2-4), ECM License, EPG License, EIS License
and SCS License information, if the procedure startup successfully.
fig2-4
11
2.2.2 Startup CA Manager Procedure
CA Network Manager is installed on a PC station, connecting with the CA
server with SNMP protocol, and managed and watched the CA system for
long-distance. The CA Manager procedure could install on WINDOWS
XP, WINDOWS 2000 or WINDOWS 2003, and you can startup it through
running CaManager.exe.
fig2-5
There are EMMG and ECMG key at the down of CA manager procedure
window, displayed like fig2-6.
Choose EMMG and click the blank with the right key of your mouse,
choose Add New EMMG.
12
fig2-7
fig2-8
fig2-6
fig2-9
Fill the host IP address in the blank displayed like fig2-7 (‘host’ is the PC
which the EMMG software was installed. If you establish channel
successful, it will be displayed like fig2-8, and if you establish failed, the
status should be showed as fig2-9.
13
fig2-10
fig2-11
Control Card Server Running encrypt system control card and encrypt
Name (or IP) control procedure (Encrypt Control) server’s IP
address.
Port Encrypt control procedure’s wiretap port usually is
5008.
fig2-12
14
Entitlement
Cancel
B_mail Send out the E-mail.
Quick Programe Various entitlement that withdrew to just reserve
Entitlement in the database, quickly send it out.
Delete Programe Delete the program provider.
Provider
User Register Transmit customer register data to the customer
card.
User Stop Temporarily cancel the current entitlement of the
customer, mainly including: The channel
entitlement.
User Resume Resume the current entitlement of customer,
mainly include The channel entitlement.
User Delete Delete all data of the customer intelligence card.
Debit Send out the counterfeit money into the customer
purse.
Share Send out the customer entitlement according to
an address.
Subtitle Send out the Subtitle.
Free Send out the entitlement of free watch of the
program.
fig2-13
fig2-14
15
fig2-15
fig2-16
fig2-17
16
Repeat the process as above introduction to finish the channels between
EMMG and other scramblers. All the parameters are just the same except
the IP address.
One EMMG can connect with 20 scramblers, if you want to connect much
more scramblers, you need another EMMG server.
fig2-18
17
TCP Port The socket port number, combined with scrambler it
constitutes the server of scrambler wiretap carry, and is
waiting for EMMG to connect with it via TCP. The value
confine is 1025~65535. Watch out the port number does
not conflict with other used port number.
Accept to use the same or different port number for
different EMMG channel. For example, you established
the channel 1, channel 2… you can use the same port
4640, and also can use 4640, 4641… but the port
numbers must be accord with the scramblers’.
UDP Port The socket port number which is the scrambler port to
receive the EMMG broadcast messages. The value
confine is 1025~65535. Watch out the port number does
not conflict with other used port number.
Accept to use the same or different port number for
different EMMG channel. For example, you established
the channel 1, channel 2… you can use the same port
4660, and also can use 4660, 4661… but the port
numbers must be accord with the scramblers’.
Channel_Id EMMG/PDG has to establish a channel with scrambler,
the combination of Client_ID and Channel_ID is ensured
an EMM/PD channel in the CA system. The default value
is 1. And the Data_ID filled in the scrambler must be same
value.
[Connect Type]
TCP The EMMG first to establish the TCP connection to MUX
then sends out the EMM data packet through a TCP port.
The EMM data packet is compatible with the standard
Simulcrypt MUX EMMG interface.
TCP+UDP The EMMG first to establish the TCP connection to MUX,
then send out the EMM data packet through a UDP port.
The EMM data packet is compatible with the standard
Simulcrypt MUX EMMG interface.
UDP The EMMG does not establish the conjunction to MUX, it
just sends out the TS packet consists of EMM data to
MUX. The EMM data packet is compatible with the
standard Simulcrypt MUX EMMG interface.
[Section_TSpkt_flag]
Section EMMG send EMM packets by Section type.
TS EMMG send EMM packets by TS packet type.
[Close Channel]
Choose the Channel displayed like fig2-19, and click the right button of
mouse. It will display the menu open, click ‘Close Channel’ menu item to
close the channel immediately, showed as fig2-20. You also can close a
unused channel by this way.
18
fig2-19
fig2-20
Choose the EMMG server IP address showed as fig2-21, click right key of
the mouse. Choose Flash on the pop menu displayed like fig2-22. If
EMMG do not start, the Start EMMG is deep style, and you can press
Start EMMG to start EMMG. If the Start EMMG is undertone style, the
EMMG have been startup, and you can press Close EMMG to close it.
fig2-21
fig2-22
19
2.2.4 ECMG Operation
There are EMMG and ECMG key at the down of CA manager procedure
window, displayed like fig2-23.
Choose ECMG and click the blank with the right key of your mouse,
choose Add New ECMG.
fig2-24
fig2-25
fig2-26
fig2-23
Fill the host IP address in the blank displayed like fig2-24 (‘host’ is the PC
which the ECMG software was installed. If you establish channel
successful, it will be displayed like fig2-25, and if you establish failed, the
status should be showed as fig2-26.
20
①Wrong host IP address.
②SNMP service on the ECMG host does not startup.
③ECMG do not register on the ECMG host.
fig2-27
[EIS Setting]
Select EIS If this button is checked, it means that the EIS
interface is used, and to make AC condition's
exchange with selected EIS. When this options is
selected, the screen will display related options
such as the name of EIS. If this option is not
selected, it means that the connection was not
21
established with EIS.
EIS Name Input the name or IP address of the server which
the EIS was running.
EIS Port Input the port number of EIS service (default port
number is 7001).
EIS Amount For advance the amount of channels. This version
only supports one channel.
MUX Number Input MUX (as PTC_NO) number, and you can
input many different values. You can use ‘,’ to
space out each value. The values are used of
filtration EIS data packets.
[Database Setting]
DB If the option is checked, the connection between CA Network
Source Manager and CA system database is established.
Service The CA system database service name, it is usually ca.
User The user name in the database, it usually is ca.
Pwd The password of the user ‘ca’ , it usually is ca.
Click the right key of the mouse, and click ‘Create New Channel’ of the pop
menu, displayed like fig2-29.
fig2-28
fig2-29
22
fig2-30
One ECMG can connect with 20 scramblers, if you want to connect much
more scramblers, you need another ECMG server.
fig2-31
[Channel Setting]
Muxplexer The IP address of the MUX or Scrambler that had to connect
Name (or IP with ECMG.
Address)
Port The port number of the TCP communication, the default is
(6001).It ranges from 0 to 65535, if linked to many
multiplexers, then all the multiplexers must use the same
port number.
[Scramble Setting]
23
AC_Delay_Start The delay time of ECM compared to the beginning
of the scrambling period in the first scrambling
period after AC change. If the value is positive ‘n’, it
means that ECM is sent out ‘n’ millisecond later
than beginning time of the scrambler period. If the
value is negative ‘n’, it means that ECM is sent out
‘n’ millisecond earlier than the beginning time of the
scrambler period. The default number is 0 ms. It is
used to replace the Delay_start of the first period.
AC_Delay_Stop The delay time of ECM compared to the ending of
the scrambling period in the first scrambling period
after AC change. If the value is positive ‘n’, it means
that ECM is sent out ‘n’ millisecond later than
ending time of the scrambler period. If the value is
negative ‘n’, it means that ECM is sent out ‘n’
millisecond earlier than the ending time of the
scrambler period. The default number is 0 ms. It is
used to replace the Delay_stop of the first period.
Transition_Delay_St The delay time of ECM compared to the beginning
art of the scrambling period in the first scrambling
period after changing from the scrambler into the
clear statement. If the value is positive ‘n’, it means
that ECM is sent out ‘n’ millisecond later than
beginning time of the scrambler period. If the value
is negative ‘n’, it means that ECM is sent out ‘n’
millisecond earlier than the beginning time of the
scrambler period. The default number is 0 ms. It is
used to replace the Delay_start of the first period.
Transition__Delay_ The delay time of ECM compared to the ending of
Stop the scrambling period in the first scrambling period
after changing from the scrambler into the clear
statement. If the value is positive ‘n’, it means that
ECM is sent out ‘n’ millisecond later than ending
time of the scrambler period. If the value is negative
‘n’, it means that ECM is sent out ‘n’ millisecond
earlier than the ending time of the scrambler period.
The default number is 0 ms. It is used to replace the
Delay_stop of the first period.
ECM_rep_period Input the number of ECM_rep_period, means the
data of ECM in the multiplexer that send again
period take the millisecond as the unit, default value
is 200 ms.
Delay_Start The delay time of ECM compared to the beginning
of the scrambling period. If the value is positive ‘n’,
it means that ECM is sent out ‘n’ millisecond later
than beginning time of the scrambler period. If the
value is negative ‘n’, it means that ECM is sent out
‘n’ millisecond earlier than the beginning time of the
scrambler period. The default number is -3000 ms.
Delay_Stop The delay time of ECM compared to the ending of
the scrambling period. If the value is positive ‘n’, it
means that ECM is sent out ‘n’ millisecond later
than ending time of the scrambler period. If the
value is negative ‘n’, it means that ECM is sent out
‘n’ millisecond earlier than the ending time of the
scrambler period. The default number is -3000 ms.
24
Min_CP_duration It takes 100 ms as the unit, that is the least period
of the scrambler; it is used when establishing the
channel. Min_CP_duration number must be bigger
than max_comp_time; the default value is 6500 ms.
Max_comp_time Input the number of max_comp_time, means the
ECM for born hour biggest time need, that number
at the passage establish use, usually represent the
ECM to respond to time for super hour, default
value is 6000 ms.
Section_TSpkt_flag Input the parameter of Section_TSpkt_flag, When
the number is a 0x00, the ECM uses the format
MPEG-2.When the number is a 0x01, the ECM
uses the format TS (188 bytes length).
CW Select If choosing ‘ the Const CW’ options, then the control
word of the ECM keeps constant (compare with the
control word received from MUX/scrambler); if
choosing ‘the CW Transform’ option, then do
transformation processing for the CW[3] and CW[7]
of CW, and wrap them into the data of ECM. The
control word is chosen by the request of
MUX/scrambler.
Lead When the Lead CW = 0, CW_per_msg = 1, the
CW\CW_per_msg ECMG ask MUX/scrambler to deliver one control
word to ECMG, and the data of ECM will include
one control word only. When the Lead CW = 1,
CW_per_msg = 2, the ECMG ask MUX /scrambler
to deliver two control word to ECMG, and the data
of ECM will include two control word. When the
Lead CW = 1, CW_per_msg = 1, the ECMG ask
MUX/scrambler to deliver one control word to
ECMG, and the data of ECM will include two control
words: one is from the cache, another is from
current control word. In other cases the ECMG only
delivers one control word. The default setting is
Lead CW = 1, CW_per_msg = 2. For the old edition
of MUX / scrambler, please set the Lead CW = 1,
CW_per_msg = 2.
After the ECMG startup by the network manager, there will open an ECMG
procedure window on the ECMG server, displayed like fig2-32.
Choose ‘Channel Window’ on the ‘Window’ menu, you can watch the
connection status and the data exchange status between ECMG and a
scrambler.
25
fig2-32
Choose ‘Main Window’ on the ‘Window’ menu, you can watch the ECMG
connection status with each scrambler.
fig2-33
After the EMMG startup by the network manager, there will open an EMMG
procedure window on the EMMG server, displayed like fig2-34.
Choose ‘Scrambler’ on the ‘Window’ menu, you can watch the connection
status between EMMG and a scrambler, and the send status of the EMM
data packets.
26
fig2-34
Choose ‘EMM Control View’ on the ‘Window’ menu, you can watch the
generation status of EMM information by EMMG server.
fig2-35
27
Choose EMMG (fig2-36) or ECMG (fig2-37) under ‘Detail Information of
Status’ window, you can watch the detail connection status between
EMMG or ECMG and each scrambler.
图 2-38
图 2-39
Click ‘System Monitoring’, and choose the ‘Channel Status’ on the left
menu, you can watch the connection status between ECMG or EMMG
and each scrambler by switching the EMMG and ECMG key . The green
signal beacon in diagram means the status of the channel is normal; the
red means the status of the channel is abnormal or the scrambler does
not working.
Fig2-38 shows the EMMG channel status, and fig2-39 shows the ECMG
channel status.
28
fig2-38
fig2-39
2.2.6 CA_menu
29
fig2-40
2.2.6.1 Information
2.2.6.1.1 Provider
30
provider Range 1~8, it should be according to CTI-smartcard.
number Program number is an important practical parameter. When
a user purchases a package from one of a provider, this
provider’s number will be written into entitlement. Compared
with the information of smartcard, it will be saved into a
corresponding subarea.
Provider Supporting 30 bit (smartcard just read the anterior 16 bit). It
name has no practical significance and commonly supplies a
reason for provider.
remark Supporting description with 50 bits.
Choose insert to create a new provider, input correlative information and
save it.
Choose query to display all the providers and it can be modified or
deleted. If something has been changed, it needs to save again.
It would not change the information on STB.
fig2-41
2.2.6.1.2 Acess_ID
fig2-42
Provider Choose one.
number
Provider Auto choose one.
name
Acess_ID Acess_ID should be the same as the one that is used in
scrambler. Range1~256 。 Acess_ID is an important
program parameter. When user purchase a series
Acess_ID which is from mapping of package. And it can
be transported by EMM.
Acess_ID Supporting 30 bits.
description
31
Sample: when a program use an Acess_ID description, supposing it is
‘n’, if user have the entitlement including ‘n’, they can view this
program.
That Multi-program using the same Acess_ID description can be
disposal with the same solution.
fig2-43
Choose insert to create new packages including follows.
Package Defines package number. Range 1~9950. SMS should have
number the same number.
Package Describes package name. Supporting 30 bit.
name
content Defines the content of package.
Right key click ***** part,choose channels which you want
to display in this package. 1~256 of fig2-44 are Acess_ID.
remark Supporting 50 bit description.
BAT Special control of viewing.
fig2-44
Choose yes to commit the result, return to fig 2-45 and save.
Fig2-45 displays 64 bit hex number. Every bit stand for 4 bit binary
number. It means a provider own 1~256 Acess_ID.
32
fig2-45
2.2.6.1.4 CA Person
fig2-46
33
fig2-47
fig2-48
2.2.6.2 Query
fig2-49
34
fig2-50
Used to query one or all user’s present entitlement log. Showed as fig2-51
fig2-51
Used to query one or all user’s emergent entitlement log. Sowed as fig2-
53
fig2-53
fig2-54
fig2-55
35
2.2.6.2.6 Message Query
fig2-56
fig2-57
fig2-58
fig2-59
36
Addendum A AC editor
B.1 BRIEF
acess_ID, PPV/IPPV.
information by ACG.
ECMG of CAS will get AC and CW from scramble devices, generate ECM
including AC, CW and system time, and send them to scramble devices.
B.2 EDIT
every transport stream. If every service uses different AC, CWG will
unscramble its corresponding service. If several services use the same AC,
CWG will generate just a CW for them. STB will unscramble them as above.
1> Startup
fig A.1
37
2> Click ‘operate’ to open fig A.2
fig A.2
Record number
Scramble flag
program is free.
Multiplexer number
different multiplexers.
It is used to number the different ASI import ports of multiplexer, it starts from
scrambler, the serial number can be expressed as the program number for
TS.
CA system ID
38
Program
Vendor number
Channel number
Categorization number
1-256
1-256
0-4294967295(0xffffffff)
It creates a new record, and passes the record from the dialog box to the list
of the record.
Refreshing record
Delete the record: Delete the selected record from the list of records.
To Clipboard
Copy the data to the clipboard, and then it can be ‘paste’ to any text editors.
Open file
39
Open the file and read the data into the list of records from the file.
Save file
Quit
To display ‘do you want to save current data?’ hint and return to the main
Cancel
40